/* ===============================
   GLOBAL RESET
================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", system-ui, sans-serif;
  background: linear-gradient(135deg, #0f4c81, #1e88e5);
  min-height: 100vh;
}

/* ===============================
   PAGE WRAPPER
================================ */
.scheme-page {
  padding: 60px 20px;
  display: flex;
  justify-content: center;
}

.scheme-detail {
  background: #ffffff;
  width: 100%;
  max-width: 1200px;
  padding: 50px;
  border-radius: 24px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.3);
}

/* ===============================
   HEADING
================================ */
.scheme-page-title {
  text-align: center;
  font-size: 40px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 35px;
  position: relative;
}

.scheme-page-title::after {
  content: "";
  width: 120px;
  height: 4px;
  background: linear-gradient(to right, #1e88e5, #42a5f5);
  display: block;
  margin: 14px auto 0;
  border-radius: 10px;
}

/* ===============================
   SEARCH BAR
================================ */
.scheme-filter {
  display: flex;
  justify-content: center;
  margin-bottom: 50px;
}

.scheme-filter input {
  width: 360px;
  padding: 14px 18px;
  font-size: 15px;
  border-radius: 40px;
  border: 1px solid #cbd5e1;
  outline: none;
  transition: 0.3s;
}

.scheme-filter input:focus {
  border-color: #1e88e5;
  box-shadow: 0 0 0 4px rgba(30, 136, 229, 0.2);
}

/* ===============================
   GRID
================================ */
.scheme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

/* ===============================
   SCHEME CARD
================================ */
.scheme-card {
  background: #ffffff;
  padding: 28px;
  border-radius: 18px;
  text-decoration: none;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.15);
  border-left: 6px solid #1e88e5;
  transition: all 0.35s ease;
}

.scheme-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 26px 55px rgba(0, 0, 0, 0.25);
}

/* Title */
.scheme-card h3 {
  font-size: 22px;
  color: #0d47a1;
  margin-bottom: 6px;
}

/* State name */
.scheme-card strong {
  font-size: 15px;
  color: #111827;
}

/* Description */
.scheme-card p {
  margin-top: 6px;
  font-size: 15px;
  line-height: 1.6;
  color: #374151;
}

/* View Details */
.scheme-card .view-more {
  display: inline-block;
  margin-top: 14px;
  font-weight: 700;
  color: #1e88e5;
  font-size: 14px;
}

/* ===============================
   BACK TO HOME (CENTER)
================================ */
.action-buttons {
  display: flex;
  justify-content: center;
  margin-top: 55px;
}

.back-home {
  padding: 15px 38px;
  border-radius: 40px;
  background: linear-gradient(to right, #1e88e5, #42a5f5);
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  font-size: 16px;
  box-shadow: 0 12px 30px rgba(30, 136, 229, 0.45);
  transition: all 0.3s ease;
}

.back-home:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(30, 136, 229, 0.6);
}

/* ===============================
   MOBILE
================================ */
@media (max-width: 600px) {
  .scheme-detail {
    padding: 30px 22px;
  }

  .scheme-page-title {
    font-size: 28px;
  }

  .scheme-filter input {
    width: 100%;
  }
}

/* ===== SEARCH BAR UPGRADE ===== */
.scheme-filter {
  display: flex;
  justify-content: center;
  margin: 40px 0 60px;
}

.scheme-filter input {
  width: 420px;
  max-width: 100%;
  padding: 16px 20px;
  font-size: 16px;
  border-radius: 50px;
  border: 2px solid transparent;
  background: #f1f5f9;
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);
  outline: none;
  transition: all 0.3s ease;
}

.scheme-filter input::placeholder {
  color: #64748b;
}

.scheme-filter input:focus {
  background: #c40000;
  border-color: #1e88e5;
  box-shadow: 0 0 0 5px rgba(30,136,229,0.25);
}

/* ===== BACK TO HOME BUTTON ===== */
.action-buttons {
  display: flex;
  justify-content: center;
  margin-top: 70px;
}
.back-home {
  padding: 16px 45px;
  border-radius: 50px;
  background: linear-gradient(135deg, #0f4c81, #1e88e5);
  color: #ffffff;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.4px;
  box-shadow: 0 18px 40px rgba(30,136,229,0.5);
  transition: all 0.35s ease;
}
.back-home:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 25px 55px rgba(30,136,229,0.65);
  background: linear-gradient(135deg, #1e88e5, #42a5f5);
}

/* ===== ACTION BUTTONS ===== */
.action-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 40px 0;
  flex-wrap: wrap;
}

/* COMMON BUTTON STYLE */
.btn-back,
.btn-home {
  padding: 12px 28px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 30px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
}

/* BACK BUTTON */
.btn-back {
  background: #ffffff;
  color: #0d47a1;
  border: 2px solid #0d47a1;
}

.btn-back:hover {
  background: #0d47a1;
  color: #ffffff;
  transform: translateY(-2px);
}

/* HOME BUTTON */
.btn-home {
  background: linear-gradient(135deg, #1976d2, #0d47a1);
  color: #ffffff;
  border: none;
}

.btn-home:hover {
  background: linear-gradient(135deg, #0d47a1, #1565c0);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(13, 71, 161, 0.4);
}

/* ===== TOP ACTION BUTTONS ===== */
.top-actions {
  margin: 15px auto 30px;
  justify-content: center;
}

/* COMMON BUTTON */
.btn-back,
.btn-home {
  padding: 10px 22px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s ease;
}

/* LIGHT HOME BUTTON */
.btn-home {
  background: #e8f2ff;
  color: #0d47a1;
  border: 1px solid #cfe0ff;
}

.btn-home:hover {
  background: #d6e8ff;
  transform: translateY(-1px);
}

.scheme-filter-bar {
  display: flex;
  gap: 12px;
  margin: 20px 0;
}

.scheme-filter-bar select,
.scheme-filter-bar input {
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 15px;
}

.scheme-filter-bar select {
  min-width: 180px;
  cursor: pointer;
}

