.delivery-countries {
  padding: 5rem 0;
  background-color: var(--bg-primary);
}

.countries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
  width: 70vw;
  align-items: center;
  margin: auto;
}

.country-card {
  margin-bottom: 0.5rem;
  background-color: white;
  padding: 0.5rem;
  text-align: center;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.country-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.country-card h3 {
  color: var(--text-primary);
  font-size: 1.1rem;
  margin-bottom: 0;
}

.flex {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

:root {
  --brand-accent: #d4a373;
  /* Warm, motherly beige/tan */
  --text-main: #333;
  --text-light: #777;
  --bg-light: #faf9f6;
}

.features-layout {
  display: flex;
  gap: 60px;
  align-items: flex-start;
}

/* Sidebar Styling */
.sidebar {
  position: sticky;
  top: 120px;
  width: 250px;
  flex-shrink: 0;
}

.cat-title {
  font-size: 2rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-main);
  margin-bottom: 1.5rem;
}

.sidebar ul {
  list-style: none;
  padding: 0;
  border-left: 2px solid #eee;
}

.sidebar li {
  margin-bottom: 15px;
}

.sidebar a {
  text-decoration: none;
  color: var(--text-light);
  font-size: 1rem;
  padding-left: 20px;
  display: block;
  transition: all 0.3s ease;
  position: relative;
}

/* Active Link State */
.sidebar a.active {
  color: var(--text-main);
  font-weight: 700;
}

.sidebar a.active::before {
  content: '';
  position: absolute;
  left: -2px;
  top: 0;
  height: 100%;
  width: 2px;
  background-color: var(--brand-accent);
}

/* Content Area */
.section-title {
  font-size: 3rem;
  margin-bottom: 4rem;
  line-height: 1.2;
}

.section-title span {
  color: var(--brand-accent);
  font-style: italic;
  font-family: 'Playfair Display', serif;
  /* Optional: adds a premium feel */
}

.feature-section {
  scroll-margin-top: 150px;
  padding: 3rem 0;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.kit-number {
  font-family: monospace;
  color: var(--brand-accent);
  font-weight: bold;
}

.feature-section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.feature-section p {
  font-size: 1.1rem;
  color: #555;
  max-width: 600px;
  line-height: 1.7;
  margin-bottom: 30px;
}

.image-row img {
  width: 100%;
  max-width: 700px;
  /* slightly smaller on desktop */
  object-fit: cover;
  border-radius: 15px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}


/* Mobile Adjustments */
@media (max-width: 992px) {
  .features-layout {
    flex-direction: column;
    gap:0;
  }

  .sidebar {
    position: relative;
    top: 0;
    width: 100%;
  }

  .sidebar ul {
    display: flex;
    overflow-x: auto;
    border-left: none;
    gap: 20px;
    padding-bottom: 10px;
  }

  .sidebar a {
    padding-left: 0;
    white-space: nowrap;
  }

  .sidebar a.active::before {
    display: none;
  }
}

@media (max-width: 768px) {
  .image-row img {
    max-width: 100%;
    aspect-ratio: 4 / 3;
    /* slightly taller on mobile */
    border-radius: 12px;
  }

  .feature-section {
    padding: 2rem 0;
  }

  .feature-section h2 {
    font-size: 1.6rem;
    text-align: center;
  }

  .feature-section p {
    font-size: 1rem;
  }
}