/* =========================================================
   SSWB â€” SPINE SOCIETY OF WEST BENGAL
   UNIFIED STYLESHEET
   Structure:
   1. CSS Variables
   2. Reset & Base
   3. Layout helpers (container, grid, flex)
   4. Global Layout (Header / Nav / Footer)
   5. Components (buttons, cards, forms, breadcrumb hero,
      timeline, carousels, tables, accordion, steps, stats)
   6. Page-specific overrides (scoped to <body> classes)
   7. Responsive media queries
   ========================================================= */

/* ================= 1. CSS VARIABLES ================= */
:root {
  --primary: #1b5fa8;
  --primary-dark: #123f73;
  --primary-light: #eaf2fb;
  --accent: #16a394;
  --text-dark: #1e2a38;
  --text-muted: #5b6b7b;
  --bg-soft: #f6f9fc;
  --white: #ffffff;

  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;

  --shadow-soft: 0 10px 30px rgba(20, 60, 110, 0.08);
  --shadow-hover: 0 16px 40px rgba(20, 60, 110, 0.16);
  --transition: all 0.3s ease;

  --blue: #1589de;
  --ink: #09538c;
  --pale: #eef8ff;
  --line: #dfe5eb;
  --muted: #8ca0b5;
  --field: #f0f8ff;

  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;

  --container-width: 1200px;
  --header-height: 78px;
}

/* ================= 2. RESET & BASE ================= */
* {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
  font-size: 16px;
}

img { max-width: 100%; display: block; }

a { text-decoration: none; color: inherit; }

ul { list-style: none; margin: 0; padding: 0; }

button { font-family: inherit; cursor: pointer; }

input, textarea, select { font-family: inherit; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text-dark);
  margin: 0 0 0.5em;
}

p { margin: 0 0 1em; }

/* ================= 3. LAYOUT HELPERS ================= */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-sm { gap: 12px; }
.gap-md { gap: 24px; }
.gap-lg { gap: 40px; }

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

.text-center { text-align: center; }

.section-padding { padding: 90px 0; }
.section-padding-sm { padding: 60px 0; }

.bg-soft { background: var(--bg-soft); }
.bg-white { background: var(--white); }

/* ============ Section headers ============ */
.section-tag {
  display: inline-block;
  color: var(--primary);
  background: var(--primary-light);
  padding: 6px 16px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin-bottom: 14px;
}

.section-subtitle {
  color: var(--text-muted);
  max-width: 620px;
  font-size: 1.02rem;
}

.section-head-center { max-width: 640px; margin: 0 auto 50px; }

/* ================= 4. GLOBAL LAYOUT ================= */

/* ---------- Header / Navbar ---------- */
#mainNavbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  padding: 16px 0;
  transition: var(--transition);
  border-bottom: 1px solid transparent;
}

#mainNavbar.scrolled {
  padding: 10px 0;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 4px 20px rgba(20, 60, 110, 0.08);
  border-bottom: 1px solid #eef2f6;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.brand-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-size: 1.2rem;
  font-family: var(--font-heading);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  font-size: 1.3rem;
  color: var(--primary);
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.5px;
}

