/* =============================================================================
   Best AI Language Learning - Ecosystem Landscape Design (Light Dashboard)
   Clean, Editorial, High-Performance and Fully Responsive
   ========================================================================== */

:root {
  --bg-color: #f8fafc;
  --bg-card: #ffffff;
  --border-color: #e2e8f0;
  --border-hover: #cbd5e1;
  --border-active: #000000;
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-light: #64748b;
  --primary: #000000;
  --primary-hover: #1e293b;
  --primary-glow: rgba(0, 0, 0, 0.03);
  --secondary: #0284c7;
  --accent: #059669;
  --accent-light: #ecfdf5;
  --accent-red: #d97706;
  --accent-red-light: #fffbeb;
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --max-width: 1200px;
  --transition: all 0.2s ease-in-out;
}

/* Dark Mode Variables Override */
body.dark-mode {
  --bg-color: #09090b;
  --bg-card: #18181b;
  --border-color: #27272a;
  --border-hover: #3f3f46;
  --border-active: #ffffff;
  --text-main: #f4f4f5;
  --text-muted: #a1a1aa;
  --text-light: #71717a;
  --primary: #ffffff;
  --primary-hover: #e4e4e7;
  --primary-glow: rgba(255, 255, 255, 0.05);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Global Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.01);
  transition: background-color 0.3s ease;
}

body.dark-mode .site-header {
  background-color: rgba(9, 9, 11, 0.8);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
}

.site-logo {
  text-decoration: none;
  color: var(--text-main);
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.825rem;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--text-main);
}

.nav-link.nav-link-cta {
  background: var(--text-main);
  color: var(--bg-card) !important;
  padding: 0.35rem 0.85rem;
  border-radius: 6px;
  font-weight: 600;
}

.nav-link.nav-link-cta:hover {
  opacity: 0.9;
}

/* Header Right Actions */
.header-right-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Language Switcher */
.lang-switcher {
  position: relative;
}

.lang-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition);
}

.lang-btn:hover {
  border-color: var(--border-hover);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 0.35rem;
  display: none;
  flex-direction: column;
  min-width: 130px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
  z-index: 110;
}

.lang-dropdown.show {
  display: flex;
}

.lang-option {
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.35rem 0.65rem;
  border-radius: 4px;
  font-size: 0.8rem;
  transition: var(--transition);
}

.lang-option:hover, .lang-option.active {
  color: var(--text-main);
  background: var(--primary-glow);
}

.lang-option.active {
  font-weight: 600;
}

/* Theme Toggle Button */
.theme-toggle-btn {
  background: transparent;
  border: none;
  color: var(--text-main);
  cursor: pointer;
  padding: 0.35rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.theme-toggle-btn:hover {
  background: var(--primary-glow);
}

.theme-toggle-btn svg {
  width: 18px;
  height: 18px;
}

/* Hero Section */
.hero-section {
  padding: 3rem 0 1.5rem;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.hero-subtitle {
  color: var(--text-light);
  font-size: 1.05rem;
  line-height: 1.4;
  max-width: 600px;
}

/* Search Console Dashboard style */
.search-console {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 0.75rem;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  margin-bottom: 1rem;
}

.search-input-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-right: 1px solid var(--border-color);
  padding-right: 0.5rem;
}

.search-icon {
  color: var(--text-light);
  font-size: 0.9rem;
}

.search-input-wrapper input {
  width: 100%;
  border: none;
  background: transparent;
  outline: none;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--text-main);
}

.search-input-wrapper input::placeholder {
  color: var(--text-light);
}

.search-filters {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.select-wrapper {
  position: relative;
  flex: 1;
}

.matcher-select {
  width: 100%;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-main);
  padding: 0.45rem 1.75rem 0.45rem 0.65rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  cursor: pointer;
  outline: none;
  appearance: none;
  transition: var(--transition);
}

.matcher-select:focus {
  border-color: var(--text-main);
}

.select-wrapper::after {
  content: "▼";
  font-size: 0.55rem;
  color: var(--text-light);
  position: absolute;
  right: 0.65rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.btn-search-console {
  background: var(--text-main);
  color: var(--bg-card);
  border: none;
  padding: 0.45rem 1.25rem;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.btn-search-console:hover {
  opacity: 0.9;
}

/* Pill Tabs category controls */
.pill-tabs-container {
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1.75rem;
  padding-bottom: 0.25rem;
}

.pill-tabs {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
}

.pill-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-light);
  padding: 0.5rem 0.1rem;
  font-family: var(--font-body);
  font-size: 0.825rem;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  white-space: nowrap;
  transition: var(--transition);
}

