:root {
  --ink: #10231f;
  --teal: #0b5c55;
  --teal-deep: #073f3b;
  --gold: #c2a15a;
  --sand: #e8efe9;
  --paper: #f4f8f5;
  --mist: #d7e4df;
  --danger: #9b2c2c;
  --radius: 14px;
  --shadow: 0 18px 50px rgba(7, 63, 59, 0.12);
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Outfit", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(circle at top right, rgba(194, 161, 90, 0.18), transparent 28%),
    linear-gradient(180deg, #f7fbf8 0%, var(--paper) 40%, #eef5f1 100%);
  min-height: 100vh;
  line-height: 1.6;
}

a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-deep); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 4vw;
  backdrop-filter: blur(14px);
  background: rgba(244, 248, 245, 0.9);
  border-bottom: 1px solid rgba(11, 92, 85, 0.08);
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  color: var(--ink);
}
.logo img {
  display: block;
  height: 58px;
  width: auto;
}

.site-nav { display: flex; flex-wrap: wrap; gap: 0.85rem 1rem; align-items: center; }
.site-nav a { color: #274740; font-size: 0.92rem; font-weight: 500; }
.nav-cta {
  background: var(--teal);
  color: white !important;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
}
.nav-toggle { display: none; border: 0; background: transparent; font-size: 1.4rem; }

.hero {
  min-height: calc(100vh - 74px);
  display: grid;
  align-items: end;
  padding: 4rem 4vw 5rem;
  background:
    linear-gradient(120deg, rgba(7, 63, 59, 0.88), rgba(11, 92, 85, 0.55)),
    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.05'%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"),
    linear-gradient(160deg, #0b5c55, #1f6f4a 55%, #c2a15a);
  color: #f7fbf8;
}
.hero-content { max-width: 760px; }
.hero-logo {
  display: block;
  height: 132px;
  width: auto;
  margin: 0 0 1.1rem;
  padding: 0.35rem 0.55rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}
.brand-mark {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  margin: 0 0 0.6rem;
  letter-spacing: 0.02em;
  line-height: 1;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.6rem);
  font-weight: 600;
  margin: 0 0 1rem;
  max-width: 18ch;
}
.lede { max-width: 58ch; font-size: 1.05rem; opacity: 0.95; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.6rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 0.7rem 1.25rem;
  font-weight: 600;
  cursor: pointer;
}
.btn-primary { background: var(--gold); color: #1c2c16; }
.btn-primary:hover { filter: brightness(1.05); color: #1c2c16; }
.btn-ghost { background: transparent; color: white; border: 1px solid rgba(255,255,255,0.45); }
.btn-ghost:hover { background: rgba(255,255,255,0.08); color: white; }

.section, .page-hero, .form-wrap { padding: 3.5rem 4vw; }
.page-hero h1, .section-head h2, .side-panel h2, .mission-grid h2 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.01em;
}
.page-hero { padding-bottom: 1rem; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 0.5rem; color: var(--teal-deep); }
.section-head { margin-bottom: 1.6rem; max-width: 60ch; }
.section-alt { background: rgba(215, 228, 223, 0.35); }

.dept-grid, .faculty-grid, .portal-grid, .mission-grid {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.dept-link, .portal-card, .faculty-grid article, .mission-grid article, .side-panel, .course-row {
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(11, 92, 85, 0.1);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}
.dept-link h3, .portal-card h2, .faculty-grid h3 { margin-top: 0; color: var(--teal-deep); font-family: var(--font-display); }
.feature-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}
.feature-strip div {
  padding: 1.2rem;
  border-left: 3px solid var(--gold);
  background: rgba(255,255,255,0.55);
}
.feature-strip strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--teal-deep);
}

.news-list article { padding: 1rem 0; border-bottom: 1px solid var(--mist); }
.news-list time, .meta { color: #5b736c; font-size: 0.9rem; }
.course-list { display: grid; gap: 1rem; }
.course-row { display: flex; justify-content: space-between; gap: 1rem; align-items: center; flex-wrap: wrap; }
.course-fee { text-align: right; display: grid; gap: 0.6rem; justify-items: end; }
.fee-big { font-family: var(--font-display); font-size: 2rem; color: var(--teal-deep); }
.detail-grid { display: grid; grid-template-columns: 1.5fr 0.9fr; gap: 1.5rem; }
.filter-bar { margin-bottom: 1.2rem; }
.filter-bar select, .stack-form input, .stack-form select, .stack-form textarea,
.admin-form input, .admin-form select, .admin-form textarea {
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--mist);
  border-radius: 10px;
  background: white;
  font: inherit;
}
.stack-form, .admin-form { display: grid; gap: 0.9rem; max-width: 560px; }
.auth-page {
  min-height: calc(100vh - 280px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.4rem 4vw 3.5rem;
}
.auth-card {
  width: 100%;
  max-width: 440px;
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(11, 92, 85, 0.1);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 2rem 1.7rem 1.8rem;
  text-align: center;
}
.auth-card-wide { max-width: 520px; }
.auth-logo {
  display: block;
  height: 92px;
  width: auto;
  margin: 0 auto 0.85rem;
}
.auth-kicker {
  margin: 0 0 0.25rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--teal);
  font-weight: 600;
}
.auth-card h1 {
  font-family: var(--font-display);
  color: var(--teal-deep);
  font-size: 2.1rem;
  margin: 0 0 0.4rem;
}
.auth-lead {
  margin: 0 0 1.3rem;
  color: #5b736c;
}
.auth-form {
  max-width: none;
  text-align: left;
}
.auth-form .btn { width: 100%; margin-top: 0.2rem; }
.auth-check {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 500;
}
.auth-check input {
  width: auto;
  margin: 0;
}
.auth-links {
  display: grid;
  gap: 0.4rem;
  margin-top: 0.35rem;
  text-align: center;
}

