/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --primary:          #002651;
  --primary-container:#1b3c6b;
  --on-primary:       #ffffff;
  --on-primary-cont:  #8aa7dd;
  --secondary:        #8c5000;
  --secondary-cont:   #fda952;
  --on-secondary:     #ffffff;
  --surface:          #f8f9ff;
  --surface-var:      #d3e4fe;
  --surf-low:         #eff4ff;
  --surf-cont:        #e5eeff;
  --surf-high:        #dce9ff;
  --surf-highest:     #d3e4fe;
  --on-surface:       #0b1c30;
  --on-surf-var:      #43474f;
  --outline:          #747780;
  --outline-var:      #c4c6d0;
  --error:            #ba1a1a;
  --error-cont:       #ffdad6;
  --on-error:         #ffffff;
  --brand-orange:     #F4A14B;

  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  12px;
  --radius-xl:  16px;
  --radius-full: 9999px;

  --shadow-sm:  0 2px 8px rgba(27,60,107,0.06);
  --shadow-md:  0 4px 20px rgba(27,60,107,0.08);
  --shadow-lg:  0 10px 30px rgba(27,60,107,0.12);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}


body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--surface);
  color: var(--on-surface);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  padding-top: 0;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  vertical-align: middle;
  font-size: 20px;
}

.material-symbols-outlined.icon-fallback {
  font-family: 'Segoe UI Symbol', 'Noto Sans Symbols', sans-serif;
  font-variation-settings: normal;
  line-height: 1;
}

.icon-fill {
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.t-display {
  font-size: 48px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.t-h1 {
  font-size: 32px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.t-h2 {
  font-size: 24px;
  line-height: 1.33;
  font-weight: 600;
}

.t-h3 {
  font-size: 20px;
  line-height: 1.4;
  font-weight: 600;
}

.t-body {
  font-size: 16px;
  line-height: 1.5;
  font-weight: 400;
}

.t-body-sm {
  font-size: 14px;
  line-height: 1.43;
  font-weight: 400;
}

.t-label {
  font-size: 14px;
  line-height: 1.14;
  font-weight: 600;
}

.t-caption {
  font-size: 12px;
  line-height: 1.33;
  font-weight: 500;
}

/* ============================================================
   COLORS
   ============================================================ */
.c-primary {
  color: var(--primary);
}

.c-primary-container {
  color: var(--primary-container);
}

.c-secondary {
  color: var(--secondary);
}

.c-surface-var {
  color: var(--on-surf-var);
}

.c-outline {
  color: var(--outline);
}

.c-white {
  color: #fff;
}

.c-error {
  color: var(--error);
}

.bg-primary {
  background: var(--primary);
}

.bg-primary-container {
  background: var(--primary-container);
}

.bg-secondary {
  background: var(--secondary);
}

.bg-white {
  background: #fff;
}

.bg-surface {
  background: var(--surface);
}

.bg-surf-low {
  background: var(--surf-low);
}

.bg-surf-cont {
  background: var(--surf-cont);
}

.bg-orange {
  background: var(--brand-orange);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--radius-lg);
  font-size: 14px;
  font-weight: 600;
  transition: all 0.15s;
  cursor: pointer;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  filter: brightness(1.1);
}

.btn-secondary {
  background: var(--secondary);
  color: #fff;
}

.btn-secondary:hover {
  filter: brightness(1.08);
}

.btn-outline-primary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline-primary:hover {
  background: var(--surf-low);
}

.btn-outline-white {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn-ghost {
  background: transparent;
  color: var(--primary);
}

.btn-ghost:hover {
  background: var(--surf-low);
}

.btn-orange {
  background: var(--brand-orange);
  color: #fff;
}

.btn-orange:hover {
  filter: brightness(0.95);
}

.btn-lg {
  padding: 14px 32px;
  font-size: 16px;
  border-radius: var(--radius-xl);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 13px;
}

/* ============================================================
   FORM FIELDS
   ============================================================ */
.field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.field-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--on-surf-var);
}

.field {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--outline-var);
  background: var(--surface);
  font-size: 15px;
  color: var(--on-surface);
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
}

