/* ================================================================
   Alkhidmat Foundation – Toba Tek Singh
   District Chapter Website Stylesheet
   Modern, responsive, accessible.
   ================================================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: #003a87;
  --primary-dark: #002a63;
  --primary-light: #0056b3;
  --primary-50: #e8f0fc;
  --accent: #c41e3a;
  --accent-dark: #a01630;
  --whatsapp: #25d366;
  --whatsapp-dark: #128c7e;
  --gold: #d4a017;
  --green: #16a34a;
  --white: #ffffff;
  --off-white: #f8f9fb;
  --gray-50: #f5f6f8;
  --gray-100: #e9ecef;
  --gray-200: #dee2e6;
  --gray-300: #ced4da;
  --gray-500: #6c757d;
  --gray-700: #495057;
  --gray-900: #1a1a2e;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 6px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.12);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-900);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent); }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--gray-900);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.6rem); }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
  position: relative;
}

.section-sm { padding: 50px 0; }

.section-alt {
  background: var(--off-white);
}

.section-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
}

.section-primary h1, .section-primary h2, .section-primary h3 {
  color: var(--white);
}

/* Section heading */
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 50px;
}

.section-head .eyebrow {
  display: inline-block;
  background: var(--primary-50);
  color: var(--primary);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
}

.section-primary .section-head .eyebrow {
  background: rgba(255, 255, 255, 0.18);
  color: var(--white);
}

