/* 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: 1300px;
}

/* 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: var(--e-global-color-primary);
    width: 100%;             /* take full width of screen */
    max-width: 1300px;       /* 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: #ffffff;
}

@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-color: var(--e-global-color-primary);
  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-color: var(--e-global-color-primary);
  color: #ffffff;
}


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

/* Scope dark package card styles to package grids only */
.esim-packages-grid .esim-card {
    background: linear-gradient(172.82deg, #97535a 4.39%, #000000 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 (package cards only) */
.esim-packages-grid .esim-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
}

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

.esim-packages-grid .country-name {
  font-size: 20px;
  font-weight: 500;
  color: #ffffff;
  font-family: var(--e-global-typography-text-font-family);
}

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

/* Package Gradient Container (packages only) */
.esim-packages-grid .package-box {
  background: linear-gradient(175.37deg, #97535a 0.35%, #000000 130.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 */
.esim-packages-grid .data-plan {
  font-size: 35px;
  font-weight: 500;
  font-family: var(--e-global-typography-text-font-family);
  color: #F6AD1F;
}

.esim-packages-grid .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;
}

.esim-packages-grid .best-plan {
  font-size: 15px;
  font-weight: 500;
  font-family: var(--e-global-typography-text-font-family);
  color: #ffffff;
  margin-top: -30px !important;
}

/* Features List (packages only) */
.esim-packages-grid .features {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 0;
  margin: 0;
}

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

.esim-packages-grid .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 (packages only) */
.esim-packages-grid .esim-card-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: auto;
}

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

/* Get eSIM Hover */
.esim-packages-grid .get-esim-btn:hover {
  background: #ffffff;
  color: #000000;
}

/* Price Button */
.esim-packages-grid .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 (packages only) */
@media (max-width: 480px) {
  .esim-packages-grid .esim-card {
    padding: 22px 18px;
    max-width: 100%;
  }

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

  .esim-packages-grid .features li {
    font-size: 14px;
  }
}
/* Section Header */
.pkg-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #000000;
    border: 0.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 14px 20px;
    margin: 30px auto 16px auto;
    max-width: 1300px;
}

.pkg-section-days {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    font-family: var(--e-global-typography-text-font-family);
}

.pkg-section-count {
    font-size: 13px;
    font-weight: 500;
    color: #0B1B29;
    font-family: var(--e-global-typography-text-font-family);
    background: #ffffff;
    padding: 4px 14px;
    border-radius: 20px;
}

@media (max-width: 768px) {
    .pkg-section-header {
        margin: 20px 12px 12px 12px;
        padding: 12px 16px;
    }
    .pkg-section-days { font-size: 15px; }
}

@media (max-width: 540px) {
    .pkg-section-header {
        margin: 16px 10px 10px 10px;
        padding: 10px 14px;
    }
}