/*
Theme Name: Allogeneic BMT
Theme URI: https://allogeneicbmt.com
Author: Vikram Soni
Description: Custom informational medical website for Allogeneic Bone Marrow Transplant
Version: 1.0
*/

/* =========================
   CSS VARIABLES
========================= */
:root{
  --primary:#0b7f76;
  --muted:#6b7a86;
  --bg:#f5f8f9;
  --card-bg:#ffffff;
  --text:#0b2540;
  --border:#e6eef0;
  --callout-bg:#eef8f6;
}

/* =========================
   RESET & BASE
========================= */
*,
*::before,
*::after{
  box-sizing:border-box;
}

html,
body{
  height:100%;
}

body{
  margin:0;
  font-family:system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  font-size:16px;
  line-height:1.45;
  color:var(--text);
  background:var(--bg);
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

.container{
  max-width:1100px;
  margin:0 auto;
  padding:20px;
}

/* =========================
   TOPICS PAGE – FINAL GRID (NO IMAGES)
========================= */

.topics-page{
  width:100%;
}

.topics-intro{
  max-width:1200px;
  margin:0 auto 40px;
  padding:0 20px;
}

.topics-grid-wrapper{
  max-width:1200px;
  margin:0 auto;
  padding:0 20px;
}

.topics-grid{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:24px;
}

/* Card */
.topic-card{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:220px;
  background:#ffffff;
  border:1px solid var(--border);
  border-radius:16px;
  text-decoration:none;
  transition:transform 0.2s ease, box-shadow 0.2s ease;
}

.topic-card:hover{
  transform:translateY(-4px);
  box-shadow:0 12px 30px rgba(0,0,0,0.08);
}

/* Card content */
.topic-content{
  text-align:center;
  padding:24px;
}

.topic-content h2{
  margin:0 0 16px;
  font-size:18px;
  color:var(--text);
}

/* Green button */
.topic-btn{
  display:inline-block;
  background:var(--primary);
  color:#ffffff;
  font-size:14px;
  padding:10px 20px;
  border-radius:8px;
  font-weight:600;
}

/* Disabled cards */
.topic-card.disabled{
  opacity:0.5;
  pointer-events:none;
}

/* Responsive */
@media (max-width:1100px){
  .topics-grid{
    grid-template-columns:repeat(2, 1fr);
  }
}

@media (max-width:600px){
  .topics-grid{
    grid-template-columns:1fr;
  }
}

/* =========================
   ACCESSIBILITY
========================= */
.skip-link{
  position:absolute;
  left:-9999px;
}

.skip-link:focus{
  left:12px;
  top:12px;
  background:#ffffff;
  padding:8px 12px;
  z-index:1000;
}

/* =========================
   HERO
========================= */
.hero{
  display:flex;
  gap:32px;
  align-items:center;
  margin:18px 0;
  padding:18px;
  background:linear-gradient(90deg,#f5f8f9 0%,#ffffff 100%);
  border-radius:10px;
}

.hero-left{
  flex:1;
}

.hero-right{
  flex:1;
  text-align:right;
}

.hero-image{
  width:100%;
  max-width:520px;
  border-radius:16px;
  box-shadow:0 10px 30px rgba(0,0,0,0.08);
}

/* =========================
   CARD
========================= */
.card{
  margin:18px 0;
  padding:18px;
  background:var(--card-bg);
  border:1px solid var(--border);
  border-radius:12px;
}

/* =========================
   FORMS
========================= */
form label{
  display:block;
  font-weight:600;
  margin:8px 0 6px;
}

input,
select{
  width:100%;
  padding:10px 12px;
  border-radius:8px;
  border:1px solid var(--border);
  background:transparent;
}

/* ===============================
FLOATING BUTTONS (GLOBAL)
================================ */

/* WhatsApp Right */
.whatsapp-float {
position: fixed;
bottom: 25px;
right: 25px;
background-color: #25D366;
color: #ffffff !important;
padding: 14px 22px;
border-radius: 50px;
font-weight: 600;
text-decoration: none;
z-index: 40;
box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.whatsapp-float:hover {
background-color: #1ebe5d;
}

/* Inquiry Left */
.inquiry-float {
position: fixed;
bottom: 25px;
left: 25px;
background-color: var(--primary);
color: #ffffff !important;
padding: 14px 22px;
border-radius: 50px;
font-weight: 600;
text-decoration: none;
z-index: 40;
box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.inquiry-float:hover {
opacity: 0.9;
}

/* =========================
   HAMBURGER (LOOK PRESERVED)
========================= */
.hamburger{
  display:none;
  width:56px;
  height:56px;
  background:#f1f5f9;
  border:2px solid #cbd5e1;
  border-radius:10px;
  cursor:pointer;
  align-items:center;
  justify-content:center;
  padding:12px;
}

.hamburger-bars{
  width:30px;
}

.hamburger-bars span{
  display:block;
  height:4px;
  width:100%;
  background:#0f172a;
  border-radius:3px;
  margin:6px 0;
}

/* =========================
   MOBILE MENU (DISPLAY TOGGLE BASED)
========================= */
.mobile-menu{
  display:none; /* JS CONTROLS THIS */
  position:fixed;
  top:72px;
  left:0;
  width:100%;
  background:#ffffff;
  border-top:1px solid #e5e7eb;
  box-shadow:0 10px 20px rgba(0,0,0,0.08);
  z-index:999998;
}

.mobile-menu a{
  display:block;
  padding:18px 16px;
  text-decoration:none;
  color:#0f172a;
  font-weight:600;
  border-bottom:1px solid #e5e7eb;
}

.mobile-menu a:active{
  background:#f1f5f9;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width:900px){
  .hamburger{
    display:flex;
  }
}

@media (min-width:901px){
  .mobile-menu{
    display:none;
  }
}

/* =========================
   MOBILE MENU – COLLAPSIBLE SUBMENU
========================= */

/* Hide sub-menus by default on mobile */
.mobile-menu ul ul {
  display: none;
}

/* Show sub-menu when parent is active */
.mobile-menu li.open > ul {
  display: block;
}

/* Make parent items look tappable */
.mobile-menu li.menu-item-has-children > a::after {
  content: " ▸";
  float: right;
  font-weight: bold;
}

/* ===============================
DESTINATIONS — CONTROLLED COMPACT SYSTEM
================================ */

/* Reduce outer card padding ONLY for destinations page */
.destinations-list .destination-horizontal-card{
    padding:6px 10px !important;
    margin-bottom:10px !important;
    min-height:auto !important;
}

/* Remove internal spacing */
.destination-horizontal-card .topic-content{
    padding:0 !important;
    margin:0 !important;
}

/* Layout */
.destination-horizontal-content{
    display:flex;
    align-items:center;
    gap:14px;
    text-align:left;
}

/* Left column */
.destination-left{
    flex:0 0 120px;
    max-width:120px;
    display:flex;
    flex-direction:column;
    justify-content:center;
}

/* Right column */
.destination-right{
    flex:1;
    max-width:100%;
}

/* Title */
.destination-title{
    margin:0 0 4px 0 !important;
    font-size:16px;
    font-weight:600;
    color:#000;
}

/* Button */
.destination-left .topic-btn{
    padding:5px 10px;
    font-size:11px;
    line-height:1.2;
    width:85px;
    display:flex;
    align-items:center;
    justify-content:center;
    text-align:center;
}

/* Description */
.destination-right p{
    margin:0 !important;
    font-size:14px;
    line-height:1.45;
    color:#000;
}

/* Remove unexpected spacing */
.destination-horizontal-card *{
    margin-top:0;
}

/* ===============================
ZONE HEADING
=============================== */

.zone-heading{
    background:#0f766e;
    color:#fff;
    text-align:center;
    padding:14px;
    border-radius:12px;
    margin:32px 0 18px 0;
    font-size:20px;
    font-weight:600;
}

/* ===============================
MOBILE REFINED (TRUE COMPACT)
=============================== */

@media (max-width:768px){

    /* Reduce global card air inside main wrapper */
    .destinations-list .destination-horizontal-card{
        padding:6px 8px !important;
    }

    .destination-horizontal-content{
        flex-direction:column;
        gap:2px;
    }

    /* Title + button row (keep horizontal) */
    .destination-left{
        flex-direction:row;
        justify-content:center;
        align-items:center;
        gap:14px;
        width:100%;
        margin:0 auto 2px auto;
    }

    .destination-title{
        font-size:17px;
        margin:0;
    }

    .destination-left .topic-btn{
        width:auto;
        padding:5px 12px;
        display:flex;
        align-items:center;
        justify-content:center;
        text-align:center;
    }

    .destination-right{
        width:92%;
        margin:0 auto;
    }

    .destination-right p{
        margin:0;
        font-size:14px;
        line-height:1.45;
    }

}

/* ===============================
MOBILE BOTTOM ACTION BAR (CORRECTED)
================================ */

.mobile-action-bar {
  display: none;
}

@media (max-width: 768px) {

  /* Hide desktop floating buttons */
  .whatsapp-float,
  .inquiry-float {
    display: none !important;
  }

  /* Fixed bottom action bar */
  .mobile-action-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 999;
  }

  .mobile-action-bar a {
    flex: 1;
    text-align: center;
    padding: 18px 0;
    font-weight: 600;
    text-decoration: none;
    color: #ffffff;
    font-size: 16px;
  }

  .mobile-inquiry {
    background: var(--primary);
  }

  .mobile-whatsapp {
    background: #25D366;
  }

  /* ✅ Add spacing BELOW footer, not above it */
  .site-footer {
    padding-bottom: 110px;
  }

}

/* ======================================================
   GUIDES LAYERED NAVIGATION UI SYSTEM
   (Isolated – Does NOT affect Treatments or Destinations)
====================================================== */

/* ---------- GRID SYSTEM (Intermediate Layers) ---------- */

.guides-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 30px;
}

.guides-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 30px 20px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.guides-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.guides-card h3 {
  margin: 0 0 18px;
  font-size: 18px;
  color: var(--text);
}

.guides-btn {
  display: inline-block;
  background: var(--primary);
  color: #ffffff;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
}

/* Responsive Grid */

@media (max-width:1100px){
  .guides-grid{
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width:600px){
  .guides-grid{
    grid-template-columns: 1fr;
  }
}


/* ---------- COMPACT LIST SYSTEM (Final Archive Layer) ---------- */

.guides-compact-list {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.guides-compact-item {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.guides-compact-item h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
}

.guides-compact-btn {
  background: var(--primary);
  color: #ffffff;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
}

.guides-compact-item:hover {
  box-shadow: 0 6px 16px rgba(0,0,0,0.06);
}

/* ======================================================
   GLOBAL RESPONSIVE TABLE FIX (CLEAN FINAL VERSION)
   - Prevents layout break
   - Keeps bottom action bar stable
   - Enables horizontal scroll on mobile
   - No gradient overlay (prevents white line issue)
====================================================== */

/* Prevent page from expanding horizontally */
html, body {
  overflow-x: hidden;
}

/* Base table styling */
table {
  width: 100%;
  border-collapse: collapse;
}

/* Mobile horizontal scroll behavior */
@media (max-width: 768px) {

  table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }

}

/* Mobile scroll instruction styling */
.table-scroll-note {
  display: none;
}

@media (max-width: 768px) {

  .table-scroll-note {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #0b7f76;
    margin: 8px 0 6px;
  }

}

/* ===============================
   BREADCRUMB STYLING (Pill Navigation System)
================================ */

.breadcrumbs {
  margin: 12px 0 18px 0;
  padding: 0;
  background: transparent;
  border: none;
  font-size: 14px;
}

/* Remove default separator spacing */
.breadcrumbs .separator {
  margin: 0 6px;
  color: var(--muted);
}

/* Clickable breadcrumb items */
.breadcrumbs a {
  display: inline-block;
  padding: 6px 14px;
  background: var(--primary); /* green */
  color: #ffffff; /* white text */
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
}

/* Hover effect */
.breadcrumbs a:hover {
  opacity: 0.9;
}

/* Current page (non-clickable) */
.breadcrumbs span {
  display: inline-block;
  padding: 6px 14px;
  background: var(--card-bg); /* white */
  color: #000000; /* black text */
  border: 1px solid var(--border);
  border-radius: 8px;
  font-weight: 400; /* normal weight */
}