/* ============================================================
   Dhubri PGTT College — Stylesheet
   ============================================================ */

:root {
  --primary: #14336b;
  --primary-dark: #0c2249;
  --primary-light: #1e4a9e;
  --accent: #c9a227;
  --accent-dark: #a8861b;
  --text: #2b2f36;
  --text-light: #5c6470;
  --bg: #ffffff;
  --bg-alt: #f4f6fb;
  --border: #e4e8f0;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(12, 34, 73, .10);
  --radius: 10px;
  --font-body: 'Poppins', 'Segoe UI', Arial, sans-serif;
  --font-head: 'Playfair Display', Georgia, serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

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

/* ============ Buttons ============ */
.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: 50px;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .3s ease;
}
.btn-primary {
  background: var(--accent);
  color: var(--primary-dark);
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(201, 162, 39, .35);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, .7);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--primary);
  transform: translateY(-2px);
}

/* ============ Top Bar ============ */
.topbar {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, .85);
  font-size: .82rem;
  padding: 7px 0;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}
.topbar-contact { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar-contact i { color: var(--accent); margin-right: 6px; }
.topbar-social { display: flex; gap: 8px; }
.topbar-social a {
  width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  color: var(--white);
  font-size: .75rem;
  transition: background .3s;
}
.topbar-social a:hover { background: var(--accent); color: var(--primary-dark); }

/* ============ Header ============ */
.header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 15px rgba(12, 34, 73, .08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo-icon {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--accent);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-icon-img { background: none; overflow: hidden; padding: 0; }
.logo-img { width: 100%; height: 100%; object-fit: contain; }
.logo-title {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--primary);
}
.logo-sub { font-size: .72rem; color: var(--text-light); letter-spacing: .4px; }

.nav-list { display: flex; align-items: center; gap: 4px; }
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 10px 14px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--text);
  border-radius: 6px;
  transition: color .25s, background .25s;
}
.nav-link i { font-size: .65rem; transition: transform .25s; }
.nav-link:hover, .nav-link.active { color: var(--primary); background: var(--bg-alt); }
.has-dropdown { position: relative; }
.has-dropdown:hover .nav-link i { transform: rotate(180deg); }
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all .25s ease;
  border-top: 3px solid var(--accent);
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown a {
  display: block;
  padding: 10px 20px;
  font-size: .88rem;
  color: var(--text);
  transition: all .2s;
}
.dropdown a:hover { background: var(--bg-alt); color: var(--primary); padding-left: 26px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 26px; height: 3px;
  background: var(--primary);
  border-radius: 3px;
  transition: all .3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ============ Hero ============ */
.hero { position: relative; overflow: hidden; }
.hero-slider { position: relative; height: min(88vh, 640px); min-height: 480px; }
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .8s ease, visibility .8s;
}
.hero-slide.active { opacity: 1; visibility: visible; }
.hero-content { color: var(--white); max-width: 720px; }
.hero-kicker {
  display: inline-block;
  background: var(--accent);
  color: var(--primary-dark);
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 7px 18px;
  border-radius: 50px;
  margin-bottom: 20px;
}
.hero-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.15;
  margin-bottom: 18px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .35);
}
.hero-text {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, .92);
  margin-bottom: 30px;
  max-width: 600px;
}
.hero-actions { display: flex; gap: 15px; flex-wrap: wrap; }

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px; height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, .18);
  color: var(--white);
  font-size: 1.1rem;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: background .3s;
  z-index: 5;
}
.hero-arrow:hover { background: var(--accent); color: var(--primary-dark); }
.hero-prev { left: 22px; }
.hero-next { right: 22px; }

.hero-dots {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 5;
}
.hero-dots button {
  width: 12px; height: 12px;
  border-radius: 50%;
  border: 2px solid var(--white);
  background: transparent;
  cursor: pointer;
  transition: background .3s, transform .3s;
}
.hero-dots button.active { background: var(--accent); border-color: var(--accent); transform: scale(1.2); }

/* ============ Ticker ============ */
.ticker {
  background: var(--primary);
  color: var(--white);
  padding: 10px 0;
}
.ticker-inner { display: flex; align-items: center; gap: 18px; }
.ticker-label {
  background: var(--accent);
  color: var(--primary-dark);
  font-weight: 600;
  font-size: .8rem;
  padding: 5px 14px;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}
.ticker-wrap { overflow: hidden; flex: 1; }
.ticker-track {
  display: flex;
  gap: 60px;
  white-space: nowrap;
  animation: ticker 28s linear infinite;
}
.ticker-track a { font-size: .88rem; color: rgba(255, 255, 255, .9); }
.ticker-track a:hover { color: var(--accent); }
@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============ Sections ============ */
.section { padding: 80px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 50px; }
.section-kicker {
  color: var(--accent-dark);
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  color: var(--primary);
  position: relative;
  display: inline-block;
  padding-bottom: 14px;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 70px; height: 3px;
  background: var(--accent);
  border-radius: 3px;
}
.section-lead { margin-top: 16px; color: var(--text-light); }

/* ============ Principal ============ */
.principal { background: var(--bg-alt); }
.principal-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 55px;
  align-items: center;
}
.principal-photo { position: relative; }
.principal-photo img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  height: 420px;
  object-fit: cover;
}
.principal-photo-caption {
  position: absolute;
  bottom: -22px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: var(--white);
  text-align: center;
  padding: 14px 26px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  width: 85%;
}
.principal-photo-caption strong { display: block; font-size: .95rem; }
.principal-photo-caption span { font-size: .78rem; color: var(--accent); }
.principal-text p { margin-bottom: 16px; color: var(--text-light); }
.principal-text .btn { margin-top: 8px; }

