:root {
  --header-offset: 100px; /* set to your actual header height */
  --adminbar-offset: 0px;
}
.admin-bar { --adminbar-offset: 32px; }
@media (max-width: 782px) {
  .admin-bar { --adminbar-offset: 46px; }
}

/* Reset for the page */
body.page-template-page-fullwidth-php {
  margin: 0;
  padding: 0;
}

body.page-template-page-fullwidth-php * {
  box-sizing: border-box;
}

/* Main Layout Container */
.wai-country-layout {
  display: grid !important;
  grid-template-columns: 1fr 360px !important;
  grid-template-areas:
    "title title"
    "list  aside" !important;
  gap: 24px !important;
  padding: 48px 20px !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
  width: 100% !important;
  background: var(--bg);
}

/* Grid Area Assignments */
.wai-country-layout .layout-title { 
  grid-area: title !important; 
  margin: 8px 0 0 !important; 
}

.wai-country-layout .list-col { 
  grid-area: list !important; 
}

.wai-country-layout .aside-col {
  grid-area: aside !important;
  position: sticky !important;
  top: calc(var(--header-offset) + var(--adminbar-offset) + 16px) !important;
  height: fit-content !important;
}


/* Section Title */
.wai-country-layout .section-title {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 24px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.wai-country-layout .accent { 
  color: var(--country); 
}

/* Country Grid */
.wai-country-layout .country-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 18px !important;
}

/* Country Card */
.wai-country-layout .country-card {
  display: grid !important;
  grid-template-columns: 160px 1fr !important;
  gap: 14px !important;
  padding: 12px !important;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.wai-country-layout .country-group {
  margin-top: 50px; /* adjust value as needed */
}


.wai-country-layout .country-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0,0,0,.1);
}

.wai-country-layout .country-card .thumb {
  display: block;
  border-radius: calc(var(--radius) - 6px);
  overflow: hidden;
  border: 2px solid rgba(249,115,22,.3);
  transition: border-color 0.2s;
}

.wai-country-layout .country-card .thumb:hover {
  border-color: rgba(249,115,22,.6);
}

.wai-country-layout .country-card .cover img {
  display: block;
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.wai-country-layout .country-card h3 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
}

.wai-country-layout .country-card h3 a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s;
}

.wai-country-layout .country-card h3 a:hover { 
  border-color: var(--country); 
}

.wai-country-layout .country-card .desc {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.wai-country-layout .actions .podcast-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  font-weight: 600;
  color: var(--country);
  padding: 6px 10px;
  border: 1px dashed rgba(249,115,22,.45);
  border-radius: 999px;
  font-size: 13px;
  transition: background 0.2s;
}

.wai-country-layout .actions .podcast-link:hover { 
  background: rgba(249,115,22,.06); 
}

/* Sidebar Styles */
.wai-country-layout .cta,
.wai-country-layout .recommended { 
  border: 1px solid #eaeaea; border-radius: 10px;
  padding: 16px; margin-bottom: 22px; background: #fff;
}

.wai-country-layout .cta h3 { 
  margin: 0 0 12px; 
  font-size: 18px; 
  font-weight: 700;
}

.wai-country-layout .cta p { 
  margin: 0 0 16px; 
  color: var(--muted); 
  line-height: 1.6;
}

.wai-country-layout .btn { 
  display: inline-block; margin-top: 10px; padding: 10px 14px;
  border-radius: 8px; background: #0bc637; color: #fff !important;
  text-decoration: none !important;
}

.wai-country-layout .recommended { 
  margin-top: 18px; 
}

.wai-country-layout .recommended h4 { 
  margin: 0 0 12px; 
  font-size: 16px; 
  font-weight: 700;
}

.wai-country-layout .recommended-img { 
  display: block; 
  border-radius: 14px; 
  overflow: hidden; 
  position: relative; 
  transition: transform 0.2s;
}

.wai-country-layout .recommended-img:hover {
  transform: scale(1.02);
}

.wai-country-layout .recommended-img img { 
  width: 100%; 
  height: 220px; 
  object-fit: cover; 
  display: block; 
}

.wai-country-layout .recommended-img .badge { 
  position: absolute; 
  left: 10px; 
  bottom: 10px; 
  background: rgba(17,24,39,.85); 
  color: #fff; 
  padding: 8px 12px; 
  border-radius: 999px; 
  font-size: 12px; 
  font-weight: 600;
}


.app-stores{
  display:flex;
  align-items:center;
  gap:12px;              /* space between badges */
  justify-content:center; /* or center */
  flex-wrap:wrap;        /* lets them wrap on tiny screens */
}
.app-stores .store-badge img{
  display:block;
  height:60px;           /* keeps both the same height */
  width:auto;
}




/* Mobile Responsive */
@media (max-width: 900px) {
  .wai-country-layout {
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "title"
      "list"
      "aside" !important;
    padding: 24px 16px !important;
  }
  
  .wai-country-layout .aside-col { 
    position: static !important; 
  }
  
  .wai-country-layout .country-grid { 
    grid-template-columns: 1fr !important; 
  }
  
  .wai-country-layout .country-card { 
    grid-template-columns: 1fr !important; 
  }
  
  .wai-country-layout .country-card .cover img { 
    height: 200px; 
  }
}


/* AUDIO GUIDE — Countries
   Only the first .thumb in a podcast card is the big artwork.
   Any additional .thumbs stay small (country link thumbnail). */

/* big artwork */
.country-grid .country-card.podcast-card .thumb:first-of-type {
  width: 320px;
  height: 180px;
  flex: 0 0 auto;
}
.country-grid .country-card.podcast-card .thumb:first-of-type img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* small destination thumbnail */
.country-grid .country-card.podcast-card .thumb:not(:first-of-type) {
  width: 90px;          /* adjust if you want smaller/larger */
  height: 60px;
  margin-top: 8px;
  flex: 0 0 auto;
}
.country-grid .country-card.podcast-card .thumb:not(:first-of-type) img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

/* safety: never show the green badge on any later thumb */
.country-grid .country-card.podcast-card .thumb:not(:first-of-type) .badge {
  display: none !important;
}



/* === wAI hard-override: fix inconsistent big image heights on desktop === */
.wai-country-layout .country-card .cover img{
  width:100% !important;
  height:80px !important;
  object-fit:cover !important;
  display:block !important;
}
/* ensure small thumbnail stays small */
.wai-country-layout .country-card .actions .mini-thumb img{
  width:56px !important;
  height:40px !important;
  object-fit:cover !important;
  display:block !important;
}
