/********** Template CSS **********/
:root {
    --primary: #003B7F;
    --secondary: #757575;
    --light: #F3F6F8;
    --dark: #0C2B4B;
}

.py-6 {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.my-6 {
    margin-top: 6rem;
    margin-bottom: 6rem;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    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,
.btn.btn-outline-primary:hover {
    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;
}


/*** Navbar ***/
.navbar.sticky-top {
    top: -100px;
    transition: .5s;
}

.navbar .navbar-brand,
.navbar a.btn {
    height: 80px
}

.navbar .navbar-nav .nav-link {
    margin-right: 30px;
    padding: 25px 0;
    color: var(--dark);
    font-weight: 500;
    text-transform: uppercase;
    outline: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--primary);
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link  {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar .navbar-nav {
        border-top: 1px solid #EEEEEE;
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}


/*** Header ***/


#header-carousel,
#header-carousel .carousel-inner,
#header-carousel .carousel-item {
    height: 700px;
}

#header-carousel .carousel-item img {
    height: 700px;
    width: 100%;
    object-fit: cover;
}




.carousel-caption {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: rgba(0, 0, 0, .35);
    z-index: 1;
}

.carousel-control-prev,
.carousel-control-next {
    width: 15%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
    background-color: var(--primary);
    border: 10px solid var(--primary);
}

@media (max-width: 768px) {
    #header-carousel .carousel-item {
        position: relative;
        min-height: 450px;
    }
    
    #header-carousel .carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

.page-header {
    background: linear-gradient(rgba(0, 0, 0, .75), rgba(0, 0, 0, .75)), url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}

.breadcrumb-item+.breadcrumb-item::before {
    color: #999999;
}



/*** Courses ***/
.courses {
    min-height: 100vh;
    background: linear-gradient(rgba(255, 255, 255, .9), rgba(255, 255, 255, .9)), url(../img/carousel-1.jpg) center center no-repeat;
    background-attachment: fixed;
    background-size: cover;
}

.courses-item .courses-overlay {
    position: absolute;
    width: 100%;
    height: 0;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .5);
    overflow: hidden;
    opacity: 0;
    transition: .5s;
}

.courses-item:hover .courses-overlay {
    height: 100%;
    opacity: 1;
}


/*** Team ***/
.team-items {
    margin: -.75rem;
}

.team-item {
    padding: .75rem;
}

.team-item::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 0;
    top: 0;
    left: 0;
    background: #FFFFFF;
    transition: .5s;
    z-index: -1;
}

.team-item:hover::after {
    height: 100%;
    background: var(--primary);
}

.team-item .team-social {
    position: absolute;
    width: 100%;
    height: 0;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .75);
    overflow: hidden;
    opacity: 0;
    transition: .5s;
}

.team-item:hover .team-social {
    height: 100%;
    opacity: 1;
}


/*** Testimonial ***/
.testimonial-carousel .owl-dots {
    height: 40px;
    margin-top: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 20px;
    height: 20px;
    background: transparent;
    border: 2px solid var(--primary);
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    width: 40px;
    height: 40px;
    background: var(--primary);
}

.testimonial-carousel .owl-item img {
    width: 150px;
    height: 150px;
}


/*** 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;
    color: var(--light);
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: #f6f6f6;
    letter-spacing: 1px;
    box-shadow: none;
}

.copyright {
    background: #092139;
}

.copyright a {
    color: var(--primary);
}

.copyright a:hover {
    color: var(--light);
}

.gallery-item {
    position: relative;
    width: 100%;
    height: 260px; /* uniform height */
    overflow: hidden;
    border-radius: 0.5rem;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.solution-card {
    background: #ffffff;
    padding: 35px 30px;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    text-align: left;
}

.solution-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.08);
}

.solution-icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 123, 255, 0.1);
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 20px;
}

.solution-card h5 {
    font-weight: 600;
    margin-bottom: 15px;
}

.solution-card p {
    margin-bottom: 0;
    color: #555;
    line-height: 1.7;
}


.solution-card {
    background: #ffffff;
    padding: 32px 28px;
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.16);
    transition: all 0.3s ease;
}

.solution-card:hover {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.10);
    transform: translateY(-4px);
}


/* Owl item should stretch fully */
.partner-carousel .owl-item {
    display: flex;
    height: 100%;
    padding: 5px;
}

