/* ===========================
   EDINTERN - Global Stylesheet
   =========================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ── CSS Variables ── */
:root {
  --navy:       #1a2e6c;
  --navy-dark:  #0f1d4a;
  --navy-light: #2a4098;
  --gold:       #f0a500;
  --gold-light: #ffc84a;
  --white:      #ffffff;
  --off-white:  #f5f7fc;
  --text:       #1e1e2d;
  --muted:      #6b7298;
  --border:     #dce3f5;
  --shadow-sm:  0 2px 10px rgba(26,46,108,.08);
  --shadow-md:  0 8px 30px rgba(26,46,108,.14);
  --shadow-lg:  0 20px 60px rgba(26,46,108,.18);
  --radius:     12px;
  --radius-sm:  8px;
  --transition: .3s cubic-bezier(.4,0,.2,1);
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--off-white);
  color: var(--text);
  font-size: 15px;
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  color: var(--navy);
  line-height: 1.3;
}

a { color: var(--navy); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold); }

/* ── Navbar ── */
.ed-navbar {
  background: var(--navy-dark);
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0,0,0,.3);
}

.ed-navbar .navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
}

.ed-navbar .brand-logo {
  height: 44px;
  border-radius: 6px;
}

.ed-navbar .brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--white);
  letter-spacing: 1px;
}

.ed-navbar .brand-name span {
  color: var(--gold);
}

.ed-navbar .navbar-nav .nav-link {
  color: rgba(255,255,255,.85) !important;
  font-weight: 500;
  font-size: .9rem;
  letter-spacing: .4px;
  padding: 1.2rem .9rem !important;
  position: relative;
  transition: color var(--transition);
}

.ed-navbar .navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: var(--gold);
  border-radius: 3px 3px 0 0;
  transition: width var(--transition);
}

.ed-navbar .navbar-nav .nav-link:hover,
.ed-navbar .navbar-nav .nav-link.active {
  color: var(--gold) !important;
}

.ed-navbar .navbar-nav .nav-link:hover::after,
.ed-navbar .navbar-nav .nav-link.active::after {
  width: 70%;
}

.ed-navbar .navbar-toggler {
  border: 1px solid rgba(255,255,255,.3);
  padding: 6px 10px;
}

.ed-navbar .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,0.85)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ── Page Hero Banner ── */
.ed-hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-light) 100%);
  padding: 3.5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.ed-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.ed-hero h1, .ed-hero h2 {
  color: var(--white);
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  position: relative;
}

.ed-hero p {
  color: rgba(255,255,255,.75);
  font-size: 1.05rem;
  max-width: 600px;
  margin: .75rem auto 0;
  position: relative;
}

.ed-hero .gold-bar {
  width: 60px;
  height: 4px;
  background: var(--gold);
  border-radius: 2px;
  margin: 1rem auto 0;
  position: relative;
}

/* ── Cards ── */
.ed-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
  overflow: hidden;
}

.ed-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.ed-card-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  padding: 1.1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: .75rem;
}

.ed-card-header h3 {
  color: var(--white);
  font-size: 1.05rem;
  margin: 0;
}

