/* Discounted Cards Section */
.discounted-cards {
  background: none;
  padding: 50px 20px;
  text-align: center;
}

/* Premium Packages Section */
.discounted-cards h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #000080;
  margin-bottom: 10px;
}

.discounted-cards .subtitle {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 20px;
  font-weight: 300;
  text-align: center;
}

/* Line below heading and description */
.discounted-cards .line-divider {
  width: 80%;
  max-width: 600px;
  height: 2px;
  background: linear-gradient(to right, transparent, #000080, transparent);
  margin: 15px auto 50px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Card styling with header aligned to edges */
.card {
  background: white;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 0; /* Remove padding from the card itself */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden; /* Ensures the header doesn't overflow */
}

.card:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Card Header - Aligned to top, left, and right boundaries */
.card-header {
  background: #000080;
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  padding: 15px 20px;
  border-radius: 0; /* Remove border radius from the header */
  text-align: center;
  width: 100%; /* Full width of the card */
  margin-bottom: 0; /* Remove margin */
  margin-top: 0; /* Ensure it's at the top */
}

/* Card content padding */
.card-content {
  padding: 20px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.price {
  font-size: 2rem;
  font-weight: 700;
  color: #000080;
  margin: 20px 0 15px 0; /* Add space at the top */
}

.price .original-price {
  font-size: 1rem;
  color: #888;
  text-decoration: line-through;
  margin-left: 10px;
}

.features {
  list-style: none;
  padding: 0 20px;
  margin: 0 0 20px 0;
  text-align: left;
  width: 100%;
  color: #555;
}

.features li {
  font-size: 1rem;
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
}

.features li::before {
  content: "✔";
  color: #000080;
  margin-right: 10px;
  font-weight: bold;
  flex-shrink: 0;
}

.order-button {
  background: #000080;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 10px 25px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 0 auto 20px; /* Add bottom margin */
}

.order-button:hover {
  background: #000066;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Highlighted Card */
.card.popular {
  border: 2px solid #000080;
  position: relative;
  transform: scale(1.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

/* Ensure header is still full width on popular card */
.card.popular .card-header {
  width: 100%;
}

.card.popular:hover {
  transform: scale(1.15);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

/* Popular Badge */
.popular-badge {
  position: absolute;
  top: -10px;
  right: -10px;
  background: #000080;
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  z-index: 2;
}

/* Responsive Design */
@media (max-width: 768px) {
  .discounted-cards h2 {
    font-size: 2rem;
  }

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

  .card {
    width: 100%;
  }
  
  .card.popular {
    transform: scale(1.05);
  }
  
  .card.popular:hover {
    transform: scale(1.1);
  }
}