/* RESPONSIVE DESIGN */

/* Tablets (768px and below) */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-menu {
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background-color: var(--bg-card);
        flex-direction: column;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav-menu.active {
        max-height: 500px;
    }

    .nav-menu > li {
        width: 100%;
    }

    .nav-menu > li > a {
        padding: 15px 20px;
        border-bottom: none;
        border-left: 3px solid transparent;
    }

    .nav-menu > li > a:hover {
        border-left-color: var(--primary-light);
        border-bottom: none;
        background-color: rgba(255, 255, 255, 0.05);
    }

    .dropdown-menu {
        position: static;
        opacity: 0;
        visibility: hidden;
        transform: none;
        max-height: 0;
        overflow: hidden;
        background-color: rgba(0, 0, 0, 0.2);
        box-shadow: none;
        transition: max-height 0.3s ease;
    }

    .dropdown.active .dropdown-menu {
        opacity: 1;
        visibility: visible;
        max-height: 300px;
    }

    .dropdown-menu li a {
        padding: 12px 20px 12px 40px;
    }

    /* Hero sections */
    .hero {
        padding: 60px 20px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .tagline {
        font-size: 1.1rem;
    }

    .hero-small {
        padding: 40px 20px;
    }

    .hero-small h1 {
        font-size: 1.8rem;
    }

    /* Vision & Mission */
    .vision-mission {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Values Grid */
    .values-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Sections */
    .welcome {
        padding: 40px 20px;
    }

    .welcome h2 {
        font-size: 1.8rem;
    }

    .content {
        padding: 40px 20px;
    }

    .quick-links {
        padding: 40px 20px;
    }

    .links-grid {
        gap: 20px;
    }

    .scripture-section h2 {
        font-size: 1.5rem;
    }

    .scripture-section h3 {
        font-size: 1.2rem;
    }

    .footer-content,
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

/* Mobile phones (480px and below) */
@media (max-width: 480px) {
    .logo {
        gap: 8px;
    }

    .logo img {
        height: 40px;
    }

    .logo-text {
        font-size: 1.1rem;
    }

    .logo-tagline {
        font-size: 0.6rem;
    }

    .nav-container {
        height: 60px;
    }

    .nav-menu > li > a {
        padding: 15px 15px;
    }

    .hero {
        padding: 40px 15px;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .tagline {
        font-size: 0.95rem;
    }

    .hero-small {
        padding: 30px 15px;
    }

    .hero-small h1 {
        font-size: 1.4rem;
    }

    .welcome h2,
    .scripture-section h2 {
        font-size: 1.5rem;
    }

    .welcome p {
        font-size: 1rem;
        text-align: left;
    }

    .scripture-section p {
        text-align: left;
        font-size: 0.95rem;
    }

    .link-card {
        padding: 20px;
    }

    .link-card h3 {
        font-size: 1.2rem;
    }

    .value-card {
        padding: 20px;
    }

    .value-card h3 {
        font-size: 1.2rem;
    }

    .value-card blockquote {
        font-size: 0.85rem;
    }

    .vision-box h2,
    .mission-box h2 {
        font-size: 1.4rem;
    }

    blockquote {
        font-size: 0.95rem;
        padding-left: 15px;
    }

    .explanation {
        padding: 20px;
    }

    .explanation h3 {
        font-size: 1.3rem;
    }

    .footer-content,
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .footer-section h4 {
        font-size: 1.1rem;
    }

    .footer-section p {
        font-size: 0.85rem;
    }

    .container {
        padding: 0 15px;
    }
}

/* Large screens (1200px and above) */
@media (min-width: 1201px) {
    .nav-menu {
        gap: 5px;
    }

    .container {
        padding: 0 30px;
    }
}

/* Print styles */
@media print {
    .navbar,
    .footer,
    .menu-toggle {
        display: none;
    }

    body {
        line-height: 1.5;
    }

    .hero,
    .hero-small {
        background: none;
        color: black;
        page-break-after: avoid;
    }

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

    blockquote {
        page-break-inside: avoid;
    }
}

/* Team Section Responsive */
@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .team-image {
        height: 250px;
    }

    .team-info {
        padding: 20px;
    }

    .team-info h2 {
        font-size: 1.3rem;
    }

    .team-info p {
        font-size: 0.9rem;
    }
}
