/**
 * CBSE / class study sheets only (html.gks-layout-class).
 * Does not restyle OTS, Daily GK, kids quiz, or company pages.
 */
html.gks-layout-class {
  --gks-accent: #0f766e;
  --gks-hover: #0d9488;
  --gks-hero-bg: #0f766e;
  --gks-bg: #f4efe4;
  --gks-card: #ffffff;
  --gks-border: #e8dcc8;
  --gks-text: #134e4a;
}
html.gks-layout-class,
html.gks-layout-class body {
  background: #f4efe4 !important;
}

html.gks-layout-class .gks-study-main {
  max-width: 1240px;
  width: 100%;
  padding: 12px 16px 48px;
}

html.gks-layout-class .gks-study-hero {
  background: linear-gradient(135deg, #0f766e 0%, #0d9488 100%) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 20px;
  padding: 28px 28px 24px;
  box-shadow: 0 14px 32px rgba(15, 118, 110, 0.22);
}
html.gks-layout-class .gks-study-hero h1,
html.gks-layout-class .gks-study-hero p,
html.gks-layout-class .gks-hero-intro,
html.gks-layout-class .gks-hero-intro p,
html.gks-layout-class .gks-meta-row,
html.gks-layout-class .gks-meta-row span {
  color: #fff !important;
}
html.gks-layout-class .gks-hero-intro p:nth-child(n+3) {
  display: none;
}
html.gks-layout-class .gks-category-badge {
  background: rgba(255, 255, 255, 0.18) !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.28);
}
html.gks-layout-class .gks-study-hero-cta {
  background: #fff !important;
  color: #0f766e !important;
  border: 0;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
}
html.gks-layout-class .gks-study-hero-cta:hover,
html.gks-layout-class .gks-study-hero-cta:focus {
  background: #ecfdf5 !important;
  color: #115e59 !important;
}
html.gks-layout-class .gks-chip {
  background: rgba(255, 255, 255, 0.14) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  color: #fff !important;
  font-size: 13px;
  padding: 5px 11px;
}
html.gks-layout-class .gks-chip:hover {
  background: rgba(255, 255, 255, 0.24) !important;
}

html.gks-layout-class .gks-content-card {
  border-color: #e8dcc8;
  box-shadow: 0 8px 24px rgba(15, 118, 110, 0.06);
}
html.gks-layout-class .gks-content-card h2 {
  color: #134e4a;
  border-bottom-color: #ccfbf1;
}
html.gks-layout-class .gks-content-card h3.gks-qcard-title {
  color: #134e4a;
  font-size: 1.12rem;
}

html.gks-layout-class .gks-sheet-lead {
  background: #f0fdfa;
  border: 1px solid #99f6e4;
  border-radius: 12px;
  padding: 12px 14px;
  color: #334155;
}
html.gks-layout-class .gks-sheet-toc a {
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

html.gks-layout-class .gks-qcard {
  border: 1px solid #d1fae5;
  border-radius: 16px;
  padding: 18px 18px 14px;
  margin-bottom: 14px;
  box-shadow: 0 4px 14px rgba(15, 118, 110, 0.05);
}
html.gks-layout-class .gks-qcard:hover {
  border-color: #99f6e4;
  transform: none;
}
html.gks-layout-class .gks-qcard-summary {
  display: inline-flex !important;
  width: auto;
  max-width: 100%;
  margin-top: 4px;
  background: #0f766e !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 999px !important;
  padding: 8px 16px !important;
  font-size: 0.9rem !important;
  font-weight: 800;
  box-shadow: none;
}
html.gks-layout-class .gks-qcard-summary:hover {
  background: #0d9488 !important;
  transform: none;
}
html.gks-layout-class .gks-qcard-details {
  border: 0;
  background: transparent;
  overflow: visible;
}
html.gks-layout-class .gks-qcard-details[open] .gks-qcard-summary {
  border-radius: 999px !important;
  margin-bottom: 8px;
}
html.gks-layout-class .gks-qcard-ansbox {
  border-radius: 12px;
  background: #ecfdf5;
  border-left: 4px solid #0f766e;
  color: #134e4a;
}
html.gks-layout-class .gks-qcard-actions {
  margin-top: 10px;
  gap: 8px;
}
html.gks-layout-class .gks-btn-action-small {
  background: #fff;
  color: #0f766e;
  border: 1px solid #99f6e4;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
}
html.gks-layout-class .gks-btn-action-small:hover {
  background: #f0fdfa;
}
html.gks-layout-class .gks-interstitial-card {
  background: #f0fdfa;
  border: 1px solid #99f6e4;
  border-radius: 14px;
  padding: 14px 16px;
  margin: 0 0 14px;
}
html.gks-layout-class .gks-interstitial-card h4 {
  color: #0f766e;
  margin: 0 0 6px;
}

html.gks-layout-class .gks-sidebar-card {
  border-color: #e8dcc8;
}
html.gks-layout-class .gks-sidebar-card h3 {
  color: #134e4a;
}
html.gks-layout-class .gks-btn-action {
  border-color: #99f6e4;
  color: #115e59;
  border-radius: 10px;
}
html.gks-layout-class .gks-btn-action:hover {
  background: #f0fdfa;
  border-color: #0f766e;
}
html.gks-layout-class .gks-faq-item {
  border-color: #ccfbf1;
  border-radius: 12px;
}
html.gks-layout-class .gks-faq-summary {
  color: #134e4a;
  font-weight: 700;
}

@media (max-width: 991px) {
  html.gks-layout-class .gks-study-grid {
    grid-template-columns: 1fr;
  }
  html.gks-layout-class .gks-study-hero {
    padding: 20px 16px;
    border-radius: 16px;
  }
  html.gks-layout-class .gks-study-hero h1 {
    font-size: 1.45rem !important;
  }
  html.gks-layout-class .gks-qcard {
    padding: 14px;
  }
  html.gks-layout-class .gks-qcard-actions {
    display: flex;
    flex-wrap: wrap;
  }
}
