/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: #111827;
}

/* Active page: Course with underline */
.course-nav {
    font-size: 1.05rem;
    font-weight: 700;
    color: #6d28d9;
    position: relative;
}
.course-nav::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 3px;
    width: 60px;
    margin: 0 auto;
    background: linear-gradient(90deg,#7c3aed 0%, #ec4899 100%);
    border-radius: 9999px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Login as plain text link */
.btn-login {
    background: transparent;
    border: none;
    color: #111827;
    padding: 0.5rem 1rem;
    font-weight: 600;
    cursor: pointer;
}
.btn-login:hover { color: #6d28d9; }

/* Register pill with purple→pink gradient */
.btn-register {
    background: linear-gradient(90deg,#7c3aed 0%, #ec4899 100%);
    border: none;
    color: #ffffff;
    padding: 0.6rem 1.25rem;
    border-radius: 9999px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(124,58,237,0.35);
    transition: transform .2s ease, box-shadow .2s ease;
}
.btn-register:hover { transform: translateY(-1px); box-shadow: 0 14px 28px rgba(124,58,237,0.45); }







/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #2c0855 0%, #40146d 50%, #5a1e88 100%);
    padding: 4rem 0 6rem;
    min-height: 560px;
    display: flex;
    align-items: center;
    color: #ffffff;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1.1fr 1.8fr 1.1fr;
    gap: 2rem;
    align-items: center;
}

.hero-left, .hero-right { display: flex; flex-direction: column; gap: 1.25rem; }

/* Circular 500+ badge */
.hero-left .stats-box:first-child {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,0.06);
    border: 2px solid rgba(255,255,255,0.25);
    box-shadow: inset 0 0 40px rgba(255,255,255,0.06), 0 12px 30px rgba(0,0,0,0.25);
    transition: all .3s ease;
    cursor: pointer;
}
.hero-left .stats-box:first-child:hover {
    transform: scale(1.05);
    border-color: rgba(255,255,255,0.4);
    box-shadow: inset 0 0 50px rgba(255,255,255,0.08), 0 15px 35px rgba(0,0,0,0.3);
}
.hero-left .stats-box:first-child .stat-number { font-size: 2rem; color: #fff; }
.hero-left .stats-box:first-child .stat-label { color: #d1d5db; }

/* Rating pill bottom-left */
.hero-left .stats-box:last-child {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 50px;
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    width: fit-content;
    transition: all .3s ease;
    cursor: pointer;
}
.hero-left .stats-box:last-child:hover {
    transform: translateY(-2px);
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.3);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}
.hero-left .stats-box:last-child .fa-star { color: #fbbf24; }

/* Right happy kids card */
.hero-right .stats-box {
    padding: 14px 18px;
    border-radius: 20px;
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.22);
    color: #fff;
    width: fit-content;
    transition: all .3s ease;
    cursor: pointer;
}
.hero-right .stats-box:hover {
    transform: translateY(-2px);
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.3);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}
.hero-right .stat-number { font-weight: 800; font-size: 1.4rem; color: #fff; }
.hero-right .stat-label { color: #e5e7eb; font-weight: 600; }

.hero-image { text-align: center; }
.hero-image img { 
    width: 220px; 
    height: 300px; 
    object-fit: cover; 
    border-radius: 16px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.35); 
    transition: all .3s ease;
}
.hero-image img:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(0,0,0,0.45);
}

.hero-center { text-align: center; }
.hero-title { font-size: 3rem; font-weight: 800; color: #fff; margin-bottom: 0.75rem; }
/* Yellow playful subtitle */
.hero-subtitle { font-size: 2.2rem; font-weight: 800; color: #fff275; margin-bottom: 2rem; letter-spacing: 0.5px; }

/* Large pill search */
.search-container { max-width: 960px; margin: 0 auto; }
.search-box {
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 9999px;
    padding: 0.5rem;
    box-shadow: 0 16px 40px rgba(0,0,0,0.25);
    transition: all .3s ease;
}
.search-box:hover {
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    transform: translateY(-2px);
}
.search-icon { 
    color: #9ca3af; 
    margin-left: 1.25rem; 
    margin-right: 0.5rem; 
    font-size: 1.1rem; 
    transition: all .3s ease;
}
.search-box:hover .search-icon {
    color: #3b82f6;
    transform: scale(1.1);
}
.search-input { 
    flex: 1; 
    border: none; 
    outline: none; 
    padding: 1.25rem 1rem; 
    font-size: 1.05rem; 
    background: transparent; 
    color: #111827; 
    transition: all .3s ease;
}
.search-input:focus {
    color: #3b82f6;
}
.search-input::placeholder { 
    color: #9ca3af; 
    transition: color .3s ease;
}
.search-input:focus::placeholder {
    color: #d1d5db;
}
.search-btn {
    background: linear-gradient(90deg,#7c3aed 0%, #ec4899 100%);
    color: #fff;
    border: none;
    padding: 1rem 2.25rem;
    border-radius: 9999px;
    font-weight: 800;
    cursor: pointer;
    margin-right: 0.5rem;
}
.search-btn:hover { 
    filter: brightness(1.05); 
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(124,58,237,0.45);
}

/* Age Filter Section (unchanged layout) */
.age-filter-section { background:#fff; padding: 3rem 0; }
.age-filter-title i { 
    color:#2563eb; 
    transition: all .3s ease;
}
.age-filter-title:hover i {
    color: #3b82f6;
    transform: scale(1.1);
}

/* Age chips exact look */
.age-buttons { display:grid; grid-template-columns: repeat(auto-fit,minmax(86px,1fr)); gap: 14px; max-width: 980px; margin: 0 auto; }
.age-btn { 
    background:#fff; 
    border: 1.5px solid #e5e7eb; 
    border-radius: 12px; 
    padding: 12px 6px; 
    font-weight: 700; 
    font-size: 0.9rem; 
    color:#111827; 
    line-height: 1.1; 
    box-shadow: 0 6px 18px rgba(0,0,0,0.04); 
    transition: all .3s ease; 
    cursor: pointer;
}
.age-btn:hover { 
    box-shadow: 0 12px 28px rgba(0,0,0,0.12); 
    transform: translateY(-2px); 
    border-color: #3b82f6;
}
.age-btn br { display:block; }

/* Border colors by group */
.age-btn.yellow { border-color: rgba(233, 245, 11, 0.949); color: black; }
.age-btn.orange { border-color: rgba(246, 145, 3, 0.996); color:black; }
.age-btn.purple { border-color: rgba(139,92,246,0.55); color:black; }
.age-btn.green { border-color: rgba(16,185,129,0.55); color:black; }
.age-btn.blue { border-color: rgba(37,99,235,0.55); color:black; }

/* Active filled states */
.age-btn.orange.active { background: rgba(245,158,11,0.12); border-color: #f59e0b; color:#9a5a00; box-shadow: 0 10px 26px rgba(245,158,11,0.22); }
.age-btn.purple.active { background: rgba(139,92,246,0.12); border-color: #8b5cf6; color:#4c28c9; box-shadow: 0 10px 26px rgba(139,92,246,0.22); }
.age-btn.green.active { background: rgba(16,185,129,0.12); border-color: #10b981; color:#0f6b53; box-shadow: 0 10px 26px rgba(16,185,129,0.22); }
.age-btn.blue.active { background: rgba(37,99,235,0.12); border-color: #2563eb; color:#1749c6; box-shadow: 0 10px 26px rgba(37,99,235,0.22); }

/* Section Styles */
.section-header { text-align:center; margin-bottom:3rem; }
.section-title { 
    font-size:2rem; 
    font-weight:700; 
    color:#1f2937; 
    margin-bottom:.5rem; 
    display:flex; 
    align-items:center; 
    justify-content:center; 
    gap:.5rem; 
    transition: all .3s ease;
    cursor: pointer;
}
.section-title:hover {
    color: #3b82f6;
    transform: scale(1.02);
}
.section-subtitle { 
    color:#64748b; 
    font-size:1.1rem; 
    transition: color .3s ease;
}
.section-title:hover + .section-subtitle {
    color: #6b7280;
}

/* Cards (unchanged) */
.course-card{background:#fff;border-radius:12px;overflow:hidden;box-shadow:0 4px 6px rgba(0,0,0,.05);transition:all .3s ease;cursor:pointer}
.course-card:hover{transform:translateY(-4px);box-shadow:0 8px 25px rgba(0,0,0,.1)}
.course-image{width:100%;height:180px;object-fit:cover}
.course-content{padding:1.5rem}
.course-category{display:inline-block;background:linear-gradient(135deg,#f59e0b,#fbbf24);color:#fff;padding:.25rem .75rem;border-radius:20px;font-size:.75rem;font-weight:600;margin-bottom:.75rem}

/* New Launches exact layout */
.new-launches-section { 
    background: #f5f6fb; 
    padding: 4rem 0; 
}
.new-launches-section .section-title {
    transition: all .3s ease;
}
.new-launches-section .section-title:hover {
    color: #3b82f6;
    transform: scale(1.02);
}
.new-launches-section .container { position: relative; }
.course-carousel { display: flex; gap: 24px; overflow-x: auto; padding: 6px 4px 12px; scroll-behavior: smooth; }
.course-carousel::-webkit-scrollbar { height: 8px; }
.course-carousel::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.12); border-radius: 8px; }

.course-item { min-width: 330px; flex: 0 0 330px; }
.tile-rating { font-size: 0.8rem; color: #6b7280; margin-bottom: 8px; display: inline-flex; align-items: center; gap: 6px; }
.tile-rating .fa-star { color: #fbbf24; }

/* Course Cards - Updated to match new image */
.course-card { 
    background:#fff; 
    border-radius:16px; 
    overflow:hidden; 
    box-shadow: 0 8px 24px rgba(17,24,39,.08); 
    transition: all .3s ease; 
    cursor:pointer; 
    position: relative; 
    border: 3px solid transparent;
}
.course-card:hover { 
    transform: translateY(-6px); 
    box-shadow: 0 20px 40px rgba(17,24,39,.15), 0 0 20px rgba(59, 130, 246, 0.1); 
    border-color: rgba(59, 130, 246, 0.3);
}
.course-card.active { 
    border-color: #3b82f6; 
    box-shadow: 0 0 0 3px #3b82f6, 0 8px 24px rgba(17,24,39,.08), 0 0 20px rgba(59, 130, 246, 0.2); 
    transform: translateY(-2px);
}
.course-card:active {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(17,24,39,.12);
}

.course-card:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px #3b82f6, 0 8px 24px rgba(17,24,39,.08);
}

/* Smooth transition for all interactive elements */
.course-card * {
    transition: all .3s ease;
}

.course-image { 
    width:100%; 
    height:200px; 
    object-fit:cover; 
    transition: transform .3s ease;
}
.course-card:hover .course-image {
    transform: scale(1.02);
}

/* Course Tags - Updated colors matching new image */
.tag-row { display:flex; gap:8px; margin:12px 16px; flex-wrap:wrap; }
.tag-chip { 
    padding:6px 12px; 
    border-radius:20px; 
    font-size:12px; 
    font-weight:600; 
    transition: all .3s ease;
    cursor: pointer;
}
.tag-chip:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.tag-chip.english { background: #fce7f3; color: #be185d; }
.tag-chip.intermediate { background: #fed7aa; color: #ea580c; }
.tag-chip.classes { background: #fef3c7; color: #d97706; }

/* Course Title */
.course-title { 
    font-size:16px; 
    font-weight:700; 
    color:#111827; 
    margin:0 16px 12px; 
    line-height:1.4; 
    transition: color .3s ease;
}
.course-card:hover .course-title {
    color: #3b82f6;
}

/* Instructor Section */
.instructor-section { 
    display:flex; 
    align-items:center; 
    gap:8px; 
    margin:0 16px 16px; 
    transition: all .3s ease;
}
.instructor-avatar { 
    width:24px; 
    height:24px; 
    border-radius:50%; 
    object-fit:cover; 
    transition: transform .3s ease;
}
.course-card:hover .instructor-avatar {
    transform: scale(1.1);
}
.instructor-name { 
    font-size:13px; 
    color:#6b7280; 
    transition: color .3s ease;
}
.course-card:hover .instructor-name {
    color: #374151;
}

/* Course Info Row */
.course-info { 
    display:flex; 
    align-items:center; 
    justify-content:space-between; 
    margin:0 16px 16px; 
    padding-top:12px; 
    border-top:1px solid #f3f4f6; 
    transition: border-color .3s ease;
}
.course-card:hover .course-info {
    border-top-color: #3b82f6;
}
.course-details { display:flex; align-items:center; gap:16px; }
.course-detail { 
    display:flex; 
    align-items:center; 
    gap:6px; 
    font-size:13px; 
    color:#6b7280; 
    transition: color .3s ease;
}
.course-card:hover .course-detail {
    color: #374151;
}
.course-detail i { 
    font-size:14px; 
    color:#9ca3af; 
    transition: color .3s ease;
}
.course-card:hover .course-detail i {
    color: #3b82f6;
}
.cart-btn { 
    width:36px; 
    height:36px; 
    border-radius:50%; 
    background:#f3f4f6; 
    border:none; 
    display:flex; 
    align-items:center; 
    justify-content:center; 
    cursor:pointer; 
    transition: all .3s ease; 
}
.cart-btn:hover { 
    background:#3b82f6; 
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}
.cart-btn:hover i { 
    color:#ffffff; 
}
.cart-btn i { font-size:16px; color:#374151; transition: color .3s ease; }

/* Rating line above card */
.tile-rating { 
    display:flex; 
    align-items:center; 
    gap:8px; 
    margin-bottom:8px; 
    font-size:13px; 
    color:#6b7280; 
    transition: color .3s ease;
}
.course-card:hover .tile-rating {
    color: #374151;
}
.tile-rating i { 
    color:#fbbf24; 
    transition: transform .3s ease;
}
.course-card:hover .tile-rating i {
    transform: scale(1.1);
}
.tile-rating::after { content:''; width:1px; height:12px; background:#d1d5db; margin-left:8px; }

/* Selling badge */
.selling-badge { 
    position:absolute; 
    top:8px; 
    left:8px; 
    background:linear-gradient(135deg, #f97316, #ea580c); 
    color:white; 
    padding:4px 8px; 
    border-radius:12px; 
    font-size:11px; 
    font-weight:600; 
    z-index:2; 
    transition: all .3s ease;
}
.course-card:hover .selling-badge {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
}

/* Carousel next arrow */
.carousel-next { 
    position:absolute; 
    right:-8px; 
    top:50%; 
    transform: translateY(-50%); 
    width:54px; 
    height:54px; 
    border-radius:50%; 
    background:#fff; 
    border:1.5px solid #e5e7eb; 
    display:flex; 
    align-items:center; 
    justify-content:center; 
    box-shadow:0 10px 26px rgba(17,24,39,.08); 
    cursor:pointer; 
    transition: all .3s ease;
}
.carousel-next i { color:#111827; font-size:1.1rem; }
.carousel-next:hover { 
    box-shadow:0 14px 30px rgba(17,24,39,.12); 
    transform: translateY(-50%) scale(1.05);
    border-color: #3b82f6;
}

/* Carousel Progress Bar */
.carousel-progress {
    width: 100%;
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    margin: 1rem 0;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #7c3aed, #ec4899);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 2px;
}

/* Loading State */
.course-card.loading {
    position: relative;
    pointer-events: none;
}

.course-card.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.course-card.loading::before {
    content: '⏳';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    z-index: 10;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Teachers Section */
.teachers-section { background: linear-gradient(180deg,#faf9ff 0%, #f0ebff 100%); padding: 4rem 0; }
.teachers-section .section-title { 
    font-size: 2.4rem; 
    transition: all .3s ease;
}
.teachers-section .section-title:hover {
    color: #3b82f6;
    transform: scale(1.02);
}
.teachers-section .section-subtitle { 
    color:#6b7280; 
    transition: color .3s ease;
}
.teachers-section .section-title:hover + .section-subtitle {
    color: #374151;
}

.teachers-carousel { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; margin: 2rem 0 3rem; }
.teacher-card2 { 
    background:#fff; 
    border-radius: 16px; 
    padding: 18px; 
    text-align: center; 
    box-shadow: 0 10px 28px rgba(17,24,39,.08); 
    border:1px solid #eee; 
    transition: all .3s ease;
    cursor: pointer;
}
.teacher-card2:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(17,24,39,.15);
    border-color: #3b82f6;
}
.teacher-card2 .avatar { 
    width:72px; 
    height:72px; 
    border-radius:50%; 
    object-fit:cover; 
    margin: 0 auto 12px; 
    box-shadow: 0 6px 16px rgba(0,0,0,.08); 
    transition: transform .3s ease;
}
.teacher-card2:hover .avatar {
    transform: scale(1.05);
}
.teacher-card2 .name { 
    font-weight: 800; 
    color:#111827; 
    margin-bottom: 4px; 
    transition: color .3s ease;
}
.teacher-card2:hover .name {
    color: #3b82f6;
}
.teacher-card2 .meta { 
    font-size:.85rem; 
    color:#6b7280; 
    line-height:1.4; 
    margin-bottom: 10px; 
    transition: color .3s ease;
}
.teacher-card2:hover .meta {
    color: #374151;
}
.teacher-card2 .pill { 
    display:inline-block; 
    font-size:.75rem; 
    padding:6px 10px; 
    border-radius:9999px; 
    background:#f3f4f6; 
    color:#374151; 
    font-weight:700; 
    transition: all .3s ease;
}
.teacher-card2:hover .pill {
    background: #3b82f6;
    color: #ffffff;
    transform: scale(1.05);
}

/* Webinar Section */
.webinar-section { background:#fff; padding: 3.5rem 0 4.5rem; }
.webinar-title { 
    position: relative; 
    text-align:center; 
    font-size: 2.4rem; 
    transition: all .3s ease;
    cursor: pointer;
}
.webinar-title:hover {
    color: #3b82f6;
    transform: scale(1.02);
}
.webinar-title::before, .webinar-title::after { 
    content:''; 
    position:absolute; 
    top:50%; 
    width:120px; 
    height:6px; 
    border-bottom: 4px dotted #a78bfa; 
    transform: translateY(-50%); 
    transition: all .3s ease;
}
.webinar-title::before { left: 8px; }
.webinar-title::after { right: 8px; }

.webinar-title:hover::before,
.webinar-title:hover::after {
    border-bottom-color: #3b82f6;
    width: 140px;
}

/* Time tag pill inside course cards */
.tag-chip.time { 
    background:#eef2ff; 
    color: #4f46e5; 
    border:1px solid #c7d2fe; 
    transition: all .3s ease;
}
.tag-chip.time:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
    background: #e0e7ff;
}

/* Time Filter Section Styles */
.time-filter-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.time-filters-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.time-filter-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.time-filter-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1);
    border-color: #cbd5e1;
}

.time-filter-card.active {
    background: #f59e0b;
    border-color: #f59e0b;
    color: white;
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -3px rgba(245, 158, 11, 0.3);
}

.time-filter-card .icon-container {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    font-size: 1.5rem;
}

.time-filter-card.active .icon-container {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.time-filter-card .time-content {
    flex: 1;
}

.time-filter-card .time-label {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    color: #374151;
}

.time-filter-card.active .time-label {
    color: white;
}

.time-filter-card .time-slot {
    font-size: 0.8rem;
    color: #6b7280;
    font-weight: 500;
}

.time-filter-card.active .time-slot {
    color: rgba(255, 255, 255, 0.9);
}

/* Time filter specific icon classes */
.time-filter-card.morning .icon-container {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.time-filter-card.afternoon .icon-container {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.time-filter-card.evening .icon-container {
    background: rgba(168, 85, 247, 0.1);
    color: #a855f7;
}

.time-filter-card.weekend .icon-container {
    background: rgba(236, 72, 153, 0.1);
    color: #ec4899;
}

.time-filter-card.active.morning .icon-container,
.time-filter-card.active.afternoon .icon-container,
.time-filter-card.active.evening .icon-container,
.time-filter-card.active.weekend .icon-container {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Responsive time filters */
@media (max-width: 768px) {
    .time-filters-row {
        flex-direction: column;
        align-items: center;
    }
    
    .time-filter-card {
        min-width: 280px;
        width: 100%;
        max-width: 320px;
    }
}

/* Category Pills */
.categories-section .section-title {
    transition: all .3s ease;
}
.categories-section .section-title:hover {
    color: #3b82f6;
    transform: scale(1.02);
}
.categories-pills { display:flex; gap:24px; align-items:stretch; flex-wrap:wrap; justify-content:center; margin: 1rem 0 2rem; }
.category-pill { 
    display:flex; 
    align-items:center; 
    gap:14px; 
    background:#fff; 
    border:2px solid #e5e7eb; 
    border-radius:20px; 
    padding:18px 24px; 
    min-width: 210px; 
    box-shadow: 0 8px 24px rgba(17,24,39,.08); 
    cursor:pointer; 
    transition: all .3s ease; 
}
.category-pill:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(17,24,39,.15);
    border-color: #3b82f6;
}
.category-pill .icon { 
    font-size: 2rem; 
    transition: transform .3s ease;
}
.category-pill:hover .icon {
    transform: scale(1.1);
}
.category-pill .label { 
    font-weight:800; 
    color:#111827; 
    transition: color .3s ease;
}
.category-pill:hover .label {
    color: #3b82f6;
}

/* Specific category colors matching the image */
.category-pill[data-category="Coding"] { border-color: #93c5fd; }
.category-pill[data-category="Public speaking"] { background: #dcfce7; border-color: #86efac; }
.category-pill[data-category="Chess"] { border-color: #93c5fd; }
.category-pill[data-category="Home work help"] { border-color: #93c5fd; }
.category-pill[data-category="App building"] { border-color: #93c5fd; }

.category-pill.active { border-color:#fb923c; box-shadow: 0 16px 30px rgba(251,146,60,.35); transform: translateY(-2px); }

/* Course card tag colors matching the image */
.tag-chip.coding { background: #fed7aa; color: #9a3412; }
.tag-chip.public-speaking { background: #bbf7d0; color: #166534; }
.tag-chip.chess { background: #fed7aa; color: #9a3412; }
.tag-chip.homework { background: #bfdbfe; color: #1e40af; }
.tag-chip.app-building { background: #bfdbfe; color: #1e40af; }
.tag-chip.intermediate { background: #e9d5ff; color: #7c3aed; }
.tag-chip.classes { background: #fef3c7; color: #d97706; }
.tag-chip.time { background: #fef3c7; color: #d97706; }

/* Responsive */
@media (max-width: 1024px) {
  .hero-content{grid-template-columns:1fr; text-align:center}
  .hero-left,.hero-right{order:2; align-items:center}
  .hero-center{order:1}
}
@media (max-width: 480px){
  .hero-title{font-size:2.2rem}
  .hero-subtitle{font-size:1.6rem}
}

/* Animations */
@keyframes fadeInUp { from { opacity:0; transform: translateY(30px);} to { opacity:1; transform: translateY(0);} }
.fade-in { animation: fadeInUp .6s ease-out; }

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

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Apply animations to course cards */
.course-card {
    animation: fadeInUp 0.6s ease-out;
}

.course-card:nth-child(odd) {
    animation: slideInLeft 0.6s ease-out;
}

.course-card:nth-child(even) {
    animation: slideInRight 0.6s ease-out;
}

/* Subtle pulse for active cards */
.course-card.active {
    animation: pulse 2s ease-in-out infinite;
}

/* Utility */
.hidden{display:none}
button:focus, input:focus{ outline:2px solid #7c3aed; outline-offset:2px }
html{ scroll-behavior:smooth }

/* Floating Action Button */
.fab-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
}

.fab-main {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7c3aed, #ec4899);
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.3);
    transition: all 0.3s ease;
    z-index: 1001;
}

.fab-main:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 32px rgba(124, 58, 237, 0.4);
}

.fab-main.active {
    transform: rotate(45deg);
}

.fab-options {
    position: absolute;
    bottom: 70px;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.fab-container:hover .fab-options,
.fab-container:focus-within .fab-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.fab-option {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    border: 2px solid #e5e7eb;
    color: #6b7280;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.fab-option:hover {
    background: #7c3aed;
    color: white;
    border-color: #7c3aed;
    transform: scale(1.1);
}

.fab-option[data-tooltip]::before {
    content: attr(data-tooltip);
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    background: #1f2937;
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.875rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.fab-option:hover[data-tooltip]::before {
    opacity: 1;
    visibility: visible;
}

/* Toast Notifications Container */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 16px;
    min-width: 300px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    animation: slideInRight 0.3s ease-out;
    border-left: 4px solid #6b7280;
}

.toast.success {
    border-left-color: #10b981;
}

.toast.error {
    border-left-color: #ef4444;
}

.toast.info {
    border-left-color: #3b82f6;
}

.toast-icon {
    font-size: 18px;
    color: #6b7280;
    margin-top: 2px;
}

.toast.success .toast-icon {
    color: #10b981;
}

.toast.error .toast-icon {
    color: #ef4444;
}

.toast.info .toast-icon {
    color: #3b82f6;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    color: #111827;
    margin-bottom: 4px;
    font-size: 14px;
}

.toast-message {
    color: #6b7280;
    font-size: 13px;
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-size: 16px;
}

.toast-close:hover {
    background: #f3f4f6;
    color: #6b7280;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.toast.hiding {
    animation: slideOutRight 0.3s ease-in forwards;
}

/* Footer Styles */
.footer {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    color: #ffffff;
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #f9fafb;
    margin-bottom: 0.5rem;
}

.footer-description {
    color: #d1d5db;
    line-height: 1.6;
    font-size: 0.9rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-link {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 0.9rem;
}

.footer-link:hover {
    color: #7c3aed;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.2s ease;
}

.social-link:hover {
    background: #7c3aed;
    transform: translateY(-2px);
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.newsletter-input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 0.9rem;
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-input:focus {
    outline: none;
    border-color: #7c3aed;
    background: rgba(255, 255, 255, 0.15);
}

.newsletter-btn {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(90deg, #7c3aed 0%, #ec4899 100%);
    border: none;
    border-radius: 6px;
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.newsletter-btn:hover {
    transform: translateY(-1px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.copyright {
    color: #9ca3af;
    font-size: 0.9rem;
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}

.footer-bottom-link {
    color: #9ca3af;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-bottom-link:hover {
    color: #7c3aed;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #7c3aed 0%, #ec4899 100%);
    border: none;
    border-radius: 50%;
    color: #ffffff;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.3);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(124, 58, 237, 0.4);
}

/* Enhanced Popular Categories with Hover Effects */
.categories-section {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 4rem 0;
}

.categories-pills {
    display: flex;
    gap: 1.5rem;
    align-items: stretch;
    flex-wrap: wrap;
    justify-content: center;
    margin: 2rem 0 3rem;
}

.category-pill {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem 1rem;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.category-pill:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.category-pill .icon {
    font-size: 2rem;
    transition: all 0.3s ease;
}

.category-pill .label {
    font-weight: 600;
    color: #374151;
    text-align: center;
    font-size: 0.9rem;
}

/* Category-specific hover effects */
.category-pill[data-category="Coding"]:hover {
    border-color: #f97316;
    background: linear-gradient(135deg, #fff7ed 0%, #fed7aa 100%);
}

.category-pill[data-category="Coding"]:hover .icon {
    color: #f97316;
    transform: scale(1.1);
}

.category-pill[data-category="Public speaking"]:hover {
    border-color: #22c55e;
    background: linear-gradient(135deg, #f0fdf4 0%, #bbf7d0 100%);
}

.category-pill[data-category="Public speaking"]:hover .icon {
    color: #22c55e;
    transform: scale(1.1);
}

.category-pill[data-category="Chess"]:hover {
    border-color: #eab308;
    background: linear-gradient(135deg, #fefce8 0%, #fef3c7 100%);
}

.category-pill[data-category="Chess"]:hover .icon {
    color: #eab308;
    transform: scale(1.1);
}

.category-pill[data-category="Home work help"]:hover {
    border-color: #3b82f6;
    background: linear-gradient(135deg, #eff6ff 0%, #bfdbfe 100%);
}

.category-pill[data-category="Home work help"]:hover .icon {
    color: #3b82f6;
    transform: scale(1.1);
}

.category-pill[data-category="App building"]:hover {
    border-color: #ef4444;
    background: linear-gradient(135deg, #fef2f2 0%, #fecaca 100%);
}

.category-pill[data-category="App building"]:hover .icon {
    color: #ef4444;
    transform: scale(1.1);
}

/* Active state for categories */
.category-pill.active {
    border-color: #fb923c;
    box-shadow: 0 16px 30px rgba(251, 146, 60, 0.35);
    transform: translateY(-2px);
}

/* Webinar Section Enhancements */
.webinar-section {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    padding: 4rem 0;
}

.webinar-title {
    background: linear-gradient(135deg, #7c3aed 0%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding: 0 2rem;
}

.webinar-title::before,
.webinar-title::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 3px;
    background: repeating-linear-gradient(90deg, #7c3aed 0%, #7c3aed 20%, transparent 20%, transparent 40%);
    border-radius: 2px;
}

.webinar-title::before {
    left: 0;
}

.webinar-title::after {
    right: 0;
}

.webinar-title:hover::before,
.webinar-title:hover::after {
    background: repeating-linear-gradient(90deg, #ec4899 0%, #ec4899 20%, transparent 20%, transparent 40%);
}

/* Responsive Design for Footer */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    .categories-pills {
        gap: 1rem;
    }
    
    .category-pill {
        min-width: 100px;
        padding: 1rem 0.75rem;
    }
    
    .webinar-title {
        font-size: 2rem;
        padding: 0 1rem;
    }
    
    .webinar-title::before,
    .webinar-title::after {
        width: 40px;
    }
}