/* ===== THEME ===== */
:root {
  --brand-primary: #0f3d0f;
  --brand-primary-dark: #0b2d0b;
  --brand-accent: #f4c842;
  --brand-accent-dark: #e0b631;
  --brand-surface: #ffffff;
  --brand-muted: #f4f6f8;
  --text-primary: #1b1f24;
  --text-muted: #4b5563;
  --border: #d6dbe1;
  --shadow: 0 6px 18px rgba(15, 61, 15, 0.08);
  --nav-height: 62px;
}

html[data-theme="ocean"] {
  --brand-primary: #0b3c5d;
  --brand-primary-dark: #07293f;
  --brand-accent: #58b4ff;
  --brand-accent-dark: #3aa0f3;
  --brand-muted: #eef5fb;
}

html[data-theme="sunset"] {
  --brand-primary: #5c1a0b;
  --brand-primary-dark: #3f1208;
  --brand-accent: #ffb347;
  --brand-accent-dark: #f39a2b;
  --brand-muted: #fff4ec;
}

html[data-theme="slate"] {
  --brand-primary: #1f2937;
  --brand-primary-dark: #111827;
  --brand-accent: #a7f3d0;
  --brand-accent-dark: #6ee7b7;
  --brand-muted: #f3f4f6;
}

html[data-theme="violet"] {
  --brand-primary: #3b1d5a;
  --brand-primary-dark: #28133d;
  --brand-accent: #c4b5fd;
  --brand-accent-dark: #a78bfa;
  --brand-muted: #f6f3ff;
}

html[data-theme="emerald"] {
  --brand-primary: #064e3b;
  --brand-primary-dark: #043629;
  --brand-accent: #34d399;
  --brand-accent-dark: #10b981;
  --brand-muted: #ecfdf5;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  background: var(--brand-muted);
  color: var(--text-primary);
  line-height: 1.6;
  scroll-padding-top: var(--nav-height);
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

img {
  max-width: 100%;
  height: auto;
}

h1, h2, h3, h4 {
  margin: 0 0 10px;
  color: var(--brand-primary);
}

p {
  margin: 0 0 14px;
  color: var(--text-muted);
}

ul {
  margin: 0 0 14px 20px;
}

.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 20px 50px;
}

.content {
  text-align: center;
}

