/**
 * Home / landing page design system + styles.
 * Extracted from resources/views/home.blade.php (was inline <style>, ~805 lines).
 */

    /* ================= APP DESIGN SYSTEM ================= */
    :root {
      --primary: #2563eb;
      --primary-hover: #1d4ed8;
      --primary-light: #eff6ff;
      --primary-50: #f0f7ff;
      --accent-yellow: #f59e0b;
      --accent-green: #10b981;
      --accent-red: #dc2626; --accent-red-strong: #dc2626; --accent-green-text: #047857; --accent-amber-text: #b45309;
      --accent-purple: #7c3aed;
      --accent-pink: #ec4899;

      --bg-app: #f8fafc;
      --bg-surface: #ffffff;
      --border: #e2e8f0;
      --border-light: #edf2f7;

      --text-main: #0f172a;
      --text-muted: #475569;
      --text-subtle: #64748b;

      --radius-xs: 6px;
      --radius-sm: 10px;
      --radius-md: 14px;
      --radius-lg: 20px;
      --radius-full: 9999px;

      --shadow-subtle: 0 2px 8px rgba(15, 23, 42, 0.04);
      --shadow-card: 0 4px 16px rgba(15, 23, 42, 0.06);
      --shadow-float: 0 12px 28px -6px rgba(37, 99, 235, 0.18);
      --shadow-hover: 0 16px 32px -6px rgba(37, 99, 235, 0.14);
      --transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    }

    *, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
    body {
      font-family: 'Plus Jakarta Sans', sans-serif;
      background-color: var(--bg-app);
      color: var(--text-main);
      line-height: 1.45;
      -webkit-font-smoothing: antialiased;
      /* No bottom app dock anymore — nothing to reserve mobile space for. */
      overflow-x: hidden;
    }

    /* Desktop par bottom extra padding hatane ke liye */
    @media (min-width: 768px) {
      body {
        padding-bottom: 0;
      }
    }

    a { text-decoration: none; color: inherit; }
    button { font-family: inherit; cursor: pointer; border: none; background: none; outline: none; }
    img { max-width: 100%; display: block; }
    .container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

    /* Top Reading Progress */
    #topProgressBar {
      position: fixed; top: 0; left: 0; height: 3px;
      background: linear-gradient(90deg, #2563eb, #7c3aed, #fbbf24);
      width: 0%; z-index: 2000; transition: width 0.1s linear;
    }

    /* ================= 1. NATIVE APP HEADER ================= */
    .app-header {
      position: sticky; top: 0; z-index: 1000;
      border-bottom: 1px solid var(--border);
      padding: 10px 0;
    }
    /* The frosted-glass background lives on ::before, not on .app-header
       itself. Reason: `backdrop-filter` (like `filter`/`transform`) on an
       element makes it the containing block for any descendant that uses
       `position: fixed` — instead of the viewport. The header search panel
       (partials/public/header-search.blade.php) is `position: fixed;
       inset: 0` on mobile so it can take over the full screen; nested
       inside a `.app-header` that carries backdrop-filter, "the full
       screen" resolved to the ~60px header bar instead, and the page
       behind it showed through — the oversized, broken-looking mobile
       search box. Moving just the blur to a pseudo-element keeps the exact
       same look with none of that side effect. */
    .app-header::before {
      content: ""; position: absolute; inset: 0; z-index: -1;
      background: rgba(255, 255, 255, 0.96);
      backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    }
    .app-header-inner {
      display: flex; align-items: center; justify-content: space-between; gap: 12px;
    }
    .app-brand-lockup {
      display: flex; align-items: center; gap: 8px;
      font-size: 1.25rem; font-weight: 800; color: #0f172a; letter-spacing: -0.03em;
    }
    .app-brand-icon {
      width: 28px; height: 28px; border-radius: 8px; position: relative;
      background: linear-gradient(135deg, #38bdf8 0%, #ec4899 50%, #2563eb 100%);
    }
    .app-brand-icon::after {
      content: "H";
      position: absolute; inset: 0;
      display: flex; align-items: center; justify-content: center;
      color: #fff; font-weight: 800; font-size: 13px; font-family: inherit; line-height: 1;
    }
    .brand-hola { color: #2563eb; }
    .brand-rest { color: #0f172a; }
    .app-header-right {
      display: flex; align-items: center; gap: 12px;
    }
    .header-icon-btn {
      width: 38px; height: 38px; border-radius: 50%;
      background: #f1f5f9; display: flex; align-items: center; justify-content: center;
      color: var(--text-main); font-size: 1.15rem; transition: var(--transition);
      position: relative;
    }
    .header-icon-btn:active { transform: scale(0.92); }
    .notif-dot {
      position: absolute; top: 7px; right: 7px; width: 7px; height: 7px;
      background: var(--accent-red); border-radius: 50%; border: 1.5px solid #fff;
    }
    .header-user-avatar {
      width: 38px; height: 38px; border-radius: 50%; object-fit: cover;
      border: 1.5px solid var(--primary); cursor: pointer;
    }

    /* Desktop Navigation links */
    .desktop-nav-links { display: none; align-items: center; gap: 20px; list-style: none; }
    .desktop-nav-links a { font-size: 0.9rem; font-weight: 600; color: var(--text-muted); transition: var(--transition); }
    .desktop-nav-links a:hover, .desktop-nav-links a.active { color: var(--primary); }
    @media (min-width: 768px) {
      .desktop-nav-links { display: flex; }
    }

    /* Search Bar on Top */
    .app-search-wrap {
      position: relative; margin: 12px 0 4px;
    }
    .app-search-input-box {
      display: flex; align-items: center; background: #fff;
      border: 1.5px solid var(--border); border-radius: var(--radius-full);
      padding: 10px 18px; gap: 10px; box-shadow: var(--shadow-subtle);
      transition: var(--transition);
    }
    .app-search-input-box:focus-within {
      border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
    }
    .app-search-input-box i { font-size: 1.15rem; color: var(--text-subtle); }
    .app-search-input-box input {
      flex: 1; border: none; outline: none; font-size: 0.92rem; color: var(--text-main); font-family: inherit;
    }

    /* Live Search Dropdown */
    .live-search-dropdown {
      position: absolute; top: calc(100% + 8px); left: 0; right: 0;
      background: #ffffff; border: 1px solid var(--border); border-radius: var(--radius-md);
      box-shadow: 0 14px 30px rgba(0,0,0,0.1); overflow: hidden; display: none; z-index: 100;
    }
    .live-search-dropdown.active { display: block; }
    .search-dropdown-item {
      padding: 12px 16px; display: flex; align-items: center; gap: 10px;
      font-size: 0.88rem; color: var(--text-main); cursor: pointer; border-bottom: 1px solid #f8fafc;
    }
    .search-dropdown-item:hover { background: var(--primary-light); color: var(--primary); }

    /* ================= 2. HERO SECTION — UNIFIED IMAGE CARD ================= */
    .app-hero-single {
      position: relative; border-radius: var(--radius-lg); overflow: hidden;
      height: 220px; margin: 14px 0 20px; box-shadow: var(--shadow-card);
      background: #0f172a; isolation: isolate;
    }
    @media (min-width: 768px) {
      .app-hero-single { height: 250px; margin: 16px 0 22px; }
    }
    @media (min-width: 1024px) {
      .app-hero-single { height: 280px; }
    }

    /* Auto Carousel (background layer only) */
    .hero-carousel-slide {
      position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1s ease;
    }
    .hero-carousel-slide.hc-active { opacity: 1; visibility: visible; z-index: 1; }
    .hero-carousel-slide img {
      width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 7s ease;
    }
    .hero-carousel-slide.hc-active img { transform: scale(1); }
    .hero-carousel-slide::after {
      content: ''; position: absolute; inset: 0;
      background: linear-gradient(180deg, rgba(8,12,26,0.55) 0%, rgba(8,12,26,0.68) 55%, rgba(8,12,26,0.85) 100%);
    }

    .hero-carousel-dots {
      position: absolute; top: 12px; right: 14px; z-index: 4; display: flex; gap: 5px;
    }
    .hero-carousel-dots span {
      width: 16px; height: 3px; border-radius: var(--radius-full); background: rgba(255,255,255,0.35);
      cursor: pointer; overflow: hidden; position: relative;
    }
    .hero-carousel-dots span.hc-dot-active::after {
      content: ''; position: absolute; inset: 0; background: #fff;
      transform-origin: left; animation: hcProgressFill 4.5s linear forwards;
    }
    @keyframes hcProgressFill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

    /* Static overlay content: headline + search + popular tags */
    .hero-static-content {
      position: relative; z-index: 3; height: 100%;
      display: flex; flex-direction: column; align-items: center; justify-content: center;
      text-align: center; color: #fff; padding: 12px 18px;
    }
    .hero-static-content h1 {
      font-size: clamp(1.15rem, 3.4vw, 1.9rem); font-weight: 800; letter-spacing: -0.03em;
      line-height: 1.15; margin-bottom: 4px; text-shadow: 0 2px 14px rgba(0,0,0,0.25);
    }
    .hero-static-content > p {
      font-size: clamp(0.72rem, 1.6vw, 0.9rem); color: rgba(255,255,255,0.88);
      margin-bottom: 12px; font-weight: 500;
    }
    .hero-static-content .app-search-wrap {
      width: 100%; max-width: 560px; margin: 0 0 10px;
    }
    .hero-static-content .app-search-input-box {
      padding: 8px 8px 8px 16px; box-shadow: 0 12px 30px rgba(0,0,0,0.28);
    }
    @media (min-width: 768px) {
      .hero-static-content > p { margin-bottom: 14px; }
      .hero-static-content .app-search-input-box { padding: 10px 10px 10px 20px; }
    }

    .hero-popular-tags {
      display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; overflow-x: auto;
      max-width: 100%; font-size: 0.72rem; color: rgba(255,255,255,0.85); scrollbar-width: none;
    }
    .hero-popular-tags::-webkit-scrollbar { display: none; }
    .hero-popular-tags strong { font-weight: 700; color: #fff; flex-shrink: 0; }
    .hero-popular-tags a { flex-shrink: 0; color: rgba(255,255,255,0.85); font-weight: 600; transition: var(--transition); }
    .hero-popular-tags a:hover { color: #fff; text-decoration: underline; }
    .hero-popular-tags .tag-dot { flex-shrink: 0; opacity: 0.5; }
    @media (min-width: 768px) {
      .hero-popular-tags { font-size: 0.8rem; gap: 10px; }
    }

    /* Buttons */
    .btn {
      display: inline-flex; align-items: center; justify-content: center;
      gap: 6px; padding: 8px 16px; border-radius: var(--radius-md);
      font-size: 0.85rem; font-weight: 700; transition: var(--transition); cursor: pointer; white-space: nowrap;
    }
    .btn:active { transform: scale(0.96); }
    .btn-primary { background: var(--primary); color: #fff; box-shadow: 0 4px 14px rgba(37,99,235,0.28); }
    .btn-primary:hover { background: var(--primary-hover); }
    .btn-white { background: #fff; color: var(--primary); font-weight: 800; }
    .btn-outline-blue { border: 1.5px solid var(--primary); color: var(--primary); background: #fff; }
    .btn-outline-blue:hover { background: var(--primary-light); }
    .btn-yellow { background: var(--accent-yellow); color: #0f172a; font-weight: 800; }
    .btn-yellow:hover { background: #d97706; }

    /* ================= 2.5 PLATFORM AT A GLANCE (STATS) ================= */
    /* Light, horizontal pill cards — icon circle on the left, bold number
       + label stacked to the right. Matches the app's existing card
       language (white surface, subtle border/shadow) instead of a heavy
       dark banner. */
    .platform-stats-section {
      margin-bottom: 20px;
    }
    .platform-stats-grid {
      display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
    }
    .platform-stat-card {
      display: flex; align-items: center; gap: 10px;
      background: var(--bg-surface);
      border: 1px solid var(--border);
      border-radius: var(--radius-md);
      padding: 12px 14px;
      box-shadow: var(--shadow-subtle);
      transition: var(--transition);
    }
    .platform-stat-card:hover {
      box-shadow: var(--shadow-card);
      transform: translateY(-2px);
      border-color: var(--primary-light);
    }
    .platform-stat-icon {
      flex-shrink: 0;
      width: 36px; height: 36px; border-radius: 50%;
      display: flex; align-items: center; justify-content: center; font-size: 1rem;
      color: var(--stat-color, var(--primary));
      background: var(--stat-color-bg, var(--primary-light));
    }
    .platform-stat-text { min-width: 0; }
    .platform-stat-value {
      font-size: 1.05rem; font-weight: 800; color: var(--text-main); letter-spacing: -0.01em; line-height: 1.2;
    }
    .platform-stat-label {
      font-size: 0.74rem; font-weight: 600; color: var(--text-muted);
      white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    }
    @media (min-width: 640px) {
      .platform-stats-grid { grid-template-columns: repeat(4, 1fr); gap: 12px; }
    }
    @media (min-width: 1024px) {
      .platform-stats-grid { grid-template-columns: repeat(4, 1fr); }
      .platform-stat-card { padding: 14px 16px; }
      .platform-stat-icon { width: 40px; height: 40px; font-size: 1.1rem; }
      .platform-stat-value { font-size: 1.15rem; }
      .platform-stat-label { font-size: 0.78rem; }
    }

    /* ================= 3. SECTION HEADER & TRENDING CATEGORIES ================= */
    .app-section-header {
      display: flex; align-items: center; justify-content: space-between;
      margin: 22px 0 12px;
    }
    .app-section-header h2 {
      font-size: 1.1rem; font-weight: 800; color: #0f172a; letter-spacing: -0.02em;
    }
    .app-section-header a.see-all {
      font-size: 0.8rem; font-weight: 700; color: var(--primary);
      display: inline-flex; align-items: center; gap: 3px;
      text-decoration: none;
    }
    .app-section-header a.see-all::after {
      content: "\2192"; /* → */
      display: inline-block;
      transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    }
    .app-section-header a.see-all:hover,
    .app-section-header a.see-all:focus-visible {
      gap: 6px;
    }
    .app-section-header a.see-all:hover::after,
    .app-section-header a.see-all:focus-visible::after {
      transform: translateX(3px);
    }
    @media (prefers-reduced-motion: reduce) {
      .app-section-header a.see-all,
      .app-section-header a.see-all::after { transition: none; }
    }

    .category-pills-scroll {
      display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 10px;
      scrollbar-width: none; -webkit-overflow-scrolling: touch;
    }
    .category-pills-scroll::-webkit-scrollbar { display: none; }
    .app-cat-card {
      background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md);
      padding: 9px 14px; min-width: 120px; flex-shrink: 0; display: flex; align-items: center; gap: 8px;
      box-shadow: var(--shadow-subtle); transition: var(--transition); cursor: pointer;
    }
    .app-cat-card:hover, .app-cat-card.active {
      border-color: var(--primary); background: var(--primary); color: #fff;
    }
    .app-cat-card:hover i, .app-cat-card.active i { color: #fff !important; }
    .app-cat-card i { font-size: 1.15rem; }
    .app-cat-card span { font-size: 0.82rem; font-weight: 700; white-space: nowrap; }

    /* ================= 4. BIG-TECH LEVEL TRAINERS SECTION ================= */
    .trainer-tabs-wrap {
      display: flex; gap: 8px; overflow-x: auto; padding-bottom: 12px; margin-bottom: 8px;
      scrollbar-width: none;
    }
    .trainer-tabs-wrap::-webkit-scrollbar { display: none; }

    .trainer-pill-tab {
      padding: 7px 16px; border-radius: var(--radius-full); font-size: 0.78rem; font-weight: 700;
      color: var(--text-muted); background: #fff; border: 1px solid var(--border);
      cursor: pointer; white-space: nowrap; transition: var(--transition);
    }
    .trainer-pill-tab:hover { border-color: var(--primary); color: var(--primary); }
    .trainer-pill-tab.active { background: #0f172a; color: #fff; border-color: #0f172a; }

    .trainers-carousel-track {
      display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x proximity;
      padding: 4px 2px 14px; scrollbar-width: none; -webkit-overflow-scrolling: touch;
    }
    .trainers-carousel-track::-webkit-scrollbar { display: none; }

    .pro-trainer-card {
      background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
      padding: 18px; flex: 0 0 290px; scroll-snap-align: start; box-shadow: var(--shadow-subtle);
      transition: var(--transition); display: flex; flex-direction: column;
    }
    .pro-trainer-card:hover {
      transform: translateY(-4px); border-color: #cbd5e1; box-shadow: var(--shadow-hover);
    }

    .pro-card-header {
      display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px;
    }
    .pro-avatar-box {
      position: relative; width: 58px; height: 58px; border-radius: 50%; flex-shrink: 0;
    }
    .pro-avatar-box img {
      width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 1.5px solid #e2e8f0;
    }
    .pro-check-badge {
      position: absolute; bottom: 0; right: 0; background: #fff;
      width: 20px; height: 20px; border-radius: 50%;
      display: flex; align-items: center; justify-content: center; border: 2px solid #fff;
      box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.08); overflow: hidden;
    }
    .pro-check-badge img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }

    .pro-meta-info h4 { font-size: 0.95rem; font-weight: 800; color: #0f172a; line-height: 1.2; }
    .pro-meta-info p.role { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; line-height: 1.3; }

    .credibility-tag {
      display: inline-flex; align-items: center; gap: 4px; background: #f8fafc;
      border: 1px solid #e2e8f0; color: #334155; font-size: 0.68rem; font-weight: 700;
      padding: 3px 8px; border-radius: 6px; margin-top: 6px;
    }
    .credibility-tag.blue { background: #eff6ff; border-color: #bfdbfe; color: #1d4ed8; }
    .credibility-tag.green { background: #f0fdf4; border-color: #bbf7d0; color: #15803d; }
    .credibility-tag.purple { background: #faf5ff; border-color: #e9d5ff; color: #7e22ce; }

    .pro-topics-list {
      display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 14px;
    }
    .pro-topic-chip {
      background: #f1f5f9; color: #475569; font-size: 0.68rem; font-weight: 600;
      padding: 3px 8px; border-radius: 4px;
    }

    .pro-card-footer {
      display: flex; align-items: center; justify-content: space-between;
      padding-top: 12px; border-top: 1px solid var(--border-light); margin-top: auto;
    }
    .pro-rating-box { font-size: 0.76rem; font-weight: 700; color: #0f172a; }

    /* ================= 5. WORKSHOPS HORIZONTAL CAROUSEL ================= */
    .filter-tabs-row {
      display: flex; gap: 8px; overflow-x: auto; padding-bottom: 10px; margin-bottom: 6px;
      scrollbar-width: none;
    }
    .filter-tabs-row::-webkit-scrollbar { display: none; }
    .app-tab-btn {
      padding: 6px 14px; border-radius: var(--radius-full); font-size: 0.76rem; font-weight: 700;
      color: var(--text-muted); background: #fff; border: 1px solid var(--border); white-space: nowrap;
      transition: var(--transition);
    }
    .app-tab-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

    .progress-bar-row {
      display: flex; justify-content: space-between; align-items: center;
      font-size: 0.78rem; color: var(--text-muted); margin-bottom: 12px;
    }
    .progress-bar-line {
      width: 110px; height: 5px; background: #e2e8f0; border-radius: 10px;
      overflow: hidden; display: inline-block; margin-left: 6px; vertical-align: middle;
    }
    .progress-bar-line-fill { width: 100%; height: 100%; background: var(--primary); transition: width 0.4s ease; }

    /* Carousel Wrapper */
    .carousel-wrap-rel { position: relative; }
    .carousel-arrow-btn {
      position: absolute; top: 45%; transform: translateY(-50%); z-index: 20;
      width: 36px; height: 36px; border-radius: 50%; background: #fff;
      border: 1px solid var(--border); box-shadow: var(--shadow-card);
      display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
      color: var(--text-main); cursor: pointer; transition: var(--transition);
    }
    .carousel-arrow-btn:hover { background: var(--primary); color: #fff; }
    .carousel-arrow-btn.left-arr { left: -8px; }
    .carousel-arrow-btn.right-arr { right: -8px; }

    .horizontal-cards-row {
      display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x proximity;
      padding: 4px 2px 14px; scrollbar-width: none; -webkit-overflow-scrolling: touch;
    }
    .horizontal-cards-row::-webkit-scrollbar { display: none; }

    .workshop-app-card {
      background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md);
      overflow: hidden; flex: 0 0 280px; scroll-snap-align: start; box-shadow: var(--shadow-subtle);
      transition: var(--transition); display: flex; flex-direction: column;
    }
    .workshop-app-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
    
    .w-card-thumb-wrap { position: relative; height: 140px; background: #0f172a; overflow: hidden; }
    .w-card-thumb-wrap img { width: 100%; height: 100%; object-fit: cover; }
    
    .w-date-badge {
      position: absolute; top: 10px; left: 10px; background: #fff; color: var(--text-main);
      padding: 4px 8px; border-radius: 8px; font-size: 0.68rem; font-weight: 800; text-align: center;
      line-height: 1.1; box-shadow: 0 4px 10px rgba(0,0,0,0.12);
    }
    .w-date-badge span.day { font-size: 0.88rem; display: block; color: var(--primary); }
    .w-tag-chip {
      position: absolute; top: 10px; right: 10px; background: rgba(15,23,42,0.75);
      color: #fff; font-size: 0.68rem; font-weight: 800; padding: 3px 7px; border-radius: 4px;
    }

    .w-card-body { padding: 14px; display: flex; flex-direction: column; flex: 1; }
    .w-urgency { font-size: 0.7rem; font-weight: 700; color: #dc2626; display: flex; align-items: center; gap: 4px; margin-bottom: 4px; }
    .w-card-title { font-size: 0.95rem; font-weight: 700; color: #0f172a; margin-bottom: 4px; line-height: 1.35; }
    .w-card-author { font-size: 0.76rem; color: var(--text-muted); margin-bottom: 8px; }
    
    .w-card-meta-chips {
      display: flex; align-items: center; gap: 10px; font-size: 0.72rem; color: var(--text-muted);
      margin-bottom: 12px; flex-wrap: wrap;
    }
    .w-card-footer {
      display: flex; align-items: center; justify-content: space-between;
      padding-top: 10px; border-top: 1px solid var(--border-light); margin-top: auto;
    }
    .w-price { font-size: 1.05rem; font-weight: 800; color: #0f172a; }
    .w-price small { font-size: 0.72rem; color: var(--text-subtle); text-decoration: line-through; margin-left: 4px; }

    /* ================= 6. YOUTUBE COVERFLOW CAROUSEL ================= */
    .yt-carousel-viewport { position: relative; }
    .yt-peek-track {
      --yt-slide-w: 80vw;
      display: flex; align-items: center; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
      padding: 30px calc((100% - var(--yt-slide-w)) / 2) 40px;
      scrollbar-width: none; -webkit-overflow-scrolling: touch;
    }
    @media (min-width: 640px) { .yt-peek-track { --yt-slide-w: 380px; gap: 18px; } }
    @media (min-width: 1024px) { .yt-peek-track { --yt-slide-w: 460px; gap: 22px; } }
    .yt-peek-track::-webkit-scrollbar { display: none; }

    .yt-slide-item {
      flex: 0 0 var(--yt-slide-w); scroll-snap-align: center;
      transform: scale(0.88); opacity: 0.5;
      transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
      will-change: transform, opacity;
    }
    .yt-slide-item.yt-active { transform: scale(1); opacity: 1; z-index: 3; }

    .yt-video-card {
      position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 16/9;
      background: #0b1220;
      box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 8px 16px -6px rgba(15, 23, 42, 0.12);
      transition: box-shadow 0.5s ease, transform 0.35s ease; cursor: pointer;
    }
    .yt-slide-item.yt-active .yt-video-card {
      box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 20px 32px -12px rgba(15, 23, 42, 0.22), 0 0 0 1px rgba(255,255,255,0.06);
    }
    .yt-video-card:hover { transform: translateY(-3px); }
    .yt-video-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
    .yt-slide-item.yt-active .yt-video-card img { transform: scale(1.03); }

    .yt-thumb-gradient {
      position: absolute; inset: 0; z-index: 1;
      background: linear-gradient(180deg, rgba(2,6,20,0) 32%, rgba(2,6,20,0.55) 72%, rgba(2,6,20,0.9) 100%);
    }
    .yt-duration-chip {
      position: absolute; top: 10px; right: 10px; z-index: 2;
      background: rgba(0,0,0,0.65); backdrop-filter: blur(4px); color: #fff;
      font-size: 0.68rem; font-weight: 700; padding: 3px 8px; border-radius: 6px; letter-spacing: 0.02em;
    }
    .yt-new-tag {
      position: absolute; top: 10px; left: 10px; z-index: 2;
      background: var(--accent-red); color: #fff; font-size: 0.7rem; font-weight: 800;
      text-transform: uppercase; letter-spacing: 0.05em; padding: 3px 8px; border-radius: 6px;
    }

    .yt-play-btn {
      position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 2;
      width: 50px; height: 50px; border-radius: 50%;
      background: rgba(255,255,255,0.16); backdrop-filter: blur(6px);
      border: 1.5px solid rgba(255,255,255,0.45);
      display: flex; align-items: center; justify-content: center; transition: var(--transition);
    }
    @media (min-width: 768px) { .yt-play-btn { width: 60px; height: 60px; } }
    .yt-play-btn::after {
      content: ''; position: absolute; inset: -8px; border-radius: 50%;
      border: 1.5px solid rgba(255,255,255,0.35); animation: ytPulseRing 2.4s ease-out infinite;
    }
    .yt-play-btn i { color: #fff; font-size: 1.35rem; margin-left: 3px; }
    @media (min-width: 768px) { .yt-play-btn i { font-size: 1.6rem; } }
    .yt-play-btn:hover { background: var(--accent-red); border-color: var(--accent-red); transform: translate(-50%, -50%) scale(1.08); }
    @keyframes ytPulseRing { 0% { transform: scale(0.92); opacity: 0.9; } 100% { transform: scale(1.4); opacity: 0; } }

    .yt-overlay-meta { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 12px 14px; }
    @media (min-width: 768px) { .yt-overlay-meta { padding: 16px 18px; } }
    .yt-channel-row { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
    .yt-channel-avatar {
      width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0;
      background: linear-gradient(135deg, #38bdf8 0%, #ec4899 50%, #2563eb 100%);
      display: flex; align-items: center; justify-content: center;
      font-size: 0.7rem; font-weight: 800; color: #fff; border: 1px solid rgba(255,255,255,0.5);
    }
    .yt-channel-row span { font-size: 0.68rem; font-weight: 700; color: rgba(255,255,255,0.85); }
    .yt-overlay-meta h4 {
      font-size: 0.84rem; font-weight: 800; color: #fff; line-height: 1.3; margin-bottom: 3px;
      text-shadow: 0 2px 10px rgba(0,0,0,0.35);
      display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    }
    @media (min-width: 768px) { .yt-overlay-meta h4 { font-size: 1rem; } }
    .yt-overlay-meta p { font-size: 0.7rem; color: rgba(255,255,255,0.75); }

    .yt-dots-row { display: flex; justify-content: center; gap: 6px; margin-top: -8px; }
    .yt-dots-row span {
      width: 6px; height: 6px; border-radius: 50%; background: var(--border);
      cursor: pointer; transition: var(--transition);
    }
    .yt-dots-row span.yt-dot-active { width: 18px; border-radius: var(--radius-full); background: var(--primary); }

    /* ================= 7. ARTICLES CAROUSEL ================= */
    .article-box-card {
      background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md);
      overflow: hidden; flex: 0 0 270px; scroll-snap-align: start; box-shadow: var(--shadow-subtle);
      display: flex; flex-direction: column; transition: var(--transition);
    }
    .article-box-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
    .article-thumb-cover { height: 135px; background: #1e293b; position: relative; }
    .article-thumb-cover img { width: 100%; height: 100%; object-fit: cover; }
    .view-count-tag {
      position: absolute; bottom: 6px; right: 8px; background: rgba(15,23,42,0.75);
      color: #fff; font-size: 0.68rem; padding: 2px 6px; border-radius: 4px;
    }
    .article-details { padding: 14px; display: flex; flex-direction: column; flex: 1; }
    .article-details h3.art-title { font-size: 0.92rem; font-weight: 700; color: #0f172a; margin-bottom: 4px; line-height: 1.35; }
    .article-details p.art-desc { font-size: 0.76rem; color: var(--text-muted); margin-bottom: 10px; line-height: 1.45; }
    .author-meta-row {
      display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--border-light);
    }
    .author-avatar-chip {
      width: 28px; height: 28px; border-radius: 50%; background: #e2e8f0;
      display: flex; align-items: center; justify-content: center; font-size: 0.72rem; font-weight: 700; color: #475569;
    }

    /* ================= 8. BOOKS CAROUSEL (CLEAN SELLING LINKS) ================= */
    .book-box-card {
      background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md);
      overflow: hidden; flex: 0 0 160px; scroll-snap-align: start; box-shadow: var(--shadow-subtle);
      display: flex; flex-direction: column; transition: var(--transition);
    }
    .book-box-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
    .book-cover-wrap { position: relative; height: 190px; background: #1e1b4b; overflow: hidden; }
    .book-cover-wrap img { width: 100%; height: 100%; object-fit: cover; }
    .book-badge-tag {
      position: absolute; top: 6px; left: 6px; background: var(--accent-purple);
      color: #fff; padding: 2px 6px; border-radius: 4px; font-size: 0.7rem; font-weight: 700;
    }
    .book-details-box { padding: 10px; display: flex; flex-direction: column; flex: 1; }
    .book-details-box h3 {
      font-size: 0.82rem; font-weight: 700; color: #0f172a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    }
    .book-details-box p { font-size: 0.68rem; color: var(--text-muted); margin-bottom: 6px; }
    
    .book-price-row {
      display: flex; align-items: center; justify-content: space-between;
      margin-top: auto; padding-top: 8px; border-top: 1px solid var(--border-light);
    }
    .book-price-row strong {
      font-size: 0.85rem; font-weight: 800; color: #0f172a;
    }
    .btn-book-buy {
      display: inline-flex; align-items: center; gap: 4px;
      background: var(--accent-purple); color: #fff !important; font-size: 0.72rem; font-weight: 700;
      padding: 4px 9px; border-radius: var(--radius-xs); transition: var(--transition);
    }
    .btn-book-buy:hover {
      background: #6b21a8; transform: translateY(-1px);
    }

    /* ================= 9. SPEAKER SESSIONS SPOTLIGHT BANNER (DESKTOP SPLIT) ================= */
    .next-session-banner {
      background: linear-gradient(135deg, #4c1d95 0%, #7c3aed 55%, #db2777 125%);
      border-radius: var(--radius-lg);
      color: #fff;
      padding: 20px;
      margin: 16px 0 20px;
      box-shadow: var(--shadow-card);
      display: flex;
      flex-direction: column;
      gap: 14px;
    }

    .next-session-left {
      display: flex;
      align-items: center;
      gap: 14px;
    }
    .next-session-photo {
      width: 64px;
      height: 64px;
      border-radius: 50%;
      border: 2px solid rgba(255,255,255,0.4);
      object-fit: cover;
      flex-shrink: 0;
    }
    .next-session-details h3 {
      font-size: 1.15rem;
      font-weight: 800;
      margin-top: 3px;
      line-height: 1.3;
    }
    .next-session-details p {
      font-size: 0.78rem;
      color: rgba(255,255,255,0.85);
      margin-top: 2px;
    }

    .next-session-right {
      display: flex;
      flex-direction: column;
      gap: 12px;
    }
    .countdown-row {
      display: flex;
      gap: 6px;
    }
    .countdown-box {
      background: rgba(255,255,255,0.18);
      backdrop-filter: blur(8px);
      border: 1px solid rgba(255,255,255,0.2);
      border-radius: 8px;
      padding: 6px 10px;
      text-align: center;
      min-width: 48px;
    }
    .countdown-box strong { font-size: 0.95rem; font-weight: 800; display: block; line-height: 1; }
    .countdown-box span { font-size: 0.7rem; text-transform: uppercase; color: rgba(255,255,255,0.8); }

    /* Desktop Responsive Layout (Stretched look fixed) */
    @media (min-width: 860px) {
      .next-session-banner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 24px 28px;
        gap: 24px;
      }
      .next-session-left {
        flex: 1;
      }
      .next-session-details h3 {
        font-size: 1.3rem;
      }
      .next-session-right {
        flex-direction: row;
        align-items: center;
        gap: 18px;
        flex-shrink: 0;
      }
      .next-session-banner .btn-yellow {
        width: auto !important;
        padding: 10px 22px;
        font-size: 0.88rem;
      }
    }

    .session-card-item {
      background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md);
      overflow: hidden; flex: 0 0 260px; scroll-snap-align: start; box-shadow: var(--shadow-subtle);
      display: flex; flex-direction: column;
    }
    .session-thumb-wrap { position: relative; height: 135px; background: #0f172a; }
    .session-thumb-wrap img { width: 100%; height: 100%; object-fit: cover; }

    /* ================= 10. 5-GRID FEATURES ================= */
    .features-5-grid {
      display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
      gap: 12px; padding: 24px 0 10px; border-top: 1px solid var(--border); margin-top: 24px;
    }
    .feature-point {
      display: flex; gap: 10px; align-items: center; background: #fff; padding: 12px;
      border-radius: var(--radius-md); border: 1px solid var(--border);
    }
    .feat-icon { font-size: 1.3rem; color: var(--primary); }
    .feature-point h4 { font-size: 0.82rem; font-weight: 700; }
    .feature-point p { font-size: 0.7rem; color: var(--text-muted); }

    /* ================= 11. CTA BANNER & RICH FOOTER ================= */
    .become-trainer-box {
      background: linear-gradient(135deg, #3730a3 0%, #4338ca 100%);
      border-radius: var(--radius-lg); padding: 26px 18px; text-align: center; color: #fff;
      margin: 24px 0;
    }
    .become-trainer-box h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: 6px; }
    .become-trainer-box p { font-size: 0.82rem; color: #e0e7ff; margin-bottom: 16px; }

    .newsletter-mini-bar {
      background: #eff6ff; border: 1px solid #bfdbfe; border-radius: var(--radius-lg);
      padding: 18px 16px; text-align: center; margin-bottom: 24px;
    }
    .newsletter-mini-bar h4 { font-size: 1rem; font-weight: 800; margin-bottom: 4px; }
    .newsletter-mini-bar p { font-size: 0.76rem; color: var(--text-muted); margin-bottom: 12px; }
    .newsletter-form { display: flex; gap: 8px; max-width: 420px; margin: 0 auto; }
    .newsletter-form input {
      flex: 1; padding: 8px 12px; border-radius: var(--radius-md); border: 1px solid var(--border);
      font-size: 0.84rem; outline: none; background: #fff;
    }

    .app-footer-wrapper {
      border-top: 1px solid var(--border); padding: 30px 0 24px; font-size: 0.82rem; color: var(--text-muted);
    }
    .footer-columns-grid {
      display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 20px; margin-bottom: 24px;
    }
    .footer-links-col h4 { font-size: 0.84rem; font-weight: 800; color: #0f172a; margin-bottom: 10px; }
    .footer-links-col ul { list-style: none; display: flex; flex-direction: column; gap: 7px; }
    .footer-links-col a { color: var(--text-muted); font-size: 0.76rem; transition: var(--transition); }
    .footer-links-col a:hover { color: var(--primary); }

    .footer-social-icons { display: flex; gap: 8px; margin: 12px 0; }
    .social-circle-btn {
      width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
      color: #fff; font-size: 0.85rem;
    }
    .social-circle-btn.linkedin { background: #0a66c2; }
    .social-circle-btn.instagram { background: linear-gradient(45deg, #f09433, #dc2743, #bc1888); }
    .social-circle-btn.youtube { background: #ff0000; }
    .social-circle-btn.x-twitter { background: #000000; }

    /* Toast */
    #toastMessage {
      position: fixed; bottom: calc(24px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%) translateY(20px);
      background: #0f172a; color: #fff; padding: 9px 18px; border-radius: var(--radius-full);
      font-size: 0.82rem; font-weight: 600; box-shadow: 0 10px 25px rgba(0,0,0,0.3);
      display: flex; align-items: center; gap: 8px; z-index: 3000; opacity: 0;
      pointer-events: none; transition: var(--transition);
    }
    #toastMessage.show { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }

    /* This page doesn't load public-shell.css, so it had no branded focus
       ring at all — keyboard users fell back to whatever the browser
       default happened to be. Same rule as public-shell.css, mirrored here. */
    :focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
    button:focus:not(:focus-visible), a:focus:not(:focus-visible) { outline: none; }

    /* Video Lightbox */
    .video-lightbox {
      position: fixed; inset: 0; background: rgba(0,0,0,0.85); z-index: 4000;
      display: flex; align-items: center; justify-content: center; padding: 16px;
      opacity: 0; pointer-events: none; transition: opacity 0.25s ease;
    }
    .video-lightbox.open { opacity: 1; pointer-events: auto; }
    .video-frame-box { width: 100%; max-width: 700px; aspect-ratio: 16/9; background: #000; border-radius: 12px; overflow: hidden; position: relative; }
    .video-frame-box iframe { width: 100%; height: 100%; border: none; }
    .video-close-btn { position: absolute; top: -38px; right: 0; color: #fff; font-size: 1.5rem; cursor: pointer; }