.field::placeholder {
  color: var(--outline);
  opacity: 0.9;
  text-overflow: ellipsis;
}

.field:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 38, 81, 0.08);
}

.field-error {
  font-size: 13px;
  color: var(--error);
  margin-top: 4px;
}

.section-card,
.form-card {
  background: #fff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  border: 1px solid rgba(0, 38, 81, 0.06);
}

.section-card h3 {
  margin-bottom: 18px;
}

.rating-scale {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.rating-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--outline-var);
  background: transparent;
  color: var(--on-surface);
  font-weight: 700;
  transition: all 0.15s;
}

.rating-btn.active,
.rating-btn:hover {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

/* ======================
   SURVEY-SPECIFIC STYLES
   ====================== */
.section-card {
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.section-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.rating-scale { justify-content: flex-start; }
.rating-btn { width:44px; height:44px; font-size:15px; }
.rating-btn:focus { outline: 3px solid rgba(0,38,81,0.12); }

.section-summary {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 18px;
  border: 1px solid rgba(0,38,81,0.06);
  box-shadow: var(--shadow-sm);
}

.form-card { display:flex; align-items:center; gap:12px; padding:18px; }
.form-card strong { font-size:16px; color:var(--primary); }

/* Survey status / alerts */
#survey-status { border-radius: var(--radius-lg); }

@media (max-width: 600px) {
  .rating-btn { width:48px; height:48px; }
  .section-card { padding: 18px; }
  .section-summary { margin-top: 12px; }
}

/* ============================================================
   SURVEY HERO TEXT COLORS
   Ensure visibility over image + overlay
   ============================================================ */
.survey-hero .t-label { color: var(--secondary-cont); opacity: 0.95; }
.survey-hero .t-h2 { color: #ffffff; }
.survey-hero .t-body { color: rgba(255,255,255,0.92); max-width: 680px; }
.survey-hero .container-lg { position: relative; z-index: 1; }

.form-card {
  padding: 18px;
}

.form-card strong {
  display: block;
  margin-bottom: 8px;
}

.form-card p {
  margin: 0;
  color: var(--on-surf-var);
}

.card {
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: var(--shadow-lg);
}

.card-body {
  padding: 20px;
}

/* ============================================================
   SCHOOL CARD
   ============================================================ */
.school-card {
  background: #fff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.school-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.school-card-img {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.school-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.gallery-img:not(:first-child) {
  display: none;
}

.school-card:hover .school-card-img img {
  transform: scale(1.05);
}

.school-card-body {
  padding: 18px 20px 20px;
}

/* Ensure school cards fill their Bootstrap column and keep image aspect */
/* Grid/column responsiveness for search results */
#results-grid > .col {
  /* Let Bootstrap handle column sizing; keep min-width to avoid overflow issues */
  min-width: 0;
}

#results-grid .school-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  height: 100%;
}

#results-grid .school-card-img {
  flex: 0 0 auto;
}

#results-grid .school-card-body {
  flex: 1 1 auto;
  min-width: 0;
}

/* Ensure card text wraps and doesn't force columns wider */
#results-grid .school-card-body h3,
#results-grid .school-card-body h4,
#results-grid .school-card-body p {
  word-break: break-word;
  hyphens: auto;
}

/* Make images fill the card container so aspect-ratio is preserved and
   broken images or fallbacks don't collapse the card on desktop */
#results-grid .school-card-img img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  display: block;
}

/* Smaller screens: reduce image height and padding */
@media (max-width: 767px) {
  #results-grid .school-card-img img { height: 100%; }
  #results-grid .school-card-body { padding: 12px; }
}

@media (min-width: 768px) and (max-width: 1199px) {
  #results-grid .school-card-img img { height: 100%; }
}

.school-card-rating {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(255, 255, 255, 0.96);
  border-radius: var(--radius-full);
  padding: 3px 10px;
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: var(--shadow-sm);
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
}