.pill-tab-btn:hover {
  color: var(--text-main);
}

.pill-tab-btn.active {
  color: var(--text-main);
}

.pill-tab-btn.active::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--text-main);
}

/* Directory Grid */
.directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.25rem;
  margin-bottom: 4rem;
}

/* Bento Card Style */
.bento-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.01);
  transition: var(--transition);
}

.bento-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.03);
}

.bento-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}

.app-logo-wrapper {
  width: 54px;
  height: 54px;
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem;
}

body.dark-mode .app-logo-wrapper {
  background: #18181b;
}

.app-logo-wrapper svg {
  width: 100%;
  height: 100%;
  color: var(--text-main);
}

.bento-rating-badge {
  background: var(--primary-glow);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.bento-rating-badge .star-rating {
  color: #fbbf24;
}

.bento-card-content {
  margin-bottom: 1.25rem;
}

.bento-card-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.15rem;
  line-height: 1.2;
}

.bento-card-subtitle {
  color: var(--text-light);
  font-size: 0.725rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 0.75rem;
}

.bento-card-summary {
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

.bento-card-footer {
  margin-top: auto;
  border-top: 1px solid var(--border-color);
  padding-top: 0.85rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.btn-expand-bento {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.775rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.btn-expand-bento:hover {
  color: var(--text-main);
  text-decoration: underline;
}

.btn-cta-bento {
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-main);
  text-decoration: none;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: var(--transition);
}

.btn-cta-bento:hover {
  border-color: var(--border-active);
  background: var(--primary-glow);
}

/* Collapsible Review Details inside Bento Card */
.bento-card .collapsible-review {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0, 1, 0, 1);
  background: var(--bg-color);
  border-radius: 8px;
  margin-top: 0.75rem;
}

.bento-card .collapsible-review.open {
  max-height: 1200px;
  transition: max-height 0.4s cubic-bezier(1, 0, 1, 0);
  border: 1px solid var(--border-color);
  padding: 1rem;
  margin-top: 1rem;
}

.review-tabs {
  display: flex;
  gap: 0.35rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
  margin-bottom: 0.85rem;
}

.tab-btn {
  background: transparent;
  border: none;
  color: var(--text-light);
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.tab-btn:hover {
  color: var(--text-main);
}

.tab-btn.active {
  background: var(--bg-card);
  color: var(--text-main);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-color);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.verdict-box p {
  color: var(--text-muted);
  font-size: 0.825rem;
  line-height: 1.6;
}

.user-reviews-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.user-review-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 0.75rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.01);
}

.review-item-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  margin-bottom: 0.25rem;
}

.reviewer-meta {
  color: var(--text-light);
}

.reviewer-meta strong {
  color: var(--text-main);
}

.reviewer-stars {
  color: #fbbf24;
  letter-spacing: 0.05em;
}

.reviewer-comment {
  font-size: 0.775rem;
  color: var(--text-muted);
  font-style: italic;
}

/* Submission review form */
.user-review-form {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 1rem;
}

.form-title {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.75rem;
}

.form-row-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.75rem;
}

.form-group label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
}

.form-group input, .form-group textarea {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.45rem 0.65rem;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.775rem;
  outline: none;
  transition: var(--transition);
}

.form-group input:focus, .form-group textarea:focus {
  border-color: var(--text-main);
}

.star-rating-selector {
  display: flex;
  gap: 0.25rem;
}

.star-node {
  font-size: 1.25rem;
  color: #cbd5e1;
  cursor: pointer;
  transition: var(--transition);
}

.star-node.active {
  color: #fbbf24;
}

.btn-submit-review {
  background: var(--text-main);
  color: var(--bg-card);
  border: none;
  padding: 0.45rem 1rem;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.btn-submit-review:hover {
  opacity: 0.9;
}

/* Contrast Starred Leaderboard Block (Light/Dark integrated) */
.dark-leaderboard-section {
  background: #f1f5f9;
  color: var(--text-main);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 3rem;
  margin-bottom: 4rem;
  transition: var(--transition);
}

body.dark-mode .dark-leaderboard-section {
  background: var(--bg-card);
}

.leaderboard-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3.5rem;
  align-items: center;
}

.leaderboard-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
}

.leaderboard-title {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text-main);
}

