/* ============================================
   Ölkələr səhifəsi
   ============================================ */

/* ===== Decision helper (3 keys) ===== */
.decision-helper {
  background: var(--inner);
}
.dh-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: start;
}
.dh-text h2 {
  margin: 16px 0 20px;
}
.dh-text h2 .ink, .dh-text h2 .mute { display: block; }
.dh-text p {
  font-family: 'Inter', sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  opacity: 0.78;
  margin: 0;
}
.dh-keys {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.dh-key {
  background: #fff;
  border-radius: 22px;
  padding: 24px 28px;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 18px;
  row-gap: 6px;
  align-items: start;
  box-shadow: 0 4px 14px rgba(26, 26, 77, 0.06);
  transition: transform 260ms var(--ease-out), box-shadow 260ms var(--ease-out);
  border-left: 4px solid var(--brand);
}
.dh-key:nth-child(2) { border-left-color: #FB923C; }
.dh-key:nth-child(3) { border-left-color: #14B8A6; }
.dh-key:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(26, 26, 77, 0.12);
}
.dh-key-num {
  grid-row: 1 / span 2;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--brand);
  opacity: 0.25;
  letter-spacing: -0.04em;
}
.dh-key:nth-child(2) .dh-key-num { color: #FB923C; }
.dh-key:nth-child(3) .dh-key-num { color: #14B8A6; }
.dh-key h4 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.01em;
}
.dh-key p {
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--ink);
  opacity: 0.75;
  margin: 0;
  grid-column: 2;
}

/* ===== Spotlight horizontal carousel ===== */
.spotlight-panel {
  background: var(--inner-2);
  position: relative;
}

/* head: title + actions on the right */
.spotlight-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.spotlight-head .section-head-text {
  flex: 1;
  min-width: 280px;
}
.spotlight-head .section-head-text h2 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin: 0 0 12px;
}
.spotlight-head .section-head-text p {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: var(--ink);
  opacity: 0.7;
  margin: 0;
  max-width: 540px;
}

.spotlight-head-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

/* "Hamısına bax" link */
.spotlight-see-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: var(--brand);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 12px 20px;
  border-radius: var(--r-pill);
  text-decoration: none;
  border: 1px solid var(--border-soft);
  transition: background 200ms, transform 200ms, border-color 200ms;
}
.spotlight-see-all:hover {
  background: var(--brand-gradient);
  color: #fff;
  border-color: transparent;
}
.see-all-arrow {
  display: inline-block;
  transition: transform 220ms var(--ease-out);
}
.spotlight-see-all:hover .see-all-arrow {
  transform: translateX(4px);
}

/* nav arrows */
.spotlight-nav {
  display: flex;
  gap: 8px;
}
.sp-nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--border-soft);
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 200ms;
}
.sp-nav-btn:hover {
  background: var(--brand-gradient);
  color: #fff;
  border-color: transparent;
  transform: translateY(-2px);
}
.sp-nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
}
.sp-nav-btn:disabled:hover {
  background: #fff;
  color: var(--ink);
  border-color: var(--border-soft);
  transform: none;
}

/* the scrollable track */
.spotlight-carousel-wrap {
  position: relative;
  margin: 0 -80px; /* break out of panel padding so cards can flush against panel edge */
}
.spotlight-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 8px 80px 32px; /* matches panel-pad horizontal */
  scrollbar-width: none;
}
.spotlight-track::-webkit-scrollbar { display: none; }