.section-head h2 { margin-bottom: 12px; }
.section-head p {
  color: var(--gray-700);
  font-size: 1.05rem;
}
.section-primary .section-head p { color: rgba(255, 255, 255, 0.9); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  white-space: nowrap;
  text-align: center;
  line-height: 1.2;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-accent {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.btn-accent:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-whatsapp {
  background: var(--whatsapp);
  color: var(--white);
  border-color: var(--whatsapp);
}
.btn-whatsapp:hover {
  background: var(--whatsapp-dark);
  border-color: var(--whatsapp-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.85);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-outline-primary {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline-primary:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-sm { padding: 9px 18px; font-size: 0.85rem; }

/* ---------- Top Bar ---------- */
.topbar {
  background: var(--primary-dark);
  color: var(--white);
  font-size: 0.85rem;
  padding: 8px 0;
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.topbar-info { display: flex; gap: 20px; flex-wrap: wrap; }
.topbar-info span { display: inline-flex; align-items: center; gap: 6px; }
.topbar-info i { color: var(--gold); }
.topbar-social { display: flex; gap: 14px; }
.topbar-social a { color: var(--white); opacity: 0.85; }
.topbar-social a:hover { opacity: 1; color: var(--gold); }

/* ---------- Header / Nav ---------- */
.header {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand img {
  height: 56px;
  width: auto;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  color: var(--primary);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.brand-text small {
  color: var(--gray-500);
  font-size: 0.78rem;
  font-weight: 500;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav a {
  color: var(--gray-900);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  position: relative;
}

.nav a:hover,
.nav a.active {
  color: var(--primary);
  background: var(--primary-50);
}

.nav-cta {
  background: var(--whatsapp);
  color: var(--white) !important;
  margin-left: 8px;
  padding: 10px 20px !important;
  border-radius: 50px !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav-cta:hover { background: var(--whatsapp-dark); color: var(--white) !important; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  background: var(--primary-50);
  border-radius: var(--radius-sm);
  color: var(--primary);
  font-size: 1.4rem;
  align-items: center;
  justify-content: center;
}

/* Mobile nav */
@media (max-width: 1024px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 16px 20px 24px;
    gap: 4px;
    box-shadow: var(--shadow-lg);
    transform: translateY(-150%);
    transition: transform 0.3s ease;
    max-height: calc(100vh - 76px);
    overflow-y: auto;
  }
  .nav.open { transform: translateY(0); }
  .nav a { padding: 12px 14px; border-bottom: 1px solid var(--gray-100); }
  .nav a:last-child { border-bottom: none; }
  .nav-cta { margin-left: 0; margin-top: 8px; justify-content: center; }
}

@media (max-width: 600px) {
  .brand img { height: 44px; }
  .brand-text strong { font-size: 0.95rem; }
  .brand-text small { font-size: 0.7rem; }
  .topbar { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-light) 100%);
  color: var(--white);
  overflow: hidden;
  padding: 60px 0;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.08) 0%, transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(196, 30, 58, 0.18) 0%, transparent 40%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'><path d='M0 0h60v60H0z' fill='none'/><path d='M30 5l25 14.4v29L30 62 5 48.4v-29z' stroke='%23ffffff' stroke-opacity='0.04' stroke-width='1' fill='none'/></svg>");
  background-size: 60px 60px;
  opacity: 0.55;
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.hero-content .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  padding: 7px 16px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-content h1 {
  color: var(--white);
  margin-bottom: 18px;
  font-weight: 800;
}

.hero-content h1 span {
  color: var(--gold);
}

.hero-content p.lead {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 30px;
  max-width: 580px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 520px;
}

.hero-stat {
  border-left: 3px solid var(--gold);
  padding-left: 14px;
}

.hero-stat strong {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}

.hero-stat span {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  padding: 30px;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.hero-card h3 {
  color: var(--white);
  font-size: 1.25rem;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-card h3 i { color: var(--gold); }

.hero-card-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.95rem;
}

.hero-card-item:last-child { border-bottom: none; }
.hero-card-item i { color: var(--gold); font-size: 1.1rem; flex-shrink: 0; }

@media (max-width: 900px) {
  .hero { min-height: auto; padding: 50px 0; }
  .hero .container { grid-template-columns: 1fr; gap: 30px; }
  .hero-visual { order: 2; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .hero-stat strong { font-size: 1.3rem; }
}

@media (max-width: 480px) {
  .hero-stats { grid-template-columns: 1fr 1fr; }
}

/* ---------- Page Hero (sub pages) ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
  padding: 70px 0 60px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 30%, rgba(196, 30, 58, 0.18), transparent 50%);
  pointer-events: none;
}

.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: var(--white); margin-bottom: 12px; }
.page-hero p { color: rgba(255, 255, 255, 0.9); font-size: 1.05rem; max-width: 720px; }
.breadcrumb {
  font-size: 0.9rem;
  margin-bottom: 14px;
  opacity: 0.85;
}
.breadcrumb a { color: var(--white); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { color: var(--gold); margin: 0 6px; }

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 30px 26px;
  transition: var(--transition);
  height: 100%;
  border: 1px solid var(--gray-100);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-50);
}

.card-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  background: var(--primary-50);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
  transition: var(--transition);
}

.card:hover .card-icon {
  background: var(--primary);
  color: var(--white);
  transform: scale(1.06);
}

.card h3 { margin-bottom: 10px; }
.card p { color: var(--gray-700); font-size: 0.95rem; }

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
}
.card-link:hover { gap: 10px; color: var(--accent); }

/* Grids */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ---------- About Split ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 30px; }
}

.split-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.split-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.split-image-fallback {
  color: var(--white);
  text-align: center;
  padding: 40px;
}

.split-image-fallback i { font-size: 4rem; margin-bottom: 16px; opacity: 0.85; }
.split-image-fallback h3 { color: var(--white); margin-bottom: 6px; }
.split-image-fallback p { color: rgba(255,255,255,0.85); }

.split-content .eyebrow {
  display: inline-block;
  background: var(--primary-50);
  color: var(--primary);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.split-content h2 { margin-bottom: 16px; }
.split-content p { color: var(--gray-700); margin-bottom: 14px; }

.feature-list { margin-top: 18px; }
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 0;
  color: var(--gray-700);
}
.feature-list li i {
  color: var(--primary);
  font-size: 1.05rem;
  margin-top: 3px;
  flex-shrink: 0;
}

/* ---------- Stats Strip ---------- */
.stats-strip {
  background: var(--primary);
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: var(--white);
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}

.stats-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(196, 30, 58, 0.15), transparent 70%);
  pointer-events: none;
}

.stat {
  text-align: center;
  position: relative;
  z-index: 1;
}
.stat i { font-size: 2.4rem; color: var(--gold); margin-bottom: 12px; }
.stat strong {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  margin-bottom: 6px;
}
.stat span { color: rgba(255, 255, 255, 0.85); font-size: 0.95rem; }

/* ---------- Programs Grid ---------- */
.program-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--gray-100);
  display: flex;
  flex-direction: column;
}

.program-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.program-card-img {
  height: 180px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 3.4rem;
  position: relative;
  overflow: hidden;
}

.program-card-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.15), transparent 50%);
}

