:root {
    --primary-color: #1a237e;
    --secondary-color: #2ecc71;
    --info-color: #09d0f3;
    --accent-color: #ff6f00;
    --light-bg: #f5f7ff;
    --dark-text: #212121;
    --gradient: linear-gradient(135deg, #1a237e 0%, #3949ab 50%, #7986cb 100%);

}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark-text);
    background-color: #fff;
    padding-top: 80px;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #151b5c;
}

/* Offcanvas Navbar */
.offcanvas {
    background: rgba(26, 35, 126, 0.98);
    backdrop-filter: blur(1px);
    background-color: var(--primary-color) !important;
    transition: all 0.3s;
}

.offcanvas-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.offcanvas-end {
    width: 1100px;
    transform: translateX(-100%);
    height: 100vh;
}

.btn-close {
    background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat;
    opacity: 0.8;
    transition: all 0.3s;
    color: white !important;
}

.btn-close:hover {
    opacity: 1;
    transform: rotate(90deg);
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loader {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Flash Form Modal */
#flashFormModal .modal-dialog {
    max-width: 1000px;
    width: 1000px;
    margin: 1rem auto;
}

#flashFormModal .modal-content {
    border-radius: 15px;
    overflow: hidden;
    border: none;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
    animation: modalAppear 0.8s ease-out;
}

@keyframes modalAppear {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

#flashFormModal .modal-header {
    background: var(--gradient);
    color: white;
    border-bottom: none;
    padding: 1.5rem;
}

#flashFormModal .modal-body {
    padding: 2rem;
}

.flash-form-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.flash-form-subtitle {
    font-size: 1.5rem;
    opacity: 0.9;
    line-height: 1.4;
}

#flashFormModal .form-select,
#flashFormModal .form-control,
#flashFormModal .submitbtn {
    font-size: 25px;
    border-radius: 8px;
    padding: 0.8rem 1.2rem;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}

#flashFormModal .form-control:focus,
#flashFormModal .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(26, 35, 126, 0.25);
    outline: none;
}

#flashFormModal .btn-close {
    background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat;
    opacity: 0.8;
    transition: all 0.3s;
    border: none;
}

#flashFormModal .btn-close:hover {
    opacity: 1;
    transform: rotate(90deg);
}

.submitbtn {
    background: var(--gradient);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    width: 100%;
    transition: all 0.3s;
    margin-top: 1rem;
    cursor: pointer;
}

.submitbtn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.submitbtn:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

.modal-footer-note {
    font-size: 1rem;
    text-align: center;
    margin-top: 1.5rem;
    color: #6c757d;
}

.modal-footer-note a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.modal-footer-note a:hover {
    text-decoration: underline;
    color: var(--accent-color);
}

/* Responsive Design for Flash Form Modal */
@media (max-width: 1200px) {
    #flashFormModal .modal-dialog {
        max-width: 900px;
        width: 900px;
    }
    
    .flash-form-title {
        font-size: 2.5rem;
    }
    
    .flash-form-subtitle {
        font-size: 1.3rem;
    }
    
    #flashFormModal .form-select,
    #flashFormModal .form-control,
    #flashFormModal .submitbtn {
        font-size: 22px;
    }
}

@media (max-width: 992px) {
    #flashFormModal .modal-dialog {
        max-width: 700px;
        width: 700px;
    }
    
    #flashFormModal .modal-header {
        padding: 1.2rem;
    }
    
    #flashFormModal .modal-body {
        padding: 1.5rem;
    }
    
    .flash-form-title {
        font-size: 2.2rem;
    }
    
    .flash-form-subtitle {
        font-size: 1.2rem;
    }
    
    #flashFormModal .form-select,
    #flashFormModal .form-control,
    #flashFormModal .submitbtn {
        font-size: 20px;
        padding: 0.7rem 1rem;
    }
}

@media (max-width: 768px) {
    #flashFormModal .modal-dialog {
        max-width: 95%;
        width: 95%;
        margin: 0.5rem auto;
    }
    
    .flash-form-title {
        font-size: 1.8rem;
    }
    
    .flash-form-subtitle {
        font-size: 1rem;
    }
    
    #flashFormModal .form-select,
    #flashFormModal .form-control,
    #flashFormModal .submitbtn {
        font-size: 18px;
        padding: 0.6rem 0.8rem;
    }
}

