/* ============================================================
   KnowYourGujarat — Community Contribution Guidelines Stylesheet
   Design Personality: Clean, Minimal, Strict, Trustworthy, Editorial
   ============================================================ */

:root {
  --gl-navy: #0A1C3E;
  --gl-navy-light: #1E293B;
  --gl-navy-hover: #07142b;
  --gl-blue-brand: #0A4FCD;
  --gl-blue-pale: #F1F6FD;
  --gl-blue-panel: #F4F8FD;
  --gl-blue-callout: #EFF6FF;
  --gl-blue-border: #DBEAFE;
  --gl-blue-lineart: #93C5FD;
  --gl-border-subtle: #E2E8F0;
  --gl-border-light: #EEF2F6;
  --gl-text-heading: #0A1C3E;
  --gl-text-body: #475569;
  --gl-text-muted: #64748B;
  --gl-saffron: #FF7A00;
  --gl-saffron-hover: #E06900;
  --gl-prohibited-red: #EF4444;
  --gl-prohibited-bg: rgba(239, 68, 68, 0.06);
  --gl-prohibited-border: rgba(239, 68, 68, 0.2);
  --gl-font-serif: 'Playfair Display', Georgia, serif;
  --gl-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --gl-font-script: 'Caveat', cursive, sans-serif;
}

/* Base resets & typography */
body.guidelines-page {
  background-color: #FFFFFF !important;
  color: var(--gl-text-body);
  font-family: var(--gl-font-sans);
  margin: 0;
  padding-top: 64px; /* for fixed navbar */
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.dot-saffron {
  color: var(--gl-saffron);
}

.gl-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.gl-hero {
  padding: 60px 0 48px;
  background: #FFFFFF;
}

.gl-hero__inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.gl-eyebrow-wrap {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.gl-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gl-blue-brand);
}

.gl-eyebrow-line {
  display: inline-block;
  width: 44px;
  height: 1.5px;
  background-color: #CBD5E1;
}

.gl-hero__title {
  font-family: var(--gl-font-serif);
  font-size: 52px;
  font-weight: 700;
  line-height: 1.12;
  color: var(--gl-text-heading);
  margin: 0 0 20px;
  letter-spacing: -0.02em;
}

.gl-hero__lead {
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--gl-text-body);
  max-width: 580px;
  margin: 0 0 32px;
}

.gl-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: var(--gl-navy);
  color: #FFFFFF;
  font-size: 14.5px;
  font-weight: 600;
  padding: 13px 26px;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(10, 28, 62, 0.12);
}

.gl-btn-primary:hover {
  background-color: var(--gl-navy-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(10, 28, 62, 0.18);
  color: #FFFFFF;
}

.gl-btn-primary .arrow {
  transition: transform 0.2s ease;
}

.gl-btn-primary:hover .arrow {
  transform: translateX(4px);
}

/* Hero Right: SVG Line-art + Checklist */
.gl-hero__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.gl-hero__art-box {
  position: relative;
  width: 100%;
  max-width: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gl-hero__svg-map {
  width: 100%;
  height: auto;
  overflow: visible;
}

.gl-hero__side-labels {
  position: absolute;
  right: -24px;
  top: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  z-index: 2;
}

.gl-side-text-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.26em;
  color: #94A3B8;
  text-transform: uppercase;
  border-left: 1.5px solid #E2E8F0;
  padding-left: 8px;
}

.gl-script-note {
  font-family: var(--gl-font-script);
  font-size: 19px;
  line-height: 1.25;
  color: #64748B;
  transform: rotate(-7deg);
  text-align: right;
  margin-top: 16px;
  max-width: 110px;
  user-select: none;
}

/* ============================================================
   SUB-NAVIGATION BAND (INDEX BAR)
   ============================================================ */
.gl-nav-band {
  background-color: var(--gl-blue-pale);
  border-top: 1px solid var(--gl-border-subtle);
  border-bottom: 1px solid var(--gl-border-subtle);
  position: sticky;
  top: 64px;
  z-index: 100;
  backdrop-filter: blur(8px);
}

.gl-nav-band__inner {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.gl-nav-band__inner::-webkit-scrollbar {
  display: none;
}

.gl-nav-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--gl-text-body);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  transition: color 0.18s ease;
  border-right: 1px solid rgba(226, 232, 240, 0.7);
}

.gl-nav-item:last-child {
  border-right: none;
}

.gl-nav-item svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  stroke-width: 1.9;
  flex-shrink: 0;
}

.gl-nav-item:hover {
  color: var(--gl-navy);
}

.gl-nav-item.active {
  color: var(--gl-navy);
  font-weight: 700;
}

.gl-nav-item.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 12px;
  right: 12px;
  height: 2.5px;
  background-color: var(--gl-navy);
  border-radius: 2px 2px 0 0;
}

/* ============================================================
   INTRO SECTION (#overview)
   ============================================================ */
