:root {
  --bg: #f7f9fc;
  --surface: rgba(255,255,255,.88);
  --surface-solid: #ffffff;
  --text: #172033;
  --muted: #667085;
  --line: #e8edf4;
  --primary: #3157d5;
  --primary-dark: #2445b4;
  --primary-soft: #eef2ff;
  --accent: #f5b63b;
  --shadow-sm: 0 8px 24px rgba(26, 42, 75, .07);
  --shadow-lg: 0 24px 70px rgba(35, 55, 100, .13);
  --radius: 24px;
}

body.dark {
  --bg: #0c1220;
  --surface: rgba(20,29,46,.88);
  --surface-solid: #141d2e;
  --text: #f2f5fa;
  --muted: #9ca9bd;
  --line: #263249;
  --primary: #7590ff;
  --primary-dark: #91a5ff;
  --primary-soft: #1a2541;
  --shadow-sm: 0 8px 24px rgba(0,0,0,.2);
  --shadow-lg: 0 24px 70px rgba(0,0,0,.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  transition: background .3s ease, color .3s ease;
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }

.site-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(circle at 10% 10%, rgba(49,87,213,.09), transparent 25%),
    radial-gradient(circle at 90% 15%, rgba(245,182,59,.10), transparent 23%),
    radial-gradient(circle at 70% 90%, rgba(49,87,213,.07), transparent 28%);
}

.section-shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }

/* NAV */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--surface-solid) 84%, transparent);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  width: min(1240px, calc(100% - 40px));
  height: 76px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 11px; }

.brand-mark {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 12px;
}

.brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.brand-mark svg { width: 23px; }
.brand strong { display: block; font-size: 15px; letter-spacing: .12em; }
.brand small { display: block; color: var(--muted); font-size: 11px; margin-top: -1px; }
.desktop-nav { display: flex; gap: 6px; }
.nav-link {
  color: var(--muted); padding: 9px 14px; border-radius: 10px;
  font-size: 14px; font-weight: 600; transition: .2s;
}
.nav-link:hover, .nav-link.active { color: var(--primary); background: var(--primary-soft); }
.nav-actions { display: flex; gap: 8px; }
.icon-button, .menu-button {
  border: 1px solid var(--line); background: var(--surface-solid);
  color: var(--muted); width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center; cursor: pointer;
}
.menu-button { display: none; }
.mobile-menu { display: none; }

