*{margin:0;padding:0;box-sizing:border-box}
:root{
  --black:#0A0A0A;
  --yellow:#FFD400;
  --yellow-dim:#E6BF00;
  --white:#FFFFFF;
  --off-white:#F7F5F0;
  --ivory:#F0EAD6;
  --ivory-soft:#EDE3C8;
  --ivory-dim:rgba(240,234,214,0.55);
  --ivory-glow:rgba(240,234,214,0.07);
  --ivory-border:rgba(240,234,214,0.14);
  --ivory-card:rgba(240,234,214,0.03);
  --gray:#8A8A8A;
  --gray-light:#2A2A2A;
  --gray-mid:#1A1A1A;
  --card-bg:#111111;
  --border:#252525;
  --serif:'DM Serif Display',serif;
  --sans:'DM Sans',sans-serif;
  --mono:'Space Mono',monospace;
  --hand:'Caveat',cursive;
  --radius:14px;
  --radius-sm:8px;
  --radius-pill:99px;
  /* ✿ Pinterest Pastel Palette ✿ */
  --pastel-pink:#FFB3C6;
  --pastel-lilac:#D4BBFF;
  --pastel-mint:#B5EAD7;
  --pastel-peach:#FFCBA4;
  --pastel-sky:#B5D5FF;
  --pastel-lemon:#FFF3A3;
  --pastel-rose:#FFD6E0;
}
html{scroll-behavior:smooth}
body{background:var(--black);color:var(--ivory);font-family:var(--sans);overflow-x:hidden;font-size:15px;line-height:1.6}

/* subtle grain overlay on the whole page */
body::after{content:'';position:fixed;inset:0;pointer-events:none;z-index:9999;opacity:0.018;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");background-size:180px 180px}

/* NAV */
nav{position:fixed;top:0;left:0;right:0;z-index:100;padding:0 48px;height:64px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--ivory-border);background:rgba(10,10,10,0.93);backdrop-filter:blur(16px)}
.nav-logo{font-family:var(--serif);font-size:20px;letter-spacing:-0.02em;color:var(--ivory);cursor:pointer}
.nav-logo span{color:var(--yellow)}
.nav-links{display:flex;gap:32px;list-style:none}
.nav-links a{color:var(--ivory-dim);font-size:13px;font-weight:400;text-decoration:none;letter-spacing:0.04em;text-transform:uppercase;transition:color 0.2s}
.nav-links a:hover{color:var(--ivory)}
.nav-cta{display:flex;gap:12px;align-items:center}
.btn-ghost{background:transparent;border:1px solid var(--ivory-border);color:var(--ivory);padding:8px 20px;border-radius:var(--radius-pill);font-family:var(--sans);font-size:13px;cursor:pointer;transition:all 0.2s;letter-spacing:0.02em}
.btn-ghost:hover{border-color:var(--yellow);color:var(--yellow)}
.btn-primary{background:var(--yellow);border:none;color:var(--black);padding:8px 20px;border-radius:var(--radius-pill);font-family:var(--sans);font-size:13px;font-weight:600;cursor:pointer;transition:all 0.2s;letter-spacing:0.02em}
.btn-primary:hover{background:var(--yellow-dim)}

/* SECTIONS */
section{padding:96px 48px}

/* HERO */
.hero{min-height:100vh;display:flex;flex-direction:column;justify-content:center;padding-top:120px;padding-bottom:64px;position:relative;overflow:hidden}
.hero::before{content:'';position:absolute;top:-200px;right:-200px;width:700px;height:700px;background:radial-gradient(circle,rgba(255,212,0,0.07) 0%,transparent 68%);pointer-events:none}
.hero::after{content:'';position:absolute;bottom:-120px;left:-80px;width:500px;height:500px;background:radial-gradient(circle,rgba(212,187,255,0.06) 0%,transparent 70%);pointer-events:none}
/* extra pastel blobs */
.hero-blob-pink{position:absolute;top:30%;left:-100px;width:400px;height:400px;background:radial-gradient(circle,rgba(255,179,198,0.05) 0%,transparent 68%);pointer-events:none;border-radius:50%}
.hero-blob-mint{position:absolute;bottom:10%;right:5%;width:300px;height:300px;background:radial-gradient(circle,rgba(181,234,215,0.05) 0%,transparent 68%);pointer-events:none;border-radius:50%}
.hero-tag{display:inline-flex;align-items:center;gap:8px;border:1px solid var(--ivory-border);padding:6px 16px;border-radius:var(--radius-pill);font-size:11px;font-family:var(--mono);letter-spacing:0.08em;color:var(--ivory-dim);margin-bottom:40px;width:fit-content;background:var(--ivory-glow)}
.hero-tag span{width:6px;height:6px;background:var(--yellow);border-radius:50%;display:inline-block}
.hero h1{font-family:var(--serif);font-size:clamp(52px,7vw,96px);line-height:0.95;letter-spacing:-0.03em;max-width:800px;margin-bottom:32px;color:var(--ivory)}
.hero h1 em{font-style:italic;color:var(--yellow)}
.hero-sub{font-size:16px;color:var(--ivory-dim);max-width:480px;line-height:1.75;margin-bottom:48px;font-weight:300}
.hero-actions{display:flex;gap:16px;align-items:center;flex-wrap:wrap}
.btn-large{padding:14px 32px;font-size:14px;border-radius:var(--radius-pill);font-weight:500;cursor:pointer;transition:all 0.2s;font-family:var(--sans);letter-spacing:0.02em}
.btn-yellow{background:var(--yellow);color:var(--black);border:none}
.btn-yellow:hover{background:var(--yellow-dim);transform:translateY(-1px)}
.btn-outline{background:transparent;color:var(--ivory);border:1px solid var(--ivory-border)}
.btn-outline:hover{border-color:rgba(240,234,214,0.35);background:var(--ivory-glow)}

/* ======================================================
   HOMEPAGE HIGHLIGHT STATISTICS
====================================================== */

.hero-stats {
  display: flex;
  align-items: flex-start;

  gap: 74px;

  width: 100%;

  margin-top: 72px;
  padding-top: 46px;
  padding-bottom: 10px;

  border-top:
    1px solid
    var(--ivory-border);
}

.home-stat-item {
  min-width: 165px;
}

.stat-num {
  margin-bottom: 8px;

  font-family:
    var(--mono);

  font-size:
    clamp(27px, 2.4vw, 38px);

  font-weight: 700;

  letter-spacing:
    -0.04em;

  line-height: 1;
}

.stat-label {
  color:
    var(--ivory-dim);

  font-size: 12px;

  font-weight: 500;

  letter-spacing:
    0.03em;

  line-height: 1.4;

  text-transform:
    uppercase;
}


/* ------------------------------------------------------
   RESPONSIVE HOMEPAGE STATISTICS
------------------------------------------------------ */

@media (max-width: 900px) {
  .hero-stats {
    display: grid;

    grid-template-columns:
      repeat(2, minmax(0, 1fr));

    gap: 30px 22px;
  }

  .home-stat-item {
    min-width: 0;
  }
}


@media (max-width: 520px) {
  .hero-stats {
    grid-template-columns:
      1fr;

    gap: 24px;

    margin-top: 52px;
    padding-top: 34px;
  }
}
.stat-num{font-family:var(--mono);font-size:28px;color:var(--ivory);font-weight:700}
.stat-label{font-size:12px;color:var(--ivory-dim);letter-spacing:0.04em;text-transform:uppercase;margin-top:4px}

/* floating sparkles in hero (CSS-only) */
.hero-sparkle{position:absolute;pointer-events:none;font-size:14px;opacity:0;animation:sparkle-float 6s ease-in-out infinite}
.hero-sparkle:nth-child(1){top:22%;right:18%;animation-delay:0s}
.hero-sparkle:nth-child(2){top:55%;right:8%;animation-delay:1.4s}
.hero-sparkle:nth-child(3){top:35%;right:38%;animation-delay:2.8s;font-size:10px}
.hero-sparkle:nth-child(4){top:70%;right:28%;animation-delay:0.7s;font-size:11px}
.hero-sparkle:nth-child(5){top:15%;right:52%;animation-delay:2s;font-size:9px}
@keyframes sparkle-float{0%,100%{opacity:0;transform:translateY(0) scale(0.8)}40%,60%{opacity:0.55;transform:translateY(-8px) scale(1)}}

/* MARQUEE */
.marquee-wrap{border-top:1px solid var(--ivory-border);border-bottom:1px solid var(--ivory-border);padding:18px 0;overflow:hidden;background:linear-gradient(90deg,var(--card-bg) 0%,rgba(20,18,14,1) 50%,var(--card-bg) 100%)}
.marquee-track{display:flex;gap:56px;animation:scroll 22s linear infinite;width:max-content}
.marquee-item{font-family:var(--mono);font-size:11px;letter-spacing:0.1em;color:var(--ivory);opacity:0.32;white-space:nowrap;display:flex;align-items:center;gap:10px}
.marquee-dot{color:var(--yellow);opacity:1}
@keyframes scroll{0%{transform:translateX(0)}100%{transform:translateX(-50%)}}

/* FEATURES */
.section-label{font-family:var(--mono);font-size:11px;letter-spacing:0.1em;color:var(--yellow);text-transform:uppercase;margin-bottom:16px}
.section-title{font-family:var(--serif);font-size:clamp(36px,4vw,52px);line-height:1.05;letter-spacing:-0.02em;margin-bottom:16px;color:var(--ivory)}
.section-sub{font-size:15px;color:var(--ivory-dim);max-width:520px;line-height:1.75;font-weight:300}
.features-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:56px}
.feature-card{background:var(--card-bg);border:1px solid var(--ivory-border);padding:36px 28px;transition:all 0.3s;cursor:default;border-radius:var(--radius)}
.feature-card:hover{background:rgba(240,234,214,0.04);border-color:rgba(255,179,198,0.35);transform:translateY(-2px);box-shadow:0 8px 32px rgba(255,179,198,0.06)}
.feature-icon{width:40px;height:40px;margin-bottom:24px;display:flex;align-items:center;justify-content:center;font-size:20px}
.feature-num{font-family:var(--mono);font-size:11px;color:var(--yellow);letter-spacing:0.08em;margin-bottom:16px}
.feature-title{font-size:16px;font-weight:500;margin-bottom:10px;letter-spacing:-0.01em;color:var(--ivory)}
.feature-desc{font-size:13px;color:var(--ivory-dim);line-height:1.7;font-weight:300}

/* COURSES */
.courses-header{display:flex;justify-content:space-between;align-items:flex-end;margin-bottom:48px}
.courses-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.course-card{background:var(--card-bg);border:1px solid var(--ivory-border);border-radius:var(--radius);overflow:hidden;cursor:pointer;transition:all 0.25s}
.course-card:hover{border-color:rgba(240,234,214,0.28);transform:translateY(-3px);box-shadow:0 12px 40px rgba(0,0,0,0.4)}
.course-thumb{height:180px;position:relative;overflow:hidden;display:flex;align-items:center;justify-content:center}
.course-thumb-inner{width:100%;height:100%;display:flex;align-items:center;justify-content:center;font-family:var(--serif);font-size:42px;letter-spacing:-0.02em}
.course-badge{position:absolute;top:12px;left:12px;background:var(--yellow);color:var(--black);font-size:10px;font-family:var(--mono);letter-spacing:0.08em;padding:4px 12px;border-radius:var(--radius-pill);font-weight:700}
.course-body{padding:20px 22px 22px}
.course-subject{font-size:11px;font-family:var(--mono);color:var(--yellow);letter-spacing:0.08em;text-transform:uppercase;margin-bottom:8px}
.course-title{font-size:15px;font-weight:500;line-height:1.4;margin-bottom:12px;letter-spacing:-0.01em;color:var(--ivory)}
.course-meta{display:flex;justify-content:space-between;align-items:center}
.course-teacher{font-size:12px;color:var(--ivory-dim);font-weight:300}
.course-price{font-family:var(--mono);font-size:14px;font-weight:700;color:var(--ivory)}
.course-progress{height:2px;background:var(--border);margin-top:16px;border-radius:1px}
.course-progress-fill{height:100%;background:var(--yellow);border-radius:1px}