.leaderboard-desc {
  color: var(--text-muted);
  font-size: 0.925rem;
  line-height: 1.5;
}

.btn-leaderboard-cta {
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  border-bottom: 1.5px solid var(--text-main);
  padding-bottom: 0.15rem;
  transition: var(--transition);
}

.btn-leaderboard-cta:hover {
  opacity: 0.8;
  padding-left: 0.25rem;
}

.leaderboard-table-wrapper {
  width: 100%;
  overflow-x: auto;
}

.leaderboard-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.825rem;
}

.leaderboard-table th {
  color: var(--text-light);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.675rem;
  letter-spacing: 0.05em;
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid var(--border-color);
}

.leaderboard-table td {
  padding: 0.85rem 0.5rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-main);
  vertical-align: middle;
}

.leaderboard-table tr:hover td {
  color: var(--text-main);
  background: var(--primary-glow);
}

.leaderboard-table .rank-num {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-light);
}

.leaderboard-table .app-name-col {
  font-weight: 700;
  color: var(--text-main);
}

.leaderboard-table .grade-badge {
  background: rgba(251, 191, 36, 0.15);
  color: #d97706;
  font-weight: 700;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-family: var(--font-heading);
}

/* Recent posts sections */
.recent-posts-section {
  padding: 3rem 0;
  border-top: 1px solid var(--border-color);
}

.section-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 1.5rem;
}

/* --- PREMIUM BLOG STYLES --- */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2.25rem;
  margin-top: 1.5rem;
}

.post-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.post-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--text-main), var(--border-active));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.post-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-active);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.post-card:hover::before {
  opacity: 1;
}

.post-card-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.725rem;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.post-card-category {
  background: var(--primary-glow);
  color: var(--text-main);
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  font-size: 0.675rem;
  font-weight: 700;
}

.post-card-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.75rem;
  line-height: 1.35;
  transition: color 0.3s ease;
}

.post-card:hover .post-card-title {
  color: var(--text-main);
}

.post-card-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.post-card-link {
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.825rem;
  font-weight: 700;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: var(--transition);
}

.post-card-link .arrow {
  transition: transform 0.3s ease;
}

.post-card-link:hover .arrow {
  transform: translateX(4px);
}

/* Individual Post Detail Styles */
.blog-container {
  max-width: 780px !important;
  margin: 0 auto;
  padding: 2rem 1.5rem 6rem;
}

.back-link-container {
  margin-bottom: 2.5rem;
}

.back-link {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.back-link:hover {
  color: var(--text-main);
}

.blog-post {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.post-header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 2.25rem;
}

.post-meta-category {
  display: inline-block;
  background: var(--primary-glow);
  color: var(--text-main);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
}

.blog-post .post-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 850;
  line-height: 1.2;
  color: var(--text-main);
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.post-meta-data {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-light);
}

.meta-dot {
  color: var(--border-color);
}

.post-content {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-main);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.post-content p {
  margin: 0;
}

.post-content strong {
  color: var(--text-main);
}

.post-content h2 {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 2.25rem 0 0.75rem;
  line-height: 1.3;
}

.post-content h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 1.75rem 0 0.5rem;
  line-height: 1.3;
}

.post-content blockquote {
  border-left: 4px solid var(--text-main);
  margin: 1.5rem 0;
  padding: 0.5rem 1.5rem;
  font-style: italic;
  color: var(--text-muted);
  background: var(--primary-glow);
  border-radius: 0 8px 8px 0;
}

.post-footer {
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border-color);
}

/* Reading Progress Indicator */
.reading-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--text-main), var(--border-active));
  width: 0%;
  z-index: 1000;
  transition: width 0.1s ease;
}

/* EEAT Section */
.eeat-section {
  border-top: 1px solid var(--border-color);
  padding: 3rem 0;
}

.eeat-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3.5rem;
}

.section-text {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.pillars-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
}

.pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 1.25rem;
  transition: var(--transition);
}

.pillar-card:hover {
  border-color: var(--border-hover);
}

.pillar-number {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-light);
  display: block;
  margin-bottom: 0.25rem;
}

.pillar-title {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.pillar-desc {
  font-size: 0.775rem;
  color: var(--text-light);
  line-height: 1.4;
}

.author-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
}

.author-avatar-placeholder {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--primary-glow);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
}

.author-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.author-name {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
}

.author-title {
  color: var(--text-main);
  font-size: 0.8rem;
  font-weight: 600;
}