.program-card-body {
  padding: 24px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.program-card-body h3 { margin-bottom: 8px; }
.program-card-body p { color: var(--gray-700); font-size: 0.92rem; flex: 1; }
.program-card-body ul { margin: 10px 0 14px; }
.program-card-body li {
  font-size: 0.88rem;
  color: var(--gray-700);
  padding: 4px 0 4px 18px;
  position: relative;
}
.program-card-body li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

/* ---------- Team ---------- */
.team-card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  text-align: center;
  padding: 30px 22px;
  transition: var(--transition);
  border: 1px solid var(--gray-100);
  height: 100%;
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.team-avatar {
  width: 90px;
  height: 90px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 700;
  border: 4px solid var(--white);
  box-shadow: var(--shadow-sm);
}

.team-card h4 {
  color: var(--gray-900);
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.team-card .role {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 4px;
}

.team-card .creds {
  color: var(--gray-500);
  font-size: 0.82rem;
  line-height: 1.4;
}

/* ---------- Test list page ---------- */
.tests-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 30px;
  align-items: start;
}

@media (max-width: 1024px) {
  .tests-layout { grid-template-columns: 1fr; }
}

.tests-toolbar {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.search-box {
  position: relative;
  flex: 1;
  min-width: 220px;
}

.search-box input {
  width: 100%;
  padding: 12px 16px 12px 42px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  transition: var(--transition);
  background: var(--gray-50);
}

.search-box input:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 3px var(--primary-50);
}

.search-box i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-500);
}

.filter-pill {
  padding: 10px 16px;
  border: 1px solid var(--gray-200);
  border-radius: 50px;
  background: var(--white);
  color: var(--gray-700);
  font-weight: 600;
  font-size: 0.88rem;
  transition: var(--transition);
  cursor: pointer;
}
.filter-pill:hover { border-color: var(--primary); color: var(--primary); }
.filter-pill.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.tests-table-wrap {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  overflow: hidden;
}

.tests-table {
  width: 100%;
  border-collapse: collapse;
}

.tests-table thead {
  background: var(--primary);
  color: var(--white);
}

.tests-table th {
  text-align: left;
  padding: 14px 18px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tests-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.93rem;
  color: var(--gray-700);
}

.tests-table tbody tr { transition: var(--transition); }
.tests-table tbody tr:hover { background: var(--primary-50); }
.tests-table tbody tr.selected { background: rgba(196, 30, 58, 0.06); }

.tests-table .test-name { font-weight: 600; color: var(--gray-900); }
.tests-table .test-dept {
  display: inline-block;
  background: var(--gray-100);
  color: var(--gray-700);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
}
.tests-table .test-price {
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}

.checkbox-cell {
  width: 40px;
  text-align: center;
}

.custom-check {
  width: 22px;
  height: 22px;
  border: 2px solid var(--gray-300);
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  background: var(--white);
}
.custom-check.checked {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}
.custom-check.checked::before { content: "✓"; font-weight: 800; font-size: 0.85rem; }

.tests-pagination {
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  background: var(--gray-50);
  border-top: 1px solid var(--gray-100);
}