/* ============ Notifications ============ */
.notif-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}
.notif-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: all .3s ease;
}
.notif-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--accent);
}
.notif-icon {
  width: 58px; height: 58px;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--accent);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
}
.notif-body h3 { font-size: 1.02rem; color: var(--primary); margin-bottom: 4px; }
.notif-body p { font-size: .84rem; color: var(--text-light); }
.notif-arrow { color: var(--accent); transition: transform .3s; }
.notif-card:hover .notif-arrow { transform: translateX(5px); }

/* ============ About ============ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-media { position: relative; }
.about-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  height: 460px;
  object-fit: cover;
}
.about-badge {
  position: absolute;
  top: 26px;
  right: -18px;
  background: var(--accent);
  color: var(--primary-dark);
  padding: 18px 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
}
.about-badge strong { display: block; font-size: 1.3rem; }
.about-badge span { font-size: .75rem; font-weight: 500; }
.about-text p { color: var(--text-light); margin-bottom: 16px; }
.about-points { margin: 20px 0 26px; }
.about-points li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .92rem;
  font-weight: 500;
  margin-bottom: 10px;
}
.about-points i { color: var(--accent-dark); }

/* ============ Programs ============ */
.programs { background: var(--bg-alt); }
.program-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 26px;
}
.program-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  border: 1px solid var(--border);
  transition: all .3s ease;
}
.program-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.program-icon {
  width: 74px; height: 74px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--accent);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  transition: transform .3s;
}
.program-card:hover .program-icon { transform: scale(1.1) rotate(5deg); }
.program-card h3 { color: var(--primary); font-size: 1.1rem; margin-bottom: 10px; }
.program-card p { font-size: .88rem; color: var(--text-light); }
.programs-cta {
  text-align: center;
  margin-top: 46px;
  color: var(--text-light);
}
.programs-cta p { max-width: 640px; margin: 0 auto 20px; }

/* ============ Useful Links ============ */
.useful-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 22px;
}
.useful-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--white);
  transition: transform .3s ease;
}
.useful-card:hover { transform: translateY(-6px); }
.useful-img { height: 130px; overflow: hidden; }
.useful-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.useful-card:hover .useful-img img { transform: scale(1.1); }
.useful-body {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  font-weight: 600;
  color: var(--primary);
  font-size: .95rem;
}
.useful-body i { color: var(--accent-dark); }

/* ============ Why Choose Us ============ */
.why { background: var(--bg-alt); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 26px;
}
.why-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 34px 30px;
  border-left: 4px solid var(--accent);
  box-shadow: 0 4px 16px rgba(12, 34, 73, .06);
  transition: all .3s ease;
}
.why-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.why-icon {
  width: 60px; height: 60px;
  background: var(--bg-alt);
  color: var(--primary);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 18px;
  transition: all .3s;
}
.why-card:hover .why-icon { background: var(--primary); color: var(--accent); }
.why-card h3 { color: var(--primary); font-size: 1.08rem; margin-bottom: 8px; }
.why-card p { font-size: .88rem; color: var(--text-light); }

/* ============ Stats ============ */
.stats {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  padding: 55px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 30px;
  text-align: center;
}
.stat strong {
  display: block;
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.1;
}
.stat span { color: rgba(255, 255, 255, .85); font-size: .9rem; }

/* ============ Faculty ============ */
.faculty-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 26px;
}
.faculty-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(12, 34, 73, .08);
  transition: all .3s ease;
}
.faculty-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.faculty-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  object-position: center top;
  transition: transform .5s;
}
.faculty-card:hover img { transform: scale(1.05); }
.faculty-info { padding: 18px; text-align: center; }
.faculty-info h3 { color: var(--primary); font-size: 1rem; }
.faculty-info span { font-size: .8rem; color: var(--text-light); }

/* ============ Important Links ============ */
.links { background: var(--bg-alt); }
.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.link-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  font-weight: 500;
  font-size: .95rem;
  color: var(--text);
  transition: all .3s ease;
}
.link-card i { color: var(--accent-dark); font-size: 1.15rem; }
.link-card:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.link-card:hover i { color: var(--accent); }

/* ============ Contact ============ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.contact-info p { color: var(--text-light); margin-bottom: 20px; }
.contact-list li {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  font-size: .93rem;
  color: var(--text-light);
}
.contact-list i { color: var(--accent-dark); margin-top: 4px; }
.contact-form {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 36px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: .9rem;
  margin-bottom: 16px;
  background: var(--white);
  transition: border-color .3s, box-shadow .3s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(30, 74, 158, .12);
}
.form-status { margin-top: 12px; font-size: .88rem; color: #1a7f37; min-height: 1.2em; }

/* ============ Footer ============ */
.footer {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, .75);
  padding-top: 65px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 45px;
  padding-bottom: 50px;
}
.footer-logo { margin-bottom: 18px; }
.footer-logo .logo-title { color: var(--white); }
.footer-logo .logo-sub { color: rgba(255, 255, 255, .55); }
.footer-col p { font-size: .88rem; margin-bottom: 18px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  color: var(--white);
  transition: background .3s;
}
.footer-social a:hover { background: var(--accent); color: var(--primary-dark); }
.footer-col h4 {
  color: var(--white);
  font-size: 1.05rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}
