/* ==========================================================================
   SlashSEO Portal Theme — "Emerald Ledger"
   Visual DNA: Consulting HTML Template (BizConsult)
   
   Preserved from source:
   - Teal-green (#00B98E) primary on white/dark navy palette
   - Rounded-pill buttons & labels as section intros
   - Spacious vertical rhythm with 6rem section padding
   - Soft shadow cards (45px blur, 0.07 opacity) with hover border reveal
   - Sans-serif typography: geometric headings, clean body
   - Full-width alternating sections (white ↔ primary accent)
   - Asymmetric corner accents on card components
   - Underline-on-hover nav animation
   ========================================================================== */

/* --- Custom Properties --- */
:root {
  --primary: #00B98E;
  --primary-dark: #009e79;
  --dark: #0E2E50;
  --dark-deeper: #091e36;
  --light: #F3F6F8;
  --light-alt: #E8EDF1;
  --white: #FFFFFF;
  --text: #4a5568;
  --text-light: #718096;
  --shadow-card: 0 0 45px rgba(0,0,0,.07);
  --radius-pill: 50px;
  --radius-sm: 5px;
  --transition: .4s ease;
  --font-heading: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --container: 1140px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul, ol { list-style: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--dark);
  line-height: 1.25;
  font-weight: 700;
}

h1 { font-size: clamp(1.9rem, 4.5vw, 2.75rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.15rem; }
h5 { font-size: 1rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* --- Utility --- */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

.section-pad { padding: 6rem 0; }
.section-pad-sm { padding: 4rem 0; }

.pill-label {
  display: inline-block;
  border: 1px solid var(--primary);
  color: var(--primary);
  border-radius: var(--radius-pill);
  padding: .3rem 1.4rem;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .02em;
  margin-bottom: 1rem;
}

.btn-primary {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  border: 2px solid var(--primary);
  border-radius: var(--radius-pill);
  padding: .75rem 2rem;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 18px rgba(0,185,142,.3);
}

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.6);
  border-radius: var(--radius-pill);
  padding: .75rem 2rem;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
}

.btn-link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: var(--primary);
  font-weight: 600;
  font-size: .9rem;
  transition: var(--transition);
}
.btn-link-arrow:hover { gap: .7rem; }
.btn-link-arrow::after { content: "→"; font-size: 1.1rem; }

/* --- Skip Nav --- */
.skip-nav {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--primary);
  color: var(--white);
  padding: .5rem 1rem;
  border-radius: var(--radius-sm);
  z-index: 10000;
  font-size: .85rem;
}
.skip-nav:focus { top: 1rem; }

/* ================================================================
   HEADER / NAVBAR
   ================================================================ */
.site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 999;
  border-bottom: 1px solid rgba(255,255,255,.15);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: .8rem;
  padding-bottom: .8rem;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: .6rem;
}

.site-brand img {
  height: 42px;
  width: auto;
}

.site-brand-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -.02em;
}

/* Desktop nav */
.main-nav { display: flex; align-items: center; gap: 0; }
.main-nav a {
  position: relative;
  color: rgba(255,255,255,.85);
  font-weight: 500;
  font-size: .92rem;
  padding: 1.2rem 0;
  margin-left: 1.8rem;
}
.main-nav a::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--white);
  opacity: 0;
  transition: var(--transition);
}
.main-nav a:hover { color: var(--white); }
.main-nav a:hover::after,
.main-nav a:focus::after { opacity: 1; bottom: .4rem; }

/* Hamburger */
.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 44px; height: 44px;
  position: relative;
  flex-shrink: 0;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  position: absolute;
  transition: var(--transition);
  left: 10px;
}
.nav-toggle span { top: 21px; }
.nav-toggle span::before { content: ""; top: -7px; }
.nav-toggle span::after { content: ""; top: 7px; }

.nav-toggle.active span { background: transparent; }
.nav-toggle.active span::before { top: 0; transform: rotate(45deg); }
.nav-toggle.active span::after { top: 0; transform: rotate(-45deg); }

/* Sticky header */
.site-header.sticky {
  position: fixed;
  background: var(--white);
  border-bottom: 1px solid var(--light-alt);
  box-shadow: 0 2px 15px rgba(0,0,0,.06);
  animation: slideDown .35s ease;
}
.site-header.sticky .site-brand-name { color: var(--primary); }
.site-header.sticky .main-nav a { color: var(--dark); }
.site-header.sticky .main-nav a:hover { color: var(--primary); }
.site-header.sticky .main-nav a::after { background: var(--primary); }
.site-header.sticky .nav-toggle span,
.site-header.sticky .nav-toggle span::before,
.site-header.sticky .nav-toggle span::after { background: var(--dark); }
.site-header.sticky .nav-toggle.active span { background: transparent; }