/* TESTIMONIALS */
.testimonials{background:var(--card-bg);border-top:1px solid var(--ivory-border);border-bottom:1px solid var(--ivory-border)}
.testimonials-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;margin-top:56px}
.testimonial-card{border:1px solid var(--ivory-border);padding:32px;border-radius:var(--radius);background:var(--ivory-card);transition:all 0.25s}
.testimonial-card:hover{border-color:rgba(240,234,214,0.24);transform:translateY(-2px)}
.quote-mark{font-family:var(--serif);font-size:48px;color:var(--yellow);line-height:1;margin-bottom:16px;opacity:0.75}
.testimonial-text{font-size:14px;color:var(--ivory-dim);line-height:1.75;font-weight:300;margin-bottom:24px;font-style:italic}
.testimonial-author{display:flex;align-items:center;gap:12px}
.author-avatar{width:36px;height:36px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:13px;font-weight:600;font-family:var(--mono);flex-shrink:0}
.author-name{font-size:13px;font-weight:500;color:var(--ivory)}
.author-grade{font-size:11px;color:var(--ivory-dim)}

/* FAQ */
.faq-list{margin-top:48px;border-top:1px solid var(--ivory-border)}
.faq-item{border-bottom:1px solid var(--ivory-border)}
.faq-q{padding:24px 0;display:flex;justify-content:space-between;align-items:center;cursor:pointer;font-size:15px;font-weight:400;letter-spacing:-0.01em;color:rgba(240,234,214,0.85)}
.faq-q:hover{color:var(--yellow)}
.faq-toggle{font-family:var(--mono);font-size:18px;color:var(--yellow);transition:transform 0.3s;display:inline-block}
.faq-item.open .faq-toggle{transform:rotate(45deg)}
.faq-a{font-size:13px;color:var(--ivory-dim);line-height:1.75;font-weight:300;max-height:0;overflow:hidden;transition:max-height 0.4s ease,padding 0.3s}
.faq-item.open .faq-a{max-height:200px;padding-bottom:24px}

/* DASHBOARD */
.dashboard-preview{background:var(--card-bg);border:1px solid var(--ivory-border);border-radius:var(--radius);overflow:hidden;margin-top:56px}
.db-header{background:var(--gray-mid);padding:16px 24px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--ivory-border)}
.db-dots{display:flex;gap:6px}
.db-dot{width:10px;height:10px;border-radius:50%}
.db-title{font-family:var(--mono);font-size:11px;color:var(--ivory-dim);letter-spacing:0.06em}
.db-body{display:grid;grid-template-columns:220px 1fr;min-height:480px}
.db-sidebar{background:var(--black);border-right:1px solid var(--ivory-border);padding:24px 0}
.db-sidebar-logo{padding:0 24px 24px;font-family:var(--serif);font-size:16px;border-bottom:1px solid var(--ivory-border);margin-bottom:24px;color:var(--ivory)}
.db-sidebar-logo span{color:var(--yellow)}
.db-nav-item{padding:10px 24px;font-size:13px;color:var(--ivory-dim);cursor:pointer;display:flex;align-items:center;gap:10px;transition:all 0.2s;font-weight:300}
.db-nav-item:hover,.db-nav-item.active{color:var(--ivory);background:var(--gray-mid)}
.db-nav-item.active::before{content:'';width:2px;height:100%;background:var(--yellow);position:absolute;left:0}
.db-nav-item{position:relative}
.db-nav-label{font-family:var(--mono);font-size:10px;color:var(--ivory-dim);letter-spacing:0.08em;padding:16px 24px 8px;text-transform:uppercase;opacity:0.5}
.db-content{padding:28px;overflow:hidden}
.db-greeting{margin-bottom:24px}
.db-name{font-family:var(--serif);font-size:22px;letter-spacing:-0.02em;margin-bottom:4px;color:var(--ivory)}
.db-date{font-size:12px;color:var(--ivory-dim);font-family:var(--mono)}
.db-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:24px}
.db-stat{background:var(--black);border:1px solid var(--ivory-border);padding:16px;border-radius:var(--radius-sm)}
.db-stat-val{font-family:var(--mono);font-size:22px;font-weight:700;margin-bottom:4px;color:var(--ivory)}
.db-stat-key{font-size:11px;color:var(--ivory-dim);text-transform:uppercase;letter-spacing:0.06em}
.db-recent{font-size:11px;font-family:var(--mono);color:var(--ivory-dim);letter-spacing:0.06em;text-transform:uppercase;margin-bottom:16px;opacity:0.6}
.db-course-row{display:flex;align-items:center;justify-content:space-between;padding:12px 0;border-bottom:1px solid var(--ivory-border)}
.db-course-info{display:flex;align-items:center;gap:12px}
.db-course-dot{width:8px;height:8px;background:var(--yellow);border-radius:50%;flex-shrink:0}
.db-course-name{font-size:13px;font-weight:400;color:var(--ivory)}
.db-course-sub{font-size:11px;color:var(--ivory-dim)}
.db-prog-wrap{width:80px}
.db-prog-bar{height:2px;background:var(--border);border-radius:1px}
.db-prog-fill{height:100%;background:var(--yellow);border-radius:1px}
.db-prog-pct{font-family:var(--mono);font-size:10px;color:var(--ivory-dim);text-align:right;margin-top:3px}

/* WHATSAPP */
.wa-float{position:fixed;bottom:32px;right:32px;z-index:999;display:flex;flex-direction:column;align-items:flex-end;gap:12px}
.wa-tooltip{background:var(--yellow);color:var(--black);font-size:12px;font-weight:600;padding:8px 16px;border-radius:var(--radius-pill);font-family:var(--sans);opacity:0;transform:translateX(8px);transition:all 0.2s;pointer-events:none}
.wa-float:hover .wa-tooltip{opacity:1;transform:translateX(0)}
.wa-btn{width:52px;height:52px;background:var(--yellow);border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer;border:none;transition:transform 0.2s,background 0.2s}
.wa-btn:hover{transform:scale(1.08);background:var(--yellow-dim)}
.wa-icon{width:26px;height:26px;fill:var(--black)}

/* FOOTER */
footer{background:var(--card-bg);border-top:1px solid var(--ivory-border);padding:64px 48px 40px}
.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:48px;margin-bottom:48px}
.footer-brand{font-family:var(--serif);font-size:22px;letter-spacing:-0.02em;margin-bottom:16px;color:var(--ivory)}
.footer-brand span{color:var(--yellow)}
.footer-desc{font-size:13px;color:var(--ivory-dim);line-height:1.75;font-weight:300;max-width:280px}
.footer-col-title{font-family:var(--mono);font-size:11px;letter-spacing:0.08em;text-transform:uppercase;color:var(--yellow);margin-bottom:16px}
.footer-links{list-style:none;display:flex;flex-direction:column;gap:10px}
.footer-links a{font-size:13px;color:var(--ivory-dim);text-decoration:none;transition:color 0.2s;font-weight:300}
.footer-links a:hover{color:var(--ivory)}
.footer-bottom{border-top:1px solid var(--ivory-border);padding-top:24px;display:flex;justify-content:space-between;align-items:center}
.footer-copy{font-size:12px;color:var(--ivory-dim);font-family:var(--mono);opacity:0.5}

/* TABS */
.page-tabs{display:flex;gap:0;border-bottom:1px solid var(--ivory-border);position:sticky;top:64px;background:var(--black);z-index:90;padding:0 48px}
.tab-btn{padding:16px 20px;font-size:12px;font-family:var(--mono);letter-spacing:0.06em;text-transform:uppercase;color:var(--ivory-dim);background:none;border:none;cursor:pointer;border-bottom:2px solid transparent;margin-bottom:-1px;transition:all 0.2s}
.tab-btn:hover{color:var(--ivory)}
.tab-btn.active{color:var(--yellow);border-bottom-color:var(--yellow)}

/* PAGE VIEWS */
.page-view{display:none}
.page-view.active{display:block}