/* each card: fixed width, snap-aligned */
.spotlight-card {
  flex: 0 0 340px;
  scroll-snap-align: start;
  cursor: pointer;
  background: #fff;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(26, 26, 77, 0.08);
  display: flex;
  flex-direction: column;
  transition: transform 320ms var(--ease-out), box-shadow 320ms var(--ease-out);
}
.spotlight-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(26, 26, 77, 0.16);
}
.sp-image {
  position: relative;
  height: 200px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 16px;
}
.sp-image::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.35) 100%);
  pointer-events: none;
}
.sp-flag {
  font-size: 2.25rem;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.25));
}
.sp-rank {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  letter-spacing: 0.02em;
}
.sp-body {
  padding: 24px 28px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.sp-body h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--ink);
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}
.sp-tagline {
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  color: var(--ink);
  opacity: 0.72;
  line-height: 1.5;
  margin: 0 0 18px;
}
.sp-quick-facts {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.sp-quick-facts li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border-soft);
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  gap: 12px;
}
.sp-quick-facts li:last-child { border-bottom: none; }
.sp-quick-facts span {
  color: var(--ink);
  opacity: 0.6;
  flex-shrink: 0;
}
.sp-quick-facts strong {
  color: var(--ink);
  font-weight: 600;
  text-align: right;
}
.sp-link {
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
  align-self: flex-start;
  transition: opacity 200ms;
}
.sp-link:hover { opacity: 0.7; }

/* ===== All countries with filter ===== */
.all-countries-panel {
  background: var(--inner);
}
.region-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 32px 0 36px;
}
.region-filter {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--r-pill);
  padding: 10px 18px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  transition: all 200ms;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.region-filter:hover {
  border-color: rgba(91, 79, 207, 0.3);
  background: var(--brand-soft);
}
.region-filter.active {
  background: var(--brand-gradient);
  color: #fff;
  border-color: transparent;
}
.rf-count {
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--inner);
  color: var(--ink);
  padding: 2px 8px;
  border-radius: var(--r-pill);
  opacity: 0.7;
}
.region-filter.active .rf-count {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  opacity: 1;
}

.countries-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.country-card {
  background: #fff;
  border-radius: 22px;
  /* `overflow: hidden` çıxarıldı: ulduz tooltip-i kart sərhədindən keçə bilsin.
     Şəkilin yumru künclərlə clip olması artıq `.cc-image` özünün
     `border-radius` və `overflow: hidden` qaydaları ilə təmin edilir
     (aşağıda 410-cu sətrdə). */
  box-shadow: 0 4px 14px rgba(26, 26, 77, 0.06);
  transition: transform 280ms var(--ease-out), box-shadow 280ms var(--ease-out), opacity 280ms;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.country-card.hidden {
  display: none;
}
.country-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 32px rgba(26, 26, 77, 0.14);
}
.cc-image {
  position: relative;
  height: 130px;
  background-size: cover;
  background-position: center;
  display: flex;
  justify-content: flex-end;
  padding: 12px;
  /* Şəkil özü clip olunsun (parent-də artıq `overflow:hidden` yoxdur). */
  overflow: hidden;
  border-radius: 22px 22px 0 0;     /* yalnız üst yumru künclər */
}
.cc-image::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,0.25) 100%);
  pointer-events: none;
}
.cc-flag {
  position: relative;
  z-index: 2;
  font-size: 1.75rem;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.25));
}

/* ===== DTP corner badge on country cards =====
   ÇIXARILDI — sarı "★ DTP" küncdəki pill artıq görünmür.
   DTP statusu hələ də başlıq yanındakı sarı ulduz (★) ilə işarələnir,
   bu daha az şluq və daha aydın oxunur. */
/* (boş qoyulub — köhnə qaydaları silirik) */

