/* Dropdown menu fixes */
/* --- CONSOLIDATED & REFACTORED DROPDOWN STYLING --- */
/* Base dropdown style with ZERO PADDING for all menus */
.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 1000;
    display: none;
    width: 1200px;
    padding: 0 !important; /* CRITICAL FIX: Force no padding to ensure flush content */
    margin-top: 20px !important;
    margin-right: 0;
    background-color: white;
    border: 1px solid rgba(0,0,0,0.15);
    border-radius: 5px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.175);
    border-top: none;
}

/* Ensure header stays above dropdowns */
.main-header {
    position: relative;
    z-index: 1000; /* Removed !important to allow media query override */
    background-color: white;
}

/* First, hide all dropdown menus by default */
.has-dropdown .dropdown-menu {
    display: none;
}

/* Create an invisible area to help prevent accidental dropdowns disappearing */
.has-dropdown::after {
    content: '';
    position: absolute;
    height: 20px; /* This creates a bridge between nav item and dropdown */
    width: 100%;
    bottom: -20px;
    left: 0;
    z-index: 999;
    pointer-events: none; /* Make it not interfere with actual mouse events */
}

/* --- CLICK-ACTIVATED DROPDOWN LOGIC --- */
/* When the parent LI has the .active class (added by JS), display the menu */
.services-dropdown.active .services-menu,
.company-dropdown.active .company-menu,
.signin-dropdown.active .signin-menu,
.contact-dropdown.active .contact-menu {
    display: block !important;
    z-index: 999;
}


