* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
}

body {
    background: linear-gradient(180deg, #e8f4f8 0%, #ffffff 100%);
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* Preloader - تصميم جديد مبتكر */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e8f4f8 0%, #cfe3f0 50%, #4a90c5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: all 0.8s ease;
    overflow: hidden;
}

.preloader::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 50px,
        rgba(3, 57, 108, 0.1) 50px,
        rgba(3, 57, 108, 0.1) 100px
    );
    animation: preloaderMove 20s linear infinite;
}

@keyframes preloaderMove {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(50px, 50px) rotate(360deg); }
}

.preloader.loaded {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
    position: relative;
    z-index: 10;
}

.loader-circle-container {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 50px;
}

.loader-circle {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 8px solid transparent;
    border-top-color: #022145;
    border-right-color: #022145;
    border-bottom-color: #2b5a8f;
    border-left-color: #2b5a8f;
    border-radius: 50%;
    animation: spinCircle 2s linear infinite;
}

.loader-circle:nth-child(2) {
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
    border-top-color: #2b5a8f;
    border-right-color: #2b5a8f;
    border-bottom-color: #022145;
    border-left-color: #022145;
    animation: spinCircle 1.5s linear infinite reverse;
}

.loader-circle:nth-child(3) {
    width: 60%;
    height: 60%;
    top: 20%;
    left: 20%;
    border-top-color: #2b5a8f;
    border-right-color: #2b5a8f;
    border-bottom-color: #022145;
    border-left-color: #022145;
    animation: spinCircle 1s linear infinite;
}

@keyframes spinCircle {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loader-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 5rem;
    animation: logoScale 2s ease-in-out infinite;
    filter: drop-shadow(0 10px 20px rgba(2, 33, 69, 0.3));
}

@keyframes logoScale {
    0%, 100% { transform: translate(-50%, -50%) scale(1) rotate(0deg); }
    50% { transform: translate(-50%, -50%) scale(1.2) rotate(180deg); }
}

.loader-text {
    background: linear-gradient(135deg, #011528 0%, #022145 50%, #022145 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 20px;
    animation: textSlide 3s ease-in-out infinite;
    letter-spacing: 3px;
}

@keyframes textSlide {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(10px); }
}

.loader-subtitle {
    color: #022145;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 50px;
    animation: subtitleBounce 2s ease-in-out infinite;
}

@keyframes subtitleBounce {
    0%, 100% { transform: translateY(0); opacity: 0.8; }
    50% { transform: translateY(-10px); opacity: 1; }
}

.loader-progress-container {
    width: 400px;
    height: 8px;
    background: white;
    border-radius: 20px;
    margin: 0 auto;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(2, 33, 69, 0.2);
    border: 2px solid #4a90c5;
}

.loader-progress {
    height: 100%;
    background: linear-gradient(90deg, #022145 0%, #022145 25%, #2b5a8f 50%, #2b5a8f 75%, #4a90c5 100%);
    border-radius: 20px;
    animation: progressBar 2.5s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(2, 33, 69, 0.6);
}

@keyframes progressBar {
    0% { width: 0%; }
    50% { width: 60%; }
    100% { width: 100%; }
}

.loader-percentage {
    color: #011528;
    font-size: 1.8rem;
    font-weight: 900;
    margin-top: 20px;
    animation: percentagePulse 1s ease-in-out infinite;
}

@keyframes percentagePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

.loader-books {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.loader-book {
    font-size: 2.5rem;
    animation: bookFloat 2s ease-in-out infinite;
    filter: drop-shadow(0 5px 15px rgba(2, 33, 69, 0.3));
}

.loader-book:nth-child(1) { animation-delay: 0s; }
.loader-book:nth-child(2) { animation-delay: 0.3s; }
.loader-book:nth-child(3) { animation-delay: 0.6s; }
.loader-book:nth-child(4) { animation-delay: 0.9s; }
.loader-book:nth-child(5) { animation-delay: 1.2s; }

@keyframes bookFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.7; }
    50% { transform: translateY(-25px) rotate(15deg); opacity: 1; }
}