.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 40px; height: 2px;
  background: var(--accent);
}
.footer-col ul li { margin-bottom: 11px; }
.footer-col ul a { font-size: .88rem; transition: color .25s, padding-left .25s; }
.footer-col ul a:hover { color: var(--accent); padding-left: 6px; }
.footer-contact li {
  display: flex;
  gap: 10px;
  font-size: .86rem;
  margin-bottom: 14px;
}
.footer-contact i { color: var(--accent); margin-top: 4px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding: 18px 0;
  text-align: center;
  font-size: .84rem;
}

/* ============ Back to top ============ */
.back-to-top {
  position: fixed;
  bottom: 26px;
  right: 26px;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  color: var(--primary-dark);
  font-size: 1rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all .3s;
  z-index: 900;
  box-shadow: 0 6px 18px rgba(201, 162, 39, .4);
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--accent-dark); color: var(--white); }

/* ============ Reveal animation ============ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============ Inner Page Banner ============ */
.page-banner {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  padding: 70px 0;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/images/hero-1.jpg') center/cover;
  opacity: .12;
}
.page-banner .container { position: relative; z-index: 1; }
.page-banner h1 {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 10px;
}
.breadcrumb { font-size: .88rem; color: rgba(255, 255, 255, .75); }
.breadcrumb a { color: var(--accent); }
.breadcrumb a:hover { text-decoration: underline; }

/* ============ Page Content ============ */
.page-content-section { padding: 70px 0; }
.page-content {
  max-width: 860px;
  margin: 0 auto;
  font-size: .98rem;
  color: var(--text-light);
  line-height: 1.8;
}
.page-content h2, .page-content h3, .page-content h4 {
  color: var(--primary);
  margin: 26px 0 12px;
}
.page-content p { margin-bottom: 16px; }
.page-content ul, .page-content ol { margin: 0 0 16px 22px; }
.page-content ul li, .page-content ol li { margin-bottom: 8px; }
.page-content img { border-radius: var(--radius); margin: 20px 0; }

/* ============ Faculty Page ============ */
.faculty-page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}
.faculty-page-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(12, 34, 73, .08);
  transition: all .3s ease;
  text-align: center;
}
.faculty-page-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.faculty-photo { height: 280px; overflow: hidden; }
.faculty-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform .5s;
}
.faculty-page-card:hover .faculty-photo img { transform: scale(1.06); }
.faculty-page-card .faculty-info { padding: 20px; }
.faculty-page-card h3 { color: var(--primary); font-size: 1.05rem; margin-bottom: 4px; }
.faculty-designation { color: var(--accent-dark); font-size: .85rem; font-weight: 500; margin-bottom: 8px; }
.faculty-qualification, .faculty-specialization, .faculty-email {
  font-size: .82rem;
  color: var(--text-light);
  margin-bottom: 4px;
}
.faculty-qualification i, .faculty-specialization i, .faculty-email i { color: var(--primary-light); margin-right: 5px; }

/* ============ Gallery Page ============ */
.gallery-grid-large {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.gallery-item-large {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  height: 240px;
  box-shadow: 0 4px 16px rgba(12, 34, 73, .1);
}
.gallery-item-large img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s;
}
.gallery-item-large:hover img { transform: scale(1.08); }
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12, 34, 73, .85), transparent 55%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  color: var(--white);
}
.gallery-overlay h4 { font-size: 1rem; }
.gallery-overlay p { font-size: .82rem; color: rgba(255, 255, 255, .8); }

/* ============ Notices Page ============ */
.notices-list { max-width: 860px; margin: 0 auto; }
.notice-item {
  display: flex;
  gap: 22px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 18px;
  transition: all .3s ease;
}
.notice-item:hover { box-shadow: var(--shadow); border-color: var(--accent); transform: translateX(6px); }
.notice-date-badge {
  flex-shrink: 0;
  width: 70px; height: 70px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.1;
}
.date-day { font-size: 1.4rem; font-weight: 700; }
.date-month { font-size: .72rem; text-transform: uppercase; letter-spacing: 1px; }
.date-year { font-size: .68rem; color: var(--accent); }
.notice-body h3 { font-size: 1.05rem; margin-bottom: 6px; }
.notice-body h3 a { color: var(--primary); }
.notice-body h3 a:hover { color: var(--accent-dark); }
.notice-body p { font-size: .88rem; color: var(--text-light); margin-bottom: 10px; }
.read-more { font-size: .85rem; font-weight: 600; color: var(--accent-dark); }
.read-more:hover { color: var(--primary); }
.read-more i { font-size: .75rem; margin-left: 4px; }

/* ============ Notice Single ============ */
.notice-single {
  max-width: 860px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: 0 4px 16px rgba(12, 34, 73, .07);
}
.notice-meta {
  display: flex;
  gap: 24px;
  font-size: .85rem;
  color: var(--text-light);
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.notice-meta i { color: var(--accent-dark); margin-right: 6px; }
.notice-content { color: var(--text-light); line-height: 1.85; font-size: .97rem; }
.notice-content p { margin-bottom: 16px; }
.notice-content h2, .notice-content h3 { color: var(--primary); margin: 24px 0 12px; }

/* ============ Contact Page ============ */
.contact-page-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
  align-items: start;
}
.contact-info-box h2 {
  font-family: var(--font-head);
  color: var(--primary);
  font-size: 1.6rem;
  margin-bottom: 24px;
}
.contact-info-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}
.contact-info-item > i {
  width: 48px; height: 48px;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--accent);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.contact-info-item h4 { color: var(--primary); font-size: .98rem; margin-bottom: 4px; }
