/* ============================================
   TRAVEL COUNTRY PAGES — shared styles
   Drives page-travel-country.php (South Africa, Indonesia, Costa Rica).
   Uses the tc- prefix. Shared primitives (section-container, hero-badge,
   section-badge, cta-button, gradient-text) come from globals.css.
   ============================================ */

/* Hero — background image is set inline per country */
.tc-hero-section { position: relative; min-height: 90vh; display: flex; align-items: center; padding: 60px 0 80px; overflow: hidden; background-size: cover; background-position: center; background-color: var(--brand-dark); }
.tc-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom right, rgba(47, 107, 78, 0.92) 0%, rgba(47, 107, 78, 0.85) 100%); z-index: 1; }
.tc-hero-dots { position: absolute; inset: 0; background-image: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px); background-size: 30px 30px; z-index: 2; }
.tc-hero-grid { display: grid; grid-template-columns: 1fr; gap: 4rem; align-items: center; position: relative; z-index: 10; }
@media (min-width: 1024px) { .tc-hero-grid { grid-template-columns: 3fr 2fr; } }
.tc-hero-content { text-align: center; color: var(--white); }
@media (min-width: 1024px) { .tc-hero-content { text-align: left; } }
.tc-hero-description { font-size: 1.125rem; color: rgba(255, 255, 255, 0.9); line-height: 1.7; margin-bottom: 2.5rem; max-width: 620px; }
@media (max-width: 1023px) { .tc-hero-description { margin-left: auto; margin-right: auto; } }
.tc-hero-actions { display: flex; flex-direction: column; gap: 1rem; }
@media (min-width: 640px) { .tc-hero-actions { flex-direction: row; } }
@media (max-width: 1023px) { .tc-hero-actions { justify-content: center; } }
.tc-hero-btn-primary { background: var(--white); color: var(--brand-dark); }
.tc-hero-btn-primary:hover { background: rgba(255, 255, 255, 0.9); transform: scale(1.05); }
.tc-hero-btn-secondary { background: transparent; color: var(--white); border: 2px solid rgba(255, 255, 255, 0.3); }
.tc-hero-btn-secondary:hover { background: rgba(255, 255, 255, 0.1); border-color: var(--white); }
.tc-hero-visual { display: none; }

/* Stats */
.tc-stats-section { position: relative; background: linear-gradient(to right, var(--brand-purple), var(--brand-accent), var(--brand-dark)); padding: 3.5rem 0; overflow: hidden; box-shadow: 0 10px 30px -10px rgba(47, 107, 78, 0.3); }
.tc-stats-shimmer { position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent); animation: shimmer 4s infinite; }
.tc-stats-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; position: relative; z-index: 10; width: max-content; max-width: 100%; margin-inline: auto; }
@media (min-width: 768px) { .tc-stats-grid { grid-template-columns: repeat(3, 1fr); gap: 4rem; width: auto; } }
/* Mobile: left-align each row so the icons share a left edge (the max-content
   grid is centred as a whole); restore the centred row on desktop. */
.tc-stat-item { display: flex; align-items: center; gap: 1.25rem; justify-content: flex-start; transition: transform 0.3s ease; }
@media (min-width: 768px) { .tc-stat-item { justify-content: center; } }
.tc-stat-item:hover { transform: translateY(-2px); }
.tc-stat-icon { width: 4rem; height: 4rem; background: rgba(255, 255, 255, 0.15); backdrop-filter: blur(12px); border-radius: 1.25rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; border: 1px solid rgba(255, 255, 255, 0.3); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1); }
.tc-stat-icon i { font-size: 1.5rem; color: var(--white); }
.tc-stat-content { display: flex; flex-direction: column; gap: 0.25rem; }
.tc-stat-number { font-family: var(--font-heading); font-size: 2rem; font-weight: 900; color: var(--white); line-height: 1; }
.tc-stat-label { font-size: 0.875rem; font-weight: 700; color: rgba(255, 255, 255, 0.9); text-transform: uppercase; letter-spacing: 0.05em; }

