/* ===== CSS Variables ===== */
:root {
  --color-bg: #FDF8F3;
  --color-bg-alt: #F5EDE4;
  --color-card: #FFFFFF;
  --color-primary: #C2703E;
  --color-primary-light: #D4945F;
  --color-primary-dark: #A35A2E;
  --color-secondary: #8B6F4E;
  --color-text: #3D3228;
  --color-text-light: #6B5D50;
  --color-text-muted: #9A8C7E;
  --color-border: #E8DDD2;
  --color-border-light: #F0E8DF;
  --color-accent-green: #7B8F6A;
  --color-accent-gold: #C9A84C;
  --color-accent-rose: #C47A7A;
  --color-shadow: rgba(61, 50, 40, 0.06);
  --color-shadow-md: rgba(61, 50, 40, 0.1);

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Source Sans 3', 'Segoe UI', sans-serif;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-sm: 0 1px 3px var(--color-shadow);
  --shadow-md: 0 4px 12px var(--color-shadow-md);
  --shadow-lg: 0 8px 30px var(--color-shadow-md);
  --shadow-hover: 0 12px 40px rgba(61, 50, 40, 0.14);

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-text);
  line-height: 1.3;
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }

p { margin-bottom: 1rem; }

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

.main-content {
  flex: 1;
  padding: 40px 0;
}

/* ===== Header ===== */
.site-header {
  background: var(--color-card);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

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

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.site-logo .logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent-gold));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
}

.site-logo .logo-text {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-text);
}

.site-logo .logo-text span {
  color: var(--color-primary);
}

/* Navigation */
.main-nav { display: flex; align-items: center; gap: 4px; }

.main-nav a {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text-light);
  transition: all var(--transition);
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--color-primary);
  background: var(--color-bg-alt);
}

/* Mobile menu */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--color-text);
}

.menu-toggle svg { width: 24px; height: 24px; }

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, var(--color-bg-alt) 0%, #FDF8F3 50%, #F9F0E6 100%);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(194, 112, 62, 0.06) 0%, transparent 70%);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.05) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-content { position: relative; z-index: 1; }

.hero h1 {
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.hero h1 span { color: var(--color-primary); }

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--color-text-light);
  max-width: 640px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

/* ===== Breadcrumb ===== */
.breadcrumb {
  padding: 16px 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.breadcrumb a { color: var(--color-text-muted); }
.breadcrumb a:hover { color: var(--color-primary); }
.breadcrumb span { margin: 0 8px; }

/* ===== Cards ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
  margin: 32px 0;
}

.card {
  background: var(--color-card);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--color-border);
}

.card-thumb {
  width: 100%;
  height: 200px;
  background: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.card-thumb .thumb-icon {
  font-size: 3rem;
  opacity: 0.7;
}

.card-thumb .provider-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--color-card);
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-light);
  box-shadow: var(--shadow-sm);
}

.card-body { padding: 24px; }

.card-body h3 {
  margin-bottom: 8px;
}

.card-body h3 a {
  color: var(--color-text);
  transition: color var(--transition);
}

.card-body h3 a:hover { color: var(--color-primary); }

.card-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.meta-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--color-bg-alt);
  color: var(--color-text-light);
}

.meta-tag.green { background: #EFF5EB; color: var(--color-accent-green); }
.meta-tag.gold { background: #FBF5E6; color: var(--color-accent-gold); }
.meta-tag.rose { background: #F9EEEE; color: var(--color-accent-rose); }
.meta-tag.primary { background: #FBF0E6; color: var(--color-primary); }

.card-desc {
  font-size: 0.92rem;
  color: var(--color-text-light);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--color-border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ===== Provider Cards (Wider) ===== */
.provider-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin: 32px 0;
}

.provider-card {
  background: var(--color-card);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.provider-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent-gold));
  opacity: 0;
  transition: opacity var(--transition);
}

.provider-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

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

.provider-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

.provider-card h3 { margin-bottom: 8px; font-size: 1.15rem; }
.provider-card p { font-size: 0.88rem; color: var(--color-text-muted); margin-bottom: 16px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--color-primary-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(194, 112, 62, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
}
.btn-outline:hover {
  background: var(--color-primary);
  color: #fff;
}

.btn-sm { padding: 6px 16px; font-size: 0.85rem; }

/* ===== Section Titles ===== */
.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.section-title h2 {
  margin-bottom: 12px;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent-gold));
  margin: 12px auto 0;
  border-radius: 2px;
}

.section-title p {
  color: var(--color-text-light);
  max-width: 560px;
  margin: 0 auto;
  font-size: 1.02rem;
}

/* ===== Detail Page ===== */
.detail-header {
  background: linear-gradient(135deg, var(--color-bg-alt) 0%, #FDF8F3 100%);
  padding: 48px 0;
  position: relative;
}

.detail-header-inner {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.detail-icon {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  background: var(--color-card);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border-light);
}

.detail-info h1 { margin-bottom: 12px; }

.detail-info .detail-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.detail-info .detail-desc {
  font-size: 1.05rem;
  color: var(--color-text-light);
  max-width: 640px;
  line-height: 1.7;
}

/* ===== Content Body ===== */
.content-body {
  max-width: 840px;
  margin: 0 auto;
  padding: 40px 0;
}

.content-body h2 {
  margin: 40px 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-border-light);
}

