/* Grid Container */
.esim-packages-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 columns on large screens */
  gap: 24px;
  margin: 10px auto;
  max-width: 1440px;
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
  .esim-packages-grid {
    grid-template-columns: repeat(3, 1fr); /* 3 columns on medium screens */
    padding: 0px 10px;
  }
}

@media (max-width: 900px) {
  .esim-packages-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columns on tablets */
    padding: 0px 10px;
  }
}

@media (max-width: 600px) {
  .esim-packages-grid {
    grid-template-columns: 1fr; /* 1 column on mobile */
    padding: 0px 10px;
  }
}

/* Page Container */
.esim-country-container {
  padding: 40px 0;
  text-align: center;
}

/* Banner Container */
.esim-country-banner {
    background-color: #d9e8fa;
    width: 100%;             /* take full width of screen */
    max-width: 1440px;       /* but never larger than 1440px */
    height: 250px;
    border-radius: 20px;
    margin: -30px auto 30px auto; /* auto centers horizontally */
    display: flex;           /* keep content centered */
    justify-content: center;
    align-items: center;
    padding: 0 20px;         /* safe padding for mobile */
}

/* Tablet (≤1024px) */
@media (max-width: 1024px) {
  .esim-country-banner {
    height: 220px;
    border-radius: 16px;
  }
}

/* Mobile (≤768px) */
@media (max-width: 768px) {
  .esim-country-banner {
    height: 180px;
    border-radius: 12px;
    width: calc(100% - 25px); /* full width minus 20px for side spacing */
    max-width: 100%;
    margin: -30px auto 20px auto; /* top -20, left/right auto, bottom 20 */
  }
}



/* Small Mobile (≤480px) */
@media (max-width: 480px) {
  .esim-country-banner {
    height: 150px;
    border-radius: 10px;
    padding: 0 12px; /* reduce padding on small screens */
  }
}


/* Banner Heading */
.esim-country-banner h1 {
  font-size: 45px;
  font-weight: 600;
  font-family: var(--e-global-typography-primary-font-family);
  color: #0B1B29;
}

@media (max-width: 768px) {
  .esim-country-banner h1 {
    font-size: 30px;
  }
}

/* Back Button */
.back-button-container {
  text-align: center;
  margin-top: 40px;
}

.back-button {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 40px;
  background: #2e7ad8;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  font-family: var(--e-global-typography-primary-font-family);
  text-decoration: none;
  transition: background 0.3s ease;
}

.back-button:hover {
  background: #152B3D;
  color: #ffffff;
}


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

.esim-card {
    background: linear-gradient(172.82deg, #70A7EC 4.39%, #FFFFFF 95.61%);
    border-radius: 20px;
    box-shadow: 0 5px 5px rgb(0 0 0 / 4%);
    padding: 20px 15px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: left;
}

/* Header */
.esim-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
}

.esim-card-header img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.country-name {
  font-size: 20px;
  font-weight: 600;
  color: #000000;
  font-family: var(--e-global-typography-primary-font-family);
}

.country-subtitle {
  font-size: 14px;
  font-weight: 400;
  color: #ffffff;
  font-family: var(--e-global-typography-text-font-family);
}

/* Package Gradient Container */
.package-box {
  background: linear-gradient(191.37deg, #FFFFFF 8.35%, #FFFFFF 91.65%);
  border-radius: 20px;
  padding: 10px 10px;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

/* Data Plan */
.data-plan {
  font-size: 40px;
  font-weight: 600;
  font-family: var(--e-global-typography-primary-font-family);
  background: linear-gradient(90deg, #000000 0%, #2e7ad8 50%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

.data-plan span {
  font-size: 16px;
  font-weight: 500;
  font-family: var(--e-global-typography-text-font-family);
  color: #666666;
  -webkit-text-fill-color: initial;
}

.best-plan {
  font-size: 15px;
  font-weight: 600;
  font-family: var(--e-global-typography-primary-font-family);
  color: #0B1B29;
  margin-top: -30px !important;
}

/* Features List */
.features {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 0;
  margin: 0;
}

.features li {
  list-style: none;
  font-size: 14px;
  font-weight: 400;
  font-family: var(--e-global-typography-text-font-family);
  color: #666666;
  display: flex;
  align-items: left;
  gap: 10px;
}

.features li::before {
  content: "✔";
  background: #2e7ad8;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Card Buttons */
.esim-card-footer {
  display: flex;
  justify-content: flex-start; /* keep left aligned */
  align-items: center;
  gap: 10px;
  margin-top: auto;
}

/* Get eSIM Button */
.get-esim-btn {
  background: #0B1B29;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  font-family: var(--e-global-typography-primary-font-family);
  padding: 10px 65px; /* uniform padding */
  border: none;
  border-radius: 999px;
  cursor: pointer;
  text-align: center; /* centers text inside */
}

/* Get eSIM Hover */
.get-esim-btn:hover {
  background: #152b3d;
  color: #ffffff;
}

/* Price Button */
.price-btn {
  background: #2E7AD8;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--e-global-typography-primary-font-family);
  padding: 10px 16px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 70px; /* keeps it consistent */
}



/* Responsive */
@media (max-width: 480px) {
  .esim-card {
    padding: 22px 18px;
    max-width: 100%;
  }

  .data-plan {
    font-size: 30px;
  }

  .features li {
    font-size: 14px;
  }
}