/* Global responsive rules for all pages */

/* Base responsive behavior */
body {
    padding-top: 120px;
}

header {
    width: 100%;
}

.navbar {
    flex-wrap: wrap;
    gap: 16px;
    padding: 18px 24px;
}

.logo img {
    max-height: 80px;
    width: auto;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
    transition: max-height 0.35s ease, opacity 0.35s ease;
}

.nav-links li::after {
    display: inline-block;
}

.menu-toggle {
    display: none;
}

.contact-btn {
    white-space: nowrap;
}

.hero,
.about-grid,
.mission-grid,
.why-grid,
.team-grid,
.services-grid,
.approach-steps,
.consultancy-focus,
.standout-list,
.research-grid,
.innovation-grid,
.contact-grid,
.footer-container,
.accordion-grid {
    width: 100%;
}

.hero-image {
    width: 100%;
    margin-right: 0;
}

.hero-text {
    width: 100%;
}

.content-section,
.sidebar,
.service-card,
.step,
.focus-item,
.standout-item,
.tab-content,
.contact-form,
.contact-info {
    width: 100%;
}

@media (max-width: 900px) {
    .navbar {
        justify-content: space-between;
        align-items: center;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #123e63;
        flex-direction: column;
        align-items: center;
        gap: 18px;
        padding: 22px 0 26px;
        margin: 0;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        z-index: 999;
    }

    .nav-links.active {
        display: flex;
        max-height: 100vh;
        opacity: 1;
    }

    .nav-links li::after {
        display: none;
    }

    .nav-links a {
        color: #ffffff;
        font-size: 18px;
        padding: 10px 0;
    }

    .menu-toggle {
        display: block;
        cursor: pointer;
        background: rgba(255,255,255,0.1);
        color: #0b3d91;
        border-radius: 10px;
        padding: 10px 14px;
    }

    .contact-btn {
        display: none;
    }

    .hero {
        flex-direction: column;
        padding-top: 40px;
    }

    .hero-text,
    .hero-image,
    .about-grid,
    .mission-grid,
    .why-grid,
    .team-grid,
    .services-grid,
    .approach-steps,
    .consultancy-focus,
    .standout-list,
    .footer-container,
    .contact-grid,
    .accordion-grid {
        grid-template-columns: 1fr !important;
        display: block !important;
    }

    .hero-text {
        padding: 2rem 1.5rem;
        text-align: center;
    }

    .hero-image {
        height: 380px;
        margin-top: 24px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .btn-primary,
    .btn-secondary,
    .cta-primary,
    .cta-secondary,
    .hero-buttons a,
    .services-intro h2,
    .cta-buttons a {
        width: 100%;
        max-width: 100%;
        justify-content: center;
    }

    .services-intro,
    .consultancy-intro,
    .accreditation,
    .contact-section,
    .footer,
    .cta-section {
        padding-left: 20px;
        padding-right: 20px;
    }

    body {
        padding-top: 100px;
    }
}