.content-body h3 { margin: 28px 0 12px; }

.content-body p { color: var(--color-text-light); line-height: 1.8; }

.content-body ul, .content-body ol {
  margin: 16px 0;
  padding-left: 24px;
}

.content-body ul { list-style: disc; }
.content-body ol { list-style: decimal; }

.content-body li {
  color: var(--color-text-light);
  margin-bottom: 8px;
  line-height: 1.7;
}

/* Info box */
.info-box {
  background: var(--color-bg-alt);
  border-left: 4px solid var(--color-primary);
  padding: 20px 24px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 24px 0;
}

.info-box h4 {
  font-family: var(--font-body);
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--color-primary);
}

/* Stats grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.stat-item {
  background: var(--color-card);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
}

.stat-value {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 4px;
}

/* Table */
.content-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  background: var(--color-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.content-table th,
.content-table td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid var(--color-border-light);
}

.content-table th {
  background: var(--color-bg-alt);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.content-table td {
  font-size: 0.92rem;
  color: var(--color-text-light);
}

.content-table tr:last-child td { border-bottom: none; }
.content-table tr:hover td { background: var(--color-bg); }

/* ===== Sidebar ===== */
.page-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 24px;
}

.sidebar { position: sticky; top: 96px; align-self: start; }

.sidebar-widget {
  background: var(--color-card);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.sidebar-widget h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color-border-light);
}

.sidebar-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  color: var(--color-text-light);
  border-bottom: 1px solid var(--color-border-light);
  font-size: 0.92rem;
  transition: all var(--transition);
}

.sidebar-list a:last-child { border-bottom: none; }
.sidebar-list a:hover { color: var(--color-primary); padding-left: 4px; }

.sidebar-list .list-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--color-card);
  border-top: 1px solid var(--color-border);
  padding: 48px 0 24px;
  margin-top: auto;
}

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

.footer-about .footer-logo {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 12px;
}

.footer-about .footer-logo span { color: var(--color-primary); }

.footer-about p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 16px;
  color: var(--color-text);
}

.footer-col a {
  display: block;
  color: var(--color-text-muted);
  font-size: 0.88rem;
  padding: 4px 0;
  transition: color var(--transition);
}

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

.footer-bottom {
  border-top: 1px solid var(--color-border-light);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* ===== FAQ Accordion ===== */
.faq-item {
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--color-card);
}

.faq-question {
  width: 100%;
  padding: 18px 24px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  text-align: left;
  transition: background var(--transition);
}

.faq-question:hover { background: var(--color-bg); }

.faq-question .faq-icon {
  transition: transform var(--transition);
  color: var(--color-primary);
  font-size: 1.2rem;
}

.faq-item.active .faq-question .faq-icon { transform: rotate(45deg); }

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

.faq-answer-inner {
  padding: 0 24px 20px;
  color: var(--color-text-light);
  font-size: 0.94rem;
  line-height: 1.7;
}

/* ===== Rating Stars ===== */
.rating {
  display: inline-flex;
  gap: 2px;
  color: var(--color-accent-gold);
  font-size: 0.9rem;
}

/* ===== Back to Top ===== */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  z-index: 50;
}

.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--color-primary-dark); transform: translateY(-2px); }

/* ===== Animations ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-in {
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
}

.animate-in:nth-child(1) { animation-delay: 0.05s; }
.animate-in:nth-child(2) { animation-delay: 0.1s; }
.animate-in:nth-child(3) { animation-delay: 0.15s; }
.animate-in:nth-child(4) { animation-delay: 0.2s; }
.animate-in:nth-child(5) { animation-delay: 0.25s; }
.animate-in:nth-child(6) { animation-delay: 0.3s; }
.animate-in:nth-child(7) { animation-delay: 0.35s; }
.animate-in:nth-child(8) { animation-delay: 0.4s; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .page-with-sidebar {
    grid-template-columns: 1fr;
  }
  .sidebar { position: static; }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .header-inner { height: 60px; }

  .main-nav {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--color-card);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    padding: 16px;
    box-shadow: var(--shadow-md);
  }

  .main-nav.active { display: flex; }
  .menu-toggle { display: block; }

  .hero { padding: 48px 0; }
  .card-grid { grid-template-columns: 1fr; }
  .provider-grid { grid-template-columns: 1fr 1fr; }

  .detail-header-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .detail-icon { width: 88px; height: 88px; font-size: 2.2rem; }

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

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

@media (max-width: 480px) {
  .provider-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
}

/* ===== Banner Ads ===== */
.banner-slot {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 32px auto;
  max-width: 100%;
}

.banner-slot a {
  display: inline-block;
  line-height: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow-sm);
}

.banner-slot a:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.banner-slot img {
  border-radius: var(--radius-md);
  max-width: 100%;
  height: auto;
}

.banner-row {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin: 40px auto;
}

.banner-inline {
  margin: 28px 0;
  text-align: center;
}

.banner-inline a {
  display: inline-block;
  line-height: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow-sm);
}

.banner-inline a:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.banner-inline img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}

.sidebar .banner-slot {
  margin: 0 0 24px;
}

.sidebar .banner-slot a {
  width: 100%;
}

.sidebar .banner-slot img {
  width: 100%;
  height: auto;
}
