/* ========================================
   PROFESSIONAL THEME COMPONENTS SYSTEM
   MS Eğitim - Clean & Semantic Approach
   ======================================== */

/* ========================================
   1. SEMANTIC BACKGROUND SECTIONS
   ======================================== */

/* Light Background Sections */
.light-bg-section,
.white-bg-section,
.content-section {
    background: var(--bg-primary);
    color: var(--text);
}

/* LIGHT THEME EXPLICIT OVERRIDES - Beyaz arkaplan için KOYU yazılar */
[data-theme="light"] .white-bg-section,
[data-theme="light"] .content-section,
[data-theme="light"] .light-bg-section {
    background: #ffffff !important;
    color: #111827 !important;
}

[data-theme="light"] .white-bg-section .section-title,
[data-theme="light"] .content-section .section-title,
[data-theme="light"] .light-bg-section .section-title {
    color: #000000 !important;
}

[data-theme="light"] .white-bg-section .section-subtitle,
[data-theme="light"] .content-section .section-subtitle,
[data-theme="light"] .light-bg-section .section-subtitle {
    color: #111827 !important;
}

/* ========================================
   DARK THEME SECTION GRADATION SYSTEM
   Uyumlu renk geçişleri ile section ayrımı
   ======================================== */

/* En koyu - Hero ve önemli section'lar */
[data-theme="dark"] .hero-section {
    background: linear-gradient(135deg, #0f172a, #1e293b) !important;
    color: var(--white) !important;
}

/* Koyu - Ana content section'lar */
[data-theme="dark"] .white-bg-section,
[data-theme="dark"] .content-section {
    background: #1e293b !important;  /* gray-800 */
    color: var(--text) !important;
}

/* Orta koyu - Popüler Muhasebe Kursları */
[data-theme="dark"] .popular-courses-section {
    background: #334155 !important;  /* gray-700 */
    color: var(--text) !important;
    padding: 5rem 0 !important;  /* Üst ve alt boşluk */
}

/* Orta açık koyu - Eğitim Programları */
[data-theme="dark"] .education-programs-section {
    background: #475569 !important;  /* gray-600 */
    color: var(--text) !important;
    padding: 5rem 0 !important;  /* Üst ve alt boşluk */
}

/* Eski courses-section için fallback */
[data-theme="dark"] .courses-section {
    background: #334155 !important;  /* gray-700 */
    color: var(--text) !important;
}

/* LIGHT THEME - Popüler Muhasebe Kursları */
[data-theme="light"] .popular-courses-section {
    background: #ffffff !important;
    color: #111827 !important;
    padding: 5rem 0 !important;  /* Üst ve alt boşluk */
}

[data-theme="light"] .popular-courses-section .section-title {
    color: #000000 !important;
}

[data-theme="light"] .popular-courses-section .section-subtitle {
    color: #111827 !important;
}

[data-theme="light"] .popular-courses-section .course-title,
[data-theme="light"] .popular-courses-section .card-title {
    color: #000000 !important;
}

[data-theme="light"] .popular-courses-section .course-description,
[data-theme="light"] .popular-courses-section .card-description {
    color: #374151 !important;
}

/* LIGHT THEME - Eğitim Programları */
[data-theme="light"] .education-programs-section {
    background: #f8fafc !important;  /* Hafif gri */
    color: #111827 !important;
    padding: 5rem 0 !important;  /* Üst ve alt boşluk */
}

[data-theme="light"] .education-programs-section .section-title {
    color: #000000 !important;
}

[data-theme="light"] .education-programs-section .section-subtitle {
    color: #111827 !important;
}

/* Eski courses-section için fallback */
[data-theme="light"] .courses-section {
    background: #ffffff !important;
    color: #111827 !important;
}

[data-theme="light"] .courses-section .section-title {
    color: #000000 !important;
}

[data-theme="light"] .courses-section .section-subtitle {
    color: #111827 !important;
}

[data-theme="light"] .courses-section .course-title,
[data-theme="light"] .courses-section .card-title {
    color: #000000 !important;
}

[data-theme="light"] .courses-section .course-description,
[data-theme="light"] .courses-section .card-description {
    color: #374151 !important;
}

[data-theme="dark"] .courses-section {
    background: var(--bg-secondary) !important;
    color: var(--text) !important;
}

.light-bg-section .section-title,
.white-bg-section .section-title,
.content-section .section-title {
    color: var(--text-dark);
}

.light-bg-section .section-subtitle,
.white-bg-section .section-subtitle,
.content-section .section-subtitle {
    color: var(--text);
}

/* Gray Background Sections */
.gray-bg-section {
    background: var(--gray-100);
    color: var(--text);
}

/* Orta açık - Gray section'lar */
[data-theme="dark"] .gray-bg-section {
    background: #475569 !important;  /* gray-600 */
    color: var(--text) !important;
}

.gray-bg-section .section-title {
    color: var(--text-dark);
}

.gray-bg-section .section-subtitle {
    color: var(--text);
}

/* Dark Background Sections */
.dark-section {
    background: var(--gray-900);
    color: var(--text-dark);
}

/* En koyu - Dark section'lar için */
[data-theme="dark"] .dark-section {
    background: #0f172a !important;  /* En koyu ton */
    color: var(--white) !important;
}

.dark-section .section-title {
    color: var(--white);
}

.dark-section .section-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

/* Gradient Background Sections */
.gradient-bg-section {
    background: var(--gradient-primary);
    color: var(--white);
}

.gradient-bg-section .section-title {
    color: var(--white);
}

.gradient-bg-section .section-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

/* ========================================
   2. HERO SECTION SYSTEM
   ======================================== */

.hero-section {
    background: var(--gradient-primary);
    color: var(--white);
}

/* Dark theme hero section */
[data-theme="dark"] .hero-section {
    background: linear-gradient(135deg, var(--gray-900), var(--gray-800));
    color: var(--white);
}

.hero-section .section-title,
.hero-section h1,
.hero-section h2,
.hero-section h3 {
    color: var(--white);
}

.hero-section .section-subtitle,
.hero-section p {
    color: rgba(255, 255, 255, 0.9);
}

/* Modern Hero Carousel Variables */
[data-theme="light"] {
    --hero-primary-gradient: linear-gradient(135deg, rgba(0, 29, 132, 0.9), rgba(30, 64, 175, 0.9));
    --hero-text-primary: #ffffff;
    --hero-text-secondary: rgba(255, 255, 255, 0.9);
    --hero-card-bg: rgba(255, 255, 255, 0.1);
    --hero-card-border: rgba(255, 255, 255, 0.2);
    --hero-button-primary: #ffffff;
    --hero-button-primary-text: #001d84;
    --hero-button-secondary: transparent;
    --hero-button-secondary-text: #ffffff;
    --hero-button-secondary-border: rgba(255, 255, 255, 0.3);
}

[data-theme="dark"] {
    --hero-primary-gradient: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.95));
    --hero-text-primary: #ffffff;
    --hero-text-secondary: rgba(255, 255, 255, 0.9);
    --hero-card-bg: rgba(255, 255, 255, 0.1);
    --hero-card-border: rgba(255, 255, 255, 0.2);
    --hero-button-primary: #3b82f6;
    --hero-button-primary-text: #ffffff;
    --hero-button-secondary: transparent;
    --hero-button-secondary-text: #ffffff;
    --hero-button-secondary-border: rgba(255, 255, 255, 0.3);
}

