/* ----------------------------
   COUNTRY CARD CENTERED
---------------------------- */
.country-card {
  max-width: min(320px, 100% - 2rem);
  width: 100%;
  margin: 1.5rem auto;
  padding: 1.5rem clamp(1rem, 4vw, 1.2rem);
  background:
    radial-gradient(circle at top, var(--gold-soft), transparent 65%),
    var(--bg-elevated);    /* match tracker style */
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  backdrop-filter: var(--blur-lg);
  box-shadow: 0 18px 45px rgba(0,0,0,0.25);
}


.country-card .section-title {
  font-size: 1.1rem;  /* smaller than 1.3rem */
  margin-bottom: 0.8rem;
  font-weight: 500;
  font-family: 'Poppins', system-ui, sans-serif;
  color: var(--accent);
}

.country-card .btn-primary {
  max-width: 200px;
  min-height: 44px;
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
}

@media (max-width: 359px) {
  .country-card { padding: 1.2rem 1rem; margin: 1rem auto; }
  .country-card .btn-primary { max-width: 100%; }
}


/* ----------------------------
   COLLAPSIBLE CARD
---------------------------- */
.collapsible .collapse-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.collapse-icon {
  font-size: 1.2rem;
  color: var(--accent, #0077ff);
  transition: transform 0.3s ease;
}

/* Body animation */
.collapse-body {
  overflow: hidden;
  max-height: 1000px; /* large enough for content */
  opacity: 1;
  transition: max-height 0.45s ease, opacity 0.35s ease, margin 0.3s ease;
  margin-top: 0.8rem;  /* reduce spacing */
}


/* COLLAPSED STATE */
.collapsible.closed .collapse-body {
  max-height: 0;
  opacity: 0;
  margin-top: 0;
}

/* Rotate icon when collapsed */
.collapsible.closed .collapse-icon {
  transform: rotate(-90deg);
}


.country-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 25px 60px rgba(0,0,0,0.18);
  border-color: var(--border-gold);
}