.gl-intro-section {
  padding: 56px 0 44px;
}

.gl-intro-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 40px;
  align-items: center;
}

.gl-sec-title {
  font-family: var(--gl-font-serif);
  font-size: 34px;
  font-weight: 700;
  color: var(--gl-text-heading);
  margin: 0 0 14px;
  letter-spacing: -0.015em;
}

.gl-sec-desc {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--gl-text-body);
  margin: 0;
}

.gl-quote-callout {
  border-left: 2px solid #E2E8F0;
  padding-left: 24px;
  position: relative;
}

.gl-quote-mark {
  font-family: var(--gl-font-serif);
  font-size: 48px;
  line-height: 0.8;
  color: #BFDBFE;
  margin-bottom: 4px;
  user-select: none;
}

.gl-quote-text {
  font-family: var(--gl-font-serif);
  font-style: italic;
  font-size: 18px;
  line-height: 1.4;
  color: var(--gl-text-heading);
  margin: 0 0 10px;
}

.gl-quote-bar {
  width: 36px;
  height: 2.5px;
  background-color: var(--gl-saffron);
  border-radius: 2px;
}

/* ============================================================
   SECTION 01: WHAT BELONGS (#content-guidelines)
   ============================================================ */
.gl-section-01 {
  padding: 32px 0 60px;
}

.gl-section-header {
  margin-bottom: 36px;
}

.gl-num-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: #EBF3FC;
  color: var(--gl-blue-brand);
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 16px;
  border: 1px solid #DCE9F9;
}

.gl-belongs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 48px;
}

.gl-belongs-col {
  display: flex;
  flex-direction: column;
}

.gl-item-row {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 24px 0;
  border-bottom: 1px solid var(--gl-border-subtle);
}

.gl-item-row:first-child {
  padding-top: 8px;
}

.gl-item-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background-color: #F8FAFC;
  border: 1px solid #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gl-blue-brand);
  flex-shrink: 0;
  margin-top: 2px;
}

.gl-item-icon svg {
  width: 19px;
  height: 19px;
  stroke: currentColor;
  stroke-width: 1.8;
}

.gl-item-title {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--gl-text-heading);
  margin: 0 0 5px;
}

.gl-item-desc {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--gl-text-body);
  margin: 0;
}

/* ============================================================
   SECTION 02: WHAT IS STRICTLY PROHIBITED (#photo-guidelines)
   ============================================================ */
.gl-section-02 {
  background-color: var(--gl-blue-panel);
  border-top: 1px solid #E2ECF7;
  border-bottom: 1px solid #E2ECF7;
  padding: 60px 0 70px;
}

.gl-prohibited-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  margin-top: 40px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(10, 28, 62, 0.03);
  overflow: hidden;
}

.gl-prohibited-col {
  padding: 32px 20px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-right: 1px solid var(--gl-border-subtle);
  background: #FFFFFF;
  position: relative;
  transition: background 0.2s ease;
}

.gl-prohibited-col:last-child {
  border-right: none;
}

.gl-prohibited-col:hover {
  background: #FCFDFE;
}

.gl-prohibition-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--gl-prohibited-bg);
  border: 1px solid var(--gl-prohibited-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gl-prohibited-red);
  margin-bottom: 18px;
  transition: transform 0.2s ease;
}

.gl-prohibited-col:hover .gl-prohibition-icon {
  transform: scale(1.05);
}

.gl-prohibition-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 2;
}

.gl-prohibited-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--gl-text-heading);
  line-height: 1.35;
  margin: 0 0 10px;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gl-prohibited-desc {
  font-size: 12.8px;
  line-height: 1.5;
  color: var(--gl-text-muted);
  margin: 0;
}

/* ============================================================
   SECTION 03: THE MODERATION LIFECYCLE (#community-standards)
   ============================================================ */
.gl-section-03 {
  padding: 68px 0 54px;
}

.gl-lifecycle-track {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  margin-top: 48px;
  padding: 10px 0;
}

.gl-lifecycle-line {
  position: absolute;
  top: 26px;
  left: 60px;
  right: 60px;
  height: 1.5px;
  background-color: #CBD5E1;
  z-index: 1;
}

.gl-lifecycle-step {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  max-width: 210px;
}

.gl-step-node {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: #FFFFFF;
  border: 1.5px solid var(--gl-blue-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gl-blue-brand);
  margin-bottom: 14px;
  box-shadow: 0 0 0 5px #FFFFFF, 0 2px 8px rgba(10, 79, 205, 0.08);
  transition: all 0.2s ease;
}

.gl-step-node svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 1.9;
}

.gl-step-title {
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gl-navy);
  margin: 0;
}

/* Moderation Explanation Strip */
.gl-moderation-strip {
  margin-top: 48px;
  background-color: var(--gl-blue-callout);
  border: 1px solid var(--gl-blue-border);
  border-radius: 8px;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.gl-strip-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #DBEAFE;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gl-blue-brand);
  flex-shrink: 0;
}

