/********** Template CSS **********/
@import url('https://fonts.googleapis.com/css2?family=Poppins&display=swap');
:root {
    --bs-primary: #9a0000; 
    --bs-secondary: #151616;
    --bs-light: #F8F8F9;
    --bs-dark: #001D23;
    --bs-primary-rgb: 154, 0, 0;
    --bs-secondary-rgb: 21, 22, 22;
    --bs-btn-bg: #9a0000;
} 

body{
    font-family: 'Poppins', sans-serif !important;
}

a {
  text-decoration: none !important;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
}

.text-justify{
    text-align: justify;
}


/*** 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.btn-primary:hover {
    color: var(--bs-primary);
    background: transparent;
}

.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;
}

/* top bar wrapper */
.top-bar {
    position: relative;
    overflow: hidden;
    color: #ffffffcc;
    padding: 10px 0;
}

.top-bar::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 50%;
    height: 100%;
    background-color: #151616; 
    z-index: 1;
}
.top-bar::after {
    content: "";
    position: absolute;
    top: 0; right: 0;
    width: 50%;
    height: 100%;
    background-color: #9a0000; 
    z-index: 1;
}

.top-bar .content {
    position: relative;
    z-index: 2;
}

.top-bar i {
    margin-right: 5px;
}

.top-bar a {
    text-decoration: none;
    color: inherit;
}

/*** Navbar ***/
.fixed-top {
    transition: .5s;
}

/* .top-bar {
    height: 45px;
    border-bottom: 1px solid rgba(255, 255, 255, .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 {
    margin-right: 30px;
    padding: 25px 0;
    color: var(--primary);
    font-size: 18px;
    font-weight: 500;
    outline: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--bs-primary);
}
.navbar-dark .navbar-toggler {
    color: rgb(154 0 0);
    border-color: rgb(154 0 0);
    background: rgb(154 0 0);
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav {
        margin-top: 10px;
        border-top: 1px solid rgba(0, 0, 0, .07);
        background: var(--light);
    }

    .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: center;
    background: rgba(104, 57, 1, 0.4);
    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(--dark);
    border: 12px solid var(--dark);
    border-radius: 3rem;
}

#header-carousel .carousel-item {
    position: relative;
    min-height: 350px;
}

@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 {
    padding-top: 3rem;
    padding-bottom: 3rem;
    background: radial-gradient(rgb(21 21 22) 60%, rgb(70 64 64));
    background-size: cover;
}

.page-header .breadcrumb-item+.breadcrumb-item::before {
    color: #999999;
}

/* Section */
.section-header {
    position: relative;
    background-image: url("/img/bg1.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.section-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(245, 216, 216, 0.4);
}

.section-header > .container-xxl {
    position: relative;
    z-index: 1;
}
/* Icon box */
.icon-box {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}


/*** courses ***/
.courses-item .progress {
    height: 5px;
    border-radius: 0;
    overflow: visible;
}

.courses-item .progress .progress-bar {
    position: relative;
    overflow: visible;
    width: 0px;
    border-radius: 0;
    transition: 5s;
}

.courses-item .progress .progress-bar span {
    position: absolute;
    top: -7px;
    right: 0;
    width: 40px;
    height: 19px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    background: var(--primary);
    color: #FFFFFF;
}

.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;
    transform:translateY(-10px);
}


/*** Service ***/
.service-item {
    box-shadow: 0 0 45px rgba(0, 0, 0, .06);
}


/*** Donate ***/
.donate {
    background: rgba(0, 29, 35, .8);
}

.btn-group .btn-light:hover,
.btn-group input[type="radio"]:checked+label {
    color: var(--primary);
    border-color: var(--primary);
}


/*** Team ***/
.team-item img {
    position: relative;
    top: 0;
    transition: .5s;
}

.team-item:hover img {
    top: -30px;
}

.team-item .team-text {
    position: relative;
    height: 100px;
    transition: .5s;
}

.team-item:hover .team-text {
    margin-top: -60px;
    height: 160px;
}

.team-item .team-text .team-social {
    opacity: 0;
    transition: .5s;
}

.team-item:hover .team-text .team-social {
    opacity: 1;
}

.team-item .team-social .btn {
    display: inline-flex;
    color: var(--primary);
    background: #FFFFFF;
    border-radius: 40px;
}

.team-item .team-social .btn:hover {
    color: #FFFFFF;
    background: var(--primary);
}


/*** Testimonial ***/
.testimonial-card{
    border-left:4px solid #9a0000;
    transition:.3s;
}

.testimonial-card:hover{
    transform:translateY(-5px);
}

.testimonial-carousel::before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

