
:root {
  --primary: #003b72;
  --primary-dark: #00284d;
  --accent: #f5af19;
  --accent-soft: rgba(245, 175, 25, 0.12);
  --bg: #f4f6fb;
  --bg-alt: #ffffff;
  --text: #1f2933;
  --muted: #6b7280;
  --border: #e0e7ff;
  --shadow-soft: 0 14px 30px rgba(15, 23, 42, 0.12);
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-pill: 999px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top left, rgba(0,59,114,0.06), transparent 55%),
              radial-gradient(circle at bottom right, rgba(245,175,25,0.09), transparent 55%),
              var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* Utility */

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.tagline {
  font-size: 0.875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

/* Header */

.site-header {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-logo {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: radial-gradient(circle at top, #ffffff, #e5edff);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(15,23,42,0.18);
}

.brand-logo img {
  max-width: 40px;
  max-height: 40px;
}

.brand-text h1 {
  font-size: 1.06rem;
  margin: 0;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  color: var(--primary-dark);
}

.brand-text span {
  font-size: 0.82rem;
  color: var(--muted);
}

/* Navigation */

.nav-wrapper {
  border-top: 1px solid rgba(15, 23, 42, 0.04);
}

.main-nav {
  background: linear-gradient(90deg, var(--primary-dark), var(--primary));
}

.main-nav .nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.25rem;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: block;
  padding: 0.8rem 1rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255,255,255,0.88);
  text-decoration: none;
  border-radius: var(--radius-pill);
  transition: background 0.25s ease, transform 0.15s ease, box-shadow 0.25s ease;
}

.nav-link:hover {
  background: rgba(15, 23, 42, 0.32);
  transform: translateY(-1px);
  box-shadow: 0 10px 16px rgba(15, 23, 42, 0.25);
}

.nav-link.active {
  background: #ffffff;
  color: var(--primary-dark);
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.32);
}

/* Dropdown */

.nav-item.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown-menu {
  position: absolute;
  top: 110%;
  left: 0;
  min-width: 210px;
  background: #ffffff;
  border-radius: 16px;
  padding: 0.35rem 0.4rem;
  box-shadow: 0 18px 45px rgba(15,23,42,0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  pointer-events: none;
  transition: all 0.2s ease;
  z-index: 999;
}

.dropdown-menu li a {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.8rem;
  border-radius: 12px;
  font-size: 0.9rem;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}

.dropdown-menu li a span.badge {
  font-size: 0.7rem;
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}

.dropdown-menu li a:hover {
  background: rgba(15, 23, 42, 0.03);
}

/* Slider */

.hero-slider {
  position: relative;
  overflow: hidden;
  height: 4in;
  max-height: 380px;
  margin: 0 auto;
  border-radius: 0 0 32px 32px;
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.28);
  background: radial-gradient(circle at center, #1e293b, #020617);
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.85s ease-in-out, transform 10s linear;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1.08);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(15,23,42,0.72), rgba(15,23,42,0.25));
}

.hero-content {
  position: relative;
  z-index: 2;
  color: white;
  height: 100%;
  display: flex;
  align-items: center;
}

.hero-copy {
  padding: 0 8%;
  max-width: 620px;
}

.hero-copy h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin: 0 0 0.5rem;
}

.hero-copy p {
  margin: 0.3rem 0 1.1rem;
  max-width: 30rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-size: 0.8rem;
}

.hero-pill {
  padding: 0.25rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.32);
  background: radial-gradient(circle at top left, rgba(15,23,42,0.7), transparent 55%);
}

/* Slider dots */

.slider-dots {
  position: absolute;
  right: 1.2rem;
  bottom: 1.1rem;
  display: flex;
  gap: 0.4rem;
  z-index: 3;
}

.slider-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.55);
  background: rgba(15,23,42,0.3);
  cursor: pointer;
  transition: all 0.2s ease;
}

.slider-dot.active {
  width: 22px;
  background: #ffffff;
}

/* Page layout */

.page-shell {
  padding: 2.4rem 0 3.4rem;
}

.page-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.page-heading h2 {
  margin: 0;
  font-size: 1.6rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.page-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Card helpers */

.card {
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 1.9rem 2rem;
  margin-bottom: 1.7rem;
}

.card-soft {
  background: rgba(255,255,255,0.8);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: 0 18px 50px rgba(15,23,42,0.12);
}

/* Home: Principal section */

.principal-section {
  display: grid;
  grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
  gap: 2.2rem;
  align-items: flex-start;
}

.principal-photo-wrapper {
  position: relative;
  max-width: 280px;
}

.principal-photo {
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 26px 60px rgba(15,23,42,0.4);
  border: 3px solid rgba(255,255,255,0.85);
}

.principal-photo img {
  display: block;
  width: 100%;
  height: auto;
}

.principal-badge {
  position: absolute;
  bottom: -14px;
  left: 18%;
  transform: translateY(50%);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 7px 25px rgba(15,23,42,0.35);
  font-size: 0.82rem;
}

.principal-badge strong {
  color: var(--primary-dark);
}

.principal-message h3 {
  margin-top: 0;
  margin-bottom: 0.4rem;
  font-size: 1.35rem;
}

.principal-message p {
  margin-top: 0.3rem;
}

/* Faculty page */

.faculty-groups {
  display: flex;
  flex-direction: column;
  gap: 1.9rem;
}

.faculty-group-title {
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.faculty-grid {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.faculty-card {
  display: grid;
  grid-template-columns: minmax(0, 215px) minmax(0, 1fr);
  gap: 1.4rem;
  padding: 1.2rem 1.4rem;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.93);
  border: 1px solid rgba(15,23,42,0.03);
  box-shadow: 0 16px 42px rgba(15,23,42,0.08);
}

.faculty-photo {
  border-radius: 22px;
  overflow: hidden;
  height: 220px;
  display: flex;
  align-items: stretch;
}

.faculty-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.faculty-meta h3 {
  margin: 0 0 0.1rem;
  font-size: 1.02rem;
}

.faculty-meta .designation {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 0.4rem;
}

.faculty-meta .qualification {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.15rem;
}

.faculty-meta .university {
  font-size: 0.9rem;
  color: var(--muted);
}

/* Programs page */

.programs-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 1.1fr);
  gap: 1.8rem;
}

