/*
 * THACH CAO DONG ANH - LANDING SYSTEM V3.0.0
 * Reusable WordPress/Newspaper landing-page CSS.
 * Scope: all component rules use the tcda- prefix.
 */

:root {
  --tcda-navy: #082b49;
  --tcda-blue-dark: #0d3e68;
  --tcda-blue: #1e73be;
  --tcda-blue-light: #82c7f3;
  --tcda-orange: #d97706;
  --tcda-orange-dark: #b85f00;
  --tcda-ink: #263a4d;
  --tcda-text: #34495e;
  --tcda-muted: #66788a;
  --tcda-line: #dce6ef;
  --tcda-soft: #f5f9fc;
  --tcda-blue-soft: #eaf4fc;
  --tcda-white: #ffffff;
  --tcda-shadow-sm: 0 8px 24px rgba(13, 62, 104, .08);
  --tcda-shadow-lg: 0 18px 48px rgba(13, 62, 104, .13);
}

/* Newspaper cleanup: active only on a page containing .tcda-home. */
body:has(.tcda-home) .entry-title.td-page-title,
body:has(.tcda-home) .td-crumb-container,
body.home .entry-title.td-page-title,
body.home .td-crumb-container {
  display: none !important;
}

body:has(.tcda-home) .td-main-content-wrap,
body.home .td-main-content-wrap {
  padding-top: 0 !important;
}

body:has(.tcda-home) .td-header-menu-wrap-full,
body:has(.tcda-home) .td-header-menu-wrap,
body.home .td-header-menu-wrap-full,
body.home .td-header-menu-wrap {
  background: var(--tcda-navy) !important;
}

html:has(.tcda-home),
body:has(.tcda-home),
body.home {
  overflow-x: clip;
}

.tcda-home,
.tcda-home * {
  box-sizing: border-box;
}

/* Full-width wrapper: escapes the fixed Newspaper content container once. */
.tcda-home {
  position: relative;
  left: 50%;
  width: 100vw;
  max-width: 100vw;
  margin-right: -50vw;
  margin-left: -50vw;
  overflow: visible;
  color: var(--tcda-text);
  background: var(--tcda-white);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}

.tcda-home img { display: block; max-width: 100%; height: auto; }
.tcda-home a { color: var(--tcda-blue); text-decoration: none; }
.tcda-home p { margin: 0 0 18px; }
.tcda-home ul,
.tcda-home ol { margin-top: 0; }