.page-btn {
  padding: 8px 14px;
  border-radius: 6px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  color: var(--gray-700);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
}
.page-btn:hover:not(:disabled) {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.page-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* Selected tests sidebar */
.cart-panel {
  position: sticky;
  top: 100px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-100);
  overflow: hidden;
}

.cart-panel-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  padding: 18px 20px;
}

.cart-panel-header h3 {
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.1rem;
}

.cart-panel-header .count {
  background: var(--gold);
  color: var(--primary-dark);
  padding: 2px 10px;
  border-radius: 30px;
  font-size: 0.78rem;
  font-weight: 700;
}

.cart-list {
  max-height: 360px;
  overflow-y: auto;
  padding: 12px 0;
}

.cart-list::-webkit-scrollbar { width: 6px; }
.cart-list::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 3px; }

.cart-item {
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.88rem;
}

.cart-item:last-child { border-bottom: none; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name {
  display: block;
  font-weight: 600;
  color: var(--gray-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cart-item-price { color: var(--primary); font-weight: 700; font-size: 0.82rem; }
.cart-item-remove {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--gray-100);
  color: var(--gray-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}
.cart-item-remove:hover { background: var(--accent); color: var(--white); }

.cart-empty {
  padding: 30px 20px;
  text-align: center;
  color: var(--gray-500);
}
.cart-empty i { font-size: 2rem; color: var(--gray-300); margin-bottom: 8px; }

.cart-panel-footer {
  padding: 18px 20px;
  background: var(--gray-50);
  border-top: 1px solid var(--gray-100);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--gray-200);
}

.cart-total .label { color: var(--gray-700); font-weight: 600; }
.cart-total .amount {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
}

.cart-actions { display: flex; flex-direction: column; gap: 8px; }
.cart-actions .btn { justify-content: center; }

/* ---------- Test package cards ---------- */
.package-card {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition);
}
.package-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.package-card-head {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  padding: 20px;
}
.package-card-head h3 { color: var(--white); font-size: 1.1rem; margin-bottom: 6px; }
.package-card-head .price {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--gold);
}
.package-card-head .price small {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  text-decoration: line-through;
  margin-left: 6px;
}
.package-card-body { padding: 20px; }
.package-card-body ul { margin: 0; }
.package-card-body li {
  padding: 6px 0 6px 22px;
  position: relative;
  font-size: 0.9rem;
  color: var(--gray-700);
  border-bottom: 1px solid var(--gray-100);
}
.package-card-body li:last-child { border-bottom: none; }
.package-card-body li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}
.package-card-body li span {
  float: right;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.85rem;
}

/* ---------- Forms ---------- */
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--gray-900);
  font-size: 0.92rem;
}
.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--white);
  transition: var(--transition);
}
.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-50);
}
textarea.form-control { min-height: 130px; resize: vertical; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

/* ---------- Contact info ---------- */
.contact-info-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 14px;
  transition: var(--transition);
}
.contact-info-card:hover { box-shadow: var(--shadow-md); }
.contact-info-card .icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  background: var(--primary-50);
  color: var(--primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
.contact-info-card h4 { font-size: 0.95rem; margin-bottom: 4px; }
.contact-info-card p, .contact-info-card a { color: var(--gray-700); font-size: 0.9rem; }
.contact-info-card a:hover { color: var(--primary); }

/* ---------- CTA Section ---------- */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
  padding: 70px 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 50%, rgba(196, 30, 58, 0.2), transparent 50%);
}

.cta-content {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.cta-content h2 { color: var(--white); margin-bottom: 6px; }
.cta-content p { color: rgba(255, 255, 255, 0.9); margin: 0; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

@media (max-width: 700px) {
  .cta-content { flex-direction: column; align-items: flex-start; }
}

/* ---------- Test sample report ---------- */
.report-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-100);
}

.report-card img {
  width: 100%;
  height: auto;
  display: block;
}

