/* ==========================
   Partners Glassmorphism
========================== */
.click-hint {
    margin-top: 12px;
    font-size: 12px;
    font-weight: 500;
    color: #FFFFFF;
}

.partner-section {
    background: linear-gradient(135deg, #f4f8ff, #eef5ff);
    position: relative;
    overflow: hidden;
}

.partner-section .container {
    position: relative;
    z-index: 1;
}

.partner-section::before {
    content: "";
    position: absolute;
    width: 350px;
    height: 350px;
    background: rgba(13, 110, 253, 0.15);
    border-radius: 50%;
    top: -120px;
    left: -120px;
    filter: blur(80px);
}

.partner-section::after {
    content: "";
    position: absolute;
    width: 350px;
    height: 350px;
    background: rgba(255, 140, 0, 0.15);
    border-radius: 50%;
    bottom: -120px;
    right: -120px;
    filter: blur(80px);
}

.partner-link {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.partner-link:hover {
    color: inherit;
    text-decoration: none;
}

.partner-card {
    position: relative;
    background: linear-gradient(130deg, #024A94, #C8CDD0, #FFFFFF, #C8CDD0, #C8CDD0, #FFFFFF, #BDF367);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    padding: 30px 20px;
    text-align: center;
    transition: all .4s ease;
    box-shadow: 0 32px 22px rgba(31, 38, 135, 0.15);
    overflow: hidden;
    height: 100%;
}

.partner-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.partner-card::before {
    content: "";
    position: absolute;
    width: 200px;
    height: 200px;
    background: linear-gradient(#024A94, #74973D, #024A94);
    opacity: 0.2;
    border-radius: 50%;
    top: -80px;
    right: -80px;
    filter: blur(40px);
}

.partner-logo {
    width: 220px;
    height: 70px;
    object-fit: contain;
    margin: auto;
    display: block;
    transition: .4s;
}

.partner-card:hover .partner-logo {
    transform: scale(1.08);
}

.partner-name {
    margin-top: 20px;
    font-size: 18px;
    font-weight: 700;
    color: #F5813A;
}

.partner-desc {
    font-size: 14px;
    color: #6c757d;
    margin-top: 8px;
}

@media (max-width: 768px) {
    .partner-logo {
        width: 140px;
        height: 60px;
    }
}


/********** Template CSS **********/
:root {
    --primary: #FE5D37;
    --light: #FFF5F3;
    --dark: #103741;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Button ***/
.btn {
    font-weight: 500;
    transition: .5s;
}

.btn.btn-primary {
    color: #FFFFFF;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
    border-radius: 50px;
}


/*** Heading ***/
h1,
h2,
h3,
h4,
.h1,
.h2,
.h3,
.h4,
.display-1,
.display-2,
.display-3,
.display-4,
.display-5,
.display-6 {
    font-family: 'Lobster Two', cursive;
    font-weight: 700;
}

h5,
h6,
.h5,
.h6 {
    font-weight: 600;
}

.font-secondary {
    font-family: 'Lobster Two', cursive;
}

.font {
    font-family: 'French Script MT', cursive;
}

.logo-text {
    font-family: 'French Script MT', cursive;
    color: green;
    font-size: 45px;
}


/*** Navbar ***/
.navbar .navbar-nav .nav-link {
    padding: 30px 15px;
    color: var(--dark);
    font-weight: 500;
    outline: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--primary);
}

.navbar.sticky-top {
    top: -100px;
    transition: .5s;
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 5px;
    transition: .5s;
}

.navbar .dropdown-toggle[aria-expanded=true]::after {
    transform: rotate(-180deg);
}




/* ===================================================
   LEOSCI Scientific Palette & Dropdown Styling
=================================================== */

:root {
    --leosci-navy: #0a2540;
    --leosci-cyan: #0284c7;
    --leosci-cyan-light: rgba(2, 132, 199, 0.1);
    --leosci-teal: #0d9488;
    --leosci-teal-light: rgba(13, 148, 136, 0.1);
}

/* ===================================================
   LEOSCI Brand Logo Dropdown Styling
=================================================== */

:root {
    --leosci-navy: #0a2540;
    --leosci-cyan: #0284c7;
    --leosci-cyan-light: rgba(2, 132, 199, 0.1);
    --leosci-teal: #0d9488;
    --leosci-teal-light: rgba(13, 148, 136, 0.1);
}

/* Dropdown Container */
.leosci-dropdown .dropdown-menu {
    min-width: 350px;
    margin-top: 0;
    border-radius: 16px !important;
    background: #ffffff;
    box-shadow: 0 15px 35px -5px rgba(10, 37, 64, 0.15), 0 5px 15px rgba(0, 0, 0, 0.05) !important;
    border-top: 3px solid var(--leosci-cyan) !important;
}

/* Color Accents & Badges */
.text-cyan { color: var(--leosci-cyan) !important; }
.text-teal { color: var(--leosci-teal) !important; }

.bg-cyan-subtle { background-color: rgba(2, 132, 199, 0.12); }
.bg-teal-subtle { background-color: rgba(13, 148, 136, 0.12); }

.small-badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.25em 0.6em;
}

/* Brand Logo Container Styling */
.brand-logo-container {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-color: #e2e8f0 !important;
    transition: all 0.25s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.03);
}

.brand-logo-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* Keeps logo proportions perfect inside container */
}

.brand-title {
    color: var(--leosci-navy);
    font-size: 0.98rem;
    transition: color 0.2s ease;
}

.brand-desc {
    font-size: 0.78rem;
    margin-top: 2px;
}

/* Card Hover Interactions */
.leosci-card {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.arrow-icon {
    font-size: 0.8rem;
    color: #94a3b8;
    opacity: 0;
    transform: translateX(-5px);
    transition: all 0.25s ease;
}

.leosci-card:hover {
    background-color: #ffffff;
    border-color: var(--leosci-cyan);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(2, 132, 199, 0.12);
}

.leosci-card:hover .brand-title {
    color: var(--leosci-cyan);
}

.leosci-card:hover .brand-logo-container {
    border-color: var(--leosci-cyan) !important;
    transform: scale(1.05);
}

.leosci-card:hover .arrow-icon {
    opacity: 1;
    transform: translateX(0);
    color: var(--leosci-cyan);
}

/* Enable Desktop Hover Activation */
@media (min-width: 992px) {
    .leosci-dropdown:hover .dropdown-menu {
        display: block !important;
        animation: leosciFadeIn 0.25s ease-out forwards;
    }
}

@keyframes leosciFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}






@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar .navbar-nav {
        margin-top: 15px;
        border-top: 1px solid #EEEEEE;
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        top: calc(100% - 15px);
        margin-top: 0;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        opacity: 1;
    }
}

