/* Wall Ministries - Responsive Design
   Media Queries for Mobile and Tablet Devices */

/* Tablet and Medium Screens */
@media (max-width: 992px) {
    .blog-page,
    .contact-layout,
    .prayer-letters-content,
    .single-post .container {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .partnership-grid,
	.doctrine-grid {
		grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	}
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

/* Mobile and Small Screens */
@media (max-width: 768px) {
    /* Content Layout Adjustments */
    .about-content,
    .testimony-container,
    .form-row {
        grid-template-columns: 1fr;
    }

    .hero {
        height: 60vh;
        margin-top: 70px; /* Account for fixed header */
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }

    .banner-content h1 {
        font-size: 2rem;
    }

    .banner-content p {
        font-size: 1rem;
    }

    .partnership-content h2 {
        font-size: 2rem;
    }

    .partnership-option {
        padding: var(--spacing-sm);
    }

    .partnership-option i {
        font-size: 2rem;
    }

    .pdf-viewer {
        height: 600px;
    }

    .pdf-controls {
        flex-direction: column;
        text-align: center;
    }

    .pdf-actions {
        width: 100%;
        justify-content: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .letters-grid {
        grid-template-columns: 1fr;
    }

    .related-posts-grid {
        grid-template-columns: 1fr;
    }

    .contact-info-section {
        order: -1;
    }
	
	.doctrine-grid {
		grid-template-columns: 1fr;
		gap: var(--spacing-sm);
	}

	.doctrinal-statement h2 {
		font-size: 2rem;
	}

	.doctrine-item {
		padding: var(--spacing-sm);
	}
	
}

/* Very Small Mobile Screens */
@media (max-width: 480px) {
    .container {
        width: 95%;
        padding: 0 var(--spacing-xs);
    }

    .hero-content h2,
    .banner-content h1 {
        font-size: 1.5rem;
    }

    .post-header h1 {
        font-size: 1.8rem;
    }

    .partnership-grid,
	.doctrine-grid {
		grid-template-columns: 1fr;
	}

	.doctrinal-statement h2 {
		font-size: 1.6rem;
	}

    .share-buttons {
        flex-direction: column;
    }

    .share-btn {
        justify-content: center;
    }

    /* Keep the hamburger small at all screen sizes - REMOVED the conflicting styles */
    
    /* Reduce logo size further on very small screens */
    .logo h1 {
        font-size: 1.2rem !important;
    }
}

/* Print Styles */
@media print {
    .nav-toggle-label,
    .btn,
    .share-buttons,
    .pdf-controls,
    .sidebar {
        display: none;
    }

    .hero,
    .page-banner {
        height: auto;
        background: none;
        color: var(--text-dark);
    }

    .ministry-partnership {
        background: none;
        color: var(--text-dark);
    }

    .partnership-content h2,
    .partnership-option h3,
    .partnership-option p {
        color: var(--text-dark);
    }

    body {
        font-size: 12pt;
        line-height: 1.4;
    }

    h1, h2, h3 {
        page-break-after: avoid;
    }

    .blog-post,
    .prayer-letter-card,
    .partnership-option {
        page-break-inside: avoid;
    }
}