/* ===================================================
   สรุปเตรียมสอบท้องถิ่น - Main Stylesheet
   =================================================== */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Sarabun:wght@300;400;500;600;700;800&family=Kanit:wght@300;400;500;600;700&display=swap');

/* ---- CSS Variables ---- */
:root {
  --primary: #1a3a6b;
  --primary-dark: #0f2347;
  --primary-light: #2a5298;
  --accent: #c9a84c;
  --accent-light: #e8c96a;
  --white: #ffffff;
  --light: #f4f7fb;
  --gray: #6b7280;
  --gray-light: #e5e9f0;
  --text: #1f2937;
  --text-light: #4b5563;
  --success: #16a34a;
  --danger: #dc2626;
  --border: #d1d9e6;
  --shadow: 0 4px 24px rgba(26,58,107,0.10);
  --shadow-lg: 0 8px 40px rgba(26,58,107,0.15);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --font-main: 'Sarabun', sans-serif;
  --font-heading: 'Kanit', sans-serif;
  --transition: all 0.25s ease;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-main);
  color: var(--text);
  background: var(--light);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.35;
  color: var(--primary-dark);
}
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); }
p { margin-bottom: 1rem; color: var(--text-light); }

/* ---- Layout ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 60px 0; }
.section-alt { background: var(--white); }
.section-dark { background: var(--primary-dark); color: var(--white); }
.section-dark h2, .section-dark h3 { color: var(--accent-light); }
.section-dark p { color: rgba(255,255,255,0.85); }

/* ---- Header / Navbar ---- */
.site-header {
  background: var(--primary-dark);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-logo-icon {
  width: 40px; height: 40px;
  background: var(--accent);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
}
.nav-logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--white);
  line-height: 1.2;
}
.nav-logo-text span { color: var(--accent); font-size: 0.75rem; display: block; font-weight: 400; }
.nav-menu { display: flex; gap: 6px; align-items: center; }
.nav-menu a {
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  transition: var(--transition);
}
.nav-menu a:hover, .nav-menu a.active {
  background: rgba(255,255,255,0.12);
  color: var(--accent-light);
}
.nav-cta {
  background: var(--accent) !important;
  color: var(--primary-dark) !important;
  font-weight: 700 !important;
  padding: 7px 18px !important;
}
.nav-cta:hover { background: var(--accent-light) !important; transform: translateY(-1px); }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--white);
  display: block;
  border-radius: 2px;
  transition: var(--transition);
}

/* ---- Breadcrumb ---- */
.breadcrumb {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}
.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font-size: 0.85rem;
}
.breadcrumb-list li { display: flex; align-items: center; gap: 6px; color: var(--gray); }
.breadcrumb-list li:not(:last-child)::after { content: "›"; color: var(--border); }
.breadcrumb-list a { color: var(--primary); }
.breadcrumb-list li:last-child { color: var(--text); font-weight: 500; }

/* ---- Hero Section ---- */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, #1e4d8c 100%);
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content { position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201,168,76,0.2);
  border: 1px solid var(--accent);
  color: var(--accent-light);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
}
.hero h1 { color: var(--white); margin-bottom: 16px; }
.hero h1 span { color: var(--accent-light); }
.hero-desc { color: rgba(255,255,255,0.85); font-size: 1.1rem; max-width: 640px; margin-bottom: 32px; }
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 36px;
}
.hero-stat { text-align: center; }
.hero-stat .num { font-family: var(--font-heading); font-size: 1.8rem; font-weight: 700; color: var(--accent-light); }
.hero-stat .label { font-size: 0.8rem; color: rgba(255,255,255,0.7); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: var(--primary-dark); }
.btn-primary:hover { background: var(--accent-light); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(201,168,76,0.4); color: var(--primary-dark); }
.btn-outline { background: transparent; border-color: rgba(255,255,255,0.5); color: var(--white); }
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: var(--white); color: var(--white); }
.btn-white { background: var(--white); color: var(--primary); }
.btn-white:hover { background: var(--light); color: var(--primary); transform: translateY(-2px); }
.btn-lg { padding: 15px 36px; font-size: 1.05rem; }
.btn-sm { padding: 8px 18px; font-size: 0.85rem; }

