/********** Template CSS **********/
:root {
    --primary: #355EFC;
    --secondary: #E93C05;
    --tertiary: #555555;
    --light: #DFE4FD;
    --dark: #011A41;
}

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


/* whatsapp icon css
============================================================================================ */

.whatsapp-icon {
    position: fixed;
    display: block;
    left: 0px;
    bottom: 50px;
    width: 50px;
    height: 50px;
    z-index: 9999;
    border: 0;
    text-align: center;
    justify-content: center;
    background: #38bc54;
    color: #fff;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    font-size: 1.6rem;
    font-weight: 500;
    transition: all 0.3s;
}

.whatsapp-icon:hover {
    color: #cccccc;
}

.whatsapp-icon:focus {
    outline: none;
    box-shadow: none;
}


h1,
.h1,
h2,
.h2,
.fw-bold {
    font-weight: 700 !important;
}

h3,
.h3,
h4,
.h4,
.fw-medium {
    font-weight: 600 !important;
}

h5,
.h5,
h6,
.h6,
.fw-semi-bold {
    font-weight: 500 !important;
}


/*** 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 {
    transition: .5s;
    font-weight: 500;
}

.btn-primary,
.btn-outline-primary:hover {
    color: var(--light);
}

.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;
}


/*** Navbar ***/
.fixed-top {
    transition: .5s;
}

.top-bar {
    height: 45px;
    border-bottom: 1px solid rgba(53, 94, 252, .07);
}

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

.navbar .navbar-nav .nav-link {
    padding: 25px 15px;
    color: var(--tertiary);
    font-weight: 500;
    outline: none;
}

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

@media (max-width: 991.98px) {
    .navbar .navbar-brand img {
        margin-left: 18px;
    }

    .navbar .navbar-nav {
        margin-top: 10px;
        border-top: 1px solid rgba(0, 0, 0, .07);
        background: #FFFFFF;
    }

    .navbar .navbar-nav .nav-link {
        padding: 10px 0;
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        visibility: hidden;
        top: 100%;
        transform: rotateX(-75deg);
        transform-origin: 0% 0%;
        transition: .5s;
        opacity: 0;
    }

    .navbar .nav-item:hover .dropdown-menu {
        transform: rotateX(0deg);
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}


/*** Header ***/
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: start;
    z-index: 1;
}

.carousel-control-prev,
.carousel-control-next {
    width: 3rem;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
    background-color: var(--primary);
    border: 10px solid var(--primary);
}

.carousel-control-prev-icon {
    border-radius: 0 3rem 3rem 0;
}

.carousel-control-next-icon {
    border-radius: 3rem 0 0 3rem;
}

/* Header carousel images
   All current carousel images are landscape. This setup keeps them full-width on desktop
   and fully visible on mobile without cropping. */
#header-carousel .carousel-item {
    position: relative;
}

#header-carousel .carousel-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center center;
}
@media (min-width: 769px) {
    #header-carousel .carousel-item {
        height: auto;
    }

    #header-carousel .carousel-item img {
        width: 100%;
        height: auto;
        max-width: 100%;
        display: block;
        object-fit: contain;
        object-position: center center;
    }
}

@media (max-width: 768px) {
    #header-carousel {
        margin-top: 76px;
        background: #fff;
    }

    #header-carousel .carousel-item {
        position: relative;
        height: auto;
        min-height: 0;
        overflow: hidden;
        background: #fff;
    }

    #header-carousel .carousel-item img {
        position: relative;
        width: 100%;
        height: auto;
        object-fit: contain;
        object-position: center center;
    }

    #header-carousel .carousel-caption {
        position: absolute;
        inset: 0;
        padding: 18px 42px 18px 42px;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        text-align: left;
    }

    #header-carousel .carousel-caption .container,
    #header-carousel .carousel-caption .row,
    #header-carousel .carousel-caption .col-lg-8 {
        width: 100%;
    }

    #header-carousel .carousel-caption p {
        font-size: 12px;
        padding: 3px 10px !important;
        margin-bottom: 8px;
    }

    #header-carousel .carousel-heading.display-1 {
        font-size: 26px !important;
        line-height: 1.2;
        margin-bottom: 12px !important;
    }

    #header-carousel .btn {
        padding: 9px 18px !important;
        font-size: 13px;
    }

    #header-carousel .carousel-control-prev,
    #header-carousel .carousel-control-next {
        width: 2rem;
    }

    #header-carousel .carousel-control-prev-icon,
    #header-carousel .carousel-control-next-icon {
        width: 2rem;
        height: 2rem;
        border-width: 7px;
    }
}

