/**
 * GKSchools page themes — one brand, multiple page experiences.
 * Brand primary stays #0f766e. Themes only shift accent, surface and hero.
 */
:root {
  --gks-brand: #0f766e;
  --gks-brand-dark: #115e59;
  --gks-text: #0f172a;
  --gks-muted: #475569;
  --gks-bg: #f8fafc;
  --gks-card: #ffffff;
  --gks-border: #e2e8f0;
  --gks-hover: #0d9488;
  --gks-active: #0f766e;
  --gks-success: #15803d;
  --gks-warning: #b45309;
  --gks-error: #b91c1c;
  --gks-accent: #0f766e;
  --gks-hero-bg: #f0fdfa;
}

html.gks-theme-school {
  --gks-accent: #0369a1;
  --gks-hover: #0284c7;
  --gks-hero-bg: #f0f9ff;
  --gks-bg: #f8fbff;
}
html.gks-theme-science {
  --gks-accent: #1d4ed8;
  --gks-hover: #2563eb;
  --gks-hero-bg: #eff6ff;
  --gks-bg: #f8fafc;
}
html.gks-theme-maths {
  --gks-accent: #4338ca;
  --gks-hover: #4f46e5;
  --gks-hero-bg: #eef2ff;
}
html.gks-theme-gk {
  --gks-accent: #0f766e;
  --gks-hero-bg: #f0fdfa;
}
html.gks-theme-ca {
  --gks-accent: #b45309;
  --gks-hover: #c2410c;
  --gks-active: #16324f;
  --gks-hero-bg: #f4efe4;
  --gks-bg: #f4efe4;
  --gks-card: #fffdf8;
  --gks-border: #e8dcc8;
  --gks-text: #16324f;
}
html.gks-theme-exam {
  --gks-accent: #1e3a5f;
  --gks-hover: #1e40af;
  --gks-hero-bg: #f1f5f9;
  --gks-bg: #f8fafc;
}
html.gks-theme-result {
  --gks-accent: #15803d;
  --gks-hero-bg: #f0fdf4;
}

html.gks-exp {
  background: var(--gks-bg);
}
html.gks-exp,
html.gks-exp body {
  overflow-x: clip;
  max-width: 100%;
}
html.gks-exp body {
  background: var(--gks-bg);
  background-image: none !important;
  color: var(--gks-text);
  font-family: var(--gks-font, Inter, "Noto Sans Devanagari", "Segoe UI", sans-serif);
  font-size: var(--gks-fs-body, clamp(16px, 0.35vw + 15px, 18px));
  line-height: var(--gks-lh-body, 1.65);
  padding: 0 !important;
  margin: 0;
}

html.gks-exp .premium-quiz-card.quiz-intro-section,
html.gks-exp .gks-home-hero {
  background: var(--gks-hero-bg);
  border-color: var(--gks-border);
}
html.gks-exp .gks-study-hero {
  background: linear-gradient(135deg, #0f172a 0%, #134e4a 46%, #0f766e 100%);
  color: #fff;
  border: 0;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.16);
}
html.gks-exp .gks-category-badge,
html.gks-exp .subject-badge {
  background: var(--gks-accent);
  color: #fff;
}
html.gks-exp .gks-chip,
html.gks-exp .gks-btn-action,
html.gks-exp .btn-game,
html.gks-exp .gks-premium-header .take-test,
html.gks-exp a.gks-chip {
  border-color: var(--gks-accent);
}
html.gks-exp .gks-study-hero h1,
html.gks-exp .gks-study-hero .head1 {
  font-family: var(--gks-font, Inter, "Noto Sans Devanagari", sans-serif);
  font-size: var(--gks-fs-h1, clamp(1.45rem, 1.2vw + 1.15rem, 2rem));
  line-height: var(--gks-lh-head, 1.3);
  color: #fff;
}
html.gks-exp .gks-hero-intro,
html.gks-exp .gks-hero-intro p,
html.gks-exp .gks-hero-intro .gks-intro-context,
html.gks-exp .gks-study-hero .lead-intro,
html.gks-exp .gks-meta-row,
html.gks-exp .gks-meta-row span {
  color: rgba(255, 255, 255, 0.94);
}
html.gks-exp .gks-study-hero .gks-chip,
html.gks-exp .gks-study-hero a.gks-chip {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.32);
  color: #fff !important;
}
html.gks-exp .gks-study-hero .gks-chip:hover,
html.gks-exp .gks-study-hero a.gks-chip:hover {
  background: rgba(255, 255, 255, 0.24);
}