/* Navbar - تصميم جديد */
.navbar {
    background: linear-gradient(135deg, #011528 0%, #022145 50%, #022145 100%);
    padding: 15px 0;
    box-shadow: 0 4px 20px rgba(2, 33, 69, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 3px solid #2b5a8f;
}

.navbar.scrolled {
    padding: 10px 0;
    box-shadow: 0 8px 32px rgba(2, 33, 69, 0.4);
}

.navbar-brand {
    color: white !important;
    font-size: 2rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.3s ease;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.navbar-brand .logo-icon {
    font-size: 2.8rem;
    animation: logoFloat 3s ease-in-out infinite;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.nav-link {
    color: rgba(255, 255, 255, 0.95) !important;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 12px 25px !important;
    transition: all 0.3s ease;
    position: relative;
    border-radius: 50px;
    margin: 0 5px;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 8px;
    right: 25px;
    width: 0;
    height: 2px;
    background: white;
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-link:hover::before,
.nav-link.active::before {
    width: calc(100% - 50px);
}

.nav-link:hover {
    color: white !important;
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.nav-link.active {
    background: rgba(255, 255, 255, 0.2);
}

.btn-login {
    background: linear-gradient(135deg, #2b5a8f 0%, #2b5a8f 100%);
    color: white;
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: 800;
    border: none;
    transition: all 0.3s ease;
    margin-right: 15px;
    box-shadow: 0 4px 15px rgba(3, 57, 108, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-login:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(3, 57, 108, 0.6);
    background: linear-gradient(135deg, #2b5a8f 0%, #4a90c5 100%);
    color: white;
}

/* Cart Button */
.cart-button {
    background: linear-gradient(135deg, #2b5a8f 0%, #2b5a8f 100%);
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 800;
    border: none;
    transition: all 0.3s ease;
    margin-right: 15px;
    box-shadow: 0 4px 15px rgba(3, 57, 108, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    position: relative;
}

.cart-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(3, 57, 108, 0.6);
    background: linear-gradient(135deg, #2b5a8f 0%, #4a90c5 100%);
    color: white;
}

.cart-count {
    background: #d32f2f;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    position: absolute;
    top: -8px;
    right: -8px;
}

/* Cart Modal */
.cart-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.cart-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-modal-content {
    background: white;
    border-radius: 30px;
    padding: 40px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid #e8f4f8;
}

.cart-header h2 {
    color: #011528;
    font-size: 1.8rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 12px;
}

.cart-close {
    background: #ffebee;
    color: #d32f2f;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 1.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-close:hover {
    background: #d32f2f;
    color: white;
    transform: rotate(90deg);
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #e8f4f8;
    border-radius: 20px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.cart-item:hover {
    background: #e8f4f8;
    transform: translateX(-5px);
}

.cart-item-info {
    flex: 1;
}

.cart-item-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #011528;
    margin-bottom: 8px;
}

.cart-item-price {
    font-size: 1.1rem;
    font-weight: 600;
    color: #022145;
}

.cart-item-remove {
    background: #ffebee;
    color: #d32f2f;
    border: none;
    padding: 10px 20px;
    border-radius: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cart-item-remove:hover {
    background: #d32f2f;
    color: white;
    transform: scale(1.1);
}

.cart-total {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 3px solid #e8f4f8;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-total-label {
    font-size: 1.5rem;
    font-weight: 800;
    color: #011528;
}

.cart-total-amount {
    font-size: 1.8rem;
    font-weight: 900;
    color: #022145;
}

.checkout-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 30px rgba(3, 57, 108, 0.6);
}

.checkout-btn:active {
    transform: translateY(-1px);
}

.cart-empty {
    text-align: center;
    padding: 60px 20px;
}

.cart-empty-icon {
    font-size: 5rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.cart-empty-text {
    font-size: 1.3rem;
    color: #666;
    font-weight: 600;
}

/* Hero Section - تصميم مختلف جديد */
.hero {
    background: linear-gradient(180deg, #e8f4f8 0%, #cfe3f0 50%, #4a90c5 100%);
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.3)" d="M0,96L48,112C96,128,192,160,288,186.7C384,213,480,235,576,213.3C672,192,768,128,864,128C960,128,1056,192,1152,197.3C1248,203,1344,149,1392,122.7L1440,96L1440,0L1392,0C1344,0,1248,0,1152,0C1056,0,960,0,864,0C768,0,672,0,576,0C480,0,384,0,288,0C192,0,96,0,48,0L0,0Z"></path></svg>');
    background-repeat: no-repeat;
    background-position: top;
    opacity: 0.8;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.3)" d="M0,224L48,208C96,192,192,160,288,160C384,160,480,192,576,213.3C672,235,768,245,864,229.3C960,213,1056,171,1152,165.3C1248,160,1344,192,1392,208L1440,224L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-repeat: no-repeat;
    background-position: bottom;
    opacity: 0.8;
}

.hero-content {
    position: relative;
    z-index: 10;
}

.hero h1 {
    color: #011528;
    font-size: 4.5rem;
    font-weight: 900;
    margin-bottom: 30px;
    line-height: 1.2;
    text-shadow: 0 4px 20px rgba(255, 255, 255, 0.5);
}

.hero .subtitle {
    color: #022145;
    font-size: 1.7rem;
    margin-bottom: 50px;
    line-height: 2;
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.3);
    font-weight: 600;
}

.hero-image {
    position: relative;
    animation: heroImageFloat 6s ease-in-out infinite;
    text-align: center;
}

@keyframes heroImageFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(-5deg); }
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-primary-hero {
    background: linear-gradient(135deg, #022145 0%, #022145 100%);
    color: white;
    padding: 22px 55px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1.3rem;
    border: none;
    transition: all 0.4s ease;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(2, 33, 69, 0.4);
    text-decoration: none;
}

.btn-primary-hero:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 50px rgba(2, 33, 69, 0.6);
    color: white;
}

.btn-secondary-hero {
    background: white;
    color: #022145;
    padding: 22px 55px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1.3rem;
    border: 3px solid #2b5a8f;
    transition: all 0.4s ease;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(3, 57, 108, 0.3);
}

.btn-secondary-hero:hover {
    background: linear-gradient(135deg, #2b5a8f 0%, #2b5a8f 100%);
    transform: translateY(-5px) scale(1.05);
    border-color: #022145;
    color: white;
    box-shadow: 0 15px 50px rgba(3, 57, 108, 0.5);
}

/* Section Title */
.section-title {
    text-align: center;
    margin-bottom: 80px;
}

.section-title h2 {
    font-size: 3.8rem;
    font-weight: 900;
    background: linear-gradient(135deg, #011528 0%, #022145 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 5px;
    background: linear-gradient(90deg, #022145 0%, #4a90c5 50%, #022145 100%);
    border-radius: 10px;
    box-shadow: 0 3px 12px rgba(2, 33, 69, 0.35);
    animation: title-underline-glow 2s ease-in-out infinite;
}

@keyframes title-underline-glow {
    0%, 100% { box-shadow: 0 3px 12px rgba(2, 33, 69, 0.35); }
    50% { box-shadow: 0 5px 18px rgba(74, 144, 197, 0.6); }
}

.section-title h2::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -60px;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: radial-gradient(circle, rgba(2, 33, 69, 0.1) 0%, transparent 70%);
    animation: title-decoration-pulse 3s ease-in-out infinite;
}

@keyframes title-decoration-pulse {
    0%, 100% { transform: translateY(-50%) scale(1); opacity: 0.5; }
    50% { transform: translateY(-50%) scale(1.3); opacity: 0.8; }
}

.section-title p {
    font-size: 1.4rem;
    color: #022145;
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    line-height: 2;
    font-weight: 600;
}

/* About Section */
.about {
    padding: 120px 0;
    background: linear-gradient(135deg, #e8f4f8 0%, #e8f4f8 50%, #e8f4f8 100%);
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(2, 33, 69, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 8s ease-in-out infinite;
}

.about::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(3, 57, 108, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 6s ease-in-out infinite reverse;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

.about-wrapper {
    position: relative;
    z-index: 2;
}

.about-content {
    background: white;
    border-radius: 40px;
    padding: 70px 60px;
    box-shadow: 0 20px 60px rgba(2, 33, 69, 0.12);
    margin-top: 50px;
    position: relative;
    overflow: hidden;
}

.about-content::before {
    content: '🎓';
    position: absolute;
    top: 30px;
    left: 30px;
    font-size: 8rem;
    opacity: 0.05;
    transform: rotate(-15deg);
}

.about-header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.about-header h3 {
    font-size: 2.8rem;
    font-weight: 900;
    color: #011528;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.about-header h3::before {
    content: '';
    position: absolute;
    top: -20px;
    right: 50%;
    transform: translateX(50%);
    width: 80px;
    height: 5px;
    background: linear-gradient(90deg, #022145 0%, #2b5a8f 100%);
    border-radius: 10px;
}

.about-description {
    text-align: center;
    font-size: 1.35rem;
    line-height: 2;
    color: #424242;
    max-width: 900px;
    margin: 0 auto 50px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.stat-card {
    background: linear-gradient(135deg, #ffffff 0%, #e8f4f8 100%);
    border-radius: 22px;
    padding: 35px 25px;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(2, 33, 69, 0.1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #022145 0%, #4a90c5 100%);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.6s ease;
    z-index: 3;
}

.stat-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(74, 144, 197, 0.08), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    z-index: 1;
}

.stat-card:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.stat-card:hover::after {
    animation: shine 1.5s ease-in-out;
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.stat-card:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: rgba(2, 33, 69, 0.3);
    box-shadow: 0 18px 45px rgba(2, 33, 69, 0.15);
    background: linear-gradient(135deg, #ffffff 0%, #d4e9f7 100%);
}

.stat-card .icon {
    font-size: 4rem;
    margin-bottom: 18px;
    display: inline-block;
    filter: drop-shadow(0 4px 12px rgba(2, 33, 69, 0.15));
    position: relative;
    z-index: 2;
    animation: icon-float 3s ease-in-out infinite;
}

@keyframes icon-float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.stat-card:hover .icon {
    animation: icon-bounce 0.6s ease;
}

@keyframes icon-bounce {
    0%, 100% { transform: translateY(0) scale(1); }
    25% { transform: translateY(-15px) scale(1.1); }
    50% { transform: translateY(-8px) scale(1.05); }
    75% { transform: translateY(-12px) scale(1.08); }
}

.stat-card h4 {
    font-size: 2.8rem;
    font-weight: 900;
    background: linear-gradient(135deg, #011528 0%, #022145 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 2px 4px rgba(2, 33, 69, 0.1));
}

.stat-card p {
    font-size: 1.05rem;
    font-weight: 600;
    color: #022145;
    margin: 0;
    position: relative;
    z-index: 2;
}

.about-vision {
    margin-top: 60px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.vision-card {
    background: linear-gradient(135deg, #011528 0%, #022145 100%);
    border-radius: 26px;
    padding: 38px;
    color: white;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 35px rgba(2, 33, 69, 0.3);
}

.vision-card::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: vision-glow 4s ease-in-out infinite;
}

@keyframes vision-glow {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.6; }
    50% { transform: translate(15px, 15px) scale(1.2); opacity: 1; }
}

.vision-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, #4a90c5 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s ease;
}

.vision-card:hover::after {
    transform: scaleX(1);
    transform-origin: right;
}

.vision-card:hover {
    transform: translateY(-8px);
    border-color: rgba(74, 144, 197, 0.4);
    box-shadow: 0 18px 50px rgba(2, 33, 69, 0.4),
                0 0 40px rgba(74, 144, 197, 0.2);
}

.vision-card h4 {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    z-index: 2;
}

.vision-card h4 .icon {
    font-size: 2.5rem;
}

.vision-card p {
    font-size: 1.2rem;
    line-height: 1.9;
    opacity: 0.95;
    position: relative;
    z-index: 2;
}

/* Courses Container Section */
.courses-section {
    padding: 80px 0;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 50%, #f8f9fa 100%);
    position: relative;
}

.courses-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: radial-gradient(circle at top center, rgba(2, 33, 69, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

.category-main {
    background: linear-gradient(135deg, #011528 0%, #022145 50%, #03396c 100%);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 12px 35px rgba(2, 33, 69, 0.3);
    transition: all 0.4s ease;
    border: 2px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.category-main::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
}

.category-main::after {
    content: '📚 ✏️ 🎓 💡 📖';
    position: absolute;
    bottom: 15px;
    right: 30px;
    font-size: 1.5rem;
    letter-spacing: 15px;
    opacity: 0.08;
    pointer-events: none;
}

.category-main:hover::before {
    left: 100%;
}

.category-main:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 55px rgba(3, 57, 108, 0.5);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    position: relative;
    z-index: 2;
}

.category-icon {
    font-size: 3rem;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.3));
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.category-info {
    flex: 1;
}

.category-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
    margin-bottom: 8px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.category-description {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    margin-top: 30px;
    position: relative;
    z-index: 2;
}

.course-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 100%);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 0;
    border: 2px solid rgba(255, 255, 255, 0.6);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(2, 33, 69, 0.15),
                0 4px 15px rgba(0, 0, 0, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.course-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: all 0.8s ease;
}

.course-card:hover::before {
    left: 100%;
}

.course-card:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.92) 100%);
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 25px 60px rgba(2, 33, 69, 0.25),
                0 15px 35px rgba(0, 0, 0, 0.15),
                0 0 30px rgba(2, 33, 69, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 1);
    border-color: rgba(2, 33, 69, 0.3);
}

.course-card:active {
    transform: translateY(-8px) scale(1.02);
}

.course-card-header {
    background: linear-gradient(135deg, #022145 0%, #03396c 100%);
    padding: 25px 20px;
    position: relative;
    overflow: hidden;
}

.course-card-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: headerGlow 4s ease-in-out infinite;
}

@keyframes headerGlow {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-20px, -20px); }
}

.course-icon {
    font-size: 3rem;
    margin-bottom: 0;
    filter: drop-shadow(0 5px 20px rgba(255, 255, 255, 0.3));
    position: relative;
    z-index: 1;
    display: block;
    text-align: center;
    animation: iconBounce 3s ease-in-out infinite;
}

@keyframes iconBounce {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-8px) scale(1.05); }
}

.course-card-body {
    padding: 20px;
}

.course-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 800;
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: white;
    z-index: 10;
    box-shadow: 0 8px 25px rgba(46, 204, 113, 0.4),
                0 3px 10px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.course-badge.inactive {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.4),
                0 3px 10px rgba(0, 0, 0, 0.2);
}

.course-badge.in-cart-badge {
    background: linear-gradient(135deg, #28a745, #20c997);
    animation: badgePulse 2.5s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 8px 25px rgba(40, 167, 69, 0.5),
                    0 3px 10px rgba(0, 0, 0, 0.2);
    }
    50% {
        transform: scale(1.08);
        box-shadow: 0 12px 35px rgba(40, 167, 69, 0.7),
                    0 5px 15px rgba(0, 0, 0, 0.3);
    }
}

.course-card.in-cart {
    border: 3px solid #28a745;
    box-shadow: 0 15px 50px rgba(40, 167, 69, 0.25),
                0 0 0 4px rgba(40, 167, 69, 0.1);
}

.course-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #022145;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
    line-height: 1.4;
    text-shadow: 0 2px 8px rgba(2, 33, 69, 0.1);
}

.course-description {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.course-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.category-badge {
    padding: 6px 12px;
    background: linear-gradient(135deg, rgba(2, 33, 69, 0.1) 0%, rgba(3, 57, 108, 0.15) 100%);
    border: 1.5px solid rgba(2, 33, 69, 0.3);
    border-radius: 16px;
    font-size: 0.8rem;
    color: #022145;
    font-weight: 700;
    transition: all 0.3s ease;
}

.category-badge:hover {
    background: linear-gradient(135deg, rgba(2, 33, 69, 0.2) 0%, rgba(3, 57, 108, 0.25) 100%);
    transform: translateY(-2px);
}

.course-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 15px;
}

.skill-badge {
    padding: 5px 11px;
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    border: 1.5px solid rgba(255, 193, 7, 0.3);
    border-radius: 14px;
    font-size: 0.75rem;
    color: #fff;
    font-weight: 700;
    box-shadow: 0 3px 10px rgba(255, 193, 7, 0.25);
    transition: all 0.3s ease;
}

.skill-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(255, 193, 7, 0.4);
}

.course-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding: 12px;
    background: linear-gradient(135deg, rgba(2, 33, 69, 0.05) 0%, rgba(3, 57, 108, 0.08) 100%);
    border-radius: 12px;
    position: relative;
    z-index: 1;
    border: 1.5px solid rgba(2, 33, 69, 0.1);
}

.info-item {
    text-align: center;
    flex: 1;
}

.info-label {
    font-size: 0.75rem;
    color: #666;
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
}

.info-value {
    font-size: 1.1rem;
    color: #022145;
    font-weight: 800;
}

.info-value.free {
    color: #2ecc71;
    text-shadow: 0 2px 8px rgba(46, 204, 113, 0.3);
}

.course-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 15px;
    position: relative;
    z-index: 10;
}

.btn-small {
    padding: 14px 24px;
    border-radius: 16px;
    border: none;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 10;
    overflow: hidden;
}

.btn-small::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-small:hover::before {
    width: 300px;
    height: 300px;
}

.btn-small:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
}

.btn-small:active {
    transform: translateY(-2px);
}

.btn-add-cart {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: white;
    flex: 1;
}

.btn-add-cart:hover {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
}

.enrolled-badge {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
    color: white !important;
    font-weight: 800 !important;
    padding: 10px 20px !important;
    border-radius: 25px !important;
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.5),
                0 3px 10px rgba(0, 0, 0, 0.2) !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-size: 0.9rem !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.course-card.enrolled {
    border: 3px solid #28a745;
    box-shadow: 0 12px 40px rgba(40, 167, 69, 0.2);
}

.course-card.enrolled:hover {
    box-shadow: 0 18px 50px rgba(40, 167, 69, 0.3);
}

.btn-add-to-cart {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: white;
    border: none;
    padding: 18px 36px;
    border-radius: 14px;
    font-weight: 800;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    box-shadow: 0 8px 28px rgba(46, 204, 113, 0.35);
    position: relative;
    overflow: hidden;
}

.btn-add-to-cart::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.btn-add-to-cart:hover::before {
    left: 100%;
}

.btn-add-to-cart:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 14px 42px rgba(46, 204, 113, 0.5);
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
}

.btn-add-to-cart:active {
    transform: translateY(-3px) scale(1.01);
}

.btn-add-to-cart i {
    font-size: 1.2rem;
}

.btn-view-course {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    padding: 18px 36px;
    border-radius: 14px;
    font-weight: 800;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    box-shadow: 0 8px 28px rgba(40, 167, 69, 0.4);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-view-course::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.btn-view-course:hover::before {
    left: 100%;
}

.btn-view-course:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 14px 42px rgba(40, 167, 69, 0.6);
    color: white;
    background: linear-gradient(135deg, #20c997 0%, #17a589 100%);
}

.btn-view-course:active {
    transform: translateY(-3px) scale(1.01);
}

.btn-view-course i {
    font-size: 1.2rem;
}

.btn-in-cart {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    color: #495057;
    border: 2px solid #ced4da;
    padding: 18px 36px;
    border-radius: 14px;
    font-weight: 800;
    font-size: 1.1rem;
    cursor: not-allowed;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-in-cart i {
    font-size: 1.2rem;
}

.btn-course-details {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
    position: relative;
    overflow: hidden;
    width: 100%;
}

.btn-course-details::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.btn-course-details:hover::before {
    left: 100%;
}

.btn-course-details:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.5);
    background: linear-gradient(135deg, #2980b9 0%, #21618c 100%);
    color: white;
}

.btn-course-details:active {
    transform: translateY(-1px) scale(1.01);
}

.in-cart-badge {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%) !important;
    color: #000 !important;
    font-weight: 800 !important;
    padding: 12px 24px !important;
    border-radius: 50px !important;
    box-shadow: 0 6px 24px rgba(255, 193, 7, 0.4) !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 1.05rem !important;
}

.in-cart-badge i {
    font-size: 1.2rem;
}

/* Free Course Styles */
.free-badge {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff4757 100%) !important;
    color: white !important;
    font-weight: 800 !important;
    padding: 10px 20px !important;
    border-radius: 25px !important;
    box-shadow: 0 8px 25px rgba(255, 75, 87, 0.5),
                0 0 0 3px rgba(255, 255, 255, 0.4) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 0.95rem !important;
    animation: pulse-free 2.5s ease-in-out infinite;
    position: relative;
    overflow: visible;
    width: auto !important;
    max-width: fit-content !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.free-badge::before {
    content: '✨';
    position: absolute;
    left: -12px;
    font-size: 1rem;
    animation: sparkle-left 2s ease-in-out infinite;
}

.free-badge::after {
    content: '✨';
    position: absolute;
    right: -12px;
    font-size: 1rem;
    animation: sparkle-right 2s ease-in-out infinite;
}

@keyframes sparkle-left {
    0%, 100% {
        opacity: 0.3;
        transform: translateY(0) scale(0.8);
    }
    50% {
        opacity: 1;
        transform: translateY(-5px) scale(1.2);
    }
}

@keyframes sparkle-right {
    0%, 100% {
        opacity: 1;
        transform: translateY(0) scale(1.2);
    }
    50% {
        opacity: 0.3;
        transform: translateY(-5px) scale(0.8);
    }
}

@keyframes pulse-free {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 8px 30px rgba(255, 75, 87, 0.6), 0 0 0 3px rgba(255, 255, 255, 0.8), 0 0 0 6px rgba(255, 75, 87, 0.3);
    }
    50% {
        transform: scale(1.08);
        box-shadow: 0 12px 40px rgba(255, 75, 87, 0.8), 0 0 0 3px rgba(255, 255, 255, 1), 0 0 0 8px rgba(255, 75, 87, 0.5);
    }
}

.free-badge i {
    font-size: 1.3rem;
    animation: rotate-gift 3s linear infinite;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

@keyframes rotate-gift {
    0%, 90% {
        transform: rotate(0deg) scale(1);
    }
    92% {
        transform: rotate(-20deg) scale(1.1);
    }
    96% {
        transform: rotate(20deg) scale(1.1);
    }
    100% {
        transform: rotate(0deg) scale(1);
    }
}

.course-card.free-course {
    border: 4px solid transparent;
    background: linear-gradient(#fff9f0, #fff9f0) padding-box,
                linear-gradient(135deg, #ff6b6b, #ff4757, #ffa502, #ffdd59) border-box;
    box-shadow: 0 15px 45px rgba(255, 75, 87, 0.3),
                0 5px 15px rgba(255, 165, 2, 0.2);
    position: relative;
    overflow: visible;
}

.course-card.free-course::before {
    content: '🎁 🌟 🎉 🎈 ⭐ 🎊';
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5rem;
    letter-spacing: 15px;
    animation: emoji-float 4s ease-in-out infinite;
    opacity: 0.7;
    pointer-events: none;
}

.course-card.free-course::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(255, 107, 107, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 165, 2, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 221, 89, 0.05) 0%, transparent 70%);
    border-radius: 22px;
    pointer-events: none;
    z-index: 0;
}

@keyframes emoji-float {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
        opacity: 0.7;
    }
    50% {
        transform: translateX(-50%) translateY(-10px);
        opacity: 1;
    }
}

.course-card.free-course:hover {
    box-shadow: 0 20px 60px rgba(255, 75, 87, 0.45),
                0 8px 25px rgba(255, 165, 2, 0.3);
    transform: translateY(-12px) scale(1.03);
}

.course-card.free-course .course-icon {
    filter: drop-shadow(0 8px 16px rgba(255, 75, 87, 0.3));
    animation: icon-bounce 3s ease-in-out infinite;
}

@keyframes icon-bounce {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-8px) scale(1.05);
    }
}

.course-card.free-course .info-value.free {
    background: linear-gradient(135deg, #ff6b6b, #ff4757);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
    font-size: 1.5rem;
    text-shadow: none;
    position: relative;
}

.course-card.free-course .info-value.free::after {
    content: '🎁';
    margin-left: 8px;
    -webkit-text-fill-color: initial;
    animation: gift-wiggle 2s ease-in-out infinite;
}

@keyframes gift-wiggle {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-10deg);
    }
    75% {
        transform: rotate(10deg);
    }
}