@media (max-width: 576px) {
    #flashFormModal .modal-dialog {
        max-width: 98%;
        width: 98%;
        margin: 0.25rem auto;
    }
    
    .flash-form-title {
        font-size: 1.5rem;
    }
    
    .flash-form-subtitle {
        font-size: 0.9rem;
    }
    
    #flashFormModal .form-select,
    #flashFormModal .form-control,
    #flashFormModal .submitbtn {
        font-size: 16px;
        padding: 0.5rem 0.7rem;
    }
}

/* Animated Background Elements */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.1;
    pointer-events: none;
}

.bg-circle {
    position: absolute;
    border-radius: 50%;
    background: var(--accent-color);
    opacity: 0.2;
    animation: float 15s infinite ease-in-out;
    will-change: transform;
}

.circle-1 {
    width: 300px;
    height: 300px;
    top: -150px;
    left: -150px;
    animation-delay: 0s;
}

.circle-2 {
    width: 200px;
    height: 200px;
    bottom: -100px;
    right: -100px;
    animation-delay: -5s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(20px, 40px) rotate(5deg);
    }
    50% {
        transform: translate(0, 80px) rotate(0deg);
    }
    75% {
        transform: translate(-20px, 40px) rotate(-5deg);
    }
}

/* Navigation */
.navbar {
    background: rgba(26, 35, 126, 0.95) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    padding: 0.8rem 1rem;
    transition: all 0.4s ease;
    will-change: transform;
}

.navbar-brand {
    font-weight: 700;
    font-size: var(--bs-navbar-brand-font-size);
    color: white !important;
    display: flex;
    align-items: center;
}

.navbar-brand i {
    margin-right: 10px;
    color: var(--accent-color);
}

.nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
    font-size: 1rem;
    margin: 0 0.5rem;
    transition: all 0.3s;
    position: relative;
    padding: 0.5rem 1rem !important;
}

.nav-link:before {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-link:hover:before,
.nav-link:focus:before {
    width: 100%;
}

.nav-link:hover,
.nav-link:focus {
    color: #fff !important;
    transform: translateY(-2px);
}

.navbar-nav .dropdown-menu {
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    border-radius: 0.375rem;
}

.dropdown-item {
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
    font-size: 1rem;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: #f8f9fa;
    color: var(--primary-color);
}

/* Offcanvas */
.offcanvas {
    background: rgba(26, 35, 126, 0.98) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.offcanvas-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.offcanvas-end {
    width: 300px;
}

/* Fix for backdrop issue */
.offcanvas-backdrop {
    background-color: rgba(0, 0, 0, 0.5) !important;
}

.offcanvas-backdrop.show {
    opacity: 1 !important;
}

/* Hero Section */
.hero-carousel {
    height: 100vh;
    margin-top: -80px;
    position: relative;
}

.glide__slide {
    height: 100vh;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    position: relative;
}

.glide__slide:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(12, 4, 85, 0.6);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    padding: 0 2rem;
}

.hero-content h1 {
    font-size: clamp(1.8rem, 4vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-content .subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 400;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    max-width: 600px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
}

.glide__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.glide__arrow--left {
    left: 30px;
}

.glide__arrow--right {
    right: 30px;
}

.glide__arrow:hover {
    background: var(--accent-color);
    transform: translateY(-50%) scale(1.1);
}

.glide__bullets {
    position: absolute;
    bottom: 30px;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 10;
    gap: 10px;
}

.glide__bullet {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    border-radius: 50%;
    transition: all 0.3s ease;
    cursor: pointer;
}

.glide__bullet:hover,
.glide__bullet--active {
    background: var(--accent-color);
    transform: scale(1.3);
}

.btn-hero {
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    z-index: 1;
    display: inline-block;
    text-decoration: none;
    color: white;
    border: none;
    cursor: pointer;
}

.btn-hero:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--accent-color);
    border-radius: 50px;
    z-index: -2;
}

.btn-hero:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: var(--primary-color);
    transition: all 0.3s;
    border-radius: 50px;
    z-index: -1;
}

.btn-hero:hover:before,
.btn-hero:focus:before {
    width: 100%;
}

.btn-hero:hover,
.btn-hero:focus {
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
}

/* Section Styles */
.section-title {
    position: relative;
    margin-bottom: 3rem;
    font-weight: 700;
    text-align: center;
    font-size: clamp(2rem, 4vw, 2.5rem);
    color: #2c3e50;
}