@media (max-width: 480px) {
    #header-carousel {
        margin-top: 70px;
    }

    #header-carousel .carousel-caption {
        padding: 12px 36px;
    }

    #header-carousel .carousel-caption p {
        font-size: 10px;
        margin-bottom: 6px;
    }

    #header-carousel .carousel-heading.display-1 {
        font-size: 20px !important;
        line-height: 1.15;
        margin-bottom: 8px !important;
    }

    #header-carousel .btn {
        padding: 7px 14px !important;
        font-size: 12px;
    }
}

.page-header {
    padding-top: 12rem;
    padding-bottom: 6rem;
    background: url(../img/header.jpg) top left no-repeat;
    background-size: cover;
}

.page-header .breadcrumb-item,
.page-header .breadcrumb-item a {
    font-weight: 500;
}

.page-header .breadcrumb-item+.breadcrumb-item::before {
    color: var(--tertiary);
}


/*** Facts ***/
.facts {
    background: linear-gradient(rgba(53, 94, 252, .95), rgba(53, 94, 252, .95)), url(../img/bg.png);
}


/*** Callback ***/
.callback,
.calculator {
    position: relative;
}

.callback::before,
.calculator::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 50%;
    top: 0;
    left: 0;
    background: linear-gradient(rgba(53, 94, 252, .95), rgba(53, 94, 252, .95)), url(../img/bg.png);
    z-index: -1;
}

.calculator::before {
    height: 68%;
}


/*** Calculator ***/
.calculator small {
    font-size: 0.8rem;
    color: #81828a;
}

@media (max-width: 376px) {
    .calculator small {
        font-size: 0.6rem;
    }

    .calculator p {
        font-size: 0.7rem;
    }
}

.calculator #result {
    display: none;
    transition: all 0.5s ease-in-out;
}


/*** Feature ***/
.feature .feature-box,
.feature .feature-box * {
    transition: .5s;
}

.feature .feature-box:hover {
    background: var(--primary);
    border-color: var(--primary) !important;
}

.feature .feature-box:hover * {
    color: #FFFFFF !important;
}


/*** Service ***/
.service .nav .nav-link {
    transition: .5s;
}

.service .nav .nav-link.active {
    border-color: var(--primary) !important;
    background: var(--primary);
}

.service .nav .nav-link.active h5 {
    color: #FFFFFF !important;
}

.service .nav .nav-link.active h5 i {
    color: #FFFFFF !important;
}


/*** Project ***/
.project-item,
.project-item .project-img {
    position: relative;
}

.project-item .project-img a {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(255, 255, 255, .5);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    opacity: 0;
    transition: .5s;
}

.project-item:hover .project-img a {
    opacity: 1;
}

.project-item .project-title {
    position: absolute;
    top: 3rem;
    right: 0;
    bottom: 0;
    left: 3rem;
    border: 1px solid var(--light);
    border-radius: 8px;
    display: flex;
    align-items: flex-end;
    padding: 18px;
    z-index: -1;
    transition: .5s;
}

.project-item:hover .project-title {
    background: var(--primary);
    border-color: var(--primary);
}

.project-item .project-title h4 {
    transition: .5s;
}

.project-item:hover .project-title h4 {
    color: #FFFFFF;
}

.project-carousel .owl-nav {
    margin-top: 25px;
    display: flex;
    justify-content: center;
}

.project-carousel .owl-nav .owl-prev,
.project-carousel .owl-nav .owl-next {
    margin: 0 12px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    background: var(--light);
    border-radius: 45px;
    font-size: 22px;
    transition: .5s;
}

.project-carousel .owl-nav .owl-prev:hover,
.project-carousel .owl-nav .owl-next:hover {
    background: var(--primary);
    color: var(--light);
}


/* Director message */
.director-msg,
.director-item .director-img {
    position: relative;
}