.contact-info-item p { font-size: .88rem; color: var(--text-light); }
.contact-form-wrapper {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 36px;
}
.contact-form-wrapper h2 {
  font-family: var(--font-head);
  color: var(--primary);
  font-size: 1.4rem;
  margin-bottom: 22px;
}
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: .85rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: .9rem;
  background: var(--white);
  transition: border-color .3s, box-shadow .3s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(30, 74, 158, .12);
}
.alert {
  padding: 14px 18px;
  border-radius: 8px;
  font-size: .88rem;
  margin-bottom: 20px;
}
.alert-success { background: #e8f5e9; color: #1a7f37; border: 1px solid #c8e6c9; }

/* ============ 404 ============ */
.not-found {
  text-align: center;
  padding: 100px 0;
}
.not-found h1 {
  font-family: var(--font-head);
  font-size: 5rem;
  color: var(--primary);
  line-height: 1;
}
.not-found p { color: var(--text-light); margin: 16px 0 26px; }

/* ============ Responsive ============ */
@media (max-width: 992px) {
  .principal-grid { grid-template-columns: 1fr; gap: 60px; }
  .about-grid { grid-template-columns: 1fr; gap: 50px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 35px; }
  .about-badge { right: 16px; }
}

@media (max-width: 768px) {
  .section { padding: 60px 0; }
  .topbar-contact span:first-child { display: none; }

  .nav-toggle { display: flex; }
  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(320px, 85vw);
    height: 100vh;
    background: var(--white);
    box-shadow: -5px 0 25px rgba(0, 0, 0, .15);
    transition: right .35s ease;
    overflow-y: auto;
    padding: 80px 0 30px;
    z-index: 999;
  }
  .nav.open { right: 0; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list > li { border-bottom: 1px solid var(--border); }
  .nav-link { display: flex; justify-content: space-between; padding: 14px 24px; border-radius: 0; }
  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border-top: none;
    background: var(--bg-alt);
    border-radius: 0;
    display: none;
    padding: 0;
  }
  .has-dropdown.open .dropdown { display: block; }
  .has-dropdown.open .nav-link i { transform: rotate(180deg); }

  .hero-slider { height: 78vh; min-height: 440px; }
  .hero-arrow { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .ticker-label { font-size: .72rem; padding: 4px 10px; }
}

@media (max-width: 480px) {
  .logo-title { font-size: .95rem; }
  .logo-icon { width: 44px; height: 44px; font-size: 1.2rem; }
  .hero-actions .btn { width: 100%; text-align: center; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}

/* ============ Library Page: Slideshow + Facilities ============ */
.library-featured {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 30px;
  align-items: start;
  margin: 18px 0 10px;
}
.library-slideshow {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
  background: var(--primary-dark);
}
.lib-slides { position: absolute; inset: 0; }
.lib-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .8s ease, visibility .8s;
}
.lib-slide.active { opacity: 1; visibility: visible; }
.lib-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  margin: 0;
  border-radius: 0;
}
.lib-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(12, 34, 73, .62);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .25s, background .2s;
  z-index: 2;
}
.library-slideshow:hover .lib-nav { opacity: 1; }
.lib-nav:hover { background: var(--accent); color: var(--primary-dark); }
.lib-prev { left: 12px; }
.lib-next { right: 12px; }
.lib-dots {
  position: absolute;
  bottom: 14px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 2;
}
.lib-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .55);
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.lib-dots button.active { background: var(--accent); transform: scale(1.25); }
.lib-caption {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .4px;
  padding: 8px 16px;
  border-radius: 0 0 var(--radius) 0;
}
.library-facilities {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 26px;
}
.page-content .library-facilities h3 { margin-top: 0; }
.library-facilities ul { margin-bottom: 0; }
.library-facilities li { position: relative; padding-left: 26px; }
.library-facilities li::before {
  content: "\f02d";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 1px;
  color: var(--accent);
}
@media (max-width: 768px) {
  .library-featured { grid-template-columns: 1fr; gap: 22px; }
  .lib-nav { opacity: 1; }
}

/* ============================================================
   Library Books List — transcribed from official scanned list
   ============================================================ */
.books-list {
  margin: 22px 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
}

.books-list-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 18px 20px;
  background: var(--bg-alt);
  border-bottom: 2px solid var(--primary);
  text-align: center;
}

.books-list-head strong {
  font-size: 1.02rem;
  color: var(--primary);
  letter-spacing: .3px;
}

.books-list-head span {
  font-size: .88rem;
  color: var(--text-light);
  font-weight: 600;
}

.books-list-head a {
  font-size: .85rem;
  font-weight: 600;
}

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.books-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: .95rem;
}

.books-table th,
.books-table td {
  border: 1px solid var(--border);
  padding: 11px 14px;
  text-align: left;
  vertical-align: middle;
}

.books-table thead th {
  background: var(--primary);
  color: var(--white);
  font-weight: 600;
  font-size: .92rem;
}

.books-table tbody tr:nth-child(even) { background: var(--bg-alt); }

.books-table tbody tr:hover { background: #e9f0fc; }

.books-table td:nth-child(1),
.books-table td:nth-child(3) { text-align: center; }

.books-table td:nth-child(3) {
  font-weight: 600;
  color: var(--primary);
}

.books-table tfoot td {
  background: var(--primary);
  color: var(--white);
  font-weight: 700;
}

.books-table tfoot td:nth-child(2) { text-align: center; }

@media (max-width: 768px) {
  .books-table { font-size: .85rem; }
  .books-table th,
  .books-table td { padding: 8px 10px; }
  .books-list-head strong { font-size: .92rem; }
}

/* ============================================================
   Live-editor widgets (drag & drop elements)
   ============================================================ */
.widget { margin: 20px 0; }
.widget-text p:last-child { margin-bottom: 0; }
.widget-heading h2 { margin-bottom: .35em; }
.widget-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}

