/* Responsive Design Adjustments */

/* Menu Toggle Button (Hidden on Desktop) */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
}

/* Tablet & Mobile (Max Width: 992px) */
@media (max-width: 992px) {
    /* Navbar Adjustment */
    .navbar {
        position: relative;
        flex-direction: row; /* Keep logo and toggle side-by-side */
        justify-content: space-between;
        padding: 15px 20px;
        height: 70px; /* Fixed height for header bar */
        align-items: center;
    }
    
    .menu-toggle {
        display: block; /* Show hamburger */
        z-index: 1001;
        position: relative;
    }

    .nav-menu {
        display: flex;
        position: fixed;
        top: 70px;
        right: -60%;
        left: auto;
        width: 60%;
        height: calc(100vh - 70px);
        background-color: var(--white);
        flex-direction: column;
        align-items: flex-start;
        padding: 40px 30px;
        transition: right 0.4s ease-in-out;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        border-top: 1px solid #f0f0f0;
        z-index: 998;
    }

    /* Class to show menu when active */
    .nav-menu.active {
        right: 0;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        text-align: left;
        gap: 25px;
        margin-bottom: 30px;
    }

    .lang-switch {
        margin-left: 0;
        padding-left: 10px;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 10px;
        width: 100%;
    }
    
    .logo img {
        height: 40px; /* Smaller logo on mobile */
    }

    .logo-text-desktop {
        display: none;
    }

    .logo-text-mobile {
        display: block;
        font-size: 0.75rem; /* Smaller font for tablet/mobile */
        line-height: 1.2;
        max-width: 220px; /* Limit width to wrap nicely */
        color: var(--primary-color);
    }

    .logo-text {
        font-size: 0.8rem; /* Smaller font for tablet/mobile */
        max-width: 200px; /* Limit width */
    }

    /* Hero Text Adjustment */
    .hero-container {
        justify-content: center;
        text-align: center;
    }

    .hero-text {
        padding: 60px 0;
        margin: 0 auto;
        text-align: center;
        max-width: 100%;
    }

    /* Centre the gold separator bar */
    .hero-text > div,
    .hero-slide-text .hero-text > div {
        margin-left: auto;
        margin-right: auto;
    }

    /* Centre the description paragraph */
    .hero-desc {
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2.2rem; /* Consistent with desktop clamp on tablet */
    }
    
    .hero-text .mm-subtitle {
        font-size: 1.5rem;
    }

    /* Section Spacing */
    .section-title-wrapper {
        text-align: center;
        border-left: none;
        border-bottom: 3px solid var(--accent-color);
        padding-left: 0;
        padding-bottom: 15px;
        display: inline-block;
        margin-bottom: 30px;
    }

    .section-title {
        justify-content: center;
        flex-direction: column;
        gap: 5px;
    }

    .section-title .divider {
        display: none; /* Hide pipe on mobile stack */
    }

    .top-bar-inner {
        padding: 0 20px;
    }
}

/* Mobile (Max Width: 768px) */
@media (max-width: 768px) {
    /* Hero */
    .hero {
        min-height: 400px;
    }

    /* Top Bar Responsive */
    .top-bar-inner {
        flex-direction: column;
        gap: 5px;
    }
    
    .top-contact {
        font-size: 0.8rem;
    }

    .hero-text h1 {
        font-size: 1.6rem;
    }

    .hero-text > div,
    .hero-slide-text .hero-text > div {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-desc {
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }
    
    .logo-text-mobile {
        font-size: 0.65rem; /* Even smaller for very small screens */
        max-width: 180px;
    }

    /* Footer Stacking */
    .footer-top {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }

    .footer-logo {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .contact-list li {
        justify-content: center;
    }

    .newsletter-form {
        flex-direction: column;
    }
    
    .btn-subscribe {
        width: 100%;
        padding: 12px;
    }

    .social-bar {
        flex-direction: column;
        gap: 15px;
    }
    
    .social-icons a {
        color: white; /* Ensure visible */
    }

    /* Grid Resets just in case */
    .updates-grid, 
    .about-layout, 
    .policy-grid,
    .contact-wrapper {
        grid-template-columns: 1fr !important;
    }
    
    .contact-wrapper {
        gap: 40px;
    }
}
