/* Critical CSS - Load First */
:root{--primary-color:#2c5aa0;--primary-rgb:44,90,160;--secondary-color:#ff6b6b;--dark-color:#343a40;--light-color:#f8f9fa}
*{margin:0;padding:0;box-sizing:border-box}
body{font-family:'Segoe UI',sans-serif;line-height:1.6;color:#333}

/* Header & Navigation */
.navbar{padding:.5rem 1rem;transition:all .3s ease}
.navbar-brand img{max-height:50px}
.nav-link{font-weight:500;padding:.5rem 1rem}
.dropdown-menu{border:none;box-shadow:0 5px 15px rgba(0,0,0,.1)}
.dropdown-item{padding:.5rem 1rem}

/* Page Header */
.page-header{background:linear-gradient(rgba(167, 109, 109, 0.7),rgba(141, 22, 22, 0.7)), url('../images/slider-1.jpg') center/cover;padding:25px 0;color:#fff;margin-bottom:0}
.breadcrumb{background:0 0; margin:0}
.breadcrumb-item a{color:#fff}

/* Common Components */
.btn{padding:.6rem 1.5rem;border-radius:30px;font-weight:500;transition:all .3s ease}
.btn-primary{background:var(--primary-color);border-color:var(--primary-color)}
.btn-primary:hover{background:#234a85;border-color:#234a85}
.section-header{margin-bottom:3rem;text-align:center}
.animate-up{opacity:0;transform:translateY(20px);animation:fadeInUp .6s forwards}

/* Lazy Loading */
img[data-src]{opacity:0;transition:opacity .3s}
img[data-src][src]{opacity:1}

/* Global Styles */
:root {
    --primary-color: #800000;
    --secondary-color: #FFD700;
    --accent-color: #ffc107;
    --dark-color: #333;
    --light-color: #f4f4f4;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

/* Top Bar */
.top-bar {
    background: var(--primary-color);
    color: white;
}

.top-bar .contact-info span {
    margin-right: 20px;
}

.top-bar .social-links a {
    color: white;
    margin-left: 15px;
}

/* Header and Navigation */
.navbar {
    background: #fff !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 0.5rem 0;
}

.navbar.scrolled {
    padding: 0.3rem 0;
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
    padding: 0;
}

.navbar-brand img {
    height: 50px;
}

.navbar-nav {
    margin-left: auto;
}

.nav-item {
    position: relative;
    margin: 0 2px;
}

.nav-link {
    color: var(--dark-color) !important;
    font-weight: 500;
    padding: 1rem 1rem !important;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
}

.nav-link:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover:after,
.nav-link.active:after {
    width: 100%;
}

/* Dropdown Menu */
.dropdown-menu {
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 1rem 0;
    margin-top: 0;
}

.dropdown-item {
    padding: 0.5rem 1.5rem;
    color: var(--dark-color);
    font-weight: 500;
    transition: all 0.3s ease;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: rgba(13, 110, 253, 0.1);
    color: var(--primary-color);
}

/* Mobile Navigation */
.navbar-toggler {
    border: none;
    padding: 0.5rem;
    background-color: transparent;
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    width: 24px;
    height: 24px;
    display: inline-block;
    vertical-align: middle;
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        background: white;
        padding: 1rem;
        border-radius: 8px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        margin-top: 1rem;
    }

    .nav-link {
        padding: 0.5rem 1rem !important;
    }

    .dropdown-menu {
        box-shadow: none;
        padding: 0;
        margin: 0;
    }

    .dropdown-item {
        padding: 0.5rem 2rem;
    }
}

/* Hero Carousel */
.carousel-item {
    height: 600px;
    background-color: #000;
}

.carousel-item img {
    object-fit: cover;
    height: 100%;
    opacity: 0.7;
}

.carousel-caption {
    bottom: 50%;
    transform: translateY(50%);
    padding: 0 15%;
}

.carousel-caption h1 {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards;
}

.carousel-caption p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards 0.3s;
}

.carousel-caption .btn {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards 0.6s;
}

/* Stats Section */
.stats-section {
    background-color: var(--light-color);
    padding: 3rem 0;
}

.stat-item {
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.stat-item h3 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

/* Course Cards */
.course-card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.course-image {
    position: relative;
    overflow: hidden;
    padding-top: 66.67%; /* 3:2 Aspect Ratio */
}

.course-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.course-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.course-card:hover .course-overlay {
    opacity: 1;
}

.course-card:hover .course-image img {
    transform: scale(1.1);
}

.course-content {
    padding: 1.5rem;
}

.course-meta {
    margin-top: 1rem;
    display: flex;
    justify-content: space-between;
    color: var(--secondary-color);

}

.course-meta span i {
    margin-right: 0.5rem;
}

/* Feature Boxes */
.feature-box {
    padding: 2rem;
    text-align: center;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--light-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.feature-box:hover .feature-icon {
    background: var(--primary-color);
    color: white;
}

.feature-icon i {
    font-size: 2rem;
    transition: all 0.3s ease;
}

/* Team Section */
.team-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.team-image {
    position: relative;
    padding-top: 100%; /* 1:1 Aspect Ratio */
    overflow: hidden;
}

.team-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.team-content {
    padding: 1.5rem;
    text-align: center;
}

.team-content h5 {
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.designation {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.social-links a {
    color: var(--secondary-color);
    margin: 0 0.5rem;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color);
}

/* Team Member Section */
.team-member {
    text-align: center;
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
}

.team-member img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 5px solid #f8f9fa;
}

.team-member h5 {
    margin-bottom: 5px;
    color: var(--dark-color);
}

.team-member p {
    color: var(--primary-color);
    font-weight: 500;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
    color: white;
}

/* Slider Styles */
#mainSlider {
    position: relative;
}

#mainSlider .carousel-item {
    /*height: 600px;*/
    width: 100%;
    height: auto;
}

#mainSlider .carousel-item img {
    width: 100%;
    /*height: 100%;*/
    height: auto;
    object-fit: cover;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(128, 0, 0, 0.9) 0%, rgba(139, 0, 0, 0.8) 100%);
}

.carousel-caption {
    text-align: left;
    top: 50%;
    transform: translateY(-50%);
    bottom: auto;
    left: 10%;
    right: 10%;
}

.slider-content {
    max-width: 600px;
}

.slider-content h1 {
    font-size: 2.8rem;
    font-weight: bold;
    margin-bottom: 1rem;
    animation: fadeInDown 1s ease;
}

.slider-content h4 {
    color: var(--secondary-color);
    font-weight: bold;
    animation: fadeInUp 1s ease 0.3s;
    animation-fill-mode: both;
}

.course-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.course-list li {
    margin: 0.8rem 0;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    animation: fadeInLeft 1s ease;
    animation-fill-mode: both;
}

.course-list li:nth-child(1) { animation-delay: 0.4s; }
.course-list li:nth-child(2) { animation-delay: 0.6s; }
.course-list li:nth-child(3) { animation-delay: 0.8s; }
.course-list li:nth-child(4) { animation-delay: 1s; }

.course-list li i {
    color: var(--secondary-color);
    margin-right: 1rem;
    font-size: 0.8rem;
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    opacity: 0.8;
}

.carousel-indicators {
    bottom: 20px;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
}

/* Button Styles */
.btn-primary {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--primary-color);
    font-weight: bold;
    padding: 0.8rem 0.8rem;
    border-radius: 30px;
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease 1.2s;
    animation-fill-mode: both;
}

.btn-primary:hover {
    background: #fff;
    border-color: #fff;
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Verification Bar */
.verification-bar {
    background: var(--primary-color);
    /*padding: 0.8rem 0;*/
    padding: 0.2rem 0;
    color: white;
    overflow: hidden;
}

.marquee-wrapper {
    width: 100%;
    overflow: hidden;
}

.marquee {
    display: inline-block;
    white-space: nowrap;
    animation: marquee 30s linear infinite;
}

.verify-link {
    display: inline-flex;
    align-items: center;
    color: white;
    text-decoration: none;
    padding: 0 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.verify-link:hover {
    color: var(--secondary-color);
    transform: translateY(-2px);
}

.verify-link i {
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

.separator {
    color: rgba(255, 255, 255, 0.5);
    margin: 0 0.5rem;
    display: inline-block;
}

/* Animations */
@keyframes marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .carousel-item {
        height: 400px;
    }

    .carousel-caption {
        padding: 0 10%;
    }

    .carousel-caption h1 {
        font-size: 2rem;
    }

    .carousel-caption p {
        font-size: 1rem;
    }

    .stat-item {
        margin-bottom: 1.5rem;
    }

    .feature-box {
        margin-bottom: 1.5rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .carousel-item {
        height: 500px;
    }

    .carousel-caption h1 {
        font-size: 3rem;
    }
}

/* About Page Styles */
.page-header {
    /*background: linear-gradient(rgba(161, 98, 98, 0.1), rgba(137, 46, 46, 0.7)), url('/assets/images/slider-1.jpg') center/cover;*/
    background: linear-gradient(rgba(161, 98, 98, 0.1), rgba(137, 46, 46, 0.8)), url('/assets/slider/slider-aicdm-1.jpg') top/cover;
    padding: 25px 0; 
    color: white;
    margin-bottom: 0;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.breadcrumb {
    background: transparent;
    margin-bottom: 0;
}

.breadcrumb-item a {
    color: var(--secondary-color);
}

.breadcrumb-item.active {
    color: white;
}

/* About Section */
.about-image {
    position: relative;
    margin-bottom: 2rem;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: 30px;
    background: var(--primary-color);
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.experience-badge .years {
    font-size: 2rem;
    font-weight: 700;
    display: block;
    line-height: 1;
}

.experience-badge .text {
    font-size: 0.9rem;
}

.section-title {
    margin-bottom: 2rem;
}

.section-title .subtitle {
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 0.5rem;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.features-list {
    margin: 2rem 0;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.feature-item i {
    color: var(--primary-color);
    margin-right: 1rem;
    font-size: 1.2rem;
}

/* Why Choose Us */
.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.feature-card .icon {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
}

.feature-card h4 {
    margin-bottom: 1rem;
    font-weight: 600;
}

/* Mission & Vision */
.mission-card,
.vision-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    height: 100%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.mission-card:hover,
.vision-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.card-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.mission-points,
.vision-points {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
}

.mission-points li,
.vision-points li {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
}

.mission-points li i,
.vision-points li i {
    color: var(--primary-color);
    margin-right: 1rem;
    font-size: 0.9rem;
}

/* Counter Section */
.counter-section {
    background: var(--primary-color);
    color: white;
}

.counter-item {
    text-align: center;
}

.counter-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.counter {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.counter-item p {
    font-size: 1.1rem;
    margin: 0;
    opacity: 0.9;
}

@media (max-width: 991.98px) {
    .page-header {
        padding: 30px 0;
    }

    .page-header h1 {
        font-size: 2.5rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .experience-badge {
        right: 50%;
        transform: translateX(50%);
    }
}

/* Courses Page Styles */
.category-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.category-card .icon {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
}

.category-card h4 {
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.category-card p {
    color: var(--primary-color);
    margin: 0;
    font-weight: 500;
}

/* Course Card */
.course-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    height: 100%;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.course-image {
    position: relative;
    overflow: hidden;
}

.course-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.course-card:hover .course-image img {
    transform: scale(1.1);
}

.course-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 500;
}

.course-content {
    padding: 1.5rem;
}

.course-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #6c757d;
}

.course-meta span {
    display: flex;
    align-items: center;
}

.course-meta i {
    margin-right: 0.5rem;
}

.course-card h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.course-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.rating {
    color: #ffc107;
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.rating span {
    color: #6c757d;
    margin-left: 0.5rem;
}

/* Course Features */
.course-features {
    background: var(--primary-color);
}

.feature-item {
    text-align: center;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-item h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.feature-item p {
    margin: 0;
    opacity: 0.9;
}

/* FAQ Section */
.accordion-item {
    border: none;
    margin-bottom: 1rem;
    border-radius: 10px !important;
    overflow: hidden;
}

.accordion-button {
    padding: 1.5rem;
    font-weight: 600;
    font-size: 1.1rem;
    background: white;
    border: none;
    box-shadow: none;
}

.accordion-button:not(.collapsed) {
    color: var(--primary-color);
    background: white;
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border: none;
}

.accordion-body {
    padding: 1.5rem;
    background: white;
}

/* CTA Section */
.cta-section {
    /* background: linear-gradient(to right, #f8f9fa 50%, white 50%); */
    color: white;
}

.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
}

.cta-section .btn-primary {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 500;
}

@media (max-width: 991.98px) {
    .course-card {
        margin-bottom: 2rem;
    }

    .feature-item {
        margin-bottom: 2rem;
    }

    .cta-section h2 {
        font-size: 2rem;
    }
}

/* Gallery Page Styles */
.gallery-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.filter-btn {
    padding: 0.8rem 1.5rem;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: white;
}

/* Gallery Card */
.gallery-card {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.gallery-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-card:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

.gallery-content {
    text-align: center;
    color: white;
    padding: 2rem;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.gallery-card:hover .gallery-content {
    transform: translateY(0);
}

.gallery-content h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.gallery-content p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.gallery-content a {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.gallery-content a:hover {
    background: white;
    color: var(--primary-color);
    transform: rotate(360deg);
}

/* Video Gallery */
.video-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    height: 100%;
    transition: all 0.3s ease;
}

.video-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.video-thumbnail {
    position: relative;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.1);
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.8rem;
    transition: all 0.3s ease;
}

.video-play-btn:hover {
    background: var(--primary-color);
    color: white;
    width: 90px;
    height: 90px;
}

.video-content {
    padding: 1.5rem;
}

.video-content h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.video-content p {
    color: #6c757d;
    margin: 0;
}

/* Video Modal */
.modal-content {
    background: transparent;
    border: none;
}

.modal-header {
    padding: 0.5rem;
    background: transparent;
}

.btn-close {
    background-color: white;
    opacity: 1;
    padding: 0.5rem;
    margin: 0;
}

.modal-body {
    padding: 0;
}

/* Magnific Popup Customization */
.mfp-bg {
    background: rgba(0, 0, 0, 0.9);
}

.mfp-figure:after {
    box-shadow: none;
    background: transparent;
}

.mfp-title {
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
}

@media (max-width: 991.98px) {
    .gallery-card img,
    .video-thumbnail img {
        height: 250px;
    }

    .video-play-btn {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .video-play-btn:hover {
        width: 70px;
        height: 70px;
    }
}

/* Certification Page Styles */
.certification-overview {
    background: linear-gradient(to right, #f8f9fa 50%, white 50%);
}

.certification-content {
    padding-right: 3rem;
}

.certification-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.feature i {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.feature span {
    font-weight: 500;
}

.certification-image img {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Program Cards */
.program-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.program-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
}

.program-card h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.program-card p {
    color: #6c757d;
    margin-bottom: 1.5rem;
}

.program-features {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
    text-align: left;
}

.program-features li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.program-features i {
    color: var(--primary-color);
}

/* Benefits Section */
.benefit-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.benefit-icon {
    width: 70px;
    height: 70px;
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 1.5rem;
}

.benefit-card h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.benefit-card p {
    color: #6c757d;
    margin: 0;
}

@media (max-width: 991.98px) {
    .certification-overview {
        background: white;
    }

    .certification-content {
        padding-right: 0;
        text-align: center;
    }

    .certification-features {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .feature {
        justify-content: center;
    }

    .program-features {
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Hide dropdown arrow in desktop view */
.dropdown-toggle::after {
    display: none;
}

/* Show dropdown arrow in mobile view */
@media (max-width: 991.98px) {
    .dropdown-toggle::after {
        display: none;
        margin-left: 0.5em;
        vertical-align: middle;
        border-top: 0.3em solid;
        border-right: 0.3em solid transparent;
        border-left: 0.3em solid transparent;
    }
}

/*Authorization and Recogniton Section*/
.authorizations-section { background: #f8f9fa; }
.auth-marquee-wrapper { width: 100%; }
.auth-marquee {
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: auth-scroll 15s linear infinite;
    padding: 0.5rem 0;
}
.auth-marquee:hover { animation-play-state: paused; }
.auth-item {
    display: flex;
    align-items: center;
    background: #ffffff;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    min-width: 240px;
    white-space: nowrap;
}
.auth-logo { width: 100px; height: auto; display: inline-block; }
.auth-fallback-icon { display: none; font-size: 30px; color: #007bff; }
.auth-name { font-weight: 600; color: #333; }

.auth-logo[style*="display: none"] + .auth-fallback-icon { display: inline-block; }

@keyframes auth-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@media (max-width: 767px) {
    .auth-item { min-width: 190px; padding: 0.5rem; }
    .auth-logo { width: 80px; }
}