.widget-columns {
  display: grid;
  gap: 22px;
}
.widget-columns.cols-2 { grid-template-columns: repeat(2, 1fr); }
.widget-columns.cols-3 { grid-template-columns: repeat(3, 1fr); }
.widget-col p:first-child { margin-top: 0; }
.widget-col p:last-child { margin-bottom: 0; }

.widget-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 14px;
}
/* Legacy direct <img> placeholder only — the Photo Gallery widget nests a
   .gallery-grid-large inside, which must keep the full-size gallery tiles. */
.widget-gallery > img {
  display: block;
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: var(--radius);
  cursor: pointer;
}

.widget-slider {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-alt);
}
.widget-slider:hover .lib-nav { opacity: 1; }

.widget-tabs .widget-tab-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 2px solid var(--border);
  margin-bottom: 16px;
}
.widget-tab-btn {
  border: 0;
  background: var(--bg-alt);
  padding: 10px 18px;
  font: inherit;
  font-weight: 600;
  color: var(--text-light);
  cursor: pointer;
  border-radius: 8px 8px 0 0;
  transition: all .2s ease;
}
.widget-tab-btn.active { background: var(--primary); color: var(--white); }
.widget-tab-pane { display: none; }
.widget-tab-pane.active { display: block; }
.widget-tab-pane p:last-child { margin-bottom: 0; }

.widget-divider hr { border: 0; border-top: 1px solid var(--border); margin: 0; }

.widget-video {
  position: relative;
  padding-top: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius);
}
.widget-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* PDF Viewer — embeds a hosted document with the browser's PDF reader.
   All widget config lives in this markup (title, frame height, iframe src,
   open button) so editor snapshots always stay in sync. */
.widget-pdf-viewer {
  margin: 20px 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.widget-pdf-viewer .pdfw-head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  font-weight: 600;
}
.widget-pdf-viewer .pdfw-head > i { color: #d64541; }
.widget-pdf-viewer .pdfw-title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.widget-pdf-viewer .pdfw-open {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  color: var(--primary);
  background: rgba(26, 82, 118, .08);
  text-decoration: none;
}
.widget-pdf-viewer .pdfw-open:hover { background: rgba(26, 82, 118, .16); }
.widget-pdf-viewer .pdfw-frame { background: #525659; }
.widget-pdf-viewer .pdfw-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.widget-pdf-viewer .pdfw-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 44px 18px;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  background: var(--bg-alt);
  text-align: center;
  color: #6b7280;
}
.widget-pdf-viewer .pdfw-empty i { font-size: 2.1rem; color: #d64541; }
.widget-pdf-viewer .pdfw-empty span { font-size: .92rem; line-height: 1.5; }

.widget-spacer { margin: 0; }

@media (max-width: 768px) {
  .widget-columns.cols-2,
  .widget-columns.cols-3 { grid-template-columns: 1fr; }
}

/* ============================================================
   Visual editor: hidden elements + page-settings layout
   ============================================================ */
/* Elements hidden from the structure panel / page settings */
[data-h="1"] { display: none !important; }

/* Elementor-style "Boxed" page layout (Page Settings) */
body.page-boxed {
  max-width: 1200px;
  margin: 0 auto;
  box-shadow: 0 0 45px rgba(12, 34, 73, .18);
}

/* ============================================================
   Elementor-style widget set (inner section, icon, map, ...)
   ============================================================ */

/* Inner Section — columns nested inside content */
.widget-inner-section { margin: 14px 0; }
.widget-inner-section .widget-col {
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 14px;
  background: var(--bg-alt);
}
.widget-inner-section .widget-col p:first-child { margin-top: 0; }
.widget-inner-section .widget-col p:last-child { margin-bottom: 0; }

/* Google Map */
.widget-map { margin: 20px 0; }
.widget-map iframe {
  width: 100%;
  height: 380px;
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Icon */
.widget-icon { margin: 16px 0; text-align: center; }
.widget-icon i {
  font-size: 3rem;
  color: var(--accent);
  line-height: 1;
}

/* Image Box */
.widget-image-box {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.widget-image-box img { width: 100%; height: 220px; object-fit: cover; display: block; }
.widget-image-box .ib-body { padding: 20px; }
.widget-image-box h3 { font-size: 1.15rem; margin-bottom: .5em; }
.widget-image-box p { color: var(--text-light); font-size: .93rem; margin: 0; }

/* Icon Box */
.widget-icon-box {
  text-align: center;
  padding: 30px 22px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all .25s ease;
}
.widget-icon-box:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.widget-icon-box .ibx-icon i {
  display: inline-block;
  width: 68px; height: 68px;
  line-height: 68px;
  border-radius: 50%;
  background: rgba(201, 162, 39, .12);
  color: var(--accent);
  font-size: 1.7rem;
  margin-bottom: 16px;
}
.widget-icon-box h3 { font-size: 1.1rem; margin-bottom: .5em; }
.widget-icon-box p { color: var(--text-light); font-size: .92rem; margin: 0; }

/* Image Carousel (rotates like the library slideshow) */
.widget-carousel { margin: 20px 0; }
.widget-carousel .lib-slide { border-radius: var(--radius); overflow: hidden; }
.widget-carousel .lib-slide img { width: 100%; height: 340px; object-fit: cover; display: block; }
.widget-carousel:hover .lib-nav { opacity: 1; }

/* Icon List */
.widget-icon-list { list-style: none; margin: 18px 0; padding: 0; }
.widget-icon-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 7px 0;
  color: var(--text);
}
.widget-icon-list li i { color: var(--accent); margin-top: 4px; }

/* Progress Bar */
.widget-progress { margin: 18px 0; }
.widget-progress .progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: .9rem;
  margin-bottom: 7px;
}
.widget-progress .progress-meta strong { color: var(--primary); }
.widget-progress .progress-track {
  height: 12px;
  background: var(--bg-alt);
  border-radius: 20px;
  overflow: hidden;
}
.widget-progress .progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-light), var(--accent));
  border-radius: 20px;
  transition: width .6s ease;
}

