/* ================================================
   CONSECRATIO MUNDI — PAÍSES / HONDURAS
   paises.css
   ================================================ */

/* --- 1. GLOBAL HEADER COMPATIBILITY & ACTIVE STATE --- */
.nav-links li a.active,
.nav-links li a[aria-current="page"] {
  color: var(--navy);
  font-weight: 600;
}

.nav-links li a.active::after,
.nav-links li a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-user-profile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  transition: background var(--transition);
}

.nav-user-profile:hover {
  background: var(--cream);
}

.nav-user-profile img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
}

/* ================================================
   2. MAIN PAGE WRAPPER & CONTAINER
   ================================================ */
.country-page {
  position: relative;
  background-color: #FAF8F5;
  min-height: 100vh;
  overflow-x: hidden;
}

.country-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(16px, 3.5vw, 36px);
  position: relative;
  z-index: 2;
}

/* ================================================
   3. HONDURAS HERO SECTION
   ================================================ */
.country-hero {
  position: relative;
  width: 100%;
  min-height: clamp(280px, 32vw, 360px);
  background-image: url('assets/Tegucigalpa Panorama with Domed Cathedral-1.png');
  background-repeat: no-repeat;
  background-position: center 38%;
  background-size: cover;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Cinematic blue gradient overlay for perfect legibility */
.country-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0, 30, 65, 0.78) 0%,
    rgba(0, 35, 75, 0.55) 45%,
    rgba(0, 30, 65, 0.25) 100%
  );
  pointer-events: none;
  z-index: 1;
}

.country-hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 32px;
  position: relative;
  z-index: 2;
  padding: 36px 0;
}

.country-hero-left {
  flex: 1 1 auto;
  max-width: 620px;
}

.country-title {
  font-family: var(--font-serif);
  font-size: clamp(44px, 5.5vw, 68px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
}

.country-subtitle {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.95);
  margin-top: 8px;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
}

.country-hero-right {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.country-flag-box {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.country-flag-img {
  width: clamp(170px, 17vw, 230px);
  height: auto;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  display: block;
}

.country-location-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
}

.country-location-badge svg,
.country-location-badge img {
  width: 14px;
  height: 14px;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.6));
}

/* ================================================
   4. COUNTRY SUBNAVIGATION
   ================================================ */
.country-subnav-wrapper {
  background-color: var(--white);
  border-bottom: 1px solid #E2E8F0;
  position: relative;
  z-index: 10;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.country-subnav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(16px, 3.2vw, 42px);
  list-style: none;
  margin: 0;
  padding: 0;
}

.country-subnav-item {
  position: relative;
}

.country-subnav-link {
  display: block;
  padding: 16px 2px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--transition);
  position: relative;
}

.country-subnav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background-color: var(--gold);
  border-radius: 2px 2px 0 0;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--transition);
}

.country-subnav-link:hover {
  color: var(--gold);
}

.country-subnav-link.active,
.country-subnav-link[aria-current="true"] {
  color: var(--navy);
  font-weight: 600;
}

.country-subnav-link.active::after,
.country-subnav-link[aria-current="true"]::after {
  transform: scaleX(1);
}

/* ================================================
   5. GENERAL SECTION (ABOUT + MAP)
   ================================================ */
.country-general-section {
  padding: 50px 0 20px 0;
}

.country-general-grid {
  display: grid;
  grid-template-columns: 1.12fr 1fr;
  gap: clamp(28px, 4vw, 54px);
  align-items: start;
}

.country-general-text {
  display: flex;
  flex-direction: column;
}

.country-section-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.2vw, 38px);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 22px;
}

.country-body-paragraph {
  font-family: var(--font-sans);
  font-size: 15.5px;
  line-height: 1.76;
  color: #384A5F;
  margin-bottom: 18px;
}

.country-body-paragraph strong {
  color: var(--navy);
  font-weight: 700;
}

/* Map area */
.country-map-wrapper {
  background-color: var(--white);
  border: 1px solid #D7E1EC;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 43, 84, 0.05);
  display: flex;
  flex-direction: column;
}

.country-map-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background-color: #F8FAFD;
  border-bottom: 1px solid #E2EBF4;
}

.country-map-toggle-group {
  display: inline-flex;
  align-items: center;
  background: #EAF0F7;
  border-radius: 20px;
  padding: 2px;
}

.map-toggle-btn {
  padding: 4px 12px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  border-radius: 16px;
  border: none;
  cursor: pointer;
  background: transparent;
  color: var(--navy);
  transition: all 0.2s ease;
}