.ed-card-header .card-icon {
  width: 34px;
  height: 34px;
  background: rgba(255,255,255,.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.ed-card-body {
  padding: 1.4rem 1.5rem;
}

.ed-card-body ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ed-card-body ul li {
  padding: .45rem 0;
  border-bottom: 1px solid var(--border);
  font-size: .9rem;
  display: flex;
  align-items: center;
  gap: .5rem;
  color: var(--text);
}

.ed-card-body ul li:last-child { border-bottom: none; }

.ed-card-body ul li::before {
  content: '▸';
  color: var(--gold);
  font-size: .75rem;
  flex-shrink: 0;
}

/* ── Forms ── */
.ed-form-wrap {
  background: var(--white);
  max-width: 820px;
  margin: 3rem auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.ed-form-section {
  padding: 2rem 2.5rem;
}

.ed-form-section-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: .8px;
  margin-bottom: 1.2rem;
  padding-bottom: .6rem;
  border-bottom: 2px solid var(--border);
  font-family: 'DM Sans', sans-serif;
}

.ed-form-section-title span {
  color: var(--gold);
}

.form-label {
  font-weight: 500;
  color: var(--text);
  font-size: .88rem;
  margin-bottom: .35rem;
}

.form-control, .form-select {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .65rem 1rem;
  font-size: .92rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  font-family: 'DM Sans', sans-serif;
}

.form-control:focus, .form-select:focus {
  border-color: var(--navy-light);
  box-shadow: 0 0 0 3px rgba(42,64,152,.12);
  outline: none;
}

.form-control::placeholder { color: #aab0cc; }

/* Radio & Checkbox */
.form-check-input {
  border-color: var(--border);
  width: 1.1em;
  height: 1.1em;
  margin-top: .2em;
}
.form-check-input:checked {
  background-color: var(--navy);
  border-color: var(--navy);
}
.form-check-label { font-size: .92rem; }

/* ── Buttons ── */
.btn-ed-primary {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  padding: .8rem 2.5rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .4px;
  cursor: pointer;
  transition: all var(--transition);
  font-family: 'DM Sans', sans-serif;
  position: relative;
  overflow: hidden;
}

.btn-ed-primary::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 0; height: 0;
  background: rgba(255,255,255,.15);
  border-radius: 50%;
  transform: translate(-50%,-50%);
  transition: width .5s, height .5s, opacity .5s;
  opacity: 0;
}

.btn-ed-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(26,46,108,.35);
  color: var(--white);
}

.btn-ed-primary:hover::after {
  width: 300px; height: 300px; opacity: 1;
}

/* ── Slider ── */
.ed-slider {
  position: relative;
  background: var(--navy-dark);
  overflow: hidden;
  height: 380px;
}

.ed-slide {
  display: none;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

.ed-slide.active { display: block; animation: fadeSlide .8s ease; }

@keyframes fadeSlide {
  from { opacity: 0; transform: scale(1.04); }
  to   { opacity: 1; transform: scale(1); }
}

.ed-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .6;
}

.ed-slide-caption {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: var(--white);
  width: 90%;
  max-width: 700px;
}

.ed-slide-caption h2 {
  color: var(--white);
  font-size: clamp(1.4rem, 4vw, 2.4rem);
  text-shadow: 0 2px 20px rgba(0,0,0,.5);
}

.ed-slide-caption p {
  font-size: 1rem;
  opacity: .85;
  margin-top: .4rem;
}

.ed-slider-dots {
  position: absolute;
  bottom: .9rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.ed-slider-dots .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  cursor: pointer;
  transition: all var(--transition);
}

.ed-slider-dots .dot.active {
  background: var(--gold);
  width: 24px;
  border-radius: 4px;
}

/* ── Intro Strip ── */
.ed-intro {
  background: var(--white);
  border-left: 5px solid var(--gold);
  padding: 1.4rem 2rem;
  margin: 2rem auto;
  max-width: 92%;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  box-shadow: var(--shadow-sm);
  font-size: 1rem;
  color: var(--muted);
}

.ed-intro strong { color: var(--navy); }

/* ── About page ── */
.info-box {
  background: var(--off-white);
  border-left: 4px solid var(--navy-light);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1.1rem 1.4rem;
  margin-top: .75rem;
  font-size: .92rem;
}

.info-box p { margin: .25rem 0; }
.info-box strong { color: var(--navy); }

/* ── Login ── */
.ed-login-wrap {
  min-height: calc(100vh - 70px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: linear-gradient(160deg, var(--off-white) 60%, #dce4f5 100%);
}

.ed-login-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 420px;
  overflow: hidden;
}

.ed-login-top {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy-light));
  padding: 2rem;
  text-align: center;
}

.ed-login-top h2 { color: var(--white); font-size: 1.6rem; margin-top: .5rem; }
.ed-login-top p  { color: rgba(255,255,255,.7); font-size: .88rem; margin: .25rem 0 0; }

.ed-login-body { padding: 2rem 2.2rem 2.5rem; }

.ed-input-group {
  position: relative;
  margin-bottom: 1.2rem;
}

.ed-input-group .input-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: .95rem;
  pointer-events: none;
}

.ed-input-group .form-control {
  padding-left: 2.6rem;
}

/* ── Footer ── */
.ed-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,.6);
  text-align: center;
  padding: 1.4rem;
  font-size: .85rem;
  margin-top: 3rem;
}

.ed-footer strong { color: var(--gold); }

/* ── Badges ── */
.ed-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy-dark);
  font-size: .72rem;
  font-weight: 700;
  padding: .2rem .7rem;
  border-radius: 20px;
  letter-spacing: .4px;
  text-transform: uppercase;
}

/* ── Utility ── */
.section-gap { padding: 2.5rem 0; }
.text-gold { color: var(--gold) !important; }
.text-navy { color: var(--navy) !important; }
.bg-navy   { background: var(--navy) !important; }
.divider   { height: 1px; background: var(--border); margin: 1.5rem 0; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .ed-slider { height: 240px; }
  .ed-form-section { padding: 1.5rem; }
  .ed-login-body { padding: 1.5rem; }
}
