/* ===========================================================
   MAIN BANNER LAYOUT
   ===========================================================*/
.banner-layout {
    position: relative;
    display: flex;
    width: 100%;
    height: 550px;
    overflow: hidden;
}


/* ===========================================================
   LEFT CONTENT AREA – PROFESSIONAL BACKGROUND
   ===========================================================*/
.banner-left {
    width: 40%;
    padding: 70px 60px;
    display: flex;
    justify-content: center;
    align-items: center;

    /* PRO background — smooth NGO/corporate gradient */
    background: linear-gradient(135deg, #f3faff, #d9edf7, #c5e4f3);

    position: relative;
    z-index: 3;
}

.banner-caption {
    max-width: 500px;
    text-align: left;
}

.banner-caption h1,
.banner-caption h5 {
    color: #00334d !important;
}


/* ===========================================================
   CENTER CURVED DIVIDER – PREMIUM WAVE SHAPE
   ===========================================================*/
.banner-curve {
    width: 10%;
    background: linear-gradient(180deg, #004766, #007ea6);
    position: relative;
    z-index: 4;

    /* Beautiful S-curve shape */
    clip-path: path(
        "M 0 0 
         C 90 180, 90 420, 0 650 
         L 140 650 
         L 140 0 
         Z"
    );
}


/* ===========================================================
   RIGHT IMAGE AREA
   ===========================================================*/
.banner-right {
    width: 60%;
    height: 100%;
    position: relative;
}

.banner-img {

    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top; /* adjust focus */
    
}

/* ===========================================================
   BUTTONS – PREMIUM ROUND STYLE
   ===========================================================*/
.btn-primary {
    background: #004766 !important;
    border: none !important;
    border-radius: 40px;
    padding: 12px 32px !important;
    font-size: 17px;
}

.btn-outline-primary {
    border-radius: 40px !important;
    padding: 12px 32px !important;
    font-size: 17px;
    color: #004766 !important;
    border: 2px solid #004766 !important;
}

.btn-outline-primary:hover {
    background: #004766 !important;
    color: #ffffff !important;
}
/* =====================================================
   PREMIUM SMOOTH SLIDE EFFECT (no jerk, no flicker)
   ===================================================== */
.carousel.slide .carousel-item {
    transition: transform 0.9s cubic-bezier(0.4, 0.08, 0.25, 1);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: drop-shadow(0 0 3px rgba(0,0,0,0.4));
}

/* ===========================================================
   MOBILE RESPONSIVE
   ===========================================================*/
/* ================== MOBILE FIX ================== */
@media (max-width: 768px) {

    .banner-layout {
        flex-direction: column;
        height: auto;
        width: 100%;
    }

    /* IMAGE FIRST – FULL WIDTH */
    .banner-right {
        order: 1;
        width: 100%;
        height: 260px;
    }

    .banner-right img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* REMOVE CURVE COMPLETELY ON MOBILE */
    .banner-curve {
        display: none !important;
    }

    /* CONTENT BELOW IMAGE */
    .banner-left {
        order: 2;
        width: 100%;
        padding: 35px 20px;
        background: #f4fbff; /* clean subtle color */
        text-align: center !important;
    }

    .banner-caption {
        text-align: center !important;
    }

    /* Resize titles */
    .banner-caption h1 {
        font-size: 26px !important;
        line-height: 32px !important;
    }

    .banner-caption h5 {
        font-size: 14px !important;
    }

    /* Buttons mobile layout */
    .banner-caption .btn-primary,
    .banner-caption .btn-outline-primary {
        display: inline-block;
        width: auto;
        padding: 10px 24px !important;
        margin: 8px 5px !important;
        font-size: 15px;
        border-radius: 40px;
    }
}


/* ============================================================
   FULL NAVIGATION BAR BACKGROUND
   ============================================================ */
.navbar {
    background: #004766 !important;
    padding: 10px 35px;
}

/* ============================================================
   NAV LINKS (REDUCED FONT SIZE)
   ============================================================ */
   
.navbar .nav-link {
    position: relative;
    color: #e8f6ff !important;
    font-weight: 600;
    font-size: 14px;               /* reduced */
    padding: 8px 14px !important;  /* reduced */
    margin: 0 3px;
    border-radius: 6px;
    transition: 0.3s ease;
}

/* HOVER */
.navbar .nav-link:hover {
    background: rgba(255,255,255,0.18) !important;
    color: #ffffff !important;
    padding: 8px 18px !important; /* slightly expands on hover */
}

/* ACTIVE */
.navbar .nav-link.active {
    background: #ffffff !important;
    color: #004766 !important;
    padding: 8px 18px !important;
    font-weight: 700;
    border-radius: 6px;
    font-size: 15px;
}

/* ============================================================
   DROPDOWN MENU
   ============================================================ */
.navbar .dropdown-menu {
    background: #ffffff;
    border-radius: 10px;
    padding: 6px 0;
    border: none;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.navbar .dropdown-item {
    color: #004766 !important;
    font-weight: 500;
    font-size: 15px;           /* reduced */
    padding: 8px 14px;         /* reduced */
}

.navbar .dropdown-item:hover {
    background: #004766;
    color: #ffffff !important;
}

/* ============================================================
   GALLERY BUTTON (REDUCED SIZE)
   ============================================================ */
.navbar .btn-primary {
    background: #002f40 !important;
    color: #ffffff !important;
    font-weight: 600;
    font-size: 13px;                 /* reduced */
    border-radius: 50px;
    padding: 8px 20px !important;    /* reduced */
    border: 2px solid #ffffff !important;
}

.navbar .btn-primary:hover {
    background: #ffffff !important;
    color: #004766 !important;
}
/* SUBMENU BASE */
.dropdown-submenu {
    position: relative;
    color: #003b55;
}

.dropdown-submenu .submenu {
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    background: #ffffff;
    border-radius: 10px;
    min-width: 220px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    
}

/* SHOW SUBMENU ON HOVER */
.dropdown-submenu:hover .submenu {
    display: block;
    
}

/* Right arrow icon for submenu */
.dropdown-submenu > .dropdown-toggle::after {
    content: "▶";
    float: right;
    font-size: 10px;
    margin-top: 5px;
    
}

/* ============================================================
   MOBILE NAV STYLE
   ============================================================ */
@media (max-width: 992px) {

    .navbar {
        padding: 8px 20px;
    }

    .navbar .navbar-nav {
        background: #004766;
        padding: 12px 10px;
        border-radius: 10px;
        margin-top: 10px;
    }

    .navbar .nav-link {
        font-size: 14px;
        padding: 10px 12px !important;
        border-radius: 6px;
    }

    .navbar .nav-link:hover,
    .navbar .nav-link.active {
        background: rgba(255,255,255,0.2) !important;
        color: #ffffff !important;
    }

    .navbar .dropdown-item {
        font-size: 13px;
        padding: 8px 12px;
    }
    /* MOBILE SUBMENU FIX */
/* Disable desktop submenu absolute positioning */
    .dropdown-submenu .submenu {
    position: relative !important;     /* keep inside list */
    left: 0 !important;
    top: 0 !important;
    min-width: 100% !important;
    background: #004766 !important;    /* match mobile menu background */
    padding: 8px 15px !important;
    margin: 5px 0 0 0 !important;
    border: none !important;
    box-shadow: none !important;
    border-left: 2px solid rgba(255,255,255,0.2) !important;
    display: none;
}

/* disable desktop hover behavior */
.dropdown-submenu:hover .submenu {
    display: none !important;
}

/* click-based open */
.dropdown-submenu.open .submenu {
    display: block !important;
}

/* Mobile submenu item styling */
.dropdown-submenu .submenu .dropdown-item {
    color: #dbefff !important;
    padding: 6px 10px !important;
    font-size: 13px !important;
}

/* Arrow for mobile */
.dropdown-submenu > .dropdown-toggle::after {
    content: "▼" !important;
    float: right;
    margin-top: 4px;
    font-size: 12px;
    color: #dbefff;
}

/* Rotate arrow on open */
.dropdown-submenu.open > .dropdown-toggle::after {
    transform: rotate(180deg);
}
}