/* --- Subscription Page Styles --- */
body {
  background-color: #f6f8fa;
  margin: 0;
  color: #222;
}

/* --- Header --- */
.page-header {
  background: #fff;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #ddd;
}

.page-header h1 {
  font-size: 1.5rem;
  margin: 0;
}

.page-header nav a {
  margin-left: 1rem;
  text-decoration: none;
  color: #003366;
  font-weight: 500;
}

.page-header nav a:hover {
  text-decoration: underline;
}

/* --- Main Container --- */
.subscription-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* --- Current Subscription --- */
.current-subscription {
  background: #fff;
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.active-subscription {
  background: linear-gradient(135deg, #003366, #0055aa);
  color: white;
  border-radius: 8px;
  padding: 1.5rem;
  margin-top: 1rem;
}

.active-subscription h3 {
  margin-top: 0;
  font-size: 1.4rem;
}

.active-subscription .validity {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-bottom: 1rem;
}

.active-subscription .benefits {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.active-subscription .benefits li {
  margin-bottom: 0.5rem;
}

.active-subscription .expiry {
  font-size: 0.9rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.2);
}

/* --- Subscription Options --- */
.subscription-options {
  margin-bottom: 2rem;
}

.subscription-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.subscription-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.subscription-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.subscription-card.featured {
  border: 2px solid #003366;
}

.subscription-card.active {
  border: 2px solid #28a745;
  box-shadow: 0 5px 15px rgba(40, 167, 69, 0.2);
}

.subscription-card.active .select-btn {
  background: #28a745;
}

.featured-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #003366;
  color: white;
  font-size: 0.7rem;
  padding: 0.3rem 0.6rem;
  border-radius: 20px;
  font-weight: 600;
}

.card-header {
  background: #003366;
  color: white;
  padding: 1.5rem;
  text-align: center;
}

.card-header h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.3rem;
}

.price {
  font-size: 2rem;
  font-weight: 600;
  margin: 0.5rem 0 0;
}

.price span {
  font-size: 0.9rem;
  opacity: 0.8;
  font-weight: normal;
}

.card-body {
  padding: 1.5rem;
}

.validity {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #eee;
}

.benefits {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
}

.benefits li {
  padding: 0.5rem 0;
  position: relative;
  padding-left: 1.5rem;
}

.benefits li:before {
  content: '✓';
  color: #003366;
  position: absolute;
  left: 0;
  font-weight: bold;
}

.select-btn {
  width: 100%;
  padding: 0.8rem;
  background: #003366;
  color: white;
  border: none;
  border-radius: 5px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease;
}

.select-btn:hover {
  background: #002244;
}

/* --- Comparison Table --- */
.subscription-details {
  background: #fff;
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.comparison-table {
  overflow-x: auto;
  margin-top: 1rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

th, td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #eee;
}

th {
  background: #f6f8fa;
  font-weight: 600;
}

tr:last-child td {
  border-bottom: none;
}

/* --- Responsive Styles --- */
@media (max-width: 768px) {
  .subscription-cards {
    grid-template-columns: 1fr;
  }
  
  .page-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .page-header nav {
    margin-top: 1rem;
  }
  
  .page-header nav a:first-child {
    margin-left: 0;
  }
  
  th, td {
    padding: 0.7rem;
  }
}