/********** Template CSS **********/
:root {
    --primary: #aa2022;
    --secondary: #757575;
    --light: #F3F6F8;
    --dark: #0d5a2d;
}

.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 ***/
/* Logo container styles */
.navbar-brand {
    height: 80px;
    display: flex;
    align-items: center;
    padding: 0;
}

/* Logo image styles */
.navbar-brand img {
    max-height: 70px;
    width: auto;
    object-fit: contain;
    margin: 5px 0;
}

/* Navbar height adjustment */
.navbar.sticky-top {
    min-height: 80px;
    padding: 0;
}

/* Additional container adjustments */
.navbar .navbar-brand.d-flex {
    padding: 0 15px;
    overflow: hidden;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .navbar-brand img {
        max-height: 60px;
    }
}
.navbar.sticky-top {
    top: 0px;
    transition: .5s;
    position: sticky;
}

.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 ***/
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: rgba(0, 0, 0, .75);
    z-index: 1;
}

.carousel-control-prev,
.carousel-control-next {
    width: 15%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
}
#header-carousel .carousel-item {
    position: relative;
    width: 100%;
}

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

@media (max-width: 768px) {
    #header-carousel .carousel-item {
        height: 450px; /* Fixed height for mobile */
    }
}

@media (min-width: 769px) {
    #header-carousel .carousel-item {
        height: 600px; /* Fixed height for desktop */
    }
}

/* .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: #41cf94b7;
}


/*** Facts ***/
@media (min-width: 991.98px) {
    .facts {
        position: relative;
        margin-top: -75px;
        z-index: 1;
    }
}


