/* ══ HERO ══ */
.train-hero {
  background: linear-gradient(135deg, #0b3d6e 0%, #1578be 55%, #d40000 100%);
  padding: 48px 0 56px;                     /* aligned with about.css */
  position: relative;
  overflow: hidden;
}
.train-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 600px 300px at 80% 50%, rgba(255,255,255,.06), transparent),
    radial-gradient(ellipse 400px 400px at 10% 80%, rgba(212,0,0,.18), transparent);
  pointer-events: none;
}
.train-hero-inner { position: relative; z-index: 1; }
.train-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.9);
  font-size: var(--text-xs);
  font-weight: var(--fw-xbold);
  letter-spacing: 1.4px;
  text-transform: uppercase;
  padding: 5px 14px;                       /* aligned with about.css */
  border-radius: 30px;
  margin-bottom: 14px;                     /* aligned with about.css */
}
.train-pill .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #ff4d4d;
  animation: tpulse 1.6s infinite;
}
@keyframes tpulse {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:.5; transform:scale(1.4); }
}
.train-hero h1 {
  font-size: clamp(26px, 4vw, 38px);        /* aligned with about.css */
  font-weight: var(--fw-xbold);
  color: #fff;
  margin-bottom: 10px;                     /* aligned with about.css */
  line-height: var(--lh-heading);
}
.train-hero p {
  font-size: var(--text-md);               /* aligned with about.css */
  color: rgba(255,255,255,.78);            /* aligned with about.css */
  max-width: 560px;
  line-height: var(--lh-loose);
  margin-bottom: 20px;                     /* aligned with about.css */
}
.train-hero-chips {
  display: flex;
  gap: 14px;                               /* aligned with about.css */
  flex-wrap: wrap;
}
.train-chip {
  display: flex;
  align-items: center;
  gap: 8px;                                /* aligned with about.css */
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 10px;                     /* aligned with about.css */
  padding: 8px 16px;                       /* aligned with about.css */
  color: #fff;
  font-size: var(--text-sm);
  font-weight: var(--fw-bold);
}
.train-chip i { color: rgba(255,255,255,.7); font-size: var(--text-sm); }
.train-hero-right { display: flex; flex-direction: column; gap: 10px; min-width: 180px; }
.train-stat-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 12px;
  padding: 12px 16px;
  color: #fff;
}
.train-stat-card i { font-size: var(--text-xl); color: rgba(255,255,255,.7); flex: 0 0 auto; }
.train-stat-val { font-size: var(--text-2xl); font-weight: var(--fw-xbold); line-height: 1; margin-bottom: 2px; }
.train-stat-label { font-size: var(--text-xs); color: rgba(255,255,255,.65); font-weight: var(--fw-semibold); }

/* ══ MAIN ══ */
.train-main { background: #f5f6f8; padding: 48px 0 72px; }   /* aligned with about.css */

/* ══ INTRO CARD ══ */
.train-intro-card {
  background: #fff;
  border-radius: 16px;
  border: 1.5px solid rgba(11,18,32,.06);
  box-shadow: 0 4px 20px rgba(0,0,0,.06);
  overflow: hidden;
  margin-bottom: 20px;
}
.train-intro-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 24px 18px;                 /* aligned with about.css */
  border-bottom: 1px solid rgba(11,18,32,.07);
  background: linear-gradient(135deg, rgba(21,120,190,.05), rgba(212,0,0,.03));
}
.train-intro-icon {
  width: 46px; height: 46px;               /* aligned with about.css */
  flex: 0 0 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, #1578be, #d40000);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: var(--text-xl);               /* aligned with about.css */
  box-shadow: 0 4px 14px rgba(21,120,190,.28);
}
.train-intro-head h3 {
  font-size: var(--text-lg);               /* aligned with about.css */
  font-weight: var(--fw-xbold);
  color: rgba(11,18,32,.9);
  margin-bottom: 2px;
}
.train-intro-head p {
  font-size: var(--text-xs);
  color: rgba(11,18,32,.42);
  margin: 0;
}
.train-intro-body {
  padding: 24px 28px 28px;                 /* aligned with about.css */
  font-size: var(--text-md);               /* aligned with about.css */
  line-height: var(--lh-loose);
  color: rgba(11,18,32,.65);
  text-align: justify;
}

/* ══ MAP CARD ══ */
.train-map-card {
  background: #fff;
  border-radius: 16px;
  border: 1.5px solid rgba(11,18,32,.06);
  box-shadow: 0 4px 20px rgba(0,0,0,.06);
  overflow: hidden;
}
.train-map-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 24px 18px;                 /* aligned with about.css */
  border-bottom: 1px solid rgba(11,18,32,.07);
  background: linear-gradient(135deg, rgba(21,120,190,.05), rgba(212,0,0,.03));
}
.train-map-icon {
  width: 46px; height: 46px;               /* aligned with about.css */
  flex: 0 0 46px;
  border-radius: 12px;
  background: rgba(21,120,190,.1);
  border: 1px solid rgba(21,120,190,.2);
  display: flex; align-items: center; justify-content: center;
  color: #1578be;
  font-size: var(--text-xl);               /* aligned with about.css */
}
.train-map-head h3 {
  font-size: var(--text-lg);               /* aligned with about.css */
  font-weight: var(--fw-xbold);
  color: rgba(11,18,32,.9);
  margin-bottom: 2px;
}
.train-map-head p {
  font-size: var(--text-xs);
  color: rgba(11,18,32,.42);
  margin: 0;
}
.train-map-body { padding: 24px 28px 28px; }                /* aligned with about.css */