/* ========================================
   3. CARD COMPONENTS SYSTEM
   ======================================== */

.card-component {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text);
    transition: var(--transition);
}

.card-component:hover {
    background: var(--bg-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.card-component .card-title,
.card-component h1,
.card-component h2,
.card-component h3,
.card-component h4,
.card-component h5,
.card-component h6 {
    color: var(--text-dark);
}

.card-component .card-description,
.card-component p {
    color: var(--text);
}

.card-component .card-meta {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ========================================
   4. STATS SECTION SYSTEM
   ======================================== */

.stats-section {
    background: var(--gray-100);
    color: var(--text);
}

/* Açık koyu - Stats section */
[data-theme="dark"] .stats-section {
    background: #64748b !important;  /* gray-500 */
    color: var(--text) !important;
}

.stats-section .stat-number {
    color: var(--primary);
    font-weight: 800;
    font-size: 2.5rem;
}

.stats-section .stat-label {
    color: var(--text-dark);
    font-weight: 600;
}

.stats-section .stat-description {
    color: var(--text);
}

/* ========================================
   5. COURSES SECTION SYSTEM
   ======================================== */

.courses-section {
    background: var(--bg-primary);
    color: var(--text);
}

.courses-section .section-title {
    color: var(--text-dark);
}

.courses-section .section-subtitle {
    color: var(--text);
}

.courses-section .course-title,
.courses-section .card-title {
    color: var(--text-dark);
}

.courses-section .course-description,
.courses-section .card-description {
    color: var(--text);
}

.courses-section .course-meta,
.courses-section .course-price {
    color: var(--text-light);
}

/* ========================================
   6. EDUCATION PROGRAMS SECTION SYSTEM
   ======================================== */

/* Yatay Dikdörtgen Tasarım - Education Programs */
.education-programs-horizontal {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 3rem 0;
}

.education-program-horizontal {
    display: flex;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    position: relative;
    height: 220px;
}

.education-program-horizontal:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 20px -5px rgba(0, 0, 0, 0.15), 0 8px 16px -8px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.program-image {
    flex-shrink: 0;
    width: 220px;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
    position: relative;
}

.image-placeholder {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2.5rem;
    box-shadow: 0 6px 12px rgba(0, 29, 132, 0.3);
}

.program-content {
    flex: 1;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}

.program-header {
    margin-bottom: 2rem;
    width: 100%;
}

.program-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.3;
    margin: 0;
    text-align: center;
}

.program-action {
    width: 100%;
}

.btn-horizontal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    width: 100%;
    box-shadow: 0 2px 8px rgba(0, 29, 132, 0.3);
}

.btn-horizontal:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 29, 132, 0.4);
}