.map-toggle-btn.active {
  background-color: var(--navy);
  color: var(--white);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.country-map-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 11;
  background-color: #E6EFF8;
  overflow: hidden;
}

.country-map-iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.country-map-static-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.country-map-viewport.show-static .country-map-iframe {
  display: none;
}

.country-map-viewport.show-static .country-map-static-img {
  display: block;
}

.country-map-footer {
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--white);
  border-top: 1px solid #E2EBF4;
  gap: 16px;
}

.country-map-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.country-map-pin-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
}

.country-map-info-text {
  font-family: var(--font-sans);
}

.country-map-place-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
}

.country-map-place-sub {
  font-size: 12px;
  color: #617387;
}

.country-map-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  background-color: #FFFFFF;
  border: 1px solid var(--navy);
  color: var(--navy);
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.country-map-cta:hover {
  background-color: var(--navy);
  color: var(--white);
}

/* ================================================
   6. STATISTICS CARDS
   ================================================ */
.country-stats-section {
  padding: 24px 0 44px 0;
}

.country-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}

.country-stat-card {
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #fdfbf7 100%);
  border: 1px solid rgba(191, 161, 95, 0.28);
  border-top: 3px solid var(--gold, #bfa15f);
  border-radius: 12px;
  padding: 20px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 108px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(11, 30, 61, 0.04);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  text-decoration: none;
  color: inherit;
}

.country-stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(11, 30, 61, 0.08);
  border-color: rgba(191, 161, 95, 0.55);
}

.country-stat-icon-wrapper {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(191, 161, 95, 0.16) 0%, rgba(191, 161, 95, 0.06) 100%);
  border: 1px solid rgba(191, 161, 95, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.country-stat-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: block;
}

.country-stat-icon-wrapper.is-photo {
  padding: 2px;
  border-radius: 50%;
  background: rgba(191, 161, 95, 0.22);
  border: 1.5px solid rgba(191, 161, 95, 0.45);
}

.country-stat-icon-wrapper.is-photo .country-stat-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.country-stat-icon-wrapper.is-glyph {
  color: var(--navy, #0b1e3d);
  font-size: 1.35rem;
}

/* Specifically style the location pin in stats card #2 to match the gold/ochre theme */
.country-stat-card:nth-child(2) .country-stat-icon {
  filter: invert(68%) sepia(50%) saturate(600%) hue-rotate(5deg) brightness(92%) contrast(92%);
}

.country-stat-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  min-width: 0;
}

.country-stat-eyebrow {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #9A7B38;
  margin-bottom: 3px;
}

.country-stat-number {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 2.4vw, 2.4rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.05;
  overflow-wrap: break-word;
  word-break: break-word;
}

.country-stat-number.is-text {
  font-size: clamp(1.32rem, 1.6vw, 1.58rem);
  font-style: italic;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.country-stat-divider {
  display: block;
  width: 28px;
  height: 2px;
  background: linear-gradient(90deg, #bfa15f 0%, rgba(191, 161, 95, 0.18) 100%);
  border-radius: 2px;
  margin: 6px 0 5px 0;
}

.country-stat-label {
  font-family: var(--font-serif);
  font-size: 15.5px;
  font-weight: 600;
  color: #3B5168;
  line-height: 1.25;
}

.country-stat-sublabel {
  display: block;
  font-family: var(--font-sans);
  font-size: 11.5px;
  color: #64748b;
  font-weight: 400;
  margin-top: 2px;
  text-transform: none;
}

/* ================================================
   7. ACTIVITIES / EVENTS SECTION
   ================================================ */
.country-events-section {
  padding: 20px 0 60px 0;
}

.country-events-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.country-events-title {
  font-family: var(--font-serif);
  font-size: clamp(26px, 2.9vw, 34px);
  font-weight: 600;
  color: var(--navy);
  margin: 0;
}

.country-events-all-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  transition: color var(--transition), transform var(--transition);
}

.country-events-all-link:hover {
  color: var(--gold);
  transform: translateX(3px);
}

.country-events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

/* Event Card */
.country-event-card {
  background-color: var(--white);
  border: 1px solid #DFE6EF;
  border-radius: 8px;
  padding: 16px 16px 18px 16px;
  display: flex;
  gap: 14px;
  box-shadow: 0 2px 8px rgba(0, 30, 60, 0.03);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.country-event-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(0, 59, 114, 0.08);
  border-color: #CBD8E5;
}

/* Left Date block */
.event-date-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 44px;
  flex-shrink: 0;
  padding-top: 4px;
}

