/* ============================================
   PROFESSIONAL MEGA MENU - DAINIK PROYOJON
   ============================================ */

/* --------------------------------------------
   RESET & BASE
   -------------------------------------------- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background: #f8f9fa;
}

/* --------------------------------------------
   MAIN HEADER
   -------------------------------------------- */
.main-header {
    background: #ffffff;
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid #0B4EA2;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* --------------------------------------------
   NAVBAR
   -------------------------------------------- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    position: relative;
}

/* Logo */
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 22px;
    color: #0B4EA2;
    letter-spacing: -0.5px;
}

.navbar-brand img {
    height: 45px;
    width: auto;
}

.brand-text {
    font-weight: 700;
    font-size: 22px;
    color: #0B4EA2;
}

/* Navbar Links Container */
.navbar-links {
    display: flex;
    align-items: center;
}

.nav-list {
    list-style: none;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    gap: 5px;
}

.nav-list > li {
    position: relative;
}

.nav-list > li > a,
.nav-list > li > .dropbtn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    color: #212529;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    border: none;
    background: none;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.nav-list > li > a:hover,
.nav-list > li > .dropbtn:hover {
    color: #0B4EA2;
    background: rgba(11, 78, 162, 0.06);
}

.nav-list > li > a.active,
.nav-list > li > .dropbtn.active {
    color: #0B4EA2;
    background: rgba(11, 78, 162, 0.08);
}

.nav-list > li > a i,
.nav-list > li > .dropbtn i {
    font-size: 14px;
    opacity: 0.7;
}

.nav-list > li > a:hover i,
.nav-list > li > .dropbtn:hover i {
    opacity: 1;
}

/* Chevron icon */
.nav-list > li > .dropbtn .fa-chevron-down {
    font-size: 12px;
    transition: transform 0.3s ease;
    margin-left: 2px;
}

.nav-list > li > .dropbtn.active .fa-chevron-down {
    transform: rotate(180deg);
}

/* --------------------------------------------
   BUTTONS IN NAVBAR
   -------------------------------------------- */
.btn-outline {
    border: 2px solid #0B4EA2 !important;
    color: #0B4EA2 !important;
    background: transparent !important;
    border-radius: 25px !important;
    padding: 8px 20px !important;
}

.btn-outline:hover {
    background: #0B4EA2 !important;
    color: #ffffff !important;
}

.btn-book {
    background: #62BB2E !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 25px !important;
    padding: 8px 22px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.btn-book:hover {
    background: #4da324 !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(98, 187, 46, 0.3);
}

/* --------------------------------------------
   MEGA MENU - DROPDOWN CONTAINER
   -------------------------------------------- */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    min-width: 200px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.12);
    border-radius: 0 0 12px 12px;
    z-index: 1050;
    padding: 10px 0;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-content.show {
    display: block;
}

/* --------------------------------------------
   MEGA MENU - FULL WIDTH
   -------------------------------------------- */
.mega-menu-item {
    position: static !important;
}

.mega-menu-item .dropdown-content {
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    border-radius: 0 0 16px 16px !important;
    padding: 0 !important;
    animation: slideDown 0.3s ease;
}

.mega-menu-inner {
    padding: 25px 30px;
    background: #ffffff;
    border-radius: 0 0 16px 16px;
}

/* Mega Header */
.mega-header {
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
    margin-bottom: 20px;
}

.mega-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: #0B4EA2;
    margin: 0 0 5px 0;
}

.mega-header h3 i {
    color: #62BB2E;
    margin-right: 10px;
}

.mega-header p {
    color: #6c757d;
    font-size: 14px;
    margin: 0;
}

/* Mega Row - Grid */
.mega-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

/* Mega Column */
.mega-column {
    min-width: 0;
}

/* Category Link */
.mega-category-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    color: #212529;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    margin-bottom: 8px;
}

.mega-category-link:hover {
    background: rgba(11, 78, 162, 0.08);
    color: #0B4EA2;
    transform: translateX(3px);
}

.mega-category-link i {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-radius: 6px;
    color: #0B4EA2;
    font-size: 14px;
    transition: all 0.3s ease;
}

.mega-category-link:hover i {
    background: #0B4EA2;
    color: #ffffff;
}

.mega-category-link .badge {
    background: #0B4EA2;
    color: #ffffff;
    font-size: 10px;
    padding: 2px 10px;
    border-radius: 12px;
    margin-left: auto;
    font-weight: 500;
}

/* Sub Links */
.mega-sub-links {
    list-style: none;
    padding: 0;
    margin: 0 0 0 10px;
}

.mega-sub-links li {
    margin-bottom: 2px;
}

.mega-sub-links li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 10px;
    color: #6c757d;
    font-size: 13px;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.mega-sub-links li a i {
    font-size: 11px;
    color: #1D73D6;
    opacity: 0.6;
    width: 16px;
}

