/* =========================================
   0. CUSTOM COLORS SETTINGS
   ========================================= */
:root {
    /* CHANGE THIS HEX CODE TO UPDATE THE COLOR EVERYWHERE */
    --custom-color: #c5d9ea;
    --theme-dark: #43679b; /* Kept for reference if needed */
    --text-dark: black;
}

/* Utility Classes (Apply these in HTML if needed) */
.custom-text-color { color: var(--custom-color) !important; }
.custom-bg-color { background-color: var(--custom-color) !important; }
.custom-border-color { border-color: var(--custom-color) !important; }
.custom-dark-text-color { color: var(--theme-dark) !important; }
.custom-dark-bg-color { background-color: var(--theme-dark) !important; }
.custom-text-dark { color: var(--text-dark) !important; }

/* =========================================
   1. FLOAT HEADER (Desktop Base)
   ========================================= */
.float-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 190px; /* Thinner height */
    z-index: 9999;

    /* BACKGROUND IMAGE */
    background-image: url('../img/background.png');
    background-size: 100% 100%; /* Force fit */
    background-position: center top;
    background-repeat: no-repeat;

    /* ANIMATION */
    transition: transform 0.4s ease-in-out;
    pointer-events: none;
}

/* Hide header on scroll down */
.float-header.hide-header {
    transform: translateY(-100%);
}

/* Content Container */
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px 50px 50px 50px;
    height: 100%;
    width: 100%;
}

/* Enable clicking on Nav and Logo */
.nav-part, .logo-part, .mobile-toggle {
    pointer-events: auto;
}

/* =========================================
   2. DESKTOP NAVIGATION & DROPDOWNS
   ========================================= */
.nav-part {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 15px;
}
.nav-part.left { justify-content: flex-start; }
.nav-part.right { justify-content: flex-end; }

/* Wrapper */
.nav-item-wrapper {
    position: relative;
    padding: 10px 0;
}

/* Main Top Links */
.nav-item {
    position: relative;
    padding: 10px 12px;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 13px;
    color: #ffffff !important;
    text-decoration: none !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease;
    border: none !important;
}

.nav-item:hover {
    color: var(--custom-color) !important; /* Updated to use variable */
}

.nav-item i {
    font-size: 10px;
    opacity: 0.8;
}

/* --- DROPDOWNS (Pure CSS) --- */
.custom-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);

    /* Updated Border Color */
    border-top: 3px solid var(--custom-color);

    border-radius: 0 0 4px 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.2s ease-in-out;
    min-width: 220px;
    padding: 15px 0;
    text-align: left;
    z-index: 10000;
}

.nav-item-wrapper:hover .custom-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.custom-dropdown a {
    display: block;
    padding: 8px 20px;
    color: #333333 !important;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none !important;
    border-bottom: 1px solid #f5f5f5;
    transition: background 0.2s;
}
.custom-dropdown a:last-child { border-bottom: none; }

.custom-dropdown a:hover {
    background-color: #f4f4f4;
    color: var(--custom-color) !important; /* Updated Text Hover Color */
    padding-left: 30px;
}

/* --- MEGA MENU --- */
.custom-dropdown.mega-menu {
    min-width: 750px;
    left: -50px;
    padding: 25px;
    display: flex;
    flex-wrap: wrap;
}

.custom-dropdown.mega-menu h6 {
    color: var(--custom-color); /* Updated Header Color */
    font-weight: 800;
    text-transform: uppercase;
    font-size: 13px;
    margin-bottom: 12px;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
    display: block;
    width: 100%;
}

.mega-column {
    padding: 0 15px;
}

/* =========================================
   3. RESPONSIVE (Tablets & Desktops resizing)
   ========================================= */
@media (max-width: 1200px) {
    .float-header { height: 120px; }
    .header-content { padding: 0 20px 20px 20px; }
}

/* =========================================
   4. MOBILE & TABLET STYLES (Max-width 991px)
   ========================================= */
@media (max-width: 991px) {

    .float-header {
        height: 80px !important;
        background-image: none !important;

        /* Updated Mobile Header Background */
        background-color: #0f2348;

        backdrop-filter: blur(10px);
        pointer-events: auto;
    }
    /* 2. Fix Slider Layout */
          /* 2. Push Slider Down below the 80px Header */
        #home {
            padding-top: 80px !important; /* Uses padding to ensure background continuity */
            height: auto !important;      /* Stop it from being 100vh (full screen) */
            min-height: 250px;            /* Safety: Ensures it never disappears completely */
        }

        /* 3. Force the internal carousel wrapper to fit the image height */
        #home .owl-stage-outer {
            height: auto !important;      /* Overrides JS calculation that might hide it */
            min-height: 250px;
        }

        /* 4. Ensure Images/Videos scale correctly and are visible */
        #home .owl-item img, 
        #home .owl-item video {
            width: 100% !important;
            height: auto !important;      /* Maintains aspect ratio */
            max-height: none !important;  /* Prevents theme from cropping it */
            display: block !important;
        }

    .header-content {
        padding: 0 20px;
        flex-direction: row !important;
        justify-content: space-between;
        align-items: center;
    }

    .nav-part { display: none; }

    .logo-part img {
        width: 150px;
        height: auto;
    }

    .mobile-toggle {
        display: block;
        background: none;
        border: none;
        color: #fff;
        font-size: 24px;
        cursor: pointer;
        padding: 10px;
        z-index: 1001;
    }
}

/* =========================================
   5. MOBILE MENU DROPDOWN
   ========================================= */
.mobile-menu {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    height: calc(100vh - 80px);

    /* Updated Mobile Menu Background */
   /* --- UPDATE THESE LINES --- */
    background-color: #0f2348 !important; /* Forces the Dark Blue */
    background-image: none !important;    /* Removes any transparent gradients */
    opacity: 0;             /* Ensures it is not see-through */

    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 0;
    overflow-y: auto;


    visibility: hidden;
    transform: translateY(-20px);
    transition: all 0.3s ease-in-out;
    border-top: 1px solid rgba(255,255,255,0.1);
    pointer-events: auto;
}

.mobile-menu a {
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 600;
    padding: 15px;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: block;
}

.mobile-menu a:hover {
    background-color: rgba(255,255,255,0.1);
}

.float-header.mobile-open .mobile-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

@media (max-width: 480px) {
    .logo-part img { width: 120px; }
    .header-content { padding: 0 15px; }
}