/* ===== Shared Country Detail Page Styles ===== */

nav.links a.active {
  color: #7474CF;
}

nav.links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--brass);
}

.mobile-panel nav a.active {
  color: var(--brass-light);
}

/* ===== Country detail page spacing refinement ===== */
section {
  padding-top: 38px !important;
  padding-bottom: 38px !important;
}

.country-intro {
  margin-top: 12px !important;
  margin-bottom: 20px !important;
}

.section-head {
  margin-bottom: 36px !important;
}

.info-grid,
.why-grid,
.finance-grid {
  margin-bottom: 24px !important;
}

@media (max-width: 980px) {
  section {
    padding-top: 32px !important;
    padding-bottom: 32px !important;
  }

  .section-head {
    margin-bottom: 30px !important;
  }
}

@media (max-width: 640px) {
  section {
    padding-top: 28px !important;
    padding-bottom: 28px !important;
  }

  .country-intro {
    margin-top: 6px !important;
    margin-bottom: 14px !important;
  }

  .section-head {
    margin-bottom: 26px !important;
  }

  .info-grid,
  .why-grid,
  .finance-grid {
    margin-bottom: 18px !important;
  }
}
/* ===== End country detail page spacing refinement ===== */

/* ===== Country Intro & Checklist ===== */
.country-intro {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 44px;
  align-items: start;
  margin: 56px 0;
}

@media (max-width: 900px) {
  .country-intro {
    grid-template-columns: 1fr;
  }
}

.country-intro h2 {
  font-size: 30px;
  margin-bottom: 16px;
}

.country-intro > div > p {
  color: var(--slate);
  margin-bottom: 22px;
  line-height: 1.7;
}

.country-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
}

.country-checklist li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 16px;
  font-size: 15px;
}

.country-checklist svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.country-intro img {
  border-radius: var(--radius);
  width: 100%;
  height: 100%;
  object-fit: cover;
  box-shadow: var(--shadow-md);
}

/* ===== Info Grid & Cards ===== */
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 60px;
}

@media (max-width: 900px) {
  .info-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .info-grid {
    grid-template-columns: 1fr;
  }
}

.info-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.info-card h4 {
  font-size: 17px;
  margin-bottom: 10px;
}

.info-card p {
  font-size: 14px;
  color: var(--slate);
  line-height: 1.6;
  margin: 0;
}

/* ===== Why Grid & Cards ===== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 64px;
}

@media (max-width: 900px) {
  .why-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .why-grid {
    grid-template-columns: 1fr;
  }
}

.why-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.why-card svg {
  margin-bottom: 16px;
}

.why-card p {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}

/* ===== Finance Grid ===== */
.finance-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 44px;
  align-items: center;
  margin-bottom: 64px;
}

@media (max-width: 900px) {
  .finance-grid {
    grid-template-columns: 1fr;
  }
}

.finance-imgs {
  position: relative;
}

.finance-imgs img {
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  display: block;
}

.finance-imgs .img-back {
  width: 70%;
}

.finance-imgs .img-front {
  width: 60%;
  position: absolute;
  bottom: -30px;
  right: -20px;
  border: 6px solid #fff;
}

.finance-text h2 {
  font-size: 30px;
  margin-bottom: 16px;
}

.finance-text p {
  color: var(--slate);
  line-height: 1.7;
  margin-bottom: 24px;
}

.finance-text h4 {
  font-size: 17px;
  margin-bottom: 16px;
}

/* ===== Footer Logo ===== */
.footer-logo {
  width: 215px;
  height: auto;
  object-fit: contain;
  display: block;
}

@media (max-width: 767px) {
  /* Footer logo - mobile */
  .footer-brand {
    text-align: center !important;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-logo-link {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 0 auto 25px auto !important;
  }

  .footer-logo {
    width: 205px !important;
    height: auto !important;
    max-width: 205px !important;
    display: block !important;
    margin: 0 auto !important;
    border-radius: 10px;
  }
}