.course-card.free-course .course-title {
    color: #022145 !important;
}

.course-card.free-course .course-description {
    color: #333 !important;
}

.course-card.free-course .category-badge {
    background: rgba(2, 33, 69, 0.1) !important;
    border-color: rgba(2, 33, 69, 0.3) !important;
    color: #022145 !important;
}

.course-card.free-course .skill-badge {
    background: rgba(255, 107, 107, 0.15) !important;
    border-color: rgba(255, 107, 107, 0.4) !important;
    color: #d63031 !important;
}

.course-card.free-course .info-label {
    color: #666 !important;
}

.course-card.free-course .info-value {
    color: #022145 !important;
}

.btn-free-course {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff4757 100%) !important;
    box-shadow: 0 8px 30px rgba(255, 75, 87, 0.5) !important;
    position: relative;
    overflow: hidden;
}

.btn-free-course::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-free-course:hover::before {
    width: 300px;
    height: 300px;
}

.btn-free-course:hover {
    background: linear-gradient(135deg, #ff4757 0%, #ee5a6f 100%) !important;
    box-shadow: 0 12px 45px rgba(255, 75, 87, 0.7) !important;
    transform: translateY(-3px);
}

/* Featured Single Course Layout */
.single-course-category {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(2, 33, 69, 0.08) 0%, rgba(3, 57, 108, 0.12) 50%, rgba(43, 90, 143, 0.08) 100%);
    border-radius: 30px;
    padding: 50px 20px !important;
    box-shadow:
        0 20px 60px rgba(2, 33, 69, 0.15),
        0 0 0 3px rgba(3, 57, 108, 0.1),
        inset 0 0 100px rgba(255, 255, 255, 0.5);
    animation: blue-pulse 3s ease-in-out infinite;
}

