:root {
  --ep-primary: #1e3a5f;
  --ep-primary-dark: #152a45;
  --ep-accent: #0ea5a4;
  --ep-accent-light: #5eead4;
  --ep-gold: #f59e0b;
  --ep-bg: #f4f7fb;
  --ep-text: #1f2937;
  --ep-muted: #6b7280;
  --ep-radius: 1rem;
  --ep-shadow: 0 10px 40px rgba(30, 58, 95, 0.08);
}

* { box-sizing: border-box; }

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--ep-text);
  background: var(--ep-bg);
  line-height: 1.6;
}

h1, h2, h3, .display-font {
  font-family: 'Playfair Display', serif;
}

.site-navbar {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(30, 58, 95, 0.08);
  padding-block: 0.85rem;
}

.site-brand {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: var(--ep-primary) !important;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-icon {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 0.65rem;
  background: linear-gradient(135deg, var(--ep-accent), var(--ep-primary));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.navbar-nav .nav-link {
  color: var(--ep-text);
  font-weight: 500;
  padding: 0.5rem 0.85rem !important;
  border-radius: 0.5rem;
}

.navbar-nav .nav-link.active,
.navbar-nav .nav-link:hover {
  color: var(--ep-accent);
}

.btn-accent {
  background: linear-gradient(135deg, var(--ep-accent), #0891b2);
  border: none;
  color: #fff;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.55rem 1.25rem;
}

.btn-accent:hover {
  color: #fff;
  filter: brightness(1.05);
}

.btn-primary-soft {
  background: var(--ep-primary);
  border: none;
  color: #fff;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.65rem 1.5rem;
}

.btn-primary-soft:hover {
  background: var(--ep-primary-dark);
  color: #fff;
}

.btn-outline-soft {
  border: 2px solid rgba(255, 255, 255, 0.85);
  color: #fff;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.65rem 1.5rem;
}

.btn-outline-soft:hover {
  background: #fff;
  color: var(--ep-primary);
}

.hero-section {
  background:
    radial-gradient(circle at top right, rgba(14, 165, 164, 0.25), transparent 35%),
    linear-gradient(135deg, #1e3a5f 0%, #0f766e 100%);
  color: #fff;
  padding: 5rem 0 6rem;
  position: relative;
  overflow: hidden;
}

.hero-section::after {
  content: '';
  position: absolute;
  inset: auto -10% -30% auto;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-size: 0.875rem;
}

.hero-stat {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--ep-radius);
  padding: 1rem 1.25rem;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  margin-bottom: 0.5rem;
}

.section-subtitle {
  color: var(--ep-muted);
  max-width: 640px;
}

.feature-card,
.college-card,
.form-card,
.dashboard-card {
  background: #fff;
  border: 1px solid rgba(30, 58, 95, 0.08);
  border-radius: calc(var(--ep-radius) + 0.25rem);
  box-shadow: var(--ep-shadow);
}

.feature-card {
  padding: 1.75rem;
  height: 100%;
}

.feature-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.85rem;
  background: rgba(14, 165, 164, 0.12);
  color: var(--ep-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.college-card {
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
}

.college-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(30, 58, 95, 0.12);
}

.college-card-image {
  height: 190px;
  background: linear-gradient(135deg, #dbeafe, #ccfbf1);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.college-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.college-card-body {
  padding: 1.25rem;
}

.college-meta {
  color: var(--ep-muted);
  font-size: 0.925rem;
}

.tag {
  display: inline-block;
  background: rgba(14, 165, 164, 0.12);
  color: #0f766e;
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  font-size: 0.8rem;
  font-weight: 600;
}

.page-header {
  background: linear-gradient(135deg, #1e3a5f, #0f766e);
  color: #fff;
  padding: 3rem 0;
}

.form-card,
.dashboard-card {
  padding: 2rem;
}

.form-label {
  font-weight: 600;
  color: var(--ep-primary);
}

.form-control,
.form-select {
  border-radius: 0.75rem;
  border-color: rgba(30, 58, 95, 0.15);
  padding: 0.75rem 1rem;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--ep-accent);
  box-shadow: 0 0 0 0.2rem rgba(14, 165, 164, 0.15);
}

.credentials-box {
  background: linear-gradient(135deg, rgba(14, 165, 164, 0.08), rgba(30, 58, 95, 0.06));
  border: 1px solid rgba(14, 165, 164, 0.2);
  border-radius: var(--ep-radius);
  padding: 1.25rem;
}

.detail-hero-image {
  border-radius: calc(var(--ep-radius) + 0.5rem);
  overflow: hidden;
  min-height: 280px;
  background: linear-gradient(135deg, #dbeafe, #ccfbf1);
}

.detail-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.info-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.info-list li {
  display: flex;
  gap: 0.75rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(30, 58, 95, 0.08);
}

.info-list li:last-child {
  border-bottom: 0;
}

.info-list i {
  color: var(--ep-accent);
  margin-top: 0.15rem;
}

.site-footer {
  background: var(--ep-primary-dark);
  color: #fff;
  padding: 3rem 0 2rem;
  margin-top: 4rem;
}

.footer-brand {
  font-family: 'Playfair Display', serif;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
}

.footer-links a:hover {
  color: #fff;
}

.video-frame {
  aspect-ratio: 16 / 9;
  border: 0;
  width: 100%;
  border-radius: var(--ep-radius);
}

.text-teal { color: var(--ep-accent); }

.home-carousel .carousel-item img {
  height: 520px;
  object-fit: cover;
  filter: brightness(0.88);
}

.home-carousel .carousel-caption {
  bottom: 3rem;
  left: 8%;
  right: 8%;
  text-align: left;
  padding: 1.5rem 1.75rem;
  background: rgba(15, 23, 42, 0.45);
  border-radius: 1rem;
  backdrop-filter: blur(4px);
}

.home-carousel .carousel-caption h2 {
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  margin-bottom: 0.75rem;
}

.hero-strip {
  background: #fff;
  border-bottom: 1px solid rgba(30, 58, 95, 0.08);
}

.hero-stat-light {
  background: var(--ep-bg);
  border: 1px solid rgba(30, 58, 95, 0.08);
  border-radius: 0.85rem;
  padding: 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.hero-stat-light strong {
  font-size: 1.35rem;
  color: var(--ep-primary);
}

.hero-stat-light span {
  color: var(--ep-muted);
  font-size: 0.9rem;
}

.pagination .page-link {
  border-radius: 0.5rem;
  margin: 0 0.15rem;
  color: var(--ep-primary);
}

.pagination .page-item.active .page-link {
  background: var(--ep-accent);
  border-color: var(--ep-accent);
}

@media (max-width: 767.98px) {
  .home-carousel .carousel-item img {
    height: 320px;
  }

  .home-carousel .carousel-caption {
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    padding: 1rem;
  }

  .hero-section {
    padding: 3.5rem 0 4rem;
  }

  .form-card,
  .dashboard-card {
    padding: 1.25rem;
  }
}
