/* =========================================================
   Thailand TDAC – Modern Travel Site Theme
   Author: Site team | Updated: 2026
   Preserves all legacy class names while adding rich UI.
   ========================================================= */

:root{
  --tdac-primary:#0e4f8a;
  --tdac-primary-dark:#003a6b;
  --tdac-primary-light:#1f7ac0;
  --tdac-accent:#f7b500;
  --tdac-accent-dark:#d99a00;
  --tdac-coral:#ff5a5f;
  --tdac-text:#1e293b;
  --tdac-text-muted:#5a6779;
  --tdac-bg:#ffffff;
  --tdac-bg-soft:#f5f8fc;
  --tdac-border:#e6ecf3;
  --tdac-radius:14px;
  --tdac-shadow-sm:0 2px 6px rgba(15,30,60,.06);
  --tdac-shadow:0 8px 24px rgba(15,30,60,.08);
  --tdac-shadow-lg:0 18px 44px rgba(15,30,60,.14);
  --tdac-trans:.25s cubic-bezier(.2,.7,.2,1);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  font-family:'Inter','Segoe UI',system-ui,-apple-system,sans-serif;
  color:var(--tdac-text);
  background:#fff;
  margin:0;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%;height:auto;display:block}

h1,h2,h3,h4,h5,h6{
  font-family:'Inter','Segoe UI',sans-serif;
  font-weight:700;
  color:var(--tdac-text);
  line-height:1.25;
}
.section-eyebrow{
  text-transform:uppercase;
  letter-spacing:2px;
  font-size:.75rem;
  font-weight:700;
  color:var(--tdac-primary);
  display:inline-block;
  margin-bottom:.75rem;
}