@keyframes blue-pulse {
    0%, 100% {
        box-shadow:
            0 20px 60px rgba(2, 33, 69, 0.15),
            0 0 0 3px rgba(3, 57, 108, 0.1),
            inset 0 0 100px rgba(255, 255, 255, 0.5);
    }
    50% {
        box-shadow:
            0 30px 80px rgba(2, 33, 69, 0.25),
            0 0 0 5px rgba(3, 57, 108, 0.2),
            inset 0 0 120px rgba(255, 255, 255, 0.7);
    }
}

.single-course-category::before {
    content: '⭐';
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 3rem;
    opacity: 0.3;
    animation: star-rotate 6s linear infinite;
    filter: drop-shadow(0 0 15px rgba(3, 57, 108, 0.6));
}

.single-course-category::after {
    content: '✨';
    position: absolute;
    bottom: 20px;
    left: 30px;
    font-size: 2.5rem;
    opacity: 0.3;
    animation: sparkle-float 3s ease-in-out infinite;
    filter: drop-shadow(0 0 15px rgba(43, 90, 143, 0.6));
}

@keyframes star-rotate {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.15); }
    100% { transform: rotate(360deg) scale(1); }
}

@keyframes sparkle-float {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-20px) scale(1.2);
        opacity: 0.5;
    }
}

.single-course-grid {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
}

