/* ============ GLOBAL ============ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: #f4f6fb;
  color: #111827;
  line-height: 1.6;
}

/* Header ke niche thoda space */
.ecs-centres-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 1.5rem 4rem;
}

/* ============ PAGE HEADER ============ */
.page-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.page-header h1 {
  font-size: clamp(1.9rem, 3vw, 2.4rem);
  font-weight: 700;
  color: #0b1f4b;
  margin-bottom: 0.75rem;
}

.page-header p {
  font-size: 0.98rem;
  max-width: 640px;
  margin: 0 auto;
  color: #4b5563;
}

/* ============ SEARCH BOX ============ */
.search-box {
  margin: 0 auto 0.75rem;
  max-width: 720px;
  display: flex;
  gap: 0.75rem;
  align-items: stretch;
  background: #ffffff;
  padding: 0.75rem;
  border-radius: 9999px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.search-box input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 0.95rem;
  padding: 0.65rem 1rem;
  border-radius: 9999px;
  background: #f3f4ff;
  color: #111827;
}

.search-box input::placeholder {
  color: #9ca3af;
}

.search-box button {
  border: none;
  cursor: pointer;
  padding: 0.65rem 1.3rem;
  border-radius: 9999px;
  font-size: 0.95rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
  color: #ffffff;
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.search-box button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.45);
}

.search-box button:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

/* Small helper text */
.search-hint {
  text-align: center;
  font-size: 0.85rem;
  color: #6b7280;
  margin-bottom: 1.5rem;
}

/* No results */
.no-results {
  text-align: center;
  font-size: 0.9rem;
  color: #b91c1c;
  margin-bottom: 1.5rem;
}

/* ============ CENTRES LIST ============ */
.centres-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.centre {
  background: #ffffff;
  border-radius: 1rem;
  padding: 1.1rem 1.1rem 1rem;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.05);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.centre:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.12);
  border-color: rgba(37, 99, 235, 0.4);
}

.centre h2 {
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.1rem;
}

.centre p {
  font-size: 0.9rem;
  color: #4b5563;
}

.centre .postcode {
  font-weight: 600;
  color: #1d4ed8;
}

/* Book button */
.book-btn {
  margin-top: 0.5rem;
  align-self: flex-start;
  border: none;
  cursor: pointer;
  padding: 0.45rem 0.95rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid rgba(37, 99, 235, 0.35);
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.book-btn::after {
  content: "›";
  font-size: 0.85rem;
}

.book-btn:hover {
  background: #1d4ed8;
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.4);
  transform: translateY(-1px);
}

/* Note below list */
.centres-note {
  font-size: 0.85rem;
  color: #6b7280;
  background: #eef2ff;
  border-radius: 0.75rem;
  padding: 0.85rem 1rem;
  border-left: 3px solid #4f46e5;
}

/* ============ INFO SECTION ============ */
.ecs-info {
  margin-top: 2.5rem;
  background: #ffffff;
  border-radius: 1rem;
  padding: 1.8rem 1.6rem 1.9rem;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.ecs-info h2 {
  font-size: 1.2rem;
  color: #111827;
  margin-bottom: 0.6rem;
}

.ecs-info p {
  font-size: 0.95rem;
  color: #4b5563;
  margin-bottom: 0.75rem;
}

.ecs-info ul,
.ecs-info ol {
  margin-left: 1.25rem;
  margin-bottom: 0.85rem;
  font-size: 0.94rem;
  color: #4b5563;
}

.ecs-info li {
  margin-bottom: 0.35rem;
}

/* ============ UTILITY ============ */
.visually-hidden {
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .centres-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ecs-centres-page {
    padding: 5rem 1.25rem 3rem;
  }
}

@media (max-width: 768px) {
  .search-box {
    flex-direction: column;
    border-radius: 1.25rem;
  }

  .search-box button {
    width: 100%;
    justify-content: center;
  }

  .centres-list {
    grid-template-columns: 1fr;
  }

  .centre {
    padding: 1rem 1rem 0.9rem;
  }

  .ecs-info {
    padding: 1.4rem 1.1rem 1.5rem;
  }
}
