
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary-color: #3A6EA5;
    --secondary-color: #5B8DBE;
    --accent-color: #A8C8E8;
    --light-color: #F3F7FB;
    --gradient-start: #3A6EA5;
    --gradient-end: #5B8DBE;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --transition-speed: 0.3s;
    --mega-menu-bg: #fff;
    --mega-menu-text: #1e293b;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: var(--light-color);
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    width: 100%;
}

/* ========================================
   NAVBAR BASE STYLES
   ======================================== */
.navbar {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    padding: 12px 0;
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar > .container,
.navbar > .container-fluid {
    display: flex;
    align-items: center;
    padding: 0 16px;
    width: 100%;
    max-width: 100%;
}

/* ========================================
   NAVBAR BRAND & LOGO
   ======================================== */
.navbar-brand {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    text-decoration: none;
}

.logo-container {
    display: inline-flex;
    align-items: center;
    margin-right: 10px;
}

.logo-circle {
    width: 40px;
    height: 40px;
    background: var(--light-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.logo-inner i {
    font-size: 18px;
    color: var(--secondary-color);
}

.brand-text {
    color: #fff;
    font-weight: 500;
    font-size: 1.2rem;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

/* ========================================
   DESKTOP NAVIGATION
   ======================================== */
.navbar-collapse {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: flex-end;
}

.navbar-nav {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-item {
    flex-shrink: 0;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9);
    padding: 10px 12px;
    border-radius: var(--border-radius);
    transition: var(--transition-speed);
    margin: 0 4px;
    display: flex;
    align-items: center;
    white-space: nowrap;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.nav-icon {
    margin-right: 6px;
}

/* ========================================
   MEGA MENU - DESKTOP
   ======================================== */
.mega-dropdown {
    position: relative;
}

/* Create an invisible bridge between nav link and mega menu */
.mega-dropdown::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 12px;
    display: none;
}

.mega-dropdown:hover::before {
    display: block;
}

.mega-menu {
    position: absolute;
    min-width: 600px;
    max-width: 800px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--mega-menu-bg);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    padding: 2rem;
    display: none;
    z-index: 1000;
    border-top: 3px solid var(--accent-color);
    top: 100%;
    margin-top: 0;
}

.nav-item:last-child .mega-menu {
    left: auto;
    right: 0;
    transform: none;
}

.mega-dropdown:hover .mega-menu {
    display: block;
}

.mega-menu-content {
    width: 100%;
}

.mega-menu-content .row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.mega-menu-content .col-md-4,
.mega-menu-content .col-md-6,
.mega-menu-content .col-md-12 {
    padding: 0 15px;
}

.mega-menu-content .col-md-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
}

.mega-menu-content .col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
}

.mega-menu-content .col-md-12 {
    flex: 0 0 100%;
    max-width: 100%;
}

.mega-menu-title {
    color: var(--primary-color);
    font-size: 0.7rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
}

.mega-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mega-menu-list li {
    margin-bottom: 0.25rem;
}

.mega-menu-list a {
    color: var(--mega-menu-text);
    text-decoration: none;
    padding: 0.65rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-radius: 8px;
    transition: var(--transition-speed);
    font-size: 0.85rem;
    font-weight: 500;
}

.mega-menu-list a:hover {
    background: rgba(168, 200, 232, 0.3);
    color: var(--primary-color);
    transform: translateX(5px);
}

/* ========================================
   SEARCH FORM
   ======================================== */
.search-form {
    min-width: 180px;
    margin-left: 10px;
    display: flex;
}

.search-input {
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    border: none;
    padding: 10px 14px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.05);
    width: 100%;
    height: 40px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--mega-menu-text);
}

.search-btn {
    background: var(--light-color);
    color: var(--primary-color);
    border: none;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    padding: 10px 14px;
    height: 40px;
    cursor: pointer;
    transition: var(--transition-speed);
}

.search-btn:hover {
    background: var(--accent-color);
}

/* ========================================
   HAMBURGER MENU BUTTON (Mobile Only)
   ======================================== */
.navbar-toggler {
    display: none;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    position: relative;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.navbar-toggler:hover {
    background: rgba(255, 255, 255, 0.1);
}

.navbar-toggler-icon {
    display: block;
    width: 24px;
    height: 2px;
    background: white;
    position: relative;
    transition: all 0.3s ease;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: white;
    left: 0;
    transition: all 0.3s ease;
}

.navbar-toggler-icon::before {
    top: -7px;
}

.navbar-toggler-icon::after {
    bottom: -7px;
}

/* ========================================
   DESKTOP RESPONSIVE STYLES
   ======================================== */
@media (min-width: 992px) {
    .navbar {
        padding: 12px 0;
    }

    .navbar > .container,
    .navbar > .container-fluid {
        padding: 0 20px;
    }

    .navbar-brand {
        margin-right: 3rem;
    }

    .logo-circle {
        width: 44px;
        height: 44px;
    }

    .brand-text {
        font-size: 1.3rem;
    }

    .nav-link {
        padding: 12px 14px;
        margin: 0 6px;
        font-size: 1rem;
    }
}

@media (min-width: 1200px) {
    .navbar > .container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 24px;
    }
}