/* Quiz layout: practice set + related quizzes side by side */
html.gks-layout-quiz .gks-study-main {
  max-width: 1240px;
  width: 100%;
}
html.gks-layout-quiz .gks-study-grid {
  grid-template-columns: 1fr;
}
@media (min-width: 992px) {
  html.gks-layout-quiz .gks-study-grid {
    grid-template-columns: minmax(0, 1fr) minmax(250px, 300px);
  }
}
html.gks-layout-quiz .gks-content-card {
  overflow: visible;
}
html.gks-layout-quiz .gamified-quiz-wrapper {
  max-width: none;
  width: auto;
}
html.gks-layout-quiz .sidenav.my-content-right1 {
  align-self: flex-start;
  height: auto;
}
html.gks-layout-quiz .gks-quiz-side-widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
html.gks-layout-quiz .gks-quiz-side-widget li a {
  display: block;
  padding: 10px 12px;
  margin-bottom: 8px;
  border: 1px solid var(--gks-border);
  border-radius: 10px;
  background: var(--gks-card);
  color: var(--gks-text);
  text-decoration: none;
  font-size: 15px;
}
html.gks-layout-quiz .gks-quiz-side-widget li a:hover,
html.gks-layout-quiz .gks-quiz-side-widget li a:focus {
  border-color: var(--gks-accent);
  color: var(--gks-accent);
}
html.gks-layout-quiz .gks-quiz-side-widget li a span {
  display: block;
  font-weight: 400;
  color: var(--gks-muted);
  font-size: 13px;
  margin-top: 2px;
}
html.gks-layout-quiz .google-review-btn1 {
  display: none;
}

/* Exam / government directory */
html.gks-layout-exam .gks-study-main {
  max-width: 1180px;
  padding: 0 14px 32px;
}
html.gks-layout-exam .gks-study-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(250px, 0.68fr);
  gap: 22px;
}
html.gks-layout-exam .gks-study-hero {
  background: linear-gradient(125deg, #0b1f3a 0%, #1e3a5f 48%, #0f766e 100%);
  border-left: 0;
  padding: clamp(18px, 4vw, 34px);
  border-radius: 20px;
}
html.gks-layout-exam .gks-study-hero h1 {
  max-width: 18ch;
}
html.gks-layout-exam .gks-content-card {
  border-radius: 18px;
}
html.gks-layout-exam .gks-content-card table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 18px;
  overflow: hidden;
  border-radius: 12px;
  display: block;
  overflow-x: auto;
}
html.gks-layout-exam .gks-content-card table tr {
  display: table;
  width: 100%;
  table-layout: fixed;
}
html.gks-layout-exam .gks-content-card th,
html.gks-layout-exam .gks-content-card td {
  border: 1px solid #e2e8f0;
  padding: 10px 12px;
  text-align: left;
  font-size: 0.95rem;
}
html.gks-layout-exam .gks-content-card th {
  background: #ecfeff;
  color: #134e4a;
  font-weight: 800;
}
html.gks-layout-exam .gks-content-card .section {
  margin: 0 0 22px;
  padding-bottom: 6px;
}
html.gks-layout-exam .gks-content-card .section h2,
html.gks-layout-exam .gks-content-card .section-heading {
  font-size: 1.2rem;
  margin-top: 8px;
}
html.gks-layout-exam .gks-meta-row {
  gap: 8px;
}
html.gks-layout-exam .gks-meta-row span {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.8rem;
  font-weight: 700;
}

