/* -------------------------------------------------------------
   TITE DIPLOMA - NEW HEADER DESIGN (Pixel Perfect to Image)
   ------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

/* Full Width Header Container - Overlay on top of Hero */
.full-width-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    background: transparent !important;
}

/* -------------------------------------------------------------
   1. TOP BAR (Slightly Bigger Height: 48px)
   ------------------------------------------------------------- */
.full-width-header .rs-toolbar {
    background-color: #195883 !important;
    border-bottom: 2px solid #2087c5 !important;
    padding: 0 !important;
    height: 48px;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1002;
}

.full-width-header .rs-toolbar .container {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    padding-left: 15px;
    padding-right: 15px;
}

.tite-topbar-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.tite-topbar-links li {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

.tite-topbar-links li a {
    color: #ffffff !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    padding: 4px 12px !important;
    line-height: 1 !important;
    border: none !important;
    text-transform: none !important;
    transition: color 0.2s ease;
    letter-spacing: 0.1px;
}

.tite-topbar-links li a:hover {
    color: #aae6f5 !important;
}

.tite-topbar-links li.pipe-separator {
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
    font-weight: 300;
    user-select: none;
    padding: 0 4px;
}

/* -------------------------------------------------------------
   2. MAIN MENU AREA & FLEX ROW
   ------------------------------------------------------------- */
.full-width-header .menu-area {
    background: transparent !important;
    position: relative;
    width: 100%;
    padding: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
}

.full-width-header .menu-area .container {
    position: relative;
    padding-left: 15px;
    padding-right: 15px;
    overflow: visible !important;
}

.tite-header-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    position: relative;
    min-height: 108px;
    padding: 26px 0 20px 0;
    overflow: visible !important;
}

/* -------------------------------------------------------------
   3. RIBBON BADGE (Slightly Bigger shield & logo: 122px x 175px)
   ------------------------------------------------------------- */
.tite-ribbon-badge {
    position: absolute;
    top: 0;
    left: 15px; /* Aligns with container left edge */
    z-index: 1010;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.38));
    transition: transform 0.25s ease;
}

.tite-ribbon-badge:hover {
    transform: translateY(2px);
}

.tite-ribbon-badge a.badge-link {
    display: block;
    text-decoration: none;
    cursor: pointer;
}

.badge-ribbon-body {
    width: 110px;
    height: 145px;
    background: linear-gradient(180deg, #098da0 0%, #078ba0 76%, #185e82 100%);
    clip-path: polygon(0 0, 100% 0, 100% 84%, 50% 100%, 0 84%);
    -webkit-clip-path: polygon(0 0, 100% 0, 100% 84%, 50% 100%, 0 84%);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 36px;
}

.badge-circle {
    width: 80px;
    height: 80px;
    background-color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    padding: 7px;
    box-sizing: border-box;
}

.badge-circle img.badge-logo-img {
    max-width: 60px;
    max-height: 62px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

/* -------------------------------------------------------------
   4. WHITE CAPSULE NAVIGATION (Slightly Bigger Height: 58px)
   ------------------------------------------------------------- */
.tite-nav-capsule {
    background: #ffffff;
    border-radius: 50px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.16);
    padding: 0 34px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    margin-right: 22px;
    position: relative;
    z-index: 1005;
    overflow: visible !important;
}

.tite-nav-capsule .rs-menu {
    float: none !important;
    clear: none !important;
    width: auto !important;
    position: static !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
}

.tite-nav-capsule ul.nav-menu {
    display: flex !important;
    align-items: center;
    list-style: none;
    margin: 0 !important;
    padding: 0 !important;
    gap: 22px;
    overflow: visible !important;
}

.tite-nav-capsule ul.nav-menu > li {
    display: inline-block;
    position: relative !important;
    padding: 0;
    margin: 0;
    overflow: visible !important;
}

.tite-nav-capsule ul.nav-menu > li > a {
    color: #243c4f !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    text-transform: none !important;
    letter-spacing: 0.1px;
    display: inline-block;
    padding: 6px 3px !important;
    line-height: 1.4 !important;
    height: auto !important;
    position: relative;
    text-decoration: none !important;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.tite-nav-capsule ul.nav-menu > li > a:hover {
    color: #0c859a !important;
}

/* Active indicator underline (Home active) */
.tite-nav-capsule ul.nav-menu > li.active > a,
.tite-nav-capsule ul.nav-menu > li > a.active {
    color: #1e3a4e !important;
}

.tite-nav-capsule ul.nav-menu > li.active > a::after,
.tite-nav-capsule ul.nav-menu > li > a.active::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #0c859a;
    border-radius: 2px;
}

/* Hover bridge for seamless mouse transition */
.tite-nav-capsule ul.nav-menu > li.menu-item-has-children::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 18px;
    display: block;
}

