/* BharatGoGreen Authority Layouts — public styles. Scoped to .bggal. */
.bggal,
.bggal * { box-sizing: border-box; }

.bggal {
  --bgg-green: #69b532;
  --bgg-deep: #2f6f3d;
  --bgg-text: #20292d;
  --bgg-surface: #f5f8f2;
  --bgg-muted: #667268;
  --bgg-line: #dfe8dc;
  --bgg-white: #ffffff;
  --bgg-max: 1180px;
  color: var(--bgg-text);
  background: var(--bgg-white);
  font-family: inherit;
  line-height: 1.65;
}

.bggal a { color: inherit; }
.bggal img { max-width: 100%; height: auto; }
.bggal h1,
.bggal h2,
.bggal h3,
.bggal p { margin-top: 0; }

.bggal-container {
  width: min(calc(100% - 40px), var(--bgg-max));
  margin-inline: auto;
}

.bggal-hero {
  background: #eef3eb;
  border-bottom: 1px solid var(--bgg-line);
  padding-block: clamp(28px, 4vw, 48px);
}

.bggal-hero-inner {
  min-height: 480px;
  display: grid;
  gap: 0;
  align-items: stretch;
  padding-block: 0;
  background: #fff;
  border: 1px solid var(--bgg-line);
  overflow: hidden;
  box-shadow: 0 16px 46px rgba(38, 75, 47, .06);
}
.bggal-hero-inner--image { grid-template-columns: minmax(0, 1.12fr) minmax(360px, .88fr); }
.bggal-hero-inner--text { grid-template-columns: minmax(0, 900px); }
.bggal-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(42px, 5vw, 72px);
  background:
    radial-gradient(circle at 90% 12%, rgba(105,181,50,.11), transparent 35%),
    linear-gradient(180deg, #fbfcfa, var(--bgg-surface));
}

.bggal-kicker {
  margin-bottom: 12px;
  color: var(--bgg-deep);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.bggal-hero h1,
.bggal-author h1 {
  color: var(--bgg-text);
  font-size: clamp(2.25rem, 4.4vw, 3.9rem);
  line-height: 1.04;
  letter-spacing: -.04em;
  margin-bottom: 20px;
  max-width: 820px;
}

.bggal-hero-text {
  max-width: 760px;
  color: #526057;
  font-size: clamp(1.05rem, 1.5vw, 1.24rem);
  margin-bottom: 28px;
}

.bggal-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.bggal-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: 1px solid var(--bgg-deep);
  border-radius: 6px;
  font-weight: 750;
  text-decoration: none !important;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}

.bggal-button--primary { background: var(--bgg-deep); color: #fff !important; }
.bggal-button--primary:hover,
.bggal-button--primary:focus-visible { background: var(--bgg-green); border-color: var(--bgg-green); }
.bggal-button--secondary { background: #fff; color: var(--bgg-deep) !important; }
.bggal-button--secondary:hover,
.bggal-button--secondary:focus-visible { background: var(--bgg-surface); }

.bggal a:focus-visible,
.bggal button:focus-visible { outline: 3px solid #b8db9b; outline-offset: 3px; }

.bggal-hero-visual {
  margin: 0;
  width: 100%;
  max-width: none;
  min-height: 100%;
  justify-self: stretch;
  border: 0;
  background: #eaf0e7;
  overflow: hidden;
  box-shadow: none;
}
.bggal-hero-visual picture {
  display: block;
  width: 100%;
  height: 100%;
}
.bggal-hero-visual img {
  width: 100% !important;
  height: 100% !important;
  min-height: 100%;
  display: block !important;
  object-fit: cover !important;
  object-position: center center;
}


.bggal-section { padding-block: clamp(56px, 7vw, 86px); }
.bggal-section + .bggal-section { border-top: 1px solid #edf1eb; }
.bggal-section--topics,
.bggal-section--tools,
.bggal-section--author { background: var(--bgg-surface); }

.bggal-section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 28px;
}
.bggal-section-head h2,
.bggal-tools-wrap h2,
.bggal-newsletter h2,
.bggal-author-home h2,
.bggal-engineer-box h2 {
  margin-bottom: 0;
  color: var(--bgg-text);
  font-size: clamp(1.7rem, 3vw, 2.55rem);
  line-height: 1.15;
  letter-spacing: -.025em;
}

.bggal-topic-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border: 1px solid var(--bgg-line);
  background: #fff;
}
.bggal-topic {
  min-height: 170px;
  padding: 24px;
  text-decoration: none !important;
  border-right: 1px solid var(--bgg-line);
  color: var(--bgg-text) !important;
}
.bggal-topic:last-child { border-right: 0; }
.bggal-topic strong { display: block; margin: 11px 0 8px; font-size: 1.05rem; line-height: 1.25; }
.bggal-topic > span:last-child { display: block; color: var(--bgg-muted); font-size: .9rem; line-height: 1.5; }
.bggal-topic:hover { background: var(--bgg-surface); }
.bggal-topic-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--bgg-green); display: block; }