.brand-sub {
  font-size: 0.6rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

/* Nav menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav-item { position: relative; }

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  font-size: 0.96rem;
  color: var(--text-dark);
  margin: 0 6px;
  position: relative;
  padding: 10px 4px;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 4px;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

.nav-link:hover, .nav-link.active { color: var(--primary); }

.caret {
  font-size: 0.6rem;
  transition: transform 0.25s ease;
}

.nav-item.has-dropdown:hover .caret { transform: rotate(180deg); }

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 210px;
  background: #fff;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-hover);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: var(--transition);
  z-index: 20;
}

.nav-item.has-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 9px 14px;
  border-radius: 6px;
  font-size: 0.92rem;
  color: var(--text-dark);
  transition: var(--transition);
}

.dropdown-menu a:hover {
  background: var(--primary-light);
  color: var(--primary);
}

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

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: none;
  background: var(--primary-light);
  border-radius: 8px;
  align-items: center;
}

.burger span {
  width: 20px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: var(--transition);
}

.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Footer ---------- */
.footer {
  background: #10233d;
  color: #b9c6d6;
  padding: 70px 0 20px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1.3fr;
  gap: 30px;
  margin-bottom: 40px;
}

.footer-brand .navbar-brand { margin-bottom: 16px; }
.footer-brand .brand-text { color: #fff; }
.footer-address { color: #92a2b5; font-size: 0.92rem; max-width: 260px; }

.footer-heading {
  color: #fff;
  font-weight: 700;
  margin-bottom: 18px;
  font-size: 0.95rem;
}

.footer-links li { margin-bottom: 12px; }
.footer-links a { color: #b9c6d6; font-size: 0.92rem; transition: var(--transition); }
.footer-links a:hover { color: var(--accent); padding-left: 4px; }

.newsletter-heading { color: #fff; margin-bottom: 10px; }
.newsletter-text { color: #92a2b5; font-size: 0.92rem; margin-bottom: 18px; }

.newsletter-form { display: flex; gap: 10px; }
.newsletter-form input {
  flex: 1;
  padding: 13px 16px;
  border-radius: 40px;
  border: none;
  background: #fff;
  font-size: 0.92rem;
}

.footer-divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin: 40px 0 20px;
}

.footer-bottom {
  text-align: center;
  font-size: 0.85rem;
  color: #7e8ea1;
}
.footer-bottom a { color: var(--accent); }

/* ================= 5. COMPONENTS ================= */

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(90deg, var(--primary), var(--accent));
  color: #fff;
  box-shadow: 0 8px 20px rgba(27, 95, 168, 0.25);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(27, 95, 168, 0.35);
}

.btn-outline {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
  padding: 10px 24px;
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-3px);
}

.btn-light {
  background: #fff;
  color: var(--primary-dark);
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

.btn-light:hover { transform: translateY(-3px); box-shadow: 0 8px 18px rgba(0,0,0,0.12); }

.btn-sm { padding: 9px 18px; font-size: 0.85rem; }
.btn-block { width: 100%; justify-content: center; }
.btn-icon-circle {
  width: 40px; height: 40px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid var(--line); color: var(--primary);
  transition: var(--transition);
}
.btn-icon-circle:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ---------- Breadcrumb hero (used on inner pages) ---------- */
.page-hero {
  position: relative;
  padding: calc(var(--header-height) + 80px) 20px 70px;
  background: linear-gradient(115deg, #edf9ff 0%, #d5efff 100%);
  text-align: center;
}

.crumb {
  display: inline-flex;
  gap: 9px;
  padding: 10px 17px;
  background: #c4e8ff;
  border-radius: 9px;
  color: #54a9e5;
  font-size: 14px;
  margin-bottom: 24px;
}

.crumb a { color: #54a9e5; }
.crumb span.current { color: #1180d3; font-weight: 600; }

.page-hero h1 {
  margin: 0 0 20px;
  color: #07538e;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -1px;
}

.page-hero .lead {
  color: #0b619f;
  font-size: 1.25rem;
  max-width: 620px;
  margin: 0 auto;
}

/* ---------- Home hero (image / carousel) ---------- */
.home-hero {
  position: relative;
  padding: calc(var(--header-height) + 70px) 0 0;
  background: linear-gradient(180deg, var(--bg-soft) 0%, #ffffff 100%);
  overflow: hidden;
}

.home-hero-slide {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 40px;
  min-height: 480px;
}

.home-hero-text .badge-pill {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  padding: 6px 16px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 18px;
}

.home-hero-text h1 {
  font-size: clamp(2rem, 4vw, 2.9rem);
  line-height: 1.2;
  color: var(--primary-dark);
  margin-bottom: 18px;
}

.home-hero-text p {
  color: var(--text-muted);
  font-size: 1.08rem;
  max-width: 480px;
  margin-bottom: 26px;
}

.home-hero-image-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-hover);
  aspect-ratio: 4/3;
}

.home-hero-image-wrap img {
  width: 100%; height: 100%; object-fit: cover;
}

.hero-slider-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: absolute;
  top: 50%;
  left: 0; right: 0;
  transform: translateY(-50%);
  padding: 0 10px;
  pointer-events: none;
}

.hero-slider-nav button {
  pointer-events: all;
}

.hero-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  padding: 24px 0 40px;
}

.hero-dots button {
  width: 9px; height: 9px; border-radius: 50%;
  border: none; background: #c9d9ea; padding: 0;
}
.hero-dots button.active { background: var(--primary); width: 22px; border-radius: 6px; }

/* ---------- Feature / info cards ---------- */
.feature-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 30px 26px;
  height: 100%;
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
  border: 1px solid #eef2f6;
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

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

.feature-icon {
  flex-shrink: 0;
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--primary);
  background: var(--primary-light);
}

.feature-card h5 { margin-bottom: 6px; font-size: 1.05rem; }
.feature-card p { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 0; }

.checklist { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 20px 0; }
.checklist li { display: flex; align-items: center; gap: 8px; font-size: 0.92rem; color: var(--text-dark); }
.checklist li::before {
  content: "âœ“";
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem;
}

/* ---------- Timeline (Journey) ---------- */
.timeline {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-top: 60px;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 6px; left: 0; right: 0;
  height: 2px;
  background: var(--primary);
  opacity: 0.3;
}

.timeline-item { position: relative; text-align: left; flex: 1; padding-right: 20px; }
.timeline-item::before {
  content: "";
  position: absolute;
  top: -1px; left: 0;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--primary);
}
.timeline-year {
  margin-top: 26px;
  font-size: 1.4rem;
  color: var(--primary-dark);
  font-weight: 700;
}
.timeline-label { color: var(--text-muted); font-size: 0.88rem; }

/* ---------- Office bearers carousel ---------- */
.bearers-wrap { position: relative; }
.bearers-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding-bottom: 6px;
}
.bearers-track::-webkit-scrollbar { display: none; }

.bearer-intro-card {
  flex: 0 0 240px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 26px 22px;
}
.bearer-intro-card .section-tag { margin-bottom: 8px; }
.bearer-intro-card h3 { font-size: 1.4rem; margin-bottom: 10px; }
.bearer-intro-card p { color: var(--text-muted); font-size: 0.88rem; }

.bearer-card { flex: 0 0 230px; text-align: left; }
.bearer-photo {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 14px;
}
.bearer-photo img { width: 100%; height: 100%; object-fit: cover; }
.bearer-role { color: var(--primary); font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.4px; }
.bearer-name { font-size: 1.05rem; margin: 4px 0 4px; }
.bearer-degree { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 4px; }
.bearer-affiliation { font-size: 0.82rem; color: var(--text-muted); }
.bearer-affiliation strong { color: var(--text-dark); }

.carousel-controls { display: flex; gap: 10px; justify-content: flex-end; margin-bottom: 20px; }

/* ---------- About stats ---------- */
.about-stats { display: flex; gap: 50px; margin: 26px 0; }
.about-stats .stat h3 { color: var(--primary); font-size: 2.1rem; margin-bottom: 2px; }
.about-stats .stat p { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 0; }

/* ---------- Reviews / testimonials ---------- */
.review-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px 22px;
  height: 100%;
}
.stars { color: #f5b301; letter-spacing: 2px; margin-bottom: 12px; font-size: 0.9rem; }
.review-text { font-size: 0.92rem; color: var(--text-dark); margin-bottom: 18px; }
.reviewer { display: flex; align-items: center; gap: 10px; }
.reviewer img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.reviewer span { font-weight: 600; font-size: 0.9rem; }

/* ---------- Steps ---------- */
.steps-grid { grid-template-columns: repeat(4, 1fr); margin: 0 0 1em; }
.step-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 30px 22px;
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
  border-top: 4px solid var(--primary);
}
.step-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.step-icon-box {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 16px;
}
.step-card h5 { margin-bottom: 8px; font-size: 1.02rem; }
.step-card p { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 0; }