.school-card-bm {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all 0.15s;
  border: none;
}

.school-card-bm:hover {
  background: var(--surf-cont);
}

.school-card-bm.active {
  background: var(--secondary-cont);
  color: #fff;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--surf-cont);
  color: var(--primary);
  border-radius: var(--radius-md);
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 600;
}

.tag-pill {
  border-radius: var(--radius-full);
}

.fee-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 12px 0 14px;
}

.fee-amount {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
}

.fee-unit {
  font-size: 12px;
  color: var(--on-surf-var);
}

/* ============================================================
   STARS
   ============================================================ */
.stars {
  display: flex;
  align-items: center;
  gap: 1px;
  color: var(--secondary-cont);
}

.stars .material-symbols-outlined {
  font-size: 18px;
}

/* ============================================================
   BADGE
   ============================================================ */
.badge {
  display: inline-flex;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--secondary-cont);
  color: #703f00;
}

/* ============================================================
   SECTION SPACING
   ============================================================ */
.section {
  padding: 80px 0;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}

.process-column {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.process-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.process-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.process-icon {
  min-width: 52px;
  min-height: 52px;
  border-radius: 18px;
  background: rgba(237, 246, 255, 0.9);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.page-hero {
  background: linear-gradient(135deg, rgba(255,255,255,0.96), rgba(227,237,255,0.95));
  border-bottom: 1px solid rgba(0, 38, 81, 0.08);
}

.plan-grid {
  display: grid;
  gap: 18px;
}

.feature-grid,
.metric-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-card,
.metric-card {
  background: #fff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  border: 1px solid rgba(0, 38, 81, 0.06);
}

.page-hero {
  background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(241,246,255,0.95));
  border-bottom: 1px solid rgba(0, 38, 81, 0.08);
}

.page-hero .feature-card {
  padding: 22px;
}

.contact-hero {
  background: linear-gradient(135deg, rgba(236,247,255,0.96), rgba(255,249,240,0.95));
}

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: #fff;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(0, 38, 81, 0.08);
  box-shadow: var(--shadow-sm);
  padding: 18px 20px;
  margin-bottom: 18px;
}

.contact-card span {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: var(--secondary-cont);
  color: #fff;
  font-size: 22px;
}

.team-card {
  background: #fff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 38, 81, 0.06);
  padding: 28px 20px;
  text-align: center;
}

.team-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  margin: 0 auto 18px;
  background-size: cover;
  background-position: center;
}

.section-stats {
  margin-top: -70px;
  position: relative;
  z-index: 1;
}

.stat-card {
  background: #fff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 38, 81, 0.08);
  padding: 28px;
  text-align: center;
}

.stat-card h3 {
  font-size: 42px;
  line-height: 1;
  margin-bottom: 10px;
}

.stat-card p {
  color: var(--on-surf-var);
}

@media (max-width: 992px) {
  .page-hero .row,
  .contact-hero .row {
    align-items: stretch;
  }
}

@media (max-width: 768px) {
  .t-display {
    font-size: 38px;
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

/* Force explicit column widths for results grid to avoid layout collapses
   when other styles interfere with Bootstrap row/col behavior. */
@media (min-width: 0) {
  #results-grid > .col-12 { flex: 0 0 100%; max-width: 100%; }
}
@media (min-width: 768px) {
  #results-grid > .col-md-6 { flex: 0 0 50%; max-width: 50%; }
}
@media (min-width: 992px) {
  /* enforce 3-column layout from Bootstrap lg (>=992px) */
  #results-grid > .col-lg-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
}
@media (min-width: 1200px) {
  /* keep explicit xl rule as well */
  #results-grid > .col-xl-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
}

#results-grid .school-card { min-height: 220px; }

/* Static popular schools section column safeguards */
.section .container-lg .row > [class*="col-"] {
  min-width: 0;
}
.section .container-lg .row > .col-12 { flex: 0 0 100%; max-width: 100%; }
@media (min-width: 768px) {
  .section .container-lg .row > .col-md-6 { flex: 0 0 50%; max-width: 50%; }
}
@media (min-width: 992px) {
  .section .container-lg .row > .col-lg-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
}
@media (min-width: 1200px) {
  .section .container-lg .row > .col-xl-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
}

.section .school-card { height: 100%; }

.feature-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--on-surf-var);
}

