/* epavistes.net */

:root {
  --ep-primary: #1a56db;
  --ep-primary-dark: #1342b0;
  --ep-success: #0e9f6e;
  --ep-dark: #111827;
  --ep-gray: #6b7280;
  --ep-light: #f9fafb;
  --ep-border: #e5e7eb;
}

/* base */
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: #1f2937;
  font-size: 1rem;
  line-height: 1.7;
  background: #fff;
}

/* navbar */
.navbar-brand {
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.navbar {
  box-shadow: 0 1px 3px rgba(0,0,0,.15);
}

/* hero */
.ep-hero {
  background: linear-gradient(135deg, var(--ep-primary) 0%, var(--ep-primary-dark) 100%);
  padding: 2rem 0 1.5rem;
  margin-bottom: 0;
}

.ep-hero h1 {
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.3;
}

.ep-hero .ep-breadcrumb a,
.ep-hero .ep-breadcrumb span {
  color: rgba(255,255,255,.75);
  font-size: .875rem;
  text-decoration: none;
}
.ep-hero .ep-breadcrumb a:hover { color: #fff; }
.ep-hero .ep-breadcrumb .sep { margin: 0 .4rem; }

/* cta */
.btn-ep-cta {
  background: var(--ep-success);
  border: none;
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  padding: .75rem 1.5rem;
  border-radius: .5rem;
  transition: background .2s, transform .1s;
  display: inline-block;
  text-decoration: none;
}
.btn-ep-cta:hover {
  background: #057a55;
  color: #fff;
  transform: translateY(-1px);
}

/* layout */
.ep-content {
  padding-top: 2rem;
  padding-bottom: 3rem;
}

.ep-content h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ep-dark);
  margin-top: 2rem;
  margin-bottom: .75rem;
  border-left: 3px solid var(--ep-primary);
  padding-left: .75rem;
}

.ep-content h2:first-child { margin-top: 0; }

.ep-content p { margin-bottom: 1rem; }

.ep-content ul {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.ep-content ul li { margin-bottom: .4rem; }

/* sidebar */
.ep-sidebar { position: sticky; top: 80px; }

.ep-card {
  background: #fff;
  border: 1px solid var(--ep-border);
  border-radius: .75rem;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

.ep-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ep-dark);
  margin-bottom: .75rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--ep-primary);
}

/* nearby list */
.ep-nearby-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ep-nearby-list li {
  border-bottom: 1px solid var(--ep-border);
  padding: .4rem 0;
}

.ep-nearby-list li:last-child { border-bottom: none; }

.ep-nearby-list a {
  color: var(--ep-primary);
  text-decoration: none;
  font-size: .9rem;
  display: flex;
  justify-content: space-between;
}

.ep-nearby-list a:hover { text-decoration: underline; }

.ep-dist {
  color: var(--ep-gray);
  font-size: .8rem;
  white-space: nowrap;
}

/* vhu cards */
.ep-vhu-card {
  background: var(--ep-light);
  border: 1px solid var(--ep-border);
  border-radius: .5rem;
  padding: 1rem;
  margin-bottom: .75rem;
}

.ep-vhu-card strong {
  display: block;
  color: var(--ep-dark);
  font-size: .95rem;
  margin-bottom: .2rem;
}

.ep-vhu-card .ep-vhu-addr {
  color: var(--ep-gray);
  font-size: .85rem;
  line-height: 1.4;
}

.ep-vhu-badge {
  display: inline-block;
  background: #def7ec;
  color: #03543f;
  font-size: .75rem;
  font-weight: 600;
  padding: .15rem .5rem;
  border-radius: 999px;
  margin-top: .3rem;
}

/* stats */
.ep-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .5rem;
  margin-bottom: 1rem;
}

.ep-stat-box {
  background: var(--ep-light);
  border: 1px solid var(--ep-border);
  border-radius: .5rem;
  padding: .6rem .75rem;
  text-align: center;
}

.ep-stat-box .val {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ep-primary);
  display: block;
}

.ep-stat-box .lbl {
  font-size: .75rem;
  color: var(--ep-gray);
  display: block;
}

/* faq */
.ep-faq .accordion-button {
  font-weight: 600;
  font-size: .95rem;
  background: var(--ep-light);
  color: var(--ep-dark);
}

.ep-faq .accordion-button:not(.collapsed) {
  background: #eff6ff;
  color: var(--ep-primary);
  box-shadow: none;
}

.ep-faq .accordion-body {
  font-size: .92rem;
  color: #374151;
}

/* dept grid */
.ep-dept-grid {
  column-count: 2;
  column-gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

@media (min-width: 768px) {
  .ep-dept-grid { column-count: 3; }
}

.ep-dept-grid li { break-inside: avoid; margin-bottom: .35rem; }

.ep-dept-grid a {
  color: var(--ep-primary);
  text-decoration: none;
  font-size: .9rem;
}

.ep-dept-grid a:hover { text-decoration: underline; }

/* city grid */
.ep-city-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: .4rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.ep-city-grid li a {
  display: block;
  padding: .35rem .6rem;
  background: var(--ep-light);
  border: 1px solid var(--ep-border);
  border-radius: .375rem;
  color: var(--ep-primary);
  font-size: .85rem;
  text-decoration: none;
  transition: background .15s;
}

.ep-city-grid li a:hover { background: #eff6ff; }

/* map */
.ep-map-wrap {
  border-radius: .5rem;
  overflow: hidden;
  border: 1px solid var(--ep-border);
  margin-bottom: 1rem;
}

.ep-map-wrap iframe {
  display: block;
  width: 100%;
  height: 200px;
}

/* footer */
footer.ep-footer {
  background: var(--ep-dark);
  color: rgba(255,255,255,.7);
  padding: 2.5rem 0 1.5rem;
  font-size: .875rem;
}

footer.ep-footer a {
  color: rgba(255,255,255,.7);
  text-decoration: none;
}

footer.ep-footer a:hover { color: #fff; }

.ep-footer-brand {
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
  display: block;
  margin-bottom: .5rem;
}

.ep-footer-links { list-style: none; padding: 0; margin: 0; }
.ep-footer-links li { margin-bottom: .3rem; }

.ep-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: 2rem;
  padding-top: 1rem;
  text-align: center;
  font-size: .8rem;
}

/* responsive */
@media (max-width: 767.98px) {
  .ep-hero { padding: 1.25rem 0 1rem; }
  .ep-stats { grid-template-columns: 1fr 1fr; }
  .ep-sidebar { position: static; margin-top: 1.5rem; }
}

/* lazy images */
img.ep-lazy { opacity: 0; transition: opacity .3s; }
img.ep-lazy.loaded { opacity: 1; }

/* print */
@media print {
  .navbar, .ep-sidebar, footer { display: none; }
}