/* ---------- Contact CTA / form ---------- */
.contact-cta-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.contact-info-item { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; }
.contact-info-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  background: var(--pale); color: var(--primary);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.05rem;
}

.contact-form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 34px 30px;
  box-shadow: 0 2px 2px rgba(20,47,72,.04);
}

.form-group { margin-bottom: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-label { display: block; color: var(--ink); font-size: 0.92rem; margin-bottom: 6px; font-weight: 500; }

.form-control, .form-select, .contact-form-card textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: var(--field);
  color: var(--ink);
  font-size: 0.95rem;
  padding: 11px 14px;
}

.form-control::placeholder, textarea::placeholder { color: #7eb8e7; opacity: 1; }

.form-control:focus, .form-select:focus, textarea:focus {
  outline: none;
  background: #fff;
  border: 1px solid #8dccf6;
  box-shadow: 0 0 0 4px rgba(13,136,224,.13);
}

textarea.form-control { min-height: 110px; resize: vertical; }

.form-control:invalid.touched, .form-control.error {
  border-color: #e0554f;
  box-shadow: 0 0 0 3px rgba(224,85,79,0.12);
}
.field-error {
  display: none;
  color: #e0554f;
  font-size: 0.78rem;
  margin-top: 5px;
}
.form-group.has-error .field-error { display: block; }

.form-success {
  display: none;
  background: #e8f8f1;
  color: #1a8f5c;
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 0.9rem;
  margin-bottom: 18px;
}
.form-success.show { display: block; }

/* ---------- FAQ / accordion ---------- */
.accordion-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 14px;
  box-shadow: var(--shadow-soft);
}