.bggal-feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, .75fr);
  gap: 26px;
  align-items: start;
}
.bggal-feature-main,
.bggal-feature-side { min-width: 0; }
.bggal-feature-side {
  display: grid;
  gap: 12px;
  align-content: start;
}

.bggal-card {
  background: #fff;
  border: 1px solid var(--bgg-line);
  overflow: hidden;
  min-width: 0;
}
.bggal-card-media {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #edf3ea;
  overflow: hidden;
}
.bggal-card-media img {
  display: block !important;
  position: absolute;
  inset: 0;
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center center;
}
.bggal-card-body { padding: 22px; min-width: 0; }
.bggal-card-kicker { color: var(--bgg-deep); font-size: .72rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; margin-bottom: 8px; }
.bggal-card h3 { font-size: 1.3rem; line-height: 1.2; letter-spacing: -.02em; margin-bottom: 10px; overflow-wrap: anywhere; }
.bggal-card--feature h3 { font-size: clamp(1.65rem, 3vw, 2.35rem); }
.bggal-card h3 a { text-decoration: none !important; color: var(--bgg-text) !important; }
.bggal-card p { color: var(--bgg-muted); margin-bottom: 14px; }

/* Supporting features are intentionally text-led: lighter, faster and immune to thumbnail stretching. */
.bggal-card--compact {
  border-left: 4px solid var(--bgg-green);
  box-shadow: none;
}
.bggal-card--compact .bggal-card-body { padding: 18px 20px 19px; }
.bggal-card--compact h3 { font-size: clamp(1rem, 1.35vw, 1.16rem); margin-bottom: 10px; line-height: 1.28; }
.bggal-card--compact .bggal-card-kicker { margin-bottom: 6px; }