.event-date-day {
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.event-date-month {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.06em;
  margin-top: 3px;
  text-transform: uppercase;
}

.event-date-year {
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--gold-dark);
  margin-top: 1px;
}

/* Center Image Thumbnail */
.event-thumbnail-wrapper {
  width: 80px;
  height: 104px;
  flex-shrink: 0;
  border-radius: 4px;
  overflow: hidden;
  background-color: #EDE6DC;
}

.event-thumbnail-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Right Content */
.event-card-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.event-card-title {
  font-family: var(--font-serif);
  font-size: 16.5px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.25;
  margin: 0 0 8px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.event-card-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}

.event-meta-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 12px;
  color: #586C82;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.event-meta-icon {
  width: 13px;
  height: 13px;
  object-fit: contain;
  flex-shrink: 0;
}

.btn-event-details {
  margin-top: auto;
  height: 32px;
  border-radius: 5px;
  background-color: var(--white);
  border: 1px solid var(--gold);
  color: var(--navy);
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-event-details:hover {
  background-color: var(--gold);
  color: var(--white);
}

/* ================================================
   8. BOTTOM SPIRITUAL QUOTE SECTION
   ================================================ */
.country-quote-section {
  position: relative;
  background-color: #FAF6EF;
  border-top: 1px solid rgba(0, 59, 114, 0.06);
  border-bottom: 1px solid rgba(0, 59, 114, 0.06);
  overflow: hidden;
}

.country-quote-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 200px;
  gap: 32px;
}

.country-quote-visual {
  flex: 0 0 280px;
  height: 200px;
  position: relative;
  overflow: hidden;
}

.country-quote-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
  display: block;
  mask-image: linear-gradient(to right, black 65%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, black 65%, transparent 100%);
}

.country-quote-content {
  flex: 1 1 auto;
  text-align: right;
  padding-right: clamp(10px, 3vw, 40px);
}

.country-quote-text {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(20px, 2.3vw, 28px);
  line-height: 1.4;
  color: var(--navy);
  margin: 0;
  letter-spacing: 0.01em;
}

.country-quote-author {
  display: block;
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  margin-top: 10px;
  letter-spacing: 0.02em;
}

/* ================================================
   9. RESPONSIVE BREAKPOINTS
   =============================================== */

/* Tablet (<= 1024px) */
@media (max-width: 1024px) {
  .country-general-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .country-map-viewport {
    aspect-ratio: 16 / 9;
  }

  .country-events-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .country-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .country-stat-card {
    padding: 16px 18px;
    gap: 14px;
  }

  .country-stat-number {
    font-size: 30px;
  }

  .country-stat-number.is-text {
    font-size: 21px;
  }
}

/* Mobile landscape / small tablet (<= 860px) */
@media (max-width: 860px) {
  .country-subnav-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .country-subnav-wrapper::-webkit-scrollbar {
    display: none;
  }

  .country-subnav {
    padding: 0 16px;
    gap: 24px;
  }

  .country-quote-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 28px 0;
    min-height: auto;
  }

  .country-quote-visual {
    flex: 0 0 auto;
    width: 180px;
    height: 180px;
    border-radius: 50%;
  }

  .country-quote-img {
    mask-image: none;
    -webkit-mask-image: none;
    border-radius: 50%;
  }

  .country-quote-content {
    text-align: center;
    padding-right: 0;
  }

  .country-quote-author {
    text-align: center;
  }
}

/* Mobile (<= 768px) */
@media (max-width: 768px) {
  .country-hero-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 28px 0;
  }

  .country-hero-right {
    align-items: flex-start;
  }

  .country-flag-box {
    align-items: flex-start;
  }

  .country-flag-img {
    width: 160px;
  }

  .country-stats-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .country-events-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .country-map-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .country-map-cta {
    width: 100%;
    justify-content: center;
  }
}

/* Small Mobile (<= 480px) */
@media (max-width: 480px) {
  .country-title {
    font-size: 38px;
  }

  .country-subtitle {
    font-size: 18px;
  }

  .country-section-title {
    font-size: 26px;
  }

  .country-body-paragraph {
    font-size: 14.5px;
  }

  .country-event-card {
    padding: 14px;
    gap: 12px;
  }

  .event-thumbnail-wrapper {
    width: 70px;
    height: 94px;
  }

  .event-date-day {
    font-size: 24px;
  }

  .country-quote-text {
    font-size: 18px;
  }
}