/* ---- Search Box ---- */
.search-box {
  max-width: 600px;
  margin: 0 auto 40px;
}
.search-input-wrap {
  display: flex;
  align-items: center;
  background: var(--white);
  border-radius: 50px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 2px solid transparent;
  transition: var(--transition);
}
.search-input-wrap:focus-within { border-color: var(--accent); }
.search-icon { padding: 0 16px; color: var(--gray); font-size: 1.1rem; }
.search-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 14px 0;
  font-family: var(--font-main);
  font-size: 1rem;
  color: var(--text);
  background: transparent;
}
.search-btn {
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: 14px 24px;
  font-family: var(--font-heading);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.search-btn:hover { background: var(--primary-light); }

/* ---- Section Title ---- */
.section-title {
  text-align: center;
  margin-bottom: 48px;
}
.section-title .label {
  display: inline-block;
  background: rgba(26,58,107,0.08);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 4px 14px;
  border-radius: 50px;
  margin-bottom: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.section-title h2 { margin-bottom: 12px; }
.section-title p { color: var(--text-light); max-width: 520px; margin: 0 auto; }

/* ---- Cards ---- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid var(--border);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary-light); }
.card-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  padding: 20px;
  position: relative;
}
.card-icon {
  width: 48px; height: 48px;
  background: rgba(255,255,255,0.15);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 10px;
}
.card-category {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.7);
  font-weight: 500;
  margin-bottom: 4px;
}
.card-title { color: var(--white); font-size: 1rem; font-weight: 700; }
.card-body { padding: 20px; }
.card-desc { font-size: 0.9rem; color: var(--text-light); margin-bottom: 12px; }
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
}
.card-link:hover { color: var(--accent); gap: 10px; }
.card-badge {
  position: absolute;
  top: 14px; right: 14px;
  background: var(--accent);
  color: var(--primary-dark);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 50px;
}

/* ---- Popular Card ---- */
.popular-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.popular-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  transition: var(--transition);
  text-decoration: none;
  display: block;
}
.popular-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.popular-card .icon { font-size: 2rem; margin-bottom: 10px; }
.popular-card .name { font-family: var(--font-heading); font-weight: 700; color: var(--primary-dark); font-size: 0.95rem; margin-bottom: 4px; }
.popular-card .sub { font-size: 0.8rem; color: var(--gray); }

/* ---- Accordion / FAQ ---- */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  overflow: hidden;
}
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  cursor: pointer;
  font-weight: 600;
  color: var(--primary-dark);
  font-size: 0.95rem;
  transition: var(--transition);
  user-select: none;
  gap: 12px;
}
.faq-question:hover { background: var(--light); }
.faq-question.active { background: var(--primary); color: var(--white); }
.faq-toggle {
  flex-shrink: 0;
  width: 26px; height: 26px;
  background: var(--light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  transition: var(--transition);
}
.faq-question.active .faq-toggle { background: rgba(255,255,255,0.2); transform: rotate(45deg); }
.faq-answer {
  display: none;
  padding: 18px 22px;
  color: var(--text-light);
  font-size: 0.93rem;
  border-top: 1px solid var(--border);
  line-height: 1.8;
}
.faq-answer.open { display: block; }

/* ---- Quiz Section ---- */
.quiz-container { max-width: 900px; margin: 0 auto; }
.quiz-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
}
.quiz-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 12px;
  flex-shrink: 0;
}
.quiz-question-text { font-weight: 600; color: var(--text); margin-bottom: 16px; font-size: 0.95rem; }
.quiz-options { display: flex; flex-direction: column; gap: 8px; }
.quiz-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.9rem;
}
.quiz-option:hover { border-color: var(--primary-light); background: var(--light); }
.quiz-option.correct { background: #dcfce7; border-color: #16a34a; color: #15803d; }
.quiz-option.wrong { background: #fee2e2; border-color: #dc2626; color: #b91c1c; }
.quiz-option-letter {
  min-width: 24px; height: 24px;
  background: var(--gray-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
}
.quiz-answer {
  margin-top: 14px;
  padding: 14px;
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  border-left: 4px solid var(--success);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.88rem;
  color: #166534;
  display: none;
}
.quiz-answer.show { display: block; }
.quiz-actions { display: flex; gap: 10px; margin-top: 14px; }

/* ---- Reviews ---- */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.review-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
}
.review-card::before {
  content: '"';
  position: absolute;
  top: 16px; right: 20px;
  font-size: 4rem;
  color: var(--accent);
  opacity: 0.3;
  font-family: Georgia, serif;
  line-height: 1;
}
.review-stars { color: #f59e0b; font-size: 1rem; margin-bottom: 10px; }
.review-text { font-size: 0.9rem; color: var(--text-light); margin-bottom: 16px; font-style: italic; }
.review-author { display: flex; align-items: center; gap: 12px; }
.review-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.review-name { font-weight: 700; font-size: 0.9rem; color: var(--text); }
.review-pos { font-size: 0.78rem; color: var(--gray); }

/* ---- Tips Section ---- */
.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.tip-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--border);
  border-top: 4px solid var(--accent);
}
.tip-card .tip-num {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  opacity: 0.3;
  line-height: 1;
  margin-bottom: 8px;
}
.tip-card h3 { font-size: 1rem; margin-bottom: 8px; }
.tip-card p { font-size: 0.88rem; margin: 0; }

/* ---- Subjects Table ---- */
.subjects-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.subjects-table th {
  background: var(--primary);
  color: var(--white);
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
}
.subjects-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); }
.subjects-table tr:nth-child(even) td { background: var(--light); }
.subjects-table tr:hover td { background: rgba(26,58,107,0.05); }