/* ADMIN */
.admin-wrap{display:grid;grid-template-columns:240px 1fr;min-height:calc(100vh - 128px)}
/* .admin-side{background:var(--card-bg);border-right:1px solid var(--border);padding:28px 0;position:sticky;top:128px;height:calc(100vh - 128px);overflow-y:auto} */
.admin-side{
  background:var(--card-bg);
  border-right:1px solid var(--ivory-border);
  padding:0;
}
.admin-main{padding:40px 48px;background:var(--black)}
.admin-logo{padding:0 24px 28px;font-family:var(--serif);font-size:18px;border-bottom:1px solid var(--border);margin-bottom:24px}
.admin-logo span{color:var(--yellow)}
.admin-nav-group{margin-bottom:8px}
.admin-nav-label{font-family:var(--mono);font-size:10px;letter-spacing:0.1em;color:var(--gray);padding:8px 24px 6px;text-transform:uppercase}
.admin-nav-item{padding:10px 24px;font-size:13px;display:flex;align-items:center;gap:10px;color:var(--gray);cursor:pointer;transition:all 0.2s;font-weight:300;border-left:2px solid transparent}
.admin-nav-item:hover{color:var(--white);background:var(--gray-mid)}
.admin-nav-item.active{color:var(--white);background:var(--gray-mid);border-left-color:var(--yellow)}
.admin-nav-dot{width:6px;height:6px;background:var(--border);border-radius:50%;flex-shrink:0}
.admin-nav-item.active .admin-nav-dot{background:var(--yellow)}
/* ADMIN */
.admin-wrap{display:grid;grid-template-columns:240px 1fr;min-height:calc(100vh - 128px)}
.admin-side{background:var(--card-bg);border-right:1px solid var(--ivory-border);padding:28px 0;position:sticky;top:128px;height:calc(100vh - 128px);overflow-y:auto}
.admin-main{padding:40px 48px;background:var(--black)}
.admin-logo{padding:0 24px 28px;font-family:var(--serif);font-size:18px;border-bottom:1px solid var(--ivory-border);margin-bottom:24px;color:var(--ivory)}
.admin-logo span{color:var(--yellow)}
.admin-nav-group{margin-bottom:8px}
.admin-nav-label{font-family:var(--mono);font-size:10px;letter-spacing:0.1em;color:var(--ivory-dim);padding:8px 24px 6px;text-transform:uppercase;opacity:0.5}
.admin-nav-item{padding:10px 24px;font-size:13px;display:flex;align-items:center;gap:10px;color:var(--ivory-dim);cursor:pointer;transition:all 0.2s;font-weight:300;border-left:2px solid transparent}
.admin-nav-item:hover{color:var(--ivory);background:var(--gray-mid)}
.admin-nav-item.active{color:var(--ivory);background:var(--gray-mid);border-left-color:var(--yellow)}
.admin-nav-dot{width:6px;height:6px;background:var(--border);border-radius:50%;flex-shrink:0}
.admin-nav-item.active .admin-nav-dot{background:var(--yellow)}
.section-head{margin-bottom:32px}
.page-title{font-family:var(--serif);font-size:28px;letter-spacing:-0.02em;margin-bottom:6px;color:var(--ivory)}
.page-subtitle{font-size:13px;color:var(--ivory-dim);font-weight:300}
.analytics-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:32px}
.ana-card{background:var(--card-bg);border:1px solid var(--ivory-border);padding:20px 24px;border-radius:var(--radius-sm)}
.ana-card:first-child{border-color:rgba(255,212,0,0.25);background:rgba(255,212,0,0.04)}
.ana-label{font-size:11px;font-family:var(--mono);color:var(--ivory-dim);letter-spacing:0.06em;text-transform:uppercase;margin-bottom:10px;opacity:0.6}
.ana-val{font-family:var(--mono);font-size:28px;font-weight:700;line-height:1;color:var(--ivory)}
.ana-card:first-child .ana-val{color:var(--yellow)}
.ana-delta{font-size:11px;color:#81C784;margin-top:6px;font-family:var(--mono)}
.table-wrap{background:var(--card-bg);border:1px solid var(--ivory-border);border-radius:var(--radius-sm);overflow:hidden}
.table-head-row{display:flex;align-items:center;justify-content:space-between;padding:16px 24px;border-bottom:1px solid var(--ivory-border)}
.table-title{font-size:13px;font-weight:500;color:var(--ivory)}
.table-search{background:var(--black);border:1px solid var(--ivory-border);color:var(--ivory);padding:7px 14px;font-size:12px;font-family:var(--mono);border-radius:var(--radius-sm);outline:none;width:180px}
.table-search:focus{border-color:var(--yellow)}
.table-search::placeholder{color:var(--ivory-dim)}
table{width:100%;border-collapse:collapse}
th{font-family:var(--mono);font-size:10px;letter-spacing:0.08em;text-transform:uppercase;color:var(--ivory-dim);padding:14px 24px;text-align:left;border-bottom:1px solid var(--ivory-border);background:rgba(0,0,0,0.3)}
td{padding:14px 24px;font-size:13px;font-weight:300;border-bottom:1px solid var(--ivory-border);color:var(--ivory)}
tr:last-child td{border-bottom:none}
tr:hover td{background:var(--ivory-glow)}
.badge{display:inline-block;padding:3px 12px;border-radius:var(--radius-pill);font-size:10px;font-family:var(--mono);letter-spacing:0.06em;font-weight:700}
.badge-green{background:rgba(76,175,80,0.15);color:#81C784}
.badge-yellow{background:rgba(255,212,0,0.15);color:#FFD400}
.badge-red{background:rgba(244,67,54,0.15);color:#EF9A9A}
.badge-gray{background:rgba(240,234,214,0.08);color:var(--ivory-dim)}
.action-row{display:flex;gap:8px}
.act-btn{background:transparent;border:1px solid var(--ivory-border);color:var(--ivory-dim);padding:5px 14px;font-size:11px;font-family:var(--mono);cursor:pointer;border-radius:var(--radius-pill);transition:all 0.2s}
.act-btn:hover{border-color:var(--yellow);color:var(--yellow)}
.act-btn.danger:hover{border-color:#EF9A9A;color:#EF9A9A}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-bottom:24px}
.form-group{display:flex;flex-direction:column;gap:8px}
.form-label{font-size:11px;font-family:var(--mono);letter-spacing:0.06em;text-transform:uppercase;color:var(--ivory-dim)}
.form-input{background:var(--black);border:1px solid var(--ivory-border);color:var(--ivory);padding:10px 14px;font-size:13px;font-family:var(--sans);border-radius:var(--radius-sm);outline:none;transition:border-color 0.2s}
.form-input:focus{border-color:var(--yellow)}
.form-input::placeholder{color:var(--ivory-dim)}
.form-select{background:var(--black);border:1px solid var(--ivory-border);color:var(--ivory);padding:10px 14px;font-size:13px;font-family:var(--sans);border-radius:var(--radius-sm);outline:none;appearance:none;cursor:pointer}
select option{background:var(--black)}
.two-col{display:grid;grid-template-columns:1fr 1fr;gap:32px}
.chart-mock{background:var(--black);border:1px solid var(--ivory-border);border-radius:var(--radius-sm);padding:24px;height:180px;display:flex;align-items:flex-end;gap:8px;overflow:hidden}
.chart-bar{flex:1;background:rgba(240,234,214,0.08);border-radius:4px 4px 0 0;transition:background 0.2s;min-height:8px}
.chart-bar:hover{background:var(--yellow)}
.chart-bar.highlight{background:rgba(255,212,0,0.35)}

/* BOOKING */
.booking-grid{display:grid;grid-template-columns:1fr 1fr;gap:32px;margin-top:48px}
.booking-form-wrap{background:var(--card-bg);border:1px solid var(--ivory-border);border-radius:var(--radius);padding:40px}
.booking-info{padding:40px 0}
.consultation-types{display:flex;flex-direction:column;gap:12px;margin-bottom:32px}
.cons-type{display:flex;align-items:center;gap:14px;padding:16px 20px;border:1px solid var(--ivory-border);border-radius:var(--radius-sm);cursor:pointer;transition:all 0.2s}
.cons-type:hover,.cons-type.active{border-color:var(--yellow);background:rgba(255,212,0,0.04)}
.cons-dot{width:8px;height:8px;border-radius:50%;background:var(--border);flex-shrink:0;transition:background 0.2s}
.cons-type.active .cons-dot{background:var(--yellow)}
.cons-title{font-size:14px;font-weight:500;color:var(--ivory)}
.cons-sub{font-size:12px;color:var(--ivory-dim);font-weight:300}

/* PDF VIEWER */
.pdf-viewer{background:var(--card-bg);border:1px solid var(--ivory-border);border-radius:var(--radius);overflow:hidden;margin-top:48px}
.pdf-toolbar{background:var(--gray-mid);padding:12px 24px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--ivory-border)}
.pdf-tools{display:flex;gap:8px;align-items:center}
.pdf-tool-btn{background:transparent;border:1px solid var(--ivory-border);color:var(--ivory-dim);padding:6px 14px;font-size:11px;font-family:var(--mono);cursor:pointer;border-radius:var(--radius-pill);transition:all 0.2s}
.pdf-tool-btn:hover{border-color:var(--yellow);color:var(--yellow)}
.pdf-page-area{min-height:400px;background:#1A1A18;display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden}
.pdf-page-mock{width:320px;background:#FAFAFA;border-radius:var(--radius-sm);padding:40px;position:relative;min-height:260px}
.pdf-watermark{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%) rotate(-35deg);font-family:var(--mono);font-size:12px;color:rgba(255,212,0,0.12);white-space:nowrap;pointer-events:none;letter-spacing:0.1em;font-weight:700;text-transform:uppercase}
.pdf-text-line{height:8px;background:#E0E0E0;border-radius:2px;margin-bottom:8px}
.pdf-text-line.short{width:60%}
.pdf-text-line.medium{width:80%}
.pdf-secure-badge{position:absolute;bottom:12px;right:12px;background:rgba(255,212,0,0.9);color:var(--black);font-size:9px;font-family:var(--mono);padding:4px 10px;border-radius:var(--radius-pill);font-weight:700;letter-spacing:0.06em}

.course-thumb:hover .play-hover{opacity:1!important}

/* ANIMATIONS */
@keyframes fadeUp{from{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}

/* ✦ PINTEREST / CUTE TEEN AESTHETIC ✦ */
/* hand-written accent labels */
.hand-note{font-family:var(--hand);font-size:18px;color:var(--yellow);opacity:0.7;letter-spacing:0.02em;line-height:1}
.hand-note-ivory{font-family:var(--hand);font-size:17px;color:var(--ivory);opacity:0.45;letter-spacing:0.01em}

/* sticky-note style pull-quote in testimonials */
.pin-note{position:relative;background:rgba(240,234,214,0.04);border:1px solid var(--ivory-border);border-radius:var(--radius);padding:20px 22px 20px 28px;margin-top:32px}
.pin-note::before{content:'';position:absolute;left:0;top:0;bottom:0;width:4px;background:var(--yellow);border-radius:var(--radius) 0 0 var(--radius);opacity:0.7}
.pin-note-text{font-family:var(--hand);font-size:19px;color:var(--ivory);opacity:0.7;line-height:1.5}

/* decorative section divider */
.deco-divider{display:flex;align-items:center;gap:16px;margin-bottom:40px;opacity:0.35}
.deco-divider-line{flex:1;height:1px;background:linear-gradient(90deg,transparent,var(--ivory),transparent)}
.deco-divider-star{font-size:12px;color:var(--yellow)}

/* cute pill tags on course cards */
.free-pill{display:inline-flex;align-items:center;gap:5px;background:rgba(240,234,214,0.08);border:1px solid var(--ivory-border);color:var(--ivory);font-size:10px;font-family:var(--mono);padding:3px 10px;border-radius:var(--radius-pill);letter-spacing:0.06em}
.free-pill span{width:5px;height:5px;background:var(--yellow);border-radius:50%;display:inline-block}

/* soft glow on active/hover for login cards */
.login-card-glow{box-shadow:0 0 60px rgba(240,234,214,0.03),0 0 120px rgba(255,212,0,0.03)}

/* Pinterest-style "mood board" label dots in hero stats */
.stat-dot{display:inline-block;width:4px;height:4px;background:var(--yellow);border-radius:50%;margin-right:6px;vertical-align:middle;opacity:0.7}

/* quote mark gets a Caveat feel */
.quote-mark{font-family:var(--hand)!important;font-size:56px!important;color:var(--yellow);line-height:0.9;margin-bottom:16px;opacity:0.6}

/* cute hover on nav logo */
.nav-logo:hover em,.nav-logo em{font-style:normal}
.nav-logo:hover span{letter-spacing:0.02em;transition:letter-spacing 0.3s}

/* ✿ PINTEREST CUTE ICON STICKERS ✿ */
.pin-sticker{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:50%;font-size:18px;flex-shrink:0;transition:transform 0.25s}
.pin-sticker:hover{transform:rotate(-8deg) scale(1.15)}
.pin-sticker-sm{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:50%;font-size:14px;flex-shrink:0}

/* pastel pill badges */
.pastel-pill{display:inline-flex;align-items:center;gap:5px;padding:4px 12px;border-radius:var(--radius-pill);font-size:10px;font-family:var(--mono);letter-spacing:0.06em;font-weight:600}
.pastel-pill-pink{background:rgba(255,179,198,0.18);color:var(--pastel-pink);border:1px solid rgba(255,179,198,0.3)}
.pastel-pill-lilac{background:rgba(212,187,255,0.18);color:var(--pastel-lilac);border:1px solid rgba(212,187,255,0.3)}
.pastel-pill-mint{background:rgba(181,234,215,0.18);color:var(--pastel-mint);border:1px solid rgba(181,234,215,0.3)}
.pastel-pill-peach{background:rgba(255,203,164,0.18);color:var(--pastel-peach);border:1px solid rgba(255,203,164,0.3)}

/* floating deco icons */
.deco-float{position:absolute;pointer-events:none;font-size:20px;opacity:0;animation:deco-bob 7s ease-in-out infinite}
@keyframes deco-bob{0%,100%{opacity:0;transform:translateY(0) rotate(0deg)}35%,65%{opacity:0.45;transform:translateY(-10px) rotate(6deg)}}

/* cute feature icon circles */
.feature-icon-circle{width:48px;height:48px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:22px;margin-bottom:20px;transition:transform 0.25s}
.feature-icon-circle:hover{transform:scale(1.1) rotate(-5deg)}
.fic-pink{background:rgba(255,179,198,0.15);border:1px solid rgba(255,179,198,0.25)}
.fic-lilac{background:rgba(212,187,255,0.15);border:1px solid rgba(212,187,255,0.25)}
.fic-mint{background:rgba(181,234,215,0.15);border:1px solid rgba(181,234,215,0.25)}
.fic-peach{background:rgba(255,203,164,0.15);border:1px solid rgba(255,203,164,0.25)}
.fic-sky{background:rgba(181,213,255,0.15);border:1px solid rgba(181,213,255,0.25)}
.fic-yellow{background:rgba(255,212,0,0.12);border:1px solid rgba(255,212,0,0.25)}

/* cute star-rating row */
.star-row{display:flex;gap:2px;margin-bottom:14px}
.star-row span{font-size:13px}

/* section corner deco */
.corner-deco{font-size:22px;opacity:0.35;display:inline-block;margin-left:10px;vertical-align:middle}

/* cute marquee dot colours */
.mdot-pink{color:var(--pastel-pink)!important;opacity:1!important}
.mdot-lilac{color:var(--pastel-lilac)!important;opacity:1!important}
.mdot-mint{color:var(--pastel-mint)!important;opacity:1!important}
.mdot-peach{color:var(--pastel-peach)!important;opacity:1!important}

/* hero tag pastel glow */
.hero-tag{border-color:rgba(255,179,198,0.28)!important;background:rgba(255,179,198,0.05)!important}

/* testimonial card pastel left border accents */
.testimonial-card:nth-child(1){border-left:3px solid rgba(255,179,198,0.4)}
.testimonial-card:nth-child(2){border-left:3px solid rgba(212,187,255,0.4)}
.testimonial-card:nth-child(3){border-left:3px solid rgba(181,234,215,0.4)}

/* cute author avatar pastel colours */
.av-pink{background:rgba(255,179,198,0.18)!important;color:var(--pastel-pink)!important}
.av-lilac{background:rgba(212,187,255,0.18)!important;color:var(--pastel-lilac)!important}
.av-mint{background:rgba(181,234,215,0.18)!important;color:var(--pastel-mint)!important}

/* page views slide in */
.page-view.active{animation:fadeUp 0.35s ease forwards}
.fade-in{animation:fadeUp 0.6s ease forwards}
.fade-in-2{animation:fadeUp 0.6s ease 0.1s forwards;opacity:0}
.fade-in-3{animation:fadeUp 0.6s ease 0.2s forwards;opacity:0}
.fade-in-4{animation:fadeUp 0.6s ease 0.3s forwards;opacity:0}


/* ✿ Pastel page glow blobs for all pages ✿ */
#page-courses section, #page-freevideos section, #page-consult section {
  position:relative;overflow:hidden;
}
#page-courses section::before{content:'';position:absolute;top:-80px;right:-120px;width:400px;height:400px;background:radial-gradient(circle,rgba(212,187,255,0.05) 0%,transparent 68%);pointer-events:none;border-radius:50%;z-index:0}
#page-courses section::after{content:'';position:absolute;bottom:-60px;left:-80px;width:320px;height:320px;background:radial-gradient(circle,rgba(181,234,215,0.05) 0%,transparent 68%);pointer-events:none;border-radius:50%;z-index:0}
#page-freevideos section::before{content:'';position:absolute;top:-60px;right:-80px;width:360px;height:360px;background:radial-gradient(circle,rgba(255,203,164,0.05) 0%,transparent 68%);pointer-events:none;border-radius:50%;z-index:0}
#page-consult section::before{content:'';position:absolute;top:-60px;left:-80px;width:360px;height:360px;background:radial-gradient(circle,rgba(255,179,198,0.06) 0%,transparent 68%);pointer-events:none;border-radius:50%;z-index:0}

/* ✿ Cute pastel accent on booking form wrap ✿ */
.booking-form-wrap{border-top:3px solid rgba(255,179,198,0.35)!important}
.consultation-types .cons-type:nth-child(1):hover,.consultation-types .cons-type:nth-child(1).active{border-color:rgba(255,179,198,0.5)!important;background:rgba(255,179,198,0.05)!important}
.consultation-types .cons-type:nth-child(2):hover,.consultation-types .cons-type:nth-child(2).active{border-color:rgba(212,187,255,0.5)!important;background:rgba(212,187,255,0.05)!important}
.consultation-types .cons-type:nth-child(3):hover,.consultation-types .cons-type:nth-child(3).active{border-color:rgba(181,234,215,0.5)!important;background:rgba(181,234,215,0.05)!important}
.consultation-types .cons-type:nth-child(4):hover,.consultation-types .cons-type:nth-child(4).active{border-color:rgba(255,203,164,0.5)!important;background:rgba(255,203,164,0.05)!important}

/* ✿ Pastel tint on admin analytics cards ✿ */
.analytics-grid .ana-card:nth-child(2){border-color:rgba(212,187,255,0.2);background:rgba(212,187,255,0.03)}
.analytics-grid .ana-card:nth-child(2) .ana-val{color:var(--pastel-lilac)}
.analytics-grid .ana-card:nth-child(3){border-color:rgba(181,234,215,0.2);background:rgba(181,234,215,0.03)}
.analytics-grid .ana-card:nth-child(3) .ana-val{color:var(--pastel-mint)}
.analytics-grid .ana-card:nth-child(4){border-color:rgba(255,203,164,0.2);background:rgba(255,203,164,0.03)}
.analytics-grid .ana-card:nth-child(4) .ana-val{color:var(--pastel-peach)}

/* ✿ Pastel tint on DB stat cards ✿ */
.db-stats .db-stat:nth-child(2){border-color:rgba(255,179,198,0.2)}
.db-stats .db-stat:nth-child(2) .db-stat-val{color:var(--pastel-pink)}
.db-stats .db-stat:nth-child(3){border-color:rgba(212,187,255,0.2)}
.db-stats .db-stat:nth-child(3) .db-stat-val{color:var(--pastel-lilac)}
.db-stats .db-stat:nth-child(4){border-color:rgba(181,234,215,0.2)}
.db-stats .db-stat:nth-child(4) .db-stat-val{color:var(--pastel-mint)}

/* ✿ Cute login card pink top accent ✿ */
.login-card-glow{border-top:3px solid rgba(255,179,198,0.4)!important}

/* ✿ Pastel course card subject glow on hover ✿ */
.course-card:hover .course-subject{opacity:1}

@media(max-width:768px){
  nav{padding:0 20px}
  .nav-links{display:none}
  section{padding:64px 20px}
  .hero h1{font-size:42px}
  .features-grid{grid-template-columns:1fr}
  .courses-grid{grid-template-columns:1fr}
  .testimonials-grid{grid-template-columns:1fr}
  .footer-grid{grid-template-columns:1fr}
  .db-body{grid-template-columns:1fr}
  .db-sidebar{display:none}
  .admin-wrap{grid-template-columns:1fr}
  .admin-side{display:none}
  .analytics-grid{grid-template-columns:1fr 1fr}
  .booking-grid{grid-template-columns:1fr}
  .page-tabs{padding:0 20px;overflow-x:auto}
  .courses-header{flex-direction:column;align-items:flex-start;gap:16px}
}

/* Hide public navigation buttons after login */
.dashboard-page .nav-cta {
  display: none;
}

/* Dashboard layout after removing public navigation tabs */

#page-admin,
#page-student {
  padding-top: 64px;
}

.admin-wrap {
  min-height: calc(100vh - 64px);
}

.admin-side {
  top: 64px;
  height: calc(100vh - 64px);
}

/* Dashboard position after removing second navigation row */

.admin-wrap {
  min-height: calc(100vh - 64px);
}

.admin-side {
  top: 64px;
  height: calc(100vh - 64px);
}

#student-dashboard .db-body {
  min-height: calc(100vh - 64px) !important;
}

/* =========================================================
   FLOATING TRANSPARENT SCROLLBARS — GLOBAL
   ========================================================= */

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(240, 234, 214, 0.42) transparent;
}

/* Chrome, Edge and Safari */
*::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}

*::-webkit-scrollbar-track {
  background: transparent;
}

*::-webkit-scrollbar-track-piece {
  background: transparent;
}

*::-webkit-scrollbar-thumb {
  background: rgba(240, 234, 214, 0.35);
  border: 2px solid transparent;
  background-clip: padding-box;
  border-radius: 999px;
}

*::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 212, 0, 0.72);
  border: 2px solid transparent;
  background-clip: padding-box;
}

