/**
 * Siksha Connects — inner pages & legal (no template banner/sidebar).
 */

.sc-inner-page {
  --sc-navy: #071b4d;
  --sc-navy-mid: #0b245f;
  --sc-cyan: #16d5c0;
  --sc-cyan-dim: #12b8c8;
  --sc-text: #0f172a;
  --sc-muted: #475569;
  font-family: "Outfit", "DM Sans", system-ui, sans-serif;
  color: var(--sc-text);
  background: linear-gradient(180deg, #f4fafb 0%, #ffffff 40%, #f7fbfc 100%);
  padding: 40px 0 56px;
}

.sc-inner-page__shell {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.sc-inner-page__shell--narrow {
  max-width: 760px;
}

.sc-inner-page__article {
  background: #fff;
  border-radius: 18px;
  border: 1px solid rgba(7, 27, 77, 0.07);
  box-shadow: 0 14px 44px rgba(7, 27, 77, 0.06);
  padding: 32px 28px 36px;
}

.sc-inner-page__header {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(7, 27, 77, 0.08);
}

.sc-inner-page__kicker {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sc-inner-page__kicker a {
  color: var(--sc-cyan-dim);
  text-decoration: none;
}

.sc-inner-page__kicker a:hover {
  color: var(--sc-navy);
}

.sc-inner-page__title {
  margin: 0;
  font-size: clamp(1.65rem, 2.8vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--sc-navy);
}

.sc-inner-page__content {
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--sc-text);
}

.sc-inner-page__content > *:first-child {
  margin-top: 0;
}

.sc-inner-page__content h2,
.sc-inner-page__content h3 {
  margin: 1.5em 0 0.65em;
  color: var(--sc-navy);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.sc-inner-page__content h2 {
  font-size: 1.35rem;
}

.sc-inner-page__content h3 {
  font-size: 1.12rem;
}

.sc-inner-page__content p {
  margin: 0 0 1em;
}

.sc-inner-page__content ul,
.sc-inner-page__content ol {
  margin: 0 0 1em;
  padding-left: 1.25em;
}

.sc-inner-page__content a {
  color: var(--sc-cyan-dim);
  font-weight: 600;
  text-decoration: none;
}

.sc-inner-page__content a:hover {
  text-decoration: underline;
}

.sc-inner-page__pagination {
  margin-top: 2rem;
  font-size: 14px;
  color: var(--sc-muted);
}

.sc-inner-page__cat {
  display: inline-block;
  margin: 0 0 10px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sc-cyan-dim);
  background: rgba(0, 180, 200, 0.1);
  border-radius: 999px;
}

.sc-inner-page__featured {
  margin: 0 0 1.75rem;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(7, 27, 77, 0.08);
  box-shadow: 0 12px 32px rgba(7, 27, 77, 0.08);
}

.sc-inner-page__featured img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
}

.sc-inner-page__content .sc-blog-cta {
  margin-top: 2.5rem;
  padding: 22px 24px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(0, 180, 200, 0.08) 0%, rgba(7, 27, 77, 0.04) 100%);
  border: 1px solid rgba(0, 180, 200, 0.2);
}

.sc-inner-page__content .sc-blog-cta p {
  margin: 0 0 12px;
}

.sc-inner-page__content .sc-blog-cta p:last-child {
  margin-bottom: 0;
}

.sc-blog-cta__btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  color: #fff !important;
  text-decoration: none !important;
  background: linear-gradient(135deg, var(--sc-cyan) 0%, var(--sc-cyan-dim) 100%);
  box-shadow: 0 8px 20px rgba(0, 150, 170, 0.25);
}

.sc-blog-cta__btn:hover {
  opacity: 0.95;
  text-decoration: none !important;
}

/* Hide legacy theme bits if any leak in */
body.sc-inner-premium .main-banner,
body.sc-inner-premium .blog.section-padding .sidebar,
body.sc-legal-premium-page .main-banner {
  display: none !important;
}

/* Plugin / legacy breadcrumbs (legal pages use in-page title only) */
body.sc-legal-premium-page .breadcrumbs,
body.sc-legal-premium-page .breadcrumb,
body.sc-legal-premium-page .rank-math-breadcrumb,
body.sc-legal-premium-page .yoast-breadcrumb,
body.sc-legal-premium-page nav[aria-label="breadcrumbs"] {
  display: none !important;
}

/* Legal pages */
.sc-legal-page {
  font-family: "Outfit", "DM Sans", system-ui, sans-serif;
  background: linear-gradient(180deg, #f0f9fa 0%, #ffffff 35%, #f5fafb 100%);
  padding-bottom: 48px;
}

.sc-legal-page__hero {
  padding: 36px 20px 28px;
  text-align: center;
  border-bottom: 1px solid rgba(7, 27, 77, 0.06);
  background: linear-gradient(180deg, #f8fcfd 0%, #ffffff 100%);
}

.sc-legal-page__hero-inner {
  max-width: 720px;
  margin: 0 auto;
}

.sc-legal-page__title {
  position: relative;
  margin: 0 0 12px;
  padding-bottom: 16px;
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--sc-navy);
  line-height: 1.2;
}

.sc-legal-page__title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(120px, 28%);
  height: 3px;
  border-radius: 2px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, var(--sc-cyan), var(--sc-cyan-dim));
}

.sc-legal-page__meta {
  margin: 0;
  font-size: 14px;
  color: var(--sc-muted);
  font-weight: 600;
}

.sc-legal-page__body {
  max-width: 800px;
  margin: 0 auto;
  padding: 28px 20px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sc-legal-card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid rgba(7, 27, 77, 0.07);
  box-shadow: 0 8px 28px rgba(7, 27, 77, 0.05);
  padding: 22px 24px;
}

.sc-legal-card h2 {
  position: relative;
  margin: 0 0 14px;
  padding-bottom: 12px;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--sc-navy);
  letter-spacing: -0.02em;
}

.sc-legal-card h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 52px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--sc-cyan), var(--sc-cyan-dim));
}

.sc-legal-card__contact-lines {
  margin-top: 4px;
}

.sc-legal-card p,
.sc-legal-card li {
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--sc-text);
}

.sc-legal-card ul {
  margin: 0;
  padding-left: 1.2em;
}

.sc-legal-card li:last-child {
  margin-bottom: 0;
}

.sc-legal-card--contact a {
  color: var(--sc-cyan-dim);
  font-weight: 600;
  text-decoration: none;
}

.sc-legal-card--contact a:hover {
  text-decoration: underline;
}

@media (max-width: 600px) {
  .sc-inner-page__article {
    padding: 24px 18px 28px;
  }
}
