/* ==========================================================================
   Kiran Lata Singh Mahavidyalya - Pure Offline / Static Stylesheet
   Kaondar, Ashothar, Fatehpur UP - PIN 212620
   Works completely offline with standard browser rendering
   ========================================================================== */

:root {
  --primary-navy: #00246c;
  --dark-navy: #001747;
  --topbar-navy: #001238;
  --secondary-amber: #fde002;
  --secondary-dark: #d4ac0d;
  --accent-gold: #b8860b;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --bg-light: #f8fafc;
  --border-color: #e2e8f0;
  --success: #16a34a;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 36, 108, 0.08);
  --shadow-lg: 0 12px 30px rgba(0, 36, 108, 0.15);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-hindi: 'Noto Sans Devanagari', -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--text-main);
  background-color: #ffffff;
  line-height: 1.6;
  font-size: 15px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--primary-navy);
  font-weight: 700;
  line-height: 1.3;
}

.hindi-text {
  font-family: var(--font-hindi);
}

a {
  color: var(--primary-navy);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--secondary-dark);
}

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

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Helper Badges */
.badge {
  display: inline-block;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-warning {
  background-color: var(--secondary-amber);
  color: #1a1a1a;
}

.badge-navy {
  background-color: var(--primary-navy);
  color: #ffffff;
}

.badge-success {
  background-color: #dcfce7;
  color: var(--success);
}

/* Top Information Header */
.top-bar {
  background-color: var(--topbar-navy);
  color: #e2e8f0;
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 2px solid var(--secondary-amber);
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.top-bar-left, .top-bar-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.top-bar a {
  color: #e2e8f0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.top-bar a:hover {
  color: var(--secondary-amber);
}

/* Institutional Main Header */
.main-header {
  background-color: #ffffff;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-color);
}

.header-brand-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.brand-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.college-seal {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  border: 2px solid var(--secondary-amber);
  box-shadow: var(--shadow-sm);
  background-color: #ffffff;
  flex-shrink: 0;
}

.brand-title-wrap .brand-name {
  font-size: 24px;
  letter-spacing: -0.01em;
  margin-bottom: 2px;
  font-weight: 700;
  color: var(--primary-navy);
  line-height: 1.3;
}

.brand-title-wrap .sub-affiliation {
  color: var(--text-muted);
  font-size: 12.5px;
  margin-top: 2px;
}

.brand-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--primary-navy);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--dark-navy);
  color: #ffffff;
}

.btn-warning {
  background-color: var(--secondary-amber);
  color: #1a1a1a;
  box-shadow: 0 2px 6px rgba(253, 224, 2, 0.4);
}

.btn-warning:hover {
  background-color: #ecd002;
}

.btn-outline-white {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.4);
  color: #ffffff;
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.btn-outline-navy {
  background: transparent;
  border-color: var(--primary-navy);
  color: var(--primary-navy);
}

.btn-outline-navy:hover {
  background-color: var(--primary-navy);
  color: #ffffff;
}

/* Navigation Bar */
.navbar {
  background-color: var(--primary-navy);
  border-bottom: 3px solid var(--secondary-amber);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-md);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  position: relative;
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  padding: 14px 16px;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  background: transparent;
  border: none;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-link svg {
  flex-shrink: 0;
  opacity: 0.9;
}

.nav-link:hover,
.nav-link.active {
  background-color: rgba(255, 255, 255, 0.15);
  color: var(--secondary-amber);
}

.nav-link.active {
  box-shadow: inset 0 -3px 0 var(--secondary-amber);
}

.nav-caret {
  font-size: 10px;
  margin-left: 2px;
  opacity: 0.85;
}

/* Dropdown Menu */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  border-radius: 8px;
  padding: 8px;
  list-style: none;
  display: none;
  z-index: 120;
}

@media (min-width: 993px) {
  .nav-item:hover .dropdown-menu,
  .nav-item:focus-within .dropdown-menu {
    display: block;
  }
}