/*** Header Styles ***/

/* Top Wavy Decorative Borders */
.header-carousel::before,
.page-header::before,
.page-hheader::before,
.page-headr::before,
.page-headers::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 10px;
    top: 0;
    left: 0;
    background: url(../img/bg-header-top.png) center center repeat-x;
    z-index: 2;
}

/* Bottom Wavy Decorative Borders */
.header-carousel::after,
.page-header::after,
.page-hheader::after,
.page-headr::after,
.page-headers::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 19px;
    bottom: 0;
    left: 0;
    background: url(../img/bg-header-bottom.png) center center repeat-x;
    z-index: 2;
}

/* Base Page Header Setup (Required for fixed navbar) */
.page-header,
.page-hheader,
.page-headr,
.page-headers {
    position: relative;
    width: 100%;
    min-height: 320px;
    padding-top: 130px !important; /* Offsets height from fixed navbar */
    padding-bottom: 60px !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    z-index: 1;
}

/* Specific Header Background Images */
.page-header {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('../img/carousel-1.jpg');
}
.page-headr {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('../img/carousel-2211.jpg');
}

.page-hheader {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('../img/carousel-112.jpg');
}

.page-headers {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('../img/carousel-2.jpg');
}

/* Header Carousel Mobile View */
@media (max-width: 768px) {
    .header-carousel .owl-carousel-item {
        position: relative;
        min-height: 500px;
    }

    .header-carousel .owl-carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .header-carousel .owl-carousel-item p {
        font-size: 16px !important;
        font-weight: 400 !important;
    }

    .header-carousel .owl-carousel-item h1 {
        font-size: 30px;
        font-weight: 600;
    }
}

.header-carousel .owl-nav {
    position: absolute;
    top: 50%;
    right: 8%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
}

.header-carousel .owl-nav .owl-prev,
.header-carousel .owl-nav .owl-next {
    margin: 7px 0;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: transparent;
    border: 1px solid #FFFFFF;
    border-radius: 45px;
    font-size: 22px;
    transition: .5s;
}



.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, .5);
}

