* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Lora', serif;
  background: url('/theme/image/background.svg') no-repeat center center fixed;
  background-size: cover;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
}

main { padding: 2rem 0; }

/* ── Typography ── */
.home-title-1, .home-title-2 {
  font-family: 'Poppins', sans-serif;
  text-align: center;
}
.home-title-1 {
  font-size: 32px;
  color: var(--title-primary);
  margin: 10px 0;
  font-weight: 700;
  line-height: 1.3;
  padding: 0 15px;
}
.home-title-2 {
  font-size: 18px;
  color: var(--title-secondary);
  padding: 10px 20px;
  max-width: 80%;
  margin: 0 auto 30px;
  font-weight: 500;
  line-height: 1.5;
}

/* ── Hero ── */
.tc-hero {
  background: linear-gradient(135deg, rgba(39,76,119,0.06) 0%, rgba(96,150,186,0.08) 100%);
  border: 1px solid var(--section-border);
  border-radius: 16px;
  margin-bottom: 20px;
  overflow: hidden;
}
.tc-hero-inner {
  padding: 20px 24px 32px;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}
.tc-hero-title {
  font-size: clamp(26px, 5vw, 42px);
  font-weight: 800;
  color: var(--title-primary);
  margin: 0 0 14px;
  line-height: 1.2;
  font-family: 'Poppins', sans-serif;
}
.tc-hero-sub {
  font-size: clamp(15px, 2.5vw, 18px);
  color: var(--text-color);
  margin: 0 0 24px;
  opacity: 0.8;
  line-height: 1.6;
}
.tc-hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.tc-pill {
  background: rgba(39,76,119,0.08);
  border: 1px solid rgba(39,76,119,0.2);
  color: var(--title-primary);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.tc-pill:hover {
  background: var(--title-primary);
  color: white;
  border-color: var(--title-primary);
  transform: translateY(-1px);
}

/* ── Featured ── */
.tc-featured { margin-bottom: 20px; }
.tc-featured-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.tc-badge {
  background: linear-gradient(135deg, #f59e0b, #f97316);
  color: white;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.tc-featured-header h2 {
  font-size: clamp(16px, 3vw, 20px);
  font-weight: 700;
  color: var(--title-primary);
  margin: 0;
}
.tc-featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 8px;
  margin: 15px;
}
.tc-feat-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  color: white;
}
.tc-feat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}
.tc-feat-blue   { background: linear-gradient(135deg, #3b82f6, #0ea5e9); }
.tc-feat-red    { background: linear-gradient(135deg, #ef4444, #f97316); }
.tc-feat-green  { background: linear-gradient(135deg, #22c55e, #16a34a); }
.tc-feat-orange { background: linear-gradient(135deg, #f97316, #fbbf24); }
.tc-feat-teal   { background: linear-gradient(135deg, #14b8a6, #0891b2); }
.tc-feat-icon svg { width: 40px; height: 40px; flex-shrink: 0; }
.tc-feat-info { flex: 1; min-width: 0; }
.tc-feat-info strong { display: block; font-size: 14px; font-weight: 700; margin-bottom: 2px; }
.tc-feat-info span {
  font-size: 12px;
  opacity: 0.85;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tc-feat-arrow { font-size: 18px; opacity: 0.7; flex-shrink: 0; }

/* ── Sections ── */
.section {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
  background: transparent;
  border: 1px solid var(--section-border);
  transition: transform 0.3s ease-in-out;
}
.section-header {
  background: var(--section-header-bg);
  color: var(--section-header-text);
  padding: 16px 20px;
  font-size: 20px;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 12px 12px 0 0;
}
.section-header h2 { font-size: 16px; margin: 0; }
.sec-svg {
  width: 22px;
  height: 22px;
  color: var(--section-header-text);
  flex-shrink: 0;
}
.tc-count {
  margin-left: auto;
  font-size: 12px;
  font-weight: 600;
  background: rgba(96,150,186,0.15);
  color: var(--section-header-text);
  padding: 3px 8px;
  border-radius: 20px;
  white-space: nowrap;
}
.section-content { padding: 16px; }

/* ── Grid & Cards ── */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 6px;
}
.card {
  background: var(--card-bg);
  padding: 20px;
  border: 0.5px solid var(--card-border);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  text-decoration: none;
  color: var(--text-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: var(--card-shadow);
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--card-hover-shadow);
}
.card-icon { margin-bottom: 16px; }
.card-content h3 {
  font-size: 20px;
  margin: 0 0 8px;
  color: var(--section-header-text);
}
.card-content p {
  font-size: 14px;
  color: var(--text-color);
  margin: 0;
  opacity: 0.8;
}

/* ── View All Card ── */
.tc-viewall-card {
  border: 2px solid rgba(96,150,186,0.4) !important;
  background: linear-gradient(135deg, rgba(96,150,186,0.04), rgba(39,76,119,0.06)) !important;
}
.tc-viewall-card:hover { border-color: var(--title-primary) !important; }
.tc-viewall-card .card-content h3 { color: var(--title-primary) !important; }
.tc-viewall-card .card-content p { color: var(--title-primary) !important; opacity: 0.7; }

/* ── Expand / Collapse ── */
.tc-collapsible .card:nth-child(n+7) { display: none; }
.tc-collapsible[data-expanded="true"] .card { display: flex !important; }
.tc-expand-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: fit-content;
  min-width: 140px;
  margin: 16px auto 4px;
  padding: 10px 24px;
  background: rgba(96,150,186,0.08);
  border: 1.5px solid var(--section-border);
  border-radius: 40px;
  color: var(--section-header-text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(4px);
}
.tc-expand-btn:hover {
  background: var(--title-primary);
  color: white;
  border-color: var(--title-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(39,76,119,0.2);
}
.tc-expand-btn svg {
  transition: transform 0.3s ease;
  width: 14px;
  height: 14px;
}
.tc-expand-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.tc-expand-btn[aria-expanded="true"] {
  background: var(--title-primary);
  color: white;
  border-color: var(--title-primary);
}

/* ── Why Section ── */
.tc-why {
  background: linear-gradient(135deg, rgba(39,76,119,0.04), rgba(96,150,186,0.06));
  border: 1px solid var(--section-border);
  border-radius: 16px;
  padding: 32px 24px;
  margin: 20px 0;
}
.tc-why h2 {
  font-size: clamp(18px, 3vw, 24px);
  color: var(--title-primary);
  text-align: center;
  margin: 0 0 24px;
  font-weight: 700;
}
.tc-why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}
.tc-why-item { text-align: center; }
.tc-why-icon { display: flex; justify-content: center; margin-bottom: 10px; }
.tc-why-icon svg { width: 44px; height: 44px; }
.tc-why-item h3 { font-size: 15px; font-weight: 700; color: var(--title-primary); margin: 0 0 6px; }
.tc-why-item p { font-size: 13px; color: var(--text-color); opacity: 0.75; margin: 0; line-height: 1.5; }

/* ── Quick Nav Section ── */
.tc-nav-section {
  background: linear-gradient(135deg, rgba(39,76,119,0.04), rgba(96,150,186,0.06));
  border: 1px solid var(--section-border);
  border-radius: 16px;
  padding: 28px 24px;
  margin: 20px 0;
}
.tc-nav-section h2 {
  font-size: clamp(17px, 2.5vw, 22px);
  color: var(--title-primary);
  text-align: center;
  margin: 0 0 20px;
  font-weight: 700;
}
.tc-nav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
}
.tc-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-color);
  transition: all 0.2s ease;
}
.tc-nav-item:hover {
  background: var(--title-primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(39,76,119,0.2);
}
.tc-nav-item em {
  font-style: normal;
  font-size: 11px;
  opacity: 0.65;
  margin-left: auto;
  white-space: nowrap;
}

/* ── FAQ ── */
.tc-faq {
  margin: 20px 0;
  padding: 28px 24px;
  background: linear-gradient(135deg, rgba(39,76,119,0.03), rgba(96,150,186,0.05));
  border: 1px solid var(--section-border);
  border-radius: 16px;
}
.tc-faq h2 {
  font-size: clamp(18px, 3vw, 22px);
  color: var(--title-primary);
  margin: 0 0 20px;
  font-weight: 700;
  text-align: center;
}
.tc-faq-list { display: grid; gap: 8px; }
.tc-faq-item {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.tc-faq-item:hover { box-shadow: 0 2px 10px rgba(39,76,119,0.1); }
.tc-faq-item summary {
  padding: 14px 18px;
  font-weight: 600;
  font-size: 14px;
  color: var(--title-primary);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}
.tc-faq-item summary::-webkit-details-marker { display: none; }
.tc-faq-item summary::after { content: "+"; font-size: 20px; font-weight: 300; flex-shrink: 0; }
.tc-faq-item[open] summary::after { content: "\u2212"; }
.tc-faq-item p { padding: 0 18px 14px; font-size: 14px; color: var(--text-color); opacity: 0.8; margin: 0; line-height: 1.6; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .tc-featured-grid { grid-template-columns: 1fr; }
  .tc-hero-inner { padding: 28px 16px 22px; }
  .tc-feat-info span { white-space: normal; }
  .home-title-1 { font-size: 26px; }
  .home-title-2 { font-size: 16px; max-width: 90%; }
}
@media (max-width: 480px) {
  .tc-why-grid { grid-template-columns: 1fr 1fr; }
  .tc-nav-grid { grid-template-columns: 1fr 1fr; }
  .home-title-1 { font-size: 22px; }
  .home-title-2 { font-size: 15px; max-width: 95%; padding: 10px; }
  .section-header h2 { font-size: 14px; }
}