.section-title:after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--accent-color);
    margin: 15px auto;
    border-radius: 2px;
}

/* Course Cards */
.course-card {
    transition: all 0.4s ease;
    margin-bottom: 1.5rem;
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    height: 100%;
    background: white !important;
    animation: fadeIn 0.6s ease-out;
    will-change: transform;
    color: #000;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.course-img-container {
    position: relative;
    overflow: hidden;
  
}

.course-img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    background: var(--light-bg);
}

.course-card:hover .course-img {
    transform: scale(1.1);
}

.course-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent-color);
    color: white;
    font-weight: 600;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    animation: pulse 2s infinite;
    z-index: 2;
}
.course-description {
    color: #000;
}
.course-meta {
    color: #000;
}


.discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(45deg, #ff6b6b, #ff3838);
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
    z-index: 2;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.price-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.original-price {
    text-decoration: line-through;
    color: #888;
    font-size: 14px;
    margin-bottom: 2px;
}

.discounted-price {
    color: #2e59d9;
    font-weight: bold;
    font-size: 18px;
}

.price {
    color: #2e59d9;
    font-weight: bold;
    font-size: 18px;
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.25rem;
}

.card-text {
    color: #7f8c8d;
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}

.category {
    background: #e8f4fd;
    color: #2e59d9;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 10px;
}

.rating {
    color: #f39c12;
    font-weight: 600;
}

.btn-enroll {
    background: linear-gradient(45deg, #2e59d9, #4a7bff);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
    cursor: pointer;
}

.btn-enroll:hover,
.btn-enroll:focus {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46, 89, 217, 0.3);
    color: white;
    text-decoration: none;
}

.btn-view-all {
    background: linear-gradient(45deg, #2e59d9, #4a7bff);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
    cursor: pointer;
}

.btn-view-all:hover,
.btn-view-all:focus {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(46, 89, 217, 0.3);
    color: white;
    text-decoration: none;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 111, 0, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 111, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 111, 0, 0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stats Section */
.stats-section {
    background: linear-gradient(to right, #7c3aed, #8b5cf6, #7c3aed);
    padding: 5rem 0;
    color: white;
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    margin: 40px auto;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    position: relative;
    z-index: 2;
}

.stat-number {
    font-size: clamp(2.5rem, 5vw, 3rem);
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: white;

}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.stat-label {
    font-size: 1rem;
    opacity: 0.95;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(10, 10, 10, 0.95);
}

.why-choose-us {
    margin-bottom: 60px;
}

.features-row {
    margin-bottom: 30px;
}

.feature-item {
    text-align: center;
    padding: 25px 15px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    height: 100%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    will-change: transform;
}

.feature-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.feature-desc {
    font-size: 0.95rem;
    opacity: 0.9;
    line-height: 1.5;
}

.stats-row {
    position: relative;
}

.stats-row:before {
    content: '';
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 2px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.5), transparent);
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.counting {
    animation: countUp 1s ease-out forwards;
}

/* Testimonial Carousel */
.testimonial-carousel {
    padding: 3rem 0;
}

.testimonial-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin: 1rem;
    position: relative;
    height: 100%;
    min-height: 300px;
}

.testimonial-card:after {
    content: '\201D';
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 5rem;
    color: var(--light-bg);
    font-family: Arial, sans-serif;
    line-height: 1;
}

.testimonial-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--secondary-color);
}

.testimonial-glide .glide__arrow {
    top: 40%;
    background: var(--primary-color);
}

.testimonial-glide .glide__arrow--left {
    left: -25px;
}

.testimonial-glide .glide__arrow--right {
    right: -25px;
}

.progress-bar {
    background: var(--gradient);
    border-radius: 10px;
    animation: progress-animation 2s ease-in-out;
}

@keyframes progress-animation {
    0% {
        width: 0%;
    }
}

.floating-element {
    animation: float-element 8s infinite ease-in-out;
}

@keyframes float-element {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    33% {
        transform: translateY(-20px) rotate(3deg);
    }
    66% {
        transform: translateY(10px) rotate(-3deg);
    }
}

.hover-lift {
    transition: transform 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
}

/* Parallax section */
.parallax-section {
    background: url('https://images.unsplash.com/photo-1522202176988-66273c2fd55f?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1740&q=80') fixed;
    background-size: cover;
    padding: 8rem 0;
    position: relative;
    color: white;
}

.parallax-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 35, 126, 0.85);
}