*::-webkit-scrollbar-corner {
  background: transparent;
}

*::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}

/* Ensure dashboard scrollable areas stay transparent */
html,
body,
.admin-side,
.admin-main,
.db-sidebar,
.db-content {
  scrollbar-color: rgba(240, 234, 214, 0.42) transparent;
}

/* Admin dashboard internal pages */
.admin-panel {
  display: none;
}

.admin-panel.active {
  display: block;
}

.admin-page-card {
  background: var(--card-bg);
  border: 1px solid var(--ivory-border);
  border-radius: var(--radius-sm);
  padding: 28px;
  margin-bottom: 24px;
}

.admin-page-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-file-input {
  width: 100%;
  background: var(--black);
  border: 1px dashed rgba(240, 234, 214, 0.3);
  color: var(--ivory-dim);
  padding: 18px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

/* ==========================================
   ADMIN EDIT AND VIEW POPUP
========================================== */

.admin-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.78);
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.admin-modal.open {
  display: flex;
}

.admin-modal-box {
  width: 100%;
  max-width: 620px;
  max-height: 88vh;
  overflow-y: auto;
  background: var(--card-bg);
  border: 1px solid var(--ivory-border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.55);
}

.admin-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.admin-modal-title {
  font-family: var(--serif);
  color: var(--ivory);
  font-size: 25px;
}

.admin-modal-close {
  background: transparent;
  border: 1px solid var(--ivory-border);
  color: var(--ivory);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
}

.admin-modal-close:hover {
  border-color: var(--yellow);
  color: var(--yellow);
}

.admin-modal-row {
  padding: 14px 0;
  border-bottom: 1px solid var(--ivory-border);
}

.admin-modal-row:last-child {
  border-bottom: none;
}

.admin-modal-key {
  color: var(--ivory-dim);
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 5px;
}

.admin-modal-value {
  color: var(--ivory);
  font-size: 14px;
}

.admin-edit-field {
  margin-bottom: 16px;
}

/* Real analytics chart */
.analytics-chart-wrap {
  width: 100%;
  height: 270px;
  background: var(--black);
  border: 1px solid var(--ivory-border);
  border-radius: var(--radius-sm);
  padding: 18px;
  position: relative;
}

/* Interactive dashboard and analytics charts */
.analytics-chart-wrap {
  width: 100%;
  height: 270px;
  background: var(--black);
  border: 1px solid var(--ivory-border);
  border-radius: var(--radius-sm);
  padding: 18px;
  position: relative;
}

/* ==========================================
   DASHBOARD CLICKABLE ITEMS
========================================== */

.dashboard-link-card {
  cursor: pointer;
  transition: transform 0.2s ease,
              border-color 0.2s ease,
              background 0.2s ease;
}

.dashboard-link-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 212, 0, 0.55) !important;
  background: rgba(255, 212, 0, 0.05) !important;
}


/* ==========================================
   RECENT ACTIVITY SCROLL
========================================== */

.dashboard-recent-list {
  height: 270px;
  min-height: 270px;
  max-height: 270px;

  overflow-y: auto;
  overflow-x: hidden;

  border: 1px solid var(--ivory-border);
  border-radius: var(--radius-sm);

  scrollbar-width: thin;
  scrollbar-color: rgba(240, 234, 214, 0.36) transparent;
}

.dashboard-recent-list::-webkit-scrollbar {
  width: 7px;
}

.dashboard-recent-list::-webkit-scrollbar-track {
  background: transparent;
}

.dashboard-recent-list::-webkit-scrollbar-thumb {
  background: rgba(240, 234, 214, 0.34);
  border-radius: 99px;
}