.feature-list li .material-symbols-outlined {
  color: var(--secondary);
  margin-top: 2px;
}

@media (max-width: 992px) {
  .page-hero .row {
    align-items: stretch;
  }
  .page-hero .col-lg-5,
  .page-hero .col-lg-7 {
    max-width: 100%;
    flex: 0 0 100%;
  }
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .t-display {
    font-size: 38px;
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

.feature-list {
  margin: 0;
  padding-left: 18px;
  color: var(--on-surf-var);
}

.feature-list li + li {
  margin-top: 8px;
}

@media (max-width: 768px) {
  .feature-grid,
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .t-display {
    font-size: 36px;
  }
}

.plan-card {
  background: var(--surf-low);
  border: 1px solid rgba(0, 38, 81, 0.08);
  border-radius: var(--radius-xl);
  padding: 20px;
}

.plan-section + .plan-section {
  margin-top: 16px;
}

.plan-list {
  padding-left: 18px;
  margin: 0;
  color: var(--on-surf-var);
}

.plan-list li + li {
  margin-top: 8px;
}

.plan-list-ordered {
  padding-left: 20px;
}

.quote {
  margin: 0;
  padding: 14px 16px;
  border-left: 4px solid var(--secondary-cont);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: rgba(253, 169, 82, 0.12);
  color: var(--primary);
  font-style: italic;
}

.section-sm {
  padding: 48px 0;
}

.section-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary);
}

.section-sub {
  font-size: 16px;
  color: var(--on-surf-var);
  margin-top: 6px;
}

.section-divider {
  width: 60px;
  height: 5px;
  border-radius: var(--radius-full);
  background: var(--secondary-cont);
  margin: 12px 0 0;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 580px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-container) 100%);
  color: #fff;
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(27, 60, 107, 0.55), rgba(27, 60, 107, 0.55));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  text-align: center;
  padding: 80px 32px;
  max-width: 1280px;
  margin: 0 auto;
}

.hero-search-box {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 12px;
  display: flex;
  gap: 10px;
  align-items: center;
  box-shadow: var(--shadow-lg);
  max-width: 860px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.hero-search-field {
  flex: 1;
  min-width: 200px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--outline-var);
}

.hero-search-field input,
.hero-search-field select {
  flex: 1 1 auto;
  min-width: 0;
  border: none;
  background: transparent;
  outline: none;
  font-size: 15px;
  line-height: 1.4;
  width: 100%;
  color: var(--on-surface);
}

.hero-search-field select {
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  background: var(--primary);
  padding: 80px 32px;
  text-align: center;
  color: #fff;
}

.cta-banner .actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 32px;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 38, 81, 0.07);
  min-height: 70px;
  width: 100%;
  padding: 8px 0;
  transition: box-shadow 0.2s ease, background-color 0.2s ease;
}

.navbar.nav-scrolled {
  box-shadow: 0 4px 18px rgba(0, 38, 81, 0.12);
}

.navbar .container,
.navbar .container-lg {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--max-w, 1280px);
  padding-left: 24px;
  padding-right: 24px;
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  font-weight: 900;
  color: var(--primary);
  cursor: pointer;
  margin-right: 24px;
  flex-shrink: 0;
  text-decoration: none;
  line-height: 1;
}

.navbar-brand img,
.navbar-brand .navbar-logo {
  display: block;
  max-height: 42px;
  width: auto;
  object-fit: contain;
}