/* Vaccines */
.tc-vaccines-section { padding: 6rem 0; background: var(--brand-light); }
.tc-vaccines-header { text-align: center; margin-bottom: 4rem; }
.tc-vaccines-title { font-size: 2.5rem; font-weight: 900; color: #111827; margin-bottom: 1rem; line-height: 1.15; }
.tc-vaccines-divider { width: 60px; height: 3px; background: linear-gradient(to right, var(--brand-purple), var(--brand-dark)); border-radius: 9999px; margin: 0 auto 1.5rem; }
.tc-vaccines-description { font-size: 1.125rem; color: var(--text-gray); line-height: 1.7; max-width: 720px; margin: 0 auto; }
.tc-vaccines-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 1024px) { .tc-vaccines-grid { grid-template-columns: repeat(2, 1fr); } }
.tc-vaccine-card { display: flex; align-items: flex-start; gap: 1.5rem; background: var(--white); border: 2px solid rgba(47, 107, 78, 0.15); border-radius: 1.5rem; padding: 2rem; transition: all 0.4s ease; box-shadow: 0 4px 20px rgba(47, 107, 78, 0.08); }
.tc-vaccine-card:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(47, 107, 78, 0.2); border-color: var(--brand-purple); }
.tc-vaccine-icon { width: 4rem; height: 4rem; background: linear-gradient(135deg, var(--brand-purple), var(--brand-dark)); border-radius: 1rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: 0 8px 20px rgba(47, 107, 78, 0.3); transition: transform 0.4s ease; }
.tc-vaccine-card:hover .tc-vaccine-icon { transform: scale(1.1) rotate(5deg); }
.tc-vaccine-icon i { font-size: 1.5rem; color: var(--white); }
.tc-vaccine-content { flex: 1; }
.tc-vaccine-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin-bottom: 0.5rem; }
.tc-vaccine-name { font-size: 1.25rem; font-weight: 800; color: #111827; line-height: 1.2; }
.tc-badge-purple { background: rgba(47, 107, 78, 0.15); color: var(--brand-dark); border: 1px solid rgba(47, 107, 78, 0.3); font-size: 0.75rem; font-weight: 700; padding: 0.375rem 0.75rem; border-radius: 9999px; text-transform: uppercase; letter-spacing: 0.05em; }
.tc-badge-amber { background: #fef3c7; color: #b45309; border: 1px solid #fde68a; font-size: 0.75rem; font-weight: 700; padding: 0.375rem 0.75rem; border-radius: 9999px; text-transform: uppercase; letter-spacing: 0.05em; }
.tc-badge-gray { background: #f3f4f6; color: #6b7280; border: 1px solid #E6DFD0; font-size: 0.75rem; font-weight: 700; padding: 0.375rem 0.75rem; border-radius: 9999px; text-transform: uppercase; letter-spacing: 0.05em; }
.tc-vaccine-short { font-size: 0.9375rem; font-weight: 700; color: var(--brand-purple); margin-bottom: 0.75rem; }
.tc-vaccine-desc { font-size: 1rem; color: var(--text-gray); line-height: 1.6; }

/* Yellow fever certificate */
.tc-yf-section { padding: 6rem 0; background: var(--white); }
.tc-yf-card { display: flex; flex-direction: column; gap: 2rem; background: var(--brand-light); border: 1px solid rgba(47, 107, 78, 0.15); border-radius: 2rem; padding: 2.5rem; box-shadow: 0 10px 40px rgba(47, 107, 78, 0.08); }
@media (min-width: 900px) { .tc-yf-card { flex-direction: row; align-items: flex-start; gap: 2.5rem; padding: 3rem; } }
.tc-yf-icon { width: 4.5rem; height: 4.5rem; flex-shrink: 0; background: linear-gradient(135deg, #f59e0b, #d97706); border-radius: 1.25rem; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 25px rgba(217, 119, 6, 0.35); }
.tc-yf-icon i { font-size: 1.75rem; color: var(--white); }
.tc-yf-body { flex: 1; }
.tc-yf-title { font-size: 1.9rem; font-weight: 900; color: #111827; margin: 1rem 0 1rem; line-height: 1.2; }
.tc-yf-intro { font-size: 1.0625rem; color: var(--text-gray); line-height: 1.7; margin-bottom: 1.5rem; }
.tc-yf-list { list-style: none; margin: 0 0 1.5rem; padding: 0; display: flex; flex-direction: column; gap: 0.875rem; }
.tc-yf-list li { display: flex; align-items: flex-start; gap: 0.75rem; font-size: 1rem; color: #374151; line-height: 1.6; }
.tc-yf-list li i { color: var(--brand-purple); margin-top: 0.25rem; flex-shrink: 0; }
.tc-yf-note { font-size: 1rem; font-weight: 600; color: var(--brand-dark); background: rgba(47, 107, 78, 0.08); border-left: 3px solid var(--brand-purple); border-radius: 0 0.75rem 0.75rem 0; padding: 1rem 1.25rem; line-height: 1.6; }

/* Malaria */
.tc-malaria-section { padding: 6rem 0; background: var(--brand-light); }
.tc-malaria-header { text-align: center; max-width: 760px; margin: 0 auto 3rem; }
.tc-malaria-title { font-size: 2.5rem; font-weight: 900; color: #111827; margin: 1rem 0 1rem; line-height: 1.15; }
.tc-malaria-intro { font-size: 1.125rem; color: var(--text-gray); line-height: 1.7; }
.tc-malaria-info-grid { display: flex; flex-direction: column; gap: 1.5rem; max-width: 880px; margin: 0 auto; }
.tc-malaria-item { display: flex; align-items: flex-start; gap: 1.5rem; background: var(--white); padding: 2rem; border-radius: 1.5rem; border: 1px solid rgba(47, 107, 78, 0.12); box-shadow: 0 4px 20px rgba(47, 107, 78, 0.05); transition: all 0.3s ease; }
.tc-malaria-item:hover { transform: translateY(-4px); box-shadow: 0 15px 40px rgba(47, 107, 78, 0.12); }
.tc-malaria-item-icon { width: 3.5rem; height: 3.5rem; border-radius: 1rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.tc-malaria-item-icon.low-risk { background: linear-gradient(135deg, #dcfce7, #bbf7d0); color: #15803d; }
.tc-malaria-item-icon.medium-risk { background: linear-gradient(135deg, #fef3c7, #fde68a); color: #b45309; }
.tc-malaria-item-icon.high-risk { background: linear-gradient(135deg, #fee2e2, #fecaca); color: #b91c1c; }
.tc-malaria-item-icon i { font-size: 1.5rem; }
.tc-malaria-item-text h4 { font-family: var(--font-heading); font-size: 1.25rem; font-weight: 700; color: #111827; margin-bottom: 0.5rem; letter-spacing: -0.01em; }
.tc-malaria-item-text p { font-size: 1rem; color: var(--text-gray); line-height: 1.65; }
.tc-malaria-note { display: flex; align-items: flex-start; gap: 0.75rem; max-width: 880px; margin: 1.75rem auto 0; font-size: 0.9375rem; color: #4b5563; line-height: 1.6; background: rgba(255, 255, 255, 0.7); border: 1px dashed rgba(47, 107, 78, 0.25); border-radius: 1rem; padding: 1rem 1.25rem; }
.tc-malaria-note i { color: var(--brand-purple); margin-top: 0.2rem; flex-shrink: 0; }

/* Health advice */
.tc-health-section { padding: 6rem 0; background: var(--white); }
.tc-health-header { text-align: center; margin-bottom: 4rem; }
.tc-health-title { font-size: 2.5rem; font-weight: 900; color: #111827; margin: 1rem 0 0.5rem; line-height: 1.15; }
.tc-health-subtitle { font-size: 1.125rem; color: var(--text-gray); }
.tc-health-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 768px) { .tc-health-grid { grid-template-columns: repeat(3, 1fr); } }
.tc-health-card-visual { position: relative; border-radius: 1.5rem; overflow: hidden; height: 400px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); transition: all 0.4s ease; background-color: #1a202c; }
.tc-health-card-visual:hover { transform: translateY(-8px); box-shadow: 0 20px 50px rgba(47, 107, 78, 0.25); }
.tc-health-bg { position: absolute; inset: 0; z-index: 0; }
.tc-health-bg img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.tc-health-card-visual:hover .tc-health-bg img { transform: scale(1.1); }
.tc-health-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.2) 60%, transparent 100%); z-index: 1; }
.tc-health-content { position: absolute; bottom: 1rem; left: 1rem; right: 1rem; padding: 1.5rem; background: rgba(255, 255, 255, 0.15); backdrop-filter: blur(16px); border-radius: 1.25rem; z-index: 2; color: var(--white); border: 1px solid rgba(255, 255, 255, 0.3); box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1); transition: all 0.4s ease; }
.tc-health-card-visual:hover .tc-health-content { background: rgba(255, 255, 255, 0.25); transform: translateY(-5px); }
.tc-health-icon-wrapper { position: absolute; top: -1.75rem; right: 1.5rem; width: 3.5rem; height: 3.5rem; background: linear-gradient(135deg, var(--brand-purple), var(--brand-dark)); border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 4px solid rgba(255, 255, 255, 0.2); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2); transition: transform 0.4s ease; }
.tc-health-card-visual:hover .tc-health-icon-wrapper { transform: scale(1.1) rotate(10deg); }
.tc-health-icon-wrapper i { font-size: 1.25rem; color: var(--white); }
.tc-health-card-title { font-family: var(--font-heading); font-size: 1.6rem; font-weight: 700; margin-bottom: 0.5rem; text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); letter-spacing: -0.02em; }
.tc-health-card-desc { font-size: 0.9375rem; line-height: 1.6; color: rgba(255, 255, 255, 0.95); font-weight: 500; }

/* FAQs — self-contained accordion (no dependency on service-pages assets) */
.tc-faq-section { padding: 6rem 0; background: var(--brand-light); }
.tc-faq-header { text-align: center; margin-bottom: 3rem; }
.tc-faq-title { font-size: 2.5rem; font-weight: 900; color: #111827; margin-top: 1rem; line-height: 1.15; }
.tc-faq-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 1rem; }
.tc-faq-item { background: var(--white); border: 1px solid rgba(47, 107, 78, 0.15); border-radius: 1rem; overflow: hidden; transition: box-shadow 0.3s ease, border-color 0.3s ease; }
.tc-faq-item.open { border-color: rgba(47, 107, 78, 0.35); box-shadow: 0 10px 30px rgba(47, 107, 78, 0.1); }
.tc-faq-btn { width: 100%; display: flex; align-items: center; gap: 1rem; background: none; border: none; cursor: pointer; padding: 1.5rem; text-align: left; font-family: inherit; }
.tc-faq-btn .num { font-family: var(--font-heading); font-size: 0.875rem; font-weight: 800; color: var(--brand-purple); flex-shrink: 0; }
.tc-faq-btn .text { flex: 1; font-size: 1.0625rem; font-weight: 700; color: #111827; line-height: 1.4; }
.tc-faq-btn .icon { flex-shrink: 0; color: var(--brand-purple); font-size: 1rem; transition: transform 0.3s ease; }
.tc-faq-item.open .tc-faq-btn .icon { transform: rotate(45deg); }
.tc-faq-content { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.tc-faq-item.open .tc-faq-content { max-height: 400px; }
.tc-faq-content p { padding: 0 1.5rem 1.5rem; margin: 0; font-size: 1rem; color: var(--text-gray); line-height: 1.7; }

/* Final CTA */
.tc-cta-section { position: relative; background: linear-gradient(to right, var(--brand-purple), var(--brand-accent), var(--brand-dark)); padding: 6rem 0; overflow: hidden; }
.tc-cta-glow-1 { position: absolute; top: -10%; right: -5%; width: 600px; height: 600px; background: rgba(255, 255, 255, 0.1); border-radius: 50%; filter: blur(100px); }
.tc-cta-glow-2 { position: absolute; bottom: -10%; left: -5%; width: 500px; height: 500px; background: rgba(255, 255, 255, 0.08); border-radius: 50%; filter: blur(80px); }
.tc-cta-dots { position: absolute; inset: 0; background-image: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px); background-size: 30px 30px; }
.tc-cta-content { position: relative; z-index: 10; text-align: center; }
.tc-cta-title { font-size: 2.5rem; font-weight: 900; font-family: var(--font-heading); color: var(--white); margin-bottom: 1.5rem; line-height: 1.15; letter-spacing: -0.02em; }
.tc-cta-description { font-size: 1.125rem; color: rgba(255, 255, 255, 0.9); line-height: 1.7; max-width: 800px; margin: 0 auto 2.5rem; }
.tc-cta-actions { display: flex; flex-direction: column; gap: 1rem; align-items: center; justify-content: center; margin-bottom: 2.5rem; }
@media (min-width: 640px) { .tc-cta-actions { flex-direction: row; } }
.tc-cta-button-white { background: var(--white); color: var(--brand-dark); }
.tc-cta-button-white:hover { background: rgba(255, 255, 255, 0.95); }
.tc-cta-button-outlined { background: transparent; color: var(--white); border: 2px solid rgba(255, 255, 255, 0.3); }
.tc-cta-button-outlined:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.5); }
.tc-cta-checks { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2rem; }
.tc-cta-check { display: flex; align-items: center; gap: 0.75rem; }
.tc-cta-check i { font-size: 1.125rem; color: var(--white); }
.tc-cta-check span { font-size: 1rem; font-weight: 600; color: rgba(255, 255, 255, 0.9); }

/* --- Vaccine card: mobile shrink + stack --------------------------------
   Two separate problems, one rule.

   1. The text column is a flex child, so it defaults to min-width:auto and
      refuses to shrink below its longest unbreakable word. On the India and
      Thailand pages that word is "Tetanus/Diphtheria/Polio" — a slash gives
      no line-break opportunity — which forced the card 45px wider than a
      375px screen and made the WHOLE PAGE scroll sideways. Kenya and the
      others escaped it only because their longest word ("Mosquito-borne")
      happens to contain a hyphen. min-width:0 is the fix; overflow-wrap is
      the backstop for whatever copy the client adds next.

   2. Even where it did not overflow, the icon column ate ~88px of a ~311px
      card, leaving the description about 22 characters per line. Below 600px
      the icon now sits above the text and the copy gets the full width. */
.tc-vaccine-content {
  min-width: 0;
  overflow-wrap: break-word;
}

@media (max-width: 600px) {
  .tc-vaccine-card {
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
  }
}
