/* ============================================================
   KINGDOM — Education guide layout (data-driven)
   ============================================================ */
.guide { background: var(--ivory); }

/* ---- Hero ---- */
.g-hero { position: relative; overflow: hidden; }
.g-hero.dark { background: var(--emerald-deep); color: var(--ivory); }
.g-hero.light { background: linear-gradient(180deg, #f1ece3 0%, var(--ivory) 100%); color: var(--ink); }
.g-hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 40px; align-items: center; min-height: 480px; }
.g-hero-copy { padding: 70px 0; max-width: 560px; }
.g-badge { display: inline-block; white-space: nowrap; font-family: var(--sans); font-weight: 700; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; border: 1px solid var(--line-gold); border-radius: 4px; padding: 7px 14px; }
.g-hero.dark .g-badge { color: var(--gold-soft); border-color: rgba(200,161,90,0.4); }
.g-hero.light .g-badge { color: var(--gold-deep); }
.g-hero h1 { font-size: clamp(38px, 4.6vw, 62px); line-height: 1.07; margin: 22px 0 0; }
.g-hero.dark h1 { color: var(--ivory); }
.g-hero.light h1 { color: var(--emerald); }
.g-hero .g-sub { margin-top: 20px; font-size: 16px; line-height: 1.7; max-width: 480px; }
.g-hero.dark .g-sub { color: rgba(247,242,236,0.75); }
.g-hero.light .g-sub { color: var(--charcoal); }
.g-hero-cta { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.g-hero-img { position: relative; align-self: stretch; }
.g-hero-img image-slot, .g-hero-img img { width: 100%; height: 100%; min-height: 480px; object-fit: cover; display: block; }

/* ---- Section frame ---- */
.g-sec { padding: 64px 0; border-top: 1px solid var(--line); }
.g-sec.alt { background: var(--ivory-warm); }
.g-sec-title { text-align: center; font-size: clamp(26px, 3vw, 38px); color: var(--emerald); margin-bottom: 40px; }
.g-sec-title.left { text-align: left; }

/* ---- What is (intro + image) ---- */
.g-intro { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.g-intro.noimg { grid-template-columns: 1fr; max-width: 820px; }
.g-intro h2 { font-size: clamp(26px, 3vw, 38px); color: var(--emerald); margin-bottom: 20px; }
.g-intro p { color: var(--charcoal); line-height: 1.8; margin-bottom: 14px; font-size: 15.5px; }
.g-intro p b, .g-intro p strong { color: var(--emerald); font-weight: 700; }
.g-intro-img image-slot, .g-intro-img img { width: 100%; height: 320px; border-radius: 8px; object-fit: cover; display: block; }

/* ---- Icon card grids (why / lookfor) ---- */
.g-cards { display: grid; gap: 0; }
.g-cards.c4 { grid-template-columns: repeat(4, 1fr); }
.g-cards.c5 { grid-template-columns: repeat(5, 1fr); }
.g-card { text-align: center; padding: 8px 22px; border-left: 1px solid var(--line); }
.g-card:first-child { border-left: none; }
.g-card .g-ico { display: block; width: 42px; height: 42px; margin: 0 auto 16px; stroke: var(--gold); stroke-width: 1.2; fill: none; }
.g-card .g-ico.fill { fill: var(--gold); stroke: none; }
.g-card h3 { font-family: var(--serif); font-size: 19px; color: var(--emerald); margin-bottom: 10px; line-height: 1.2; }
.g-card p { font-size: 13.5px; color: var(--charcoal); line-height: 1.6; }
.g-card .g-4c { font-family: var(--serif); font-size: 34px; color: var(--gold); line-height: 1; height: 42px; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.g-card .g-title-spacer { height: 23px; margin-bottom: 10px; }
.g-card.noico { padding-top: 8px; }
.g-card.noico h3 { padding-top: 4px; }

/* ---- Gemstone choice cards (with image) ---- */
.g-choices { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; }
.g-choice { text-align: center; padding: 0 18px; border-left: 1px solid var(--line); }
.g-choice:first-child { border-left: none; }
.g-choice image-slot, .g-choice img { width: 110px; height: 110px; border-radius: 8px; margin: 0 auto 16px; object-fit: cover; display: block; }
.g-choice h3 { font-family: var(--serif); font-size: 20px; color: var(--emerald); margin-bottom: 9px; }
.g-choice p { font-size: 13px; color: var(--charcoal); line-height: 1.55; }

/* ---- Why-choose with images (colored gemstones variant) ---- */
.g-whyimg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.g-whyimg-card { text-align: center; }
.g-whyimg-card image-slot, .g-whyimg-card img { width: 100%; height: 150px; border-radius: 8px; margin-bottom: 16px; object-fit: cover; display: block; }
.g-whyimg-card h3 { font-family: var(--serif); font-size: 18px; color: var(--emerald); margin-bottom: 8px; }
.g-whyimg-card p { font-size: 13px; color: var(--charcoal); line-height: 1.55; }

/* ---- Who is it for (checklist + image) ---- */
.g-whofor { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 44px; align-items: center; }
.g-whofor.noimg { grid-template-columns: 1fr; max-width: 760px; }
.g-whofor h2 { font-size: clamp(24px, 2.6vw, 32px); color: var(--emerald); margin-bottom: 24px; }
.g-checklist { display: flex; flex-direction: column; gap: 16px; }
.g-check { display: flex; gap: 13px; align-items: flex-start; font-size: 15px; color: var(--ink); line-height: 1.5; }
.g-check svg { width: 21px; height: 21px; stroke: var(--gold); stroke-width: 1.5; fill: none; flex-shrink: 0; margin-top: 1px; }
.g-whofor-img image-slot, .g-whofor-img img { width: 100%; height: 300px; border-radius: 8px; object-fit: cover; display: block; }

/* ---- Comparison table ---- */
.g-table { width: 100%; border-collapse: collapse; border: 1px solid var(--line-gold); border-radius: 8px; overflow: hidden; font-size: 14px; }
.g-table th, .g-table td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.g-table thead th { background: var(--ivory-warm); font-family: var(--sans); font-weight: 700; font-size: 12px; letter-spacing: 0.04em; color: var(--gold-deep); text-transform: uppercase; }
.g-table tbody tr:last-child td { border-bottom: none; }
.g-table tbody td:first-child { font-weight: 700; color: var(--emerald); }
.g-table td + td, .g-table th + th { border-left: 1px solid var(--line); }
.g-table tbody tr:nth-child(even) { background: rgba(200,161,90,0.04); }

/* ---- Inspiration thumbnails ---- */
.g-insp { display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; }
.g-insp-item { text-align: center; }
.g-insp-item image-slot, .g-insp-item img { width: 100%; height: 150px; border-radius: 8px; margin-bottom: 12px; object-fit: cover; display: block; }
.g-insp-item span { font-size: 13.5px; color: var(--charcoal); }

/* ---- Bottom CTA banner ---- */
.g-cta-banner { position: relative; background: var(--emerald-deep); color: var(--ivory); overflow: hidden; }
.g-cta-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 30px; align-items: center; padding: 56px 0; }
.g-cta-banner h2 { font-size: clamp(26px, 3vw, 38px); color: var(--ivory); line-height: 1.15; }
.g-cta-banner p { color: rgba(247,242,236,0.7); margin-top: 16px; max-width: 460px; line-height: 1.6; }
.g-cta-banner .g-hero-cta { margin-top: 28px; }
.g-cta-img image-slot, .g-cta-img img { width: 100%; height: 200px; border-radius: 8px; object-fit: cover; display: block; }

/* ---- New SEO sections: lead + note (shared) ---- */
.g-lead { max-width: 720px; margin: -22px auto 38px; text-align: center; font-size: 16px; line-height: 1.75; color: var(--charcoal); }
.g-note { max-width: 760px; margin: 30px auto 0; text-align: center; font-size: 13.5px; line-height: 1.65; color: var(--gold-deep); font-style: italic; }

/* ---- Pricing factors ---- */
.g-factors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.g-factor { background: var(--ivory); padding: 26px 26px 28px; }
.g-factor h3 { font-family: var(--serif); font-size: 19px; color: var(--emerald); margin-bottom: 9px; }
.g-factor p { font-size: 13.5px; color: var(--charcoal); line-height: 1.6; }

/* ---- Ring size guide ---- */
.g-sizegrid { display: grid; grid-template-columns: 1fr 0.9fr; gap: 44px; align-items: start; }
.g-methods { display: flex; flex-direction: column; gap: 24px; }
.g-method h3 { font-family: var(--serif); font-size: 18px; color: var(--emerald); margin-bottom: 6px; }
.g-method p { font-size: 14px; color: var(--charcoal); line-height: 1.6; }

/* ---- Care: do / don't ---- */
.g-care { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.g-care-col { border: 1px solid var(--line-gold); border-radius: 10px; padding: 24px 26px 26px; background: var(--ivory); }
.g-care-col h3 { font-family: var(--serif); font-size: 20px; margin-bottom: 15px; color: var(--emerald); }
.g-care-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.g-care-col li { position: relative; padding-left: 27px; font-size: 14px; line-height: 1.55; color: var(--ink); }
.g-care-col li::before { position: absolute; left: 0; top: 0; font-weight: 700; }
.g-care-col.do li::before { content: "\2713"; color: #4E7C5E; }
.g-care-col.dont li::before { content: "\00D7"; color: #B0604A; font-size: 18px; line-height: 1.15; }

/* ---- FAQ accordion ---- */
.g-faq-wrap { max-width: 820px; }
.g-faq { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.g-faq-item { border-bottom: 1px solid var(--line); }
.g-faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 4px; font-family: var(--serif); font-size: 18px; color: var(--emerald); }
.g-faq-item summary::-webkit-details-marker { display: none; }
.g-faq-plus { position: relative; flex-shrink: 0; width: 16px; height: 16px; }
.g-faq-plus::before, .g-faq-plus::after { content: ""; position: absolute; background: var(--gold); transition: transform .25s ease; }
.g-faq-plus::before { left: 0; top: 7px; width: 16px; height: 2px; }
.g-faq-plus::after { left: 7px; top: 0; width: 2px; height: 16px; }
.g-faq-item[open] .g-faq-plus::after { transform: scaleY(0); }
.g-faq-a { padding: 0 4px 22px; }
.g-faq-a p { font-size: 14.5px; line-height: 1.75; color: var(--charcoal); margin: 0; max-width: 720px; }

/* ---- Related guides / internal links ---- */
.g-related { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.g-related-card { display: flex; flex-direction: column; text-decoration: none; border: 1px solid var(--line-gold); border-radius: 10px; padding: 24px 22px 20px; background: var(--ivory); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.g-related-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(15,31,27,0.09); border-color: var(--gold); }
.g-related-card h3 { font-family: var(--serif); font-size: 18px; color: var(--emerald); margin-bottom: 8px; line-height: 1.2; }
.g-related-card p { font-size: 13px; color: var(--charcoal); line-height: 1.55; flex: 1; }
.g-related-go { margin-top: 16px; font-family: var(--sans); font-weight: 700; font-size: 12px; letter-spacing: 0.04em; color: var(--gold-deep); }

/* ---- responsive ---- */
@media (max-width: 980px) {
  .g-hero-grid, .g-intro, .g-whofor, .g-cta-grid { grid-template-columns: 1fr; }
  .g-hero-copy { padding: 46px 0 36px; }
  .g-hero-img image-slot, .g-hero-img img { min-height: 320px; height: 320px; }
  .g-cards.c4, .g-cards.c5, .g-choices { grid-template-columns: repeat(2, 1fr); gap: 30px 0; }
  .g-card, .g-choice { border-left: none; }
  .g-whyimg { grid-template-columns: repeat(2, 1fr); }
  .g-insp { grid-template-columns: repeat(3, 1fr); }
  .g-intro.noimg, .g-whofor.noimg { max-width: none; }
  .g-factors { grid-template-columns: repeat(2, 1fr); }
  .g-sizegrid { grid-template-columns: 1fr; gap: 32px; }
  .g-related { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .g-cards.c4, .g-cards.c5, .g-choices, .g-whyimg, .g-insp { grid-template-columns: 1fr 1fr; }
  .g-table { font-size: 12.5px; }
  .g-table th, .g-table td { padding: 10px 11px; }
  .g-hero-cta .btn { width: 100%; }
  .g-factors, .g-care, .g-related { grid-template-columns: 1fr; }
  .g-faq-item summary { font-size: 16px; }
}