/* Map + list layout */
.train-map-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}
.train-map-block {
  min-height: 460px;
  border-radius: 10px;
  overflow: hidden;
  border: 1.5px solid rgba(11,18,32,.06);
  background: #fafbfc;
}
.train-list-block {
  max-height: 500px;
  overflow-y: auto;
  border-radius: 10px;
  border: 1.5px solid rgba(11,18,32,.06);
  background: #fff;
  padding: 12px;
}
.train-list-block::-webkit-scrollbar { width: 5px; }
.train-list-block::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 4px; }
.train-list-block::-webkit-scrollbar-thumb { background: rgba(21,120,190,.3); border-radius: 4px; }

/* County title */
.train-county-title {
  font-size: var(--text-md);               /* aligned with about.css */
  font-weight: var(--fw-xbold);
  color: #1578be;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(21,120,190,.15);
}

/* County select */
.train-county-select {
  width: 100%;
  padding: 9px 14px;
  border-radius: 10px;
  border: 1.5px solid rgba(11,18,32,.12);
  background: #fafbfc;
  font-size: var(--text-sm);
  color: rgba(11,18,32,.75);
  margin-bottom: 14px;
  appearance: auto;
  transition: border-color .2s, box-shadow .2s;
}
.train-county-select:focus {
  outline: none;
  border-color: #1578be;
  box-shadow: 0 0 0 3px rgba(21,120,190,.12);
  background: #fff;
}