.navbar-toggler {
  border: 1.5px solid var(--outline-var, #c4c6d0);
  border-radius: var(--radius-md);
  padding: 0.4rem 0.75rem;
  background: var(--surf-low, #eff4ff);
  color: var(--primary);
  transition: all 0.2s ease;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 3px rgba(0, 38, 81, 0.15);
  outline: none;
}

.navbar-toggler-icon {
  display: inline-block;
  width: 1.4rem;
  height: 1.4rem;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(0, 38, 81, 0.85)' stroke-width='2.4' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-chip .material-symbols-outlined {
  font-size: 26px;
  color: var(--primary);
}

@media (min-width: 1200px) {
  .navbar-expand-xl .navbar-collapse {
    display: flex !important;
    flex-basis: auto;
    flex-grow: 1;
    align-items: center;
    justify-content: flex-end;
  }

  .navbar-expand-xl .navbar-nav {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .navbar-expand-xl .navbar-nav .nav-item {
    display: inline-flex;
  }

  .navbar-expand-xl .navbar-nav .nav-link,
  .navbar-expand-xl .navbar-nav a {
    font-size: 14px;
    font-weight: 600;
    color: var(--on-surf-var);
    transition: color 0.18s, background-color 0.18s;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: var(--radius-sm, 4px);
    border-bottom: 2px solid transparent;
    text-decoration: none;
    white-space: nowrap;
  }

  .navbar-expand-xl .navbar-nav .nav-link:hover,
  .navbar-expand-xl .navbar-nav a:hover {
    color: var(--primary);
    background-color: var(--surf-low);
  }

  .navbar-expand-xl .navbar-nav .nav-link.active,
  .navbar-expand-xl .navbar-nav a.active {
    color: var(--primary);
    font-weight: 700;
    border-bottom-color: var(--primary);
    background-color: transparent;
  }

  .navbar-expand-xl .navbar-actions,
  .navbar-expand-xl #auth-chip {
    margin-left: 12px;
  }
}

.auth-hero-panel {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.auth-hero-panel.login {
  background-image: url('https://plus.unsplash.com/premium_photo-1690479510844-6385aa431b76?w=500&auto=format&fit=crop&q=60&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxzZWFyY2h8MXx8cHJpbWFyeSUyMHNjaG9vbHxlbnwwfHwwfHx8MA%3D%3D');
}

.auth-hero-panel.register {
  background-image: url('https://plus.unsplash.com/premium_photo-1661962298926-9a0899d348d3?w=500&auto=format&fit=crop&q=60&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxzZWFyY2h8NTd8fHByaW1hcnklMjBzY2hvb2x8ZW58MHx8MHx8fDA%3D');
}

.auth-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 38, 81, 0.82), rgba(0, 38, 81, 0.52));
}

.networking-hero {
  position: relative;
  min-height: 430px;
  background-image: url('https://plus.unsplash.com/premium_photo-1723773874409-8661740a79b6?w=500&auto=format&fit=crop&q=60&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxzZWFyY2h8ODF8fHByaW1hcnklMjBzY2hvb2x8ZW58MHx8MHx8fDA%3D');
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.networking-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 29, 56, 0.58), rgba(5, 29, 56, 0.68));
}

.user-chip .material-symbols-outlined {
  font-size: 28px;
  color: var(--primary);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: linear-gradient(180deg, #0d3b72 0%, #081f43 100%);
  color: #f3f7ff;
  padding: 64px 0 24px;
}

.footer-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  align-items: start;
}

.footer-brand {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}

.footer-desc {
  font-size: 14px;
  color: rgba(243, 247, 255, 0.78);
  line-height: 1.8;
  max-width: 420px;
}