/* Dropdown Sub-menus */
.tite-nav-capsule ul.nav-menu > li.menu-item-has-children > ul.sub-menu {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    margin-top: 10px !important;
    background: #ffffff !important;
    min-width: 250px !important;
    border-radius: 12px !important;
    padding: 8px 0 !important;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.18) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    display: block !important;
    pointer-events: none !important;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s !important;
    transform: translateY(8px) !important;
    z-index: 99999 !important;
    list-style: none !important;
}

.tite-nav-capsule ul.nav-menu > li.menu-item-has-children:hover > ul.sub-menu {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
}

.tite-nav-capsule ul.nav-menu li .sub-menu li {
    display: block;
    width: 100%;
    border-bottom: 1px solid #f2f4f6;
    margin: 0;
    padding: 0;
}

.tite-nav-capsule ul.nav-menu li .sub-menu li:last-child {
    border-bottom: none;
}

.tite-nav-capsule ul.nav-menu li .sub-menu li a {
    display: block;
    padding: 10px 20px !important;
    font-size: 13.5px !important;
    color: #333333 !important;
    text-transform: none !important;
    line-height: 1.4 !important;
    height: auto !important;
    text-align: left;
    transition: all 0.2s ease;
    font-family: 'Poppins', sans-serif !important;
    font-weight: 400 !important;
    text-decoration: none !important;
    white-space: nowrap;
}

.tite-nav-capsule ul.nav-menu li .sub-menu li a:hover {
    background-color: #edf7f9 !important;
    color: #078ca0 !important;
    padding-left: 24px !important;
}

/* -------------------------------------------------------------
   5. ONLINE APPLICATION BUTTON (Bigger Height: 56px, 15px Font)
   ------------------------------------------------------------- */
.tite-cta-btn-wrap {
    flex: 0 0 auto;
    position: relative;
    z-index: 1005;
}

.tite-online-app-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #2b5d60;
    color: #ffffff !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    padding: 0 28px;
    height: 58px;
    border-radius: 50px;
    text-decoration: none !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
    transition: all 0.25s ease;
    white-space: nowrap;
    border: none;
}

.tite-online-app-btn .btn-arrow {
    margin-left: 10px;
    font-size: 18px;
    line-height: 1;
    transition: transform 0.2s ease;
}

.tite-online-app-btn:hover {
    background: #1f494c;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.24);
}

.tite-online-app-btn:hover .btn-arrow {
    transform: translateX(3px);
}

/* -------------------------------------------------------------
   6. HERO BANNER FULL HEIGHT COVERAGE (Full Viewport Height)
   ------------------------------------------------------------- */
.home2 #rs-slider {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    overflow: hidden;
}

.home2 #rs-slider .owl-carousel,
.home2 #rs-slider .owl-stage-outer,
.home2 #rs-slider .owl-stage,
.home2 #rs-slider .owl-item,
.home2 #rs-slider .item {
    height: 100vh !important;
    min-height: 100vh !important;
    width: 100%;
}

.home2 #rs-slider .item img {
    width: 100%;
    height: 100vh !important;
    min-height: 100vh !important;
    object-fit: cover !important;
    object-position: center center;
    display: block;
}

.home2 #rs-slider .slide-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding-top: 60px;
}

/* -------------------------------------------------------------
   7. STICKY HEADER STYLES (On Scroll)
   ------------------------------------------------------------- */
.menu-sticky.sticky {
    position: fixed !important;
    top: 0 !important;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 9999;
    background: rgba(18, 55, 73, 0.92) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25) !important;
    padding: 6px 0 !important;
    animation: sticky-animation 0.4s ease-out;
}