.dropdown-item {
  display: block;
  width: 100%;
  padding: 9px 14px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-main);
  border-radius: 6px;
  text-decoration: none;
  text-align: left;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.dropdown-label {
  list-style: none;
  padding: 10px 14px 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.dropdown-item[target="_blank"]::after {
  content: "PDF";
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent-gold);
  margin-left: 8px;
}

.dropdown-item:hover {
  background-color: #f1f5f9;
  color: var(--primary-navy);
  padding-left: 18px;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 8px;
  width: 42px;
  height: 42px;
  padding: 10px 9px;
  cursor: pointer;
  margin-left: auto;
  flex-direction: column;
  justify-content: space-between;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.nav-overlay {
  display: none;
}

body.nav-locked {
  overflow: hidden;
}

/* Notice Ticker */
.notice-ticker {
  background-color: #fffbeb;
  border-bottom: 1px solid #fde68a;
  padding: 8px 0;
  display: flex;
  align-items: center;
}

.ticker-wrap {
  display: flex;
  align-items: center;
  gap: 15px;
  width: 100%;
}

.ticker-label {
  background-color: #dc2626;
  color: #ffffff;
  font-weight: 700;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  flex-shrink: 0;
}

.ticker-content {
  flex-grow: 1;
  overflow: hidden;
  white-space: nowrap;
}

.ticker-text {
  display: inline-block;
  font-size: 13.5px;
  color: #92400e;
  font-weight: 500;
}

/* Hero Section */
.hero {
  background-color: #000c28;
  color: #ffffff;
  padding: 72px 0 88px 0;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('img/banner1.jpg') center 28%/cover no-repeat;
  opacity: 0.22;
  transform: scale(1.04);
  filter: saturate(0.85) contrast(1.05);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(108deg, rgba(0, 12, 40, 0.82) 0%, rgba(0, 36, 108, 0.55) 48%, rgba(0, 18, 56, 0.78) 100%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.hero-content h2 {
  color: #ffffff;
  font-size: 36px;
  margin-bottom: 14px;
  line-height: 1.25;
}

.hero-content p {
  font-size: 16px;
  color: #e2e8f0;
  margin-bottom: 24px;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 24px;
  backdrop-filter: blur(8px);
}

.hero-card h3 {
  color: var(--secondary-amber);
  font-size: 18px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding-bottom: 8px;
}

.hero-stat-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.hero-stat-item {
  background: rgba(0, 0, 0, 0.2);
  padding: 12px;
  border-radius: 8px;
}

.hero-stat-num {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  display: block;
}

.hero-stat-label {
  font-size: 12px;
  color: #cbd5e1;
}

/* Sections Common */
section {
  padding: 60px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header .section-tag {
  color: var(--secondary-dark);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 6px;
}

.section-header h2 {
  font-size: 30px;
  margin-bottom: 8px;
}

.section-header p {
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto;
}

/* Tab Views Container */
.page-view {
  display: none;
}

.page-view.active-view {
  display: block;
}

/* Courses Cards Grid */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.course-card {
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background: #ffffff;
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.course-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: var(--secondary-dark);
}

.course-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.course-code {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary-navy);
}

.course-name {
  font-size: 16px;
  color: #334155;
  font-weight: 600;
  margin-bottom: 8px;
}

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

.course-meta {
  background-color: var(--bg-light);
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 18px;
  font-size: 13px;
}

.course-meta-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.course-meta-item:last-child {
  margin-bottom: 0;
}

.course-meta-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
}

.programs-two {
  max-width: 860px;
  margin: 0 auto;
}

/* Facilities */
.facilities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.facility-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  padding: 24px 20px 22px;
  border-radius: 12px;
  text-align: center;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--secondary-amber);
}