/* HERO */
.hero {
  min-height: 585px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 40px;
  padding-top: 55px;
}
.eyebrow, .section-kicker {
  color: var(--primary); font-weight: 800; font-size: 11px;
  letter-spacing: .16em;
}
.eyebrow { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 6px rgba(245,182,59,.12); }
.hero h1 { font-size: clamp(48px, 6vw, 78px); line-height: .99; letter-spacing: -.055em; margin: 0; max-width: 720px; }
.hero h1 span {
  display: inline-block;
  color: var(--primary);
  background: linear-gradient(100deg, var(--primary), #7184eb);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p { max-width: 600px; font-size: 18px; color: var(--muted); margin: 25px 0 28px; }
.hero p strong { color: var(--text); }
.hero-actions { display: flex; gap: 11px; flex-wrap: wrap; }
.primary-button, .secondary-button, .light-button {
  border: 0; cursor: pointer; border-radius: 13px; padding: 13px 18px;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 750; font-size: 14px; transition: transform .2s, box-shadow .2s, background .2s;
}
.primary-button { background: var(--primary); color: white; box-shadow: 0 12px 25px rgba(49,87,213,.23); }
.primary-button:hover, .secondary-button:hover, .light-button:hover { transform: translateY(-2px); }
.secondary-button { background: var(--surface-solid); border: 1px solid var(--line); color: var(--text); box-shadow: var(--shadow-sm); }
.hero-mini-stats { display: flex; gap: 30px; margin-top: 38px; }
.hero-mini-stats div { display: flex; flex-direction: column; }
.hero-mini-stats strong { font-size: 22px; }
.hero-mini-stats span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }

.hero-visual { min-height: 470px; position: relative; display: grid; place-items: center; }
.learning-illustration { width: 370px; height: 370px; position: relative; display: grid; place-items: center; }
.illustration-glow {
  position: absolute; width: 310px; height: 310px; border-radius: 50%;
  background: radial-gradient(circle, rgba(49,87,213,.18), rgba(49,87,213,.04) 55%, transparent 70%);
}
.hero-orbit { position: absolute; border: 1px solid rgba(49,87,213,.12); border-radius: 50%; }
.orbit-one { width: 370px; height: 370px; transform: rotate(25deg); }
.orbit-two { width: 290px; height: 430px; transform: rotate(-35deg); }
.book-shape { position: relative; width: 300px; height: 205px; transform: rotate(-5deg); filter: drop-shadow(0 28px 30px rgba(40,55,90,.18)); }
.book-page {
  position: absolute; top: 0; width: 50%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 13px; color: white;
}
.book-page svg { width: 52px; height: 52px; }
.book-page span { font-size: 12px; font-weight: 900; letter-spacing: .16em; }
.left-page { left: 0; border-radius: 25px 6px 6px 25px; background: linear-gradient(145deg, #3157d5, #6478e2); transform: skewY(4deg); }
.right-page { right: 0; border-radius: 6px 25px 25px 6px; background: linear-gradient(145deg, #5570df, #8b9aeb); transform: skewY(-4deg); }
.floating-card {
  position: absolute; z-index: 3; background: var(--surface-solid); border: 1px solid var(--line);
  box-shadow: var(--shadow-lg); padding: 11px 14px; border-radius: 14px;
  display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 12px;
  animation: float 4s ease-in-out infinite;
}
.floating-card svg { width: 17px; color: var(--primary); }
.card-one { top: 80px; left: 10px; animation-delay: -.7s; }
.card-two { top: 190px; right: -4px; animation-delay: -1.6s; }
.card-three { bottom: 72px; left: 35px; animation-delay: -2.4s; }
@keyframes float { 50% { transform: translateY(-9px); } }
.spark { position: absolute; color: var(--accent); font-size: 25px; animation: sparkle 2.5s ease-in-out infinite; }
.spark-a { top: 60px; right: 58px; }
.spark-b { bottom: 70px; right: 38px; animation-delay: .7s; font-size: 18px; }
.spark-c { top: 165px; left: 38px; animation-delay: 1.2s; font-size: 14px; }
@keyframes sparkle { 50% { opacity: .25; transform: scale(.7) rotate(25deg); } }

/* SEARCH */
.search-section { margin-top: -4px; position: relative; z-index: 4; }
.search-box {
  max-width: 760px; margin: auto; background: var(--surface-solid); border: 1px solid var(--line);
  box-shadow: var(--shadow-lg); border-radius: 17px; height: 64px; padding: 0 18px;
  display: flex; align-items: center; gap: 12px;
}
.search-box svg { color: var(--muted); width: 20px; }
.search-box input { flex: 1; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 15px; }
.search-box kbd { border: 1px solid var(--line); color: var(--muted); padding: 4px 7px; border-radius: 6px; font-size: 10px; }

/* SECTIONS */
.content-section { padding: 105px 0 30px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 28px; }
.section-heading h2 { font-size: clamp(28px, 3vw, 40px); line-height: 1.1; letter-spacing: -.035em; margin: 7px 0 8px; }
.section-heading p { color: var(--muted); margin: 0; }
.text-link { display: flex; gap: 7px; align-items: center; color: var(--primary); font-size: 13px; font-weight: 800; }
.text-link svg { width: 15px; }

.subject-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.subject-card {
  position: relative; overflow: hidden; min-height: 185px; padding: 23px;
  border-radius: 21px; background: var(--surface-solid); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s, border-color .25s;
  cursor: pointer;
}
.subject-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--primary) 25%, var(--line)); }
.subject-icon {
  width: 49px; height: 49px; border-radius: 15px; display: grid; place-items: center;
  background: var(--primary-soft); color: var(--primary); margin-bottom: 22px;
}
.subject-icon svg { width: 23px; }
.subject-card h3 { margin: 0 0 4px; font-size: 19px; }
.subject-card p { margin: 0; color: var(--muted); font-size: 12px; }
.subject-card .arrow {
  position: absolute; right: 20px; bottom: 19px; width: 32px; height: 32px;
  display: grid; place-items: center; border-radius: 50%; background: var(--bg); color: var(--muted);
}
.subject-card .arrow svg { width: 15px; }
.subject-card::after {
  content: ""; position: absolute; width: 100px; height: 100px; border-radius: 50%;
  right: -45px; top: -45px; background: var(--primary-soft);
}

/* TODAY */
.today-section { padding-top: 80px; }
.today-card {
  border-radius: 26px; padding: 30px; color: white;
  background: linear-gradient(120deg, #263f9f, #4e67d6 60%, #6f81df);
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 22px;
  box-shadow: 0 25px 60px rgba(49,87,213,.22); position: relative; overflow: hidden;
}
.today-card::after {
  content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.1); right: -70px; top: -100px;
}
.today-icon { width: 58px; height: 58px; border-radius: 18px; background: rgba(255,255,255,.14); display: grid; place-items: center; }
.today-content .section-kicker { color: #cbd6ff; }
.today-content h2 { margin: 6px 0 5px; font-size: 24px; }
.today-content p { margin: 0 0 8px; color: #e0e6ff; font-size: 13px; }
.today-meta { display: flex; align-items: center; gap: 8px; color: #d8e0ff; font-size: 11px; font-weight: 700; }
.dot-separator { width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,.5); }
.light-button { background: white; color: #263f9f; position: relative; z-index: 2; }

/* FILTERS + LESSONS */
.filters { display: flex; justify-content: space-between; gap: 15px; align-items: center; margin-bottom: 24px; }
.filter-scroll { display: flex; gap: 7px; overflow-x: auto; scrollbar-width: none; }
.filter-scroll::-webkit-scrollbar { display: none; }
.filter-button {
  white-space: nowrap; border: 1px solid var(--line); background: var(--surface-solid);
  color: var(--muted); padding: 8px 13px; border-radius: 10px; font-size: 12px; font-weight: 750; cursor: pointer;
}
.filter-button.active { color: var(--primary); background: var(--primary-soft); border-color: transparent; }
#gradeFilter {
  border: 1px solid var(--line); background: var(--surface-solid); color: var(--text);
  border-radius: 10px; padding: 9px 12px; outline: none; min-width: 125px;
}
.lesson-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.lesson-card {
  background: var(--surface-solid); border: 1px solid var(--line); border-radius: 20px;
  overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s;
}
.lesson-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.lesson-cover {
  height: 112px; padding: 17px; display: flex; align-items: flex-start; justify-content: space-between;
  background: linear-gradient(135deg, var(--primary-soft), var(--surface-solid));
}
.lesson-cover-icon {
  width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center;
  background: var(--surface-solid); color: var(--primary); box-shadow: 0 8px 18px rgba(0,0,0,.06);
}
.lesson-cover-icon svg { width: 20px; }
.badge { padding: 6px 8px; border-radius: 8px; background: rgba(255,255,255,.85); color: var(--primary); font-size: 9px; font-weight: 900; letter-spacing: .08em; }
.lesson-body { padding: 18px; }
.lesson-body .lesson-subject { color: var(--primary); font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: .12em; }
.lesson-body h3 { margin: 6px 0; font-size: 17px; }
.lesson-body p { margin: 0; color: var(--muted); font-size: 12px; min-height: 38px; }
.lesson-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; }
.lesson-grade { color: var(--muted); font-size: 10px; font-weight: 750; display: flex; gap: 5px; align-items: center; }
.lesson-grade svg { width: 13px; }
.lesson-start { color: var(--primary); font-size: 11px; font-weight: 900; display: flex; align-items: center; gap: 5px; }
.lesson-start svg { width: 14px; }

.hidden { display: none !important; }
.empty-state { text-align: center; padding: 70px 20px; }
.empty-icon { width: 58px; height: 58px; display: grid; place-items: center; margin: auto; border-radius: 18px; background: var(--primary-soft); color: var(--primary); }
.empty-state h3 { margin: 15px 0 4px; }
.empty-state p { color: var(--muted); margin-bottom: 18px; }

/* ABOUT + FOOTER */
.about-section { padding: 100px 0; }
.about-card {
  display: grid; grid-template-columns: auto 1fr; gap: 25px; align-items: start;
  padding: 40px; border: 1px solid var(--line); background: var(--surface-solid);
  border-radius: 27px; box-shadow: var(--shadow-sm);
}
.about-symbol { width: 65px; height: 65px; border-radius: 20px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; }
.about-symbol svg { width: 31px; }
.about-card h2 { margin: 5px 0 8px; font-size: 30px; letter-spacing: -.03em; }
.about-card p { margin: 0; max-width: 780px; color: var(--muted); }
footer { border-top: 1px solid var(--line); padding: 30px 0; }
.footer-inner { width: min(1180px, calc(100% - 40px)); margin: auto; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.footer-brand { display: flex; gap: 10px; align-items: center; }
.footer-brand strong { display: block; font-size: 13px; }
.footer-brand small { display: block; color: var(--muted); font-size: 10px; }
.footer-brand .brand-mark { width: 35px; height: 35px; border-radius: 10px; }
.footer-inner > p { color: var(--muted); font-size: 11px; margin: 0; }

/* RESPONSIVE */
@media (max-width: 900px) {
  .desktop-nav { display: none; }
  .menu-button { display: grid; }
  .mobile-menu {
    border-top: 1px solid var(--line); padding: 8px 20px 14px;
    background: var(--surface-solid);
  }
  .mobile-menu.open { display: grid; }
  .mobile-menu a { padding: 12px 5px; color: var(--muted); font-weight: 700; font-size: 14px; }
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 70px; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .hero p { max-width: 650px; }
  .hero-mini-stats { justify-content: center; }
  .hero-visual { min-height: 390px; }
  .subject-grid, .lesson-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .section-shell { width: min(100% - 28px, 1180px); }
  .nav-inner { width: calc(100% - 28px); height: 68px; }
  .hero { min-height: auto; padding-top: 50px; }
  .hero h1 { font-size: clamp(42px, 14vw, 62px); }
  .hero p { font-size: 15px; }
  .hero-actions { width: 100%; }
  .hero-actions > * { flex: 1; }
  .hero-visual { transform: scale(.82); min-height: 340px; margin-top: -15px; }
  .search-box { height: 56px; }
  .search-box kbd { display: none; }
  .content-section { padding-top: 75px; }
  .section-heading { align-items: start; }
  .section-heading .text-link { display: none; }
  .subject-grid, .lesson-grid { grid-template-columns: 1fr; }
  .subject-card { min-height: 165px; }
  .today-card { grid-template-columns: auto 1fr; padding: 23px; }
  .today-card .light-button { grid-column: 1 / -1; width: 100%; }
  .filters { align-items: stretch; flex-direction: column; }
  #gradeFilter { width: 100%; }
  .about-card { grid-template-columns: 1fr; padding: 27px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

.about-content p {
    max-width: 850px;
    line-height: 1.8;
    margin-bottom: 18px;
}

.about-content p:last-child {
    margin-bottom: 0;
}

.about-intro {
    font-size: 1.05rem;
    font-weight: 600;
    color: #315bea;
}

/* =========================================
   SUPPORT THE LEARNING HUB
========================================= */

.support-section {
    position: relative;
    padding: 100px 20px;
    background: linear-gradient(
        135deg,
        #f8fbff,
        #eef5ff
    );
    overflow: hidden;
}

.support-section::before {
    content: "";
    position: absolute;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.08);
    top: -150px;
    right: -100px;
}

.support-section::after {
    content: "";
    position: absolute;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.06);
    bottom: -120px;
    left: -80px;
}

.support-container {
    position: relative;
    z-index: 2;

    max-width: 1050px;
    margin: auto;

    display: flex;
    align-items: center;
    gap: 60px;

    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(15px);

    border: 1px solid rgba(255,255,255,0.8);

    border-radius: 30px;

    padding: 55px;

    box-shadow:
        0 20px 60px rgba(15, 23, 42, 0.10);
}


/* ICON */

.support-icon {
    min-width: 130px;
    height: 130px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 55px;

    border-radius: 35px;

    background: linear-gradient(
        135deg,
        #2563eb,
        #3b82f6
    );

    box-shadow:
        0 15px 35px rgba(37, 99, 235, 0.25);

    animation: supportFloat 3s ease-in-out infinite;
}


/* CONTENT */

.support-content {
    flex: 1;
}

.support-label {
    display: inline-block;

    font-size: 12px;
    font-weight: 800;

    letter-spacing: 2px;

    color: #2563eb;

    margin-bottom: 10px;
}

.support-content h2 {
    margin: 0 0 15px;

    font-size: clamp(30px, 5vw, 48px);

    color: #0f172a;

    line-height: 1.1;
}

.support-intro {
    font-size: 19px;
    font-weight: 600;

    color: #334155;

    line-height: 1.6;

    margin-bottom: 10px;
}

.support-content p {
    color: #64748b;

    line-height: 1.7;

    margin-bottom: 25px;
}


/* FEATURES */

.support-features {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;

    margin: 25px 0 30px;
}

.support-feature {
    display: flex;
    align-items: center;
    gap: 10px;

    background: #f8fafc;

    padding: 12px 15px;

    border-radius: 15px;

    border: 1px solid #e2e8f0;
}

.support-feature > span {
    font-size: 22px;
}

.support-feature strong {
    display: block;

    color: #1e293b;

    font-size: 14px;
}

.support-feature small {
    color: #64748b;

    font-size: 11px;
}


/* BUTTON */

.support-btn {
    border: none;

    padding: 16px 26px;

    border-radius: 15px;

    background: linear-gradient(
        135deg,
        #2563eb,
        #1d4ed8
    );

    color: white;

    font-size: 15px;
    font-weight: 700;

    cursor: pointer;

    display: inline-flex;
    align-items: center;
    gap: 10px;

    box-shadow:
        0 10px 25px rgba(37, 99, 235, 0.25);

    transition: all 0.3s ease;
}

.support-btn:hover {
    transform: translateY(-3px);

    box-shadow:
        0 15px 35px rgba(37, 99, 235, 0.35);
}

.support-btn:active {
    transform: scale(0.97);
}


/* NOTE */

.support-note {
    margin-top: 15px !important;

    font-size: 12px !important;

    color: #64748b !important;
}


/* =========================================
   SUPPORT MODAL
========================================= */

.support-modal {
    position: fixed;

    inset: 0;

    background: rgba(15, 23, 42, 0.65);

    backdrop-filter: blur(8px);

    display: none;

    align-items: center;
    justify-content: center;

    padding: 20px;

    z-index: 9999;
}

.support-modal.active {
    display: flex;

    animation: modalFade 0.3s ease;
}

.support-modal-box {
    position: relative;

    width: 100%;
    max-width: 480px;

    background: white;

    border-radius: 25px;

    padding: 40px;

    text-align: center;

    box-shadow:
        0 30px 80px rgba(0,0,0,0.25);

    animation: modalSlide 0.35s ease;
}

.close-support {
    position: absolute;

    top: 15px;
    right: 18px;

    width: 35px;
    height: 35px;

    border: none;

    background: #f1f5f9;

    border-radius: 50%;

    font-size: 25px;

    cursor: pointer;

    color: #475569;
}

.modal-heart {
    font-size: 50px;

    margin-bottom: 10px;
}

.support-modal-box h3 {
    color: #0f172a;

    font-size: 25px;

    margin-bottom: 10px;
}

.support-modal-box > p {
    color: #64748b;

    line-height: 1.6;

    margin-bottom: 25px;
}


/* PAYMENT OPTIONS */

.support-options {
    display: grid;

    gap: 12px;

    margin-bottom: 20px;
}

.payment-option {
    width: 100%;

    border: 1px solid #e2e8f0;

    background: #f8fafc;

    border-radius: 15px;

    padding: 16px;

    display: flex;

    align-items: center;

    gap: 15px;

    text-align: left;

    cursor: pointer;

    transition: all 0.25s ease;
}

.payment-option:hover {
    background: #eff6ff;

    border-color: #93c5fd;

    transform: translateY(-2px);
}

.payment-option > span {
    font-size: 28px;
}

.payment-option strong {
    display: block;

    color: #1e293b;

    font-size: 15px;
}

.payment-option small {
    color: #64748b;

    font-size: 12px;
}


/* TRANSPARENCY */

.transparency-box {
    background: #f8fafc;

    border-radius: 15px;

    padding: 15px;

    text-align: left;
}

.transparency-box strong {
    color: #334155;

    font-size: 13px;
}

.transparency-box p {
    margin: 6px 0 0;

    font-size: 11px;

    line-height: 1.6;

    color: #64748b;
}


/* =========================================
   ANIMATIONS
========================================= */

@keyframes supportFloat {

    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

@keyframes modalFade {

    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes modalSlide {

    from {
        transform: translateY(30px) scale(0.95);
        opacity: 0;
    }

    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 768px) {

    .support-section {
        padding: 70px 15px;
    }

    .support-container {
        flex-direction: column;

        text-align: center;

        padding: 35px 25px;

        gap: 30px;
    }

    .support-icon {
        min-width: 100px;
        width: 100px;
        height: 100px;

        font-size: 42px;
    }

    .support-features {
        justify-content: center;
    }

    .support-btn {
        width: 100%;

        justify-content: center;
    }

    .support-modal-box {
        padding: 35px 22px;
    }

}

.qr-container {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
}

.support-qr {
    display: block;
    width: min(280px, 100%);
    height: auto;
    margin: 0 auto 15px;
    border-radius: 12px;
}

.qr-instruction {
    margin: 0 !important;
    color: #475569 !important;
    font-size: 13px !important;
}

/* =========================================
   RESPONSIVE SUPPORT QR
========================================= */

.qr-container {
    width: 100%;
    max-width: 340px;
    margin: 0 auto 20px;

    padding: 20px;

    background: #f8fafc;

    border: 1px solid #e2e8f0;

    border-radius: 20px;

    box-sizing: border-box;

    text-align: center;
}

.support-qr {
    display: block;

    width: min(280px, 100%);
    max-width: 100%;
    height: auto;

    aspect-ratio: 1 / 1;

    object-fit: contain;

    margin: 0 auto 15px;

    border-radius: 12px;

    /* Prevents the QR from becoming blurry */
    image-rendering: auto;
}

.qr-instruction {
    margin: 0 !important;

    color: #475569 !important;

    font-size: 13px !important;

    line-height: 1.5 !important;
}


/* =========================================
   MOBILE QR
========================================= */

@media (max-width: 600px) {

    .support-modal {
        padding: 12px;
    }

    .support-modal-box {
        width: 100%;
        max-width: 420px;

        max-height: 92vh;

        overflow-y: auto;

        padding: 30px 18px;

        border-radius: 22px;
    }

    .qr-container {
        width: 100%;

        max-width: 300px;

        padding: 15px;

        margin-left: auto;
        margin-right: auto;

        border-radius: 18px;
    }

    .support-qr {
        width: min(250px, 100%);

        margin-bottom: 12px;
    }

    .qr-instruction {
        font-size: 12px !important;
    }

}


/* =========================================
   VERY SMALL PHONES
========================================= */

@media (max-width: 380px) {

    .support-modal {
        padding: 8px;
    }

    .support-modal-box {
        padding: 25px 14px;

        border-radius: 18px;
    }

    .qr-container {
        max-width: 260px;

        padding: 12px;
    }

    .support-qr {
        width: min(220px, 100%);
    }

    .modal-heart {
        font-size: 40px;
    }

    .support-modal-box h3 {
        font-size: 21px;
    }

}

.qr-container {
    width: 100%;
    max-width: 340px;
    margin: 0 auto 20px;
    padding: 20px;

    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 20px;

    box-sizing: border-box;
    text-align: center;
}

/* QR CROPPING WINDOW */
.qr-crop {
    width: 250px;
    height: 250px;

    margin: 0 auto 18px;

    overflow: hidden;

    border-radius: 12px;

    position: relative;

    background: white;
}

/* ENLARGE THE ORIGINAL GCASH IMAGE */
.support-qr {
    position: absolute;

    width: 620px;
    max-width: none;

    height: auto;

    left: 50%;
    top: 50%;

    transform: translate(-50%, -50%);
}

/* TEXT */

.qr-instruction {
    margin: 0 !important;

    font-size: 13px !important;
    line-height: 1.5 !important;

    color: #475569 !important;
}


/* MOBILE */

@media (max-width: 600px) {

    .qr-container {
        max-width: 310px;
        padding: 15px;
    }

    .qr-crop {
        width: 230px;
        height: 230px;
    }

    .support-qr {
        width: 570px;
    }

}


/* SMALL PHONES */

@media (max-width: 380px) {

    .qr-container {
        max-width: 280px;
    }

    .qr-crop {
        width: 210px;
        height: 210px;
    }

    .support-qr {
        width: 520px;
    }

}

/* =========================================================
   SUPPORT THE PROJECT — FULL RESPONSIVE DESIGN
========================================================= */

/* MAIN SUPPORT SECTION */

.support-section {
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.support-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    box-sizing: border-box;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

    .support-section {
        padding: 70px 20px;
    }

    .support-container {
        flex-direction: column;
        text-align: center;
        gap: 30px;
        padding: 45px 35px;
    }

    .support-icon {
        width: 105px;
        min-width: 105px;
        height: 105px;
        margin: 0 auto;
    }

    .support-content {
        width: 100%;
    }

    .support-content h2 {
        font-size: 38px;
    }

    .support-intro {
        font-size: 17px;
    }

    .support-features {
        justify-content: center;
    }

    .support-btn {
        margin: 0 auto;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .support-section {
        width: 100%;
        min-height: auto;

        padding: 55px 12px;

        box-sizing: border-box;
    }

    .support-container {

        width: 100%;

        display: flex;
        flex-direction: column;

        padding: 32px 18px;

        gap: 25px;

        border-radius: 24px;

        box-sizing: border-box;

        overflow: hidden;
    }


    /* ICON */

    .support-icon {

        width: 85px;
        min-width: 85px;

        height: 85px;

        font-size: 38px;

        border-radius: 25px;

        margin: 0 auto;
    }


    /* CONTENT */

    .support-content {

        width: 100%;

        min-width: 0;

        box-sizing: border-box;
    }

    .support-label {

        font-size: 10px;

        letter-spacing: 1.5px;

        margin-bottom: 8px;
    }

    .support-content h2 {

        font-size: 30px;

        line-height: 1.15;

        margin-bottom: 15px;
    }

    .support-content p {

        font-size: 14px;

        line-height: 1.65;

        margin-bottom: 18px;
    }

    .support-intro {

        font-size: 16px !important;

        line-height: 1.55 !important;
    }


    /* FEATURES */

    .support-features {

        width: 100%;

        display: grid;

        grid-template-columns: 1fr;

        gap: 10px;

        margin: 20px 0 25px;
    }

    .support-feature {

        width: 100%;

        box-sizing: border-box;

        padding: 11px 13px;

        border-radius: 13px;

        text-align: left;
    }


    /* SUPPORT BUTTON */

    .support-btn {

        width: 100%;

        min-height: 52px;

        padding: 14px 18px;

        justify-content: center;

        text-align: center;

        font-size: 14px;

        border-radius: 14px;

        box-sizing: border-box;
    }


    /* NOTE */

    .support-note {

        font-size: 11px !important;

        line-height: 1.5 !important;

        margin-top: 12px !important;
    }
}


/* =========================================================
   SUPPORT MODAL — MOBILE
========================================================= */

@media (max-width: 600px) {

    .support-modal {

        position: fixed;

        inset: 0;

        width: 100%;
        height: 100%;

        padding: 10px;

        display: none;

        align-items: center;
        justify-content: center;

        box-sizing: border-box;

        overflow-y: auto;
    }

    .support-modal.active {

        display: flex;
    }


    .support-modal-box {

        width: 100%;

        max-width: 420px;

        max-height: calc(100vh - 20px);

        margin: auto;

        padding: 28px 18px;

        box-sizing: border-box;

        border-radius: 22px;

        overflow-y: auto;

        overflow-x: hidden;
    }


    /* CLOSE BUTTON */

    .close-support {

        top: 10px;
        right: 10px;

        width: 34px;
        height: 34px;

        font-size: 23px;

        z-index: 5;
    }


    /* MODAL ICON */

    .modal-heart {

        font-size: 40px;

        margin-bottom: 5px;
    }


    /* MODAL TITLE */

    .support-modal-box h3 {

        width: 100%;

        font-size: 23px;

        line-height: 1.25;

        margin: 0 auto 12px;

        padding: 0 20px;

        box-sizing: border-box;
    }


    /* MODAL DESCRIPTION */

    .support-modal-box > p {

        font-size: 14px;

        line-height: 1.6;

        margin-bottom: 20px;
    }


    /* =====================================================
       QR CONTAINER
    ===================================================== */

    .qr-container {

        width: 100%;

        max-width: 300px;

        margin: 0 auto 18px;

        padding: 14px;

        box-sizing: border-box;

        border-radius: 18px;
    }


    /* QR IMAGE */

    .support-qr {

        display: block;

        width: 100%;

        max-width: 260px;

        height: auto;

        margin: 0 auto 12px;

        object-fit: contain;
    }


    /* QR TEXT */

    .qr-instruction {

        width: 100%;

        font-size: 12px !important;

        line-height: 1.5 !important;

        text-align: center;

        margin: 0 !important;
    }


    /* =====================================================
       TRANSPARENCY BOX
    ===================================================== */

    .transparency-box {

        width: 100%;

        box-sizing: border-box;

        padding: 13px;

        border-radius: 13px;

        text-align: left;
    }

    .transparency-box strong {

        font-size: 12px;
    }

    .transparency-box p {

        font-size: 10px !important;

        line-height: 1.55 !important;

        margin: 5px 0 0 !important;
    }
}


/* =========================================================
   VERY SMALL PHONES — 380px AND BELOW
========================================================= */

@media (max-width: 380px) {

    .support-section {

        padding: 40px 8px;
    }

    .support-container {

        padding: 28px 14px;

        border-radius: 20px;
    }


    .support-icon {

        width: 75px;
        min-width: 75px;

        height: 75px;

        font-size: 32px;

        border-radius: 22px;
    }


    .support-content h2 {

        font-size: 26px;
    }

    .support-intro {

        font-size: 15px !important;
    }

    .support-content p {

        font-size: 13px;
    }


    /* MODAL */

    .support-modal {

        padding: 7px;
    }

    .support-modal-box {

        max-height: calc(100vh - 14px);

        padding: 25px 13px;

        border-radius: 19px;
    }

    .support-modal-box h3 {

        font-size: 20px;

        padding: 0 15px;
    }


    /* QR */

    .qr-container {

        max-width: 270px;

        padding: 12px;
    }

    .support-qr {

        max-width: 235px;
    }

    .qr-instruction {

        font-size: 11px !important;
    }
}


/* =========================================================
   EXTRA SMALL PHONES — 320px AND BELOW
========================================================= */

@media (max-width: 320px) {

    .support-section {

        padding-left: 5px;
        padding-right: 5px;
    }

    .support-container {

        padding: 24px 12px;
    }

    .support-content h2 {

        font-size: 23px;
    }

    .support-btn {

        font-size: 13px;

        padding: 13px 10px;
    }

    .support-modal-box {

        padding: 22px 10px;
    }

    .qr-container {

        max-width: 245px;

        padding: 10px;
    }

    .support-qr {

        max-width: 215px;
    }
}

.brand-mark img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    display: block;
}

/* =========================================
   TEACHER ED LEARNING HUB FOOTER
   ========================================= */

.site-footer {
    margin-top: 80px;
    padding: 0 24px 22px;
    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(212, 175, 55, 0.06),
            transparent 45%
        ),
        var(--bg, #f8fafc);
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    min-height: 105px;

    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 30px;
}

/* BRAND */

.footer-brand {
    display: flex;
    align-items: center;
    gap: 13px;
}

.footer-logo {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(15, 23, 42, 0.08);

    box-shadow: 0 5px 18px rgba(15, 23, 42, 0.06);

    flex-shrink: 0;
}

.footer-logo img {
    width: 31px;
    height: 31px;
    object-fit: contain;
    display: block;
}

.footer-brand-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.footer-brand-text strong {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #16233b;
}

.footer-brand-text span {
    font-size: 13px;
    color: #64748b;
}

/* LINKS */

.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    white-space: nowrap;
}

.footer-links a {
    color: #334155;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.footer-links a:hover {
    color: #b08a1e;
    transform: translateY(-1px);
}

.footer-links span {
    color: #c5a84e;
    font-size: 13px;
}

/* CREDIT */

.footer-credit {
    text-align: right;
    color: #64748b;
    font-size: 13px;
}

.footer-credit strong {
    color: #334155;
    font-weight: 600;
}

/* BOTTOM */

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 16px;

    border-top: 1px solid rgba(15, 23, 42, 0.06);

    text-align: center;

    color: #94a3b8;
    font-size: 12px;
}

/* =========================================
   DARK MODE
   ========================================= */

body.dark .site-footer {
    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(212, 175, 55, 0.08),
            transparent 45%
        );
    border-top-color: rgba(255, 255, 255, 0.08);
}

body.dark .footer-logo {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.08);
}

body.dark .footer-brand-text strong {
    color: #f1f5f9;
}

body.dark .footer-brand-text span,
body.dark .footer-credit {
    color: #94a3b8;
}

body.dark .footer-credit strong {
    color: #e2e8f0;
}

body.dark .footer-links a {
    color: #cbd5e1;
}

body.dark .footer-links a:hover {
    color: #d4af37;
}

body.dark .footer-bottom {
    border-top-color: rgba(255, 255, 255, 0.06);
    color: #64748b;
}

/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 800px) {

    .site-footer {
        margin-top: 60px;
        padding: 30px 20px 20px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 22px;
        text-align: center;
    }

    .footer-brand {
        justify-content: center;
    }

    .footer-links {
        flex-wrap: wrap;
        white-space: normal;
    }

    .footer-credit {
        text-align: center;
    }

    .footer-bottom {
        margin-top: 5px;
    }
}