.bggal-image-placeholder { display: grid; place-content: center; min-height: 180px; background: linear-gradient(135deg, var(--bgg-deep), var(--bgg-green)); color: #fff; }
.bggal-image-placeholder span { font-weight: 900; letter-spacing: .08em; }

.bggal-text-link { color: var(--bgg-deep) !important; font-weight: 800; text-decoration: none !important; }
.bggal-text-link:hover { text-decoration: underline !important; text-underline-offset: 4px; }

.bggal-section--engineer { padding-block: 34px; border-top: 0 !important; }
.bggal-engineer-box {
  border-left: 5px solid var(--bgg-green);
  background: #fff;
  box-shadow: 0 8px 32px rgba(32, 60, 40, .06);
  display: grid;
  grid-template-columns: 180px 1fr;
}
.bggal-engineer-label { background: var(--bgg-deep); color: #fff; display: grid; place-items: center; padding: 24px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; text-align: center; }
.bggal-engineer-copy { padding: 28px 32px; }
.bggal-engineer-copy h2 a { color: inherit !important; text-decoration: none !important; }
.bggal-engineer-copy p { margin: 12px 0; color: var(--bgg-muted); }

.bggal-guide-list { border-top: 1px solid var(--bgg-line); }
.bggal-guide { display: grid; grid-template-columns: 70px 1fr 30px; gap: 16px; align-items: center; padding: 18px 4px; border-bottom: 1px solid var(--bgg-line); text-decoration: none !important; color: var(--bgg-text) !important; }
.bggal-guide-num { color: var(--bgg-green); font-weight: 900; font-variant-numeric: tabular-nums; }
.bggal-guide-title { font-weight: 800; }
.bggal-guide-arrow { justify-self: end; color: var(--bgg-deep); }
.bggal-guide:hover .bggal-guide-title { color: var(--bgg-deep); }

.bggal-tools-wrap { display: grid; grid-template-columns: 1.2fr .8fr; gap: 50px; align-items: center; }
.bggal-tools-wrap p { color: var(--bgg-muted); max-width: 700px; }
.bggal-tool-links { border-left: 1px solid var(--bgg-line); padding-left: 30px; display: grid; gap: 10px; }
.bggal-tool-links a { display: flex; justify-content: space-between; gap: 15px; padding: 14px 0; border-bottom: 1px solid var(--bgg-line); text-decoration: none !important; font-weight: 800; }

.bggal-author-home { display: grid; grid-template-columns: 180px 1fr; gap: 38px; align-items: center; }
.bggal-author-photo img,
.bggal-author-avatar img { border-radius: 50%; display: block; box-shadow: 0 0 0 8px #fff, 0 8px 28px rgba(40, 70, 45, .12); }
.bggal-author-home-copy > p { color: var(--bgg-muted); max-width: 820px; }
.bggal-author-role { color: var(--bgg-deep) !important; font-weight: 850; margin-bottom: 2px !important; }
.bggal-author-profession { color: var(--bgg-text) !important; font-weight: 700; }
.bggal-inline-list { display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 18px 0; }
.bggal-inline-list span { position: relative; color: var(--bgg-deep); font-size: .9rem; font-weight: 750; }
.bggal-inline-list span:not(:last-child)::after { content: "·"; margin-left: 14px; color: var(--bgg-green); }

.bggal-section--newsletter { background: var(--bgg-deep); color: #fff; border: 0 !important; }
.bggal-newsletter { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; }
.bggal-newsletter h2 { color: #fff; }
.bggal-newsletter .bggal-kicker { color: #cde6bf; }
.bggal-newsletter p { margin-bottom: 0; color: #e6efe4; max-width: 780px; }
.bggal-newsletter .bggal-button--primary { background: #fff; color: var(--bgg-deep) !important; border-color: #fff; }

/* Author archive */
.bggal-author-hero { background: linear-gradient(180deg, var(--bgg-surface), #fff); border-bottom: 1px solid var(--bgg-line); padding-block: 30px 64px; }
.bggal-breadcrumb { display: flex; gap: 8px; align-items: center; margin-bottom: 34px; color: var(--bgg-muted); font-size: .9rem; }
.bggal-breadcrumb a { color: var(--bgg-deep) !important; text-decoration: none !important; }
.bggal-author-hero-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(30px, 6vw, 72px); align-items: center; }
.bggal-author-main h1 { margin-bottom: 10px; }
.bggal-author-intro { max-width: 850px; color: var(--bgg-muted); font-size: 1.04rem; }
.bggal-author-links { display: flex; gap: 18px; margin-top: 20px; }
.bggal-author-links a { color: var(--bgg-deep) !important; font-weight: 800; text-decoration: none !important; }

.bggal-credentials-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.bggal-credential-block { border-top: 3px solid var(--bgg-green); padding-top: 18px; }
.bggal-pill-list { display: flex; flex-wrap: wrap; gap: 9px; }
.bggal-pill-list span { display: inline-flex; align-items: center; min-height: 34px; padding: 5px 10px; border: 1px solid var(--bgg-line); background: #fff; color: var(--bgg-deep); font-weight: 750; font-size: .88rem; }

.bggal-post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.bggal-pagination { margin-top: 36px; }
.bggal-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.bggal-pagination .page-numbers { display: inline-flex; min-width: 40px; min-height: 40px; align-items: center; justify-content: center; border: 1px solid var(--bgg-line); text-decoration: none !important; padding: 7px 11px; }
.bggal-pagination .current { background: var(--bgg-deep); color: #fff; border-color: var(--bgg-deep); }

@media (max-width: 980px) {
  .bggal-topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bggal-topic { border-bottom: 1px solid var(--bgg-line); }
  .bggal-topic:nth-child(even) { border-right: 0; }
  .bggal-topic:last-child { border-bottom: 0; }
  .bggal-feature-grid { grid-template-columns: 1fr; }
  .bggal-feature-side { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .bggal-tools-wrap { grid-template-columns: 1fr; }
  .bggal-tool-links { border-left: 0; border-top: 1px solid var(--bgg-line); padding: 20px 0 0; }
  .bggal-post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}


@media (max-width: 760px) {
  .bggal-container { width: min(calc(100% - 28px), var(--bgg-max)); }
  .bggal-hero { padding-block: 18px; }
  .bggal-hero-inner,
  .bggal-hero-inner--image,
  .bggal-hero-inner--text { min-height: auto; grid-template-columns: 1fr; padding-block: 0; gap: 0; }
  .bggal-hero-copy { padding: 34px 24px 30px; }
  .bggal-hero-visual { min-height: 240px; height: 240px; }
  .bggal-hero-visual img { min-height: 240px; }
  .bggal-hero h1,
  .bggal-author h1 { font-size: clamp(2rem, 10vw, 3rem); }
  .bggal-section { padding-block: 48px; }
  .bggal-topic-grid { grid-template-columns: 1fr; }
  .bggal-topic { min-height: auto; border-right: 0; }
  .bggal-feature-side { grid-template-columns: 1fr; }
  .bggal-card--compact .bggal-card-body { padding: 16px 17px 17px; }
  .bggal-engineer-box { grid-template-columns: 1fr; }
  .bggal-engineer-label { justify-content: start; place-items: initial; text-align: left; padding: 14px 20px; }
  .bggal-engineer-copy { padding: 22px 20px; }
  .bggal-guide { grid-template-columns: 46px 1fr 20px; }
  .bggal-author-home { grid-template-columns: 1fr; }
  .bggal-author-photo img { width: 120px; }
  .bggal-newsletter { grid-template-columns: 1fr; }
  .bggal-newsletter .bggal-button { justify-self: start; }
  .bggal-author-hero { padding-block: 20px 48px; }
  .bggal-author-hero-grid { grid-template-columns: 1fr; }
  .bggal-author-avatar img { width: 150px; }
  .bggal-credentials-grid { grid-template-columns: 1fr; }
  .bggal-post-grid { grid-template-columns: 1fr; }
  .bggal-inline-list span:not(:last-child)::after { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .bggal * { scroll-behavior: auto !important; transition: none !important; }
}