.dashboard-recent-list::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 212, 0, 0.70);
}



/* ======================================================
   DASHBOARD SUMMARY CARD POINTER ANIMATION
====================================================== */

#admin-panel-dashboard .ana-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;

  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    background-color 0.25s ease;
}

/* Mouse-follow yellow glow */
#admin-panel-dashboard .ana-card:hover {
  transform: translateY(-8px) scale(1.025);

  border-color: rgba(255, 212, 0, 0.9) !important;

  background-color: rgba(255, 212, 0, 0.045) !important;

  background-image: radial-gradient(
    circle 150px at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(255, 212, 0, 0.22),
    rgba(255, 212, 0, 0.07) 36%,
    transparent 72%
  );

  box-shadow:
    0 16px 36px rgba(0, 0, 0, 0.5),
    0 0 22px rgba(255, 212, 0, 0.2);
}

/* Arrow showing that card is clickable */
#admin-panel-dashboard .ana-card::after {
  content: "→";

  position: absolute;
  right: 18px;
  bottom: 12px;

  color: var(--yellow);
  font-size: 20px;

  opacity: 0;
  transform: translateX(-8px);

  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

#admin-panel-dashboard .ana-card:hover::after {
  opacity: 1;
  transform: translateX(0);
}

/* Animate number */
#admin-panel-dashboard .ana-card .ana-val {
  position: relative;
  z-index: 2;

  transition:
    transform 0.25s ease,
    filter 0.25s ease;
}

#admin-panel-dashboard .ana-card:hover .ana-val {
  transform: scale(1.08);
  transform-origin: left center;
  filter: brightness(1.2);
}

/* Keep text above glow */
#admin-panel-dashboard .ana-card .ana-label,
#admin-panel-dashboard .ana-card .ana-delta {
  position: relative;
  z-index: 2;
}

/* Click feedback */
#admin-panel-dashboard .ana-card:active {
  transform: translateY(-3px) scale(0.98);
}

.dashboard-recent-item {
  min-height: 88px;
  padding: 16px 22px;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition:
    background 0.2s ease,
    padding-left 0.2s ease;
}

.dashboard-recent-item:hover {
  background: rgba(255, 212, 0, 0.06);
  padding-left: 28px;
}

/* ======================================================
   REMOVE EXTRA SPACE ABOVE ADMIN INTERNAL PAGES
====================================================== */

.admin-main {
  padding: 24px 48px;
}

.admin-panel {
  padding: 0;
}

/* ======================================================
   STUDENT DASHBOARD INTERNAL PAGES
====================================================== */

.student-panel {
  display: none;
}

.student-panel.active {
  display: block;
}

.student-page-card {
  background: var(--card-bg);
  border: 1px solid var(--ivory-border);
  border-radius: var(--radius-sm);
  padding: 24px;
  margin-bottom: 24px;
}

.student-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.student-card {
  background: var(--card-bg);
  border: 1px solid var(--ivory-border);
  border-radius: var(--radius-sm);
  padding: 22px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.student-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 212, 0, 0.65);
  background: rgba(255, 212, 0, 0.04);
}

.student-watch-row,
.student-note-row {
  cursor: pointer;
  transition: background 0.2s ease, padding-left 0.2s ease;
}

.student-watch-row:hover,
.student-note-row:hover {
  background: rgba(255, 212, 0, 0.05);
  padding-left: 12px;
}

.student-scroll-list {
  max-height: 280px;
  overflow-y: auto;
  overflow-x: hidden;
  border: 1px solid var(--ivory-border);
  border-radius: var(--radius-sm);
}

@media (max-width: 900px) {
  .student-card-grid {
    grid-template-columns: 1fr;
  }
}

/* ======================================================
   STUDENT INTERNAL DASHBOARD PAGES
====================================================== */

#student-dashboard .student-panel {
  display: none;
  padding: 0;
}

#student-dashboard .student-panel.active {
  display: block;
}

.student-page-card {
  background: var(--card-bg);
  border: 1px solid var(--ivory-border);
  border-radius: var(--radius-sm);
  padding: 28px;
}

.student-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.student-card {
  background: var(--card-bg);
  border: 1px solid var(--ivory-border);
  border-radius: var(--radius-sm);
  padding: 22px;
  cursor: pointer;

  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.student-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 212, 0, 0.68);
  background: rgba(255, 212, 0, 0.045);
}

.student-scroll-list {
  max-height: 360px;
  overflow-y: auto;
  overflow-x: hidden;

  border: 1px solid var(--ivory-border);
  border-radius: var(--radius-sm);
}

.student-note-row {
  padding: 18px 22px;
  border-bottom: 1px solid var(--ivory-border);
  cursor: pointer;

  transition:
    background 0.2s ease,
    padding-left 0.2s ease;
}

.student-note-row:last-child {
  border-bottom: none;
}

.student-note-row:hover {
  background: rgba(255, 212, 0, 0.055);
  padding-left: 28px;
}

.student-click-row {
  cursor: pointer;

  transition:
    background 0.2s ease,
    padding-left 0.2s ease;
}

.student-click-row:hover {
  background: rgba(255, 212, 0, 0.055);
  padding-left: 12px;
}

@media (max-width: 900px) {
  .student-card-grid {
    grid-template-columns: 1fr;
  }
}

/* Student clickable rows */

#student-dashboard .db-course-row,
.student-dashboard-notification {
  cursor: pointer;

  transition:
    background 0.2s ease,
    padding-left 0.2s ease;
}

#student-dashboard .db-course-row:hover,
.student-dashboard-notification:hover {
  background: rgba(255, 212, 0, 0.055);
  padding-left: 12px;
}



/* Medium screens */
@media (max-width: 1200px) {
  .library-with-ads {
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: 20px;
  }

  #page-courses .courses-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* Mobile and tablet screens */
@media (max-width: 900px) {
  .library-with-ads {
    grid-template-columns: 1fr;
  }

  .teacher-ad-sidebar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    position: static;
  }

  .teacher-ad-heading,
  .teacher-ad-footer {
    grid-column: 1 / -1;
  }
}


@media (max-width: 600px) {
  .teacher-ad-sidebar {
    display: flex;
  }

  #page-courses .courses-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   COURSE LIBRARY — RIGHT-SIDE BANNER LAYOUT
   ========================================================= */

.course-library-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 28px;
  align-items: start;
  width: 100%;
}

.course-library-main {
  min-width: 0;
}

/* Right-side advertisement column */
.teacher-banner-sidebar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: sticky;
  top: 92px;
  width: 270px;
}

.teacher-banner-sidebar-head {
  padding: 2px 2px 6px;
}

.teacher-banner-sidebar-label {
  color: var(--yellow);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.teacher-banner-sidebar-note {
  color: var(--ivory-dim);
  font-size: 11px;
  font-weight: 300;
  line-height: 1.55;
  margin-top: 5px;
}

.teacher-banner-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.teacher-banner-card {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid var(--ivory-border);
  border-radius: 15px;
  background: var(--card-bg);
  text-decoration: none;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.teacher-banner-card:hover {
  border-color: rgba(255, 212, 0, 0.55);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.44);
  transform: translateY(-4px);
}

.teacher-banner-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.teacher-banner-card:hover .teacher-banner-image {
  transform: scale(1.045);
}

.teacher-banner-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.04) 30%,
      rgba(0, 0, 0, 0.84) 100%
    );
}

.teacher-banner-chip {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 9px;
  border-radius: var(--radius-pill);
  background: rgba(10, 10, 10, 0.72);
  border: 1px solid rgba(255, 212, 0, 0.38);
  color: var(--yellow);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.teacher-banner-copy {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
}

.teacher-banner-title {
  display: block;
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 7px;
}

.teacher-banner-link {
  color: var(--yellow);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Tablet */
@media (max-width: 1050px) {
  .course-library-layout {
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 20px;
  }

  .teacher-banner-sidebar {
    width: 220px;
  }
}

/* Mobile */
@media (max-width: 820px) {
  .course-library-layout {
    display: block;
  }

  .teacher-banner-sidebar {
    position: static;
    width: 100%;
    margin-top: 28px;
  }

  .teacher-banner-list {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 210px;
    overflow-x: auto;
    padding-bottom: 8px;
  }
}

/* =========================================================
   COURSE LIBRARY — RIGHT-SIDE BANNERS
   ========================================================= */

.course-library-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 28px;
  align-items: start;
  width: 100%;
}

/*
  Remove the empty right-side space
  when there are no advertisements.
*/
.course-library-layout.no-banners {
  grid-template-columns: minmax(0, 1fr);
}

.course-library-main {
  min-width: 0;
}

.teacher-banner-sidebar {
  position: sticky;
  top: 92px;
  width: 270px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.teacher-banner-sidebar-head {
  padding: 2px 2px 6px;
}

.teacher-banner-sidebar-label {
  color: var(--yellow);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.teacher-banner-sidebar-note {
  color: var(--ivory-dim);
  font-size: 11px;
  font-weight: 300;
  line-height: 1.55;
  margin-top: 5px;
}

.teacher-banner-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.teacher-banner-card {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid var(--ivory-border);
  border-radius: 15px;
  background: var(--card-bg);
  text-decoration: none;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.teacher-banner-card:hover {
  border-color: rgba(255, 212, 0, 0.55);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.44);
  transform: translateY(-4px);
}

.teacher-banner-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.teacher-banner-card:hover
.teacher-banner-image {
  transform: scale(1.045);
}

.teacher-banner-chip {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 9px;
  border-radius: var(--radius-pill);
  background: rgba(10, 10, 10, 0.74);
  border: 1px solid rgba(255, 212, 0, 0.38);
  color: var(--yellow);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

/* Tablet */
@media (max-width: 1050px) {
  .course-library-layout {
    grid-template-columns:
      minmax(0, 1fr) 220px;
    gap: 20px;
  }

  .teacher-banner-sidebar {
    width: 220px;
  }
}

/* Mobile */
@media (max-width: 820px) {
  .course-library-layout {
    display: block;
  }

  .teacher-banner-sidebar {
    position: static;
    width: 100%;
    margin-top: 28px;
  }

  .teacher-banner-list {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 210px;
    overflow-x: auto;
    padding-bottom: 8px;
  }
}

/* =========================================================
   FINAL RIGHT-SIDE IMAGE BANNER FIX
   ========================================================= */

.course-library-layout {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 270px !important;
  gap: 28px !important;
  align-items: start !important;
  width: 100% !important;
}

/* Remove empty banner space when no ads exist */
.course-library-layout.no-banners {
  grid-template-columns: minmax(0, 1fr) !important;
}

.course-library-main {
  grid-column: 1 !important;
  min-width: 0 !important;
}

.teacher-banner-sidebar {
  grid-column: 2 !important;
  width: 270px !important;
  position: sticky !important;
  top: 92px !important;
  flex-direction: column !important;
  gap: 14px !important;
}

.teacher-banner-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
}

.teacher-banner-card {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  aspect-ratio: 4 / 5 !important;
  overflow: hidden !important;
  border: 1px solid var(--ivory-border) !important;
  border-radius: 15px !important;
  background: var(--card-bg) !important;
  text-decoration: none !important;
}

.teacher-banner-image {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.teacher-banner-chip {
  position: absolute !important;
  top: 12px !important;
  left: 12px !important;
  padding: 4px 9px !important;
  border-radius: 99px !important;
  background: rgba(10, 10, 10, 0.76) !important;
  border: 1px solid rgba(255, 212, 0, 0.4) !important;
  color: var(--yellow) !important;
  font-family: var(--mono) !important;
  font-size: 8px !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
}

@media (max-width: 820px) {
  .course-library-layout {
    display: block !important;
  }

  .teacher-banner-sidebar {
    position: static !important;
    width: 100% !important;
    margin-top: 28px !important;
  }

  .teacher-banner-list {
    display: grid !important;
    grid-auto-flow: column !important;
    grid-auto-columns: 210px !important;
    overflow-x: auto !important;
    padding-bottom: 8px !important;
  }
}

/* =========================================================
   ADMIN — SEPARATE BANNER ADVERTISEMENTS PAGE
   ========================================================= */

.banner-page-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

.banner-page-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border: 1px solid rgba(181, 234, 215, 0.28);
  border-radius: var(--radius-pill);
  background: rgba(181, 234, 215, 0.06);
  color: var(--pastel-mint);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.banner-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pastel-mint);
  box-shadow: 0 0 12px rgba(181, 234, 215, 0.65);
}

.banner-page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 22px;
  align-items: start;
}

.banner-upload-card,
.banner-info-card,
.banner-library-section {
  border: 1px solid var(--ivory-border);
  border-radius: var(--radius);
  background: var(--card-bg);
}

.banner-upload-card {
  padding: 28px;
}

.banner-card-heading,
.banner-library-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.banner-card-heading {
  margin-bottom: 24px;
}

.banner-card-title {
  color: var(--ivory);
  font-family: var(--serif);
  font-size: 23px;
  line-height: 1.1;
}

.banner-card-note {
  margin-top: 7px;
  color: var(--ivory-dim);
  font-size: 12px;
  font-weight: 300;
  line-height: 1.6;
}

.banner-upload-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 212, 0, 0.25);
  border-radius: 50%;
  background: rgba(255, 212, 0, 0.07);
  font-size: 19px;
}