.footer-title {
  font-size: 12px;
  color: rgba(243, 247, 255, 0.84);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 18px;
  font-weight: 700;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 14px;
  color: rgba(243, 247, 255, 0.84);
  transition: color 0.18s ease;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-social {
  display: flex;
  gap: 14px;
  margin-top: 14px;
}

.footer-social-btn {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.18s ease, background 0.18s ease;
  border: none;
  cursor: pointer;
}

.footer-social-btn:hover {
  background: rgba(255, 255, 255, 0.24);
  transform: translateY(-1px);
}

.footer-contact-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.footer-contact-item span {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
}

.footer-contact-item p,
.footer-contact-item a {
  margin: 0;
  color: rgba(243, 247, 255, 0.86);
}

.footer-contact-item a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 22px 0 10px;
  text-align: center;
  font-size: 13px;
  color: rgba(243, 247, 255, 0.72);
  margin-top: 24px;
}

@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 576px) {
  .footer {
    padding: 48px 0 20px;
  }
}

/* ============================================================
   TOAST
   ============================================================ */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  background: var(--on-surface);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-lg);
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  transform: translateY(60px);
  opacity: 0;
  transition: all 0.3s;
  pointer-events: none;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast.success {
  background: #166534;
}

.toast.error {
  background: var(--error);
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.hidden {
  display: none !important;
}

.text-center {
  text-align: center;
}

.text-muted {
  color: var(--on-surf-var);
}

.mt-4 {
  margin-top: 24px;
}

.mb-4 {
  margin-bottom: 24px;
}

.gap-sm {
  gap: 12px;
}

.gap-md {
  gap: 24px;
}

.gap-lg {
  gap: 48px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1199.98px) {
  .navbar {
    padding: 8px 0;
    min-height: 64px;
  }

  .navbar .container,
  .navbar .container-lg {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding-left: 20px;
    padding-right: 20px;
  }

  .navbar-toggler {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    margin-left: auto;
  }

  .navbar-collapse {
    flex-basis: 100%;
    width: 100%;
    background: #ffffff;
    border-radius: 12px;
    margin-top: 8px;
    overflow: hidden;
  }

  .navbar-collapse.show,
  .navbar-collapse.collapsing {
    box-shadow: 0 12px 28px rgba(0, 38, 81, 0.12);
    border: 1px solid rgba(0, 38, 81, 0.08);
    padding: 14px 16px 18px;
  }

  .navbar-collapse .navbar-nav,
  .navbar-collapse .nav-list {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 4px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
  }

  .navbar-collapse .navbar-nav .nav-item,
  .navbar-collapse .nav-list li {
    width: 100% !important;
    display: block !important;
    margin: 0 !important;
  }

  .navbar-collapse .navbar-nav .nav-link,
  .navbar-collapse .navbar-nav a,
  .navbar-collapse .nav-list a {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    padding: 11px 14px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: var(--on-surf-var) !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    border-bottom: none !important;
    transition: all 0.16s ease !important;
  }

  .navbar-collapse .navbar-nav .nav-link:hover,
  .navbar-collapse .navbar-nav a:hover,
  .navbar-collapse .nav-list a:hover {
    background-color: var(--surf-low) !important;
    color: var(--primary) !important;
    padding-left: 18px !important;
  }

  .navbar-collapse .navbar-nav .nav-link.active,
  .navbar-collapse .navbar-nav a.active,
  .navbar-collapse .nav-list a.active {
    background-color: var(--surf-cont) !important;
    color: var(--primary) !important;
    font-weight: 700 !important;
  }

  .navbar-collapse #auth-chip,
  .navbar-collapse .navbar-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 14px 0 0 0 !important;
    padding: 14px 0 0 0 !important;
    border-top: 1px solid rgba(0, 38, 81, 0.08) !important;
    width: 100% !important;
  }

  .navbar-collapse #auth-chip .btn,
  .navbar-collapse .navbar-actions .btn {
    flex: 1 1 auto;
    text-align: center;
    justify-content: center;
    padding: 10px 16px;
    font-size: 14px;
  }

  .navbar-collapse .user-chip {
    width: 100%;
    justify-content: space-between;
    padding: 8px 12px;
    background: var(--surf-low);
    border-radius: 8px;
  }

  .hero-search-box {
    flex-direction: column;
  }

  .hero-search-field {
    width: 100%;
    min-width: unset;
  }

  .section {
    padding: 60px 0;
  }

  .section-title {
    font-size: 28px;
  }
}

