* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #fefefe;
    overflow-x: hidden;
}

/* ========== HEADER STYLES ========== */
.top-header-row {
    background-color: #790204;
    padding: 3px 0;
    font-size: 13px;
    position: relative;
    z-index: 100;
}

.phone-info {
    color: #ffffff;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.phone-info i {
    font-size: 14px;
    color: #ffb347;
    background: rgba(255,255,240,0.12);
    padding: 5px;
    border-radius: 50%;
}

.social-icons-header {
    display: flex;
    gap: 18px;
    justify-content: flex-end;
    align-items: center;
}

.social-icons-header a {
    color: #f0f0f0;
    font-size: 16px;
    transition: 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    text-decoration: none;
}

.social-icons-header a:hover {
    color: #ffb347;
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

/* MAIN HEADER: desktop layout with flex and responsive adjustments */
.main-header-row {
    background-color: #ffffff;
    padding: 5px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid #eef2f0;
    position: relative;
    z-index: 99;
}

/* flex container for three sections */
.header-flex-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

/* LEFT SECTION: desktop nav (visible on desktop) */
.header-left {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Hamburger button - visible on mobile/tablet */
.mobile-menu-btn {
    background: #1a3e35;
    border: none;
    color: white;
    font-size: 1.5rem;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.mobile-menu-btn:hover {
    background: #ffb347;
    color: #1a3e35;
}

/* Desktop navigation left side (visible on large screens) */
.desktop-nav-left {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

/* LOGO */
.logo-center {
    text-align: center;
    flex-shrink: 0;
    transition: all 0.2s;
}

.logo-center img {
    max-width: 100%;
    height: auto;
}

.logo-center .tagline {
    font-size: 11px;
    letter-spacing: 3px;
    color: #790204;
    font-weight: 800;
    text-transform: uppercase;
    margin-top: 4px;
}

/* RIGHT SECTION */
.header-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.nav-link-custom {
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    color: #1e2f2a;
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.nav-link-custom i {
    font-size: 12px;
    color: #ffb347;
}

.nav-link-custom:hover {
    color: #ffb347;
}

/* ========== FIXED HOVER DROPDOWN (DESKTOP) ========== */
.dropdown-hover {
    position: relative;
    display: inline-block;
}

.dropdown-hover .dropdown-menu-custom {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 9999;
    min-width: 260px;
    padding: 12px 0;
    margin: 5px 0 0 0;
    font-size: 14px;
    text-align: left;
    list-style: none;
    background-color: #ffffff;
    border: none;
    border-radius: 16px;
    box-shadow: 0 20px 35px -8px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}

.dropdown-hover:hover .dropdown-menu-custom,
.dropdown-menu-custom:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown-menu-custom .dropdown-item {
    display: block;
    width: 100%;
    padding: 10px 24px;
    clear: both;
    font-weight: 500;
    color: #2c3e35;
    text-decoration: none;
    transition: 0.2s;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.dropdown-menu-custom .dropdown-item i {
    width: 24px;
    margin-right: 10px;
    color: #ffb347;
}

.dropdown-menu-custom .dropdown-item:hover {
    background-color: #fef3e0;
    color: #1a3e35;
    padding-left: 30px;
}

.dropdown-divider {
    height: 1px;
    margin: 8px 0;
    background-color: #e9ecef;
}

/* ========== MOBILE SIDEBAR (OFF-CANVAS MENU) - FIXED VERSION ========== */
.mobile-sidebar {
    position: fixed;
    top: 0;
    left: -320px;
    width: 320px;
    height: 100%;
    background-color: #ffffff;
    z-index: 99999;
    box-shadow: 4px 0 25px rgba(0, 0, 0, 0.3);
    transition: left 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.mobile-sidebar.open {
    left: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 2px solid #790204;
    background-color: #ffffff;
    position: sticky;
    top: 0;
    z-index: 1;
}

.sidebar-header h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #790204;
    margin: 0;
}

.close-sidebar {
    background: #790204;
    border: none;
    font-size: 1.3rem;
    color: white;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.close-sidebar:hover {
    background: #ffb347;
    color: #1a3e35;
    transform: rotate(90deg);
}

.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-list li {
    border-bottom: 1px solid #f0f0f0;
}

.mobile-nav-list li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    text-decoration: none;
    font-weight: 500;
    color: #1e2f2a;
    transition: 0.2s;
}

.mobile-nav-list li a i {
    width: 24px;
    color: #ffb347;
    font-size: 1.1rem;
}

.mobile-nav-list li a:hover {
    background-color: #fef3e0;
    color: #790204;
    padding-left: 26px;
}

/* mobile dropdown inside sidebar (accordion style) */
.mobile-dropdown-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    background: none;
    border: none;
    padding: 14px 20px;
    font-weight: 600;
    color: #1e2f2a;
    cursor: pointer;
    transition: 0.2s;
}

.mobile-dropdown-btn:hover {
    background-color: #fef3e0;
}

.mobile-dropdown-btn .fa-chevron-down {
    transition: transform 0.3s ease;
}

.mobile-submenu {
    list-style: none;
    padding-left: 0;
    background-color: #fafaf8;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.mobile-submenu.show {
    max-height: 500px;
}

.mobile-submenu li a {
    padding: 10px 20px 10px 55px;
    font-size: 0.9rem;
}

.mobile-submenu li a i {
    width: 20px;
    font-size: 0.9rem;
}

/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 99998;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.overlay.show {
    display: block;
    opacity: 1;
}

/* Prevent body scroll when sidebar is open */
body.sidebar-open {
    overflow: hidden;
}

/* ========== RESPONSIVE BREAKPOINTS ========== */
/* Desktop first: hide hamburger, show desktop nav, logo centered */
@media (min-width: 993px) {
    .mobile-menu-btn {
        display: none;
    }
    
    .header-flex-container {
        display: flex;
    }
    
    .logo-center {
        order: 0;
        text-align: center;
    }
    
    .header-left {
        display: flex;
    }
    
    .header-right {
        display: flex;
    }
}

/* Tablet & Mobile (max-width: 992px) */
@media (max-width: 992px) {
    /* Hide desktop navigation */
    .desktop-nav-left {
        display: none;
    }
    
    /* Hide empty header-left */
    .header-left {
        display: none;
    }
    
    /* Show hamburger button */
    .mobile-menu-btn {
        display: flex;
    }
    
    /* Restructure flex for mobile */
    .header-flex-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: nowrap;
    }
    
    /* Logo on left */
    .logo-center {
        order: 1;
        text-align: left;
        flex: 1;
    }
    
    /* Hamburger button on right */
    .mobile-menu-btn {
        order: 2;
        margin-left: 12px;
    }
    
    /* Hide all header-right links on mobile except maybe partner badge */
    .header-right {
        order: 3;
        flex: 0 0 auto;
        display: none;
    }
    
    /* Logo image size on mobile */
    .logo-center img {
        max-width: 120px;
    }
    
    .logo-center .tagline {
        font-size: 8px;
        letter-spacing: 1px;
    }
}

@media (max-width: 768px) {
    .top-header-row .row {
        flex-direction: column;
        gap: 6px;
    }
    
    .social-icons-header {
        justify-content: center;
    }
    
    .phone-info {
        justify-content: center;
    }
    
    .logo-center img {
        max-width: 100px;
    }
    
    .mobile-menu-btn {
        width: 40px;
        height: 40px;
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .logo-center img {
        max-width: 80px;
    }
    
    .mobile-menu-btn {
        width: 36px;
        height: 36px;
    }
    
    .mobile-sidebar {
        width: 280px;
        left: -280px;
    }
}

/* ========== CAROUSEL STYLES ========== */
.banner-carousel {
    margin-top: 0;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

.carousel-item {
    height: 580px;
    background-size: cover;
    background-position: center 30%;
    position: relative;
}

.carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.2) 100%);
    z-index: 1;
}

.carousel-caption-custom {
    position: absolute;
    bottom: 30%;
    left: 8%;
    right: auto;
    z-index: 2;
    text-align: left;
    max-width: 600px;
    animation: slideUp 0.7s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.carousel-caption-custom h2 {
    font-size: 3.2rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 0 2px 15px rgba(0,0,0,0.5);
}

.carousel-caption-custom p {
    font-size: 1.1rem;
    color: #f0f0f0;
    margin-bottom: 1.8rem;
    text-shadow: 0 1px 8px rgba(0,0,0,0.4);
    line-height: 1.5;
}

.btn-slider {
    background-color: #ffb347;
    color: #1a3e35;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: 0.3s;
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.btn-slider:hover {
    background-color: #ffa01a;
    transform: translateY(-3px);
    color: #1a3e35;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0,0,0,0.6);
    border-radius: 50%;
    padding: 20px;
    background-size: 50%;
}

.carousel-indicators button {
    background-color: #ffb347;
    width: 45px;
    height: 4px;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .carousel-item {
        height: 450px;
    }
    
    .carousel-caption-custom h2 {
        font-size: 1.8rem;
    }
    
    .carousel-caption-custom p {
        font-size: 0.85rem;
    }
    
    .btn-slider {
        padding: 8px 20px;
        font-size: 0.8rem;
    }
    
    .carousel-caption-custom {
        bottom: 25%;
        left: 5%;
        right: 5%;
        max-width: 90%;
    }
}