.facility-card:hover {
  border-color: var(--primary-navy);
  border-top-color: var(--secondary-amber);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.facility-card h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.facility-card p {
  font-size: 13.5px;
  color: #64748b;
  margin: 0;
}

.facility-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(180deg, #f8fbff 0%, #eef3fb 100%);
  border: 1px solid #dbe4f2;
  color: var(--primary-navy);
  box-shadow: var(--shadow-sm);
}

.facility-icon svg {
  display: block;
}

/* Faculty Grid */
.faculty-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.faculty-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.faculty-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--bg-light);
  margin: 0 auto 14px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: var(--primary-navy);
  border: 2px solid var(--secondary-amber);
}

.faculty-table-wrap {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
}

.faculty-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.faculty-table thead th {
  background-color: var(--primary-navy);
  color: #ffffff;
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.faculty-table tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-main);
}

.faculty-table tbody tr:last-child td {
  border-bottom: none;
}

.faculty-table tbody tr:nth-child(even) {
  background-color: #f8fafc;
}

.faculty-table tbody tr:hover {
  background-color: #eef3f9;
}

.faculty-table td a {
  color: var(--primary-navy);
  font-weight: 500;
}

@media (max-width: 576px) {
  .faculty-table thead th,
  .faculty-table tbody td {
    padding: 10px 12px;
    font-size: 13px;
  }
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.gallery-item {
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: transform 0.2s ease;
}

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

.gallery-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.gallery-caption {
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
}

/* Contact & Map Layout */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.contact-info-card {
  background: var(--primary-navy);
  color: #ffffff;
  padding: 36px;
  border-radius: 10px;
}

.contact-info-card h3 {
  color: #ffffff;
  margin-bottom: 20px;
}

.contact-detail-row {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
}

.contact-detail-row strong {
  display: block;
  color: var(--secondary-amber);
  font-size: 14px;
}

.contact-form-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  padding: 36px;
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
}

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

.form-label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #334155;
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s;
}

.form-control:focus {
  border-color: var(--primary-navy);
}

/* Map Container */
.map-card {
  margin-top: 30px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.map-header {
  background-color: var(--bg-light);
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
}

/* Footer */
footer {
  background-color: var(--dark-navy);
  color: #e2e8f0;
  padding: 50px 0 20px 0;
  border-top: 3px solid var(--secondary-amber);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 30px;
  margin-bottom: 40px;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 17px;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 8px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 36px;
  height: 2px;
  background-color: var(--secondary-amber);
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: #cbd5e1;
  font-size: 14px;
}

.footer-col ul li a:hover {
  color: var(--secondary-amber);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 13px;
  color: #94a3b8;
}

/* Modal Popup */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-backdrop.modal-show {
  display: flex;
}

.modal-card {
  background: #ffffff;
  border-radius: 12px;
  max-width: 550px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  padding: 28px;
  position: relative;
  animation: modalFadeIn 0.25s ease;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(-15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: #f1f5f9;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: #e2e8f0;
}

/* Floating Admission Button */
.floating-apply-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background-color: var(--secondary-amber);
  color: #001747;
  font-weight: 800;
  padding: 12px 20px;
  border-radius: 50px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 90;
  cursor: pointer;
  border: 2px solid #ffffff;
  transition: transform 0.2s ease;
}

.floating-apply-btn:hover {
  transform: scale(1.05);
}

/* Introduction with campus photo — full uncropped wide render */
.intro-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: stretch;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  min-width: 0;
}

