/* ── Variables ── */
:root {
    --ch-start:  #0a2540;
    --ch-mid:    #0d5fa0;
    --ch-end:    #1d8fd6;
    --ch-accent: #47aeff;
    --ch-accent2:#79c6ff;
}

/* ══════════════════════════════════════
   HERO
══════════════════════════════════════ */
.ch-hero {
    background: linear-gradient(135deg, var(--ch-start) 0%, var(--ch-mid) 50%, var(--ch-end) 100%);
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 90px 2rem 70px;
    text-align: center;
}
.ch-hero::before {
    content: '';
    position: absolute;
    width: 600px; height: 600px;
    background: rgba(71,174,255,.18);
    border-radius: 50%;
    top: -150px; right: -150px;
    pointer-events: none;
}
.ch-hero::after {
    content: '';
    position: absolute;
    width: 400px; height: 400px;
    background: rgba(71,174,255,.12);
    border-radius: 50%;
    bottom: -100px; left: -100px;
    pointer-events: none;
}
.ch-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.2);
    color: #c0e3ff;
    font-size: .78rem;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 999px;
    backdrop-filter: blur(8px);
    margin-bottom: 20px;
    letter-spacing: .04em;
}
.ch-hero h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    color: white;
    line-height: 1.15;
    margin-bottom: 20px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
.ch-hero .col-lg-6 > p {
    color: rgba(255,255,255,.75);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 28px;
}

/* Floating visual card */
.ch-float-card {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 22px;
    padding: 24px;
    backdrop-filter: blur(12px);
    animation: ch-float 4s ease-in-out infinite;
    max-width: 360px;
    margin-left: auto;
}
@keyframes ch-float {
    0%,100% { transform: translateY(0); }
    50%      { transform: translateY(-10px); }
}
.ch-skill-pill {
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 10px;
    padding: 8px 12px;
    color: rgba(255,255,255,.85);
    font-size: .78rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 7px;
    transition: background .2s ease;
}
.ch-skill-pill:hover { background: rgba(255,255,255,.18); }
.ch-skill-pill i { color: var(--ch-accent2); font-size: .8rem; }
.ch-hero-visual { padding: 30px 0 30px 20px; }

/* Buttons */
.ch-btn-primary {
    display: inline-flex; align-items: center; gap: 8px;
    background: white;
    color: var(--ch-accent);
    font-weight: 700;
    font-size: .9rem;
    padding: 13px 28px;
    border-radius: 12px;
    text-decoration: none;
    transition: all .2s ease;
    box-shadow: 0 8px 28px rgba(0,0,0,.18);
}
.ch-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 36px rgba(0,0,0,.25);
    color: var(--ch-accent);
    text-decoration: none;
}
.ch-btn-outline {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,.1);
    border: 1.5px solid rgba(255,255,255,.3);
    color: white;
    font-weight: 600;
    font-size: .9rem;
    padding: 13px 28px;
    border-radius: 12px;
    text-decoration: none;
    transition: all .2s ease;
    backdrop-filter: blur(8px);
    cursor: pointer;
}
.ch-btn-outline:hover { background: rgba(255,255,255,.18); color: white; text-decoration: none; }

/* ══════════════════════════════════════
   ABOUT
══════════════════════════════════════ */
.ch-about { background: #f8faff; padding: 90px 2rem; overflow-x: hidden; }

.ch-video-wrap {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(71,174,255,.15);
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, var(--ch-mid), var(--ch-end));
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
}
.ch-video-wrap img {
    width: 100%; height: 100%; object-fit: cover;
    position: absolute; inset: 0; opacity: .4;
}
.ch-play-btn {
    width: 72px; height: 72px;
    background: white;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 30px rgba(0,0,0,.2);
    position: relative; z-index: 2;
    border: none;
    transition: transform .2s ease;
}
.ch-play-btn:hover { transform: scale(1.1); }
.ch-play-btn i { color: var(--ch-accent); font-size: 1.5rem; margin-left: 4px; }