.course-card.featured-course {
    position: relative;
    border: 4px solid transparent;
    background: linear-gradient(135deg, #022145 0%, #03396c 100%) padding-box,
                linear-gradient(135deg, #2b5a8f 0%, #4a90e2 50%, #2b5a8f 100%) border-box;
    box-shadow:
        0 20px 60px rgba(2, 33, 69, 0.4),
        0 10px 30px rgba(43, 90, 143, 0.3),
        0 0 40px rgba(74, 144, 226, 0.2),
        inset 0 2px 0 rgba(255, 255, 255, 0.2);
    animation: featured-glow 3s ease-in-out infinite;
    max-width: 450px;
    transform: scale(1.05);
}

@keyframes featured-glow {
    0%, 100% {
        box-shadow:
            0 20px 60px rgba(2, 33, 69, 0.4),
            0 10px 30px rgba(43, 90, 143, 0.3),
            0 0 40px rgba(74, 144, 226, 0.2),
            inset 0 2px 0 rgba(255, 255, 255, 0.2);
    }
    50% {
        box-shadow:
            0 30px 80px rgba(2, 33, 69, 0.6),
            0 15px 40px rgba(43, 90, 143, 0.5),
            0 0 60px rgba(74, 144, 226, 0.4),
            inset 0 2px 0 rgba(255, 255, 255, 0.3);
    }
}

.course-card.featured-course::before {
    content: '👑';
    position: absolute;
    top: -20px;
    right: 50%;
    transform: translateX(50%);
    font-size: 3rem;
    animation: crown-bounce 2s ease-in-out infinite;
    filter: drop-shadow(0 5px 20px rgba(74, 144, 226, 0.7));
    z-index: 10;
}

@keyframes crown-bounce {
    0%, 100% {
        transform: translateX(50%) translateY(0) rotate(-5deg);
    }
    50% {
        transform: translateX(50%) translateY(-12px) rotate(5deg);
    }
}

.course-card.featured-course .course-card-header {
    background: linear-gradient(135deg, #1a4d7a 0%, #2b5a8f 100%);
}

.course-card.featured-course:hover {
    transform: scale(1.08) translateY(-10px);
    box-shadow:
        0 35px 90px rgba(2, 33, 69, 0.7),
        0 20px 50px rgba(43, 90, 143, 0.6),
        0 0 80px rgba(74, 144, 226, 0.5),
        inset 0 2px 0 rgba(255, 255, 255, 0.4);
}

/* CTA Section */
.cta {
    padding: 120px 0;
    background: linear-gradient(135deg, #022145 0%, #022145 50%, #2b5a8f 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    animation: ctaRotate 25s linear infinite;
}

@keyframes ctaRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.cta-content {
    position: relative;
    z-index: 10;
}

.cta h2 {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 30px;
    color: white;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.cta p {
    font-size: 1.6rem;
    margin-bottom: 50px;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.cta .btn-primary-hero {
    background: white;
    color: #022145;
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.4);
}

.cta .btn-primary-hero:hover {
    color: #022145;
    box-shadow: 0 15px 50px rgba(255, 255, 255, 0.6);
    background: linear-gradient(135deg, #ffffff 0%, #cfe3f0 100%);
}

/* Contact Section */
.contact-section {
    padding: 120px 0;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 50%, #f8f9fa 100%);
    position: relative;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 400px;
    background: radial-gradient(circle at top center, rgba(2, 33, 69, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.contact-container {
    position: relative;
    z-index: 2;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.contact-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 100%);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(2, 33, 69, 0.1);
    box-shadow: 0 10px 40px rgba(2, 33, 69, 0.1),
                0 4px 15px rgba(0, 0, 0, 0.05),
                inset 0 1px 0 rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(2, 33, 69, 0.05), transparent);
    transition: all 0.8s ease;
}

.contact-card:hover::before {
    left: 100%;
}

.contact-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 60px rgba(2, 33, 69, 0.2),
                0 15px 35px rgba(0, 0, 0, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 1);
    border-color: rgba(2, 33, 69, 0.3);
}

.contact-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    filter: drop-shadow(0 5px 20px rgba(2, 33, 69, 0.2));
    animation: iconFloat 3s ease-in-out infinite;
}

.contact-card h3 {
    font-size: 1.6rem;
    font-weight: 900;
    color: #022145;
    margin-bottom: 20px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-link {
    color: #555;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 12px;
}

.contact-link:hover {
    color: #022145;
    background: rgba(2, 33, 69, 0.05);
    transform: translateX(-5px);
}

.contact-value {
    font-size: 1.1rem;
    color: #555;
    font-weight: 600;
    line-height: 1.8;
}

/* Social Media Section */
.social-media-section {
    background: linear-gradient(135deg, #022145 0%, #03396c 100%);
    border-radius: 30px;
    padding: 50px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(2, 33, 69, 0.3);
}

.social-media-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: socialGlow 6s ease-in-out infinite;
}

@keyframes socialGlow {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-30px, -30px); }
}

.social-media-section h3 {
    font-size: 2.2rem;
    font-weight: 900;
    color: white;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
    text-shadow: 0 3px 15px rgba(0, 0, 0, 0.3);
}

.social-links-large {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 25px;
    position: relative;
    z-index: 2;
}

.social-link-large {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 30px 20px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    position: relative;
    overflow: hidden;
}

.social-link-large::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.social-link-large:hover::before {
    width: 300px;
    height: 300px;
}

.social-link-large:hover {
    transform: translateY(-8px) scale(1.05);
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.2);
}

.social-icon-wrapper {
    font-size: 3.5rem;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.3));
    position: relative;
    z-index: 1;
}

.social-name {
    font-size: 1.1rem;
    font-weight: 800;
    color: white;
    position: relative;
    z-index: 1;
}

.social-link-large.facebook:hover {
    box-shadow: 0 15px 45px rgba(66, 103, 178, 0.5);
}

.social-link-large.instagram:hover {
    box-shadow: 0 15px 45px rgba(225, 48, 108, 0.5);
}

.social-link-large.twitter:hover {
    box-shadow: 0 15px 45px rgba(29, 161, 242, 0.5);
}

.social-link-large.whatsapp:hover {
    box-shadow: 0 15px 45px rgba(37, 211, 102, 0.5);
}

.social-link-large.youtube:hover {
    box-shadow: 0 15px 45px rgba(255, 0, 0, 0.5);
}

.social-link-large.linkedin:hover {
    box-shadow: 0 15px 45px rgba(0, 119, 181, 0.5);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #011528 0%, #022145 50%, #022145 100%);
    color: white;
    padding: 100px 0 40px;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #2b5a8f, #2b5a8f, transparent);
}

.footer h4 {
    font-size: 1.7rem;
    font-weight: 800;
    margin-bottom: 30px;
    color: white;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 18px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 1.15rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.footer-links a:hover {
    color: #cfe3f0;
    transform: translateX(-8px);
}

.social-links {
    display: flex;
    gap: 18px;
    margin-top: 30px;
}

.social-link {
    width: 55px;
    height: 55px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
    text-decoration: none;
}

.social-link:hover {
    background: white;
    transform: translateY(-8px) rotate(10deg);
    border-color: white;
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.4);
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-section h3 {
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 20px;
    color: white;
}

.footer-description {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 25px;
}

.footer-social {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-info a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.contact-info a:hover {
    color: white;
}

.footer-bottom {
    margin-top: 80px;
    padding-top: 40px;
    border-top: 2px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-size: 1.05rem;
}

/* Scroll to Top */
.scroll-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, #022145 0%, #2b5a8f 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(67, 160, 71, 0.5);
    border: 3px solid white;
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-10px) scale(1.15);
    box-shadow: 0 20px 50px rgba(67, 160, 71, 0.7);
}

/* WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 40px;
    left: 40px;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #022145 0%, #011528 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(2, 33, 69, 0.5);
    border: 3px solid white;
    transition: all 0.3s ease;
    animation: whatsappPulse 2s ease-in-out infinite;
}

@keyframes whatsappPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 10px 30px rgba(2, 33, 69, 0.5);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 15px 40px rgba(2, 33, 69, 0.7);
    }
}

.whatsapp-float:hover {
    transform: scale(1.15);
    box-shadow: 0 20px 50px rgba(2, 33, 69, 0.8);
    animation: none;
}

.whatsapp-float a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

/* Responsive */
@media (max-width: 992px) {
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-vision {
        grid-template-columns: 1fr;
    }

    .about-content {
        padding: 50px 30px;
    }
}

@media (max-width: 991px) {
    .navbar {
        padding: 15px 0;
    }

    .navbar-brand {
        font-size: 1.5rem;
    }

    .navbar-brand .logo-icon {
        font-size: 2rem;
    }

    .navbar-collapse {
        background: rgb(14 69 126);
        backdrop-filter: blur(20px);
        margin-top: 20px;
        border-radius: 20px;
        padding: 20px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    }

    .nav-link {
        padding: 15px 20px !important;
        margin: 5px 0;
        border-radius: 12px;
        font-size: 1.1rem;
        text-align: center;
    }

    .nav-link::before {
        display: none;
    }

    .nav-link:hover,
    .nav-link.active {
        background: rgba(3, 57, 108, 0.3);
    }

    .navbar-actions {
        flex-direction: column !important;
        width: 100%;
        gap: 10px !important;
        margin-top: 15px;
    }

    .btn-login {
        width: 100%;
        justify-content: center;
        margin: 0 !important;
        padding: 15px 35px;
        font-size: 1.1rem;
    }

    .cart-button {
        width: 100%;
        justify-content: center;
        margin: 0 !important;
        padding: 15px 25px;
        font-size: 1.1rem;
    }

    .cart-modal-content {
        width: 95%;
        padding: 25px;
    }

    .cart-header h2 {
        font-size: 1.5rem;
    }

    .cart-item {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }

    .cart-item-info {
        width: 100%;
    }

    .cart-item-remove {
        width: 100%;
    }

    .cart-total {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .checkout-btn {
        padding: 12px 25px !important;
        font-size: 1.1rem !important;
    }

    .hero {
        padding: 100px 0 70px;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .hero .subtitle {
        font-size: 1.3rem;
    }

    .courses-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 14px;
    }

    .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .hero {
        padding: 80px 0 60px;
    }

    .hero h1 {
        font-size: 2.2rem;
        margin-bottom: 25px;
        line-height: 1.3;
    }

    .hero .subtitle {
        font-size: 1.1rem;
        margin-bottom: 35px;
        line-height: 1.8;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }

    .btn-primary-hero,
    .btn-secondary-hero {
        width: 100%;
        justify-content: center;
        padding: 16px 35px;
        font-size: 1.1rem;
        gap: 10px;
    }

    .section-title {
        margin-bottom: 50px;
    }

    .section-title h2 {
        font-size: 2.2rem;
    }

    .section-title p {
        font-size: 1.15rem;
        margin-top: 25px;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .stat-card .icon {
        font-size: 3.5rem;
    }

    .about-header h3 {
        font-size: 2rem;
    }

    .courses-section {
        padding: 80px 0;
    }

    .category-title {
        font-size: 1.7rem;
    }

    .course-card {
        padding: 20px;
    }

    .course-actions {
        flex-direction: column;
        gap: 10px;
    }

    .course-actions .btn-small {
        width: 100%;
        justify-content: center;
    }

    .cta {
        padding: 80px 0;
    }

    .cta h2 {
        font-size: 2.2rem;
        margin-bottom: 20px;
    }

    .cta p {
        font-size: 1.15rem;
        margin-bottom: 35px;
    }

    .footer {
        padding: 60px 0 30px;
    }

    .footer h4 {
        font-size: 1.4rem;
        margin-bottom: 20px;
        text-align: center;
    }

    .footer .row > div {
        margin-bottom: 40px;
        text-align: center;
    }

    .footer p {
        font-size: 1rem;
    }

    .footer-links {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-links li {
        margin-bottom: 12px;
    }

    .footer-links a {
        font-size: 1.05rem;
        justify-content: center;
    }

    .footer-links a:hover {
        transform: translateX(0);
    }

    .social-links {
        justify-content: center;
        margin-top: 20px;
    }

    .social-link {
        width: 50px;
        height: 50px;
        font-size: 1.4rem;
    }

    .footer-bottom {
        margin-top: 50px;
        padding-top: 30px;
    }

    .footer-bottom p {
        font-size: 0.95rem;
    }

    .scroll-top {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .whatsapp-float {
        bottom: 20px;
        left: 20px;
        width: 55px;
        height: 55px;
        font-size: 2rem;
    }

    .loader-text {
        font-size: 2rem;
    }

    .loader-subtitle {
        font-size: 1.15rem;
    }

    .loader-logo {
        font-size: 5rem;
        margin-bottom: 30px;
    }

    .loader-bar-container {
        width: 280px;
    }
}

@media (max-width: 480px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .hero {
        padding: 70px 0 50px;
    }

    .hero h1 {
        font-size: 1.8rem;
        margin-bottom: 20px;
        line-height: 1.25;
    }

    .hero .subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
        line-height: 1.7;
    }

    .hero-buttons {
        gap: 12px;
    }

    .btn-primary-hero,
    .btn-secondary-hero {
        padding: 14px 30px;
        font-size: 1rem;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    .section-title p {
        font-size: 1rem;
    }

    .course-card {
        padding: 15px;
    }

    .cta h2 {
        font-size: 1.8rem;
    }

    .cta p {
        font-size: 1rem;
    }

    .navbar-brand {
        font-size: 1.3rem;
    }

    .navbar-brand .logo-icon {
        font-size: 1.8rem;
    }

    .footer h4 {
        font-size: 1.3rem;
    }

    .footer-links a {
        font-size: 1rem;
    }

    .loader-text {
        font-size: 1.6rem;
    }

    .loader-logo {
        font-size: 4rem;
    }

    .loader-bar-container {
        width: 240px;
    }
}

/* Course Details Page Styles */
.course-hero-section {
    background: linear-gradient(135deg, #011528 0%, #022145 50%, #03396c 100%);
    padding: 80px 0 60px;
    color: white;
    position: relative;
    overflow: hidden;
}

.course-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.05)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,133.3C960,128,1056,96,1152,90.7C1248,85,1344,107,1392,117.3L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') bottom center no-repeat;
    background-size: cover;
    opacity: 0.3;
    pointer-events: none;
}

.course-hero-section .row {
    text-align: center;
}

.course-hero-section .col-lg-8 {
    margin: 0 auto;
    float: none;
}

.custom-breadcrumb {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 12px 24px;
    border-radius: 50px;
    display: inline-flex;
    margin: 0 auto;
    justify-content: center;
}

.custom-breadcrumb .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.custom-breadcrumb .breadcrumb-item a:hover {
    color: white;
}

.custom-breadcrumb .breadcrumb-item.active {
    color: white;
    font-weight: 700;
}

.custom-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.6);
}

.enrollment-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.05rem;
    background: #28a745;
    color: white;
    box-shadow: 0 4px 20px rgba(40, 167, 69, 0.3);
}

.enrollment-status-badge.enrolled {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(40, 167, 69, 0.4);
    animation: pulse-badge 2s ease-in-out infinite;
}

.enrollment-status-badge.expired {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(231, 76, 60, 0.4);
}

.enrollment-status-badge.not-enrolled {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    color: #000;
    box-shadow: 0 4px 20px rgba(255, 193, 7, 0.4);
}

.enrollment-status-badge.free-course {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(52, 152, 219, 0.4);
    animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 20px rgba(255, 75, 87, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 8px 30px rgba(255, 75, 87, 0.6);
    }
}

.course-hero-title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 20px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    line-height: 1.3;
    text-align: center;
}