/* ---- Info Box ---- */
.info-box {
  background: linear-gradient(135deg, rgba(26,58,107,0.06), rgba(26,58,107,0.03));
  border: 1px solid rgba(26,58,107,0.15);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin-bottom: 20px;
}
.info-box h3 { font-size: 1rem; margin-bottom: 8px; }
.info-box p, .info-box li { font-size: 0.9rem; }
.info-box ul { padding-left: 16px; list-style: disc; }
.info-box ul li { margin-bottom: 4px; }
.info-box.accent { border-left-color: var(--accent); background: rgba(201,168,76,0.06); }
.info-box.success { border-left-color: var(--success); background: rgba(22,163,74,0.05); }

/* ---- Tags ---- */
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  background: rgba(26,58,107,0.08);
  color: var(--primary);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* ---- CTA Banner ---- */
.cta-banner {
  background: linear-gradient(135deg, var(--accent) 0%, #a8853d 50%, var(--accent-light) 100%);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.cta-banner::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.07'%3E%3Cpath d='M20 20.5V18H0v5h5v5H0v5h20v-9.5zm-2 4.5h-1v1h1v-1zm1 0h1v1h-1v-1zm-1-1h-1v1h1v-1zm1 0h1v1h-1v-1z'/%3E%3C/g%3E%3C/svg%3E");
}
.cta-banner .cta-icon { font-size: 3rem; margin-bottom: 12px; }
.cta-banner h2, .cta-banner h3 { color: var(--primary-dark); font-size: 1.6rem; margin-bottom: 8px; }
.cta-banner p { color: rgba(15,35,71,0.75); font-size: 1rem; margin-bottom: 24px; }
.cta-banner .btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--primary-dark);
  color: var(--white);
  padding: 14px 36px;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  transition: var(--transition);
  position: relative; z-index: 1;
  box-shadow: 0 4px 20px rgba(15,35,71,0.3);
}
.cta-banner .btn-cta:hover { background: var(--primary); transform: translateY(-3px); box-shadow: 0 8px 30px rgba(15,35,71,0.4); color: var(--white); }
.cta-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-bottom: 28px;
}
.cta-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--primary-dark);
  font-weight: 600;
}

/* ---- Related Links ---- */
.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}
.related-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--primary);
  transition: var(--transition);
}
.related-link:hover { border-color: var(--primary); background: var(--light); color: var(--primary); }
.related-link.external { color: var(--text-light); }
.related-link.external:hover { border-color: var(--accent); color: var(--accent); }