@media (max-width: 767px) {
  .hero {
    min-height: 400px;
    padding: 40px 0;
  }

  .hero-content {
    padding: 40px 16px;
  }

  .t-display {
    font-size: 32px;
  }

  .t-h1 {
    font-size: 24px;
  }

  .section {
    padding: 40px 0;
  }

  .section-title {
    font-size: 20px;
  }
}

@media (max-width: 576px) {
  .navbar {
    min-height: 56px;
    height: auto;
  }

  .navbar-brand {
    font-size: 18px;
    margin-right: 20px;
  }

  .navbar-brand img {
    max-height: 32px;
  }

  .hero {
    min-height: 300px;
  }

  .t-display {
    font-size: 24px;
  }

  .t-h1 {
    font-size: 20px;
  }

  .section {
    padding: 30px 0;
  }
}

/* ============================================================
   ADMIN DASHBOARD POLISH
   Skeleton loaders, fade-in transitions, inline button spinners
   ============================================================ */

@keyframes shimmer {
  0% { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}

.skeleton-card {
  border-radius: 16px;
  height: 190px;
  margin-bottom: 24px;
  background: linear-gradient(90deg, var(--surf-low) 25%, var(--surf-cont) 37%, var(--surf-low) 63%);
  background-size: 800px 100%;
  animation: shimmer 1.4s ease-in-out infinite;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.admin-card-enter {
  animation: fadeInUp 0.28s ease both;
}

.admin-card-leaving {
  transition: opacity 0.2s ease, transform 0.2s ease, max-height 0.25s ease, margin 0.25s ease, padding 0.25s ease;
  opacity: 0;
  transform: scale(0.98);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.btn-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
}

.btn-outline-danger .btn-spinner,
.btn-outline-primary .btn-spinner,
.btn-ghost .btn-spinner {
  border-color: rgba(0,0,0,0.15);
  border-top-color: currentColor;
}

.admin-stat-card {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.admin-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08) !important;
}

.tab-count {
  transition: all 0.2s ease;
}

.admin-tab-btn {
  transition: color 0.15s ease, border-color 0.15s ease;
}

/* ============================================================
   SHARED LAYOUT NORMALIZATION
   ============================================================ */
.container,
.container-lg {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.navbar {
  min-height: var(--nav-h, 72px);
  padding: 8px 0;
}

.navbar .container,
.navbar .container-lg {
  max-width: var(--max-w, 1280px);
  padding-left: 24px;
  padding-right: 24px;
}

.navbar-brand {
  flex-shrink: 0;
  margin-right: 20px;
}

.navbar-brand img {
  max-width: 180px;
}

.navbar-collapse {
  min-width: 0;
}

.navbar-collapse #auth-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.page-hero {
  padding-top: var(--nav-h, 72px);
}

#page-home {
  padding-top: var(--nav-h, 72px);
}


@media (max-width: 575px) {
  .navbar .container,
  .navbar .container-lg {
    padding-left: 16px;
    padding-right: 16px;
  }

  .navbar-brand {
    gap: 8px;
    margin-right: 8px;
    font-size: 17px;
  }

  .navbar-brand > span {
    font-size: 17px !important;
  }

  .navbar-brand img {
    max-height: 34px;
    max-width: 46px;
  }

  .hero-content,
  .container,
  .container-lg {
    padding-left: 16px;
    padding-right: 16px;
  }

  .section-card,
  .feature-card,
  .metric-card,
  .filter-panel,
  .profile-panel {
    padding: 18px;
  }

  .btn {
    white-space: normal;
  }
}

/* ============================================================
   TESTIMONIAL SLIDER & CAROUSEL COMPONENT
   ============================================================ */
.testimonial-section {
  position: relative;
  background: linear-gradient(180deg, #f8faff 0%, #edf3fc 100%);
  padding: 80px 0;
  overflow: hidden;
}

.testimonial-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 36px;
  flex-wrap: wrap;
  gap: 20px;
}