.tcda-home h1,
.tcda-home h2,
.tcda-home h3 {
  margin: 0 0 16px;
  color: var(--tcda-ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.22;
  letter-spacing: -.02em;
}

.tcda-home h1 { font-size: clamp(36px, 4.3vw, 48px); font-weight: 800; }
.tcda-home h2 { font-size: clamp(28px, 3.2vw, 38px); font-weight: 800; }
.tcda-home h3 { font-size: 21px; font-weight: 800; }

.tcda-container {
  width: min(1180px, calc(100% - 40px));
  max-width: none;
  margin-inline: auto;
}

/* Every direct section is full width; no Page ID or negative margin needed. */
.tcda-full-bleed,
.tcda-home > .tcda-hero,
.tcda-home > .tcda-section {
  width: 100%;
  max-width: none;
  margin-right: 0;
  margin-left: 0;
}

.tcda-section { position: relative; padding: 22px 0; background: var(--tcda-white); }
.tcda-section-alt { background: var(--tcda-soft); }
.tcda-section-soft { background: linear-gradient(180deg, #f8fbfe 0%, var(--tcda-blue-soft) 100%); }
.tcda-section-dark {
  overflow: hidden;
  color: #dbe9f4;
  background: radial-gradient(circle at 85% 20%, rgba(30,115,190,.7), transparent 35%), linear-gradient(135deg, var(--tcda-navy), var(--tcda-blue-dark));
}
.tcda-section-dark h2,
.tcda-section-dark h3 { color: var(--tcda-white); }
.tcda-section-dark .tcda-section-head p { color: #dbe9f4; }
.tcda-section-head { max-width: 780px; margin-bottom: 34px; }
.tcda-section-head p { max-width: 720px; color: var(--tcda-muted); }
.tcda-section-head.tcda-text-center { margin-inline: auto; text-align: center; }
.tcda-section-head.tcda-text-center p { margin-inline: auto; }
.tcda-narrow { max-width: 900px; }

.tcda-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
  color: var(--tcda-blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.tcda-eyebrow::before { content: ""; width: 28px; height: 3px; border-radius: 9px; background: currentColor; }
.tcda-eyebrow-light { color: var(--tcda-blue-light); }

/* Hero */
.tcda-hero {
  position: relative;
  overflow: hidden;
  padding: 92px 0 126px;
  color: var(--tcda-white);
  background: radial-gradient(circle at 84% 16%, rgba(40,145,222,.92), transparent 35%), linear-gradient(125deg, var(--tcda-navy) 0%, #0a416e 56%, var(--tcda-blue) 100%);
}
.tcda-hero::before {
  content: "";
  position: absolute;
  inset: auto -10% -34% auto;
  width: 520px;
  aspect-ratio: 1;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
}
.tcda-hero::after {
  content: "";
  position: absolute;
  left: -12%;
  bottom: -120px;
  width: 560px;
  height: 220px;
  border-radius: 50%;
  background: rgba(255,255,255,.035);
  transform: rotate(9deg);
}
.tcda-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(350px, .92fr);
  gap: 68px;
  align-items: center;
}
.tcda-hero h1 { color: var(--tcda-white); text-wrap: balance; }
.tcda-hero p { color: #dceefa; }
.tcda-hero .tcda-lead { max-width: 720px; color: #e8f5fd; font-size: 20px; line-height: 1.62; }
.tcda-hero-copy > p:not(.tcda-lead):not(.tcda-hero-note) { max-width: 700px; }

.tcda-check-list { display: grid; gap: 10px; margin: 22px 0 28px; padding: 0; list-style: none; }
.tcda-check-list li { position: relative; padding-left: 30px; }
.tcda-check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: .12em;
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--tcda-navy);
  background: #71e2bd;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
}
.tcda-check-list-light { color: var(--tcda-white); }

.tcda-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 24px; }
.tcda-btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.tcda-btn:hover { transform: translateY(-2px); }
.tcda-btn-accent { color: var(--tcda-white) !important; background: var(--tcda-orange); box-shadow: 0 9px 24px rgba(217,119,6,.28); }
.tcda-btn-accent:hover { background: var(--tcda-orange-dark); }
.tcda-btn-light { color: var(--tcda-blue-dark) !important; background: var(--tcda-white); }
.tcda-btn-primary { color: var(--tcda-white) !important; background: var(--tcda-blue); box-shadow: 0 9px 22px rgba(30,115,190,.24); }
.tcda-btn-primary:hover { background: var(--tcda-blue-dark); }
.tcda-btn-outline { color: var(--tcda-blue) !important; border-color: #9dc9e9; background: transparent; }
.tcda-btn-outline:hover { background: var(--tcda-white); }

.tcda-hero-note { margin: 18px 0 0 !important; color: #c9ddeb !important; font-size: 14px; }
.tcda-hero-note::before { content: "✓"; margin-right: 8px; color: #71e2bd; font-weight: 900; }
.tcda-hero-media {
  position: relative;
  margin: 0;
  padding: 7px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 24px;
  background: rgba(255,255,255,.14);
  box-shadow: 0 24px 60px rgba(2,24,43,.28);
}
.tcda-hero-media img { width: 100%; aspect-ratio: 4 / 3; border-radius: 18px; object-fit: cover; object-position: 50% 34%; }
.tcda-hero-media figcaption {
  position: absolute;
  right: 22px;
  bottom: 20px;
  max-width: calc(100% - 44px);
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 12px;
  color: var(--tcda-white);
  background: rgba(8,43,73,.88);
  font-size: 14px;
  font-weight: 800;
}

/* USP */
.tcda-usp-wrap { position: relative; z-index: 3; margin-top: -72px; }
.tcda-home > .tcda-usp-wrap {
  left: auto;
  width: min(1180px, calc(100% - 40px));
  max-width: none;
  margin-right: auto !important;
  margin-left: auto !important;
  transform: none;
}
.tcda-usp {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  border: 1px solid var(--tcda-line);
  border-radius: 18px;
  background: var(--tcda-white);
  box-shadow: var(--tcda-shadow-lg);
}
.tcda-usp-item { min-height: 146px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 18px; text-align: center; }
.tcda-usp-item + .tcda-usp-item { border-left: 1px solid var(--tcda-line); }
.tcda-usp-icon { width: 42px; height: 42px; display: grid; place-items: center; margin-bottom: 10px; border-radius: 50%; color: var(--tcda-white); background: var(--tcda-blue); font-size: 13px; font-weight: 900; }
.tcda-usp-item strong { color: var(--tcda-ink); font-size: 16px; }
.tcda-usp-item small { margin-top: 4px; color: var(--tcda-muted); font-size: 13px; }

/* Layout and cards */
.tcda-grid { display: grid; gap: 24px; }
.tcda-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tcda-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tcda-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tcda-align-center { align-items: center; }
.tcda-card { overflow: hidden; border: 1px solid var(--tcda-line); border-radius: 18px; background: var(--tcda-white); box-shadow: var(--tcda-shadow-sm); }
.tcda-service-card { position: relative; min-height: 100%; transition: transform .24s ease, box-shadow .24s ease; }
.tcda-service-card:hover { transform: translateY(-5px); box-shadow: var(--tcda-shadow-lg); }
.tcda-card-body { position: relative; height: 100%; display: flex; flex-direction: column; padding: 28px; }
.tcda-card-index { width: 46px; height: 46px; display: grid; place-items: center; margin-bottom: 20px; border-radius: 14px; color: var(--tcda-white); background: linear-gradient(135deg, var(--tcda-blue), var(--tcda-blue-dark)); font-weight: 900; }
.tcda-service-card p { flex-grow: 1; color: var(--tcda-muted); }
.tcda-card-link { display: inline-flex; align-items: center; gap: 7px; margin-top: 8px; color: var(--tcda-blue) !important; font-weight: 800; }
.tcda-card-link span { transition: transform .2s ease; }
.tcda-card-link:hover span { transform: translateX(4px); }

.tcda-callout { margin: 24px 0; padding: 20px 22px; border-left: 4px solid var(--tcda-blue); border-radius: 0 12px 12px 0; background: var(--tcda-blue-soft); }
.tcda-panel { padding: 38px; border: 1px solid var(--tcda-line); border-radius: 24px; box-shadow: var(--tcda-shadow-sm); }
.tcda-panel-blue { border-color: #b8d9f0; background: var(--tcda-blue-soft); }
.tcda-panel .tcda-check-list { margin-bottom: 0; }
.tcda-feature { position: relative; min-height: 210px; padding: 28px; border: 1px solid var(--tcda-line); border-radius: 18px; background: var(--tcda-white); box-shadow: var(--tcda-shadow-sm); }
.tcda-feature > span { display: inline-block; margin-bottom: 16px; color: var(--tcda-blue); font-size: 13px; font-weight: 900; letter-spacing: .14em; }
.tcda-feature p { margin-bottom: 0; color: var(--tcda-muted); }

/* Price table */
.tcda-table-wrap { overflow-x: auto; margin: 28px 0 26px; border: 1px solid var(--tcda-line); border-radius: 18px; background: var(--tcda-white); box-shadow: var(--tcda-shadow-sm); }
.tcda-price-table { width: 100%; min-width: 820px; border-collapse: collapse; color: var(--tcda-text); }
.tcda-price-table th { padding: 17px 18px; color: var(--tcda-white); background: var(--tcda-blue-dark); font-size: 14px; text-align: left; }
.tcda-price-table td { padding: 16px 18px; border-bottom: 1px solid var(--tcda-line); vertical-align: top; }
.tcda-price-table tbody tr:last-child td { border-bottom: 0; }
.tcda-price-table tbody tr:nth-child(even) { background: #f8fbfd; }
.tcda-price-table tbody tr:hover { background: var(--tcda-blue-soft); }
.tcda-price { color: #b63b35; font-weight: 900; }
.tcda-justify-center { justify-content: center; }

/* Stats and process */
.tcda-stat { min-height: 170px; padding: 26px; border: 1px solid rgba(255,255,255,.16); border-radius: 18px; background: rgba(255,255,255,.08); backdrop-filter: blur(4px); }
.tcda-stat strong { display: block; margin-bottom: 10px; color: var(--tcda-white); font-size: 21px; }
.tcda-stat span { color: #dbe9f4; }
.tcda-process { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; padding: 0; list-style: none; }
.tcda-process li { display: grid; grid-template-columns: 54px 1fr; gap: 16px; padding: 26px; border: 1px solid var(--tcda-line); border-radius: 18px; background: var(--tcda-white); box-shadow: var(--tcda-shadow-sm); }
.tcda-process li > span { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 16px; color: var(--tcda-white); background: var(--tcda-orange); font-weight: 900; }
.tcda-process h3 { margin-top: 2px; margin-bottom: 8px; font-size: 19px; }
.tcda-process p { margin-bottom: 0; color: var(--tcda-muted); font-size: 15px; }

/* Media and locations */
.tcda-media-card { margin: 0; }
.tcda-media-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.tcda-media-card figcaption { padding: 18px 20px; color: var(--tcda-ink); font-weight: 800; }
.tcda-locations { display: flex; flex-wrap: wrap; gap: 11px; padding: 30px; border: 1px solid var(--tcda-line); border-radius: 24px; background: var(--tcda-soft); }
.tcda-locations a,
.tcda-locations span { display: inline-flex; padding: 10px 15px; border: 1px solid #c9ddeb; border-radius: 999px; color: var(--tcda-blue-dark); background: var(--tcda-white); font-weight: 700; }
.tcda-locations a:hover { color: var(--tcda-white); background: var(--tcda-blue); }

/* FAQ */
.tcda-faq { display: grid; gap: 12px; }
.tcda-faq details { overflow: hidden; border: 1px solid var(--tcda-line); border-radius: 15px; background: var(--tcda-white); box-shadow: 0 5px 18px rgba(13,62,104,.06); }
.tcda-faq summary { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 19px 22px; color: var(--tcda-ink); cursor: pointer; font-weight: 800; list-style: none; }
.tcda-faq summary::-webkit-details-marker { display: none; }
.tcda-faq summary span { flex: 0 0 auto; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; color: var(--tcda-white); background: var(--tcda-blue); transition: transform .2s ease; }
.tcda-faq details[open] summary span { transform: rotate(45deg); }
.tcda-faq-answer { padding: 0 22px 18px; color: var(--tcda-muted); }
.tcda-faq-answer p { margin-bottom: 0; }

/* CTA */
.tcda-cta { position: relative; overflow: hidden; padding: 62px; border-radius: 26px; color: #e8f4fc; background: radial-gradient(circle at 90% 10%, rgba(43,148,224,.82), transparent 34%), linear-gradient(125deg, var(--tcda-navy), var(--tcda-blue-dark)); box-shadow: var(--tcda-shadow-lg); }
.tcda-cta::after { content: ""; position: absolute; right: -90px; bottom: -130px; width: 320px; aspect-ratio: 1; border: 1px solid rgba(255,255,255,.15); border-radius: 50%; }
.tcda-cta > * { position: relative; z-index: 1; }
.tcda-cta h2 { max-width: 820px; color: var(--tcda-white); }
.tcda-cta p { max-width: 820px; }
.tcda-contact-line { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 24px; color: #d7e9f6; font-size: 14px; font-weight: 700; }
.tcda-contact-line span::before { content: "✓"; margin-right: 7px; color: #71e2bd; }
.tcda-mobile-bar { display: none; }

.td-page-content .tcda-home,
.tdb_single_content .tcda-home,
.entry-content .tcda-home { max-width: 100vw; }
.tcda-home > :first-child { margin-top: 0; }
.tcda-home > :last-child { margin-bottom: 0; }

@media (max-width: 1024px) {
  .tcda-hero { padding-top: 74px; }
  .tcda-hero-grid { grid-template-columns: 1fr 390px; gap: 38px; }
  .tcda-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tcda-process { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .tcda-home { font-size: 15px; }
  .tcda-container { width: min(calc(100% - 30px), 720px); }
  .tcda-section { padding: 58px 0; }
  .tcda-hero { padding: 62px 0 108px; }
  .tcda-hero-grid,
  .tcda-grid-2 { grid-template-columns: 1fr; }
  .tcda-hero-media { max-width: 620px; }
  .tcda-usp { grid-template-columns: repeat(2, 1fr); }
  .tcda-usp-item:nth-child(3) { border-top: 1px solid var(--tcda-line); border-left: 0; }
  .tcda-usp-item:nth-child(4) { border-top: 1px solid var(--tcda-line); }
  .tcda-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tcda-cta { padding: 46px 36px; }
}

@media (max-width: 560px) {
  .tcda-home { padding-bottom: 64px; }
  .tcda-container { width: min(calc(100% - 24px), 520px); }
  .tcda-home h1 { font-size: 34px; }
  .tcda-home h2 { font-size: 28px; }
  .tcda-section { padding: 48px 0; }
  .tcda-hero { padding: 50px 0 96px; }
  .tcda-hero .tcda-lead { font-size: 18px; }
  .tcda-hero-grid { gap: 30px; }
  .tcda-hero-media img { aspect-ratio: 4 / 3; }
  .tcda-hero-media figcaption { position: static; max-width: none; margin-top: 7px; }
  .tcda-usp-wrap { margin-top: -58px; }
  .tcda-home > .tcda-usp-wrap { width: min(calc(100% - 24px), 520px); }
  .tcda-usp { grid-template-columns: 1fr; }
  .tcda-usp-item { min-height: 126px; }
  .tcda-usp-item + .tcda-usp-item { border-top: 1px solid var(--tcda-line); border-left: 0; }
  .tcda-grid-3,
  .tcda-grid-4,
  .tcda-process { grid-template-columns: 1fr; }
  .tcda-card-body,
  .tcda-feature,
  .tcda-panel { padding: 24px; }
  .tcda-process li { grid-template-columns: 48px 1fr; padding: 22px; }
  .tcda-process li > span { width: 48px; height: 48px; }
  .tcda-actions .tcda-btn { width: 100%; }
  .tcda-cta { padding: 38px 24px; border-radius: 20px; }
  .tcda-mobile-bar { position: fixed; z-index: 9999; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: 1fr 1fr; min-height: 58px; padding: 7px; gap: 7px; background: rgba(8,43,73,.96); box-shadow: 0 -8px 24px rgba(0,0,0,.18); }
  .tcda-mobile-bar a { display: grid; place-items: center; border-radius: 999px; color: var(--tcda-white); background: var(--tcda-orange); font-weight: 900; }
  .tcda-mobile-bar a + a { background: var(--tcda-blue); }
}

@media (prefers-reduced-motion: reduce) {
  .tcda-home *,
  .tcda-home ::before,
  .tcda-home ::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

@media print {
  .tcda-mobile-bar,
  .tcda-actions { display: none !important; }
  .tcda-section,
  .tcda-hero { padding: 28px 0; color: #000; background: #fff !important; }
  .tcda-home h1,
  .tcda-home h2,
  .tcda-home h3,
  .tcda-hero p { color: #000 !important; }
}