.director-item .director-title {
    position: absolute;
    top: 3rem;
    right: 0;
    bottom: 0;
    left: 3rem;
    max-height: 600px;
    height: 400px;
    border: 1px solid var(--light);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 10px;
    z-index: -1;
    transition: .5s;
}

@media (min-width: 1400px) {
    .director-item .director-title {
        height: 524px;
    }
}

@media (min-width: 1199px) and (max-width: 1400px) {
    .director-item .director-title {
        height: 450px;
    }
}

@media (min-width: 992px) and (max-width: 1192px) {
    .director-item .director-title {
        height: 380px;
    }
}

@media (max-width: 992px) {
    .director-item .director-title {
        height: 600px;
        right: 1rem;
    }
}

@media (min-width: 570px) and (max-width: 767px) {
    .director-item .director-title {
        height: 520px;
    }
}

@media screen and (max-width: 569px) {
    .director-item .director-title {
        position: relative;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        max-height: 100px;
        height: 90px;
        border: 1px solid var(--light);
        border-radius: 8px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 5px;
    }
}


/*** Testimonial ***/
.testimonial-item {
    position: relative;
    text-align: center;
    padding-top: 30px;
}

.testimonial-item .testimonial-text {
    position: relative;
    text-align: center;
}

.testimonial-item .testimonial-text .btn-square {
    position: absolute;
    width: 60px;
    height: 60px;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
}

.testimonial-item .testimonial-text::before {
    position: absolute;
    content: "";
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    border: 30px solid;
    border-color: var(--light) transparent transparent transparent;
}

.testimonial-item .testimonial-text::after {
    position: absolute;
    content: "";
    bottom: -59px;
    left: 50%;
    transform: translateX(-50%);
    border: 30px solid;
    border-color: #FFFFFF transparent transparent transparent;
}

.testimonial-carousel .owl-item img {
    margin: 0 auto;
    width: 100px;
    height: 100px;
}

.testimonial-carousel .owl-dots {
    margin-top: 25px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 30px;
    height: 30px;
    border: 1px solid var(--light);
    border-radius: 30px;
    transition: .5s;
}

.testimonial-carousel .owl-dot::after {
    position: absolute;
    content: "";
    width: 16px;
    height: 16px;
    top: 6px;
    left: 6px;
    border-radius: 16px;
    background: var(--light);
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    border-color: var(--primary);
}

.testimonial-carousel .owl-dot.active::after {
    background: var(--primary);
}


/*** Footer ***/
.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: var(--light);
    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);
    letter-spacing: 1px;
    box-shadow: none;
}

.copyright {
    color: var(--light);
    background: #000B1C;
}

.copyright a {
    color: var(--light);
}

.copyright a:hover {
    color: var(--primary);
}


/* ==============================================
   TEAM SECTION — REDESIGNED
   ============================================== */

.team-section {
    padding: 80px 0 100px;
    background: #f4f6ff;
    position: relative;
    overflow: hidden;
}

.team-section::before {
    content: '';
    position: absolute;
    top: -150px;
    right: -100px;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: rgba(53, 94, 252, 0.06);
    pointer-events: none;
}

.team-section::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -80px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(53, 94, 252, 0.04);
    pointer-events: none;
}

/* Section Header */
.section-badge {
    display: inline-block;
    background: rgba(53, 94, 252, 0.1);
    color: var(--primary);
    font-family: 'Jost', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    padding: 6px 20px;
    border-radius: 50px;
    border: 1px solid rgba(53, 94, 252, 0.22);
    margin-bottom: 16px;
}

.section-heading {
    font-family: 'Jost', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.2;
    margin-bottom: 14px;
}

.section-heading span {
    color: var(--primary);
}

.section-desc {
    font-family: 'Open Sans', sans-serif;
    color: #6b7280;
    font-size: 1rem;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.75;
}

/* Team Card */
.team-card {
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 2px 20px rgba(1, 26, 65, 0.06);
    transition: all 0.38s cubic-bezier(0.175, 0.885, 0.32, 1.2);
    border: 1px solid rgba(53, 94, 252, 0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 18px 48px rgba(53, 94, 252, 0.16);
    border-color: rgba(53, 94, 252, 0.22);
}

/* Image area */
.team-img-wrap {
    position: relative;
    overflow: hidden;
    height: 270px;
    background: #e8ecfd;
    flex-shrink: 0;
}

.team-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.5s ease;
    display: block;
}