.intro-photo-wrap {
  position: relative;
  min-width: 0;
  background: linear-gradient(180deg, #dce7f4 0%, #eef3f9 100%);
}

.intro-photo-wrap img {
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: none;
  object-fit: contain;
  object-position: center top;
  display: block;
  vertical-align: top;
}

.intro-photo-caption {
  display: block;
  background: var(--dark-navy);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 18px;
  border-left: none;
  border-top: 3px solid var(--secondary-amber);
}

.intro-copy {
  padding: 28px 32px 32px;
}

.intro-copy h1,
.intro-copy h2 {
  font-size: 28px;
  margin: 6px 0 16px 0;
}

.intro-en {
  color: #334155;
  font-size: 15px;
  line-height: 1.75;
  margin-bottom: 0;
}

/* Leadership message layout */
.message-layout {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  align-items: start;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.message-photo {
  text-align: center;
}

.message-photo img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: top center;
  border-radius: 12px;
  border: 3px solid var(--secondary-amber);
  box-shadow: var(--shadow-md);
  background: #f8fafc;
}

.message-photo figcaption {
  margin-top: 12px;
}

.message-photo strong {
  display: block;
  color: var(--primary-navy);
  font-size: 16px;
}

.message-photo span {
  display: block;
  color: var(--text-muted);
  font-size: 13px;
  margin-top: 2px;
}

.message-quote {
  font-size: 16px;
  font-style: italic;
  color: #334155;
  margin-bottom: 16px;
  line-height: 1.75;
}

.message-quote::before {
  content: "“";
  color: var(--secondary-dark);
  font-size: 28px;
  line-height: 0;
  margin-right: 4px;
}

/* Lab / academic visual strip */
.visual-banner {
  position: relative;
  min-height: 220px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.visual-banner-bg {
  position: absolute;
  inset: 0;
  background: url('img/banner2.jpg') center/cover no-repeat;
  filter: saturate(0.9);
}

.visual-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 18, 56, 0.88) 0%, rgba(0, 36, 108, 0.62) 55%, rgba(0, 18, 56, 0.35) 100%);
}

.visual-banner .container {
  position: relative;
  z-index: 1;
  color: #fff;
}

.visual-banner h3 {
  color: #fff;
  font-size: 26px;
  margin-bottom: 8px;
}

.visual-banner p {
  color: #e2e8f0;
  max-width: 520px;
}

.icon-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.why-strip {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border-top: 1px solid var(--border-color);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.why-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
}

.why-num {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--accent-gold);
  margin-bottom: 10px;
}

.why-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.why-card p {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0;
}

.highlight-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 28px;
}

.highlight-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 18px 18px 16px;
}

.highlight-dot {
  width: 10px;
  height: 10px;
  margin-top: 7px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--secondary-amber);
  box-shadow: 0 0 0 4px #fff4b0;
}

.highlight-item h3 {
  font-size: 15.5px;
  margin-bottom: 4px;
}

.highlight-item p {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-muted);
}

.more-facilities {
  margin-top: 56px;
}

.more-facilities .section-header h2 {
  position: relative;
  display: inline-block;
}

.more-facilities .section-header h2::after {
  content: "";
  display: block;
  width: 52px;
  height: 3px;
  background: var(--secondary-amber);
  margin: 10px auto 0;
}

.more-facilities-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.more-facilities-photo {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: #eef3f9;
}

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

.more-facilities-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.more-facilities-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.more-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--secondary-amber);
  color: #001747;
  display: flex;
  align-items: center;
  justify-content: center;
}

.more-facilities-list h3 {
  font-size: 16px;
  margin-bottom: 4px;
}

.more-facilities-list p {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-muted);
}

.campus-peek,
.infra-hero,
.lab-photo-grid {
  display: grid;
  gap: 16px;
  margin: 28px 0 8px;
}

.campus-peek {
  grid-template-columns: repeat(3, 1fr);
}

.infra-hero {
  grid-template-columns: 1fr 1fr;
  margin-bottom: 36px;
}

.lab-gallery {
  margin-top: 56px;
}

.lab-photo-grid {
  grid-template-columns: repeat(4, 1fr);
}

.campus-peek figure,
.infra-hero figure,
.lab-photo-grid figure {
  margin: 0;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.campus-peek img,
.infra-hero img,
.lab-photo-grid img {
  width: 100%;
  max-height: none;
  object-fit: cover;
  object-position: center;
  display: block;
}

.campus-peek img {
  height: 260px;
}

.infra-hero img {
  height: 320px;
}

.lab-photo-grid img {
  height: 220px;
}

.campus-peek figcaption,
.infra-hero figcaption,
.lab-photo-grid figcaption {
  padding: 10px 12px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-navy);
}