/*** Courses ***/
.courses {
    min-height: 100vh;
    background: linear-gradient(rgba(255, 255, 255, .9), rgba(255, 255, 255, .9));
    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-items {
    margin: -.75rem;
}

.team-item {
    height: auto;
    margin-bottom: 1rem;
}

.team-item .position-relative {
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.team-item .img-fluid {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.team-item .bg-light {
    height: auto;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.5rem;
}

.team-item::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 0;
    top: 0;
    left: 0;
    background: #FFFFFF;
    transition: .5s;
    z-index: -1;
}




/* Mobile Specific Styles */
@media (max-width: 575.98px) {
    .team-item {
        max-width: 100%;
        margin-bottom: 2rem;
    }
    
    .team-item .position-relative,
    .team-item .img-fluid {
        height: 250px;
    }
    
    .team-item .bg-light {
        padding: 1rem;
    }
    
    .team-item h5 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
    
    .team-item span {
        font-size: 0.9rem;
    }
}

/* Tablet Styles */
@media (min-width: 576px) and (max-width: 767.98px) {
    .team-item {
        margin-bottom: 2rem;
    }
    
    .team-item .position-relative,
    .team-item .img-fluid {
        height: 275px;
    }
}

/* testimonial section*/
.testimonial-section {
    padding: 80px 0;
    background-color: #ffffff;
}

.section-title {
    color: #0fac56;
    font-size: 1.2rem;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.main-title {
    color: #0c8334;
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 50px;
}

.testimonial-card {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.testimonial-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 30px;
    display: block;
}

.quote-mark {
    color: #0f63ac;
    font-size: 4rem;
    line-height: 1;
    margin-bottom: 20px;
}

.testimonial-text {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 30px;
}

.client-name {
    color: #0a2647;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.client-profession {
    color: #666;
    font-size: 1rem;
    margin-bottom: 20px;
}

.carousel-indicators [data-bs-target] {
    width: 15px;
    height: 15px;
    border: 2px solid #0f63ac;
    border-radius: 0;
    background-color: transparent;
    margin: 0 5px;
}

.carousel-indicators .active {
    background-color: #0f63ac;
}

.carousel-item {
    transition: transform .6s ease-in-out;
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@media (max-width: 768px) {
    .testimonial-section {
        padding: 40px 0;
    }

    .main-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }

    .testimonial-img {
        width: 120px;
        height: 120px;
    }

    .testimonial-text {
        font-size: 1rem;
        padding: 0 15px;
    }
}


/*** 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: var(--primary);
    letter-spacing: 1px;
    box-shadow: none;
}

.copyright {
    background: #092139;
}

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

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

/* footer icon color */
.container-fluid .btn-outline-light:hover {
    background-color: #aa2022 !important;
    border-color: #aa2022 !important;
}

.container-fluid .btn-outline-light:hover i {
    color: white !important;
}


/*--------------------------------------------------------------
# Gallery Section
--------------------------------------------------------------*/

/* Gallery Section Base Styles */
.gallery-section {
    padding: 40px 0;
    background-color: #f8f9fa;
}

.gallery-header h6 {
    color: #0f63ac;
    font-weight: 600;
    position: relative;
    padding-bottom: 15px;
    display: inline-block;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.gallery-header h6::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background-color: #0f63ac;
}

/* Frame Design */
.gallery-frame {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 20px;
    height: 100%; /* Ensure equal height cards */
}

.frame-title {
    background: #f8f9fa;
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
}

.frame-title h5 {
    margin: 0;
    color: #333;
    font-size: 0.9rem;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gallery-card {
    position: relative;
    padding: 8px;
}

.gallery-image-wrapper {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 4px;
}

.gallery-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Hover Effects */
.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 99, 172, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.view-icon {
    color: #ffffff;
    font-size: 20px;
    transform: scale(0);
    transition: transform 0.3s ease;
}

.download-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #ffffff;
    color: #0f63ac;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Hover States */
.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

.gallery-card:hover .view-icon {
    transform: scale(1);
}

.gallery-card:hover .download-btn {
    opacity: 1;
    transform: translateY(0);
}

.gallery-card:hover img {
    transform: scale(1.05);
}

.download-btn:hover {
    background: #0f63ac;
    color: #ffffff;
}

/* Responsive Breakpoints */
/* Small devices (phones, 576px and up) */
@media (min-width: 576px) {
    .gallery-section {
        padding: 50px 0;
    }
    
    .frame-title h5 {
        font-size: 1rem;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    .gallery-section {
        padding: 60px 0;
    }
    
    .gallery-header h6 {
        font-size: 1.2rem;
    }
    
    .gallery-frame {
        margin-bottom: 25px;
    }
    
    .frame-title {
        padding: 12px 15px;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .gallery-section {
        padding: 80px 0;
    }
    
    .frame-title h5 {
        font-size: 1.1rem;
    }
    
    .view-icon {
        font-size: 24px;
    }
    
    .download-btn {
        width: 40px;
        height: 40px;
    }
}

/* Touch Device Optimizations */
@media (hover: none) {
    .download-btn {
        opacity: 1;
        transform: translateY(0);
        background: rgba(255, 255, 255, 0.9);
    }
    
    .gallery-overlay {
        opacity: 1;
        background: rgba(15, 99, 172, 0.4);
    }
    
    .view-icon {
        transform: scale(1);
    }
}

/* Portrait Phones */
@media (max-width: 575.98px) {
    .container {
        padding-right: 12px;
        padding-left: 12px;
    }
    
    .row {
        margin-right: -8px;
        margin-left: -8px;
    }
    
    .col-lg-4, .col-md-6 {
        padding-right: 8px;
        padding-left: 8px;
    }
}
   /* Design for blog, notice and event in index page */

  .card {
    transition: transform 0.2s ease-in-out;
    }
    .card:hover {
        transform: translateY(-5px);
    }
    .notice-item:hover,
    .blog-item:hover,
    .event-item:hover {
        cursor: pointer;
    }
    .blog-item img {
        transition: transform 0.3s ease;
    }
    .blog-item:hover img {
        transform: scale(1.05);
    }



    