/* ============================================
   SlashSEO Theme — "Clearwater"
   Visual DNA: Cool-blue, spacious, geometric sans,
   rounded pill UI, alternating section rhythm,
   numbered accents, hover-lift cards
   ============================================ */

:root {
  --primary: #3BB8E8;
  --primary-dark: #2A9CC8;
  --primary-light: #E8F5FC;
  --accent: #1B7FA8;
  --dark: #1C2B3A;
  --dark-mid: #263848;
  --light: #EEF6FB;
  --light-alt: #F7FBFE;
  --text: #344456;
  --text-muted: #6B8299;
  --white: #FFFFFF;
  --border: #D4E4EF;
  --shadow-sm: 0 2px 8px rgba(28, 43, 58, 0.06);
  --shadow-md: 0 4px 24px rgba(28, 43, 58, 0.09);
  --shadow-lg: 0 8px 40px rgba(28, 43, 58, 0.12);
  --radius: 8px;
  --radius-lg: 16px;
  --radius-pill: 100px;
  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-heading: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --max-w: 1180px;
}

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

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

body {
  font-family: var(--font-main);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary-dark); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent); }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--dark);
  line-height: 1.25;
}

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

/* ---- Container ---- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  line-height: 1;
}

.btn-pill {
  padding: 13px 30px;
  border-radius: var(--radius-pill);
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--primary-dark);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(59, 184, 232, 0.35);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}

.btn-dark {
  background: var(--dark);
  color: var(--white);
}
.btn-dark:hover {
  background: var(--dark-mid);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(28, 43, 58, 0.25);
}

/* ---- Header / Navbar ---- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  transition: var(--transition);
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo img {
  height: 36px;
  width: auto;
}
.logo-text {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--white);
  transition: var(--transition);
}
.site-header.scrolled .logo-text {
  color: var(--primary);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.main-nav a {
  display: block;
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  border-radius: var(--radius-pill);
  transition: var(--transition);
}
.main-nav a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
}
.site-header.scrolled .main-nav a {
  color: var(--text);
}
.site-header.scrolled .main-nav a:hover {
  color: var(--primary);
  background: var(--primary-light);
}

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

.site-header.scrolled .nav-toggle span,
.site-header.scrolled .nav-toggle span::before,
.site-header.scrolled .nav-toggle span::after {
  background: var(--dark);
}

.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); }

/* ---- Hero ---- */
.hero {
  position: relative;
  background: linear-gradient(145deg, var(--dark) 0%, var(--dark-mid) 100%);
  padding: 140px 0 100px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(59, 184, 232, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(59, 184, 232, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(59, 184, 232, 0.15);
  border: 1px solid rgba(59, 184, 232, 0.25);
  border-radius: var(--radius-pill);
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 28px;
}

.hero-label .dot {
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
}

.hero h1 {
  font-size: 2.85rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  margin-bottom: 36px;
}
.hero-subtitle p { margin: 0; }

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ---- Section Shared ---- */
.section {
  padding: 90px 0;
}

.section-alt {
  background: var(--light);
}

.section-dark {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.8);
}
.section-dark h2, .section-dark h3 {
  color: var(--white);
}

.section-header {
  margin-bottom: 52px;
}

.section-number {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.section-number::after {
  content: '';
  display: block;
  width: 36px;
  height: 2px;
  background: var(--primary);
}

.section-title {
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 14px;
}

.section-desc {
  font-size: 1.02rem;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.7;
}

/* ---- Topics Grid ---- */
.topics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.topic-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  border: 1px solid var(--border);
  transition: var(--transition);
  overflow: hidden;
}

.topic-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--primary);
  opacity: 0;
  transition: var(--transition);
}

.topic-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.topic-card:hover::before {
  opacity: 1;
}

.topic-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.topic-card .desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
}
.topic-card .desc p { margin: 0; }

/* ---- Posts ---- */
.posts-layout {
  display: grid;
  gap: 36px;
}

.post-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
}
.post-featured:hover {
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.post-featured .post-image {
  height: 100%;
  min-height: 300px;
  overflow: hidden;
}
.post-featured .post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}
.post-featured:hover .post-image img {
  transform: scale(1.04);
}

.post-featured .post-body {
  padding: 36px 36px 36px 0;
}

.post-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.02em;
  margin-bottom: 12px;
}

.post-date::before {
  content: '';
  width: 16px;
  height: 2px;
  background: var(--primary);
}

.post-card-title {
  font-size: 1.35rem;
  margin-bottom: 12px;
  line-height: 1.3;
}
.post-card-title a {
  color: var(--dark);
  text-decoration: none;
}
.post-card-title a:hover {
  color: var(--primary);
}

.post-excerpt {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 20px;
}
.post-excerpt p { margin: 0; }

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--primary);
}
.read-more:hover { gap: 12px; color: var(--accent); }
.read-more svg {
  width: 16px;
  height: 16px;
  transition: var(--transition);
}

/* Post grid for remaining items */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.post-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
}
.post-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.post-card .post-image {
  height: 200px;
  overflow: hidden;
}
.post-card .post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}
.post-card:hover .post-image img {
  transform: scale(1.05);
}

.post-card .post-body {
  padding: 26px;
}

/* ---- FAQ ---- */
.faq-layout {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 60px;
  align-items: start;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item:first-child {
  border-top: 1px solid var(--border);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  padding: 22px 0;
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark);
  cursor: pointer;
  text-align: left;
  transition: var(--transition);
  gap: 16px;
}
.faq-question:hover { color: var(--primary); }

.faq-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 1.1rem;
  font-weight: 400;
  transition: var(--transition);
}