/* ============== NAVBAR ============== */
.site-nav{
  background:#fff;
  box-shadow:var(--tdac-shadow-sm);
  position:sticky;
  top:0;
  z-index:1000;
  border-bottom:1px solid var(--tdac-border);
}
.site-nav .nav-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:.65rem 1rem;
  max-width:1280px;
  margin:0 auto;
}
.site-nav .brand{
  display:flex;
  align-items:center;
  gap:.7rem;
  text-decoration:none;
  color:var(--tdac-text);
}
.site-nav .brand img{width:46px;height:46px;border-radius:10px;object-fit:cover}
.site-nav .brand-text{font-size:1.15rem;font-weight:800;line-height:1}
.site-nav .brand-text small{display:block;font-size:.7rem;color:var(--tdac-text-muted);font-weight:500;margin-top:2px}
.site-nav .nav-links{display:flex;align-items:center;gap:.25rem;list-style:none;padding:0;margin:0}
.site-nav .nav-links a{
  color:var(--tdac-text);
  text-decoration:none;
  padding:.55rem .9rem;
  border-radius:8px;
  font-weight:500;
  font-size:.95rem;
  transition:var(--tdac-trans);
}
.site-nav .nav-links a:hover{color:var(--tdac-primary);background:var(--tdac-bg-soft)}
.site-nav .nav-cta{
  background:var(--tdac-accent);
  color:#1a1a1a !important;
  font-weight:700 !important;
  padding:.6rem 1.2rem !important;
  border-radius:30px !important;
}
.site-nav .nav-cta:hover{background:var(--tdac-accent-dark) !important;color:#fff !important}
.site-nav .nav-toggle{
  display:none;
  background:var(--tdac-bg-soft);
  border:1px solid var(--tdac-border);
  border-radius:10px;
  padding:.45rem .75rem;
  font-size:1.4rem;
  line-height:1;
  cursor:pointer;
  color:var(--tdac-primary);
  transition:var(--tdac-trans);
}
.site-nav .nav-toggle:hover,.site-nav .nav-toggle:focus{
  background:var(--tdac-primary);
  color:#fff;
  border-color:var(--tdac-primary);
}
.site-nav .nav-toggle[aria-expanded="true"]{
  background:var(--tdac-primary);
  color:#fff;
  border-color:var(--tdac-primary);
}

@media (max-width:900px){
  .site-nav .nav-inner{
    flex-wrap:wrap;
    padding:.6rem .85rem;
  }
  .site-nav .nav-toggle{display:inline-flex;align-items:center;justify-content:center}

  /* Slide-down panel */
  .site-nav .nav-links{
    display:flex;
    flex-direction:column;
    width:100%;
    background:#fff;
    border-top:1px solid var(--tdac-border);
    align-items:stretch;
    margin:.6rem -0.85rem -0.6rem;
    padding:0;
    width:calc(100% + 1.7rem);
    max-height:0;
    overflow:hidden;
    opacity:0;
    transition:max-height .35s ease, opacity .25s ease;
    box-shadow:0 12px 24px rgba(15,30,60,.08);
  }
  .site-nav .nav-links.open{
    max-height:600px;
    opacity:1;
    padding:.5rem 0 1rem;
  }

  .site-nav .nav-links li{
    list-style:none;
    margin:0;
    border-bottom:1px solid #f0f4f9;
  }
  .site-nav .nav-links li:last-child{border-bottom:0}

  .site-nav .nav-links a{
    display:flex;
    align-items:center;
    padding:1rem 1.5rem;
    border-radius:0;
    font-size:1rem;
    font-weight:600;
    color:var(--tdac-text);
    width:100%;
  }
  .site-nav .nav-links a::before{
    content:"";
    width:6px;height:6px;
    background:var(--tdac-accent);
    border-radius:50%;
    margin-right:.85rem;
    opacity:0;
    transition:opacity .2s ease;
  }
  .site-nav .nav-links a:hover,
  .site-nav .nav-links a:focus{
    background:var(--tdac-bg-soft);
    color:var(--tdac-primary);
  }
  .site-nav .nav-links a:hover::before,
  .site-nav .nav-links a:focus::before{opacity:1}

  /* Apply Now button - special treatment in mobile menu */
  .site-nav .nav-links li:has(.nav-cta){
    margin-top:.75rem;
    padding:.5rem 1rem;
    border-bottom:0;
  }
  .site-nav .nav-cta{
    display:flex !important;
    justify-content:center;
    width:100%;
    margin:0 !important;
    padding:.95rem 1rem !important;
    color:#1a1a1a !important;
    background:var(--tdac-accent) !important;
    border-radius:30px !important;
    font-size:1rem !important;
    text-align:center;
    box-shadow:0 8px 20px rgba(247,181,0,.35);
  }
  .site-nav .nav-cta::before{display:none !important}
  .site-nav .nav-cta:hover{
    background:#fff !important;
    color:var(--tdac-primary) !important;
  }
}

/* Desktop nav-cta keeps original look */
@media (min-width:901px){
  .site-nav .nav-cta{
    background:var(--tdac-accent);
    color:#1a1a1a !important;
    margin-left:.5rem;
  }
  .site-nav .nav-cta:hover{
    background:var(--tdac-accent-dark) !important;
    color:#fff !important;
  }
}

/* ============== HERO ============== */
.tdac-hero{
  position:relative;
  min-height:620px;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  color:#fff;
  background:#0e4f8a;
  overflow:hidden;
}
.tdac-hero::before{
  content:"";
  position:absolute;inset:0;
  background-image:linear-gradient(180deg,rgba(7,28,58,.55) 0%,rgba(7,28,58,.78) 100%),
                    url('../img/hero/hero-thailand-temple.jpg');
  background-size:cover;
  background-position:center;
  z-index:0;
}
.tdac-hero .hero-content{position:relative;z-index:1;max-width:860px;padding:5rem 1.25rem}
.tdac-hero h1{
  font-size:clamp(2rem,5vw,3.5rem);
  font-weight:800;
  margin-bottom:1rem;
  color:#fff;
  text-shadow:0 4px 20px rgba(0,0,0,.35);
}
.tdac-hero p.lead{
  font-size:clamp(1rem,2vw,1.25rem);
  margin-bottom:1.75rem;
  color:#e8eef7;
  text-shadow:0 2px 10px rgba(0,0,0,.35);
}
/* hero-cta is used in hero, cta-banners and how-it-works section - global */
.hero-cta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.5rem;
  background:var(--tdac-accent);
  color:#1a1a1a !important;
  border:0;
  padding:1rem 2rem;
  border-radius:50px;
  font-weight:800;
  font-size:1.05rem;
  text-decoration:none !important;
  box-shadow:0 12px 28px rgba(247,181,0,.45);
  transition:var(--tdac-trans);
  cursor:pointer;
  line-height:1.2;
  white-space:nowrap;
  max-width:100%;
}
.hero-cta:hover,.hero-cta:focus{
  background:#fff;
  color:var(--tdac-primary) !important;
  transform:translateY(-3px);
  text-decoration:none !important;
}
.hero-cta.secondary{
  background:transparent;
  color:#fff !important;
  border:2px solid #fff;
  margin-left:.75rem;
  box-shadow:none;
}
.hero-cta.secondary:hover,.hero-cta.secondary:focus{background:#fff;color:var(--tdac-primary) !important}

/* When the hero-cta sits inside a dark CTA banner, force gold/yellow look */
.cta-banner .hero-cta{
  background:var(--tdac-accent);
  color:#1a1a1a !important;
  box-shadow:0 12px 28px rgba(0,0,0,.35);
}
.cta-banner .hero-cta:hover,
.cta-banner .hero-cta:focus{
  background:#fff;
  color:var(--tdac-primary) !important;
}

/* Make the secondary outline button readable when used outside hero */
.tdac-hero .hero-cta.secondary{margin-left:.75rem}
.tdac-hero .badges{
  margin-top:2rem;
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:1.25rem 2rem;
  color:#fff;
  font-size:.95rem;
}
.tdac-hero .badges span{display:inline-flex;align-items:center;gap:.4rem;opacity:.95}
.tdac-hero .badges i{color:var(--tdac-accent)}

/* ============== STATS STRIP ============== */
.stats-strip{
  background:#fff;
  margin-top:-60px;
  position:relative;
  z-index:2;
  border-radius:18px;
  box-shadow:var(--tdac-shadow-lg);
  padding:1.5rem 1rem;
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:1rem;
  max-width:1100px;
  margin-left:auto;
  margin-right:auto;
}
.stats-strip .stat{text-align:center;padding:.5rem}
.stats-strip .stat .num{
  font-size:clamp(1.5rem,3vw,2.25rem);
  font-weight:800;
  color:var(--tdac-primary);
  line-height:1;
}
.stats-strip .stat .lbl{
  font-size:.85rem;
  color:var(--tdac-text-muted);
  margin-top:.35rem;
  text-transform:uppercase;
  letter-spacing:.6px;
  font-weight:600;
}
@media (max-width:700px){.stats-strip{grid-template-columns:repeat(2,1fr)}}

/* ============== SECTIONS ============== */
.tdac-section{padding:5rem 1rem}
.tdac-section.alt{background:var(--tdac-bg-soft)}
.tdac-section .container{max-width:1180px;margin:0 auto}
.section-title{
  text-align:center;
  margin-bottom:3rem;
}
.section-title h2{
  font-size:clamp(1.75rem,3vw,2.5rem);
  margin-bottom:.75rem;
}
.section-title p{
  color:var(--tdac-text-muted);
  font-size:1.05rem;
  max-width:680px;
  margin:0 auto;
}

/* ============== FEATURES / SERVICES ============== */
.features-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:1.5rem;
}
.feature-card{
  background:#fff;
  border:1px solid var(--tdac-border);
  border-radius:var(--tdac-radius);
  padding:2rem 1.5rem;
  text-align:center;
  transition:var(--tdac-trans);
  box-shadow:var(--tdac-shadow-sm);
}
.feature-card:hover{
  transform:translateY(-6px);
  box-shadow:var(--tdac-shadow);
  border-color:rgba(14,79,138,.25);
}
.feature-card .icon-wrap{
  width:72px;height:72px;
  margin:0 auto 1.25rem;
  border-radius:50%;
  background:linear-gradient(135deg,#e8f1fb,#f6e9c1);
  display:flex;align-items:center;justify-content:center;
  font-size:2rem;
  color:var(--tdac-primary);
}
.feature-card h3{font-size:1.2rem;margin-bottom:.6rem}
.feature-card p{color:var(--tdac-text-muted);margin:0;font-size:.95rem}

/* ============== DESTINATION CARDS ============== */
.destinations-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:1.5rem;
}
.dest-card{
  position:relative;
  border-radius:var(--tdac-radius);
  overflow:hidden;
  height:340px;
  box-shadow:var(--tdac-shadow);
  cursor:pointer;
  transition:var(--tdac-trans);
  text-decoration:none;
  display:block;
}
.dest-card:hover{transform:translateY(-6px);box-shadow:var(--tdac-shadow-lg)}
.dest-card img{
  position:absolute;inset:0;
  width:100%;height:100%;
  object-fit:cover;
  transition:transform .6s ease;
}
.dest-card:hover img{transform:scale(1.08)}
.dest-card .overlay{
  position:absolute;inset:0;
  background:linear-gradient(180deg,rgba(0,0,0,0) 30%,rgba(0,0,0,.78) 100%);
}
.dest-card .info{
  position:absolute;bottom:0;left:0;right:0;
  padding:1.5rem;
  color:#fff;
  z-index:1;
}
.dest-card h3{color:#fff;margin:0 0 .25rem;font-size:1.5rem}
.dest-card .sub{font-size:.9rem;opacity:.9;margin-bottom:.5rem}
.dest-card .tag{
  display:inline-block;
  background:var(--tdac-accent);
  color:#1a1a1a;
  padding:.3rem .7rem;
  border-radius:30px;
  font-size:.75rem;
  font-weight:700;
  margin-bottom:.6rem;
}

.dest-card.large{height:440px;grid-column:span 2}
@media (max-width:768px){.dest-card.large{grid-column:span 1;height:340px}}

/* ============== HOW IT WORKS / STEPS ============== */
.steps-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:1.5rem;
  margin-top:2rem;
}
.step-card{
  background:#fff;
  border-radius:var(--tdac-radius);
  padding:2rem 1.5rem;
  text-align:left;
  box-shadow:var(--tdac-shadow-sm);
  border-top:4px solid var(--tdac-primary);
  position:relative;
}
.step-card .step-num{
  position:absolute;
  top:-22px;left:1.5rem;
  width:44px;height:44px;
  background:var(--tdac-primary);
  color:#fff;font-weight:700;
  border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 6px 14px rgba(14,79,138,.35);
}
.step-card h3{margin:.5rem 0 .5rem;font-size:1.2rem}
.step-card p{color:var(--tdac-text-muted);margin:0;font-size:.95rem}