.course-hero-description {
    font-size: 1.3rem;
    line-height: 1.8;
    opacity: 0.95;
    margin-bottom: 30px;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.course-meta-info {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    margin-top: 20px;
}

.meta-item {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 14px 26px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 1.05rem;
}

.meta-item.price-meta {
    background: white;
    color: #011528;
    font-weight: 900;
    font-size: 1.4rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.meta-icon {
    font-size: 2rem;
}

.course-stats-section {
    margin-top: -50px;
    padding: 0 0 60px;
    position: relative;
    z-index: 10;
}

.stat-card-modern {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 18px;
    padding: 24px 28px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(2, 33, 69, 0.08);
    display: flex;
    align-items: center;
    gap: 18px;
    position: relative;
    overflow: hidden;
}

.stat-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #022145 0%, #4a90c5 100%);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s ease;
}

.stat-card-modern:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.stat-card-modern:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 12px 35px rgba(2, 33, 69, 0.1);
    border-color: rgba(2, 33, 69, 0.2);
    background: linear-gradient(135deg, #ffffff 0%, #e8f4f8 100%);
}

.stat-icon-modern {
    font-size: 3rem;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.stat-content-modern {
    flex: 1;
}

.stat-value-modern {
    font-size: 2.2rem;
    font-weight: 900;
    color: #011528;
    margin: 0 0 5px 0;
}

.stat-label-modern {
    font-size: 0.95rem;
    color: #666;
    font-weight: 600;
    margin: 0;
}

.course-content-section {
    padding: 60px 0 100px;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
}

.section-title-modern {
    font-size: 2.2rem;
    font-weight: 900;
    color: #011528;
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0;
    position: relative;
}

.section-title-modern::before {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #022145 0%, #4a90c5 100%);
    border-radius: 10px;
}

.section-title-modern i {
    color: #022145;
    font-size: 2rem;
    filter: drop-shadow(0 2px 4px rgba(2, 33, 69, 0.2));
    animation: title-icon-pulse 2s ease-in-out infinite;
}

@keyframes title-icon-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.progress-badge {
    background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
    padding: 12px 26px;
    border-radius: 50px;
    box-shadow: 0 4px 18px rgba(40, 167, 69, 0.15);
    display: flex;
    align-items: center;
    gap: 10px;
    border: 2px solid rgba(40, 167, 69, 0.2);
    position: relative;
    overflow: hidden;
}

.progress-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(40, 167, 69, 0.1), transparent);
    animation: badge-shimmer 3s infinite;
}