.infra-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.infra-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 26px 22px 22px;
  box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--secondary-amber);
}

.infra-card .facility-icon {
  margin: 0 0 14px 0;
}

.infra-card h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.infra-card p {
  font-size: 13.5px;
  color: #64748b;
  margin-bottom: 12px;
}

.infra-card ul {
  padding-left: 18px;
  margin: 0;
  color: #475569;
  font-size: 13px;
  line-height: 1.7;
}

.infra-note {
  margin-top: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 28px;
  background: var(--dark-navy);
  color: #e2e8f0;
  border-radius: 14px;
  border-left: 4px solid var(--secondary-amber);
}

.infra-note h3 {
  color: #fff;
  font-size: 18px;
  margin-bottom: 6px;
}

.infra-note p {
  margin: 0;
  font-size: 14px;
  max-width: 640px;
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .why-grid,
  .infra-grid,
  .highlight-grid,
  .more-facilities-split,
  .infra-hero,
  .campus-peek {
    grid-template-columns: 1fr 1fr;
  }
  .lab-photo-grid {
    grid-template-columns: 1fr 1fr;
  }

  .navbar .container {
    padding-top: 6px;
    padding-bottom: 6px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: var(--dark-navy);
    padding: 8px 0 12px;
    margin-top: 8px;
    border-radius: 10px;
    max-height: min(70vh, 560px);
    overflow-y: auto;
  }

  .nav-menu.mobile-open {
    display: flex;
  }

  .nav-link {
    padding: 13px 16px;
    width: 100%;
    justify-content: flex-start;
  }

  .nav-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 12, 40, 0.45);
    z-index: 90;
  }

  .nav-overlay[hidden] {
    display: none;
  }

  .dropdown-menu {
    position: static;
    background-color: #001238;
    border: none;
    box-shadow: none;
    padding: 0 8px 8px 28px;
    border-radius: 0;
    display: none;
    min-width: 0;
  }

  .nav-item.dropdown-open .dropdown-menu {
    display: block;
  }

  .dropdown-item {
    color: #cbd5e1;
    padding: 10px 12px;
  }

  .dropdown-item:hover {
    background-color: rgba(255,255,255,0.08);
    color: var(--secondary-amber);
    padding-left: 16px;
  }

  .dropdown-label {
    color: #94a3b8;
  }
}

@media (max-width: 768px) {
  .intro-split,
  .message-layout {
    grid-template-columns: 1fr;
  }
  .intro-copy {
    padding: 22px 18px 24px;
  }
  .intro-copy h1,
  .intro-copy h2 {
    font-size: 22px;
  }
  .intro-photo-wrap img {
    min-height: 0;
  }
  .message-photo {
    max-width: 220px;
    margin: 0 auto;
  }
  .why-grid,
  .infra-grid,
  .highlight-grid,
  .more-facilities-split,
  .infra-hero,
  .campus-peek,
  .lab-photo-grid {
    grid-template-columns: 1fr;
  }
  .campus-peek img,
  .infra-hero img,
  .lab-photo-grid img {
    height: auto;
  }
  .infra-note {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero-content h2 {
    font-size: 28px;
  }
  .floating-apply-btn {
    bottom: 16px;
    right: 16px;
    padding: 10px 14px;
  }
  .top-bar {
    font-size: 12px;
  }
}

@media (max-width: 576px) {
  .header-brand-wrap {
    flex-direction: column;
    align-items: flex-start;
  }
  .brand-right {
    width: 100%;
  }
  .brand-right .btn {
    width: 100%;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .brand-title-wrap .brand-name {
    font-size: 18px;
  }
  .college-seal {
    width: 58px;
    height: 58px;
  }
}
