/* ===========================
   wAI – Countries CPT layout
   =========================== */

/* 0) Widen the working container ONLY on single country */

/* Hero layout */
.cpt-country-hero {
  position: relative;
  isolation: isolate;
  min-height: 320px;           /* tweak for your taste */
  display: grid;
  align-items: end;
  margin: 0 0 24px;
  border-radius: 14px;
  overflow: hidden;
}
.cpt-country-hero__bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transform: scale(1.02);      /* subtle zoom */
}
.cpt-country-hero__shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.15) 20%, rgba(0,0,0,.55) 100%);
}
.cpt-country-hero__inner {
  position: relative;
  padding: 48px 0 32px;
  color: #fff;
}
.cpt-country-hero .breadcrumbs a { color: rgba(255,255,255,.9); }
.cpt-country-hero .breadcrumbs { margin: 0 0 6px; font-size: 14px; }
.cpt-country-hero .entry-title { margin: 0; font-size: 40px; line-height: 1.15; }
@media (min-width: 730px){
  .cpt-country-hero { min-height: 420px; }
  .cpt-country-hero .entry-title { font-size: 52px; }
}
.cpt-country-hero__caption {
  margin-top: 8px; color: rgba(255,255,255,.85); font-size: 13px;
}

/* Keep your main content wide & clean */
.trawell-main.trawell-sidebar-none .container { max-width: 1260px; }



@media (min-width:1100px){
  .single-country .container,
  .single-country .trawell-main{
    max-width: 1400px !important; /* tweak as you like */
  }
}

/* 1) Remove Trawell’s inner max-widths inside the post body */
.single-country .trawell-entry .entry-content > *{
  max-width: 100% !important;
  width: 100% !important;
}

/* 2) Breadcrumbs spacing */
.single-country nav.breadcrumbs{
  margin: 8px 0 14px;
  font-size: 14px;
}

/* 3) Root wrapper for your markup */
.single-country .cpt_country{
  --gap: 28px;
  font-size: 16px;
  line-height: 1.6;
}

/* 4) Two-column grid: main + aside */
@media (min-width: 1100px){
  .single-country .cpt_country__grid{
    display: grid;
    grid-template-columns: 1.4fr 0.9fr;      /* more space for main */
    gap: var(--gap);
    align-items: start;
  }
  .single-country .cpt_country__aside{
    position: sticky;
    top: 90px; /* under the header */
  }
}

/* 5) “Facts” panel */
.single-country .cpt_country__facts{
  margin: 16px 0 22px;
  padding: 16px;
  border: 1px solid #eee;
  background: #f7f7f7;
  border-radius: 8px;
}
.single-country .cpt_country__facts dl{
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 10px 18px;
  margin: 0;
}
.single-country .cpt_country__facts dt{ font-weight: 700; }
.single-country .cpt_country__facts dd{ margin: 0; }

/* 6) Paragraph blocks + card sections */
.single-country .cpt_country .paragraph{ margin: 28px 0; }
.single-country .cpt_country .small-topic{
  border: 1px solid #eee; border-radius: 10px;
  padding: 16px; margin: 18px 0; background: #fff;
}
.single-country .cpt_country img{
  display:block; max-width:100%; height:auto; border-radius: 8px;
  margin: 10px 0 14px;
}

/* 7) Headings */
.single-country .cpt_country__title{ margin: 8px 0 16px; font-size: 28px; }
.single-country h3{ margin: 10px 0; font-size: 22px; }

/* 8) CTA in the sidebar */
.single-country .cpt_country__cta{
  border: 1px solid #eaeaea; border-radius: 10px;
  padding: 16px; margin-bottom: 22px; background: #fff;
}
.single-country .cpt_country__btn{
  display: inline-block; margin-top: 10px; padding: 10px 14px;
  border-radius: 8px; background: #0bc637; color: #fff !important;
  text-decoration: none !important;
}

/* 9) Responsive: stack at tablet */
@media (max-width: 1099.98px){
  .single-country .cpt_country__grid{
    display:block;
  }
}


.hero-behind-header {
  position: relative;
  z-index: 0;
  margin-top: -120px; /* pull up to overlap the header completely */
  height: 520px;      /* taller hero like Italy page */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 0 !important;
  overflow: hidden;
}

@media (max-width: 1024px) {
  .hero-behind-header {
    margin-top: -100px;
    height: 400px;
  }
}

.hero-behind-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.15) 0%,
    rgba(0, 0, 0, 0.35) 100%
  );
  z-index: 1;
}


.hero-behind-header .cpt-country-hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  padding-top: 80px;   /* spacing below navbar */
  padding-bottom: 60px;
  text-align: left;
}


.hero-behind-header h1.entry-title {
  color: #fff;
  font-weight: 800;
  line-height: 1.15;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
  font-size: 3.2rem;
  max-width: 700px;
}

@media (min-width: 768px) {
  .hero-behind-header h1.entry-title {
    font-size: 4rem;
  }
}

.hero-behind-header nav.breadcrumbs {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 10px;
}

.hero-behind-header nav.breadcrumbs a {
  color: rgba(255, 255, 255, 0.9);
}

.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;
}


/* === Adjust hero to start truly at top (no white strip) === */
.hero-behind-header {
  margin-top: -240px; /* was -120px — increase slightly to remove white line */
  height: 700px;      /* taller for stronger impact */
  background-size: cover;
  background-position: center top; /* anchor image to top edge */
}

/* === Center the title vertically on the hero === */
.hero-behind-header .cpt-country-hero__inner {
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-top: 0;   /* remove top offset */
  padding-bottom: 0;
}

.hero-behind-header h1.entry-title {
  margin: 0 auto;
  max-width: 80%;
}