.btn-horizontal i {
    font-size: 0.9rem;
}

/* Category Tags */
.category-tag {
    position: absolute;
    top: 0.3rem;
    right: 0.3rem;
    padding: 0.15rem 0.4rem;
    border-radius: 8px;
    font-size: 0.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    color: white;
    z-index: 10;
    animation: bounce-in 0.6s ease-out;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

/* Neşeli Kategori Renkleri */
.category-muhasebe {
    background: linear-gradient(135deg, #667eea, #764ba2);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.category-microsoft-office {
    background: linear-gradient(135deg, #f093fb, #f5576c);
    box-shadow: 0 2px 8px rgba(240, 147, 251, 0.3);
}

.category-power-bi {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    box-shadow: 0 2px 8px rgba(79, 172, 254, 0.3);
}

.category-on-muhasebe {
    background: linear-gradient(135deg, #43e97b, #38f9d7);
    box-shadow: 0 2px 8px rgba(67, 233, 123, 0.3);
}

.category-google {
    background: linear-gradient(135deg, #fa709a, #fee140);
    box-shadow: 0 2px 8px rgba(250, 112, 154, 0.3);
}

.category-girisimcilik {
    background: linear-gradient(135deg, #a8edea, #fed6e3);
    box-shadow: 0 2px 8px rgba(168, 237, 234, 0.3);
}

/* Hover Efekti */
.education-program-horizontal:hover .category-tag {
    transform: scale(1.1) rotate(-2deg);
    animation: wiggle 0.5s ease-in-out;
}

/* Animasyonlar */
@keyframes bounce-in {
    0% {
        transform: scale(0) rotate(45deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.2) rotate(-10deg);
        opacity: 0.8;
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

@keyframes wiggle {
    0%, 100% { transform: scale(1.1) rotate(-2deg); }
    25% { transform: scale(1.15) rotate(-4deg); }
    75% { transform: scale(1.05) rotate(0deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .category-tag {
        top: 0.15rem;
        right: 0.15rem;
        padding: 0.1rem 0.3rem;
        font-size: 0.45rem;
        border-radius: 6px;
        letter-spacing: 0.1px;
    }
}

/* Discount Highlight in Text */
.discount-highlight {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.95em;
    box-shadow: 0 2px 8px rgba(0, 29, 132, 0.3);
    animation: pulse-glow 2s ease-in-out infinite;
    transition: all 0.3s ease;
}

/* Light Theme - Accent Color */
[data-theme="light"] .discount-highlight {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

/* Dark Theme - Primary Color (default) */
[data-theme="dark"] .discount-highlight {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
}

/* Animations */
@keyframes pulse-glow {
    0%, 100% { 
        transform: scale(1);
    }
    50% { 
        transform: scale(1.05);
    }
}

/* Light theme pulse */
[data-theme="light"] .discount-highlight {
    animation: pulse-glow-light 2s ease-in-out infinite;
}

@keyframes pulse-glow-light {
    0%, 100% { 
        box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 4px 16px rgba(16, 185, 129, 0.6);
        transform: scale(1.05);
    }
}

/* Dark theme pulse */
[data-theme="dark"] .discount-highlight {
    animation: pulse-glow-dark 2s ease-in-out infinite;
}

@keyframes pulse-glow-dark {
    0%, 100% { 
        box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 4px 16px rgba(59, 130, 246, 0.7);
        transform: scale(1.05);
    }
}

/* Popular Courses Grid */
.popular-courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

/* Popular Course Card - Vertical Design */
.popular-course-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
    /* height: 570px; Kaldırıldı - resimlerin kare olması için */
}

.popular-course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-light);
}

/* Square Course Image */
.course-image-square {
    width: 100%;
    height: 0;
    padding-bottom: 100%; /* Kare için padding-bottom = width */
    background: linear-gradient(135deg, var(--primary-light), var(--accent-light));
    position: relative;
    border-radius: 16px 16px 0 0;
    overflow: hidden;
}

.course-image-square .image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.course-image-square i {
    font-size: 4rem;
    color: var(--white);
}

/* Category Tag on Image */
.course-image-square .category-tag {
    position: absolute;
    top: 0.8rem;
    right: 0.8rem;
    z-index: 10;
}

/* Course Content */
.course-content {
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    background: var(--white);
    position: relative;
    flex: 1; /* Kalan alanı doldur */
    justify-content: space-between; /* Elemanları dağıt */
}

/* Meta Badges */
.course-meta-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.course-dates {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: var(--white);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    display: inline-block;
}

.course-time {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: var(--white);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    display: inline-block;
}

.course-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.3;
    margin: 0;
    height: 3.2rem; /* Sabit yükseklik - 2 satır için */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Instructor with Avatar */
.course-instructor {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
}

.instructor-avatar {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}


/* Pricing Section - Kompakt Tasarım */
.course-pricing {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    padding: 0.75rem;
    border-radius: 8px;
    border: 1px solid var(--gray-200);
}

.price-section {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.old-price {
    font-size: 0.75rem;
    color: var(--text-light);
    text-decoration: line-through;
    font-weight: 500;
    opacity: 0.8;
}

.current-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.discount-badge {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: var(--white);
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
    animation: pulse-discount 2s ease-in-out infinite;
}

@keyframes pulse-discount {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Course Action Buttons */
.course-actions {
    display: flex;
    gap: 1rem;
    margin-top: auto; /* Her zaman altta */
}

.btn-buy-now {
    flex: 1;
    background: linear-gradient(135deg, #10b981, #059669);
    color: var(--white);
    border: none;
    padding: 1.2rem 2rem;
    border-radius: 16px;
    font-weight: 800;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 6px 20px rgba(16, 185, 129, 0.4),
        0 0 0 1px rgba(16, 185, 129, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.btn-buy-now::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;
}

.btn-buy-now:hover::before {
    left: 100%;
}

.btn-buy-now:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 
        0 12px 32px rgba(16, 185, 129, 0.5),
        0 0 0 1px rgba(16, 185, 129, 0.2);
}

.btn-buy-now:active {
    transform: translateY(-2px) scale(0.98);
}

.btn-buy-now i {
    font-size: 1.1rem;
    animation: bounce-cart 2s ease-in-out infinite;
}

@keyframes bounce-cart {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}

@keyframes bounce-bag {
    0%, 100% { transform: rotate(15deg) scale(1.1); }
    25% { transform: rotate(20deg) scale(1.2); }
    75% { transform: rotate(10deg) scale(1.15); }
}

.btn-add-cart {
    flex: 1;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    color: var(--text-dark);
    border: 2px solid #e2e8f0;
    padding: 1.2rem 2rem;
    border-radius: 16px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

/* Light Theme Hover - Sarı */
[data-theme="light"] .btn-add-cart:hover {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-color: #f59e0b;
    color: #f59e0b;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 8px 24px rgba(245, 158, 11, 0.3),
        0 0 0 1px rgba(245, 158, 11, 0.2);
}

/* Light Theme Icon */
[data-theme="light"] .btn-add-cart:hover i {
    color: #f59e0b;
    transform: rotate(15deg) scale(1.1);
    animation: bounce-bag 0.6s ease-in-out;
}

.btn-add-cart:active {
    transform: translateY(-1px) scale(0.98);
}

.btn-add-cart i {
    position: relative;
    z-index: 1;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-add-cart span {
    position: relative;
    z-index: 1;
}

/* Dark Theme Overrides */
[data-theme="dark"] .popular-course-card {
    background: var(--gray-800);
    border-color: var(--gray-700);
}

[data-theme="dark"] .popular-course-card:hover {
    border-color: var(--primary);
}

[data-theme="dark"] .course-content {
    background: var(--gray-800);
}

[data-theme="dark"] .instructor-avatar {
    background: linear-gradient(135deg, var(--gray-700), var(--gray-600));
}

[data-theme="dark"] .course-pricing {
    background: linear-gradient(135deg, var(--gray-700), var(--gray-600));
    border-color: var(--gray-600);
}

[data-theme="dark"] .btn-add-cart {
    background: var(--gray-700);
    border-color: var(--gray-600);
    color: var(--text);
}

[data-theme="dark"] .btn-add-cart:hover {
    background: #fef2f2;
    color: #ef4444;
    border-color: #ef4444;
}

/* Dark Theme Button Overrides */
[data-theme="dark"] .btn-add-cart {
    background: linear-gradient(135deg, var(--gray-700), var(--gray-600));
    border-color: var(--gray-500);
    color: var(--text);
}

/* Dark Theme Hover - Mavi */
[data-theme="dark"] .btn-add-cart:hover {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    border-color: #3b82f6;
    color: #3b82f6;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 8px 24px rgba(59, 130, 246, 0.3),
        0 0 0 1px rgba(59, 130, 246, 0.3);
}

/* Dark Theme Icon */
[data-theme="dark"] .btn-add-cart:hover i {
    color: #1d4ed8;
    transform: rotate(15deg) scale(1.1);
    animation: bounce-bag 0.6s ease-in-out;
}

/* Responsive */
@media (max-width: 768px) {
    .popular-courses-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    /* .popular-course-card {
        height: 530px; Kaldırıldı - resimlerin kare olması için
    } */
    
    .course-content {
        padding: 1.2rem;
        gap: 0.6rem;
    }
    
    .course-image-square i {
        font-size: 3.5rem;
    }
    
    .course-image-square .category-tag {
        top: 0.6rem;
        right: 0.6rem;
    }
    
    .course-name {
        font-size: 1rem;
    }
    
    /* Fiyat bölümü mobil düzenlemeleri */
    .course-pricing {
        padding: 0.5rem;
    }
    
    .current-price {
        font-size: 1rem;
    }
    
    .old-price {
        font-size: 0.7rem;
    }
    
    .discount-badge {
        font-size: 0.55rem;
        padding: 0.2rem 0.4rem;
    }
    
    .course-actions {
        gap: 0.6rem;
    }
    
    .btn-buy-now {
        padding: 1rem 1.5rem;
        font-size: 0.8rem;
    }
    
    .btn-add-cart {
        padding: 1rem 1.5rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .popular-courses-grid {
        grid-template-columns: 1fr;
    }
    
    .course-actions {
        flex-direction: column;
        gap: 0.8rem;
    }
}

/* Light Theme Overrides */
[data-theme="light"] .education-program-horizontal {
    background: #ffffff;
    border-color: #e2e8f0;
}

[data-theme="light"] .program-image {
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
}

[data-theme="light"] .program-title {
    color: #000000;
}

[data-theme="light"] .program-description {
    color: #374151;
}

[data-theme="light"] .meta-item {
    color: #6b7280;
}

/* Dark Theme Overrides */
[data-theme="dark"] .education-program-horizontal {
    background: var(--bg-card);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .program-image {
    background: linear-gradient(135deg, #1e293b, #334155);
}

[data-theme="dark"] .program-title {
    color: var(--white);
}

[data-theme="dark"] .program-description {
    color: var(--text);
}

[data-theme="dark"] .meta-item {
    color: var(--text-light);
}

[data-theme="dark"] .program-badge {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
}

/* Responsive Design */
@media (max-width: 1024px) {
    .education-programs-horizontal {
        gap: 1.5rem;
    }
    
    .education-program-horizontal {
        height: 200px;
    }
    
    .program-image {
        width: 200px;
        height: 200px;
    }
    
    .image-placeholder {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
    
    .program-content {
        padding: 1.25rem;
    }
}

@media (max-width: 768px) {
    .education-programs-horizontal {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin: 2rem 0;
    }
    
    .education-program-horizontal {
        flex-direction: column;
        max-width: 400px;
        margin: 0 auto;
        height: auto;
    }
    
    .program-image {
        width: 100%;
        height: 200px;
    }
    
    .image-placeholder {
        width: 120px;
        height: 120px;
        font-size: 2.5rem;
    }
    
    .program-content {
        padding: 1.25rem;
    }
    
    .program-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .program-badge {
        align-self: flex-end;
    }
    
    .program-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .program-content {
        padding: 1rem;
    }
    
    .program-title {
        font-size: 0.95rem;
    }
    
    .program-description {
        font-size: 0.75rem;
    }
    
    .btn-horizontal {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }
}

/* ========================================
   OLD PRE-EDUCATION SECTION SYSTEM (DEPRECATED)
   ======================================== */

/* Pre-Education Light Theme Variables */
[data-theme="light"] {
    --pre-edu-section-bg: #f8fafc;
    --pre-edu-card-bg: #ffffff;
    --pre-edu-card-border: rgba(203, 213, 225, 0.5);
    --pre-edu-card-shadow: 0 4px 16px rgba(0, 29, 132, 0.08);
    --pre-edu-card-hover-shadow: 0 12px 40px rgba(0, 29, 132, 0.15);
    --pre-edu-featured-bg: linear-gradient(135deg, #001d84 0%, #1e40af 100%);
    --pre-edu-featured-border: var(--secondary);
    --pre-edu-progress-bg: rgba(59, 130, 246, 0.05);
    --pre-edu-progress-border: rgba(59, 130, 246, 0.15);
    --pre-edu-progress-bar-bg: rgba(59, 130, 246, 0.1);
    --pre-edu-footer-border: rgba(203, 213, 225, 0.5);
}

/* Education Programs Dark Theme Variables - Orta ton */
[data-theme="dark"] {
    --pre-edu-section-bg: #475569;  /* gray-600 - Education Programs için */
    --pre-edu-card-bg: #64748b;     /* gray-500 - Biraz daha açık */
    --pre-edu-card-border: rgba(255, 255, 255, 0.1);
    --pre-edu-card-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --pre-edu-card-hover-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    --pre-edu-featured-bg: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    --pre-edu-featured-border: var(--secondary);
    --pre-edu-progress-bg: rgba(59, 130, 246, 0.1);
    --pre-edu-progress-border: rgba(59, 130, 246, 0.2);
    --pre-edu-progress-bar-bg: rgba(59, 130, 246, 0.15);
    --pre-edu-footer-border: rgba(255, 255, 255, 0.1);
    
    /* Education Programs için özel değişkenler */
    --education-programs-section-bg: #475569;  /* gray-600 */
    --education-programs-card-bg: #64748b;     /* gray-500 */
}

.pre-edu-section {
    background: var(--pre-edu-section-bg);
    color: var(--text);
}

.pre-edu-card {
    background: var(--pre-edu-card-bg);
    border-color: var(--pre-edu-card-border);
    box-shadow: var(--pre-edu-card-shadow);
    color: var(--text);
}

.pre-edu-card:hover {
    box-shadow: var(--pre-edu-card-hover-shadow);
}

.pre-edu-card.featured {
    background: var(--pre-edu-featured-bg);
    border-color: var(--pre-edu-featured-border);
    color: var(--white);
}

.pre-edu-card.featured .card-title,
.pre-edu-card.featured .card-description,
.pre-edu-card.featured .feature {
    color: var(--white);
}

.pre-edu-section .progress-section {
    background: var(--pre-edu-progress-bg);
    border-color: var(--pre-edu-progress-border);
}

.pre-edu-section .progress-bar {
    background: var(--pre-edu-progress-bar-bg);
}

.card-footer {
    border-color: var(--pre-edu-footer-border);
}

/* ========================================
   7. PRE-REGISTRATION SECTION SYSTEM
   ======================================== */

.pre-registration-section {
    background: var(--bg-primary);
    color: var(--text);
    padding: 5rem 0;
}

.pre-registration-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin: 3rem 0;
}

.pre-registration-card {
    display: flex;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    position: relative;
}

.pre-registration-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: var(--primary);
}

.pre-registration-card.featured {
    border: 2px solid var(--primary);
    position: relative;
}

.pre-registration-card.featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.card-image {
    flex-shrink: 0;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
    position: relative;
}

.image-placeholder {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 3rem;
    box-shadow: 0 8px 16px rgba(0, 29, 132, 0.3);
}

.card-content {
    flex: 1;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    position: relative;
}

.card-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.card-description {
    color: var(--text);
    margin-bottom: 1.5rem;
    line-height: 1.7;
    font-size: 1rem;
}

.card-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

.card-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--text);
    font-weight: 500;
}

.card-features i {
    color: var(--primary);
    font-size: 1.1rem;
    width: 20px;
}

.card-action {
    margin-top: auto;
}

.btn-card-primary,
.btn-card-premium {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    width: 100%;
}

.btn-card-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    box-shadow: 0 4px 12px rgba(0, 29, 132, 0.3);
}

.btn-card-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 29, 132, 0.4);
}

.btn-card-premium {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: var(--white);
    box-shadow: 0 4px 12px rgba(247, 147, 26, 0.3);
}

.btn-card-premium:hover {
    background: linear-gradient(135deg, var(--accent-dark), var(--accent));
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(247, 147, 26, 0.4);
}

/* Light Theme Overrides */
[data-theme="light"] .pre-registration-section {
    background: #f8fafc;
}

[data-theme="light"] .pre-registration-card {
    background: #ffffff;
    border-color: #e2e8f0;
}

[data-theme="light"] .card-image {
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
}

[data-theme="light"] .card-title {
    color: #000000;
}

[data-theme="light"] .card-description {
    color: #374151;
}

[data-theme="light"] .card-features li {
    color: #4b5563;
}

/* Dark Theme Overrides */
[data-theme="dark"] .pre-registration-section {
    background: #334155;
}

[data-theme="dark"] .pre-registration-card {
    background: var(--bg-card);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .card-image {
    background: linear-gradient(135deg, #1e293b, #334155);
}

[data-theme="dark"] .card-title {
    color: var(--white);
}

[data-theme="dark"] .card-description {
    color: var(--text);
}

[data-theme="dark"] .card-features li {
    color: var(--text);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .pre-registration-cards {
        gap: 2rem;
    }
    
    .card-image {
        width: 160px;
        height: 160px;
    }
    
    .image-placeholder {
        width: 100px;
        height: 100px;
        font-size: 2.5rem;
    }
    
    .card-content {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .pre-registration-section {
        padding: 3rem 0;
    }
    
    .pre-registration-cards {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin: 2rem 0;
    }
    
    .pre-registration-card {
        flex-direction: column;
    }
    
    .card-image {
        width: 100%;
        height: 200px;
    }
    
    .card-content {
        padding: 2rem;
    }
    
    .card-badge {
        top: 1rem;
        right: 1rem;
    }
}

@media (max-width: 480px) {
    .card-content {
        padding: 1.5rem;
    }
    
    .card-title {
        font-size: 1.5rem;
    }
    
    .btn-card-primary,
    .btn-card-premium {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }
}

/* ========================================
   8. CTA SECTION SYSTEM
   ======================================== */

.cta-section {
    background: var(--bg-primary);
    color: var(--text);
    text-align: center;
}

/* En açık koyu - CTA section */
[data-theme="dark"] .cta-section {
    background: #94a3b8 !important;  /* gray-400 */
    color: var(--text-dark) !important;
}

.cta-section .cta-title,
.cta-section .section-title {
    color: var(--text-dark);
    font-weight: 800;
}

.cta-section .cta-description,
.cta-section .section-subtitle {
    color: var(--text);
}

/* ========================================
   8. GLOBAL SECTION STYLING
   ======================================== */

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    font-family: var(--font-heading);
    color: var(--text-dark);
}

.section-subtitle {
    font-size: 1.1rem;
    font-weight: 400;
    margin: 0 auto;
    max-width: 600px;
    font-family: var(--font-family);
    color: var(--text);
}

/* ========================================
   9. BUTTON SYSTEM
   ======================================== */

.btn-card {
    background: var(--primary);
    color: var(--white);
    transition: var(--transition);
}

.btn-card:hover {
    background: var(--secondary);
}

.price-amount {
    color: var(--primary);
}

.price-period {
    color: var(--text);
}

/* ========================================
   10. SCROLLBAR STYLING SYSTEM
   ======================================== */

/* Default Scrollbar Styling - Light Theme */
:root {
    --scrollbar-width: 8px;
    --scrollbar-track-bg: #f1f5f9;
    --scrollbar-thumb-bg: #cbd5e1;
    --scrollbar-thumb-hover-bg: #94a3b8;
    --scrollbar-thumb-active-bg: #64748b;
    --scrollbar-corner-bg: #f8fafc;
}

/* Light Theme Scrollbar */
[data-theme="light"] {
    --scrollbar-track-bg: #f8fafc;
    --scrollbar-thumb-bg: #e2e8f0;
    --scrollbar-thumb-hover-bg: #cbd5e1;
    --scrollbar-thumb-active-bg: #94a3b8;
    --scrollbar-corner-bg: #ffffff;
}

/* Dark Theme Scrollbar */
[data-theme="dark"] {
    --scrollbar-track-bg: #0f172a;
    --scrollbar-thumb-bg: #334155;
    --scrollbar-thumb-hover-bg: #475569;
    --scrollbar-thumb-active-bg: #64748b;
    --scrollbar-corner-bg: #1e293b;
}

/* Webkit Scrollbar Styling */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--scrollbar-thumb-bg) var(--scrollbar-track-bg);
}

/* Webkit Scrollbar */
::-webkit-scrollbar {
    width: var(--scrollbar-width);
    height: var(--scrollbar-width);
}

::-webkit-scrollbar-track {
    background: var(--scrollbar-track-bg);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb-bg);
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--scrollbar-thumb-hover-bg);
}

::-webkit-scrollbar-thumb:active {
    background: var(--scrollbar-thumb-active-bg);
}

::-webkit-scrollbar-corner {
    background: var(--scrollbar-corner-bg);
}

/* Özel Container Scrollbar'ları */
.course-list::-webkit-scrollbar,
.sidebar::-webkit-scrollbar,
.content-area::-webkit-scrollbar {
    width: 6px;
}

.course-list::-webkit-scrollbar-thumb,
.sidebar::-webkit-scrollbar-thumb,
.content-area::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb-bg);
    border-radius: 3px;
}

.course-list::-webkit-scrollbar-thumb:hover,
.sidebar::-webkit-scrollbar-thumb:hover,
.content-area::-webkit-scrollbar-thumb:hover {
    background: var(--scrollbar-thumb-hover-bg);
}

/* Mobil ve tablet için ince scrollbar */
@media (max-width: 768px) {
    :root {
        --scrollbar-width: 4px;
    }
    
    .course-list::-webkit-scrollbar,
    .sidebar::-webkit-scrollbar,
    .content-area::-webkit-scrollbar {
        width: 3px;
    }
}

/* Modal ve dropdown içindeki scrollbar'lar */
.modal::-webkit-scrollbar,
.dropdown-menu::-webkit-scrollbar {
    width: 6px;
}

.modal::-webkit-scrollbar-track,
.dropdown-menu::-webkit-scrollbar-track {
    background: transparent;
}

.modal::-webkit-scrollbar-thumb,
.dropdown-menu::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb-bg);
    border-radius: 3px;
}

.modal::-webkit-scrollbar-thumb:hover,
.dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: var(--scrollbar-thumb-hover-bg);
}

/* Textarea ve kod blokları için scrollbar */
textarea::-webkit-scrollbar,
pre::-webkit-scrollbar,
code::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

textarea::-webkit-scrollbar-track,
pre::-webkit-scrollbar-track,
code::-webkit-scrollbar-track {
    background: var(--scrollbar-track-bg);
    border-radius: 3px;
}

textarea::-webkit-scrollbar-thumb,
pre::-webkit-scrollbar-thumb,
code::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb-bg);
    border-radius: 3px;
}

textarea::-webkit-scrollbar-thumb:hover,
pre::-webkit-scrollbar-thumb:hover,
code::-webkit-scrollbar-thumb:hover {
    background: var(--scrollbar-thumb-hover-bg);
}

/* Body scrollbar özel styling */
body::-webkit-scrollbar {
    width: 10px;
}

body::-webkit-scrollbar-track {
    background: var(--scrollbar-track-bg);
}

body::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb-bg);
    border-radius: 5px;
    border: 1px solid var(--scrollbar-track-bg);
}

body::-webkit-scrollbar-thumb:hover {
    background: var(--scrollbar-thumb-hover-bg);
}

/* Firefox için özel scrollbar renkleri */
@-moz-document url-prefix() {
    html {
        scrollbar-width: thin;
        scrollbar-color: var(--scrollbar-thumb-bg) var(--scrollbar-track-bg);
    }
    
    [data-theme="light"] html {
        scrollbar-color: #e2e8f0 #f8fafc;
    }
    
    [data-theme="dark"] html {
        scrollbar-color: #334155 #0f172a;
    }
}

/* ========================================
   11. RESPONSIVE UTILITIES
   ======================================== */

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    /* Mobilde daha az boşluk */
    [data-theme="light"] .popular-courses-section,
    [data-theme="dark"] .popular-courses-section,
    [data-theme="light"] .education-programs-section,
    [data-theme="dark"] .education-programs-section {
        padding: 3rem 0 !important;
    }
}