.program-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.program-card {
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.25rem 1.25rem;
  background: #ffffff;
  border: 1px solid rgba(15,23,42,0.04);
  box-shadow: 0 18px 40px rgba(15,23,42,0.08);
}

.program-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.35rem;
}

.program-header h3 {
  margin: 0;
}

.program-type {
  font-size: 0.8rem;
  padding: 0.1rem 0.7rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
}

.program-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.9rem;
  margin-top: 0.45rem;
}

.program-columns h4 {
  margin: 0 0 0.35rem;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--muted);
}

.program-columns ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.9rem;
}

/* Programs sidebar */

.program-sidebar {
  background: radial-gradient(circle at top left, rgba(245,175,25,0.16), rgba(0,59,114,0.94));
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.5rem 1.6rem;
  color: #262d3e;
  box-shadow: 0 26px 60px rgba(15,23,42,0.45);
}

.program-sidebar h3 {
  margin-top: 0;
}

.program-sidebar ul {
  margin: 0.75rem 0 0;
  padding-left: 1.1rem;
  font-size: 0.9rem;
}

/* Admissions form */

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-group label {
  font-size: 0.9rem;
  color: var(--muted);
}

.form-control,
.form-select,
.form-file {
  border-radius: 10px;
  border: 1px solid var(--border);
  padding: 0.6rem 0.75rem;
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  background: rgba(255,255,255,0.9);
  transition: border 0.18s ease, box-shadow 0.18s ease, transform 0.06s ease;
}

.form-control:focus,
.form-select:focus,
.form-file:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px rgba(0,59,114,0.15);
  transform: translateY(-1px);
}

.form-help {
  font-size: 0.8rem;
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  border: none;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.12s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #ffffff;
  box-shadow: 0 16px 38px rgba(15,23,42,0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 50px rgba(15,23,42,0.45);
}

.btn-subtle {
  background: rgba(255,255,255,0.9);
  color: var(--primary-dark);
  border: 1px solid rgba(255,255,255,0.8);
}

.btn-subtle:hover {
  background: rgba(255,255,255,1);
}

/* Status chip */

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.1rem 0.7rem;
  border-radius: 999px;
  background: rgba(34,197,94,0.08);
  color: #15803d;
  font-size: 0.78rem;
}

/* Admin dashboard */

.auth-card {
  max-width: 420px;
  margin: 0 auto;
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 2.2fr);
  gap: 1.8rem;
}

.applications-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.applications-table thead {
  background: #f1f5f9;
}

.applications-table th,
.applications-table td {
  padding: 0.55rem 0.6rem;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}

.applications-table tbody tr:hover {
  background: #f9fafb;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.1rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  background: rgba(0,59,114,0.06);
  color: var(--primary-dark);
}

/* Students: timetable */

.embed-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #020617;
  box-shadow: 0 24px 60px rgba(15,23,42,0.36);
}

.embed-wrapper iframe,
.embed-wrapper object,
.embed-wrapper embed {
  width: 100%;
  height: 80vh;
  border: none;
}

/* Contact */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.8fr);
  gap: 1.8rem;
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-list li {
  margin-bottom: 0.7rem;
}

.contact-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.map-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 26px 60px rgba(15,23,42,0.46);
  border: 1px solid var(--border);
}

.map-frame iframe {
  width: 100%;
  height: 320px;
  border: none;
}

/* Announcements */

.announcement-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.announcement-item {
  padding: 0.85rem 0;
  border-bottom: 1px dashed #e2e8f0;
}

.announcement-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
}

/* Footer */

.site-footer {
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  background: #020617;
  color: rgba(226, 232, 240, 0.9);
  padding: 1.9rem 0 1.4rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.4rem;
  font-size: 0.86rem;
}

.footer-col h4 {
  margin-top: 0;
  margin-bottom: 0.6rem;
  font-size: 0.9rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.98);
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li a {
  color: rgba(226,232,240,0.9);
  text-decoration: none;
}

.footer-links li a:hover {
  text-decoration: underline;
}

.footer-bottom {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.78rem;
  color: rgba(148, 163, 184, 0.96);
}

/* Helpers */

.text-muted {
  color: var(--muted);
}

.text-right {
  text-align: right;
}

.hidden {
  display: none !important;
}

/* Responsive */

@media (max-width: 880px) {
  .site-header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .nav-inner {
    flex-wrap: wrap;
    padding-block: 0.4rem;
  }

  .hero-slider {
    border-radius: 0 0 24px 24px;
  }

  .principal-section {
    grid-template-columns: minmax(0, 1fr);
  }

  .principal-photo-wrapper {
    max-width: 260px;
    margin: 0 auto;
  }

  .faculty-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .programs-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-copy {
    padding-inline: 6%;
  }
}

@media (max-width: 600px) {
  .nav-list {
    flex-wrap: wrap;
  }

  .site-header-inner {
    padding-inline: 0.25rem;
  }

  .card {
    padding-inline: 1.4rem;
  }
}
