body {
  background-color: #edf6f1;
  color: #152f2a;
  font-family: 'Source Sans Pro', sans-serif;
}

/* Filter Sidebar */
.filter-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 2rem;
  background-color: #ffffff;
  border-right: 1px solid #e9ecef;
  overflow-y: auto;
}

.filter-title {
  font-size: 1.25rem;
  color: #28a745;
  margin-bottom: 1.5rem;
  text-align: center;
}

.filter-content {
  margin-bottom: 1.5rem;
}

.filter-group {
  margin-bottom: 1rem;
}

.filter-label {
  display: block;
  font-size: 0.875rem;
  color: #6c757d;
  margin-bottom: 0.5rem;
}

.filter-select {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
  font-size: 0.875rem;
}

.filter-reset {
  width: 100%;
  padding: 0.5rem;
  background-color: transparent;
  border: 1px solid #28a745;
  color: #28a745;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-reset:hover {
  background-color: #28a745;
  color: #ffffff;
}

/* Main Content */
.main-content {
  flex-grow: 1;
  padding: 2rem;
}

/* Hero Section */
.hero-section {
  position: relative;
  background-image: url("/assets/home_banner.webp");
  background-size: cover;
  background-position: center;
  border-radius: 1rem;
  height: 400px;
  color: white;
  overflow: hidden;
  margin-bottom: 2rem;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 30, 26, 0.6);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 2rem;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
  font-size: 1.25rem;
  max-width: 600px;
  color: #ffffff;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Action Button */
.action-button {
  text-align: right;
  margin-bottom: 2rem;
}

.btn-create {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: #28a745;
  color: #ffffff;
  text-decoration: none;
  border-radius: 0.25rem;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.btn-create:hover {
  background-color: #218838;
}

/* Plans Grid */
.plans-grid {
  display: grid;
  margin-bottom: 2rem;
}

/* Pagination */
.pagination-container {
  margin-top: 2rem;
  text-align: center;
  justify-content: center; /* Centers the pagination horizontally */
  align-items: center;
}

.pagination {
  display: inline-flex;
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.page-item {
  margin: 0 0.25rem;
}

.page-link {
  display: block;
  padding: 0.5rem 0.75rem;
  color: #28a745;
  background-color: #ffffff;
  border: 1px solid #28a745;
  border-radius: 0.25rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.page-link:hover {
  background-color: #28a745;
  color: #ffffff;
}

.page-item.active .page-link {
  background-color: #28a745;
  color: #ffffff;
}

.page-item.disabled .page-link {
  color: #6c757d;
  pointer-events: none;
  background-color: #ffffff;
  border-color: #dee2e6;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
  .d-flex {
    flex-direction: column;
  }

  .filter-sidebar {
    width: 100%;
    height: auto;
    position: static;
  }

  .hero-section {
    height: 300px;
  }

  .hero-content {
    padding: 1rem;
  }

  .hero-section .hero-content .hero-title {
    font-size: 2rem;
  }

  .hero-section .hero-content .hero-subtitle {
    font-size: 1rem;
  }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  /* Pagination - Smaller size for mobile */
  .pagination-container {
    margin-top: 1.5rem;
  }

  .pagination {
    gap: 0.25rem; /* Add smaller spacing between buttons */
  }

  .page-link {
    padding: 0.25rem 0.5rem; /* Reduce padding */
    font-size: 0.85rem; /* Smaller font size */
    border-radius: 0.2rem; /* Slightly smaller border radius */
  }

  .page-item.disabled .page-link {
    font-size: 0.85rem; /* Match font size */
  }

  /* Plans Grid - Smaller cards for mobile */
  .plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Smaller min width */
    gap: 1rem; /* Reduce gap between cards */
  }

  .plans-grid .plan-card {
    padding: 1rem; /* Reduce padding inside each card */
    font-size: 0.9rem; /* Reduce font size for content */
  }

  .plans-grid .plan-card h3 {
    font-size: 1rem; /* Smaller heading size */
  }

  .plans-grid .plan-card p {
    font-size: 0.85rem; /* Smaller paragraph size */
  }

  .plans-grid .plan-card button {
    padding: 0.4rem 0.8rem; /* Compact buttons inside cards */
    font-size: 0.85rem;
  }
}

@media (max-width: 576px) {
  /* Pagination - Extra small adjustments for very small devices */
  .page-link {
    padding: 0.2rem 0.4rem;
    font-size: 0.8rem;
  }

  /* Plans Grid - Extra compact cards */
  .plans-grid {
    grid-template-columns: 1fr; /* Single column for very small devices */
    gap: 0.75rem; /* Reduce gap further */
  }

  .plans-grid .plan-card {
    padding: 0.8rem; /* Less padding for cards */
    font-size: 0.8rem;
  }

  .plans-grid .plan-card h3 {
    font-size: 0.9rem;
  }

  .plans-grid .plan-card p {
    font-size: 0.75rem;
  }

  .plans-grid .plan-card button {
    padding: 0.3rem 0.6rem;
    font-size: 0.8rem;
  }
}