/* ---- Steps ---- */
.steps-list { max-width: 700px; }
.step {
  display: flex;
  gap: 20px;
  margin-bottom: 28px;
  align-items: flex-start;
}
.step-num {
  min-width: 44px; height: 44px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(26,58,107,0.3);
}
.step-content h3 { font-size: 1rem; margin-bottom: 4px; }
.step-content p { margin: 0; font-size: 0.9rem; }

/* ---- Group Header ---- */
.group-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: var(--primary);
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  color: var(--white);
}
.group-header h3 { color: var(--white); margin: 0; font-size: 1rem; }

/* ---- Sidebar Layout ---- */
.content-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 36px;
  align-items: start;
}
.sidebar {
  position: sticky;
  top: 80px;
}
.sidebar-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
}
.sidebar-card h3 { font-size: 1rem; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid var(--primary); }
.toc-list li { margin-bottom: 6px; }
.toc-list a { font-size: 0.87rem; color: var(--text-light); display: flex; align-items: center; gap: 6px; padding: 4px 0; }
.toc-list a:hover { color: var(--primary); }
.toc-list a::before { content: '▸'; color: var(--accent); font-size: 0.7rem; }

/* ---- Article Content ---- */
.article-body h2 { margin: 36px 0 16px; padding-bottom: 8px; border-bottom: 2px solid var(--gray-light); }
.article-body h3 { margin: 24px 0 12px; color: var(--primary); }
.article-body ul, .article-body ol { padding-left: 20px; margin-bottom: 16px; }
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li { margin-bottom: 6px; font-size: 0.93rem; color: var(--text-light); }
.article-body p { font-size: 0.93rem; }

/* ---- Footer ---- */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.75);
  padding: 60px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand p { font-size: 0.88rem; margin-top: 12px; line-height: 1.7; }
.footer-col h4 { color: var(--accent-light); font-size: 0.9rem; font-weight: 700; margin-bottom: 14px; }
.footer-col ul li { margin-bottom: 6px; }
.footer-col ul li a { color: rgba(255,255,255,0.65); font-size: 0.85rem; }
.footer-col ul li a:hover { color: var(--accent-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 0.82rem;
}
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: var(--accent-light); }

/* ---- Utility ---- */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mt-6 { margin-top: 48px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mb-6 { margin-bottom: 48px; }
.py-1 { padding-top: 8px; padding-bottom: 8px; }
.divider { border: none; border-top: 1px solid var(--border); margin: 32px 0; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 50px; font-size: 0.75rem; font-weight: 700; }
.badge-blue { background: rgba(26,58,107,0.1); color: var(--primary); }
.badge-gold { background: rgba(201,168,76,0.15); color: #8a6c1a; }
.badge-green { background: rgba(22,163,74,0.1); color: #15803d; }

/* ---- Scroll Top ---- */
.scroll-top {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 44px; height: 44px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 16px rgba(26,58,107,0.3);
  cursor: pointer;
  transition: var(--transition);
  opacity: 0; visibility: hidden;
  z-index: 900;
  text-decoration: none;
}
.scroll-top.show { opacity: 1; visibility: visible; }
.scroll-top:hover { background: var(--accent); color: var(--primary-dark); transform: translateY(-3px); }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .content-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav-menu { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--primary-dark); padding: 16px; gap: 4px; box-shadow: 0 8px 24px rgba(0,0,0,0.2); }
  .nav-menu.open { display: flex; }
  .nav-menu a { padding: 10px 16px; border-radius: var(--radius-sm); }
  .nav-toggle { display: flex; }
  .nav-container { position: relative; }
  .hero { padding: 50px 0 40px; }
  .hero-stats { gap: 16px; }
  .cards-grid { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .section { padding: 40px 0; }
  .cta-banner { padding: 28px 20px; }
  .cta-features { gap: 12px; }
}
@media (max-width: 480px) {
  .popular-grid { grid-template-columns: repeat(2, 1fr); }
  .tips-grid { grid-template-columns: 1fr; }
}