/* Footer */
footer {
    background: var(--dark-text);
    color: white;
    padding: 5rem 0 2rem;
    background-color: #2c3e50;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1.2rem;
    margin-right: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    will-change: transform;
}

.social-icon:hover,
.social-icon:focus {
    background: var(--accent-color);
    transform: translateY(-5px);
    color: white;
    text-decoration: none;
    outline: none;
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--accent-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover,
.back-to-top:focus {
    background: var(--primary-color);
    transform: translateY(-5px);
    color: white;
    text-decoration: none;
    outline: none;
}

/* Programs Section */
.programs-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.slider-container {
    position: relative;
    padding: 40px 0;
    overflow: hidden;
}

.slider-track {
    display: flex;
    animation: scroll 40s linear infinite;
    width: calc(530px * 14);
    will-change: transform;
}

.slider-item {
    height: 500px;
    width: 500px;
    flex-shrink: 0;
    margin: 0 15px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.4s, box-shadow 0.4s;
    position: relative;
    overflow: hidden;
    perspective: 1000px;
    cursor: pointer;
    will-change: transform;
}

.slider-item:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.slider-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
    background: var(--light-bg);
}

.slider-item:hover img {
    transform: scale(1.01);
}

.program-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 40%, rgba(0, 0, 0, 0.8) 100%);
    opacity: 0;
    transition: opacity 0.4s;
}

.slider-item:hover .program-overlay {
    opacity: 1;
}

.program-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 25px;
    color: white;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
}

.slider-item:hover .program-info {
    transform: translateY(0);
}

.program-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.program-academy {
    font-size: 1.2rem;
    font-weight: 600;
    opacity: 0.9;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-530px * 7));
    }
}

.slider-container:hover .slider-track {
    animation-play-state: paused;
}

/* Controls */
.slider-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.control-btn {
    background: #1a237e;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 10px 25px;
    font-weight: 600;
    transition: all 0.3s;
    cursor: pointer;
}

.control-btn:hover,
.control-btn:focus {
    background: #303f9f;
    transform: translateY(-2px);
    outline: none;
}

/* Course Carousel */
.course-carousel {
    padding: 20px 0;
}

.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.carousel-control-prev {
    left: -25px;
}

.carousel-indicators {
    bottom: -50px;
}

.carousel-indicators button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    opacity: 0.5;
    transition: all 0.3s ease;
}

.carousel-indicators button.active {
    width: 20px;
    height: 1px;
    opacity: 1;
    transform: scale(1.2);
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
}


.carousel-control-next {
    right: -25px;
}

.carousel:hover .carousel-control-prev {
    left: 15px;
}

.carousel:hover .carousel-control-next {
    right: 15px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
    box-shadow: 0 5px 15px rgba(78, 84, 200, 0.4);
}

/* Loading States */
.course-card.loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .slider-track {
        animation: none;
    }
    
    .bg-circle {
        animation: none;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --light-bg: #2d3748;
        --dark-text: #e2e8f0;
    }
    
    body {
        background-color: #1a202c;
        color: #e2e8f0;
    }
    
    .course-card {
        background: #2d3748;
        color: #e2e8f0;
    }
    
    .card-title {
        color: #000;
    }
    
    .card-text {
        color: #0a0a0a;
    }
}

/* High DPI Screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .course-img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .bg-circle {
        animation-duration: 25s;
    }
    
    .slider-track {
        animation-duration: 35s;
    }
    
    .slider-item {
        width: 370px;
        height: 370px;
    }
    
    .program-title {
        font-size: 1.4rem;
    }
    
    .program-academy {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .slider-track {
        animation-duration: 30s;
    }
    
    .slider-item {
        width: 270px;
        height: 270px;
        margin: 0 10px;
    }
    
    .program-info {
        padding: 15px;
    }
    
    .program-title {
        font-size: 1.2rem;
    }
    
    .program-academy {
        font-size: 0.9rem;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .back-to-top,
    .bg-animation,
    .glide__arrows,
    .glide__bullets {
        display: none !important;
    }
    
    body {
        padding-top: 0;
    }
    
    .course-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* Focus Management for Accessibility */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 10000;
    transition: top 0.3s;
}

.skip-to-content:focus {
    top: 6px;
}

/* Ensure proper contrast for text */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Custom selection colors */
::selection {
    background: var(--accent-color);
    color: white;
}

::-moz-selection {
    background: var(--accent-color);
    color: white;
}