/* Make every card same height */
.partner-carousel .partner-logo {
    background: #ffffff;
    padding: 5px 5px;
    border-radius: 14px;
    width: 100%;
    min-height: 190px;                 /* forces equal size */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    text-align: center;

    display: flex;
    align-items: center;
    justify-content: center;

    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Inner alignment */
.partner-carousel .partner-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

/* Logo image */
.partner-carousel .partner-logo img {
    max-height: 90px;
    max-width: 100%;
    object-fit: contain;
    filter: grayscale(45%);
    opacity: 0.9;
    transition: all 0.3s ease;
}

/* Caption */
.partner-carousel .partner-caption {
    font-size: 16px;
    font-weight: 600;
    color: #555;
    line-height: 1.4;
    transition: color 0.3s ease;
}

/* Hover effects */
.partner-carousel .partner-logo:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.12);
}

.partner-carousel .partner-logo:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

.partner-carousel .partner-logo:hover .partner-caption {
    color: #0d6efd;
}




.image-shadow {
    border-radius: 14px;
    box-shadow:
        0 12px 28px rgba(0, 0, 0, 0.18),
        0 8px 12px rgba(0, 0, 0, 0.12);
}
/* IMAGE */
.image-shadow {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    box-shadow:
        0 12px 28px rgba(0, 0, 0, 0.18),
        0 8px 12px rgba(0, 0, 0, 0.12);
}

/* WRAPPER */
.about-img-wrap {
    min-height: 400px;
}

/* MOBILE — FIX BOOTSTRAP GRID SHIFT */
@media (max-width: 767px) {

    /* Kill Bootstrap column padding */
    .about-img-col {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* Kill row negative margin effect */
    .about-img-wrap {
        padding: 0 16px;        /* equal padding both sides */
        min-height: auto;
        display: flex;
        justify-content: center;
    }

    .image-shadow {
        width: 100%;
        max-width: 100%;        /* prevents right drift */
        height: auto;
        aspect-ratio: 4 / 5;
        border-radius: 18px;
        display: block;
        margin: 0 auto;
    }
  
    
}



/* Category spacing */
.partner-category {
    margin-bottom: 70px;
}

/* Proper spacing between logo boxes */
.partner-category .row {
    row-gap: 3rem;
    column-gap: 2.5rem;
}

/* Partner card */
.partner-logo {
    background: #ffffff;
    padding: 10px 5px;
    border-radius: 14px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

/* Logo image */
.partner-logo img {
    max-height: 95px;
    max-width: 100%;
    object-fit: contain;
    filter: grayscale(45%);
    opacity: 0.9;
    transition: all 0.3s ease;
}

/* Caption */
.partner-caption {
    display: block;
    margin-top: 16px;
    font-size: 15px;
    font-weight: 600;
    color: #555;
    letter-spacing: 0.2px;
}

/* Hover effects */
.partner-logo:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.12);
}

.partner-logo:hover img {
    filter: grayscale(0%);
    opacity: 1;
}






/* Donation Tab */
.donation-tab {
    position: fixed;
    top: 160px; /* safely below fixed header */
    right: 0;
    width: 280px;
    background: #ffffff;
    border-radius: 10px 0 0 10px;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.18);
    z-index: 99999; /* HIGHER than header */
    overflow: hidden;
    font-family: 'Work Sans', sans-serif;
}


.donation-tab-header {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #0d6efd;
    color: #fff;
    padding: 10px 12px;
    cursor: pointer;
}

.donation-tab-header img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 6px;
}

.donation-tab-header span {
    font-weight: 600;
    font-size: 20px;
}

.donation-tab-body {
    padding: 14px;
    display: none;
}

.donation-tab-body h6 {
    font-weight: 600;
    margin-bottom: 8px;
}

.donation-tab-body p {
    font-size: 14px;
    margin-bottom: 6px;
    color: #555;
}
@keyframes attentionPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(13, 110, 253, 0.65);
    }
    40% {
        transform: scale(1.04);
        box-shadow: 0 0 0 16px rgba(13, 110, 253, 0.25);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 28px rgba(13, 110, 253, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(13, 110, 253, 0);
    }
}

.donation-tab {
    animation: attentionPulse 2.2s infinite;
    transform-origin: right center;
}


.donation-tab.no-pulse {
    animation: none;
}



.donation-tab-body {
    display: none;
    background: #fff;
}