.mega-sub-links li a:hover {
    color: #0B4EA2;
    background: rgba(11, 78, 162, 0.05);
    padding-left: 15px;
}

.mega-sub-links li a:hover i {
    opacity: 1;
}

.mega-sub-links .view-all a {
    color: #0B4EA2;
    font-weight: 600;
}

.mega-sub-links .view-all a i {
    transition: transform 0.3s ease;
}

.mega-sub-links .view-all a:hover i {
    transform: translateX(3px);
}

/* Mega Footer */
.mega-footer {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
    margin-top: 10px;
    flex-wrap: wrap;
}

.mega-footer .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 28px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.mega-footer .btn-primary {
    background: #0B4EA2;
    color: #ffffff;
}

.mega-footer .btn-primary:hover {
    background: #1D73D6;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(11, 78, 162, 0.3);
}

.mega-footer .btn-success {
    background: #62BB2E;
    color: #ffffff;
}

.mega-footer .btn-success:hover {
    background: #4da324;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(98, 187, 46, 0.3);
}

.mega-footer .btn-danger {
    background: #dc3545;
    color: #ffffff;
}

.mega-footer .btn-danger:hover {
    background: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(220, 53, 69, 0.3);
}

/* --------------------------------------------
   USER DROPDOWN MENU
   -------------------------------------------- */
.user-dropdown .dropdown-content {
    right: 0;
    left: auto;
    min-width: 220px;
    padding: 8px 0;
}

.user-dropdown .dropdown-content a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    color: #212529;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.user-dropdown .dropdown-content a i {
    width: 18px;
    color: #6c757d;
}

.user-dropdown .dropdown-content a:hover {
    background: rgba(11, 78, 162, 0.06);
    color: #0B4EA2;
}

.user-dropdown .dropdown-content a:hover i {
    color: #0B4EA2;
}

.user-dropdown .dropdown-content hr {
    margin: 8px 20px;
    border: none;
    border-top: 1px solid #e9ecef;
}

.user-dropdown .dropdown-content .text-danger {
    color: #dc3545 !important;
}

.user-dropdown .dropdown-content .text-danger:hover {
    background: rgba(220, 53, 69, 0.06) !important;
}

/* --------------------------------------------
   NAVBAR TOGGLER (Mobile)
   -------------------------------------------- */
.navbar-toggler {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: #0B4EA2;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.navbar-toggler:hover {
    background: rgba(11, 78, 162, 0.06);
}

/* --------------------------------------------
   RESPONSIVE - TABLET & MOBILE
   -------------------------------------------- */
@media (max-width: 992px) {
    .navbar-toggler {
        display: block;
    }
    
    .navbar-links {
        display: none;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background: #ffffff;
        padding: 15px 20px;
        box-shadow: 0 20px 40px rgba(0,0,0,0.1);
        border-top: 2px solid #0B4EA2;
        max-height: 80vh;
        overflow-y: auto;
    }
    
    .navbar-links.open {
        display: block;
    }
    
    .nav-list {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }
    
    .nav-list > li {
        width: 100%;
    }
    
    .nav-list > li > a,
    .nav-list > li > .dropbtn {
        width: 100%;
        padding: 12px 15px;
        justify-content: flex-start;
        border-radius: 8px;
    }
    
    /* Mega Menu Mobile */
    .mega-menu-item {
        position: relative !important;
    }
    
    .mega-menu-item .dropdown-content {
        position: relative !important;
        width: 100% !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        padding: 0 !important;
        animation: none !important;
        background: #f8f9fa !important;
    }
    
    .mega-menu-inner {
        padding: 15px !important;
        border-radius: 0 !important;
    }
    
    .mega-row {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
    
    .mega-header {
        padding-bottom: 15px;
        margin-bottom: 15px;
    }
    
    .mega-header h3 {
        font-size: 18px;
    }
    
    .mega-footer {
        flex-direction: column;
        align-items: stretch;
    }
    
    .mega-footer .btn {
        justify-content: center;
        padding: 10px 20px;
    }
    
    /* User Menu Mobile */
    .user-dropdown .dropdown-content {
        position: relative !important;
        width: 100% !important;
        box-shadow: none !important;
        background: #f8f9fa !important;
        border-radius: 0 !important;
        padding: 0 !important;
    }
    
    .user-dropdown .dropdown-content a {
        padding: 10px 15px !important;
    }
}

@media (max-width: 576px) {
    .brand-text {
        font-size: 16px;
    }
    
    .navbar-brand img {
        height: 32px;
    }
    
    .nav-list > li > a,
    .nav-list > li > .dropbtn {
        font-size: 14px;
        padding: 10px 12px;
    }
    
    .mega-menu-inner {
        padding: 10px !important;
    }
    
    .mega-category-link {
        font-size: 13px;
        padding: 8px 10px;
    }
    
    .mega-sub-links li a {
        font-size: 12px;
        padding: 4px 8px;
    }
}