.testimonial-header-text {
  max-width: 640px;
}

.testimonial-nav-btns {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testi-nav-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--primary);
  border: 1.5px solid rgba(0, 38, 81, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 38, 81, 0.08);
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}

.testi-nav-btn:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 38, 81, 0.2);
}

.testi-nav-btn:active {
  transform: scale(0.92);
}

.testi-nav-btn .material-symbols-outlined {
  font-size: 26px;
}

.testi-track-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 10px 0 15px 0;
}

.testi-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 8px 4px 16px 4px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
}

.testi-track.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
  scroll-snap-type: none;
  user-select: none;
}

.testi-track::-webkit-scrollbar {
  display: none;
}

.testi-card {
  flex: 0 0 calc((100% - 48px) / 3);
  min-width: 0;
  scroll-snap-align: start;
  background: #ffffff;
  border-radius: 20px;
  padding: 30px 26px;
  border: 1px solid rgba(0, 38, 81, 0.08);
  box-shadow: 0 6px 20px rgba(0, 38, 81, 0.04);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.testi-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(0, 38, 81, 0.1);
  border-color: rgba(27, 60, 107, 0.22);
}

.testi-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  gap: 8px;
  flex-wrap: wrap;
}

.testi-badge-verified {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  background: #e8f7f0;
  color: #0d8251;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.testi-badge-verified .material-symbols-outlined {
  font-size: 15px;
}

.testi-star-rating {
  display: flex;
  gap: 2px;
  color: #f59e0b;
}

.testi-star-rating .material-symbols-outlined {
  font-size: 18px;
}

.testi-quote-body {
  font-size: 15px;
  line-height: 1.65;
  color: #334155;
  margin-bottom: 24px;
  position: relative;
  font-style: normal;
  flex-grow: 1;
}

.testi-profile {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid rgba(0, 38, 81, 0.07);
}

.testi-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2.5px solid var(--secondary-cont);
  flex-shrink: 0;
  background: var(--surf-cont);
}

.testi-name {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 2px;
  line-height: 1.2;
}

.testi-city {
  font-size: 12.5px;
  color: var(--outline);
  display: flex;
  align-items: center;
  gap: 3px;
  margin-top: 2px;
}

.testi-city .material-symbols-outlined {
  font-size: 14px;
  color: var(--secondary);
}

.testi-child {
  font-size: 12px;
  color: var(--primary-container);
  font-weight: 600;
  margin-top: 1px;
}

/* Slider Dots */
.testi-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}

.testi-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(0, 38, 81, 0.2);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.testi-dot:hover {
  background: rgba(0, 38, 81, 0.45);
}

.testi-dot.active {
  width: 28px;
  border-radius: 12px;
  background: var(--primary);
}

/* ============================================================
   RESPONSIVE ENHANCEMENTS ACROSS SIZES
   ============================================================ */
@media (max-width: 1024px) {
  .testi-card {
    flex: 0 0 calc((100% - 24px) / 2);
  }
}

@media (max-width: 768px) {
  .testimonial-section {
    padding: 56px 0;
  }
  .testimonial-header-row {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 24px;
    gap: 16px;
  }
  .testimonial-nav-btns {
    width: 100%;
    justify-content: flex-end;
  }
  .testi-card {
    flex: 0 0 88%;
    padding: 24px 20px;
  }
  .stats-bar {
    padding: 28px 16px;
  }
  .stats-bar .grid-4 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .stat-num {
    font-size: 28px;
  }
  .stat-label {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .testi-card {
    flex: 0 0 94%;
    padding: 22px 18px;
  }
  .testi-nav-btn {
    width: 40px;
    height: 40px;
  }
  .stats-bar .grid-4 {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .stat-item {
    padding: 12px 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
  }
  .stat-num {
    font-size: 24px;
  }
  .hero-search-box {
    padding: 10px;
  }
  .hero-search-field {
    padding: 8px 12px;
  }
}