/* Testimonial */
.widget-testimonial {
  text-align: center;
  padding: 32px 26px;
  background: var(--bg-alt);
  border-radius: var(--radius);
}
.widget-testimonial .testi-stars { color: var(--accent); font-size: .95rem; margin-bottom: 14px; letter-spacing: 3px; }
.widget-testimonial .testi-text {
  font-size: 1.02rem;
  font-style: italic;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 18px;
}
.widget-testimonial .testi-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.widget-testimonial .testi-author img {
  width: 52px; height: 52px;
  border-radius: 50%;
  object-fit: cover;
}
.widget-testimonial .testi-author div { text-align: left; }
.widget-testimonial .testi-author strong { display: block; font-size: .95rem; }
.widget-testimonial .testi-author span { font-size: .8rem; color: var(--text-light); }

/* Toggle (accordion) */
.widget-toggle { margin: 18px 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.widget-toggle .toggle-item + .toggle-item { border-top: 1px solid var(--border); }
.widget-toggle .toggle-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border: 0;
  background: var(--bg-alt);
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  text-align: left;
  cursor: pointer;
}
.widget-toggle .toggle-head i { font-size: .8rem; transition: transform .25s ease; color: var(--accent); }
.widget-toggle .toggle-item.open .toggle-head i { transform: rotate(180deg); }
.widget-toggle .toggle-body { display: none; padding: 4px 18px 16px; }
.widget-toggle .toggle-item.open .toggle-body { display: block; }
.widget-toggle .toggle-body p:last-child { margin-bottom: 0; }

/* Social icons */
.widget-social { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.widget-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white) !important;
  font-size: 1rem;
  transition: all .2s ease;
}
.widget-social a:hover { background: var(--accent); transform: translateY(-3px); }

/* Source code */
.widget-sourcecode { margin: 18px 0; }
.widget-sourcecode pre {
  margin: 0;
  padding: 18px;
  background: #0f172a;
  color: #7dd3fc;
  border-radius: var(--radius);
  overflow-x: auto;
  font-size: .86rem;
  line-height: 1.6;
}