.faq-item.active .faq-icon {
  background: var(--primary);
  color: var(--white);
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-answer-inner {
  padding: 0 0 22px;
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.faq-answer-inner p { margin: 0 0 10px; }
.faq-answer-inner p:last-child { margin: 0; }

/* ---- Blog Index ---- */
.blog-hero {
  background: var(--dark);
  padding: 130px 0 60px;
  text-align: center;
}
.blog-hero h1 {
  color: var(--white);
  font-size: 2.4rem;
  margin-bottom: 10px;
}
.blog-hero p {
  color: rgba(255, 255, 255, 0.6);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  padding: 60px 0 40px;
}

.blog-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}
.blog-card:hover {
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.blog-card .card-img {
  height: 100%;
  min-height: 180px;
  overflow: hidden;
}
.blog-card .card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card .card-body {
  padding: 20px 24px 20px 0;
}

.blog-card-noimg {
  grid-template-columns: 1fr;
}
.blog-card-noimg .card-body {
  padding: 28px;
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 20px 0 80px;
}

.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  color: var(--text);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.pagination a:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}
.pagination a.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

/* ---- Post Single ---- */
.post-single-header {
  background: var(--dark);
  padding: 130px 0 50px;
}

.post-single-header .container {
  max-width: 800px;
}

.post-single-header h1 {
  color: var(--white);
  font-size: 2.3rem;
  margin-bottom: 16px;
  line-height: 1.2;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.88rem;
}

.post-single-cover {
  max-width: 860px;
  margin: -30px auto 40px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.post-single-cover img {
  width: 100%;
  display: block;
}

.post-single-body {
  max-width: 740px;
  margin: 0 auto;
  padding: 30px 24px 90px;
}

.post-single-body .post-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text);
}
.post-single-body .post-content h2 {
  font-size: 1.6rem;
  margin: 40px 0 16px;
}
.post-single-body .post-content h3 {
  font-size: 1.3rem;
  margin: 32px 0 12px;
}
.post-single-body .post-content p {
  margin: 0 0 18px;
}
.post-single-body .post-content ul,
.post-single-body .post-content ol {
  margin: 0 0 18px;
  padding-left: 24px;
}
.post-single-body .post-content img {
  border-radius: var(--radius);
  margin: 24px 0;
}
.post-single-body .post-content blockquote {
  border-left: 3px solid var(--primary);
  padding: 12px 0 12px 24px;
  margin: 24px 0;
  color: var(--text-muted);
  font-style: italic;
}

.post-excerpt-single {
  font-size: 1.12rem;
  color: var(--text-muted);
  line-height: 1.7;
  padding-bottom: 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.post-excerpt-single p { margin: 0; }

/* ---- Page ---- */
.page-header {
  background: var(--dark);
  padding: 130px 0 50px;
  text-align: center;
}
.page-header h1 {
  color: var(--white);
  font-size: 2.3rem;
}

.page-body {
  max-width: 780px;
  margin: 0 auto;
  padding: 50px 24px 90px;
}

.page-body .page-content {
  font-size: 1.02rem;
  line-height: 1.8;
}
.page-body .page-content h2 {
  font-size: 1.6rem;
  margin: 36px 0 14px;
}
.page-body .page-content h3 {
  font-size: 1.25rem;
  margin: 28px 0 12px;
}
.page-body .page-content p {
  margin: 0 0 16px;
}
.page-body .page-content ul,
.page-body .page-content ol {
  margin: 0 0 16px;
  padding-left: 24px;
}
.page-body .page-content img {
  border-radius: var(--radius);
  margin: 20px 0;
}

/* ---- Footer ---- */
.site-footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.6);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-brand .logo-text {
  color: var(--white);
  font-size: 1.25rem;
  display: inline-block;
  margin-bottom: 14px;
}
.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 320px;
}

.footer-heading {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}

.footer-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.55);
  transition: var(--transition);
}
.footer-nav a:hover {
  color: var(--primary);
  padding-left: 4px;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}
.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.4);
}
.footer-bottom-links a:hover {
  color: var(--primary);
}

/* ---- Back to top ---- */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  border: none;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
  z-index: 900;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}
.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
}

/* ============================
   RESPONSIVE
   ============================ */

@media (max-width: 1024px) {
  .topics-grid {
    grid-template-columns: 1fr 1fr;
  }
  .posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .faq-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }

  .main-nav {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--white);
    padding: 16px 24px 24px;
    box-shadow: var(--shadow-md);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    gap: 2px;
  }
  .main-nav.open { display: flex; }
  .main-nav a {
    color: var(--text);
    padding: 12px 16px;
    border-radius: var(--radius);
  }
  .main-nav a:hover {
    background: var(--primary-light);
    color: var(--primary);
  }

  .hero { padding: 120px 0 70px; }
  .hero h1 { font-size: 2rem; }
  .hero-subtitle { font-size: 1rem; }

  .section { padding: 60px 0; }
  .section-title { font-size: 1.7rem; }

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

  .post-featured {
    grid-template-columns: 1fr;
  }
  .post-featured .post-body {
    padding: 24px;
  }
  .post-featured .post-image {
    min-height: 220px;
  }

  .posts-grid { grid-template-columns: 1fr; }

  .blog-grid {
    grid-template-columns: 1fr;
  }
  .blog-card {
    grid-template-columns: 1fr;
  }
  .blog-card .card-img {
    min-height: 200px;
  }
  .blog-card .card-body {
    padding: 20px 24px 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.65rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .section-title { font-size: 1.45rem; }
  .topic-card { padding: 26px 22px; }
  .post-card .post-body { padding: 20px; }
}