.team-card:hover .team-img-wrap img {
    transform: scale(1.07);
}

/* Dark gradient overlay on hover */
.team-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 35%, rgba(1, 26, 65, 0.7) 100%);
    opacity: 0;
    transition: opacity 0.38s ease;
}

.team-card:hover .team-img-overlay {
    opacity: 1;
}

/* Number badge */
.team-num-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    width: 34px;
    height: 34px;
    background: var(--primary);
    color: #fff;
    font-family: 'Jost', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(53, 94, 252, 0.38);
    z-index: 2;
}

/* Featured crown badge (Director) */
.featured-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: #fff;
    border-radius: 8px;
    padding: 4px 10px;
    font-size: 0.68rem;
    font-family: 'Jost', sans-serif;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

/* Card body */
.team-card-body {
    padding: 20px 22px 22px;
    position: relative;
    flex: 1;
}

/* Animated accent underline */
.team-card-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 22px;
    right: 22px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary) 0%, #93a9fd 100%);
    border-radius: 0 0 3px 3px;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.38s ease;
}

.team-card:hover .team-card-body::before {
    transform: scaleX(1);
}

.team-name {
    font-family: 'Jost', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
    line-height: 1.3;
}

.team-role-pill {
    display: inline-block;
    background: rgba(53, 94, 252, 0.08);
    color: var(--primary);
    font-family: 'Open Sans', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    padding: 4px 13px;
    border-radius: 50px;
    border: 1px solid rgba(53, 94, 252, 0.18);
}

/* Featured card (Director) */
.team-card.featured {
    border-color: rgba(53, 94, 252, 0.28);
    box-shadow: 0 6px 30px rgba(53, 94, 252, 0.12);
}

.team-card.featured .team-img-wrap {
    height: 300px;
}

.team-card.featured .team-name {
    font-size: 1.3rem;
}

/* Initials fallback avatar */
.team-avatar-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Jost', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    background: linear-gradient(135deg, #eef1fd, #d8e0fd);
}

/* Staggered reveal animation */
.team-card-col {
    opacity: 0;
    animation: teamFadeUp 0.6s forwards;
}

.team-card-col:nth-child(1) { animation-delay: 0.08s; }
.team-card-col:nth-child(2) { animation-delay: 0.18s; }
.team-card-col:nth-child(3) { animation-delay: 0.28s; }
.team-card-col:nth-child(4) { animation-delay: 0.38s; }
.team-card-col:nth-child(5) { animation-delay: 0.48s; }
.team-card-col:nth-child(6) { animation-delay: 0.58s; }

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

/* Decorative dot grid */
.dots-bg {
    position: absolute;
    top: 36px;
    left: 16px;
    opacity: 0.07;
    pointer-events: none;
}

/* Stats Strip */
.team-stats-strip {
    background: var(--primary);
    border-radius: 18px;
    padding: 30px 40px;
    margin-top: 56px;
}

.stat-num {
    font-family: 'Jost', sans-serif;
    font-size: 2.1rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    margin-bottom: 4px;
}

.stat-lbl {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.72);
    font-weight: 500;
}

.stat-div {
    width: 1px;
    background: rgba(255, 255, 255, 0.18);
    align-self: stretch;
}
/* responsive */
@media (max-width: 768px) {

    #header-carousel .carousel-item {
        height: auto !important;
        overflow: visible !important;
        background: #fff;
    }

    #header-carousel .carousel-item img {
        width: 100% !important;
        height: auto !important;
        max-width: 100%;
        object-fit: contain !important;
        object-position: center center;
        display: block;
    }

}

/* ==========================================
   ASSOCIATION SECTION
   ========================================== */

.association-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
    align-items: center;
    justify-items: center;
    margin-top: 30px;
}

.association-item {
    display: flex;
    justify-content: center;
    align-items: center;
}

.association-item img {
    max-width: 180px;
    max-height: 90px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.association-item img:hover {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .association-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.social-icons {
    display: flex;
    align-items: center;
    gap: 30px; /* Adjust spacing here */
}