.report-card-foot {
  padding: 16px 20px;
  background: var(--gray-50);
  border-top: 1px solid var(--gray-100);
  text-align: center;
  font-size: 0.88rem;
  color: var(--gray-700);
}

/* ---------- xMed highlight ---------- */
.xmed-feature {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 50px 40px;
  position: relative;
  overflow: hidden;
  margin: 40px 0;
}

.xmed-feature::before {
  content: "";
  position: absolute;
  top: -50px; right: -50px;
  width: 250px; height: 250px;
  background: radial-gradient(circle, rgba(196, 30, 58, 0.3), transparent 60%);
  border-radius: 50%;
}

.xmed-feature::after {
  content: "";
  position: absolute;
  bottom: -80px; left: -80px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(212, 160, 23, 0.15), transparent 60%);
  border-radius: 50%;
}

.xmed-feature h2 { color: var(--white); position: relative; }
.xmed-feature p { color: rgba(255, 255, 255, 0.92); position: relative; }
.xmed-feature .xmed-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  color: var(--primary);
  padding: 8px 20px;
  border-radius: 30px;
  font-weight: 800;
  font-size: 1.2rem;
  margin-bottom: 14px;
  position: relative;
}

.xmed-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 30px;
  position: relative;
}

.xmed-feature-item {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  backdrop-filter: blur(6px);
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.xmed-feature-item i { color: var(--gold); font-size: 1.3rem; margin-top: 2px; }
.xmed-feature-item strong { display: block; color: var(--white); margin-bottom: 2px; }
.xmed-feature-item span { color: rgba(255, 255, 255, 0.85); font-size: 0.88rem; }

@media (max-width: 600px) { .xmed-features-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer {
  background: var(--gray-900);
  color: rgba(255, 255, 255, 0.85);
  padding: 60px 0 0;
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 40px;
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer h4 {
  color: var(--white);
  font-size: 1.05rem;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 10px;
}

.footer h4::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0;
  width: 30px; height: 2px;
  background: var(--accent);
}

.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand img { height: 50px; background: white; padding: 4px; border-radius: 6px; }
.footer-brand strong { color: var(--white); font-size: 1.05rem; }

.footer p { color: rgba(255, 255, 255, 0.7); margin-bottom: 14px; line-height: 1.6; }

.footer ul li { margin-bottom: 8px; }
.footer ul li a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.footer ul li a:hover { color: var(--gold); }
.footer ul li a::before {
  content: "›";
  color: var(--accent);
  font-weight: 700;
}

.footer-contact li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}
.footer-contact li i { color: var(--gold); margin-top: 3px; flex-shrink: 0; }

.footer-bottom {
  background: rgba(0, 0, 0, 0.3);
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-bottom a { color: var(--gold); }

/* ---------- Floating WhatsApp Button ---------- */
.float-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: var(--transition);
  animation: pulse 2.4s infinite;
}

.float-whatsapp:hover {
  background: var(--whatsapp-dark);
  color: var(--white);
  transform: scale(1.1);
}

@keyframes pulse {
  0% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0.4); }
  70% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4), 0 0 0 18px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0); }
}

@media (max-width: 600px) {
  .float-whatsapp {
    width: 54px; height: 54px;
    font-size: 1.6rem;
    bottom: 18px; right: 18px;
  }
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Tag / Pill ---------- */
.pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 30px;
  font-size: 0.78rem;
  font-weight: 600;
}
.pill-primary { background: var(--primary-50); color: var(--primary); }
.pill-accent { background: rgba(196, 30, 58, 0.1); color: var(--accent); }
.pill-success { background: rgba(22, 163, 74, 0.1); color: var(--green); }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.gap-2 { gap: 20px; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.font-bold { font-weight: 700; }
.text-muted { color: var(--gray-500); }
.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }

/* ---------- Print friendly ---------- */
@media print {
  .header, .footer, .float-whatsapp, .nav-toggle { display: none; }
}
