/* 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: #fff;
    width: 100%;             /* take full width of screen */
    max-width: 1440px;       /* but never larger than 1440px */
    height: 250px;
    border-radius: 20px;
    margin: 0px auto 25px auto; /* auto centers horizontally */
    display: flex;           /* keep content centered */
    justify-content: center;
    align-items: center;
    padding: 0px 0px;         /* 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: -20px 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: 500;
  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: #0B1B29;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  font-family: var(--e-global-typography-text-font-family);
  text-decoration: none;
  transition: background 0.3s ease;
}

.back-button:hover {
  background: #FFD506;
  color: #0B1B29;
}


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

.esim-card {
    background: linear-gradient(172.82deg, #12191F 4.39%, #232C33 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: 500;
  color: #ffffff;
  font-family: poppins;
}

.country-subtitle {
  font-size: 14px;
  font-weight: 400;
  color: #F6AD1F;
  font-family: poppins;
}

/* Package Gradient Container */
.package-box {
  background: linear-gradient(191.37deg, #232C33 8.35%, #12191F 91.65%);
  border-radius: 20px;
  border: 1px solid;
  border-color: linear-gradient(180deg, #12191F 0%, #232C33 100%);
  padding: 10px 10px;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

/* Data Plan */
.data-plan {
  font-size: 40px;
  font-weight: 500;
  font-family: poppins;
  color: #F6AD1F;
}

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

.best-plan {
  font-size: 15px;
  font-weight: 500;
  font-family: poppins;
  color: #9D9D9D;
  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: poppins;
  color: #ffffff;
  display: flex;
  align-items: left;
  gap: 10px;
}

.features li::before {
  content: "✔";
  background: #fff;
  color: #000;
  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: center;
  align-items: center;
  gap: 10px;
  margin-top: auto;
}

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

/* Get eSIM Hover */
.get-esim-btn:hover {
  background: #F6AD1F;
  color: #12191F;
}

/* Price Button */
.price-btn {
  background: #fff;
  color: #000;
  font-size: 14px;
  font-weight: 500;
  font-family: var(--e-global-typography-text-font-family);
  padding: 10px 16px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 70px; 
}



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

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

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