/* ========================================
   MOBILE NAVIGATION DESIGN
   ======================================== */
@media (max-width: 991px) {
    /* Show hamburger button */
    .navbar-toggler {
        display: flex;
    }

    /* Animated hamburger to X */
    .navbar-collapse.show ~ .navbar-toggler .navbar-toggler-icon {
        background: transparent;
    }

    .navbar-collapse.show ~ .navbar-toggler .navbar-toggler-icon::before {
        transform: rotate(45deg);
        top: 0;
    }

    .navbar-collapse.show ~ .navbar-toggler .navbar-toggler-icon::after {
        transform: rotate(-45deg);
        bottom: 0;
    }

    /* Full-screen mobile menu with slide-in animation */
    .navbar-collapse {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(180deg, rgba(58, 110, 165, 0.98) 0%, rgba(91, 141, 190, 0.98) 100%);
        backdrop-filter: blur(20px);
        transform: translateX(-100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        overflow-x: hidden;
        padding: 1rem 0 2rem 0;
        display: block !important;
        opacity: 0;
        -webkit-overflow-scrolling: touch;
    }

    .navbar-collapse.show {
        transform: translateX(0);
        opacity: 1;
    }

    /* Staggered fade-in animation for menu items */
    .navbar-collapse.show .nav-item {
        animation: slideInLeft 0.4s ease forwards;
        opacity: 0;
    }

    .navbar-collapse.show .nav-item:nth-child(1) { animation-delay: 0.05s; }
    .navbar-collapse.show .nav-item:nth-child(2) { animation-delay: 0.1s; }
    .navbar-collapse.show .nav-item:nth-child(3) { animation-delay: 0.15s; }
    .navbar-collapse.show .nav-item:nth-child(4) { animation-delay: 0.2s; }
    .navbar-collapse.show .nav-item:nth-child(5) { animation-delay: 0.25s; }
    .navbar-collapse.show .nav-item:nth-child(6) { animation-delay: 0.3s; }
    .navbar-collapse.show .nav-item:nth-child(7) { animation-delay: 0.35s; }
    .navbar-collapse.show .nav-item:nth-child(8) { animation-delay: 0.4s; }
    .navbar-collapse.show .nav-item:nth-child(9) { animation-delay: 0.45s; }

    @keyframes slideInLeft {
        from {
            opacity: 0;
            transform: translateX(-30px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    .navbar-nav {
        flex-direction: column;
        width: 100%;
        padding: 0 1rem;
    }

    /* Modern card-style menu items */
    .nav-item {
        width: 100%;
        margin-bottom: 0.4rem;
    }

    .nav-link {
        background: rgba(255, 255, 255, 0.12);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.18);
        border-radius: 14px;
        padding: 14px 18px;
        margin: 0;
        width: 100%;
        font-size: 0.95rem;
        font-weight: 500;
        color: white;
        display: flex;
        align-items: center;
        justify-content: space-between;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
    }

    .nav-link:hover,
    .nav-link:active {
        background: rgba(255, 255, 255, 0.2);
        border-color: rgba(255, 255, 255, 0.3);
        transform: translateX(8px);
    }

    /* Dropdown indicator */
    .mega-dropdown > .nav-link::after {
        content: '›';
        font-size: 1.5rem;
        font-weight: 300;
        transition: transform 0.3s ease;
        margin-left: auto;
    }

    .mega-dropdown.show > .nav-link::after {
        transform: rotate(90deg);
    }

    /* Accordion-style submenu */
    .mega-menu {
        position: static;
        transform: none;
        background: rgba(255, 255, 255, 0.08);
        backdrop-filter: blur(15px);
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 14px;
        padding: 0.75rem;
        margin: 0.4rem 0 0 0;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    .mega-dropdown.show .mega-menu {
        max-height: 2000px;
        opacity: 1;
        margin-top: 0.5rem;
    }

    .mega-menu-content .row {
        display: block;
    }

    .mega-menu-content .col-md-4,
    .mega-menu-content .col-md-6,
    .mega-menu-content .col-md-12 {
        width: 100%;
        margin-bottom: 1rem;
    }

    .mega-menu-content .col-md-4:last-child,
    .mega-menu-content .col-md-6:last-child,
    .mega-menu-content .col-md-12:last-child {
        margin-bottom: 0;
    }

    .mega-menu-title {
        color: white;
        font-size: 0.7rem;
        font-weight: 700;
        letter-spacing: 0.5px;
        margin-bottom: 0.5rem;
        padding-bottom: 0.4rem;
        border-bottom: 2px solid rgba(255, 255, 255, 0.25);
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .mega-menu-title i {
        font-size: 0.9rem;
        opacity: 0.9;
    }

    .mega-menu-list {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .mega-menu-list li {
        margin-bottom: 0.2rem;
    }

    .mega-menu-list a {
        color: rgba(255, 255, 255, 0.95);
        background: rgba(255, 255, 255, 0.05);
        backdrop-filter: blur(5px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        text-decoration: none;
        padding: 10px 14px;
        display: flex;
        align-items: center;
        gap: 10px;
        border-radius: 10px;
        transition: all 0.25s ease;
        font-size: 0.85rem;
        font-weight: 500;
    }

    .mega-menu-list a:hover,
    .mega-menu-list a:active {
        background: rgba(255, 255, 255, 0.15);
        border-color: rgba(255, 255, 255, 0.25);
        transform: translateX(6px);
        color: white;
    }

    .mega-menu-list a i {
        font-size: 0.9rem;
        opacity: 0.85;
        min-width: 18px;
    }

    .search-form {
        width: calc(100% - 2rem);
        margin: 1.5rem 1rem 0;
    }
}

/* ========================================
   FOOTER STYLES
   ======================================== */
footer {
    background: #111827;
    color: #9ca3af;
    font-size: 0.9rem;
}

footer h5,
footer h6 {
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

footer a {
    color: #9ca3af;
    transition: 0.3s;
    text-decoration: none;
}

footer a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-bottom {
    background: #0b0f1a;
    padding: 1.5rem 0;
}

.social-icon {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-right: 10px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: #3b82f6;
    color: #fff;
    transform: translateY(-3px);
    padding-left: 0;
}

/* ========================================
   PAGE HERO SECTION
   ======================================== */
.page-hero {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: #fff;
    padding: 100px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.page-hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn-custom-primary {
    background: var(--primary-color);
    color: #fff;
    border: none;
    transition: 0.3s;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 500;
}

.btn-custom-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(58, 110, 165, 0.2);
}

/* ========================================
   WIDGETS
   ======================================== */
.uc-widget {
    background: #fff;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
    color: var(--mega-menu-text);
}

.uc-widget + .uc-widget {
    margin-top: 1rem;
}

.uc-widget-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.75rem;
}

.uc-widget-icon {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--light-color);
    color: var(--secondary-color);
    font-size: 1.1rem;
    margin-right: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    flex-shrink: 0;
}

.uc-widget-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.uc-widget-text {
    color: #475569;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.uc-widget-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.uc-widget-link:hover {
    text-decoration: underline;
}

.uc-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--light-color);
    border-radius: 8px;
    margin-right: 8px;
    color: var(--secondary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.18s, background 0.18s;
    text-decoration: none;
}

.uc-social:hover {
    transform: translateY(-3px);
    background: var(--accent-color);
    color: var(--primary-color);
}

.uc-small-link {
    display: inline-flex;
    gap: 0.6rem;
    align-items: center;
    background: #f8fafc;
    border-radius: 10px;
    padding: 0.5rem 0.75rem;
    color: #0f172a;
    text-decoration: none;
    font-weight: 600;
    margin: 0.35rem 0.35rem 0 0;
    box-shadow: 0 2px 6px rgba(2, 6, 23, 0.04);
    transition: transform 0.15s, box-shadow 0.15s;
}

.uc-small-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(2, 6, 23, 0.06);
}

.uc-widget.feature-box {
    text-align: center;
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    transition: var(--transition-speed);
}

.uc-widget.feature-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    border-color: var(--accent-color);
}

/* ========================================
   BREADCRUMB
   ======================================== */
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}

.breadcrumb a {
    text-decoration: none;
    color: inherit;
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

.breadcrumb-item + .breadcrumb-item::before {
    content: '\203A';
    padding: 0 0.5rem;
    color: #94a3b8;
    font-weight: 600;
}

/* ========================================
   ACCESSIBILITY
   ======================================== */
*:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 10000;
    border-radius: 0 0 4px 0;
    font-weight: 500;
}

.skip-link:focus {
    top: 0;
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.container {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

@media (min-width: 576px) {
    .container {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

.container-fluid {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.g-0 {
    margin-right: 0;
    margin-left: 0;
}

.g-0 > * {
    padding-right: 0;
    padding-left: 0;
}

.d-flex {
    display: flex !important;
}

.align-items-center {
    align-items: center !important;
}

.justify-content-between {
    justify-content: space-between !important;
}

.me-auto {
    margin-right: auto !important;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.text-center {
    text-align: center !important;
}

.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-5 { margin-top: 3rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }
.py-3 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
.py-4 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
.py-5 { padding-top: 3rem !important; padding-bottom: 3rem !important; }