.gl-strip-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
}

.gl-strip-text {
  font-size: 14px;
  line-height: 1.55;
  color: #1E3A8A;
  margin: 0;
}

/* ============================================================
   EDITORIAL DETAIL SECTIONS (Anchors)
   ============================================================ */
.gl-detail-panel {
  padding: 56px 0;
  border-top: 1px solid var(--gl-border-subtle);
}

.gl-detail-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
}

.gl-detail-aside h3 {
  font-family: var(--gl-font-serif);
  font-size: 24px;
  color: var(--gl-text-heading);
  margin: 0 0 10px;
}

.gl-detail-aside p {
  font-size: 13.5px;
  color: var(--gl-text-muted);
  line-height: 1.55;
  margin: 0;
}

.gl-detail-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.gl-detail-card {
  padding: 20px 24px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
}

.gl-detail-card h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--gl-text-heading);
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.gl-detail-card p {
  font-size: 13.8px;
  color: var(--gl-text-body);
  line-height: 1.55;
  margin: 0;
}

/* Reporting Section Banner */
.gl-report-banner {
  background-color: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 32px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 24px;
}

.gl-report-info h3 {
  font-family: var(--gl-font-serif);
  font-size: 24px;
  color: var(--gl-text-heading);
  margin: 0 0 6px;
}

.gl-report-info p {
  font-size: 14.5px;
  color: var(--gl-text-body);
  margin: 0;
}

.gl-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #FFFFFF;
  color: var(--gl-navy);
  border: 1.5px solid #CBD5E1;
  font-size: 14px;
  font-weight: 600;
  padding: 11px 22px;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.18s ease;
}

.gl-btn-secondary:hover {
  border-color: var(--gl-navy);
  background-color: #F8FAFC;
  color: var(--gl-navy);
}

/* ============================================================
   FINAL CTA WITH SKYLINE ARTWORK
   ============================================================ */
.gl-cta-section {
  padding: 68px 0 0;
  text-align: center;
  background: #FFFFFF;
  position: relative;
  overflow: hidden;
  border-top: 1px solid #E2E8F0;
}

.gl-cta__label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.28em;
  color: #94A3B8;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.gl-cta__title {
  font-family: var(--gl-font-serif);
  font-size: 38px;
  font-weight: 700;
  color: var(--gl-text-heading);
  margin: 0 0 24px;
}

.gl-cta__action {
  margin-bottom: 40px;
}

.gl-cta__script-tag {
  position: absolute;
  right: max(20px, calc(50% - 480px));
  top: 50px;
  font-family: var(--gl-font-script);
  font-size: 20px;
  color: #94A3B8;
  transform: rotate(8deg);
  text-align: left;
  user-select: none;
}

.gl-skyline-vector {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  display: block;
  opacity: 0.75;
  pointer-events: none;
}

/* ============================================================
   RESPONSIVE DESIGN BREAKPOINTS
   ============================================================ */
@media (max-width: 1024px) {
  .gl-hero__inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .gl-hero__title {
    font-size: 42px;
  }
  .gl-prohibited-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .gl-prohibited-col:nth-child(3) {
    border-right: none;
  }
  .gl-prohibited-col:nth-child(4) {
    border-top: 1px solid var(--gl-border-subtle);
  }
  .gl-prohibited-col:nth-child(5) {
    border-top: 1px solid var(--gl-border-subtle);
    border-right: none;
  }
  .gl-detail-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .gl-hero {
    padding: 36px 0 28px;
  }
  .gl-hero__inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .gl-hero__title {
    font-size: 34px;
  }
  .gl-hero__visual {
    justify-content: center;
  }
  .gl-hero__side-labels {
    display: none;
  }
  .gl-intro-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .gl-belongs-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .gl-prohibited-grid {
    grid-template-columns: 1fr;
  }
  .gl-prohibited-col {
    border-right: none !important;
    border-bottom: 1px solid var(--gl-border-subtle);
    padding: 24px 16px;
  }
  .gl-prohibited-col:last-child {
    border-bottom: none;
  }
  .gl-prohibited-title {
    min-height: auto;
  }
  .gl-lifecycle-track {
    flex-direction: column;
    gap: 28px;
    align-items: flex-start;
    padding-left: 20px;
  }
  .gl-lifecycle-line {
    top: 20px;
    bottom: 20px;
    left: 45px;
    width: 2px;
    height: auto;
    right: auto;
  }
  .gl-lifecycle-step {
    flex-direction: row;
    align-items: center;
    gap: 16px;
    max-width: 100%;
    text-align: left;
  }
  .gl-step-node {
    margin-bottom: 0;
  }
  .gl-report-banner {
    flex-direction: column;
    align-items: flex-start;
  }
  .gl-cta__title {
    font-size: 28px;
  }
  .gl-cta__script-tag {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
