/* ================================================================
   scholars-mate.css — Shared Design System
   Used by: syllabus-detail, pyqs/show, pyqs/index, pyqs/sample-hub
   Color Palette: Navy (#1a1a2e), Deep Blue (#0f3460), Teal (#16c5c2)
================================================================ */

/* ── Hero Section ─────────────────────────────────────────────── */
.sm-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 40%, #0f3460 100%);
    position: relative;
    overflow: hidden;
    padding: 3.5rem 0 2.5rem;
}
.sm-hero::before {
    content: '';
    position: absolute;
    top: -50%; right: -10%;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(22,197,194,.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.sm-hero::after {
    content: '';
    position: absolute;
    bottom: -30%; left: -5%;
    width: 350px; height: 350px;
    background: radial-gradient(circle, rgba(52,100,255,.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.sm-hero-z { position: relative; z-index: 2; }

/* ── Hero Typography ───────────────────────────────────────────── */
.sm-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(22,197,194,.15);
    border: 1px solid rgba(22,197,194,.4);
    color: #16c5c2;
    padding: 5px 14px; border-radius: 50px;
    font-size: .78rem; font-weight: 600;
    letter-spacing: .5px; text-transform: uppercase;
    margin-bottom: .75rem;
}
.sm-hero-title {
    font-size: clamp(1.5rem, 3.5vw, 2.4rem);
    font-weight: 800; color: #fff; line-height: 1.25;
    margin-bottom: .75rem;
}
.sm-hero-sub { color: rgba(255,255,255,.6); font-size: .95rem; }

.sm-stat-pill {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    color: rgba(255,255,255,.8);
    padding: 6px 14px; border-radius: 50px;
    font-size: .8rem; margin-right: 8px; margin-top: 8px;
}

/* ── Breadcrumb on dark hero ───────────────────────────────────── */
.sm-hero .breadcrumb { font-size: .8rem; }
.sm-hero .breadcrumb-item a { color: rgba(255,255,255,.6); text-decoration: none; }
.sm-hero .breadcrumb-item a:hover { color: #16c5c2; }
.sm-hero .breadcrumb-item.active { color: rgba(255,255,255,.9); }
.sm-hero .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.3); }

/* ── Page Body background ──────────────────────────────────────── */
.sm-page-body { padding: 2.5rem 0 4rem; background: #f4f6fa; }

/* ── Content Card ──────────────────────────────────────────────── */
.sm-card {
    background: #fff; border-radius: 16px;
    box-shadow: 0 2px 20px rgba(0,0,0,.07);
    overflow: hidden; margin-bottom: 1.5rem;
}
.sm-card-header {
    display: flex; align-items: center; gap: 10px;
    padding: 1rem 1.4rem;
    border-bottom: 1px solid #f0f0f0;
    background: #fafafa;
}
.sm-card-header h6 {
    margin: 0; font-size: .85rem; font-weight: 800;
    color: #1a1a2e; text-transform: uppercase; letter-spacing: .5px;
}
.sm-card-icon {
    width: 30px; height: 30px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: .82rem;
}
.sm-card-body { padding: 1.4rem; }

/* ── Description Text ──────────────────────────────────────────── */
.sm-description {
    font-size: .875rem; line-height: 1.8; color: #4a5568;
}
.sm-description h1,.sm-description h2,.sm-description h3,
.sm-description h4,.sm-description h5 {
    font-size: 1rem; font-weight: 700; color: #1a1a2e;
    margin-top: 1rem; margin-bottom: .35rem;
}
.sm-description p { margin-bottom: .55rem; }
.sm-description ul,.sm-description ol { padding-left: 1.2rem; margin-bottom: .55rem; }
.sm-description li { margin-bottom: .2rem; }

/* ── PDF Viewer ────────────────────────────────────────────────── */
.sm-pdf-wrap {
    border-radius: 12px; overflow: hidden;
    border: 1px solid #e8eaed;
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
}
.sm-pdf-toolbar {
    background: linear-gradient(90deg, #1a1a2e, #0f3460);
    padding: 9px 14px;
    display: flex; align-items: center; gap: 10px;
}
.sm-pdf-toolbar span {
    color: rgba(255,255,255,.8); font-size: .78rem;
    font-weight: 500; flex: 1;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sm-pdf-tab {
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.2);
    color: #fff; padding: 4px 12px; border-radius: 6px;
    font-size: .73rem; font-weight: 600; cursor: pointer;
    transition: all .2s; white-space: nowrap;
}
.sm-pdf-tab.active,.sm-pdf-tab:hover { background: #16c5c2; border-color: #16c5c2; }

/* ── File Switcher Tabs ────────────────────────────────────────── */
.sm-file-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: .9rem; }
.sm-file-tab {
    background: #f0f4ff; border: 1.5px solid #d5e0ff;
    color: #0f3460; padding: 5px 14px; border-radius: 8px;
    font-size: .77rem; font-weight: 600; cursor: pointer; transition: all .2s;
}
.sm-file-tab.active,.sm-file-tab:hover { background: #0f3460; border-color: #0f3460; color: #fff; }

/* ── Download Buttons ──────────────────────────────────────────── */
.sm-btn-dl {
    background: linear-gradient(135deg, #0f3460, #1a1a2e);
    border: none; color: #fff;
    padding: 9px 20px; border-radius: 10px;
    font-size: .84rem; font-weight: 700;
    display: inline-flex; align-items: center; gap: 7px;
    transition: all .3s; cursor: pointer; text-decoration: none;
}
.sm-btn-dl:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(15,52,96,.35); color: #fff; }
.sm-btn-dl-outline {
    background: transparent; border: 2px solid #0f3460;
    color: #0f3460; padding: 7px 16px; border-radius: 10px;
    font-size: .8rem; font-weight: 600;
    display: inline-flex; align-items: center; gap: 6px;
    transition: all .3s; cursor: pointer; text-decoration: none;
}
.sm-btn-dl-outline:hover { background: #0f3460; color: #fff; }

/* ── Info Pills ────────────────────────────────────────────────── */
.sm-info-pill {
    background: #f0f4ff; border: 1px solid #d5e0ff;
    color: #0f3460; padding: 5px 13px; border-radius: 50px;
    font-size: .77rem; font-weight: 600;
    display: inline-flex; align-items: center; gap: 5px;
    margin-right: 7px; margin-bottom: 7px;
}

/* ── Sidebar Card ──────────────────────────────────────────────── */
.sm-sidebar-card {
    background: #fff; border-radius: 14px;
    box-shadow: 0 2px 16px rgba(0,0,0,.07);
    overflow: hidden; margin-bottom: 1.5rem;
}
.sm-sidebar-header {
    padding: .85rem 1.2rem;
    background: linear-gradient(90deg, #f8faff, #f0f4ff);
    border-bottom: 1px solid #e8edf5;
    font-size: .78rem; font-weight: 800;
    color: #1a1a2e; text-transform: uppercase; letter-spacing: .5px;
    display: flex; align-items: center; gap: 8px;
}

/* ── Related Items ─────────────────────────────────────────────── */
.sm-related-item {
    display: flex; align-items: flex-start; gap: 10px;
    padding: .82rem 1.2rem; border-bottom: 1px solid #f5f5f5;
    text-decoration: none; transition: background .2s;
}
.sm-related-item:last-child { border-bottom: none; }
.sm-related-item:hover { background: #f8faff; }
.sm-related-icon {
    width: 36px; height: 36px; min-width: 36px; border-radius: 9px;
    background: linear-gradient(135deg, #e8f4fd, #dbeafe);
    display: flex; align-items: center; justify-content: center;
    color: #0f3460; font-size: .85rem;
}
.sm-related-title {
    font-size: .81rem; font-weight: 600; color: #1a1a2e;
    line-height: 1.35; margin-bottom: 2px;
}
.sm-related-meta { font-size: .71rem; color: #8a94a6; }

/* ── Promo Cards ───────────────────────────────────────────────── */
.sm-promo {
    border-radius: 16px; padding: 1.4rem;
    position: relative; overflow: hidden;
    margin-bottom: 1.5rem;
}
.sm-promo::before {
    content: ''; position: absolute;
    top: -20px; right: -20px;
    width: 90px; height: 90px;
    background: rgba(255,255,255,.1); border-radius: 50%;
}
.sm-promo::after {
    content: ''; position: absolute;
    bottom: -25px; left: -10px;
    width: 70px; height: 70px;
    background: rgba(255,255,255,.07); border-radius: 50%;
}
.sm-promo-inner { position: relative; z-index: 2; }
.sm-promo-title { font-size: .95rem; font-weight: 800; margin-bottom: .4rem; }
.sm-promo-text { font-size: .78rem; opacity: .85; margin-bottom: .9rem; line-height: 1.5; }
.sm-promo-purple { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: #fff; }
.sm-promo-teal   { background: linear-gradient(135deg, #0f3460, #16213e); color: #fff; }
.sm-promo-green  { background: linear-gradient(135deg, #f8ffea, #e6f9d5); color: #1b5e20; border: 1px solid #c3e6a0; }
.sm-promo-btn {
    background: #fff; border: none;
    padding: 7px 16px; border-radius: 8px;
    font-size: .78rem; font-weight: 700;
    transition: all .2s; text-decoration: none;
    display: inline-block; cursor: pointer;
}
.sm-promo-purple .sm-promo-btn { color: #764ba2; }
.sm-promo-teal   .sm-promo-btn { color: #0f3460; }
.sm-promo-btn:hover { transform: scale(1.04); box-shadow: 0 4px 12px rgba(0,0,0,.2); }
.sm-promo-green a { font-size: .8rem; font-weight: 700; color: #1b5e20; text-decoration: none; }
.sm-promo-green a:hover { text-decoration: underline; }

/* ── PYQ Archive List Card ─────────────────────────────────────── */
.sm-archive-item {
    display: flex; align-items: center;
    justify-content: space-between;
    background: #fff; padding: 1.1rem 1.4rem;
    border-radius: 14px; margin-bottom: 1rem;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
    border-left: 4px solid #0f3460;
    transition: all .3s; text-decoration: none;
}
.sm-archive-item:hover {
    transform: translateX(8px);
    box-shadow: 0 6px 24px rgba(15,52,96,.15);
    border-left-color: #16c5c2;
}
.sm-archive-icon {
    width: 58px; height: 58px; min-width: 58px;
    border-radius: 14px;
    background: linear-gradient(135deg, #e8f4fd, #dbeafe);
    display: flex; align-items: center; justify-content: center;
    color: #0f3460; font-size: 1.4rem; margin-right: 1rem;
}
.sm-archive-title { font-size: 1rem; font-weight: 700; color: #1a1a2e; margin-bottom: .25rem; }
.sm-archive-meta  { font-size: .77rem; color: #8a94a6; }
.sm-archive-cta {
    background: linear-gradient(135deg, #0f3460, #16213e);
    color: #fff; padding: 8px 18px; border-radius: 50px;
    font-size: .8rem; font-weight: 700; white-space: nowrap;
    transition: all .2s;
}
.sm-archive-item:hover .sm-archive-cta { background: #16c5c2; }

/* ── Class Selection Grid (Sample Papers Hub) ──────────────────── */
.sm-class-card {
    background: #fff; border-radius: 18px;
    padding: 2rem 1.5rem; text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,.07);
    transition: all .3s; text-decoration: none;
    display: block; height: 100%;
    border-bottom: 5px solid transparent;
}
.sm-class-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 16px 40px rgba(0,0,0,.13);
}
.sm-class-icon {
    width: 90px; height: 90px;
    border-radius: 50%; margin: 0 auto 1.25rem;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem;
}
.sm-class-title { font-size: 1.15rem; font-weight: 800; color: #1a1a2e; margin-bottom: .4rem; }
.sm-class-sub   { font-size: .8rem; color: #6b7280; line-height: 1.5; margin-bottom: 1rem; }
.sm-class-btn   {
    display: inline-block; padding: 7px 20px;
    border-radius: 50px; font-size: .8rem; font-weight: 700;
    color: #fff; transition: all .2s;
}
.sm-class-btn:hover { opacity: .88; color: #fff; }

/* ── Paper Resource Row ─────────────────────────────────────────── */
.sm-paper-row {
    display: flex; align-items: center;
    padding: 1rem 1.2rem; border-bottom: 1px solid #f4f4f4;
    gap: 14px; transition: background .2s;
}
.sm-paper-row:last-child { border-bottom: none; }
.sm-paper-row:hover { background: #f8faff; }
.sm-paper-icon {
    width: 42px; height: 42px; min-width: 42px;
    border-radius: 10px; background: #fff0f0;
    display: flex; align-items: center; justify-content: center;
    color: #dc2626; font-size: 1.1rem;
}
.sm-paper-title { font-size: .88rem; font-weight: 700; color: #1a1a2e; margin-bottom: .2rem; }
.sm-paper-shift { font-size: .73rem; }
.sm-paper-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-left: auto; }

/* ── Action Buttons in Paper Rows ─────────────────────────────── */
.sm-btn-view {
    background: transparent; border: 1.5px solid #0f3460;
    color: #0f3460; padding: 5px 13px; border-radius: 50px;
    font-size: .75rem; font-weight: 600; white-space: nowrap;
    text-decoration: none; cursor: pointer; transition: all .2s;
    display: inline-flex; align-items: center; gap: 4px;
}
.sm-btn-view:hover { background: #0f3460; color: #fff; }
.sm-btn-view-ans {
    background: transparent; border: 1.5px solid #059669;
    color: #059669; padding: 5px 13px; border-radius: 50px;
    font-size: .75rem; font-weight: 600; white-space: nowrap;
    cursor: pointer; transition: all .2s;
    display: inline-flex; align-items: center; gap: 4px;
}
.sm-btn-view-ans:hover { background: #059669; color: #fff; }
.sm-btn-download-sm {
    background: linear-gradient(135deg, #0f3460, #1a1a2e);
    border: none; color: #fff; padding: 5px 13px; border-radius: 50px;
    font-size: .75rem; font-weight: 700; white-space: nowrap;
    cursor: pointer; transition: all .2s;
    display: inline-flex; align-items: center; gap: 4px;
}
.sm-btn-download-sm:hover { transform: scale(1.04); box-shadow: 0 4px 12px rgba(15,52,96,.35); }
.sm-btn-download-ans {
    background: linear-gradient(135deg, #059669, #047857);
    border: none; color: #fff; padding: 5px 13px; border-radius: 50px;
    font-size: .75rem; font-weight: 700; white-space: nowrap;
    cursor: pointer; transition: all .2s;
    display: inline-flex; align-items: center; gap: 4px;
}
.sm-btn-download-ans:hover { transform: scale(1.04); box-shadow: 0 4px 12px rgba(5,150,105,.35); }

/* ── Lead/Access Modal ──────────────────────────────────────────── */
.sm-modal-header {
    background: linear-gradient(135deg, #1a1a2e, #0f3460);
    padding: 1.5rem; text-align: center;
}
.sm-modal-lock-icon {
    width: 54px; height: 54px;
    background: rgba(255,255,255,.12); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto .8rem;
}
.sm-modal .modal-content { border: none; border-radius: 18px; overflow: hidden; }

/* ── Animations ─────────────────────────────────────────────────── */
@keyframes smFadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
.sm-fade-up { animation: smFadeUp .5s ease forwards; }

/* ── Utility ─────────────────────────────────────────────────────── */
.letter-spacing-otp { letter-spacing: 10px; font-weight: 700; font-size: 1.35rem; }
.sm-back-link {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: .83rem; font-weight: 600;
    color: #0f3460; text-decoration: none;
}
.sm-back-link:hover { color: #16c5c2; }

/* ── Category Filter Bar ─────────────────────────────────────────── */
.sm-filter-bar {
    position: sticky; top: 0; z-index: 1010;
    background: #fff;
    border-bottom: 1px solid #e8edf5;
    padding: .7rem 0;
}
.sm-filter-scroll {
    display: flex; gap: 10px; overflow-x: auto;
    -ms-overflow-style: none; scrollbar-width: none;
    padding: 2px 0;
}
.sm-filter-scroll::-webkit-scrollbar { display: none; }
.sm-filter-btn {
    flex-shrink: 0;
    background: #f0f4ff; border: 1.5px solid #d5e0ff;
    color: #0f3460; padding: 6px 18px; border-radius: 50px;
    font-size: .8rem; font-weight: 600; cursor: pointer;
    transition: all .2s; white-space: nowrap;
}
.sm-filter-btn.active, .sm-filter-btn:hover {
    background: #0f3460; border-color: #0f3460; color: #fff;
}

/* ── Playlist Card (Live Classes Grid) ────────────────────────── */
.sm-playlist-card {
    background: #fff; border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 3px 16px rgba(0,0,0,.08);
    transition: all .3s; display: block;
    text-decoration: none; height: 100%;
    position: relative;
}
.sm-playlist-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 14px 36px rgba(15,52,96,.16);
}
.sm-playlist-thumb {
    position: relative; overflow: hidden;
    height: 190px; background: #1a1a2e;
}
.sm-playlist-thumb img {
    width: 100%; height: 100%; object-fit: cover;
    opacity: .72; transition: opacity .3s;
}
.sm-playlist-card:hover .sm-playlist-thumb img { opacity: .85; }
.sm-playlist-thumb-placeholder {
    height: 190px; background: linear-gradient(135deg, #1a1a2e, #0f3460);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,.3); font-size: 3rem;
}
.sm-playlist-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(0deg, rgba(15,52,96,.92) 0%, rgba(0,0,0,0) 55%);
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 1rem;
}
.sm-playlist-name {
    font-size: .92rem; font-weight: 800; color: #fff;
    line-height: 1.3; margin-bottom: .3rem;
}
.sm-playlist-teacher {
    font-size: .75rem; color: rgba(255,255,255,.7);
    display: flex; align-items: center; gap: 5px;
}
.sm-playlist-meta-bar {
    padding: .75rem 1rem;
    display: flex; align-items: center; gap: 12px;
    border-top: 1px solid #f0f0f0; background: #fafafa;
}
.sm-playlist-meta-bar span {
    font-size: .74rem; color: #64748b;
    display: flex; align-items: center; gap: 4px;
}
.sm-playlist-meta-bar .sm-playlist-type-badge {
    background: rgba(15,52,96,.08); color: #0f3460;
    padding: 3px 10px; border-radius: 50px;
    font-size: .7rem; font-weight: 700; margin-left: auto;
}
.sm-play-btn {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 52px; height: 52px; border-radius: 50%;
    background: rgba(255,255,255,.18); backdrop-filter: blur(4px);
    border: 2px solid rgba(255,255,255,.5);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.1rem; opacity: 0;
    transition: opacity .25s;
}
.sm-playlist-card:hover .sm-play-btn { opacity: 1; }

/* ── Past Class Row (horizontal item) ────────────────────────── */
.sm-past-row {
    display: flex; align-items: center; gap: 14px;
    background: #fff; border-radius: 14px;
    padding: .9rem 1.1rem; margin-bottom: .75rem;
    box-shadow: 0 2px 10px rgba(0,0,0,.06);
    text-decoration: none; transition: all .25s;
    border-left: 3px solid transparent;
}
.sm-past-row:hover {
    border-left-color: #16c5c2;
    transform: translateX(5px);
    box-shadow: 0 4px 18px rgba(15,52,96,.1);
}
.sm-past-date {
    width: 54px; min-width: 54px; border-radius: 10px;
    overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,.12);
    text-align: center;
}
.sm-past-date-day {
    background: #fff; color: #1a1a2e;
    font-size: 1.2rem; font-weight: 800;
    padding: 4px 0 2px; line-height: 1;
}
.sm-past-date-month {
    background: linear-gradient(135deg, #0f3460, #1a1a2e);
    color: #fff; font-size: .62rem;
    font-weight: 700; text-transform: uppercase;
    padding: 3px 0; letter-spacing: .5px;
}
.sm-past-title {
    font-size: .88rem; font-weight: 700; color: #1a1a2e;
    margin-bottom: .15rem; white-space: nowrap;
    overflow: hidden; text-overflow: ellipsis;
}
.sm-past-desc { font-size: .74rem; color: #8a94a6; line-height: 1.4; }
.sm-past-play {
    margin-left: auto; min-width: 38px; width: 38px; height: 38px;
    border-radius: 50%; border: 1.5px solid #d5e0ff;
    background: #f0f4ff; display: flex; align-items: center;
    justify-content: center; color: #0f3460; font-size: .8rem;
    transition: all .2s;
}
.sm-past-row:hover .sm-past-play { background: #0f3460; color: #fff; border-color: #0f3460; }

/* ── Video Player Card ────────────────────────────────────────── */
.sm-video-wrap {
    border-radius: 14px; overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,.14);
    background: #000; margin-bottom: 1.2rem;
}
.sm-video-wrap .ratio { border-radius: 0; }

/* ── Section Divider Title ────────────────────────────────────── */
.sm-section-title {
    font-size: 1.05rem; font-weight: 800; color: #1a1a2e;
    margin-bottom: 1.2rem;
    display: flex; align-items: center; gap: 10px;
}
.sm-section-title::after {
    content: ''; flex: 1; height: 2px;
    background: linear-gradient(90deg, #d5e0ff, transparent);
    border-radius: 2px;
}

/* ── File Attachment Row ──────────────────────────────────────── */
.sm-attachment {
    display: flex; align-items: center; gap: 14px;
    background: linear-gradient(90deg, #f8faff, #f0f4ff);
    border: 1.5px solid #d5e0ff; border-radius: 12px;
    padding: .9rem 1.1rem;
}
.sm-attachment-icon {
    width: 44px; height: 44px; border-radius: 10px;
    background: linear-gradient(135deg, #0f3460, #1a1a2e);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1rem;
}
.sm-attachment-name { font-size: .88rem; font-weight: 700; color: #1a1a2e; }
.sm-attachment-sub  { font-size: .74rem; color: #64748b; }

/* ── Playlist Sidebar Item ────────────────────────────────────── */
.sm-playlist-sidebar-item {
    display: flex; align-items: center; gap: 10px;
    padding: .75rem 1.1rem; border-bottom: 1px solid #f4f4f4;
    text-decoration: none; transition: background .2s;
}
.sm-playlist-sidebar-item:last-child { border-bottom: none; }
.sm-playlist-sidebar-item:hover { background: #f8faff; }
.sm-playlist-sidebar-item.active { background: #eef3ff; border-left: 3px solid #0f3460; }
.sm-playlist-play-icon {
    width: 34px; height: 34px; min-width: 34px; border-radius: 8px;
    background: linear-gradient(135deg, #e8f4fd, #dbeafe);
    display: flex; align-items: center; justify-content: center;
    color: #0f3460; font-size: .75rem;
}
.sm-playlist-item-title { font-size: .8rem; font-weight: 600; color: #1a1a2e; line-height: 1.3; }
.sm-playlist-item-date  { font-size: .7rem; color: #8a94a6; }

/* ── Notes Topic Card ─────────────────────────────────────────── */
.sm-topic-card {
    background: #fff; border-radius: 16px;
    overflow: hidden; display: block;
    text-decoration: none; height: 100%;
    box-shadow: 0 3px 14px rgba(0,0,0,.07);
    transition: all .3s;
    border-bottom: 4px solid transparent;
}
.sm-topic-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 14px 36px rgba(15,52,96,.14);
    border-bottom-color: #16c5c2;
}
.sm-topic-thumb {
    height: 150px; overflow: hidden; position: relative;
    background: linear-gradient(135deg, #1a1a2e, #0f3460);
}
.sm-topic-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: .8; }
.sm-topic-thumb-placeholder {
    height: 150px; background: linear-gradient(135deg, #1a1a2e, #0f3460);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,.2); font-size: 3rem;
}
.sm-topic-body { padding: 1rem 1.1rem 1.1rem; }
.sm-topic-name { font-size: .92rem; font-weight: 800; color: #1a1a2e; margin-bottom: .5rem; }
.sm-topic-count {
    display: inline-flex; align-items: center; gap: 5px;
    background: #f0f4ff; border: 1px solid #d5e0ff;
    color: #0f3460; padding: 4px 12px; border-radius: 50px;
    font-size: .73rem; font-weight: 700;
}
.sm-topic-arrow {
    width: 32px; height: 32px; border-radius: 50%;
    background: linear-gradient(135deg, #0f3460, #1a1a2e);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: .75rem; margin-left: auto;
    transition: transform .2s;
}
.sm-topic-card:hover .sm-topic-arrow { transform: translateX(4px); }

/* ── Notes List Row ───────────────────────────────────────────── */
.sm-note-row {
    background: #fff; border-radius: 14px;
    padding: 1rem 1.2rem; margin-bottom: .85rem;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
    border-left: 4px solid #0f3460;
    display: flex; align-items: center; gap: 14px;
    transition: all .25s;
}
.sm-note-row:hover {
    border-left-color: #16c5c2;
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(15,52,96,.12);
}
.sm-note-icon {
    width: 46px; height: 46px; min-width: 46px; border-radius: 11px;
    background: linear-gradient(135deg, #e8f4fd, #dbeafe);
    display: flex; align-items: center; justify-content: center;
    color: #0f3460; font-size: 1.1rem;
}
.sm-note-title { font-size: .88rem; font-weight: 700; color: #1a1a2e; margin-bottom: .2rem; }
.sm-note-sub   { font-size: .74rem; color: #8a94a6; }
.sm-note-actions { display: flex; gap: 7px; margin-left: auto; flex-shrink: 0; }

/* ── Playlist Tabs ────────────────────────────────────────────── */
.sm-tabs {
    display: flex; border-radius: 12px; overflow: hidden;
    background: #f0f4ff; padding: 4px; gap: 4px;
    margin-bottom: 1.5rem;
}
.sm-tab-btn {
    flex: 1; text-align: center; padding: 9px 18px;
    border: none; border-radius: 9px; background: transparent;
    font-size: .85rem; font-weight: 700; color: #64748b;
    cursor: pointer; transition: all .2s;
}
.sm-tab-btn.active {
    background: #fff; color: #0f3460;
    box-shadow: 0 2px 8px rgba(15,52,96,.12);
}
.sm-tab-pane { display: none; }
.sm-tab-pane.active { display: block; }

/* ── Playlist Info Bar ────────────────────────────────────────── */
.sm-playlist-info {
    background: #fff; border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,.08);
    padding: 1.8rem; margin-bottom: 1.5rem;
    border-left: 5px solid #16c5c2;
}
.sm-playlist-info-title {
    font-size: clamp(1.3rem, 2.5vw, 1.7rem);
    font-weight: 800; color: #1a1a2e; margin-bottom: .75rem;
}
.sm-playlist-meta-item {
    display: flex; align-items: center; gap: 6px;
    font-size: .82rem; color: #64748b;
    padding-right: 1.2rem; margin-right: 1.2rem;
    border-right: 1px solid #e8edf5;
}
.sm-playlist-meta-item:last-child { border-right: none; margin-right: 0; padding-right: 0; }
.sm-playlist-meta-item strong { color: #1a1a2e; }

/* ── Past Class Card ──────────────────────────────────────────── */
.sm-past-class-card {
    background: #fff; border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
    display: flex; align-items: center; gap: 14px;
    padding: 1rem 1.2rem; margin-bottom: .85rem;
    text-decoration: none; transition: all .25s;
    border-left: 4px solid transparent;
}
.sm-past-class-card:hover {
    border-left-color: #0f3460;
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(15,52,96,.1);
}

/* ── Course Card (Listing Grid) ──────────────────────────────── */
.sm-course-card {
    background: #fff; border-radius: 18px;
    overflow: hidden; display: flex; flex-direction: column;
    box-shadow: 0 4px 18px rgba(0,0,0,.07);
    transition: all .3s; height: 100%;
    text-decoration: none;
}
.sm-course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(15,52,96,.15);
}
.sm-course-thumb {
    position: relative; height: 200px; overflow: hidden;
    background: linear-gradient(135deg, #1a1a2e, #0f3460);
}
.sm-course-thumb img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .4s; opacity: .9;
}
.sm-course-card:hover .sm-course-thumb img { transform: scale(1.06); }
.sm-course-thumb-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(15,52,96,.7) 100%);
}
.sm-course-type-badge {
    position: absolute; top: .75rem; left: .75rem;
    background: rgba(255,255,255,.92); color: #0f3460;
    font-size: .72rem; font-weight: 800;
    padding: 4px 12px; border-radius: 50px;
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.sm-course-body { padding: 1.2rem 1.3rem; flex: 1; display: flex; flex-direction: column; }
.sm-course-name {
    font-size: 1rem; font-weight: 800; color: #1a1a2e;
    margin-bottom: .5rem; line-height: 1.35;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.sm-course-excerpt {
    font-size: .78rem; color: #6b7280; line-height: 1.6;
    margin-bottom: .85rem; flex: 1;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.sm-course-meta {
    display: flex; align-items: center; gap: 10px;
    font-size: .73rem; color: #8a94a6; margin-bottom: .9rem;
}
.sm-course-meta i { color: #0f3460; }
.sm-course-stars { color: #f59e0b; font-size: .75rem; }
.sm-course-actions {
    display: flex; gap: 8px; border-top: 1px solid #f0f0f0; padding-top: .9rem; margin-top: auto;
}
.sm-course-btn-primary {
    flex: 1; background: linear-gradient(135deg, #0f3460, #1a1a2e);
    border: none; color: #fff; padding: 8px 10px; border-radius: 10px;
    font-size: .78rem; font-weight: 700; text-align: center;
    text-decoration: none; transition: all .2s; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 5px;
}
.sm-course-btn-primary:hover { background: #16c5c2; color: #fff; transform: scale(1.02); }
.sm-course-btn-outline {
    flex: 1; background: transparent; border: 1.5px solid #0f3460;
    color: #0f3460; padding: 8px 10px; border-radius: 10px;
    font-size: .78rem; font-weight: 700; text-align: center;
    text-decoration: none; transition: all .2s; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 5px;
}
.sm-course-btn-outline:hover { background: #0f3460; color: #fff; }

/* ── Highlight Box (Detail Page) ─────────────────────────────── */
.sm-highlight-box {
    background: #f8faff; border: 1.5px solid #d5e0ff;
    border-radius: 16px; padding: 1.5rem;
}
.sm-highlight-item {
    display: flex; align-items: center; gap: 14px;
    padding: .9rem 0; border-bottom: 1px solid #edf0f8;
}
.sm-highlight-item:last-child { border-bottom: none; padding-bottom: 0; }
.sm-highlight-item:first-child { padding-top: 0; }
.sm-highlight-icon {
    width: 44px; height: 44px; min-width: 44px; border-radius: 11px;
    background: linear-gradient(135deg, #0f3460, #1a1a2e);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: .95rem;
}
.sm-highlight-label { font-size: .7rem; font-weight: 700; color: #8a94a6; text-transform: uppercase; letter-spacing: .4px; margin-bottom: 2px; }
.sm-highlight-value { font-size: .9rem; font-weight: 700; color: #1a1a2e; }

/* ── Content Section Card ────────────────────────────────────── */
.sm-content-section {
    background: #fff; border-radius: 16px;
    box-shadow: 0 2px 16px rgba(0,0,0,.07);
    overflow: hidden; margin-bottom: 1.5rem;
}
.sm-content-section-header {
    display: flex; align-items: center; gap: 10px;
    padding: 1rem 1.4rem; border-bottom: 2px solid #f0f0f0;
    background: linear-gradient(90deg, #f8faff, #f0f4ff);
}
.sm-content-section-header h5 {
    margin: 0; font-size: .9rem; font-weight: 800; color: #1a1a2e;
    text-transform: uppercase; letter-spacing: .5px;
}
.sm-content-section-body { padding: 1.4rem; }
.sm-content-section-body .sm-description p { margin-bottom: .65rem; }

/* ── Student Kit Card ────────────────────────────────────────── */
.sm-kit-card {
    background: linear-gradient(135deg, #f8faff, #f0f4ff);
    border: 1.5px solid #d5e0ff; border-radius: 14px;
    overflow: hidden; text-align: center; padding: 1.2rem;
}
.sm-kit-card img {
    max-height: 180px; object-fit: contain;
    border-radius: 10px; margin-bottom: .75rem;
}
.sm-kit-card p { font-size: .82rem; color: #4a5568; margin: 0; }

/* ── Brochure Banner ─────────────────────────────────────────── */
.sm-brochure-banner {
    background: linear-gradient(135deg, #1a1a2e 0%, #0f3460 60%, #16213e 100%);
    border-radius: 18px; padding: 2rem 2.5rem;
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem;
    position: relative; overflow: hidden;
}
.sm-brochure-banner::before {
    content: ''; position: absolute;
    top: -30px; right: -30px; width: 120px; height: 120px;
    background: rgba(22,197,194,.12); border-radius: 50%;
}
.sm-brochure-banner::after {
    content: ''; position: absolute;
    bottom: -20px; left: 40%; width: 80px; height: 80px;
    background: rgba(255,255,255,.05); border-radius: 50%;
}
.sm-brochure-inner { position: relative; z-index: 2; }
.sm-brochure-title { font-size: 1.3rem; font-weight: 800; color: #fff; margin-bottom: .3rem; }
.sm-brochure-sub   { font-size: .88rem; color: rgba(255,255,255,.6); }
.sm-brochure-btn {
    background: #fff; color: #0f3460;
    padding: 11px 28px; border-radius: 12px;
    font-size: .88rem; font-weight: 800;
    text-decoration: none; white-space: nowrap;
    position: relative; z-index: 2;
    display: inline-flex; align-items: center; gap: 8px;
    transition: all .2s;
}
.sm-brochure-btn:hover { background: #16c5c2; color: #fff; transform: scale(1.04); }

/* ── Course Detail Hero Image ────────────────────────────────── */
.sm-course-hero-img {
    border-radius: 18px; overflow: hidden;
    height: 360px; position: relative;
    box-shadow: 0 8px 30px rgba(15,52,96,.2);
}
.sm-course-hero-img img {
    width: 100%; height: 100%; object-fit: cover;
}
.sm-course-hero-badge {
    position: absolute; top: 1.2rem; left: 1.2rem;
    background: linear-gradient(135deg, #0f3460, #1a1a2e);
    color: #fff; width: 72px; height: 72px; border-radius: 16px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    box-shadow: 0 4px 14px rgba(0,0,0,.3);
}
.sm-course-hero-badge i { font-size: 1.6rem; }
.sm-course-hero-badge span { font-size: .55rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; margin-top: 2px; opacity: .7; }

/* ── Apply CTA strip ─────────────────────────────────────────── */
.sm-apply-cta {
    display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px;
    padding: 1.8rem; text-align: center;
    background: linear-gradient(90deg, #f8faff, #f0f4ff);
    border-radius: 16px; border: 1.5px solid #d5e0ff;
    margin-top: 1.5rem;
}