/* Top header button styling */
.top-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-pay-to-send, .btn-track-shipment, .btn-welcome-back, .btn-welcome-user {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-pay-to-send {
    background: linear-gradient(135deg, #eac055 0%, #d4af37 100%);
    color: #004824;
    border: 2px solid transparent;
    box-shadow: 0 2px 8px rgba(234, 192, 85, 0.3);
}

.btn-pay-to-send:hover {
    background: linear-gradient(135deg, #d4af37 0%, #b8941f 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(234, 192, 85, 0.4);
    color: #004824;
}

.btn-track-shipment {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-track-shipment:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
}

.btn-welcome-back, .btn-welcome-user {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
    font-weight: 400;
}

/* Enhanced register button with modern styling */
.register-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    color: #004824;
    background: linear-gradient(135deg, #eac055 0%, #d4af37 100%);
    border: 2px solid transparent;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(234, 192, 85, 0.3);
}

.register-btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #d4af37 0%, #b8941f 100%);
    transition: left 0.3s ease;
    z-index: -1;
}

.register-btn:hover {
    color: #004824;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(234, 192, 85, 0.4);
}

.register-btn:hover:before {
    left: 0;
}

/* Improved hover behavior bridge */
.has-dropdown {
    position: relative;
}

.has-dropdown::after {
    content: '';
    position: absolute;
    height: 25px;
    width: 100%;
    bottom: -25px;
    left: 0;
    z-index: 998;
    background: transparent;
}



/* Contact dropdown styles */
/* Specific width and height for contact menu */
.contact-dropdown .dropdown-menu {
    width: 800px;
    height: 590px;
    overflow: hidden;
}

.contact-content {
    padding: 0;
    height: auto;
}

.contact-container {
    display: flex;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}

/* Perfect match to Sign In dropdown padding */
.contact-left {
    background-color: #004824; /* Dark green - Express Road branding */
    color: white;
    padding: 30px;
    width: 40%; /* Same as login-left */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    box-sizing: border-box;
}

.contact-left h2 {
    font-size: 20px;
    margin-top: 0;
    margin-bottom: 5px;
    font-weight: bold;
    color: #eac055; /* Match Sign In gold heading */
}

.contact-left p {
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 15px;
    color: #fff;
}

.contact-section {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 3px;
    font-size: 13px;
}

.contact-item .icon {
    margin-right: 8px;
    color: #eac055;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 15px;
}

.contact-item .info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.contact-item .info a {
    display: block;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    margin-bottom: 0;
    color: white;
    text-decoration: none;
}

.contact-item .info a:hover {
    color: #eac055;
}

/* Modern WhatsApp Button */
.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #25D366; /* Solid, modern WhatsApp green */
    color: white;
    border-radius: 6px;
    width: 28px; /* Slightly larger */
    height: 28px; /* Slightly larger */
    font-size: 16px; /* Larger icon */
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
}

.whatsapp-btn:hover {
    background-color: #1DA851; /* Darker green on hover */
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    color: white;
}


.phone-container {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.phone-link {
    color: white;
    text-decoration: none;
    margin-right: 8px;
}

.phone-link:hover {
    color: #eac055;
}

.contact-cta {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-cta a {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    padding: 10px 15px;
    text-align: center;
    white-space: nowrap;
    background-color: #eac055;
    color: #004824;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.2s ease;
    border: 2px solid #eac055;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.contact-cta a:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: white;
    transition: all 0.3s ease;
    z-index: -1;
}

.contact-cta a:hover {
    color: #004824;
}

.contact-cta a:hover:before {
    left: 0;
}

.contact-cta a:after {
    content: "→";
    margin-left: 8px;
    transition: transform 0.2s ease;
}

.contact-cta a:hover:after {
    transform: translateX(3px);
}


/* --- Modern Social Media Icons --- */
.social-section {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(234, 192, 85, 0.2);
    margin-bottom: 0;
}

.social-section h3 {
    font-size: 14px;
    margin-bottom: 10px;
    font-weight: bold;
    color: #eac055;
}

.social-icons {
    display: flex;
    gap: 12px;
    align-items: center;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    color: white;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 18px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.social-icon:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
    transition: opacity 0.3s ease;
    opacity: 0;
}

/* Facebook - Updated brand color */
.social-icon[aria-label="Facebook"] {
    background: linear-gradient(135deg, #1877F2 0%, #0e5bb8 100%);
}

/* LinkedIn - Enhanced gradient */
.social-icon[aria-label="LinkedIn"] {
    background: linear-gradient(135deg, #0077B5 0%, #005582 100%);
}

/* X (Twitter) - Modern X branding */
.social-icon[aria-label="X"] {
    background: linear-gradient(135deg, #000000 0%, #1d1d1d 100%);
}

/* Instagram - Enhanced gradient */
.social-icon[aria-label="Instagram"] {
    background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-icon:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    color: white;
}

.social-icon:hover:before {
    opacity: 1;
}



/* Contact right panel */
.contact-right {
    background-color: #ffffff;
    padding: 30px;
    width: 60%; /* Same as login-right */
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    overflow-y: auto;
}

.contact-form {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.contact-form h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: bold;
    color: #004824;
}

.form-row {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.form-group {
    width: 100%;
    margin-bottom: 0;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    box-sizing: border-box;
    background-color: #f5f5f5;
}

.form-group.full-width {
    margin-bottom: 12px;
}

textarea.form-control,
.form-group textarea {
    height: 65px;
    resize: none;
    min-height: 65px;
}

.terms-checkbox,
.terms-check {
    margin: 8px 0 15px;
    font-size: 12px;
    display: flex;
    align-items: flex-start;
}

.terms-check label {
    font-size: 12px;
    display: flex;
    align-items: flex-start;
    width: 100%;
    color: #555;
    line-height: 1.4;
}

.terms-check input[type="checkbox"] {
    margin-right: 6px;
    height: 14px;
    width: 14px;
    flex-shrink: 0;
    margin-top: 2px;
}

.terms-check a {
    color: #004824;
    text-decoration: none;
    font-weight: 600;
}

.terms-check a:hover {
    color: #eac055;
    text-decoration: underline;
}

.recaptcha-container {
    transform: scale(0.85);
    transform-origin: 0 0;
    margin-bottom: 15px;
    height: 60px;
}

.recaptcha-container small {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    color: #666;
}

/* CRITICAL FIX: Increased specificity to guarantee button color */
.contact-form .submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    background-color: #004824 !important; /* Force brand green */
    color: white;
    border: none;
    border-radius: 4px; /* Match login button radius */
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    margin-top: auto;
    width: 100%;
    transition: all 0.3s ease;
}

.contact-form .submit-btn i {
    margin-left: 8px;
}

.contact-form .submit-btn:hover {
    background-color: #003018 !important; /* Force darker green */
}

/* General Reset and Font */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    font-size: 14px;
}

/* Header Styles */
header {
    width: 100%;
    color: white;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Top Header */
.top-header {
    background-color: #004824;
    padding: 8px 0;
}

.top-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Main Header */
.main-header {
    background-color: white;
    padding: 5px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding: 0; /* Remove any padding */
    min-height: 0; /* Remove any minimum height */
}

.logo {
    max-width: 180px;
    padding: 0;
    margin: 0;
    line-height: 0;
}

.logo img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
    display: block;
}

/* Main Navigation */
.main-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px;
}

.main-nav li {
    position: relative;
}

.main-nav li a {
    color: #004824;
    text-decoration: none;
    font-weight: 700;
    padding: 10px 0;
    display: inline-block;
    transition: color 0.3s, background-color 0.3s;
}

.main-nav li a:hover {
    color: #eac055;
}

.main-nav li.has-dropdown > a::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 5px;
    vertical-align: middle;
    border-top: 5px solid;
    border-right: 5px solid transparent;
    border-left: 5px solid transparent;
}

.contact-btn {
    background-color: #004824;
    color: white !important;
    padding: 8px 15px !important;
    border-radius: 5px;
}

.contact-btn:hover {
    background-color: #eac055;
    color: #004824 !important;
}

/* --- FIX: Active state for Contact Us button when dropdown is open --- */
.contact-dropdown.active .contact-btn {
    background-color: #eac055; /* Gold color to indicate active state */
    color: #004824 !important; /* Dark green text for contrast */
}


.dropdown-menu-inner {
    width: 100%;
    margin: 0 auto;
}

.has-dropdown {
    position: initial;
}

.main-nav li.has-dropdown {
    position: initial;
}

.main-nav .dropdown-menu {
    position: absolute;
    left: 0;
    width: 100%;
    margin-top: 20px; /* Increase gap to prevent overlap */
    border-top: none; /* Remove top border for cleaner look */
    z-index: 998; /* Ensure it's under the hover bridge */
}

.sign-in-content {
    width: 100%;
    padding: 0;
    margin: 0;
    display: flex;
    overflow: hidden; /* Ensure child border-radius is clipped */
    border-radius: 5px; /* Match parent dropdown's radius */
}

.login-container {
    display: flex;
    width: 100%;
}

.login-left {
    background-color: #004824;
    color: white;
    padding: 30px;
    width: 40%;
    position: relative;
    box-sizing: border-box;
}

.login-left::before {
    display: none; /* Remove the orange line */
}

.login-left h2 {
    font-size: 24px;
    margin: 0 0 15px;
    font-weight: bold;
    color: #eac055;
}

.login-left p {
    margin-bottom: 25px;
    line-height: 1.6;
}

.remember-me {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.remember-checkbox {
    display: flex;
    align-items: center;
    justify-content: center;
}

.remember-checkbox input {
    margin-right: 5px;
}

.login-right {
    padding: 30px;
    width: 60%;
    box-sizing: border-box;
    background-color: #fff;
}

.login-right h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

.login-right h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: #004824;
    margin-top: 10px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.form-group input[type="email"],
.form-group input[type="password"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.remember-me {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.remember-me input[type="checkbox"] {
    margin-right: 5px;
}

.forgot-password {
    color: #eac055;
    text-decoration: none;
    font-size: 14px;
}

.forgot-password:hover {
    text-decoration: underline;
}

/* CRITICAL FIX: Increased specificity to guarantee button color */
.login-right .login-btn {
    width: 100%;
    padding: 12px;
    background-color: #004824 !important; /* Force brand green */
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.login-right .login-btn:hover {
    background-color: #003018 !important; /* Force darker green */
    transform: translateY(-1px);
}

.login-footer {
    margin-top: 20px;
    text-align: center;
    font-size: 12px;
    color: #666;
}

.login-footer a {
    color: #eac055;
    text-decoration: none;
}

.login-footer a:hover {
    text-decoration: underline;
}

.service-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 30px; /* Add padding here since it was removed from parent */
}

.service-card {
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.service-card:hover {
    box-shadow: 0 8px 25px rgba(234, 192, 85, 0.4);
    border: 2px solid #eac055;
    transform: translateY(-5px);
    background: linear-gradient(135deg, #fff 0%, #fffdf7 100%);
}

.service-card .icon {
    margin-bottom: 10px;
    font-size: 24px;
    color: #eac055;
}

.service-card h4 {
    margin: 0 0 10px;
    font-size: 16px;
    color: #333232;
}

.service-card p {
    margin: 0;
    font-size: 12px;
    color: #666;
    line-height: 1.5;
}

.service-card .service-link {
    display: inline-block;
    color: #eac055;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    margin-top: 10px;
}

.service-card .service-link:hover {
    text-decoration: underline;
}


.profile-section {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-weight: 500;
}

.profile-icon {
    font-size: 20px;
    color: #eac055; /* Gold color for the icon */
}

/* Menu item */
.menu-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

/* Mobile-only profile icon */
.mobile-profile-action {
    display: none;
}

/* Menu text styling */
.menu-text h4 {
    margin: 0 0 5px;
    font-size: 16px;
    color: #004824;
    font-weight: bold;
}

.menu-text p {
    margin: 0;
    font-size: 13px;
    color: #004824;
    line-height: 1.4;
}

/* Dropdown hover effect */
.seabourne-dropdown .menu-item:hover .menu-text h4 {
    color: #eac055;
}

.seabourne-dropdown .menu-column a:hover {
    background-color: #004824;
    color: white;
    font-weight: bold;
}

/* --- FIX: Sign In / Contact Dropdown Content --- */
/*
 * With the parent padding removed, the inner containers need
 * to have their border-radius applied correctly.
*/
.signin-menu .sign-in-content,
.contact-menu .contact-container {
    border-radius: 5px;
    overflow: hidden;
}

/* --- New styles for account action buttons (replaces inline styles) --- */
.account-btn {
    display: block;
    padding: 10px 30px;
    width: 220px;
    margin: 0 auto 10px;
    text-align: center;
    text-decoration: none !important;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
}
.account-btn.register-btn { /* For "Order History" */
    display: block;
    padding: 10px 20px;
    margin: 0 auto 10px;
}
.account-btn-logout {
    background-color: #555; /* A neutral dark grey for logout */
    color: white !important;
}
.account-btn-logout:hover {
    background-color: #333;
    color: white !important;
    transform: translateY(-1px);
}


/* ============================================= */
/* --- MOBILE & RESPONSIVE STYLES --- */
/* ============================================= */
.mobile-nav-toggle,
.dropdown-toggle-mobile,
.mobile-nav-close,
.mobile-actions {
    display: none;
}

/* --- START: ROBUST MOBILE SIGN-IN MODAL --- */
.mobile-signin-container {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    z-index: 1020; /* High z-index to be on top of everything */
    overflow-y: auto;
    padding: 20px;
}
body.mobile-signin-active {
    overflow: hidden; /* Prevent background scroll */
}
body.mobile-signin-active .mobile-signin-container {
    display: block;
}
.mobile-signin-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 15px;
}
.mobile-signin-close {
    background: none;
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 16px;
    line-height: 1;
    color: #333;
    cursor: pointer;
}
.mobile-signin-container .sign-in-content {
    flex-direction: column;
}
.mobile-signin-container .login-left,
.mobile-signin-container .login-right {
    width: 100%;
}

/* CRITICAL FIX: Increased specificity for mobile login button */
.mobile-signin-container .login-btn {
    width: 100%;
    padding: 12px;
    background-color: #004824 !important; /* Force brand green */
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}
.mobile-signin-container .login-btn:hover {
    background-color: #003018 !important; /* Force darker green */
    transform: translateY(-1px);
}

/* --- END: ROBUST MOBILE SIGN-IN MODAL --- */


@media (max-width: 992px) {
    /* --- General Layout & Mobile Header Bar --- */
    .container {
        padding: 0 20px;
    }

    .top-header {
        display: none;
    }

    .main-header {
        background-color: #ffffff; /* White mobile header for logo visibility */
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        z-index: 1010; /* CRITICAL FIX: Ensure header is above the overlay */
        border-bottom: 3px solid #004824; /* Green separator line */
        position: relative; /* CRITICAL FIX: Establish a stacking context */
    }

    .header-inner {
        padding: 10px 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: relative;
        min-height: 80px; /* De-squash the header */
    }

    .logo {
        max-width: 170px; /* Control logo size */
        position: static;
        transform: none;
        padding: 0;
    }

    .logo img {
        /* CRITICAL FIX: Remove max-height to preserve aspect ratio */
        width: 100%;
        height: auto;
    }

    /* --- Mobile Header Actions (Sign In + Hamburger) --- */
    .mobile-actions {
        display: flex;
        align-items: center;
        gap: 15px;
        margin-left: auto; /* CRITICAL FIX: Pushes actions to the far right */
    }
    
    .mobile-signin-trigger {
        display: block;
        background: transparent;
        border: 1px solid #ddd;
        border-radius: 50%;
        width: 38px;
        height: 38px;
        color: #004824;
        font-size: 16px;
        cursor: pointer;
        line-height: 1;
    }
    
    .mobile-signin-trigger:hover {
        background-color: #f0f0f0;
    }

    .mobile-nav-toggle {
        display: block;
        background: transparent;
        border: 1px solid #ddd;
        padding: 5px;
        cursor: pointer;
        z-index: 1003;
        position: static;
        transform: none;
        width: 38px;
        height: 38px;
        border-radius: 6px;
    }
    
    /* UI REFINEMENT: Hide hamburger when nav is open */
    body.mobile-nav-active .mobile-actions .mobile-nav-toggle {
        display: none;
    }

    .mobile-nav-toggle .icon-bar {
        display: block;
        width: 20px;
        height: 2px;
        background-color: #004824; /* Dark green icon for white header */
        border-radius: 1px;
        margin: 4px auto;
    }

    /* --- Hide Desktop Nav & Elements --- */
    .main-nav {
        display: none;
    }
    body.mobile-nav-active .main-nav {
        display: block;
    }

    /* --- Mobile Navigation Panel --- */
    body.mobile-nav-active .mobile-nav-panel {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        width: 320px;
        max-width: 85vw;
        height: 100vh;
        background: #fff;
        z-index: 1001;
        box-shadow: -5px 0 15px rgba(0,0,0,0.15);
        transform: translateX(0);
        transition: transform 0.3s ease-in-out;
        padding: 0;
        margin: 0;
        gap: 0;
    }

    body.mobile-nav-active {
        overflow: hidden;
    }

    /* Initial hidden state for panel */
    .mobile-nav-panel {
        transform: translateX(100%);
        padding: 0;
    }

    /* The main list of nav items should scroll if it overflows */
    .main-nav > .mobile-nav-panel > ul {
        display: flex;
        flex-direction: column;
        overflow-y: auto;
        flex-grow: 1;
        gap: 0; /* Reset desktop gap */
    }


    /* Mobile Nav Close Button */
    .mobile-nav-close {
        /* display: none; is the default state from above */
        position: absolute;
        top: 15px;
        right: 20px;
        background: none;
        border: none;
        color: #333;
        font-size: 24px;
        line-height: 1;
        padding: 5px;
        cursor: pointer;
        z-index: 1002;
    }

    /* The close button is now inside the panel, so it becomes visible when it slides in */
    body.mobile-nav-active .mobile-nav-close {
        display: block;
    }


    /* Mobile Nav Overlay */
    .mobile-nav-overlay {
        display: none;
    }
    body.mobile-nav-active .mobile-nav-overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 1000; /* Behind header and nav panel */
        cursor: pointer;
    }
    
    /* --- REMOVED OLD/BUGGY MOBILE SIGN IN STYLES --- */
    /* All old .signin-active-mobile styles are removed for the new robust modal */


    /* --- Mobile Menu Items & Accordions --- */
    .main-nav li {
        position: relative;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        border-bottom: 1px solid #f0f0f0;
    }
    .main-nav li:last-child {
        border-bottom: none;
    }

    .main-nav li.has-dropdown > a::after {
        display: none; /* Hide desktop arrow */
    }

    /* Hide the signin-dropdown from the regular accordion list */
    body.mobile-nav-active .main-nav li.signin-dropdown {
        display: none;
    }

    .main-nav li a {
        padding: 15px 20px;
        flex-grow: 1;
    }
    .main-nav li a.contact-btn {
        background: transparent !important;
        color: #004824 !important;
        padding: 15px 20px !important;
    }

    .dropdown-toggle-mobile {
        display: block;
        flex-shrink: 0;
        width: 50px;
        height: 52px;
        border: none;
        border-left: 1px solid #f0f0f0;
        background: transparent;
        color: #004824;
        font-size: 16px;
        cursor: pointer;
    }
    .dropdown-toggle-mobile .fa {
        transition: transform 0.3s ease;
    }
    .submenu-open > .dropdown-toggle-mobile .fa {
        transform: rotate(180deg);
    }
    
    /* --- Mobile Submenu Styling --- */
    .has-dropdown .dropdown-menu {
        display: none;
        position: static;
        flex-basis: 100%;
        width: 100%;
        max-width: 100%;
        box-shadow: none;
        border: none;
        border-top: 1px solid #e0e0e0;
        margin-top: 0 !important;
        border-radius: 0;
        background: #f8f8f8;
        padding: 0 !important; /* Reset padding for mobile accordion */
        height: auto !important; /* Reset fixed heights */
        opacity: 1;
        visibility: visible;
    }

    .has-dropdown.submenu-open > .dropdown-menu {
        display: block;
        background-color: #f0f2f5; /* Add a subtle background color for open submenus */
        box-shadow: inset 0 3px 5px rgba(0,0,0,0.05); /* Add inner shadow for depth */
    }

    /* --- Responsive Dropdown Content --- */
    .service-cards {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 15px;
    }
    
    .login-container, .contact-container, .sign-in-content {
        flex-direction: column;
    }
    .login-left, .login-right, .contact-left, .contact-right {
        width: 100%;
        padding: 20px;
    }
    .login-left {
        border-right: none;
    }
    .contact-left, .contact-right {
        height: auto;
    }
    .form-row {
        flex-direction: column;
        gap: 12px;
    }
    .recaptcha-container {
        transform: scale(1);
        transform-origin: left;
        height: auto;
    }

    /* --- Mobile-only Action Buttons in Slide-out Menu --- */
    .mobile-only-actions {
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding: 15px 20px;
        background-color: #004824; /* Brand green background */
        border-bottom: 3px solid #eac055; /* Gold accent border */
        flex-shrink: 0; /* Prevent this from shrinking */
    }

    .mobile-only-actions a {
        display: block;
        padding: 10px 15px;
        border-radius: 4px;
        text-align: center;
        font-weight: 600;
        font-size: 14px;
        text-decoration: none;
        transition: all 0.2s ease-in-out;
    }

    .mobile-only-actions .btn-pay-to-send-mobile {
        background: #eac055;
        color: #004824;
    }
    .mobile-only-actions .btn-pay-to-send-mobile:hover {
        background: #d4af37;
        transform: scale(1.02);
    }

    .mobile-only-actions .btn-track-shipment-mobile {
        background: transparent;
        color: white;
        border: 1px solid rgba(255, 255, 255, 0.5);
    }
    .mobile-only-actions .btn-track-shipment-mobile:hover {
        background: rgba(255, 255, 255, 0.1);
        border-color: #fff;
    }
}