/* Responsive Styles */
@media (max-width: 768px) {
    body {
        padding-top: 7rem; /* Adjust for header height */
    }

    header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 50;
        background-color: #ffffff;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    .container {
        margin: 0 auto;
        width: 100%;
        box-sizing: border-box;
    }

    .desktop-menu {
        display: none;
    }

    .contact-details {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        font-size: 0.85rem;
        padding: 0.75rem 1rem;
    }

    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        margin-left: auto;
        padding: 0.5rem;
    }

    .mobile-menu {
        display: block;
        width: 90%;
        max-width: 360px;
        transition: transform 0.4s ease-in-out;
        top: 0;
        z-index: 1001;
    }

    .logo img {
        height: 3rem;
    }

    .flex.justify-between.items-center {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    .mobile-menu ul {
        padding-bottom: 1rem;
    }

    .mobile-menu li {
        display: flex;
        flex-direction: column;
    }

    .mobile-menu a {
        font-size: 1rem;
        padding: 0.875rem 1.5rem;
        border-bottom: 1px solid #e5e7eb;
        background-color: #ffffff;
        font-weight: 700;
    }

    .sub-menu {
        position: static;
        transform: none;
        border: none;
        box-shadow: none;
        border-radius: 0;
        min-width: auto;
        padding: 0;
        background-color: #f1f5f9;
        display: block;
    }

    .sub-menu.active {
        max-height: 1000px;
        opacity: 1;
    }

    .sub-menu li {
        width: 100%;
    }

    .sub-menu li a {
        padding: 0.75rem 3rem;
        font-size: 0.9rem;
        color: #374151;
        display: block;
        width: 100%;
        box-sizing: border-box;
        border-bottom: 1px solid #e5e7eb;
        background-color: #f1f5f9;
        font-weight: 500;
    }

    .sub-menu li a:hover {
        background-color: #465b2d;
        color: #ffffff;
    }
}

@media (min-width: 769px) {
    .mobile-menu {
        display: none;
    }

    .mobile-menu-toggle {
        display: none;
    }

    .desktop-menu {
        margin-left: auto;
    }

    .desktop-menu ul {
        gap: 2rem;
    }

    .desktop-menu a {
        font-size: 1.1rem;
    }

    .contact-details {
        flex-direction: row;
        justify-content: center;
        gap: 1.5rem;
    }

    .flex.justify-between.items-center {
        display: flex;
        align-items: center;
        width: 100%;
        flex-wrap: nowrap;
    }

    .logo img {
        height: 4rem;
    }
}

@media (max-width: 640px) {
    body {
        padding-top: 6rem; /* Slightly less for smaller screens */
    }

    .contact-details {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
    }

    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .mobile-menu {
        width: 95%;
        max-width: 320px;
    }

    .logo img {
        height: 2.5rem;
    }

    .mobile-menu a {
        font-size: 0.95rem;
        padding: 0.75rem 1.25rem;
    }

    .sub-menu li a {
        font-size: 0.85rem;
        padding: 0.75rem 2.75rem;
    }

    .mobile-menu-toggle {
        padding: 0.5rem;
    }
}

@media (min-width: 1024px) {
    .desktop-menu ul {
        gap: 2.5rem;
    }

    .dropdown-menu {
        min-width: 300px;
    }
}