.banner-form-spacing {
  margin-bottom: 18px;
}

.banner-input-note,
.banner-image-guide {
  margin-top: 8px;
  color: var(--ivory-dim);
  font-size: 11px;
  font-weight: 300;
  line-height: 1.55;
}

.banner-image-upload-box {
  padding: 20px;
  border: 1px dashed rgba(255, 212, 0, 0.34);
  border-radius: var(--radius-sm);
  background: rgba(255, 212, 0, 0.025);
}

.banner-image-upload-box input {
  display: block;
  width: 100%;
  margin-top: 12px;
  color: var(--ivory-dim);
  font-size: 12px;
}

.banner-image-guide strong {
  color: var(--yellow);
  font-weight: 500;
}

.banner-publish-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.banner-info-card {
  padding: 24px;
  background:
    linear-gradient(
      145deg,
      rgba(212, 187, 255, 0.07),
      rgba(17, 17, 17, 1) 60%
    );
}

.banner-info-icon {
  color: var(--yellow);
  font-size: 22px;
  margin-bottom: 12px;
}

.banner-info-title {
  color: var(--ivory);
  font-family: var(--serif);
  font-size: 21px;
}

.banner-info-card p {
  margin: 9px 0 18px;
  color: var(--ivory-dim);
  font-size: 12px;
  font-weight: 300;
  line-height: 1.7;
}

.banner-info-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid var(--ivory-border);
  font-size: 11px;
}

.banner-info-row span {
  color: var(--ivory-dim);
}

.banner-info-row strong {
  color: var(--ivory);
  font-weight: 500;
  text-align: right;
}

.banner-library-section {
  margin-top: 22px;
  padding: 26px;
}

.banner-library-head {
  margin-bottom: 20px;
}

.banner-admin-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.banner-admin-item {
  overflow: hidden;
  border: 1px solid var(--ivory-border);
  border-radius: var(--radius-sm);
  background: var(--black);
  transition:
    transform 0.22s ease,
    border-color 0.22s ease;
}

.banner-admin-item:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 212, 0, 0.48);
}

.banner-admin-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.banner-admin-item-body {
  padding: 14px;
}

.banner-admin-item-title {
  margin-bottom: 11px;
  color: var(--ivory);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
}

.banner-admin-item-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

@media (max-width: 1050px) {
  .banner-page-layout {
    grid-template-columns: 1fr;
  }

  .banner-admin-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .banner-page-heading {
    flex-direction: column;
  }

  .banner-admin-list {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   ADMIN PANEL VISIBILITY — FINAL SAFETY RULE
   ========================================================= */

.admin-main > .admin-panel {
  display: none !important;
}

.admin-main > .admin-panel.active {
  display: block !important;
}


/* Hide public buttons inside logged-in dashboards */
.dashboard-page .nav-cta {
  display: none;
}

/* Hide the public preview tabs inside logged-in dashboards */
.dashboard-page .page-tabs {
  display: none;
}

/* Adjust dashboard height after removing the tab bar */
.dashboard-page .admin-wrap,
.dashboard-page .db-body {
  min-height: calc(100vh - 64px);
}

.dashboard-page .admin-side {
  top: 64px;
  height: calc(100vh - 64px);
}

/* ======================================================
   NOTES PAGE
====================================================== */

.notes-page {
  padding-top: 110px;
  min-height: 100vh;
}

.notes-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 36px;
  margin-bottom: 36px;
}

.notes-filter-btn {
  background: transparent;
  border: 1px solid var(--ivory-border);
  color: var(--ivory-dim);
  padding: 8px 16px;
  border-radius: 99px;
  font-size: 11px;
  font-family: var(--mono);
  cursor: pointer;
  transition: all 0.2s ease;
}

.notes-filter-btn:hover,
.notes-filter-btn.active {
  background: var(--yellow);
  color: var(--black);
  border-color: var(--yellow);
}

.notes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.note-card {
  background: var(--card-bg);
  border: 1px solid var(--ivory-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.25s ease;
}

.note-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 212, 0, 0.4);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.note-image {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
}

.note-body {
  padding: 20px;
}

.note-subject {
  color: var(--yellow);
  font-size: 10px;
  font-family: var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.note-title {
  color: var(--ivory);
  font-family: var(--serif);
  font-size: 21px;
  margin-bottom: 10px;
}

.note-description {
  color: var(--ivory-dim);
  font-size: 12px;
  line-height: 1.7;
  margin-bottom: 18px;
}

.note-view-btn {
  background: var(--yellow);
  color: var(--black);
  border: none;
  padding: 9px 16px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.note-view-btn:hover {
  background: var(--yellow-dim);
}

/* NOTE POPUP */

.note-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 4000;
  background: rgba(0, 0, 0, 0.88);
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.note-modal-card {
  position: relative;
  width: min(900px, 95vw);
  max-height: 90vh;
  overflow: auto;
  background: var(--card-bg);
  border: 1px solid var(--ivory-border);
  border-radius: var(--radius);
  padding: 24px;
}

.note-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--ivory-border);
  background: var(--black);
  color: var(--ivory);
  cursor: pointer;
}

.note-modal-title {
  font-family: var(--serif);
  font-size: 25px;
  color: var(--ivory);
  margin-bottom: 18px;
}

.note-modal-image {
  width: 100%;
  max-height: 75vh;
  object-fit: contain;
  background: #171717;
  border-radius: var(--radius-sm);
}

@media (max-width: 900px) {
  .notes-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .notes-grid {
    grid-template-columns: 1fr;
  }
}

/* ======================================================
   MAIN PUBLIC NAVIGATION FIX
====================================================== */

.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;

  height: 82px;
  padding: 0 48px;

  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;

  border-bottom: 1px solid var(--ivory-border);
  background: rgba(10, 10, 10, 0.93);
  backdrop-filter: blur(16px);
}

.main-nav .nav-logo {
  justify-self: start;
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--ivory);
  cursor: pointer;
}

.main-nav .nav-logo span {
  color: var(--yellow);
}

.main-nav .nav-links {
  justify-self: center;

  display: flex;
  align-items: center;
  gap: 34px;

  margin: 0;
  padding: 0;
  list-style: none;
}

.main-nav .nav-links a {
  color: var(--ivory-dim);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.main-nav .nav-links a:hover {
  color: var(--yellow);
}

.main-nav .nav-cta {
  justify-self: end;

  display: flex;
  align-items: center;
  gap: 12px;
}

@media (max-width: 768px) {
  .main-nav {
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
  }

  .main-nav .nav-links {
    display: none;
  }
}

/* ======================================================
   STUDENT STUDY NOTES
====================================================== */

.student-notes-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;

  margin-bottom: 24px;
  padding: 18px 20px;

  border: 1px solid var(--ivory-border);
  border-radius: var(--radius);
  background: var(--card-bg);
}

.student-notes-heading {
  color: var(--ivory);
  font-family: var(--serif);
  font-size: 22px;
}

.student-notes-subheading {
  margin-top: 3px;
  color: var(--ivory-dim);
  font-size: 12px;
}

.student-notes-filter {
  width: 190px;
}

.student-notes-grid {
  display: grid;
  grid-template-columns:
    repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}

.student-note-card {
  overflow: hidden;

  border: 1px solid var(--ivory-border);
  border-radius: var(--radius);

  background: var(--card-bg);

  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}

.student-note-card:hover {
  transform: translateY(-5px);

  border-color: rgba(255, 212, 0, 0.42);

  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.34);
}

.student-note-image-wrap {
  position: relative;
  height: 165px;
  overflow: hidden;
  background: #171717;
}

.student-note-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;

  transition: transform 0.25s ease;
}

.student-note-card:hover .student-note-image {
  transform: scale(1.05);
}

.student-note-badge {
  position: absolute;
  top: 12px;
  left: 12px;

  padding: 4px 10px;

  color: var(--yellow);
  background: rgba(10, 10, 10, 0.88);

  border: 1px solid rgba(255, 212, 0, 0.35);
  border-radius: var(--radius-pill);

  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.student-note-body {
  padding: 18px;
}

.student-note-mini-label {
  margin-bottom: 8px;

  color: var(--ivory-dim);

  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.student-note-title {
  margin-bottom: 9px;

  color: var(--ivory);

  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.15;
}

.student-note-description {
  min-height: 60px;
  margin-bottom: 16px;

  color: var(--ivory-dim);

  font-size: 12px;
  line-height: 1.7;
}

.student-note-view-btn {
  padding: 9px 16px;
  font-size: 12px;
}


/* Empty state */

.student-notes-empty {
  grid-column: 1 / -1;

  padding: 48px 24px;

  border: 1px dashed var(--ivory-border);
  border-radius: var(--radius);

  background: var(--card-bg);

  text-align: center;
}

.student-notes-empty-icon {
  margin-bottom: 12px;
  font-size: 30px;
}

.student-notes-empty-title {
  color: var(--ivory);
  font-family: var(--serif);
  font-size: 20px;
}

.student-notes-empty-text {
  margin-top: 5px;
  color: var(--ivory-dim);
  font-size: 12px;
}


/* Full note preview */

.student-note-modal {
  display: none;

  position: fixed;
  inset: 0;
  z-index: 5000;

  align-items: center;
  justify-content: center;

  padding: 24px;

  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(12px);
}

.student-note-modal.open {
  display: flex;
}

.student-note-modal-card {
  position: relative;

  width: min(920px, 96vw);
  max-height: 92vh;
  overflow: auto;

  padding: 24px;

  border: 1px solid var(--ivory-border);
  border-radius: var(--radius);

  background: var(--card-bg);
}

.student-note-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;

  width: 34px;
  height: 34px;

  color: var(--ivory);
  background: var(--black);

  border: 1px solid var(--ivory-border);
  border-radius: 50%;

  cursor: pointer;
  font-size: 20px;
}

.student-note-modal-title {
  margin-bottom: 18px;

  color: var(--ivory);

  font-family: var(--serif);
  font-size: 26px;
}

.student-note-modal-image {
  display: block;

  width: 100%;
  max-height: 72vh;

  object-fit: contain;

  border-radius: var(--radius-sm);
  background: #171717;
}

@media (max-width: 640px) {
  .student-notes-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .student-notes-filter {
    width: 100%;
  }
}

/* ======================================================
   STUDENT STUDY NOTES PAGE
====================================================== */

.student-notes-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;

  padding: 18px 20px;
  margin-bottom: 22px;

  background: var(--card-bg);
  border: 1px solid var(--ivory-border);
  border-radius: var(--radius);
}