/* School / class */
html.gks-layout-school .gks-study-hero,
html.gks-layout-class .gks-study-hero {
  border-radius: 18px;
}

/* Article / reading */
html.gks-layout-article .gks-study-grid,
html.gks-layout-article .gks-main-article {
  max-width: 720px;
  margin-inline: auto;
}
html.gks-layout-article .gks-sidebar-sticky {
  display: none;
}

/* Result */
html.gks-layout-result .gks-quiz-result-extra {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}

html.gks-exp .gks-study-hero-cta {
  display: inline-flex;
  margin-top: 14px;
  padding: 10px 18px;
  background: var(--gks-accent);
  color: #fff !important;
  border-radius: 999px;
  font-family: var(--gks-font, Inter, "Noto Sans Devanagari", sans-serif);
  font-weight: 700;
  text-decoration: none;
  font-size: var(--gks-fs-btn, 16px);
}
html.gks-exp .gks-study-hero-cta:hover,
html.gks-exp .gks-study-hero-cta:focus {
  background: var(--gks-hover);
}

body.daily-quiz-page .gks-study-main,
body.daily-result-page .gks-study-main {
  max-width: 1280px;
  width: 100%;
}
@media (min-width: 992px) {
  body.daily-quiz-page .gks-study-grid,
  body.daily-result-page .gks-study-grid {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 22px;
    align-items: start;
  }
  body.daily-quiz-page .dq-related-main {
    display: none;
  }
}
@media (max-width: 991px) {
  body.daily-quiz-page .gks-sidebar-related-quizzes {
    display: none;
  }
  html.gks-layout-exam .gks-study-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  html.gks-exp .gks-study-grid,
  html.gks-layout-exam .gks-study-grid,
  html.gks-layout-quiz .gks-study-grid,
  html.gks-layout-school .gks-study-grid,
  html.gks-layout-class .gks-study-grid {
    grid-template-columns: 1fr;
  }
  html.gks-exp .gks-study-main {
    padding-left: 12px;
    padding-right: 12px;
  }
  html.gks-exp .gks-study-hero,
  html.gks-layout-exam .gks-study-hero,
  html.gks-layout-quiz .gks-study-hero,
  html.gks-layout-class .gks-study-hero {
    padding: 14px 12px 16px;
    border-radius: 14px;
  }
  html.gks-exp .gks-study-hero h1,
  html.gks-layout-exam .gks-study-hero h1 {
    max-width: none;
    font-size: var(--gks-fs-h1);
  }
  html.gks-exp .gks-hero-intro,
  html.gks-exp .gks-hero-intro p,
  html.gks-layout-exam .gks-hero-intro,
  html.gks-layout-exam .gks-hero-intro p {
    font-size: var(--gks-fs-body);
    line-height: 1.5;
  }
  html.gks-exp .gks-study-hero-cta {
    display: flex;
    width: 100%;
    justify-content: center;
    font-size: var(--gks-fs-btn);
  }
  html.gks-exp .gks-related-chips {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  html.gks-exp .gks-study-hero .gks-chip,
  html.gks-exp .gks-study-hero a.gks-chip {
    width: 100%;
    justify-content: center;
    text-align: center;
    font-size: clamp(0.72rem, 3vw, 0.8125rem);
    padding: 7px 8px;
    white-space: normal;
  }
  html.gks-exp .gks-content-card,
  html.gks-layout-exam .gks-content-card {
    padding: 14px;
  }
  html.gks-exp .gks-content-card h2,
  html.gks-layout-exam .gks-content-card h2 {
    font-size: var(--gks-fs-h2);
  }
  html.gks-layout-quiz .sidenav.my-content-right1 {
    margin-top: 16px;
    width: 100%;
    max-width: 100%;
  }
}