.menu-sticky.sticky .tite-header-row {
    min-height: 64px;
    padding: 6px 0;
}

.menu-sticky.sticky .tite-ribbon-badge {
    transform: scale(0.8);
    transform-origin: top left;
}

.menu-sticky.sticky .tite-nav-capsule {
    height: 48px;
}

.menu-sticky.sticky .tite-online-app-btn {
    height: 48px;
}

/* -------------------------------------------------------------
   8. MOBILE NAVIGATION (Hidden completely on desktop)
   ------------------------------------------------------------- */
.tite-mobile-toggle {
    display: none;
    background: #088c9e;
    color: #ffffff;
    border-radius: 8px;
    padding: 10px 14px;
    cursor: pointer;
    border: none;
    margin-left: 12px;
    font-size: 20px;
    align-items: center;
    justify-content: center;
}

.tite-mobile-toggle:hover {
    background: #077989;
    color: #ffffff;
}

.tite-mobile-nav {
    display: none !important;
}

@media (max-width: 991px) {
    .full-width-header {
        position: relative !important;
        background: #185884 !important;
    }

    .tite-header-row {
        justify-content: flex-end;
        min-height: 70px;
        padding: 10px 0;
    }

    .tite-ribbon-badge {
        left: 10px;
    }

    .badge-ribbon-body {
        width: 78px;
        height: 110px;
        padding-top: 12px;
    }

    .badge-circle {
        width: 56px;
        height: 56px;
        padding: 5px;
    }

    .badge-circle img.badge-logo-img {
        max-width: 40px;
        max-height: 42px;
    }

    .tite-mobile-toggle {
        display: inline-flex;
    }

    .tite-nav-capsule {
        display: none !important;
    }

    .tite-online-app-btn {
        height: 42px;
        padding: 0 16px;
        font-size: 13px !important;
    }

    .tite-mobile-nav.open {
        display: block !important;
        background: #154566;
        width: 100%;
        padding: 15px 20px;
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
    }

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

    .tite-mobile-nav ul li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding: 8px 0;
    }

    .tite-mobile-nav ul li a {
        color: #ffffff;
        font-family: 'Poppins', sans-serif;
        font-size: 14px;
        text-decoration: none;
        display: block;
    }

    .tite-mobile-nav ul.sub-menu {
        padding-left: 15px;
        margin-top: 6px;
    }

    .tite-mobile-nav ul.sub-menu li {
        border-bottom: none;
        padding: 4px 0;
    }

    .tite-mobile-nav ul.sub-menu li a {
        color: #bce7f5;
        font-size: 13px;
    }

    .home2 #rs-slider,
    .home2 #rs-slider .owl-carousel,
    .home2 #rs-slider .owl-stage-outer,
    .home2 #rs-slider .owl-stage,
    .home2 #rs-slider .owl-item,
    .home2 #rs-slider .item {
        height: auto !important;
        min-height: 520px !important;
    }

    .home2 #rs-slider .item img {
        height: 520px !important;
        min-height: 520px !important;
        object-fit: cover !important;
    }
}

@media (max-width: 575px) {
    .full-width-header .rs-toolbar {
        height: 38px;
    }

    .tite-topbar-links li a {
        font-size: 11.5px !important;
        padding: 2px 6px !important;
    }
    
    .badge-ribbon-body {
        width: 64px;
        height: 90px;
        padding-top: 8px;
    }

    .badge-circle {
        width: 46px;
        height: 46px;
    }

    .badge-circle img.badge-logo-img {
        max-width: 32px;
        max-height: 34px;
    }

    .home2 #rs-slider,
    .home2 #rs-slider .owl-carousel,
    .home2 #rs-slider .owl-stage-outer,
    .home2 #rs-slider .owl-stage,
    .home2 #rs-slider .owl-item,
    .home2 #rs-slider .item {
        height: auto !important;
        min-height: 440px !important;
    }

    .home2 #rs-slider .item img {
        height: 440px !important;
        min-height: 440px !important;
        object-fit: cover !important;
    }
}