@keyframes badge-shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.progress-text {
    font-weight: 600;
    color: #666;
    font-size: 0.95rem;
}

.progress-percentage {
    font-weight: 900;
    font-size: 1.4rem;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 4px rgba(40, 167, 69, 0.2));
}

.overall-progress-bar {
    height: 10px;
    background: linear-gradient(90deg, #e9ecef 0%, #dee2e6 50%, #e9ecef 100%);
    border-radius: 50px;
    overflow: hidden;
    margin-bottom: 50px;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.08);
    position: relative;
}

.overall-progress-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    animation: progress-bar-shimmer 3s infinite;
}

@keyframes progress-bar-shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #28a745 0%, #20c997 50%, #17a2b8 100%);
    border-radius: 50px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 15px rgba(40, 167, 69, 0.5);
    position: relative;
    overflow: hidden;
}

.progress-bar-fill::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 100%);
    animation: progress-fill-glow 2s ease-in-out infinite;
}

@keyframes progress-fill-glow {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

.progress-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 30px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4));
    border-radius: 0 50px 50px 0;
}

.sections-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: relative;
}

.sections-list::before {
    content: '';
    position: absolute;
    right: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg,
        transparent 0%,
        rgba(2, 33, 69, 0.15) 10%,
        rgba(2, 33, 69, 0.15) 90%,
        transparent 100%);
    border-radius: 10px;
    z-index: 0;
}

.section-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(2, 33, 69, 0.08);
    position: relative;
    z-index: 1;
}

.section-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #022145 0%, #4a90c5 100%);
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
}

.section-card:hover::before {
    opacity: 1;
}

.section-card:hover {
    transform: translateX(-10px) scale(1.01);
    box-shadow: 0 14px 45px rgba(2, 33, 69, 0.15);
    border-color: transparent;
}

.section-header-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 26px 30px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.section-header-card::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(2, 33, 69, 0.05), transparent);
    transform: translateY(-50%);
    transition: left 0.6s ease;
}

.section-header-card:hover::before {
    left: 100%;
}

.section-header-card:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
}

.section-info {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    flex: 1;
}

.section-number {
    background: linear-gradient(135deg, #011528 0%, #022145 100%);
    color: white;
    padding: 12px 20px;
    border-radius: 14px;
    font-weight: 900;
    font-size: 1.1rem;
    box-shadow: 0 4px 16px rgba(2, 33, 69, 0.25);
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.section-number::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    animation: section-number-pulse 3s ease-in-out infinite;
}

@keyframes section-number-pulse {
    0%, 100% { transform: translate(0, 0); opacity: 0.6; }
    50% { transform: translate(-20%, -20%); opacity: 1; }
}

.section-details {
    flex: 1;
}

.section-title-text {
    font-size: 1.45rem;
    font-weight: 800;
    color: #011528;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.section-title-text::after {
    content: '';
    position: absolute;
    bottom: -4px;
    right: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #022145 0%, #4a90c5 100%);
    border-radius: 10px;
    transition: width 0.4s ease;
}

.section-header-card:hover .section-title-text::after {
    width: 100%;
}

.section-description-text {
    color: #666;
    font-size: 1rem;
    margin-bottom: 14px;
    line-height: 1.7;
}

.section-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 1rem;
}

.section-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-weight: 600;
}

.completed-videos {
    color: #28a745;
    font-weight: 700;
}

.section-toggle {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    border: 2px solid rgba(2, 33, 69, 0.1);
}

.section-toggle:hover {
    background: linear-gradient(135deg, #022145 0%, #4a90c5 100%);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(2, 33, 69, 0.25);
}

.section-toggle i {
    font-size: 1.3rem;
    color: #022145;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-toggle:hover i {
    color: white;
}

.section-toggle.active i {
    transform: rotate(180deg);
}

.section-toggle.active {
    background: linear-gradient(135deg, #022145 0%, #4a90c5 100%);
}

.section-toggle.active i {
    color: white;
}

.section-progress-bar {
    height: 6px;
    background: linear-gradient(90deg, #e9ecef 0%, #dee2e6 100%);
    width: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.section-progress-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: progress-shimmer 2s infinite;
}

@keyframes progress-shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.section-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #28a745 0%, #20c997 100%);
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(40, 167, 69, 0.4);
    position: relative;
}

.section-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 20px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5));
    border-radius: 0 10px 10px 0;
}

.videos-list {
    padding: 22px;
    background: linear-gradient(135deg, #fafbfc 0%, #f5f7f9 100%);
    position: relative;
}

.videos-list::before {
    content: '';
    position: absolute;
    top: 0;
    right: 20px;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg,
        transparent 0%,
        rgba(2, 33, 69, 0.1) 20%,
        rgba(2, 33, 69, 0.1) 80%,
        transparent 100%);
}

.video-item {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.video-item::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #022145 0%, #4a90c5 100%);
    transform: scaleY(0);
    transition: transform 0.4s ease;
}

.video-item:hover::before {
    transform: scaleY(1);
}

.video-item:hover {
    transform: translateX(-8px);
    box-shadow: 0 6px 20px rgba(2, 33, 69, 0.1);
    border-color: rgba(2, 33, 69, 0.15);
}

.video-item.completed {
    border-color: rgba(40, 167, 69, 0.3);
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
}