/* ============== BLOG CARDS ============== */
.blog-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(290px,1fr));
  gap:1.75rem;
}
.blog-card{
  background:#fff;
  border-radius:var(--tdac-radius);
  overflow:hidden;
  box-shadow:var(--tdac-shadow-sm);
  display:flex;flex-direction:column;
  transition:var(--tdac-trans);
  border:1px solid var(--tdac-border);
}
.blog-card:hover{transform:translateY(-6px);box-shadow:var(--tdac-shadow)}
.blog-card .thumb{position:relative;padding-top:58%;overflow:hidden;background:#dde3ea}
.blog-card .thumb img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .5s ease}
.blog-card:hover .thumb img{transform:scale(1.07)}
.blog-card .cat{
  position:absolute;top:1rem;left:1rem;
  background:var(--tdac-accent);
  color:#1a1a1a;
  font-size:.7rem;
  font-weight:700;
  padding:.3rem .75rem;
  border-radius:20px;
  text-transform:uppercase;
  letter-spacing:.5px;
  z-index:1;
}
.blog-card .body{padding:1.5rem;flex:1;display:flex;flex-direction:column}
.blog-card h3{font-size:1.25rem;margin:0 0 .65rem}
.blog-card h3 a{color:var(--tdac-text);text-decoration:none}
.blog-card h3 a:hover{color:var(--tdac-primary)}
.blog-card .excerpt{color:var(--tdac-text-muted);font-size:.95rem;flex:1;margin-bottom:1rem}
.blog-card .meta{font-size:.8rem;color:var(--tdac-text-muted);display:flex;gap:1rem;align-items:center}
.blog-card .meta i{color:var(--tdac-primary)}

/* ============== TESTIMONIALS ============== */
.testimonial-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
  gap:1.5rem;
}
.testimonial{
  background:#fff;
  padding:2rem 1.75rem;
  border-radius:var(--tdac-radius);
  border-left:4px solid var(--tdac-accent);
  box-shadow:var(--tdac-shadow-sm);
  position:relative;
}
.testimonial .quote-mark{
  font-size:3.5rem;
  position:absolute;top:.5rem;right:1rem;
  color:var(--tdac-bg-soft);
  font-family:Georgia,serif;
  line-height:1;
}
.testimonial p{color:var(--tdac-text);font-style:italic;margin-bottom:1.25rem;position:relative;z-index:1}
.testimonial .stars{color:var(--tdac-accent);margin-bottom:.5rem;font-size:1.05rem}
.testimonial .author{display:flex;align-items:center;gap:.75rem}
.testimonial .avatar{
  width:48px;height:48px;border-radius:50%;
  background:linear-gradient(135deg,var(--tdac-primary),var(--tdac-primary-light));
  display:flex;align-items:center;justify-content:center;
  color:#fff;font-weight:700;font-size:1.1rem;
}
.testimonial .author .name{font-weight:700;font-size:.95rem}
.testimonial .author .role{font-size:.8rem;color:var(--tdac-text-muted)}