.ch-feature-item {
    display: flex; align-items: flex-start; gap: 12px;
    margin-bottom: 14px;
}
.ch-feature-icon {
    width: 36px; height: 36px; border-radius: 10px;
    background: #e8f5ff;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.ch-feature-icon i { color: var(--ch-accent); font-size: .9rem; }
.ch-feature-text { font-size: .88rem; font-weight: 600; color: #374151; margin: 0; line-height: 2.4; }

/* ══════════════════════════════════════
   SHARED SECTION LABELS
══════════════════════════════════════ */
.ch-section-label {
    display: inline-flex; align-items: center; gap: 6px;
    background: #e8f5ff; color: var(--ch-accent);
    font-size: .75rem; font-weight: 700;
    padding: 5px 14px; border-radius: 999px;
    letter-spacing: .06em; text-transform: uppercase;
    margin-bottom: 14px;
}
.ch-section-title {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 800; color: #111827;
    margin-bottom: 8px; line-height: 1.2;
}
.ch-section-sub { color: #6b7280; font-size: .95rem; text-align: center !important; }

/* ══════════════════════════════════════
   COURSES
══════════════════════════════════════ */
.ch-courses { background: white; padding: 90px 2rem; overflow-x: hidden; }

.ch-card {
    border-radius: 18px;
    border: 1px solid #f0f0f0;
    overflow: hidden;
    background: white;
    box-shadow: 0 4px 20px rgba(0,0,0,.06);
    transition: transform .22s ease, box-shadow .22s ease;
    height: 100%;
    display: flex; flex-direction: column;
}
.ch-card:hover { transform: translateY(-6px); box-shadow: 0 16px 50px rgba(71,174,255,.14); }

.ch-card-img { position: relative; aspect-ratio: 16/9; overflow: hidden; }
.ch-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.ch-card:hover .ch-card-img img { transform: scale(1.05); }

.ch-price-badge {
    position: absolute; top: 12px; right: 12px;
    background: var(--ch-accent); color: white;
    font-size: .73rem; font-weight: 700;
    padding: 4px 11px; border-radius: 999px;
    box-shadow: 0 4px 12px rgba(71,174,255,.4);
}
.ch-card-body { padding: 18px 18px 12px; flex: 1; display: flex; flex-direction: column; }
.ch-card-title {
    font-size: 1rem; font-weight: 700; color: #111827;
    margin-bottom: 8px; line-height: 1.35;
    display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
}
.ch-card-title a { color: inherit; text-decoration: none; }
.ch-card-title a:hover { color: var(--ch-accent); }
.ch-stars { display: flex; gap: 2px; margin-bottom: 12px; }
.ch-stars i { font-size: .72rem; }

.ch-card-footer {
    border-top: 1px solid #f3f4f6;
    padding: 12px 18px;
    display: flex; align-items: center;
    gap: 10px;
}
.ch-teacher-avatar {
    width: 36px; height: 36px; border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e5e7eb;
    flex-shrink: 0;
}
.ch-teacher-name { font-size: .8rem; font-weight: 700; color: #374151; margin: 0; }
.ch-teacher-handle { font-size: .72rem; color: var(--ch-accent); margin: 0; }

.ch-stats {
    background: linear-gradient(135deg, var(--ch-accent), #1d8fd6);
    padding: 8px 16px;
    display: flex; justify-content: space-between;
}
.ch-stats small { color: rgba(255,255,255,.9); font-size: .72rem; font-weight: 600; }

/* Empty state */
.ch-empty {
    padding: 60px 20px;
    text-align: center;
}
.ch-empty-icon {
    width: 80px; height: 80px;
    background: #e8f5ff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
}
.ch-empty-icon i { font-size: 2rem; color: var(--ch-accent); }
.ch-empty h4 { color: #374151; font-weight: 700; margin-bottom: 8px; }
.ch-empty p  { color: #9ca3af; font-size: .92rem; margin: 0; }

/* ══════════════════════════════════════
   TESTIMONIALS
══════════════════════════════════════ */
.ch-testimonials {
    background: linear-gradient(135deg, #f0f8ff 0%, #e8f4ff 100%);
    padding: 90px 2rem;
    overflow-x: hidden;
}
.ch-testi-card {
    background: white;
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 4px 24px rgba(71,174,255,.08);
    border: 1px solid #f0f0f0;
    position: relative;
    height: 100%;
}
.ch-testi-quote {
    position: absolute; top: 20px; right: 24px;
    font-size: 2.5rem; color: #e8f5ff; line-height: 1;
}
.ch-testi-avatar {
    width: 52px; height: 52px;
    border-radius: 50%; object-fit: cover;
    border: 3px solid #e8f5ff;
}
.ch-testi-name { font-size: .95rem; font-weight: 700; color: #111827; margin: 0; }
.ch-testi-role { font-size: .75rem; color: var(--ch-accent); font-weight: 600; margin: 0; }
.ch-testi-text {
    color: #4b5563; font-size: .87rem; line-height: 1.7;
    margin-top: 16px; padding-top: 16px;
    border-top: 1px solid #f3f4f6;
    margin-bottom: 0;
}

/* ══════════════════════════════════════
   VIDEO OVERLAY
══════════════════════════════════════ */
#chVideoOverlay { animation: ch-overlay-in .18s ease; }
@keyframes ch-overlay-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 991px) {
    .ch-hero { min-height: auto; padding: 70px 0 50px; }
    .ch-hero-visual { display: none; }
    .ch-about { padding: 60px 0; }
    .ch-courses { padding: 60px 0; }
    .ch-testimonials { padding: 60px 0; }
    .ch-video-wrap { margin-bottom: 36px; }
    .ch-float-card { margin: 0 auto; }
}