.author-credentials {
  color: var(--text-light);
  font-size: 0.7rem;
  font-style: italic;
}

.author-bio {
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

.author-social-link {
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 700;
  transition: var(--transition);
}

.author-social-link:hover {
  text-decoration: underline;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-color);
  background-color: var(--bg-card);
  padding: 3rem 0 1.5rem;
  transition: background-color 0.3s ease;
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  text-align: center;
}

.footer-brand {
  max-width: 400px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  text-transform: uppercase;
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.footer-links-group {
  display: flex;
  gap: 1.75rem;
}

.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.8rem;
  transition: var(--transition);
}

.footer-link:hover {
  color: var(--text-main);
}

.footer-disclaimer {
  max-width: 800px;
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
}

.footer-disclaimer p {
  color: var(--text-light);
  font-size: 0.675rem;
  line-height: 1.5;
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  width: 100%;
  padding-top: 1rem;
}

.copyright {
  color: var(--text-light);
  font-size: 0.725rem;
}

/* Responsiveness */
@media (max-width: 968px) {
  .hero-title {
    font-size: 2.25rem;
  }
  .leaderboard-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .eeat-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  .about-grid-content {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  .pillar-detail-card {
    flex-direction: column !important;
    gap: 1.25rem !important;
    padding: 1.5rem !important;
  }
  .pillar-weight-badge {
    align-self: flex-start;
  }
}

@media (max-width: 640px) {
  .header-container {
    flex-direction: column;
    gap: 0.85rem;
  }
  .nav-menu {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  .hero-title {
    font-size: 1.85rem;
  }
  .search-console {
    grid-template-columns: 1fr;
  }
  .search-input-wrapper {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    padding-right: 0;
    padding-bottom: 0.5rem;
  }
  .search-filters {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  .directory-grid {
    grid-template-columns: 1fr;
  }
  .post-card {
    padding: 1.25rem;
  }
  .post-title {
    font-size: 1.5rem;
  }
}

/* Matcher Wizard Styles */
.matcher-section {
  max-width: 680px;
  margin: 0 auto;
}

.matcher-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2.25rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transition: var(--transition);
}

.matcher-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.75rem;
}

.matcher-wizard-progress {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.matcher-step-info {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.matcher-progress-bar {
  width: 100%;
  height: 6px;
  background: var(--border-color);
  border-radius: 3px;
  overflow: hidden;
}

.matcher-progress-fill {
  height: 100%;
  background: var(--text-main);
  border-radius: 3px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.matcher-wizard-steps {
  min-height: 140px;
}

.matcher-step-pane {
  display: none;
  flex-direction: column;
  gap: 0.75rem;
  animation: fadeIn 0.3s ease;
}

.matcher-step-pane.active {
  display: flex;
}

.matcher-step-label {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0;
}

.matcher-step-help {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0 0 0.5rem 0;
}

.matcher-wizard-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-color);
}

.matcher-nav-btn {
  font-family: var(--font-body);
  font-size: 0.825rem;
  font-weight: 700;
  padding: 0.6rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
}

.matcher-nav-btn.primary {
  background: var(--text-main);
  color: var(--bg-card);
  border: none;
}

.matcher-nav-btn.primary:hover {
  opacity: 0.9;
}

.matcher-nav-btn.secondary {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-main);
}

.matcher-nav-btn.secondary:hover {
  border-color: var(--text-main);
}

/* Segmented Control for Budget */
.segmented-control {
  display: flex;
  background: var(--primary-glow);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.25rem;
  gap: 0.25rem;
}

.segment-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
}

.segment-btn:hover {
  color: var(--text-main);
}

.segment-btn.active {
  background: var(--bg-card);
  color: var(--text-main);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Load More Pagination Button */
.btn-load-more {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.6rem 2.25rem;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.825rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.btn-load-more:hover {
  border-color: var(--text-main);
  background: var(--primary-glow);
}

/* Rich Editorial Pages Styles */
.editorial-card, .methodology-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  transition: var(--transition);
}

.editorial-card:hover, .methodology-card:hover {
  border-color: var(--border-active);
}

.pillar-detail-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2.5rem;
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  transition: var(--transition);
}

.pillar-detail-card:hover {
  border-color: var(--border-active);
}

.pillar-weight-badge {
  background: var(--primary-glow);
  color: var(--text-main);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.85rem;
  padding: 1rem 1.5rem;
  border-radius: 10px;
  border: 1px solid var(--border-color);
}