.video-item.completed::before {
    background: linear-gradient(180deg, #28a745 0%, #20c997 100%);
    transform: scaleY(1);
}

.video-item.locked {
    opacity: 0.65;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.video-item.locked:hover {
    transform: none;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
}

.video-number {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #011528 0%, #022145 100%);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.1rem;
    box-shadow: 0 4px 14px rgba(2, 33, 69, 0.25);
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.video-number::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    animation: video-number-glow 3s ease-in-out infinite;
}

@keyframes video-number-glow {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.5; }
    50% { transform: translate(10%, 10%) scale(1.2); opacity: 0.8; }
}

.video-item.completed .video-number {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    box-shadow: 0 4px 14px rgba(40, 167, 69, 0.35);
}

.video-item.locked .video-number {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    box-shadow: 0 4px 14px rgba(108, 117, 125, 0.25);
}

.video-content {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.video-header {
    flex: 1;
}

.video-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #011528;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.completed-icon {
    color: #28a745;
    font-size: 1.4rem;
}

.video-badges {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.video-badge {
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.video-badge.free {
    background: #d4edda;
    color: #155724;
}

.video-badge.paid {
    background: #d1ecf1;
    color: #0c5460;
}

.video-duration {
    color: #666;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

.video-actions {
    display: flex;
    gap: 12px;
}

.btn-play {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(40, 167, 69, 0.25);
    position: relative;
    overflow: hidden;
}

.btn-play::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}

.btn-play:hover::before {
    width: 300px;
    height: 300px;
}

.btn-play:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 24px rgba(40, 167, 69, 0.4);
}

.btn-play:active {
    transform: translateY(-1px) scale(1.02);
}

.btn-locked {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    color: #6c757d;
    border: 2px solid rgba(108, 117, 125, 0.2);
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: not-allowed;
    position: relative;
    overflow: hidden;
}

.btn-locked::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: locked-shimmer 3s infinite;
}

@keyframes locked-shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.empty-videos {
    text-align: center;
    padding: 80px 20px;
    color: #999;
}

.empty-videos i {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.3;
}

.empty-videos p {
    font-size: 1.2rem;
    font-weight: 600;
    color: #666;
}

.empty-content-state {
    text-align: center;
    padding: 120px 20px;
    background: white;
    border-radius: 24px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.empty-icon {
    font-size: 8rem;
    margin-bottom: 30px;
    opacity: 0.2;
}

.empty-content-state h3 {
    font-size: 2rem;
    color: #011528;
    margin-bottom: 16px;
    font-weight: 800;
}

.empty-content-state p {
    color: #666;
    font-size: 1.2rem;
}

.video-player-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(12px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.video-player-modal.active {
    display: flex;
}

.video-modal-container {
    background: white;
    border-radius: 24px;
    width: 100%;
    max-width: 1100px;
    max-height: 92vh;
    overflow-y: auto;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.video-modal-header {
    padding: 28px 32px;
    background: linear-gradient(135deg, #011528 0%, #022145 100%);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.video-modal-header h3 {
    font-size: 1.7rem;
    font-weight: 800;
    margin: 0;
}

.close-video-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 1.6rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-video-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.video-player-wrapper {
    padding: 32px;
    background: #000;
}

.video-player-wrapper iframe {
    width: 100%;
    height: 560px;
    border-radius: 12px;
}

.video-modal-footer {
    padding: 28px 32px;
    display: flex;
    justify-content: center;
}

.complete-video-btn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    padding: 18px 48px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 6px 24px rgba(40, 167, 69, 0.4);
}

.complete-video-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 36px rgba(40, 167, 69, 0.6);
}

.complete-video-btn.completed {
    background: #6c757d;
    cursor: not-allowed;
}

.complete-video-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.swal-high-z-index {
    z-index: 99999 !important;
}

.footer-copyright {
    background: linear-gradient(135deg, #011528 0%, #022145 100%);
    padding: 30px 0;
    text-align: center;
    color: white;
    border-top: 3px solid rgba(255, 255, 255, 0.1);
}

.footer-copyright p {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    opacity: 0.9;
}

@media (max-width: 992px) {
    .course-hero-title {
        font-size: 2.2rem;
    }

    .section-title-modern {
        font-size: 2rem;
    }

    .stat-card-modern {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .stat-icon-modern {
        font-size: 2.5rem;
    }

    .stat-value-modern {
        font-size: 1.8rem;
    }

    .stat-label-modern {
        font-size: 0.85rem;
    }

    .content-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .section-title-modern {
        font-size: 1.6rem;
    }

    .section-title-modern i {
        font-size: 1.5rem;
    }

    .progress-badge {
        padding: 10px 20px;
    }

    .progress-text {
        font-size: 0.85rem;
    }

    .progress-percentage {
        font-size: 1.2rem;
    }

    .sections-list::before {
        display: none;
    }

    .section-card:hover {
        transform: translateX(-5px) scale(1);
    }

    .contact-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .social-links-large {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .course-hero-title {
        font-size: 1.8rem;
    }

    .course-hero-description {
        font-size: 1.1rem;
    }

    .section-info {
        flex-direction: column;
        gap: 16px;
    }

    .section-number {
        padding: 10px 18px;
        font-size: 1rem;
    }

    .section-title-text {
        font-size: 1.2rem;
    }

    .section-description-text {
        font-size: 0.9rem;
    }

    .section-toggle {
        width: 44px;
        height: 44px;
    }

    .section-toggle i {
        font-size: 1.1rem;
    }

    .video-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px;
        gap: 14px;
    }

    .video-item:hover {
        transform: translateX(-4px);
    }

    .video-number {
        width: 42px;
        height: 42px;
        font-size: 1rem;
        border-radius: 10px;
    }

    .video-content {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 12px;
    }

    .video-actions {
        width: 100%;
    }

    .btn-play,
    .btn-locked {
        width: 100%;
        justify-content: center;
        padding: 10px 24px;
        font-size: 0.9rem;
    }

    .videos-list {
        padding: 16px;
    }

    .videos-list::before {
        display: none;
    }

    .video-player-wrapper iframe {
        height: 300px;
    }

    .btn-add-to-cart,
    .btn-view-course,
    .btn-in-cart {
        padding: 14px 24px;
        font-size: 1rem;
    }

    .contact-info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .contact-card {
        padding: 30px 25px;
    }

    .contact-icon {
        font-size: 3rem;
    }

    .contact-card h3 {
        font-size: 1.4rem;
    }

    .social-links-large {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .social-media-section {
        padding: 40px 25px;
    }

    .social-media-section h3 {
        font-size: 1.8rem;
    }

    .social-icon-wrapper {
        font-size: 2.8rem;
    }

    .social-name {
        font-size: 0.95rem;
    }

    .enrolled-badge,
    .in-cart-badge {
        padding: 10px 20px !important;
        font-size: 0.95rem !important;
    }

    .course-meta-info {
        gap: 12px;
    }

    .meta-item {
        padding: 10px 18px;
        font-size: 0.95rem;
    }

    .meta-item.price-meta {
        font-size: 1.2rem;
    }



    .free-badge {
        padding: 10px 20px !important;
        font-size: 0.95rem !important;
    }

    .free-badge::before,
    .free-badge::after {
        display: none;
    }

    .free-badge i {
        font-size: 1.1rem;
    }

    .course-card.free-course::before {
        font-size: 1.2rem;
        letter-spacing: 10px;
        top: -40px;
    }


    .category-main::after {
        font-size: 1.2rem;
        letter-spacing: 10px;
        bottom: 10px;
        right: 15px;
    }

    .contact-section {
        padding: 80px 0;
    }

    .contact-card {
        padding: 35px 25px;
    }

    .social-links-large {
        grid-template-columns: repeat(2, 1fr);
    }

    .social-link-large {
        padding: 25px 15px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .hero .subtitle {
        font-size: 1rem;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    .category-title {
        font-size: 1.4rem;
    }

    .category-description {
        font-size: 0.95rem;
    }

    .course-icon {
        font-size: 3.5rem;
    }

    .course-title {
        font-size: 1.35rem;
    }

    .course-description {
        font-size: 0.95rem;
    }

    .category-badge {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .skill-badge {
        padding: 5px 10px;
        font-size: 0.75rem;
    }

    .courses-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .course-info {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 15px;
    }

    .info-label {
        font-size: 0.75rem;
    }

    .info-value {
        font-size: 0.95rem;
    }

    .course-badge {
        top: 10px;
        left: 10px;
        padding: 5px 12px;
        font-size: 0.75rem;
    }

    .free-badge {
        padding: 6px 14px !important;
        font-size: 0.8rem !important;
        gap: 4px !important;
    }

    .enrolled-badge,
    .in-cart-badge {
        padding: 6px 14px !important;
        font-size: 0.8rem !important;
    }

    .btn-add-to-cart,
    .btn-view-course,
    .btn-in-cart {
        padding: 12px 20px;
        font-size: 0.9rem;
    }


    .course-card.free-course::before {
        font-size: 1rem;
        letter-spacing: 8px;
        top: -35px;
    }

    .course-card.free-course .info-value.free {
        font-size: 1.2rem;
    }
}

@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

@media (max-width: 576px) {
    .course-actions {
        gap: 8px;
    }

    .btn-small {
        padding: 10px 18px;
        font-size: 0.85rem;
    }

    .navbar-brand {
        font-size: 1.1rem;
    }

    .nav-menu {
        padding: 15px 0;
    }

    .nav-link {
        padding: 12px 20px;
        font-size: 1rem;
    }
}

/* Hero Image Float Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.hero-image img {
    transition: transform 0.3s ease;
}

.hero-image img:hover {
    transform: scale(1.05) !important;
}