@keyframes slideDown {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

/* ================================================================
   HERO
   ================================================================ */
.hero {
  background: var(--primary);
  padding: 10rem 0 6rem;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 80px;
  background: var(--white);
  clip-path: ellipse(55% 100% at 50% 100%);
}
.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.hero-content { z-index: 1; }
.hero-title {
  color: var(--white);
  margin-bottom: 1.2rem;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
}
.hero-subtitle {
  color: rgba(255,255,255,.88);
  font-size: 1.05rem;
  margin-bottom: 2rem;
  line-height: 1.75;
}
.hero-subtitle p { color: rgba(255,255,255,.88); }
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.hero-visual-decoration {
  width: 320px; height: 320px;
  border-radius: 50%;
  border: 40px solid rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.hero-visual-inner {
  font-size: 5rem;
  color: rgba(255,255,255,.2);
  font-weight: 800;
  letter-spacing: -.04em;
  font-family: var(--font-heading);
}

/* ================================================================
   TOPICS SECTION
   ================================================================ */
.topics-section { background: var(--white); }
.topics-section .section-header {
  max-width: 560px;
  margin-bottom: 3rem;
}
.topics-section h2 { margin-bottom: .8rem; }
.topics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.topic-card {
  background: var(--white);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.topic-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 0;
  background: var(--primary);
  transition: var(--transition);
}
.topic-card:hover {
  border-color: var(--primary);
  box-shadow: none;
}
.topic-card:hover::before { height: 100%; }
.topic-card-inner { padding: 2rem 1.8rem; }
.topic-card h3 {
  font-size: 1.15rem;
  margin-bottom: .6rem;
}
.topic-card p,
.topic-card div {
  font-size: .9rem;
  color: var(--text-light);
  line-height: 1.65;
}

/* ================================================================
   LATEST POSTS
   ================================================================ */
.posts-section { background: var(--light); }
.posts-section .section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}
.posts-section .section-header h2 { margin-bottom: 0; }

.posts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.post-card {
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  border: 1px solid transparent;
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.post-card:hover {
  border-color: var(--primary);
  box-shadow: none;
  transform: translateY(-3px);
}
.post-card-img {
  height: 210px;
  overflow: hidden;
}
.post-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.post-card:hover .post-card-img img { transform: scale(1.05); }
.post-card-body { padding: 1.6rem 1.8rem; flex: 1; display: flex; flex-direction: column; }
.post-card-date {
  font-size: .8rem;
  color: var(--text-light);
  margin-bottom: .5rem;
  font-weight: 500;
}
.post-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: .6rem;
  line-height: 1.4;
}
.post-card-title a { color: inherit; }
.post-card-title a:hover { color: var(--primary); }
.post-card-excerpt {
  font-size: .88rem;
  color: var(--text-light);
  line-height: 1.6;
  flex: 1;
}
.post-card-link {
  margin-top: 1rem;
}

/* Featured (first) post — large card */
.post-card.featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  flex-direction: row;
}
.post-card.featured .post-card-img { height: 100%; min-height: 280px; }
.post-card.featured .post-card-body { padding: 2rem 2.2rem; justify-content: center; }
.post-card.featured .post-card-title { font-size: 1.35rem; }

/* ================================================================
   FAQ SECTION
   ================================================================ */
.faq-section { background: var(--white); }
.faq-section .container {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 4rem;
  align-items: start;
}
.faq-intro h2 { margin-bottom: 1rem; }
.faq-intro p { color: var(--text-light); margin-bottom: 1.5rem; }

.faq-list { display: flex; flex-direction: column; gap: .8rem; }
.faq-item {
  background: var(--light);
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: var(--transition);
  overflow: hidden;
}
.faq-item.active { border-color: var(--primary); background: var(--white); box-shadow: var(--shadow-card); }
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.4rem;
  cursor: pointer;
  font-weight: 600;
  font-size: .95rem;
  color: var(--dark);
  gap: 1rem;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
}
.faq-question:focus { outline: 2px solid var(--primary); outline-offset: -2px; border-radius: var(--radius-sm); }
.faq-icon {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  font-weight: 700;
  transition: var(--transition);
}
.faq-item.active .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .35s ease;
  padding: 0 1.4rem;
}
.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 1.4rem 1.2rem;
}
.faq-answer p,
.faq-answer div {
  font-size: .9rem;
  color: var(--text);
  line-height: 1.7;
}

/* ================================================================
   CTA BAND (accent strip before footer)
   ================================================================ */
.cta-band {
  background: var(--primary);
  padding: 3.5rem 0;
}
.cta-band .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.cta-band h3 {
  color: var(--white);
  font-size: 1.4rem;
  font-weight: 700;
}
.cta-band p { color: rgba(255,255,255,.8); font-size: .95rem; }

/* ================================================================
   FOOTER
   ================================================================ */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,.7);
  padding: 4rem 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
}
.footer-brand .site-brand-name { color: var(--white); margin-bottom: .8rem; display: inline-block; }
.footer-brand p { font-size: .9rem; line-height: 1.7; max-width: 320px; }
.footer-nav-title {
  color: var(--white);
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
}
.footer-links { display: flex; flex-direction: column; gap: .6rem; }
.footer-links a {
  font-size: .88rem;
  color: rgba(255,255,255,.6);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.footer-links a::before { content: "›"; font-size: 1rem; color: var(--primary); }
.footer-links a:hover { color: var(--white); padding-left: .3rem; }

.footer-contact a {
  color: var(--primary);
  font-size: .9rem;
}
.footer-contact a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: .82rem;
  color: rgba(255,255,255,.4);
}