/* Styled accordion for institutions */
.train-accordion { display: flex; flex-direction: column; gap: 8px; }
.train-acc-item {
  border-radius: 10px;
  border: 1.5px solid rgba(11,18,32,.06);
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.train-acc-item:hover { border-color: rgba(21,120,190,.2); }
.train-acc-item.open {
  border-color: rgba(21,120,190,.3);
  box-shadow: 0 4px 14px rgba(21,120,190,.1);
}
.train-acc-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  cursor: pointer;
  user-select: none;
  background: #fafbfc;
  transition: background .18s;
}
.train-acc-item.open .train-acc-header { background: rgba(21,120,190,.06); }
.train-acc-header:hover { background: rgba(21,120,190,.05); }
.train-acc-dot {
  width: 8px; height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: rgba(21,120,190,.3);
  transition: background .2s;
}
.train-acc-item.open .train-acc-dot {
  background: linear-gradient(135deg, #1578be, #d40000);
}
.train-acc-title {
  flex: 1;
  font-size: var(--text-sm);               /* aligned with about.css */
  font-weight: var(--fw-bold);
  color: rgba(11,18,32,.82);
  line-height: var(--lh-tight);
  margin: 0;
  transition: color .2s;
}
.train-acc-item.open .train-acc-title { color: #1578be; }
.train-acc-chevron {
  font-size: var(--text-xs);
  color: rgba(11,18,32,.3);
  transition: transform .25s, color .2s;
}
.train-acc-item.open .train-acc-chevron {
  transform: rotate(180deg);
  color: #1578be;
}
.train-acc-body {
  overflow: hidden;
  max-height: 0;
  transition: max-height .3s ease, padding .3s ease;
  padding: 0 14px;
}
.train-acc-body.show {
  max-height: 600px;
  padding: 10px 14px 14px;
}
.train-acc-body ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.train-acc-body ul li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: var(--text-sm);
  color: rgba(11,18,32,.65);
  line-height: var(--lh-body);
  padding: 5px 8px;
  border-radius: 7px;
  transition: background .15s;
}
.train-acc-body ul li:hover { background: rgba(21,120,190,.05); }
.train-acc-body ul li::before {
  content: "";
  width: 5px; height: 5px;
  flex: 0 0 5px;
  border-radius: 50%;
  background: rgba(21,120,190,.4);
  margin-top: 5px;
}

/* ══ QUICK LINKS ══ */
.ql-card {
  background: #fff;
  border-radius: 16px;
  border: 1.5px solid rgba(11,18,32,.06);
  box-shadow: 0 4px 20px rgba(0,0,0,.06);
  overflow: hidden;
  position: sticky;
  top: 80px;
}
.ql-header {
  padding: 18px 20px 14px;
  background: linear-gradient(135deg, #0b3d6e, #1578be);
  position: relative;
  overflow: hidden;
}
.ql-header::after {
  content: "";
  position: absolute;
  right: -20px; top: -20px;
  width: 100px; height: 100px;
  border-radius: 50%;
  background: rgba(255,255,255,.07);
}
.ql-header h4 {
  font-size: var(--text-base);             /* aligned with about.css */
  font-weight: var(--fw-xbold);
  color: #fff;
  margin: 0;
  position: relative; z-index: 1;
}
.ql-header p {
  font-size: var(--text-xs);               /* aligned with about.css */
  color: rgba(255,255,255,.65);
  margin: 4px 0 0;
  position: relative; z-index: 1;
}
.ql-body { padding: 8px 12px 12px; }
.ql-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 10px;
  text-decoration: none;
  color: rgba(11,18,32,.78);
  font-size: var(--text-sm);               /* aligned with about.css */
  font-weight: var(--fw-semibold);
  line-height: var(--lh-tight);
  transition: background .18s, color .18s, gap .18s;
  border-bottom: 1px solid rgba(11,18,32,.05);
}
.ql-item:last-child { border-bottom: none; }
.ql-item:hover { background: rgba(21,120,190,.07); color: #1578be; gap: 13px; text-decoration: none; }
.ql-icon {
  width: 30px; height: 30px;
  flex: 0 0 30px;
  border-radius: 8px;
  background: rgba(21,120,190,.08);
  border: 1px solid rgba(21,120,190,.14);
  display: flex; align-items: center; justify-content: center;
  font-size: var(--text-xs);               /* aligned with about.css */
  color: #1578be;
  transition: background .18s, color .18s;
}
.ql-item:hover .ql-icon { background: #1578be; color: #fff; border-color: transparent; }
.ql-arrow {
  margin-left: auto;
  font-size: var(--text-xs);               /* aligned with about.css */
  color: rgba(11,18,32,.22);
  transition: color .18s, transform .18s;
}
.ql-item:hover .ql-arrow { color: #1578be; transform: translateX(3px); }

/* ======================= */
/* Map Section Overrides   */
/* ======================= */
.map-section {
  background: linear-gradient(135deg, #f8fbff 0%, #eef4ff 100%);
  border: 1px solid rgba(0, 92, 230, 0.08);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(14, 30, 84, 0.08);
  margin-bottom: 24px;
}
.map-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.map-section-title h2 {
  margin: 0;
  font-size: var(--text-2xl);              /* aligned with about.css */
  font-weight: var(--fw-bold);
  color: #16355c;
  line-height: var(--lh-heading);
}
.map-section-title p {
  margin: 4px 0 0;
  color: #5f6f82;
  font-size: var(--text-sm);
}
.map-controls {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.selectcounty {
  min-width: 220px;
  border: 1px solid #d7e3f4;
  border-radius: 12px;
  padding: 10px 14px;
  background: #fff;
  color: #234;
  font-size: var(--text-sm);
  outline: none;
  box-shadow: 0 4px 10px rgba(20, 40, 90, 0.04);
  transition: all 0.2s ease;
}
.selectcounty:focus {
  border-color: #005ce6;
  box-shadow: 0 0 0 4px rgba(0, 92, 230, 0.12);
}
.map-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 16px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.5), 0 8px 24px rgba(20, 40, 90, 0.06);
  border: 1px solid #edf2f8;
}
.mapblock {
  width: 100%;
  height: 640px;
  min-height: 480px;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(180deg, #fdfefe 0%, #f4f8fc 100%);
}
#accordion {
  margin-top: 18px;
}
#accordion .ui-accordion-header {
  background: #f4f8fc;
  color: #1f3a56;
  border: 1px solid #e3ebf5;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  margin-top: 8px;
  outline: none;
  transition: all 0.2s ease;
}
#accordion .ui-accordion-header:hover {
  background: #eef4ff;
  border-color: #d7e3f4;
}
#accordion .ui-accordion-header.ui-state-active {
  background: #e8f0ff;
  color: #003e9c;
  border-color: #cfe0ff;
}
#accordion .ui-accordion-content {
  border: 1px solid #e8eef7;
  border-top: 0;
  border-radius: 0 0 10px 10px;
  background: #ffffff;
  padding: 12px 14px;
  font-size: var(--text-sm);
  line-height: var(--lh-body);
  color: #475569;
}
#accordion table {
  width: 100%;
  border-collapse: collapse;
}
#accordion table tr:nth-child(even) {
  background: #f8fbff;
}
#accordion table td,
#accordion table th {
  padding: 10px 12px;
  border-bottom: 1px solid #eef3f8;
  font-size: var(--text-sm);
  color: #34495e;
}
.map-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(0, 92, 230, 0.08);
  color: #005ce6;
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
}

@media (max-width: 768px) {
  .train-hero { padding: 28px 0 32px; }
  .train-hero-right { flex-direction: row; flex-wrap: wrap; min-width: unset; }
  .train-stat-card { flex: 1 1 calc(50% - 5px); }
  .train-map-layout { grid-template-columns: 1fr; }
  .train-map-body { padding: 18px 16px 22px; }
  .mapblock { height: 500px; }
  .map-section { padding: 14px; }
  .map-card { padding: 10px; }
  .map-section-title h2 { font-size: var(--text-xl); }
}