/* Default Identity login (until the custom page is rebuilt) */
main:has(#account) {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2.4rem 4vw 3.5rem;
}
main:has(#account) > h1,
main:has(#account) .row {
  width: 100%;
  max-width: 440px;
}
main:has(#account) > h1 {
  font-family: var(--font-display);
  color: var(--teal-deep);
  text-align: center;
}
main:has(#account) .col-md-4,
main:has(#account) .col-lg-6,
main:has(#account) section {
  width: 100%;
}
main:has(#account) .row > div:not(:has(#account)) { display: none; }
main:has(#account) form#account {
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(11, 92, 85, 0.1);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 1.6rem 1.4rem;
}
main:has(#account) h2 {
  margin: 0 0 1rem;
  text-align: center;
  font-size: 1rem;
  font-weight: 500;
  color: #5b736c;
}
main:has(#account) hr { display: none; }
main:has(#account) #resend-confirmation { display: none; }
main:has(#account) .form-floating {
  display: flex;
  flex-direction: column-reverse;
  gap: 0.35rem;
  margin-bottom: 0.9rem;
}
main:has(#account) .form-control {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--mist);
  border-radius: 10px;
  background: white;
  font: inherit;
}
main:has(#account) button[type="submit"] { width: 100%; }
.alert.success { background: #e4f5ea; color: #1d5c38; padding: 0.8rem 1rem; border-radius: 10px; margin-bottom: 1rem; }
.alert.error { background: #f5d6d6; color: #7a1f1f; padding: 0.8rem 1rem; border-radius: 10px; margin-bottom: 1rem; }
.video-player-wrap { max-width: 960px; background: #0b1f1c; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.lecture-video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; border: 0; }
.data-table { width: 100%; border-collapse: collapse; background: rgba(255,255,255,0.7); }
.data-table th, .data-table td { padding: 0.85rem; border-bottom: 1px solid var(--mist); text-align: left; }
.faq-list details { background: white; border-radius: 12px; padding: 0.9rem 1rem; margin-bottom: 0.7rem; border: 1px solid var(--mist); }
.site-footer {
  margin-top: 2rem;
  padding: 2.5rem 4vw;
  background: var(--teal-deep);
  color: #e8f2ef;
  display: grid;
  gap: 1rem;
}
.footer-logo {
  display: block;
  height: 86px;
  width: auto;
  margin-bottom: 0.85rem;
  padding: 0.3rem 0.45rem;
  background: #fff;
  border-radius: 10px;
}
.receipt-logo {
  display: block;
  height: 72px;
  width: auto;
  margin-bottom: 0.7rem;
}
.site-footer a { color: #f0d9a0; display: block; margin-bottom: 0.35rem; }
.copy { opacity: 0.75; font-size: 0.9rem; }
.demo-creds { opacity: 0.8; font-size: 0.9rem; }
.text-link { font-weight: 600; }
.prose { max-width: 70ch; }
.prose p { margin: 0 0 1rem; }
.founder-block {
  max-width: 70ch;
}
.founder-block h2 {
  font-family: var(--font-display);
  color: var(--teal-deep);
  margin-top: 0;
}
.founder-sign {
  margin-top: 1.4rem;
  color: var(--teal-deep);
}
.contact-details {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  padding-bottom: 0;
}
.contact-details article {
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(11, 92, 85, 0.1);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}
.contact-details h2 {
  font-family: var(--font-display);
  color: var(--teal-deep);
  margin: 0 0 0.4rem;
  font-size: 1.35rem;
}
.contact-details p { margin: 0; }
.portal-shell { padding: 2rem 4vw 3rem; }
.portal-shell h1 { font-family: var(--font-display); color: var(--teal-deep); }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0.8rem; margin: 1.2rem 0 2rem; }
.stat-grid div { background: white; border-radius: 12px; padding: 1rem; border: 1px solid var(--mist); }
.stat-grid strong { display: block; font-size: 1.6rem; font-family: var(--font-display); color: var(--teal); }
.admin-nav { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-bottom: 1.5rem; }
.admin-nav a { padding: 0.45rem 0.8rem; background: white; border-radius: 999px; border: 1px solid var(--mist); }
.pay-method-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.pay-method-grid ul { margin: 0.4rem 0 0; padding-left: 1.1rem; }
.info-box { background: #eef6f2; border: 1px solid var(--mist); border-radius: 12px; padding: 0.9rem 1rem; }
.hidden-block { display: none !important; }
.status-pill { display: inline-block; padding: 0.15rem 0.55rem; border-radius: 999px; font-size: 0.85rem; background: var(--mist); }
.status-pending { background: #f4e6c4; color: #6a4f10; }
.status-verified, .status-confirmed, .status-paid { background: #d8f0e0; color: #1d5c38; }
.status-rejected, .status-failed { background: #f5d6d6; color: #7a1f1f; }
.receipt-card { background: white; border: 1px solid var(--mist); border-radius: 16px; padding: 1.5rem; box-shadow: var(--shadow); max-width: 760px; }
.receipt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0.9rem 1.2rem; }
.receipt-grid dt { font-size: 0.8rem; color: #5b736c; }
.receipt-grid dd { margin: 0.15rem 0 0; font-weight: 600; }
.text-danger { color: var(--danger); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    background: #f4f8f5;
    padding: 1rem 4vw 1.4rem;
    flex-direction: column;
    align-items: flex-start;
  }
  body.nav-open .site-nav { display: flex; }
  .detail-grid { grid-template-columns: 1fr; }
  .hero { align-items: center; }
}