/* ================================================================
   PAGE TEMPLATE
   ================================================================ */
.page-hero {
  background: var(--primary);
  padding: 9rem 0 4rem;
  position: relative;
}
.page-hero::after {
  content: "";
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 60px;
  background: var(--white);
  clip-path: ellipse(55% 100% at 50% 100%);
}
.page-hero h1 { color: var(--white); }

.page-content {
  padding: 4rem 0 6rem;
  max-width: 800px;
  margin: 0 auto;
}
.page-content .container { max-width: 800px; }

/* Content HTML styling */
.content-html h1,
.content-html h2,
.content-html h3,
.content-html h4 { margin: 2rem 0 1rem; }
.content-html p { margin-bottom: 1rem; }
.content-html ul, .content-html ol { margin: 1rem 0 1rem 1.5rem; list-style: disc; }
.content-html ol { list-style: decimal; }
.content-html li { margin-bottom: .4rem; }
.content-html a { color: var(--primary); text-decoration: underline; }
.content-html a:hover { color: var(--primary-dark); }
.content-html blockquote {
  border-left: 3px solid var(--primary);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--light);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.content-html img { border-radius: var(--radius-sm); margin: 1.5rem 0; }

/* ================================================================
   BLOG INDEX
   ================================================================ */
.blog-hero { padding: 9rem 0 4rem; }
.blog-hero h1 { color: var(--white); }

.blog-list-section { padding: 4rem 0 6rem; }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
}
.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px; height: 40px;
  padding: 0 .6rem;
  border: 1px solid var(--light-alt);
  border-radius: var(--radius-pill);
  font-size: .88rem;
  font-weight: 600;
  color: var(--dark);
  transition: var(--transition);
}
.pagination a:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.pagination a.active,
.pagination .current {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* ================================================================
   POST SINGLE
   ================================================================ */
.post-hero {
  background: var(--primary);
  padding: 9rem 0 4rem;
  position: relative;
}
.post-hero::after {
  content: "";
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 60px;
  background: var(--white);
  clip-path: ellipse(55% 100% at 50% 100%);
}
.post-hero h1 { color: var(--white); max-width: 720px; }
.post-meta {
  color: rgba(255,255,255,.75);
  font-size: .9rem;
  margin-top: .6rem;
}

.post-content-area { padding: 3rem 0 6rem; }
.post-content-area .container { max-width: 800px; }
.post-cover {
  margin-bottom: 2.5rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.post-cover img { width: 100%; }
.post-excerpt {
  font-size: 1.1rem;
  color: var(--dark);
  font-weight: 500;
  line-height: 1.7;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--light-alt);
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1024px) {
  .topics-grid { grid-template-columns: repeat(2, 1fr); }
  .faq-section .container { grid-template-columns: 1fr; gap: 2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  /* Nav */
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1rem 20px;
    border-top: 1px solid var(--light-alt);
    box-shadow: 0 8px 25px rgba(0,0,0,.08);
    gap: 0;
  }
  .main-nav.open { display: flex; }
  .main-nav a {
    margin-left: 0;
    padding: .8rem 0;
    color: var(--dark);
    border-bottom: 1px solid var(--light);
  }
  .main-nav a::after { display: none; }
  .main-nav a:hover { color: var(--primary); }

  .site-header:not(.sticky) .nav-toggle span,
  .site-header:not(.sticky) .nav-toggle span::before,
  .site-header:not(.sticky) .nav-toggle span::after { background: var(--white); }
  .site-header:not(.sticky) .nav-toggle.active span { background: transparent; }

  /* Hero */
  .hero { padding: 8rem 0 5rem; }
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero-visual { display: none; }

  /* Posts */
  .posts-grid { grid-template-columns: 1fr; }
  .post-card.featured { grid-template-columns: 1fr; }
  .post-card.featured .post-card-img { min-height: 200px; }
  .blog-grid { grid-template-columns: 1fr; }

  /* Topics */
  .topics-grid { grid-template-columns: 1fr; }

  /* CTA band */
  .cta-band .container { flex-direction: column; text-align: center; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .hero { padding: 7rem 0 4rem; }
  .section-pad { padding: 4rem 0; }
  .hero-title { font-size: 1.7rem; }
}

/* ================================================================
   BACK TO TOP
   ================================================================ */
.back-to-top {
  position: fixed;
  right: 30px;
  bottom: 30px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  z-index: 99;
  box-shadow: 0 2px 12px rgba(0,185,142,.3);
}
.back-to-top:hover { background: var(--primary-dark); transform: translateY(-3px); }
.back-to-top.visible { display: flex; }

/* ================================================================
   ANIMATIONS
   ================================================================ */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