.student-notes-heading {
  color: var(--ivory);
  font-family: var(--serif);
  font-size: 22px;
}

.student-notes-subheading {
  color: var(--ivory-dim);
  font-size: 12px;
  margin-top: 3px;
}

.student-notes-filter {
  width: 190px;
}

.student-notes-grid {
  display: grid;
  grid-template-columns:
    repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}

.student-note-card {
  overflow: hidden;

  background: var(--card-bg);
  border: 1px solid var(--ivory-border);
  border-radius: var(--radius);

  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}

.student-note-card:hover {
  transform: translateY(-5px);

  border-color: rgba(255, 212, 0, 0.42);

  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.34);
}

.student-note-image-wrap {
  position: relative;
  height: 170px;
  overflow: hidden;
  background: #171717;
}

.student-note-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.student-note-badge {
  position: absolute;
  top: 12px;
  left: 12px;

  padding: 4px 10px;

  color: var(--yellow);
  background: rgba(10, 10, 10, 0.88);

  border: 1px solid rgba(255, 212, 0, 0.35);
  border-radius: var(--radius-pill);

  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.student-note-body {
  padding: 18px;
}

.student-note-mini-label {
  margin-bottom: 8px;

  color: var(--ivory-dim);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.student-note-title {
  margin-bottom: 9px;

  color: var(--ivory);
  font-family: var(--serif);
  font-size: 20px;
}

.student-note-description {
  min-height: 60px;
  margin-bottom: 16px;

  color: var(--ivory-dim);
  font-size: 12px;
  line-height: 1.7;
}

.student-note-open {
  padding: 9px 16px;
  font-size: 12px;
}

.student-notes-empty {
  grid-column: 1 / -1;

  padding: 48px 24px;

  text-align: center;

  background: var(--card-bg);
  border: 1px dashed var(--ivory-border);
  border-radius: var(--radius);
}

.student-notes-empty-icon {
  font-size: 30px;
  margin-bottom: 10px;
}

.student-notes-empty-title {
  color: var(--ivory);
  font-family: var(--serif);
  font-size: 20px;
}

.student-notes-empty-text {
  color: var(--ivory-dim);
  font-size: 12px;
  margin-top: 5px;
}


/* Full note popup */

.student-note-modal {
  display: none;

  position: fixed;
  inset: 0;
  z-index: 5000;

  align-items: center;
  justify-content: center;

  padding: 24px;

  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(12px);
}

.student-note-modal.open {
  display: flex;
}

.student-note-modal-card {
  position: relative;

  width: min(920px, 96vw);
  max-height: 92vh;
  overflow: auto;

  padding: 24px;

  background: var(--card-bg);
  border: 1px solid var(--ivory-border);
  border-radius: var(--radius);
}

.student-note-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;

  width: 34px;
  height: 34px;

  color: var(--ivory);
  background: var(--black);

  border: 1px solid var(--ivory-border);
  border-radius: 50%;

  cursor: pointer;
  font-size: 20px;
}

.student-note-modal-title {
  margin-bottom: 18px;

  color: var(--ivory);
  font-family: var(--serif);
  font-size: 26px;
}

.student-note-modal-image {
  display: block;

  width: 100%;
  max-height: 72vh;

  object-fit: contain;

  background: #171717;
  border-radius: var(--radius-sm);
}

@media (max-width: 640px) {
  .student-notes-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .student-notes-filter {
    width: 100%;
  }
}

/* ======================================================
   CLEAN PASSWORD EYE ICON
====================================================== */

.password-field-wrap {
  position: relative;
  width: 100%;
  display: block;
}

.password-field-wrap .form-input {
  width: 100% !important;
  display: block;
  padding-right: 54px !important;
}


/* Eye button inside field */

.password-toggle-btn {
  position: absolute;
  top: 50%;
  right: 10px;

  width: 34px;
  height: 34px;

  display: flex;
  align-items: center;
  justify-content: center;

  transform: translateY(-50%);

  padding: 0;

  border: none;
  border-radius: 50%;

  background: transparent;
  color: var(--ivory-dim);

  cursor: pointer;

  transition:
    color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.password-toggle-btn:hover {
  color: var(--yellow);

  background:
    rgba(255, 212, 0, 0.1);

  transform:
    translateY(-50%)
    scale(1.08);

  box-shadow:
    0 0 0 4px
    rgba(255, 212, 0, 0.05);
}

.password-toggle-btn.is-visible {
  color: var(--pastel-lilac);

  background:
    rgba(212, 187, 255, 0.12);
}


/* SVG icon */

.password-toggle-icon {
  width: 19px;
  height: 19px;

  display: block;

  fill: none;
  stroke: currentColor;

  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}


/* Authentication page helper text */

.auth-switch-text {
  margin-top: 18px;

  color: var(--ivory-dim);

  font-size: 12px;
  line-height: 1.7;
  text-align: center;
}

.auth-switch-text a {
  color: var(--yellow);
  text-decoration: none;
}

.auth-switch-text a:hover {
  text-decoration: underline;
}

/* ======================================================
   STUDENT PDF LIBRARY
====================================================== */

.student-pdf-library-grid {
  display: grid;

  grid-template-columns:
    repeat(auto-fit, minmax(230px, 1fr));

  gap: 18px;
}

.student-pdf-card {
  padding: 22px;

  background: var(--card-bg);

  border:
    1px solid
    var(--ivory-border);

  border-radius:
    var(--radius);

  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}

.student-pdf-card:hover {
  transform:
    translateY(-4px);

  border-color:
    rgba(255, 212, 0, 0.38);

  box-shadow:
    0 14px 28px
    rgba(0, 0, 0, 0.28);
}

.student-pdf-icon {
  margin-bottom: 14px;

  font-size: 30px;
}

.student-pdf-subject {
  margin-bottom: 8px;

  color: var(--yellow);

  font-family: var(--mono);

  font-size: 10px;

  letter-spacing: 0.07em;

  text-transform: uppercase;
}

.student-pdf-title {
  margin-bottom: 8px;

  color: var(--ivory);

  font-family: var(--serif);

  font-size: 21px;

  line-height: 1.15;
}

.student-pdf-teacher {
  min-height: 34px;

  color: var(--ivory-dim);

  font-size: 12px;
}

.student-pdf-access {
  margin-top: 15px;
  margin-bottom: 17px;
}

.student-pdf-button {
  width: 100%;

  padding: 10px 16px;

  font-size: 12px;
}

.student-pdf-library-empty {
  grid-column: 1 / -1;

  padding: 44px 24px;

  text-align: center;

  color: var(--ivory-dim);

  background: var(--card-bg);

  border:
    1px dashed
    var(--ivory-border);

  border-radius:
    var(--radius);
}

/* ======================================================
   PROTECTED VIEW-ONLY PDF VIEWER
====================================================== */

.protected-pdf-viewer {
  position: fixed;
  inset: 0;
  z-index: 99999;

  display: none;
  overflow-y: auto;

  padding: 22px;

  background:
    rgba(5, 5, 5, 0.98);
}

.protected-pdf-viewer.open {
  display: block;
}

.protected-pdf-viewer-head {
  position: sticky;
  top: 0;
  z-index: 10;

  display: flex;
  align-items: center;
  justify-content: space-between;

  max-width: 980px;

  margin: 0 auto;
  padding: 16px 18px;

  border:
    1px solid var(--ivory-border);

  border-radius:
    var(--radius);

  background:
    rgba(10, 10, 10, 0.96);

  backdrop-filter:
    blur(16px);
}

.protected-pdf-viewer-title {
  margin-top: 5px;

  color: var(--ivory);

  font-family:
    var(--serif);

  font-size: 22px;
}

.protected-pdf-close {
  width: 38px;
  height: 38px;

  border:
    1px solid
    var(--ivory-border);

  border-radius: 50%;

  background:
    transparent;

  color:
    var(--ivory);

  cursor: pointer;

  font-size: 22px;
}

.protected-pdf-close:hover {
  color:
    var(--yellow);

  border-color:
    var(--yellow);
}

.protected-pdf-notice {
  max-width: 980px;

  margin:
    14px auto;

  color:
    var(--yellow);

  font-family:
    var(--mono);

  font-size:
    10px;

  letter-spacing:
    0.08em;

  text-align:
    center;

  text-transform:
    uppercase;
}

.protected-pdf-pages {
  display: flex;
  flex-direction: column;
  align-items: center;

  gap: 18px;

  max-width: 980px;

  margin: 0 auto;
}

.protected-pdf-loading {
  padding: 44px 20px;

  color:
    var(--ivory-dim);

  text-align:
    center;
}

.protected-pdf-page-wrap {
  position: relative;

  width:
    fit-content;

  max-width:
    100%;

  overflow:
    hidden;

  border:
    1px solid
    var(--ivory-border);

  background:
    #ffffff;

  box-shadow:
    0 18px 34px
    rgba(0, 0, 0, 0.35);
}

.protected-pdf-canvas {
  display: block;

  max-width:
    100%;

  height:
    auto;
}

.protected-pdf-watermark {
  position:
    absolute;

  inset:
    0;

  display:
    flex;

  align-items:
    center;

  justify-content:
    center;

  pointer-events:
    none;

  color:
    rgba(90, 90, 90, 0.16);

  font-family:
    var(--mono);

  font-size:
    clamp(
      13px,
      2vw,
      24px
    );

  font-weight:
    700;

  letter-spacing:
    0.06em;

  text-align:
    center;

  transform:
    rotate(-28deg);
}

/* ======================================================
   PUBLIC COURSE LIBRARY BANNER SIDEBAR
====================================================== */

.public-course-layout {
  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    250px;

  align-items: start;

  gap: 24px;
}

.public-course-layout.no-banners {
  grid-template-columns:
    minmax(0, 1fr);
}

.public-course-main {
  min-width: 0;
}

.public-banner-sidebar {
  position: sticky;

  top: 86px;

  min-width: 0;
}

.public-banner-sidebar[hidden] {
  display: none !important;
}

.public-banner-sidebar-head {
  margin-bottom: 14px;

  padding-bottom: 12px;

  border-bottom:
    1px solid
    var(--ivory-border);
}

.public-banner-sidebar-title {
  color:
    var(--ivory);

  font-family:
    var(--serif);

  font-size:
    20px;

  line-height:
    1.15;
}

.public-banner-list {
  display: flex;

  flex-direction: column;

  gap: 16px;
}

.public-banner-card {
  display: block;

  overflow: hidden;

  border:
    1px solid
    var(--ivory-border);

  border-radius:
    var(--radius);

  background:
    var(--card-bg);

  color:
    var(--ivory);

  text-decoration:
    none;

  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.public-banner-card:hover {
  border-color:
    rgba(
      255,
      212,
      0,
      0.45
    );

  transform:
    translateY(-3px);

  box-shadow:
    0 14px 28px
    rgba(
      0,
      0,
      0,
      0.28
    );
}

.public-banner-image {
  display: block;

  width: 100%;

  aspect-ratio:
    4 / 5;

  object-fit:
    cover;
}

.public-banner-caption {
  padding:
    12px 14px;

  color:
    var(--ivory);

  font-size:
    12px;

  font-weight:
    500;

  line-height:
    1.45;
}


/*
  The requirement is right-side advertisements only.
  Hide banners on narrow screens rather than moving
  them below the learning content.
*/

@media (
  max-width: 900px
) {
  .public-course-layout {
    grid-template-columns:
      minmax(0, 1fr);
  }

  .public-banner-sidebar {
    display:
      none !important;
  }
}

/* ======================================================
   PUBLIC STUDY NOTES GRID
====================================================== */

#public-notes-grid {
  display: grid;

  grid-template-columns:
    repeat(
      auto-fit,
      minmax(
        260px,
        360px
      )
    );

  justify-content:
    center;

  align-items:
    start;

  gap:
    22px;

  width:
    100%;

  margin-top:
    28px;
}

.public-notes-message {
  grid-column:
    1 / -1;

  padding:
    36px 18px;

  border:
    1px solid
    var(--ivory-border);

  border-radius:
    var(--radius);

  color:
    var(--ivory-dim);

  text-align:
    center;
}

.public-note-card {
  width:
    100%;

  max-width:
    360px;

  overflow:
    hidden;
}

.public-note-image {
  display:
    block;

  width:
    100%;

  aspect-ratio:
    4 / 3;

  object-fit:
    cover;
}

.note-card-body {
  padding:
    16px;
}

/* ======================================================
   RESPONSIVE PUBLIC NAVIGATION
====================================================== */

.nav-links button {
  background: transparent;
  border: none;

  color: var(--ivory-dim);

  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;

  letter-spacing: 0.04em;
  text-transform: uppercase;

  cursor: pointer;

  transition: color 0.2s ease;
}

.nav-links button:hover {
  color: var(--yellow);
}


.public-nav-toggle {
  display: none;

  width: 42px;
  height: 42px;

  align-items: center;
  justify-content: center;

  border: 1px solid var(--ivory-border);
  border-radius: 50%;

  background: transparent;
  color: var(--ivory);

  font-size: 22px;

  cursor: pointer;
}

.public-nav-toggle:hover {
  border-color: var(--yellow);
  color: var(--yellow);
}


.public-mobile-nav {
  position: fixed;
  top: 74px;
  left: 16px;
  right: 16px;
  z-index: 9999;

  display: none;
  flex-direction: column;
  gap: 10px;

  padding: 18px;

  border: 1px solid var(--ivory-border);
  border-radius: var(--radius);

  background: rgba(10, 10, 10, 0.98);

  backdrop-filter: blur(18px);

  box-shadow:
    0 20px 40px
    rgba(0, 0, 0, 0.45);
}

.public-mobile-nav.open {
  display: flex;
}

.public-mobile-nav button {
  width: 100%;

  padding: 13px 14px;

  border: 1px solid var(--ivory-border);
  border-radius: var(--radius-pill);

  background: transparent;
  color: var(--ivory);

  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;

  letter-spacing: 0.04em;
  text-transform: uppercase;

  cursor: pointer;
}

.public-mobile-nav button:hover {
  border-color: var(--yellow);
  color: var(--yellow);
}

.public-mobile-nav-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;

  margin-top: 8px;
}

.public-mobile-nav-actions .btn-primary {
  background: var(--yellow);
  color: var(--black);
  border-color: var(--yellow);
}


@media (max-width: 920px) {
  nav {
    padding: 0 22px;
  }

  .nav-links,
  .nav-cta {
    display: none;
  }

  .public-nav-toggle {
    display: flex;
  }

  .nav-logo {
    font-size: 20px;
  }
}


@media (max-width: 520px) {
  nav {
    padding: 0 16px;
  }

  .nav-logo {
    font-size: 18px;
  }

  .public-mobile-nav-actions {
    grid-template-columns: 1fr;
  }
}


@media (min-width: 921px) {
  .public-mobile-nav {
    display: none !important;
  }
}

/* ======================================================
   PUBLIC COURSE LIBRARY SUBJECT FILTERS
====================================================== */

.public-subject-filters {
  display: flex;
  align-items: center;
  justify-content: flex-end;

  gap: 16px;

  flex-wrap: wrap;
}

.public-subject-filter {
  padding: 12px 22px;

  border:
    1px solid
    var(--ivory-border);

  border-radius:
    var(--radius-pill);

  background:
    transparent;

  color:
    var(--ivory-dim);

  cursor:
    pointer;

  font-family:
    var(--sans);

  font-size:
    14px;

  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
}

.public-subject-filter:hover {
  color:
    var(--ivory);

  border-color:
    rgba(
      240,
      234,
      214,
      0.4
    );

  transform:
    translateY(-2px);
}

.public-subject-filter.active {
  color:
    var(--yellow);

  border-color:
    var(--yellow);

  background:
    rgba(
      255,
      212,
      0,
      0.05
    );
}

.public-library-empty-message {
  margin-top:
    22px;

  padding:
    24px;

  border:
    1px dashed
    var(--ivory-border);

  border-radius:
    var(--radius);

  color:
    var(--ivory-dim);

  text-align:
    center;
}



/*
  Fixed visible area inside the navbar.
  Extra white space from the uploaded image is hidden.
*/
.navbar-logo-frame {
  position: relative;

  width: 215px;
  height: 66px;

  overflow: hidden;
}


/* ------------------------------------------------------
   MOBILE LOGO SIZE
------------------------------------------------------ */

@media (max-width: 768px) {
  .nav-logo {
    width: 62px;
    height: 62px;
  }

  .main-navbar-logo {
    width: 52px;
    height: 52px;

    border-radius: 10px;
  }
}


/* ======================================================
   FINAL PUBLIC NAVBAR LOGO FIX
   Compact square logo in the top-left corner
====================================================== */

/*
  Public navbar only.
  Dashboard layouts remain unchanged.
*/
body:not(.dashboard-page) nav {
  height: 92px;
  padding: 0 42px;
}


/*
  Keep the page-tabs row below the taller navbar.
*/
body:not(.dashboard-page) .page-tabs {
  top: 92px;
}


/*
  Compact logo container.
*/
body:not(.dashboard-page) .nav-logo {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 76px;
  height: 76px;

  flex-shrink: 0;

  cursor: pointer;
}


/*
  This also fixes the page when the older
  navbar-logo-frame wrapper is still present.
*/
body:not(.dashboard-page) .navbar-logo-frame {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 76px;
  height: 76px;

  overflow: visible;
}


/*
  Actual square logo image.
*/
body:not(.dashboard-page) .main-navbar-logo {
  position: static;

  display: block;

  width: 62px;
  height: 62px;

  object-fit: contain;

  border-radius: 12px;

  border:
    1px solid
    rgba(255, 212, 0, 0.34);

  background:
    #ffffff;

  box-shadow:
    0 4px 14px
    rgba(0, 0, 0, 0.32);

  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}


/*
  Small hover animation.
*/
body:not(.dashboard-page)
.nav-logo:hover
.main-navbar-logo {
  transform:
    scale(1.06);

  border-color:
    var(--yellow);

  box-shadow:
    0 7px 20px
    rgba(255, 212, 0, 0.16);
}


/*
  Add enough spacing below the taller navbar.
*/
body:not(.dashboard-page) .hero {
  padding-top: 154px;
}


/* ------------------------------------------------------
   MOBILE NAVBAR LOGO
------------------------------------------------------ */

@media (max-width: 768px) {
  body:not(.dashboard-page) nav {
    height: 78px;
    padding: 0 20px;
  }

  body:not(.dashboard-page) .page-tabs {
    top: 78px;
  }

  body:not(.dashboard-page) .nav-logo,
  body:not(.dashboard-page) .navbar-logo-frame {
    width: 64px;
    height: 64px;
  }

  body:not(.dashboard-page) .main-navbar-logo {
    width: 54px;
    height: 54px;

    border-radius: 10px;
  }

  body:not(.dashboard-page) .hero {
    padding-top: 136px;
  }
}

/* ======================================================
   PUBLIC FIREBASE BANNER ADVERTISEMENTS
   Desktop, tablet and mobile layout
====================================================== */

/* ------------------------------------------------------
   DESKTOP
------------------------------------------------------ */

.public-course-layout {
  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    270px;

  align-items: start;

  gap: 28px;

  width: 100%;
}


/*
  When there are no active advertisements,
  remove the empty right-side space.
*/
.public-course-layout.no-banners {
  grid-template-columns:
    minmax(0, 1fr);
}


.public-course-main {
  min-width: 0;
}


.public-banner-sidebar {
  position: sticky;

  top: 104px;

  display: flex;

  flex-direction: column;

  gap: 14px;

  width: 270px;

  min-width: 0;
}


/*
  JavaScript applies the hidden attribute when
  there are no active advertisements.
*/
.public-banner-sidebar[hidden] {
  display: none !important;
}


.public-banner-sidebar-head {
  padding:
    2px
    2px
    8px;
}


.public-banner-sidebar-title {
  color:
    var(--ivory);

  font-family:
    var(--serif);

  font-size:
    20px;

  line-height:
    1.15;
}


.public-banner-list {
  display: flex;

  flex-direction: column;

  gap: 14px;
}


.public-banner-card {
  position: relative;

  display: block;

  width: 100%;

  aspect-ratio:
    4 / 5;

  overflow: hidden;

  border:
    1px solid
    var(--ivory-border);

  border-radius:
    15px;

  background:
    var(--card-bg);

  text-decoration:
    none;

  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}


.public-banner-card:hover {
  transform:
    translateY(-4px);

  border-color:
    rgba(
      255,
      212,
      0,
      0.58
    );

  box-shadow:
    0
    16px
    34px
    rgba(
      0,
      0,
      0,
      0.44
    );
}


.public-banner-image {
  display: block;

  width: 100%;
  height: 100%;

  object-fit:
    cover;

  transition:
    transform 0.3s ease;
}


.public-banner-card:hover
.public-banner-image {
  transform:
    scale(1.045);
}


.public-banner-caption {
  position: absolute;

  right: 0;
  bottom: 0;
  left: 0;

  padding:
    42px
    14px
    14px;

  background:
    linear-gradient(
      transparent,
      rgba(
        0,
        0,
        0,
        0.94
      )
    );

  color:
    var(--ivory);

  font-size:
    13px;

  font-weight:
    600;

  line-height:
    1.4;
}


/* ------------------------------------------------------
   TABLET
------------------------------------------------------ */

@media (max-width: 900px) {

  /*
    Stack advertisements below the Course Library.
  */
  .public-course-layout {
    display:
      block !important;
  }


  .public-banner-sidebar:not([hidden]) {
    position:
      static !important;

    display:
      block !important;

    width:
      100% !important;

    margin-top:
      32px !important;
  }


  /*
    Horizontal swipeable advertisement row.
  */
  .public-banner-list {
    display:
      grid !important;

    grid-auto-flow:
      column !important;

    grid-auto-columns:
      230px !important;

    grid-template-columns:
      none !important;

    gap:
      14px !important;

    overflow-x:
      auto !important;

    overflow-y:
      hidden !important;

    padding:
      4px
      2px
      14px !important;

    scroll-snap-type:
      x proximity;

    -webkit-overflow-scrolling:
      touch;
  }


  .public-banner-card {
    width:
      100% !important;

    scroll-snap-align:
      start;
  }
}


/* ------------------------------------------------------
   MOBILE
------------------------------------------------------ */

@media (max-width: 520px) {

  .public-banner-sidebar:not([hidden]) {
    margin-top:
      26px !important;
  }


  .public-banner-list {
    grid-auto-columns:
      78vw !important;
  }


  .public-banner-sidebar-title {
    font-size:
      18px;
  }


  .public-banner-caption {
    font-size:
      12px;
  }
}