/* Gradient placeholder backgrounds (when no image) */
.cc-gradient .cc-flag { background: rgba(255,255,255,0.85); padding: 4px 8px; border-radius: var(--r-pill); }
.cc-grad-belgium    { background: linear-gradient(135deg, #2C2C2C 0%, #FAE042 50%, #ED2939 100%); }
.cc-grad-austria    { background: linear-gradient(135deg, #ED2939 0%, #FFFFFF 50%, #ED2939 100%); }
.cc-grad-hungary    { background: linear-gradient(135deg, #CE2939 0%, #FFFFFF 50%, #477050 100%); }
.cc-grad-poland     { background: linear-gradient(135deg, #FFFFFF 0%, #DC143C 100%); }
.cc-grad-czechia    { background: linear-gradient(135deg, #11457E 0%, #FFFFFF 50%, #D7141A 100%); }
.cc-grad-slovakia   { background: linear-gradient(135deg, #FFFFFF 0%, #0B4EA2 50%, #EE1C25 100%); }
.cc-grad-slovenia   { background: linear-gradient(135deg, #FFFFFF 0%, #0B4EA2 50%, #C8102E 100%); }
.cc-grad-romania    { background: linear-gradient(135deg, #002B7F 0%, #FCD116 50%, #CE1126 100%); }
.cc-grad-sweden     { background: linear-gradient(135deg, #006AA7 0%, #FECC00 100%); }
.cc-grad-norway     { background: linear-gradient(135deg, #BA0C2F 0%, #FFFFFF 50%, #00205B 100%); }
.cc-grad-finland    { background: linear-gradient(135deg, #FFFFFF 0%, #003580 100%); }
.cc-grad-denmark    { background: linear-gradient(135deg, #C8102E 0%, #FFFFFF 100%); }
.cc-grad-korea      { background: linear-gradient(135deg, #003478 0%, #FFFFFF 50%, #C60C30 100%); }
.cc-grad-japan      { background: linear-gradient(135deg, #FFFFFF 0%, #BC002D 100%); }
.cc-grad-china      { background: linear-gradient(135deg, #DE2910 0%, #FFDE00 100%); }
.cc-grad-australia  { background: linear-gradient(135deg, #00008B 0%, #FFFFFF 50%, #FF0000 100%); }
.cc-grad-nz         { background: linear-gradient(135deg, #00247D 0%, #FFFFFF 50%, #CC142B 100%); }

.cc-body {
  padding: 18px 20px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.cc-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.cc-head h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.01em;
}
.cc-tag {
  font-family: 'Inter', sans-serif;
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: var(--r-pill);
  white-space: nowrap;
}
.cc-tag.tag-purple { background: var(--brand-soft); color: var(--brand); }
.cc-tag.tag-orange { background: rgba(251, 146, 60, 0.15); color: #FB923C; }
.cc-tag.tag-blue   { background: rgba(59, 130, 246, 0.15); color: #3B82F6; }
.cc-tag.tag-cyan   { background: rgba(20, 184, 166, 0.15); color: #14B8A6; }

.cc-tagline {
  font-family: 'Inter', sans-serif;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--ink);
  opacity: 0.65;
  margin: 0 0 14px;
  flex: 1;
}
.cc-meta {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-top: 1px solid var(--border-soft);
  padding-top: 12px;
}
.cc-meta li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
}
.cc-meta span {
  color: var(--ink);
  opacity: 0.55;
}
.cc-meta strong {
  color: var(--ink);
  font-weight: 600;
}

/* ===== Comparison table ===== */
.comparison-panel {
  background: var(--inner-2);
}
.comparison-wrap {
  background: #fff;
  border-radius: 24px;
  padding: 8px;
  box-shadow: 0 6px 20px rgba(26, 26, 77, 0.08);
  overflow-x: auto;
  margin-top: 40px;
}
.comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  min-width: 760px;
}
.comparison-table thead th {
  padding: 18px 14px;
  background: var(--inner);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.875rem;
  text-align: left;
  border-bottom: 2px solid var(--border-soft);
  white-space: nowrap;
}
.comparison-table thead th:first-child {
  border-top-left-radius: 16px;
}
.comparison-table thead th:last-child {
  border-top-right-radius: 16px;
}
.ct-flag {
  font-size: 1.125rem;
  margin-right: 6px;
  vertical-align: middle;
}
.comparison-table td {
  padding: 14px 14px;
  border-bottom: 1px solid var(--border-soft);
  color: var(--ink);
  vertical-align: top;
}
.comparison-table td.ct-feature {
  font-weight: 600;
  color: var(--ink);
  background: rgba(91, 79, 207, 0.04);
  white-space: nowrap;
}
.comparison-table tr:last-child td {
  border-bottom: none;
}
.ct-good {
  color: #22C55E;
  font-weight: 600;
}
.ct-mid {
  color: #FB923C;
  font-weight: 600;
}
.ct-bad {
  color: #EF4444;
  font-weight: 600;
}
.ct-note {
  margin: 16px 4px 0;
  font-family: 'Inter', sans-serif;
  font-size: 0.8125rem;
  color: var(--ink);
  opacity: 0.6;
  font-style: italic;
}

/* ===== "How to choose" cards ===== */
.choose-panel {
  background: var(--inner);
}
.choose-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 40px;
}
.choose-card {
  background: #fff;
  border-radius: 22px;
  padding: 28px 26px;
  box-shadow: 0 4px 14px rgba(26, 26, 77, 0.06);
  transition: transform 280ms var(--ease-out), box-shadow 280ms var(--ease-out);
}
.choose-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 32px rgba(26, 26, 77, 0.12);
}
.choose-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  margin-bottom: 18px;
  box-shadow: 0 6px 14px rgba(91, 79, 207, 0.18);
}
.choose-card h4 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--ink);
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.choose-card p {
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--ink);
  opacity: 0.75;
  margin: 0;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 1100px) {
  .countries-grid { grid-template-columns: repeat(3, 1fr); }
  .choose-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
  .dh-grid { grid-template-columns: 1fr; gap: 32px; }

  /* Carousel: smaller padding break-out and card width */
  .spotlight-carousel-wrap { margin: 0 -50px; }
  .spotlight-track { padding: 8px 50px 32px; }
  .spotlight-card { flex-basis: 320px; }

  .spotlight-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .spotlight-head-actions {
    width: 100%;
    justify-content: space-between;
  }
}

/* Universal mobile fix (≤900px, where the hamburger menu also activates):
   Force the country card to hug its content instead of stretching to grid-cell
   height. Three layers of defence so this works regardless of viewport size,
   browser quirks, or which media-query block overrides which:
     1. Drop flex:1 on tagline (was absorbing leftover vertical space).
     2. Drop flex:1 on cc-body  (was expanding to fill cc-image+gap).
     3. Tell the grid not to stretch rows (align-items: start) so the
        card itself stops being forced to row height.
   The !important guards survive any later @media rule that re-sets these. */
@media (max-width: 900px) {
  .countries-grid { align-items: start !important; }
  .country-card {
    align-self: start !important;
    height: auto !important;
  }
  .cc-tagline { flex: 0 0 auto !important; }
  .cc-body {
    flex: 0 0 auto !important;
    padding-bottom: 14px;
  }
}

@media (max-width: 768px) {
  .countries-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .cc-image { height: 100px; }
  .cc-body { padding: 14px 16px 18px; }
  .cc-head h3 { font-size: 0.9375rem; }
  .cc-tag { font-size: 0.6875rem; padding: 2px 8px; }
  /* Drop flex:1 on tagline across ALL mobile sizes (not only single-column).
     Reason: with flex:1 the tagline absorbs all leftover vertical space and
     leaves a large empty gap above the meta list. On mobile the meta list
     should sit directly below the tagline regardless of column count. */
  .cc-tagline { flex: 0; font-size: 0.75rem; margin-bottom: 10px; }
  .cc-meta li { font-size: 0.6875rem; }

  .region-filters { gap: 6px; }
  .region-filter { font-size: 0.8125rem; padding: 8px 14px; }
  .rf-count { font-size: 0.6875rem; }

  .choose-grid { grid-template-columns: 1fr; }

  .dh-key { padding: 20px 22px; }

  /* Carousel mobile */
  .spotlight-carousel-wrap { margin: 0 -28px; }
  .spotlight-track { padding: 8px 28px 24px; gap: 14px; }
  .spotlight-card { flex-basis: 280px; }
  .sp-image { height: 170px; }
  .sp-body { padding: 20px 22px 24px; }
  .sp-body h3 { font-size: 1.25rem; }

  .spotlight-see-all { font-size: 0.875rem; padding: 10px 16px; }
  .sp-nav-btn { width: 38px; height: 38px; }
}

@media (max-width: 500px) {
  .countries-grid { grid-template-columns: 1fr; }
  /* Single-column mobile: cards no longer share a row, so equal-height
     stretching is unnecessary. Drop flex:1 on the tagline so the card
     hugs its content and the empty gap above the meta list disappears. */
  .cc-image { height: 110px; }
  .cc-tagline { flex: 0; margin-bottom: 12px; }
  .cc-body { padding: 14px 16px 16px; }
  .cc-meta { padding-top: 10px; gap: 4px; }
}