/* Read More */
.widget-readmore { margin: 16px 0; }
.widget-readmore .rm-content.rm-collapsed {
  max-height: 160px;
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(#000 55%, transparent);
  mask-image: linear-gradient(#000 55%, transparent);
}
.widget-readmore .rm-toggle {
  margin-top: 10px;
  padding: 9px 22px;
  border: 1px solid var(--primary);
  border-radius: 30px;
  background: transparent;
  color: var(--primary);
  font-weight: 600;
  font-size: .88rem;
  cursor: pointer;
  transition: all .2s ease;
}
.widget-readmore .rm-toggle:hover { background: var(--primary); color: var(--white); }

/* Rating */
.widget-rating { display: flex; gap: 5px; margin: 14px 0; color: var(--accent); font-size: 1.2rem; }

/* ============ Library member card — Library Login widget (login + dashboard) ============ */
.mz-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 26px;
}
.mz-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
  margin-bottom: 18px;
}
.mz-head-text h2 {
  font-family: var(--font-head);
  color: var(--primary);
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.mz-head-text p { color: var(--text-light); font-size: .88rem; margin-top: 4px; }
.mz-logout .btn { padding: 9px 20px; font-size: .85rem; cursor: pointer; }
.mz-form { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.mz-form input {
  flex: 1;
  min-width: 190px;
  padding: 11px 15px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: .92rem;
}
.mz-form input:focus { outline: none; border-color: var(--primary); }
.mz-form .btn { padding: 11px 24px; cursor: pointer; }
.mz-note { margin-top: 13px; font-size: .8rem; color: var(--text-light); }
.mz-note i { margin-right: 6px; color: var(--primary); }
.mz-alert { padding: 11px 15px; border-radius: 8px; font-size: .88rem; margin-bottom: 15px; }
.mz-alert-error { background: #fdecea; border: 1px solid #f5c6cb; color: #721c24; }
.mz-notices {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  padding: 14px 17px;
  margin-bottom: 20px;
}
.mz-notices h3 {
  font-family: var(--font-head);
  font-size: .98rem;
  color: var(--primary);
  margin-bottom: 9px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.mz-notices ul { list-style: none; }
.mz-notices li {
  display: flex;
  gap: 13px;
  align-items: baseline;
  padding: 7px 0;
  font-size: .88rem;
  border-top: 1px dashed var(--border);
}
.mz-notices li:first-child { border-top: none; }
.mz-ndate { font-size: .74rem; color: var(--text-light); white-space: nowrap; flex: 0 0 auto; }
.mz-h3 {
  font-family: var(--font-head);
  color: var(--primary);
  font-size: 1.12rem;
  margin: 22px 0 11px;
}
.mz-h3:first-of-type { margin-top: 0; }
.mz-table-wrap { overflow-x: auto; }
.mz-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.mz-table th {
  text-align: left;
  background: var(--bg-alt);
  color: var(--primary);
  padding: 10px 13px;
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
}
.mz-table td { padding: 11px 13px; border-bottom: 1px solid var(--border); vertical-align: top; }
.mz-table tr:last-child td { border-bottom: none; }
.mz-sub { display: block; font-size: .76rem; color: var(--text-light); font-weight: 400; margin-top: 2px; }
.mz-date { white-space: nowrap; font-variant-numeric: tabular-nums; }
.mz-late { color: #b3261e; font-weight: 700; }
.mz-badge {
  display: inline-block;
  padding: 4px 11px;
  border-radius: 20px;
  font-size: .74rem;
  font-weight: 600;
  white-space: nowrap;
}
.mz-ok { background: #e6f6ec; color: #127c3f; }
.mz-soon { background: #fff4d6; color: #8a6100; }
.mz-over { background: #fdecea; color: #b3261e; }
.mz-missed { display: block; font-size: .72rem; color: #b3261e; font-style: italic; margin-top: 4px; }
.mz-empty { color: var(--text-light); font-size: .88rem; font-style: italic; }

@media (max-width: 640px) {
  .mz-card { padding: 18px 16px; }
  .mz-form input { min-width: 100%; }
  .mz-form .btn { width: 100%; text-align: center; }
  .mz-table thead { display: none; }
  .mz-table tr {
    display: block;
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 10px;
    padding: 5px 0;
  }
  .mz-table td {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    border: none;
    padding: 5px 12px;
    font-size: .85rem;
    text-align: right;
  }
  .mz-table td::before {
    content: attr(data-l);
    font-weight: 600;
    color: var(--text-light);
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .4px;
    text-align: left;
    flex: 0 0 auto;
  }
  .mz-table td:not([data-l]) { display: block; text-align: left; }
}

/* ============================================================
   About page — modern, data-rich layout
   Scoped to .page-content-section--about (slug class emitted by
   views/page.ejs) so every other page keeps its classic column.
   ============================================================ */

.page-content-section--about { padding: 76px 0 84px; }
.page-content-section--about .page-content {
  max-width: 1140px;
  color: var(--text);
}

/* --- Section heads inside the wide column --- */
.page-content .section-head .section-kicker { margin-bottom: 8px; }
.page-content .section-head .section-title { margin: 0; }
.page-content .section-head .section-lead { margin-top: 14px; margin-bottom: 0; }

/* --- Block rhythm: each top-level block is a movable block --- */
.page-content .ab-stats { margin-top: 40px; }
.page-content .ab-story,
.page-content .ab-vm,
.page-content .ab-values,
.page-content .ab-glance,
.page-content .ab-mosaic,
.page-content .ab-principal,
.page-content .ab-faculty,
.page-content .ab-docs,
.page-content .ab-affil,
.page-content .ab-cta { margin-top: 68px; }

/* --- 1. Intro fact chips --- */
.page-content .ab-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 0;
  padding: 0;
}
.page-content .ab-chips li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 9px 18px;
  font-size: .86rem;
  font-weight: 600;
  color: var(--primary);
  margin: 0;
  transition: border-color .3s ease, transform .3s ease;
}
.page-content .ab-chips li:hover { border-color: var(--accent); transform: translateY(-2px); }
.page-content .ab-chips li i { color: var(--accent-dark); font-size: .8rem; }

/* --- 2. Stats band rendered as a card --- */
.page-content .ab-stats {
  border-radius: 18px;
  padding: 46px 40px;
  box-shadow: 0 18px 44px rgba(12, 34, 73, .22);
}
.page-content .ab-stats .stat strong { font-size: 2.5rem; }

/* --- 3. Story block --- */
.page-content .about-media img { margin: 0; }
.page-content .about-text p { color: var(--text); margin-bottom: 15px; }
.page-content .about-text .section-kicker { color: var(--accent-dark); margin-bottom: 6px; }
.page-content .about-text .section-title { margin: 0 0 16px; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.page-content .about-points { margin: 22px 0 26px; }
.page-content .about-points li { margin-bottom: 12px; }

/* --- 4. Vision / Mission / Aim cards --- */
.page-content .ab-vm-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.page-content .ab-vm-card {
  position: relative;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 34px 28px 32px;
  transition: transform .3s ease, box-shadow .3s ease;
}
.page-content .ab-vm-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}
.page-content .ab-vm-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.page-content .ab-vm-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px; height: 58px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--accent);
  font-size: 1.35rem;
  margin-bottom: 18px;
}
.page-content .ab-vm-card h3 { margin: 0 0 10px; font-size: 1.15rem; color: var(--primary); }
.page-content .ab-vm-card p { margin: 0; font-size: .93rem; line-height: 1.75; color: var(--text-light); }

/* --- 5. Core value cards --- */
.page-content .ab-values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.page-content .ab-value-card {
  background: var(--bg-alt);
  border: 1px solid transparent;
  border-radius: 16px;
  padding: 28px 24px;
  transition: all .3s ease;
}
.page-content .ab-value-card:hover {
  background: var(--white);
  border-color: var(--border);
  box-shadow: var(--shadow);
  transform: translateY(-5px);
}
.page-content .ab-value-card > i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px; height: 50px;
  border-radius: 12px;
  background: rgba(20, 51, 107, .08);
  color: var(--primary);
  font-size: 1.2rem;
  margin-bottom: 16px;
}
.page-content .ab-value-card h3 { margin: 0 0 8px; font-size: 1.02rem; color: var(--primary); }
.page-content .ab-value-card p { margin: 0; font-size: .87rem; line-height: 1.7; color: var(--text-light); }

/* --- 6. At a glance fact grid --- */
.page-content .ab-glance-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
}
.page-content .ab-glance-grid li {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  padding: 16px 18px;
  transition: all .3s ease;
}
.page-content .ab-glance-grid li:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(12, 34, 73, .08);
}
.page-content .ab-glance-grid span {
  display: block;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 6px;
}
.page-content .ab-glance-grid strong {
  display: block;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--primary);
  word-break: break-word;
}

/* --- 7. Campus photo mosaic --- */
.page-content .ab-mosaic-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.page-content .ab-shot {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 14px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(12, 34, 73, .10);
}
.page-content .ab-shot img {
  display: block;
  width: 100%;
  height: 210px;
  margin: 0;
  border-radius: 0;
  object-fit: cover;
  transition: transform .55s ease;
}
.page-content .ab-shot:hover img { transform: scale(1.07); }
.page-content .ab-shot figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 36px 16px 14px;
  background: linear-gradient(to top, rgba(8, 20, 45, .92), rgba(8, 20, 45, 0));
  color: #fff;
  font-size: .86rem;
  font-weight: 600;
  letter-spacing: .3px;
}