.accordion-button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--text-dark);
  background: #fff;
  border: none;
  padding: 18px 22px;
  text-align: left;
}

.accordion-button .plus { transition: transform 0.25s ease; color: var(--primary); font-size: 1.1rem; }
.accordion-item.open .accordion-button .plus { transform: rotate(45deg); }

.accordion-item.open .accordion-button {
  color: var(--primary);
  background: var(--primary-light);
}

.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: #fff;
}

.accordion-panel-inner { padding: 0 22px 20px; color: var(--text-muted); font-size: 0.92rem; }

/* ---------- Directory table ---------- */
.directory-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-md); }
.directory-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.directory-table th {
  text-align: left;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--text-muted);
  padding: 16px 20px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}
.directory-table td {
  padding: 14px 20px;
  font-size: 0.92rem;
  border-bottom: 1px solid #eef2f6;
}
.directory-table tr:last-child td { border-bottom: none; }
.directory-table td.member-name { color: var(--primary); font-weight: 600; }

.pagination { display: flex; align-items: center; gap: 6px; margin-top: 24px; flex-wrap: wrap; }
.pagination button {
  min-width: 34px; height: 34px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.pagination button.active { background: var(--primary-dark); color: #fff; border-color: var(--primary-dark); }
.pagination button:hover:not(.active) { background: var(--primary-light); color: var(--primary); }
.pagination .info { color: var(--text-muted); font-size: 0.85rem; margin-right: auto; }

/* ---------- Media / news list ---------- */
.news-feature-img { border-radius: var(--radius-md); overflow: hidden; margin-bottom: 22px; aspect-ratio: 16/10; }
.news-feature-img img { width: 100%; height: 100%; object-fit: cover; }
.news-meta { display: flex; gap: 24px; font-size: 0.85rem; color: var(--text-muted); margin-top: 16px; }
.news-meta strong { color: var(--text-dark); }

.news-side-item { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid #eef2f6; }
.news-side-item:last-child { border-bottom: none; }
.news-side-thumb { width: 64px; height: 64px; border-radius: 10px; overflow: hidden; flex-shrink: 0; }
.news-side-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-side-item h6 { font-size: 0.92rem; margin-bottom: 4px; }
.news-side-item small { color: var(--text-muted); font-size: 0.78rem; }

/* ---------- Membership cards ---------- */
.membership-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  height: 100%;
}
.membership-card .feature-icon { margin-bottom: 16px; }
.membership-card h5 { margin-bottom: 10px; }
.membership-card p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 0; }

.banner-callout {
  background: linear-gradient(115deg, #edf9ff 0%, #d5efff 100%);
  border-radius: var(--radius-lg);
  padding: 50px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  align-items: center;
  gap: 30px;
}
.banner-callout img { max-width: 100%; }
.banner-callout .actions { display: flex; align-items: center; gap: 18px; margin-top: 22px; flex-wrap: wrap; }

/* ---------- Login page ---------- */
.login-page { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
.login-visual { position: relative; min-height: 260px; }
.login-visual img { width: 100%; height: 100%; object-fit: cover; }
.login-panel { display: flex; align-items: center; justify-content: center; padding: 40px; }
.login-form-wrap { width: 100%; max-width: 420px; }
.login-form-wrap .navbar-brand { margin-bottom: 40px; }
.login-form-wrap h1 { font-size: 1.9rem; margin-bottom: 6px; }
.login-form-wrap .subtitle { color: var(--text-muted); margin-bottom: 28px; }
.login-field { position: relative; margin-bottom: 18px; }
.login-field .icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.login-field input {
  width: 100%;
  padding: 14px 16px 14px 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--bg-soft);
  font-size: 0.95rem;
}
.login-field input:focus { outline: none; border-color: var(--primary); background: #fff; }
.login-field .toggle-pw { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--muted); }
.forgot-link { display: inline-block; color: var(--primary); font-size: 0.9rem; margin-bottom: 22px; font-weight: 500; }

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-size: 1.1rem;
  box-shadow: var(--shadow-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 999;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-4px); }

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

/* ================= 6. PAGE-SPECIFIC OVERRIDES ================= */

/* ---- Home page ---- */
body.page-home .about-stats { justify-content: flex-start; }

/* ---- About page ---- */
body.page-about .page-hero { padding-bottom: 90px; }

/* ---- Membership page ---- */
body.page-membership .directory-wrap { margin-top: 10px; }

/* ---- Knowledge hub / fellowship page ---- */
body.page-knowledge .banner-callout { background: linear-gradient(115deg, #edf9ff 0%, #d5efff 100%); }

/* ---- Media page ---- */
body.page-media .news-feature-img { background: var(--bg-soft); }

/* ---- Contact page ---- */
body.page-contact .page-hero .lead { max-width: 520px; }

/* ---- Login page ---- */
body.page-login { background: #fff; }
body.page-login #mainNavbar, body.page-login .footer, body.page-login .back-to-top { display: none; }

/* ================= 7. RESPONSIVE ================= */
@media (max-width: 1080px) {
  .footer-top { grid-template-columns: 1fr 1fr 1fr; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .banner-callout { grid-template-columns: 1fr; text-align: center; }
  .banner-callout .actions { justify-content: center; }
}

@media (max-width: 900px) {
  .home-hero-slide { grid-template-columns: 1fr; }
  .home-hero-image-wrap { order: -1; }
  .contact-cta-wrap { grid-template-columns: 1fr; }
  .login-page { grid-template-columns: 1fr; }
  .login-visual { display: none; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .about-stats { gap: 30px; flex-wrap: wrap; }
  .timeline { flex-wrap: wrap; gap: 24px 0; }
  .timeline::before { display: none; }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 10px 20px 20px;
    box-shadow: var(--shadow-soft);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    max-height: calc(100vh - var(--header-height));
    overflow-y: auto;
  }
  .nav-menu.open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav-item { width: 100%; }
  .nav-link { width: 100%; margin: 0; padding: 14px 4px; border-bottom: 1px solid #f0f2f5; }
  .nav-link::after { display: none; }
  .dropdown-menu {
    position: static;
    opacity: 1; visibility: visible; transform: none;
    box-shadow: none; display: none;
    padding-left: 12px; margin-bottom: 8px;
  }
  .nav-item.has-dropdown.open .dropdown-menu { display: block; }
  .nav-actions { margin-top: 14px; }
  .burger { display: flex; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .section-padding { padding: 60px 0; }
  .page-hero { padding: calc(var(--header-height) + 40px) 16px 50px; }
  .bearer-intro-card, .bearer-card { flex-basis: 200px; }
}

@media (max-width: 480px) {
  .about-stats { gap: 18px; }
  .about-stats .stat h3 { font-size: 1.6rem; }
  .newsletter-form { flex-direction: column; }
  .contact-form-card { padding: 24px 18px; }
}
/* ============ 8. Membership Form ============ */
/* Scoped under body.page-membership-form so these rules only apply to the
   3 wizard pages and never collide with the site-wide .btn, .btn-primary,
   .form-control/.form-select, .form-label, h1, .crumb, or bare <main> rules
   defined earlier in this file (which are used on every other page). */
.page-membership-form .hero {
    min-height:477px; background:linear-gradient(115deg,#edf9ff 0%,#d5efff 100%); padding:160px 20px 70px; text-align:center;
}
.page-membership-form .crumb {
    display:inline-flex; gap:9px; padding:10px 17px; background:#c4e8ff; border-radius:9px; color:#54a9e5; font-size:14px;
}
.page-membership-form .crumb span:last-child {
    color:#1180d3;
}
.page-membership-form h1 {
    margin:25px 0 25px; color:#07538e; font-size:63px; font-weight:400; line-height:1.14; letter-spacing:-2.5px;
}
.page-membership-form .lead {
    color:#0b619f; font-size:24px;
}
.page-membership-form main {
    padding:83px 18px 70px;
}
.page-membership-form .form-wrap {
    max-width:950px; margin:auto; padding: 85px 0 84px;
}
.page-membership-form .steps {
    display:flex; align-items:flex-start; margin:0 0 50px;
}
.page-membership-form .step {
    flex:0 0 86px; text-align:center; color:#a0abb9; font-size:14px; font-weight:600; white-space:nowrap;
}
.page-membership-form .step-icon {
    margin:auto auto 9px; width:52px; height:52px; border:2px solid #d7dde5; border-radius:50%; display:grid; place-items:center; font-size:17px;
}
.page-membership-form .step.active {
    color:var(--blue);
}
.page-membership-form .step.active .step-icon {
    color:#fff; background:var(--blue); border-color:var(--blue);
}
.page-membership-form .step-sub {
    display:block; margin-top:8px; color:#6d7c8f; font-size:12px; font-weight:400;
}
.page-membership-form .connector {
    flex:1; height:2px; margin:25px 42px 0; background:#d7dde5;
}
.page-membership-form .connector.active {
    background:var(--blue);
}
.page-membership-form .form-card {
    border:1px solid #e2e7ed; border-radius:12px; padding:44px 42px 40px; box-shadow:0 2px 2px rgba(20,47,72,.04);
}
.page-membership-form .form-label {
color:var(--ink); font-size:16px; margin-bottom:6px;
}
.page-membership-form .form-control, .page-membership-form .form-select {
    min-height:48px; border:0; border-radius:7px; background:var(--field); color:#6eaee0; font-size:16px; padding:11px 13px;
}
.page-membership-form .form-control::placeholder {
    color:#7eb8e7; opacity:1;
}
.page-membership-form .form-control:focus, .page-membership-form .form-select:focus {
    background:#fff; border:1px solid #8dccf6; box-shadow:0 0 0 .2rem rgba(13,136,224,.13);
}
.page-membership-form textarea.form-control {
    min-height:77px; resize:vertical;
}
.page-membership-form .form-select {
    color:#7eb8e7;
}
.page-membership-form .form-select option {
    color:#164a76;
}
.page-membership-form .form-actions {
    display:flex; align-items:center; justify-content:space-between; margin-top:34px;
}
.page-membership-form .upload {
position:relative;
}
.page-membership-form .upload-label {
min-height:52px; display:flex; align-items:center; padding:12px; border-radius:8px; background:var(--pale); color:#82bae7; cursor:pointer;
}
.page-membership-form .upload-label .file-symbol {
margin-left:auto; color:#73bae9; font-size:20px;
}
.page-membership-form .file-input {
position:absolute; width:1px; height:1px; opacity:0; pointer-events:none;
}
.page-membership-form .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
}
.page-membership-form .btn-secondary {
    background:#f1f3f6; color:#a2afbe; border:0;
}
.page-membership-form .btn-primary {
    background: linear-gradient(90deg, var(--primary), var(--accent));
  	color: #fff;
  	box-shadow: 0 8px 20px rgba(27, 95, 168, 0.25);
}
.page-membership-form .btn-secondary:disabled {
    opacity:0.6; cursor:not-allowed;
}
.page-membership-form .btn-secondary:disabled:hover {
    transform:none;
}
.page-membership-form .btn-sm { 
	padding: 9px 18px; font-size: 0.85rem; 
}