.testimonial-carousel::after {
    position: absolute;
    content: "";
    top: 0;
    right: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

@media (min-width: 768px) {
    .testimonial-carousel::before,
    .testimonial-carousel::after {
        width: 200px;
    }
}

@media (min-width: 992px) {
    .testimonial-carousel::before,
    .testimonial-carousel::after {
        width: 300px;
    }
}

.testimonial-carousel .owl-item .testimonial-text {
    background: var(--light);
    transform: scale(.8);
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-text {
    background: var(--primary);
    transform: scale(1);
}

.testimonial-carousel .owl-item .testimonial-text *,
.testimonial-carousel .owl-item .testimonial-item img {
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-text * {
    color: var(--light) !important;
}

.testimonial-carousel .owl-item.center .testimonial-item img {
    background: var(--primary) !important;
} 

.testimonial-carousel .owl-nav {
    position: absolute;
    width: 350px;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: space-between;
    opacity: 0;
    transition: .5s;
    z-index: 1;
}

.testimonial-carousel:hover .owl-nav {
    width: 300px;
    opacity: 1;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    position: relative;
    color: var(--primary);
    font-size: 45px;
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    color: var(--dark);
}


/*** Footer ***/

.footer {
    position: relative;
    background: linear-gradient(180deg, #000000 0%, #0a0a0a 100%);
    overflow: hidden;
}

.footer::before,
.footer::after {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    background: #9a0000;
    filter: blur(120px);
    opacity: 0.25;
    z-index: 0;
}

.footer::before {
    top: -100px;
    left: -100px;
}

.footer::after {
    bottom: -120px;
    right: -120px;
}

.footer .container,
.footer .copyright {
    position: relative;
    z-index: 1;
}

.footer .glass-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 15px;
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 6px;
    padding: 0;
    text-align: left;
    color: rgba(255, 255, 255, 0.65);
    transition: 0.3s ease;
    text-decoration: none;
    position: relative;
}

.footer .btn.btn-link::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    margin-right: 10px;
    transition: 0.3s ease;
}

.footer .btn.btn-link:hover {
    color: #ffffff;
    transform: translateX(6px);
}

.footer .btn.btn-link:hover::before {
    background: #9a0000;
}

.footer .btn.btn-square {
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: 0.3s ease;
    backdrop-filter: blur(6px);
}

.footer .btn.btn-square:hover {
    background: #9a0000;
    border-color: #9a0000;
    box-shadow: 0 0 15px rgba(154, 0, 0, 0.6);
    color: #fff;
    transform: translateY(-3px);
}

.footer h5 {
    position: relative;
    color: #fff;
    margin-bottom: 15px;
}

.footer h5::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 40px;
    height: 2px;
    background: #9a0000;
    box-shadow: 0 0 10px #9a0000;
}

/* Copyright */
.footer .copyright {
    font-size: 14px;
    padding: 5px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
}

.footer .copyright a {
    color: #9a0000;
}

.footer .copyright a:hover {
    color: rgba(255,255,255,0.5);;
}

/* Whatsapp Float */
.Whatsapp-float{
    position:fixed;
    width:60px;
    height:60px;
    bottom:40px;
    right:40px;
    background-color:#25d366;
    color:#FFF;
    border-radius:50px;
    text-align:center;
    font-size:30px;
    /*box-shadow: 2px 2px 3px #999;*/
    z-index:100;
}

.Whatsapp-my-float{
    margin-top:14px;
}

/*** Gallery ***/

.gallery-img-wrapper {
    position: relative;
    overflow: hidden;
    height: 250px; /* Set fixed height */
}

.gallery-img-wrapper img {
    object-fit: cover;
    height: 100%;
    width: 100%;
    transition: 0.3s ease;
    border-radius: 5px;
}

.gallery-img-wrapper img:hover {
    transform: scale(1.05);
}

/* Milestone Card */
.milestone-card{
    transition: all .3s ease;
    border-radius: 15px;
}

.milestone-card:hover{
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,.15)!important;
}

.milestone-card i{
    opacity:.9;
}

.director-section {
    background-color: #f8f9fa;
    background-image:
        radial-gradient(
            rgba(154,0,0,.12) 2px,
            transparent 2px
        );
    background-size: 30px 30px;
}

/* Call to Action Section */

.cta-section {
    background-color: #9a0000;
    background-image:
        radial-gradient(
            rgba(255,255,255,.12) 2px,
            transparent 2px
        );
    background-size: 30px 30px;
}

/* Why Choose Us */
.why-parallax{
    position: relative;

    background:
        linear-gradient(
            rgba(154,0,0,.85),
            rgba(0,0,0,.75)
        ),
        url('../img/students-studying.jpg');

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.why-parallax .card{
    transition: all .3s ease;
}

.why-parallax .card:hover{
    transform: translateY(-8px);
}


.accent-glow {
    position:absolute;
    width:120px;
    height:120px;
    background:#9a0000;
    filter:blur(80px);
    opacity:0.4;
    top:-20px;
    left:-20px;
    z-index:-1;
}