/* --- 8. Principal message --- */
.page-content .ab-principal {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 42px;
  align-items: center;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  border-radius: 20px;
  padding: 42px;
  box-shadow: 0 20px 50px rgba(12, 34, 73, .25);
}
.page-content .ab-principal-photo img {
  display: block;
  width: 100%;
  height: 380px;
  margin: 0;
  border-radius: 14px;
  border: 4px solid rgba(255, 255, 255, .18);
  object-fit: cover;
  object-position: center top;
}
.page-content .ab-principal-body .section-kicker { color: var(--accent); margin-bottom: 6px; }
.page-content .ab-principal-body .section-title { color: var(--white); margin: 0 0 18px; font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.page-content .ab-principal-body blockquote {
  margin: 0 0 18px;
  padding: 18px 22px;
  background: rgba(255, 255, 255, .10);
  border-left: 4px solid var(--accent);
  border-radius: 0 12px 12px 0;
  color: rgba(255, 255, 255, .95);
  font-size: 1rem;
  font-style: italic;
  line-height: 1.75;
}
.page-content .ab-principal-body p { color: rgba(255, 255, 255, .82); font-size: .93rem; margin-bottom: 16px; }
.page-content .ab-principal-body .ab-sign { margin: 0; font-style: normal; }
.page-content .ab-principal-body .ab-sign strong { display: block; color: var(--accent); font-size: 1.02rem; font-style: normal; }
.page-content .ab-principal-body .ab-sign span { display: block; color: rgba(255, 255, 255, .72); font-size: .85rem; margin-top: 3px; }

/* --- 9. Faculty preview --- */
.page-content .ab-faculty .faculty-grid { grid-template-columns: repeat(4, 1fr); }
.page-content .faculty-info h3 { margin: 0 0 5px; font-size: 1.02rem; }
.page-content .faculty-info p { margin: 0 0 5px; font-size: .85rem; }
.page-content .faculty-info .faculty-designation { color: var(--accent-dark); font-weight: 600; margin-bottom: 6px; }
.page-content .faculty-info .faculty-qualification { color: var(--text-light); }
.page-content .ab-center { text-align: center; margin-top: 34px; }

/* --- 10. Key documents (program-card links) --- */
.page-content a.program-card {
  display: block;
  color: var(--text);
  text-align: center;
}
.page-content .program-card h3 { margin: 0 0 10px; font-size: 1.1rem; color: var(--primary); }
.page-content .program-card p { margin: 0; font-size: .88rem; color: var(--text-light); line-height: 1.65; }
.page-content a.program-card .program-icon {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: var(--primary-dark);
}
.page-content a.program-card:hover { color: var(--primary); }

/* --- 12. Closing CTA --- */
.page-content .ab-cta {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  border-radius: 20px;
  padding: 52px 40px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(12, 34, 73, .25);
}
.page-content .ab-cta h2 {
  margin: 0 0 12px;
  color: var(--white);
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
}
.page-content .ab-cta p {
  max-width: 680px;
  margin: 0 auto 26px;
  color: rgba(255, 255, 255, .88);
}
.page-content .ab-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

/* --- Responsive --- */
@media (max-width: 992px) {
  .page-content-section--about { padding: 64px 0 70px; }
  .page-content .ab-vm-grid,
  .page-content .ab-values-grid { grid-template-columns: repeat(2, 1fr); }
  .page-content .ab-glance-grid { grid-template-columns: repeat(2, 1fr); }
  .page-content .ab-faculty .faculty-grid { grid-template-columns: repeat(2, 1fr); }
  .page-content .ab-principal { grid-template-columns: 1fr; gap: 26px; }
  .page-content .ab-principal-photo img { height: 340px; object-position: center 12%; }
}
@media (max-width: 768px) {
  .page-content .ab-mosaic-grid { grid-template-columns: repeat(2, 1fr); }
  .page-content .ab-stats { padding: 34px 22px; }
  .page-content .ab-principal { padding: 28px 22px; }
  .page-content .ab-cta { padding: 38px 22px; }
  .page-content .ab-shot img { height: 180px; }
}
@media (max-width: 520px) {
  .page-content .ab-vm-grid,
  .page-content .ab-values-grid,
  .page-content .ab-glance-grid,
  .page-content .ab-mosaic-grid,
  .page-content .ab-faculty .faculty-grid { grid-template-columns: 1fr; }
  .page-content .ab-chips li { font-size: .8rem; padding: 8px 14px; }
}