.container,
.section {
  background: var(--brand-surface);
  border-radius: 10px;
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.section + .section {
  margin-top: 24px;
}

/* ===== HEADER ===== */
.site-header,
.top-header {
  background: var(--brand-primary);
  color: #fff;
  padding: 16px 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.header-container,
.top-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.college-logo,
.mafsu-logo,
.top-header img {
  height: 90px;
  object-fit: contain;
}

.college-text,
.header-center {
  text-align: center;
  flex: 1;
  line-height: 1.2;
}

.line1 {
  font-size: 22px;
  font-weight: 700;
  display: block;
}

.line2 {
  font-size: 26px;
  font-weight: 700;
  display: block;
}

.affiliation,
.header-center small {
  font-size: 14px;
  margin-top: 6px;
  color: #f5f5f5;
}

/* ===== NAVIGATION ===== */
.site-nav,
nav {
  background: var(--brand-surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

[id] {
  scroll-margin-top: 96px;
}

section[id],
div[id] {
  scroll-margin-top: calc(var(--nav-height) + 16px);
}

.site-nav ul,
nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
}

.site-nav a,
nav a,
nav ul li a {
  display: block;
  padding: 10px 14px;
  font-weight: 700;
  color: var(--brand-primary);
  border-radius: 999px;
  font-size: 14px;
}

.site-nav a:hover,
.site-nav a.active,
nav a:hover,
nav a.active,
nav ul li a:hover {
  background: rgba(15, 61, 15, 0.08);
  color: var(--brand-primary);
}

.nav-toggle {
  display: none;
  min-height: 40px;
  border-radius: 20px;
  background: var(--brand-primary);
  border: none;
  cursor: pointer;
  margin: 8px 12px;
  padding: 6px 14px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}

.nav-label {
  margin-left: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.3px;
}

.nav-bars,
.nav-bars::before,
.nav-bars::after {
  content: "";
  width: 18px;
  height: 2px;
  background: #fff;
  border-radius: 999px;
  display: block;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-bars::before {
  transform: translateY(-6px);
}

.nav-bars::after {
  transform: translateY(4px);
}

.nav-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(15, 61, 15, 0.22);
}

/* ===== PAGE TITLE & BREADCRUMB ===== */
.page-title {
  background: #e9f5e9;
  border-bottom: 2px solid var(--brand-primary);
  padding: 22px 20px;
}

.page-title h1 {
  max-width: 1200px;
  margin: 0 auto;
  font-size: 28px;
}

.breadcrumb {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.breadcrumb a {
  color: var(--brand-primary);
}

/* ===== CARD & GRID ===== */
.card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  background: var(--brand-surface);
  box-shadow: var(--shadow);
}

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

/* ===== TABLE ===== */
table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  border: 1px solid var(--border);
  padding: 12px 14px;
  text-align: left;
}

th {
  background: var(--brand-primary);
  color: #fff;
}

/* ===== BUTTON ===== */
.btn {
  display: inline-block;
  background: var(--brand-accent);
  border: 2px solid var(--brand-primary);
  color: var(--brand-primary);
  padding: 10px 20px;
  font-weight: 700;
  border-radius: 6px;
}

.btn:hover {
  background: var(--brand-accent-dark);
}

/* ===== FORMS ===== */
input,
textarea,
select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 15px;
}

/* ===== GALLERY ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.gallery-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 10px;
  border: 3px solid var(--brand-accent);
  transition: transform 0.2s ease;
}

.gallery-grid img:hover {
  transform: scale(1.02);
}

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border: 5px solid #fff;
  border-radius: 8px;
}

.lightbox:target {
  display: flex;
}

/* ===== THEME SWITCHER ===== */
.theme-switcher {
  position: fixed;
  right: 16px;
  bottom: 16px;
  background: var(--brand-surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 2001;
}

.theme-switcher label {
  font-weight: 700;
  color: var(--brand-primary);
}

.theme-switcher select {
  min-width: 140px;
}

/* ===== FOOTER ===== */
.site-footer,
footer {
  background: var(--brand-primary);
  color: #fff;
  padding: 28px 20px;
  margin-top: 40px;
}

.footer-grid,
.footer-container,
.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

footer h3 {
  color: var(--brand-accent);
  margin-bottom: 10px;
}

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

footer ul li {
  margin-bottom: 8px;
}

footer a {
  color: #fff;
}

footer a:hover {
  color: var(--brand-accent);
}

/* ===== HERO ===== */
.hero-center {
  display: flex;
  justify-content: center;
  margin: 30px 0;
}

.hero-center img {
  max-width: 90%;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

/* ===== ABOUT (INDEX) ===== */
.about-container {
  display: flex;
  gap: 20px;
  max-width: 1200px;
  margin: 30px auto 0;
  flex-wrap: wrap;
}

.about-left {
  flex: 1;
  min-width: 220px;
}

.about-left ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.about-left ul li {
  padding: 12px 15px;
  background: #f2f4f7;
  margin-bottom: 8px;
  cursor: pointer;
  border-radius: 6px;
  border: 1px solid var(--border);
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease;
}

.about-left ul li.active,
.about-left ul li:hover {
  background: var(--brand-accent);
  color: var(--brand-primary);
}

.about-right {
  flex: 2;
  min-width: 300px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  background: var(--brand-surface);
  box-shadow: var(--shadow);
}

.about-image {
  display: block;
  max-width: 80%;
  margin: 20px auto;
  border-radius: 10px;
}

.about-section h2 {
  text-align: center;
  margin-bottom: 24px;
}

.message {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin: 24px 0;
}

.message img {
  width: 180px;
  border-radius: 10px;
}

.message-text h3 {
  margin-bottom: 6px;
}

.vision-mission {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin: 24px 0;
}

.vm-box {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px;
  background: #f9fafb;
}

.achievements ul {
  padding-left: 18px;
}

/* ===== STAFF ===== */
.staff-wrapper {
  max-width: 1200px;
  margin: 0 auto;
}

.staff-category h2 {
  background: var(--brand-primary);
  color: var(--brand-accent);
  padding: 10px 15px;
  border-radius: 6px;
  margin-bottom: 20px;
}

.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.staff-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  text-align: center;
  background: var(--brand-surface);
  box-shadow: var(--shadow);
}

.staff-card img {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--brand-accent);
  margin-bottom: 10px;
}

/* ===== CONTACT ===== */
.contact-wrapper {
  display: grid;
  gap: 24px;
}

.contact-box,
.form-box,
.map-box {
  border: 1px solid var(--border);
  padding: 22px;
  border-radius: 10px;
  background: var(--brand-surface);
  box-shadow: var(--shadow);
}

.contact-table td:first-child {
  font-weight: 700;
  color: var(--brand-primary);
  width: 180px;
}

.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--brand-primary);
}


/* ===== ADMISSIONS NOTICE ===== */
.notice-section {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 45vh;
}

.notice-box {
  max-width: 700px;
  width: 100%;
  padding: 40px 30px;
  text-align: center;
  background: var(--brand-surface);
  border-radius: 14px;
  border: 2px solid var(--brand-accent);
  box-shadow: var(--shadow);
}

.notice-box h1 {
  font-size: 32px;
  margin-bottom: 12px;
  color: var(--brand-primary);
}

.notice-box p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .notice-box {
    padding: 28px 20px;
  }

  .notice-box h1 {
    font-size: 26px;
  }
}


/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .college-logo,
  .mafsu-logo,
  .top-header img {
    height: 70px;
  }
}

@media (max-width: 768px) {
  html {
    scroll-padding-top: 120px;
  }

  [id] {
    scroll-margin-top: 120px;
  }

  .header-container,
  .top-header {
    flex-direction: column;
    text-align: center;
  }

  .site-nav ul,
  nav ul {
    flex-direction: column;
    padding: 12px;
    gap: 10px;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transition: max-height 0.3s ease, opacity 0.25s ease;
    background: var(--brand-surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
  }

  .site-nav.open ul,
  nav.open ul {
    max-height: 600px;
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav,
  nav {
    position: static;
    padding: 0 8px 8px;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }

  .theme-switcher {
    right: 12px;
    bottom: 12px;
    padding: 8px 10px;
  }

  :root {
    --nav-height: 220px;
  }

  .message {
    flex-direction: column;
    text-align: center;
  }

  .page {
    padding: 20px 14px 40px;
  }

  .hero-center img {
    max-width: 100%;
  }
}