/* ============== CALLOUT ============== */
.cta-banner{
  background:linear-gradient(135deg,var(--tdac-primary) 0%,#1f4f8a 100%);
  color:#fff;
  padding:4rem 1.5rem;
  text-align:center;
  border-radius:18px;
  position:relative;
  overflow:hidden;
}
.cta-banner::before{
  content:"";
  position:absolute;inset:0;
  background:url('../img/destinations/destination-krabi.jpg') center/cover;
  opacity:.15;
}
.cta-banner > *{position:relative;z-index:1}
.cta-banner h2{color:#fff;font-size:clamp(1.5rem,3vw,2.25rem);margin-bottom:.75rem}
.cta-banner p{color:#dbeaf7;font-size:1.1rem;margin-bottom:1.5rem;max-width:660px;margin-left:auto;margin-right:auto}
.cta-banner .hero-cta{box-shadow:0 12px 28px rgba(0,0,0,.25)}

/* ============== INFO TWO-COL ============== */
.info-split{
  display:grid;
  grid-template-columns:1.1fr 1fr;
  gap:3rem;
  align-items:center;
}
@media (max-width:900px){.info-split{grid-template-columns:1fr}}
.info-split .image-wrap{
  position:relative;
  border-radius:var(--tdac-radius);
  overflow:hidden;
  box-shadow:var(--tdac-shadow-lg);
  aspect-ratio:4/3;
}
.info-split .image-wrap img{width:100%;height:100%;object-fit:cover}
.info-split h2{font-size:clamp(1.6rem,3vw,2.2rem);margin-bottom:1rem}
.info-split ul{padding-left:0;list-style:none}
.info-split ul li{
  padding:.6rem 0 .6rem 2rem;
  position:relative;
  color:var(--tdac-text);
}
.info-split ul li::before{
  content:"✓";
  position:absolute;left:0;top:.6rem;
  width:22px;height:22px;
  background:var(--tdac-primary);
  color:#fff;
  border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  font-size:.8rem;font-weight:700;
}

/* ============== FAQ ============== */
.faq-list{max-width:860px;margin:0 auto;display:flex;flex-direction:column;gap:1rem}
.faq-item{
  background:#fff;
  border:1px solid var(--tdac-border);
  border-radius:var(--tdac-radius);
  padding:1.25rem 1.5rem;
  box-shadow:var(--tdac-shadow-sm);
  transition:var(--tdac-trans);
}
.faq-item:hover{box-shadow:var(--tdac-shadow);border-color:rgba(14,79,138,.2)}
.faq-item summary{
  cursor:pointer;
  font-weight:700;
  font-size:1.05rem;
  color:var(--tdac-text);
  list-style:none;
  display:flex;justify-content:space-between;align-items:center;
}
.faq-item summary::-webkit-details-marker{display:none}
.faq-item summary::after{
  content:"+";
  font-size:1.5rem;
  color:var(--tdac-primary);
  transition:transform .3s ease;
}
.faq-item[open] summary::after{content:"−"}
.faq-item p{margin:1rem 0 0;color:var(--tdac-text-muted);line-height:1.7}

/* ============== FOOTER ============== */
.site-footer{
  background:#0d1c30;
  color:#cbd5e1;
  padding:4rem 1rem 1.5rem;
  margin-top:0;
}
.site-footer .footer-grid{
  max-width:1180px;
  margin:0 auto;
  display:grid;
  grid-template-columns:1.4fr 1fr 1fr 1fr;
  gap:2.5rem;
}
@media (max-width:900px){.site-footer .footer-grid{grid-template-columns:1fr 1fr}}
@media (max-width:520px){.site-footer .footer-grid{grid-template-columns:1fr}}
.site-footer h4{color:#fff;font-size:1rem;margin:0 0 1rem;font-weight:700;text-transform:uppercase;letter-spacing:1px}
.site-footer p,.site-footer li{font-size:.92rem;line-height:1.7;color:#94a3b8}
.site-footer ul{list-style:none;padding:0;margin:0}
.site-footer ul li{margin-bottom:.45rem}
.site-footer a{color:#cbd5e1;text-decoration:none;transition:color .2s ease}
.site-footer a:hover{color:var(--tdac-accent)}
.site-footer .brand-block .logo-row{display:flex;align-items:center;gap:.75rem;margin-bottom:1rem}
.site-footer .brand-block img{width:48px;border-radius:8px}
.site-footer .brand-block strong{color:#fff;font-size:1.1rem}
.site-footer .socials{display:flex;gap:.5rem;margin-top:1rem}
.site-footer .socials a{
  width:36px;height:36px;border-radius:50%;
  background:rgba(255,255,255,.08);
  display:flex;align-items:center;justify-content:center;
  color:#fff;
}
.site-footer .socials a:hover{background:var(--tdac-accent);color:#000}
.site-footer .bottom{
  max-width:1180px;
  margin:3rem auto 0;
  padding-top:1.5rem;
  border-top:1px solid rgba(255,255,255,.08);
  text-align:center;
  font-size:.85rem;
  color:#94a3b8;
}
.site-footer .disclaimer{
  max-width:880px;
  margin:1.5rem auto 0;
  font-size:.8rem;
  color:#7a8a99;
  text-align:center;
  line-height:1.6;
}

/* ============== BLOG ARTICLE ============== */
.article-hero{
  background:linear-gradient(180deg,rgba(7,28,58,.55) 0%,rgba(7,28,58,.85) 100%),
              center/cover no-repeat;
  color:#fff;
  padding:6rem 1rem 4rem;
  text-align:center;
}
.article-hero .breadcrumb-trail{font-size:.85rem;color:#cbd5e1;margin-bottom:1rem}
.article-hero .breadcrumb-trail a{color:var(--tdac-accent);text-decoration:none}
.article-hero h1{color:#fff;font-size:clamp(1.8rem,4vw,3rem);margin-bottom:1rem;max-width:880px;margin-left:auto;margin-right:auto}
.article-hero .meta{color:#dbeaf7;font-size:.95rem;display:inline-flex;gap:1.5rem;flex-wrap:wrap;justify-content:center}
.article-hero .meta i{color:var(--tdac-accent)}

.article-body{
  max-width:820px;
  margin:0 auto;
  padding:3rem 1rem;
  font-size:1.07rem;
  color:#2d3a4d;
  line-height:1.8;
}
.article-body h2{font-size:1.85rem;margin:2.5rem 0 1rem;color:var(--tdac-primary-dark)}
.article-body h3{font-size:1.4rem;margin:2rem 0 .85rem;color:var(--tdac-primary-dark)}
.article-body p{margin-bottom:1.25rem}
.article-body img{border-radius:var(--tdac-radius);box-shadow:var(--tdac-shadow);margin:1.5rem 0}
.article-body ul,.article-body ol{margin-bottom:1.5rem;padding-left:1.5rem}
.article-body ul li,.article-body ol li{margin-bottom:.5rem}
.article-body blockquote{
  border-left:4px solid var(--tdac-accent);
  padding:1rem 1.25rem;
  margin:1.5rem 0;
  background:var(--tdac-bg-soft);
  border-radius:0 var(--tdac-radius) var(--tdac-radius) 0;
  font-style:italic;
  color:var(--tdac-text);
}
.article-body .toc{
  background:var(--tdac-bg-soft);
  padding:1.5rem;
  border-radius:var(--tdac-radius);
  margin:2rem 0;
  border:1px solid var(--tdac-border);
}
.article-body .toc h3{margin-top:0;font-size:1.1rem;color:var(--tdac-primary)}
.article-body .toc ol{margin:.5rem 0 0;padding-left:1.25rem}
.article-body .toc a{color:var(--tdac-primary);text-decoration:none}
.article-body .toc a:hover{text-decoration:underline}

/* ============== AD SLOT ============== */
.ad-slot{
  display:flex;align-items:center;justify-content:center;
  min-height:120px;
  background:var(--tdac-bg-soft);
  border:1px dashed var(--tdac-border);
  border-radius:var(--tdac-radius);
  color:var(--tdac-text-muted);
  font-size:.8rem;
  text-transform:uppercase;
  letter-spacing:1px;
  margin:2rem 0;
}

/* ============== UTILITIES ============== */
.text-center{text-align:center}
.mt-1{margin-top:.5rem}
.mt-2{margin-top:1rem}
.mt-3{margin-top:1.5rem}
.mt-4{margin-top:2rem}
.mb-2{margin-bottom:1rem}
.mb-3{margin-bottom:1.5rem}
.mb-4{margin-bottom:2rem}

/* ============== LEGACY COMPAT (existing pages) ============== */
.application-form{max-width:66rem!important}
.heading{color:#fff}
.home-container{max-width:1180px;margin:auto}
.pages-container{max-width:900px;margin:0 auto;padding:2rem 1rem}
.pages-heading{color:var(--tdac-primary-dark);font-size:1.1rem;padding-bottom:6px;font-weight:700}
.pages-title{color:var(--tdac-primary-dark);font-size:2rem;font-weight:800;margin-bottom:1rem}
.highlight{color:var(--tdac-primary-dark)}
.card-icon{font-size:2rem;color:var(--tdac-primary-light)}
.about-section{max-width:1100px;margin:auto;padding:0 1rem}
.contact-header,.fees-header{
  background:linear-gradient(135deg,var(--tdac-primary-dark),var(--tdac-primary));
  color:#fff;padding:80px 0;text-align:center;
}
.contact-header h1,.fees-header h1{color:#fff;font-size:2.5rem}
.contact-form{background:#fff;padding:2.5rem;border-radius:var(--tdac-radius);box-shadow:var(--tdac-shadow)}
.form-label{font-weight:600;color:var(--tdac-text)}
.btn-custom{
  background:var(--tdac-accent);
  color:#1a1a1a !important;
  border-radius:30px;
  padding:.75rem 2rem;
  font-weight:700;
  border:0;
  transition:var(--tdac-trans);
  text-decoration:none !important;
  display:inline-block;
  line-height:1.2;
  max-width:100%;
}
.btn-custom:hover,.btn-custom:focus{background:var(--tdac-accent-dark);color:#fff !important;transform:translateY(-2px);text-decoration:none !important}
.fees-card{background:#fff;border-radius:var(--tdac-radius);box-shadow:var(--tdac-shadow);padding:3rem;margin-top:3rem}
.fees-card h2{color:var(--tdac-primary-dark);font-weight:700;margin-bottom:1rem}
.price-tag{font-size:2.75rem;font-weight:800;color:#28a745}
.benefits-list{margin-top:1.25rem;padding-left:1.25rem}
.benefits-list li{margin-bottom:.5rem}
.error{color:#dc3545}
.home-heading{color:var(--tdac-primary-dark);font-size:1.35rem;font-weight:600;line-height:1.4}

/* About page legacy hero override (now using design system) */
.hero-section{
  background:linear-gradient(135deg,var(--tdac-primary-dark),var(--tdac-primary));
  color:#fff;
  padding:80px 0;
  text-align:center;
}
.hero-section h1{color:#fff;font-size:2.75rem;font-weight:700}
.hero-section .lead{color:#dbeaf7}

/* =====================================================================
   MOBILE RESPONSIVE — covers every page (tablet 992px → mobile 360px)
   ===================================================================== */

/* Tablet (≤992px) */
@media (max-width:992px){
  .tdac-section{padding:3.5rem 1rem}
  .tdac-hero{min-height:520px}
  .tdac-hero .hero-content{padding:3.5rem 1rem}
  .stats-strip{margin-top:-40px;padding:1.25rem .5rem;gap:.5rem}
  .info-split{gap:2rem}
  .footer-grid{gap:2rem}
  .cta-banner{padding:3rem 1.25rem}
  .article-body{padding:2rem 1rem}
  .article-body h2{font-size:1.6rem;margin:2rem 0 .85rem}
  .article-body h3{font-size:1.25rem;margin:1.6rem 0 .65rem}
}

/* Mobile (≤768px) */
@media (max-width:768px){
  body{font-size:16px}
  h1,h2,h3{word-wrap:break-word;overflow-wrap:break-word}

  /* Section spacing */
  .tdac-section{padding:2.5rem .85rem}
  .section-title{margin-bottom:2rem}
  .section-title h2{font-size:1.55rem;line-height:1.3}
  .section-title p{font-size:.95rem}

  /* Hero */
  .tdac-hero{min-height:auto}
  .tdac-hero .hero-content{padding:3rem 1rem 2.5rem}
  .tdac-hero h1{font-size:1.9rem;line-height:1.2}
  .tdac-hero p.lead{font-size:1rem;margin-bottom:1.25rem}
  .tdac-hero .badges{margin-top:1.25rem;gap:.75rem 1.25rem;font-size:.85rem}

  /* Buttons - stack and fit nicely on mobile */
  .hero-cta{
    padding:.85rem 1.4rem;
    font-size:.95rem;
    width:auto;
    max-width:100%;
    white-space:normal;
  }
  .hero-cta.secondary{margin-left:0;margin-top:.6rem}
  .tdac-hero .hero-cta{display:inline-flex}
  /* When two CTA buttons are siblings in hero, stack on mobile */
  .tdac-hero .hero-content > div > .hero-cta{
    display:flex;
    margin:.5rem auto;
    max-width:340px;
  }
  .btn-custom{padding:.7rem 1.5rem;font-size:.95rem}

  /* Stats strip */
  .stats-strip{
    margin-top:-25px;
    border-radius:14px;
    padding:1rem .5rem;
    grid-template-columns:repeat(2,1fr);
    gap:.4rem;
  }
  .stats-strip .stat{padding:.35rem}
  .stats-strip .stat .num{font-size:1.4rem}
  .stats-strip .stat .lbl{font-size:.7rem;letter-spacing:.4px}

  /* Grids: feature, blog, testimonials, destinations - single column */
  .features-grid,
  .blog-grid,
  .testimonial-grid,
  .steps-grid{
    grid-template-columns:1fr;
    gap:1.1rem;
  }
  .feature-card{padding:1.5rem 1.25rem}
  .feature-card .icon-wrap{width:60px;height:60px;font-size:1.5rem;margin-bottom:1rem}
  .feature-card h3{font-size:1.1rem}
  .feature-card p{font-size:.9rem}

  /* Destinations grid - single column on phone */
  .destinations-grid{
    grid-template-columns:1fr;
    gap:1.1rem;
  }
  .dest-card,
  .dest-card.large{
    height:260px;
    grid-column:span 1;
  }
  .dest-card h3{font-size:1.2rem}
  .dest-card .sub{font-size:.85rem}
  .dest-card .info{padding:1.1rem}

  /* Blog cards */
  .blog-card .body{padding:1.1rem}
  .blog-card h3{font-size:1.1rem}
  .blog-card .excerpt{font-size:.9rem}

  /* Info split: stack on mobile, image first */
  .info-split{grid-template-columns:1fr;gap:1.5rem}
  .info-split h2{font-size:1.5rem}
  .info-split p{font-size:.95rem}
  .info-split ul li{padding:.5rem 0 .5rem 1.75rem;font-size:.95rem}

  /* CTA banner */
  .cta-banner{padding:2.25rem 1rem;border-radius:14px}
  .cta-banner h2{font-size:1.4rem !important;line-height:1.3}
  .cta-banner p{font-size:.95rem;margin-bottom:1.25rem}
  .cta-banner .hero-cta{
    display:inline-flex;
    max-width:100%;
    white-space:normal;
    padding:.85rem 1.5rem;
    font-size:.95rem;
  }

  /* Article hero (blog detail pages) */
  .article-hero{padding:4rem 1rem 2.5rem}
  .article-hero h1{font-size:1.5rem;line-height:1.25;padding:0 .25rem}
  .article-hero .meta{font-size:.8rem;gap:.6rem 1rem}
  .article-hero .breadcrumb-trail{font-size:.78rem}

  /* Article body */
  .article-body{padding:1.75rem 1rem;font-size:1rem;line-height:1.7}
  .article-body h2{font-size:1.35rem;margin:1.75rem 0 .75rem}
  .article-body h3{font-size:1.15rem;margin:1.4rem 0 .5rem}
  .article-body img{margin:1rem 0;border-radius:10px}
  .article-body .toc{padding:1.1rem}
  .article-body blockquote{padding:.85rem 1rem;margin:1.25rem 0;font-size:.95rem}

  /* FAQ */
  .faq-item{padding:1rem 1.1rem}
  .faq-item summary{font-size:.98rem}
  .faq-item p{font-size:.92rem;margin:.75rem 0 0}

  /* Footer */
  .site-footer{padding:3rem 1rem 1rem}
  .site-footer .footer-grid{gap:2rem}
  .site-footer h4{font-size:.9rem}
  .site-footer .brand-block img{width:42px}
  .site-footer .brand-block strong{font-size:1rem}

  /* Legacy pages */
  .pages-container{padding:1.5rem .85rem}
  .pages-title{font-size:1.5rem}
  .contact-form{padding:1.5rem 1.25rem}
  .contact-header,.fees-header{padding:50px 0}
  .contact-header h1,.fees-header h1{font-size:1.65rem;padding:0 1rem}
  .fees-card{padding:1.75rem 1.25rem;margin-top:1.5rem}
  .price-tag{font-size:2.25rem}

  /* Hero section legacy (about page) */
  .hero-section{padding:50px 0}
  .hero-section h1{font-size:1.75rem;padding:0 1rem}

  /* Apply form (preserve working form on mobile) */
  .application-form{padding:2rem .85rem !important}
  .application-form .card-header h2{font-size:1.15rem}
  .application-form .card-header p{font-size:.85rem}
  .application-form .heading{font-size:1rem;padding:.85rem !important}
  .application-form .form-label{font-size:.9rem}

  /* Bootstrap form controls on mobile - prevent zoom on iOS */
  input.form-control, select.form-control, textarea.form-control{font-size:16px !important}
}

/* Small mobile (≤480px) */
@media (max-width:480px){
  .tdac-hero h1{font-size:1.65rem}
  .tdac-hero p.lead{font-size:.95rem}
  .section-title h2{font-size:1.35rem}
  .hero-cta{padding:.8rem 1.25rem;font-size:.9rem}
  .stats-strip{grid-template-columns:repeat(2,1fr)}
  .stats-strip .stat .num{font-size:1.2rem}
  .cta-banner h2{font-size:1.25rem !important}
  .article-hero h1{font-size:1.35rem}
  .testimonial{padding:1.5rem 1.25rem}
  .testimonial p{font-size:.95rem}
  .feature-card .icon-wrap{width:54px;height:54px;font-size:1.35rem}
  .nav-inner{padding:.5rem .75rem}
  .site-nav .brand-text{font-size:.95rem}
  .site-nav .brand-text small{font-size:.65rem}
  .site-nav .brand img{width:38px;height:38px}
}

/* Prevent horizontal scroll on any device */
html,body{max-width:100%;overflow-x:hidden}
img{max-width:100%;height:auto}
table{max-width:100%}

/* Bootstrap container override on mobile to remove side gaps */
@media (max-width:576px){
  .container,.container-fluid{padding-left:.85rem !important;padding-right:.85rem !important}
}

/* =====================================================================
   STICKY MOBILE APPLY BAR + WHATSAPP FLOATING BUTTON
   ===================================================================== */
.sticky-apply-bar{
  position:fixed;
  left:0;right:0;bottom:0;
  background:#fff;
  border-top:1px solid var(--tdac-border);
  box-shadow:0 -8px 24px rgba(15,30,60,.12);
  padding:.6rem .85rem;
  z-index:9998;
  display:none;
  align-items:center;
  justify-content:space-between;
  gap:.75rem;
  animation:slideUp .4s ease;
}
@keyframes slideUp{from{transform:translateY(100%)}to{transform:translateY(0)}}
.sticky-apply-bar .sticky-info{display:flex;flex-direction:column;line-height:1.2;flex:1;min-width:0}
.sticky-apply-bar .sticky-info strong{font-size:.95rem;color:var(--tdac-primary-dark);font-weight:800}
.sticky-apply-bar .sticky-info span{font-size:.78rem;color:var(--tdac-text-muted);margin-top:2px}
.sticky-apply-bar .sticky-btn{
  display:inline-flex;
  align-items:center;
  gap:.35rem;
  background:var(--tdac-accent);
  color:#1a1a1a !important;
  font-weight:800;
  text-decoration:none !important;
  padding:.7rem 1.3rem;
  border-radius:30px;
  font-size:.95rem;
  white-space:nowrap;
  box-shadow:0 6px 14px rgba(247,181,0,.45);
  transition:var(--tdac-trans);
}
.sticky-apply-bar .sticky-btn:hover,.sticky-apply-bar .sticky-btn:focus{
  background:var(--tdac-primary);
  color:#fff !important;
  transform:translateY(-2px);
}

/* Show sticky bar on mobile only */
@media (max-width:768px){
  .sticky-apply-bar{display:flex}
  body{padding-bottom:72px} /* prevent overlap with footer content */
}

/* WhatsApp floating button */
.whatsapp-float{
  position:fixed;
  bottom:90px;
  right:18px;
  width:56px;
  height:56px;
  background:#25D366;
  color:#fff !important;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:1.85rem;
  text-decoration:none !important;
  box-shadow:0 8px 20px rgba(37,211,102,.45);
  z-index:9997;
  transition:transform .25s ease, box-shadow .25s ease;
  animation:pulseWa 2.5s infinite;
}
.whatsapp-float:hover,.whatsapp-float:focus{
  transform:scale(1.1);
  box-shadow:0 12px 28px rgba(37,211,102,.6);
  color:#fff !important;
}
@keyframes pulseWa{
  0%,100%{box-shadow:0 8px 20px rgba(37,211,102,.45)}
  50%{box-shadow:0 8px 20px rgba(37,211,102,.45),0 0 0 14px rgba(37,211,102,0)}
}
@media (max-width:768px){
  .whatsapp-float{bottom:88px;right:14px;width:52px;height:52px;font-size:1.65rem}
}
@media (min-width:769px){
  .whatsapp-float{bottom:30px;right:30px}
}

/* Tawk.to chat needs space too on mobile */
@media (max-width:768px){
  .sticky-apply-bar{padding-right:75px} /* leave room for tawk widget */
}

/* =====================================================================
   AFFILIATE PARTNER WIDGETS
   ===================================================================== */
.affiliate-block{
  max-width:1080px;
  margin:3rem auto;
  padding:2rem 1.25rem;
  background:linear-gradient(135deg,#fff 0%,var(--tdac-bg-soft) 100%);
  border:1px solid var(--tdac-border);
  border-radius:var(--tdac-radius);
  box-shadow:var(--tdac-shadow-sm);
}
.affiliate-title{text-align:center;margin-bottom:1.5rem}
.affiliate-title h3{
  font-size:1.4rem;
  color:var(--tdac-primary-dark);
  margin:0 0 .35rem;
}
.affiliate-title p{
  font-size:.95rem;
  color:var(--tdac-text-muted);
  margin:0;
}
.affiliate-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:1rem;
}
.affiliate-card{
  display:flex;
  flex-direction:column;
  gap:.5rem;
  padding:1.25rem;
  background:#fff;
  border:1px solid var(--tdac-border);
  border-radius:12px;
  text-decoration:none !important;
  color:var(--tdac-text);
  transition:var(--tdac-trans);
  box-shadow:var(--tdac-shadow-sm);
  min-height:170px;
  position:relative;
}
.affiliate-card:hover,.affiliate-card:focus{
  transform:translateY(-4px);
  box-shadow:var(--tdac-shadow);
  border-color:rgba(14,79,138,.3);
}
.affiliate-card .aff-icon{
  width:44px;height:44px;
  border-radius:10px;
  display:flex;align-items:center;justify-content:center;
  color:#fff;
  font-size:1.25rem;
  background:var(--tdac-primary);
}
.affiliate-card h4{
  margin:.25rem 0 .25rem;
  font-size:1.05rem;
  color:var(--tdac-text);
  font-weight:700;
}
.affiliate-card p{
  margin:0;
  font-size:.88rem;
  color:var(--tdac-text-muted);
  flex:1;
}
.affiliate-card .aff-go{
  display:inline-flex;
  align-items:center;
  gap:.35rem;
  color:var(--tdac-primary);
  font-weight:700;
  font-size:.9rem;
  margin-top:.5rem;
}
.affiliate-card:hover .aff-go i{transform:translateX(4px)}
.affiliate-card .aff-go i{transition:transform .25s ease}
.affiliate-disclosure{
  margin:1.25rem 0 0;
  font-size:.78rem;
  color:var(--tdac-text-muted);
  text-align:center;
  line-height:1.55;
  padding:.75rem 1rem;
  background:rgba(14,79,138,.04);
  border-radius:8px;
}
.affiliate-disclosure i{color:var(--tdac-primary);margin-right:.25rem}

@media (max-width:768px){
  .affiliate-block{margin:2rem auto;padding:1.5rem 1rem;border-radius:12px}
  .affiliate-title h3{font-size:1.2rem}
  .affiliate-grid{grid-template-columns:1fr;gap:.85rem}
  .affiliate-card{min-height:auto;padding:1.1rem}
}

/* =====================================================================
   TRUST / REVIEW WIDGET
   ===================================================================== */
.trust-widget{
  max-width:1180px;
  margin:3rem auto;
  padding:2.5rem;
  background:linear-gradient(135deg,#0d1c30 0%,#0e4f8a 100%);
  color:#fff;
  border-radius:20px;
  box-shadow:var(--tdac-shadow-lg);
  overflow:hidden;
  position:relative;
}
.trust-widget::before{
  content:"";
  position:absolute;
  inset:0;
  background:url('../img/hero/hero-thailand-temple.jpg') center/cover;
  opacity:.08;
}
.trust-widget > *{position:relative;z-index:1}
.trust-summary{text-align:center;max-width:760px;margin:0 auto 2rem}
.trust-summary h2{color:#fff;font-size:clamp(1.5rem,3vw,2.2rem);margin:.4rem 0 .75rem}
.trust-summary p{color:#dbeaf7;margin:0 auto 1rem}
.trust-score{
  display:inline-flex;
  align-items:center;
  gap:.7rem;
  background:rgba(255,255,255,.1);
  border:1px solid rgba(255,255,255,.18);
  padding:.7rem 1.1rem;
  border-radius:40px;
}
.trust-score strong{font-size:1.35rem;color:var(--tdac-accent)}
.trust-score span{font-size:.9rem;color:#dbeaf7}
.trust-cards{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:1rem;
}
.trust-card{
  background:#fff;
  color:var(--tdac-text);
  padding:1.4rem;
  border-radius:14px;
  box-shadow:0 10px 24px rgba(0,0,0,.16);
}
.trust-card .stars{color:var(--tdac-accent);font-weight:800;margin-bottom:.7rem;letter-spacing:1px}
.trust-card p{font-size:.94rem;color:#334155;margin:0 0 1rem;line-height:1.65}
.trust-card strong{display:block;color:var(--tdac-primary-dark);font-size:.95rem}
.trust-card span{font-size:.82rem;color:var(--tdac-text-muted)}
.trust-actions{
  margin-top:2rem;
  display:flex;
  justify-content:center;
  align-items:center;
  gap:1rem;
  flex-wrap:wrap;
}
.trust-link{color:#fff;text-decoration:underline;font-weight:700}
.trust-link:hover{color:var(--tdac-accent)}
@media (max-width:900px){
  .trust-widget{padding:2rem 1rem;border-radius:16px}
  .trust-cards{grid-template-columns:1fr}
  .trust-card{padding:1.15rem}
}