/* Corner Badge Container Setup */
.product-card {
    position: relative;
    overflow: hidden;
}
/* Red Corner Strip / Ribbon */
.corner-ribbon {
    width: 270px;                  /* Increased width to accommodate larger font */
    background: #dc3545;
    color: #ffffff;
    text-align: center;
    font-size: 1.8rem;             /* Increased text size (from 0.65rem) */
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    line-height: 32px;             /* Taller ribbon height (from 22px) */
    position: absolute;
    top: 32px;                     /* Adjusted position for the larger banner */
    left: -42px;                    /* Adjusted offset for clean alignment */
    transform: rotate(-45deg);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 10;
    pointer-events: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


.modal-content {
    position: relative;
    overflow: hidden; /* Clips ribbon overflow outside the modal border */
}

.corner-ribbon {
    width: 140px;
    background: #dc3545;
    color: #ffffff;
    text-align: center;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    line-height: 22px;
    position: absolute;
    top: 16px;
    left: -38px;
    transform: rotate(-45deg);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
    z-index: 10;
    pointer-events: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/*** Facility ***/
.facility-item .facility-icon {
    position: relative;
    margin: 0 auto;
    width: 100px;
    height: 100px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.facility-item .facility-icon::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(255, 255, 255, .9);
    transition: .5s;
    z-index: 1;
}

.facility-item .facility-icon span {
    position: absolute;
    content: "";
    width: 15px;
    height: 30px;
    top: 0;
    left: 0;
    border-radius: 50%;
}

.facility-item .facility-icon span:last-child {
    left: auto;
    right: 0;
}

.facility-item .facility-icon i {
    position: relative;
    z-index: 2;
}

.facility-item .facility-text {
    position: relative;
    min-height: 250px;
    padding: 30px;
    border-radius: 100%;
    display: flex;
    text-align: center;
    justify-content: center;
    flex-direction: column;
}

.facility-item .facility-text::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(255, 255, 255, .9);
    transition: .5s;
    z-index: 1;
}

.facility-item .facility-text * {
    position: relative;
    z-index: 2;
}

.facility-item:hover .facility-icon::before,
.facility-item:hover .facility-text::before {
    background: transparent;
}

.facility-item * {
    transition: .5s;
}

.facility-item:hover * {
    color: #FFFFFF !important;
}


/*** About ***/
.about-img img {
    transition: .5s;
}

.about-img img:hover {
    background: var(--primary) !important;
}


/*** Classes ***/
.classes-item {
    transition: .5s;
}

.classes-item:hover {
    margin-top: -10px;
}


/*** Team ***/
.team-item .team-text {
    position: absolute;
    width: 250px;
    height: 250px;
    bottom: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background: #FFFFFF;
    border: 17px solid var(--light);
    border-radius: 250px;
    transition: .5s;
}

.team-item:hover .team-text {
    border-color: var(--primary);
}

@media (max-width: 576px) {
    .team-item .team-text {
        width: 200px;
        height: 200px;
        border-width: 12px;
    }
}


/*** Testimonial ***/
.testimonial-carousel {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

@media (min-width: 576px) {
    .testimonial-carousel {
        padding-left: 4rem;
        padding-right: 4rem;
    }
}

.testimonial-carousel .testimonial-item .border {
    border: 1px dashed rgba(0, 185, 142, .3) !important;
}

.testimonial-carousel .owl-nav {
    position: absolute;
    width: 100%;
    height: 45px;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    z-index: 1;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    position: relative;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: var(--primary);
    border-radius: 45px;
    font-size: 20px;
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    background: var(--dark);
}


/*** Footer ***/
.footer .btn.btn-social {
    margin-right: 5px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 45px;
    transition: .3s;
}

.footer .btn.btn-social:hover {
    border-color: var(--primary);
    background: var(--primary);
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    font-size: 16px;
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: var(--primary) !important;
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .form-control {
    border-color: rgba(255, 255, 255, 0.5);
}

.footer .copyright {
    padding: 25px 0;
    font-size: 15px;
    border-top: 1px solid rgba(255, 255, 255, .1);
}

.footer .copyright a {
    color: #FFFFFF;
}

.footer .footer-menu a {
    margin-right: 15px;
    padding-right: 15px;
    border-right: 1px solid rgba(255, 255, 255, .1);
}

.footer .copyright a:hover,
.footer .footer-menu a:hover {
    color: var(--primary) !important;
}

.footer .footer-menu a:last-child {
    margin-right: 0;
    padding-right: 0;
    border-right: none;
}
