/* ==========================================================================
   Dr. Rammanohar Lohia Avadh University (RMLAU) - Official Replica Stylesheet
   Created for College Academic Web Project
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Devanagari:wght@400;600;700&family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  /* University Colors */
  --rmlau-maroon: #730000;
  --rmlau-maroon-dark: #500000;
  --rmlau-maroon-light: #8e1010;
  --rmlau-orange: #e36c30;
  --rmlau-orange-hover: #cf5a1f;
  --rmlau-gold: #e0ab1b;
  --rmlau-gold-light: #fef3c7;
  --rmlau-blue: #175d80;
  --rmlau-blue-dark: #0f415a;
  --rmlau-blue-light: #e0f2fe;

  /* Neutrals */
  --bg-page: #f4f6f9;
  --bg-card: #ffffff;
  --text-dark: #1e293b;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --border-light: #f1f5f9;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 10px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.12);
  --shadow-maroon: 0 8px 20px rgba(115, 0, 0, 0.18);

  /* Layout */
  --container-max: 1240px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --transition: all 0.25s ease-in-out;
}

/* Font Resizing States (Accessibility) */
body.font-small { font-size: 13px; }
body.font-normal { font-size: 15px; }
body.font-large { font-size: 17px; }

/* Reset */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: var(--rmlau-blue);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--rmlau-orange);
}

ul {
  list-style: none;
}

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

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1rem;
}

/* ==========================================================================
   1. TOP UTILITY BAR
   ========================================================================== */
.top-bar {
  background: var(--rmlau-maroon-dark);
  color: #f8fafc;
  font-size: 0.8rem;
  border-bottom: 2px solid var(--rmlau-gold);
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
}

.top-nav-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.top-nav-links a {
  color: #f1f5f9;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 500;
}

.top-nav-links a:hover {
  color: var(--rmlau-gold);
}

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

.accessibility-controls {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(255, 255, 255, 0.12);
  padding: 0.15rem 0.4rem;
  border-radius: var(--radius-sm);
}

.font-btn {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  transition: var(--transition);
}

.font-btn:hover, .font-btn.active {
  background: var(--rmlau-gold);
  color: var(--rmlau-maroon-dark);
}

.lang-switch {
  background: var(--rmlau-orange);
  color: #fff;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.75rem;
  cursor: pointer;
  border: none;
}

/* ==========================================================================
   2. BRANDING & LOGO SECTION
   ========================================================================== */
.main-header {
  background: #ffffff;
  padding: 0.9rem 0;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

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

.university-logo-emblem {
  width: 85px;
  height: 85px;
  flex-shrink: 0;
}

.university-logo-emblem svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 2px 4px rgba(115, 0, 0, 0.2));
}

.brand-titles {
  display: flex;
  flex-direction: column;
}

.univ-name-en {
  font-family: 'Outfit', sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--rmlau-maroon);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.univ-location {
  color: var(--rmlau-orange);
  font-weight: 700;
}

.univ-name-hi {
  font-family: 'Noto Sans Devanagari', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #334155;
  margin-top: 0.15rem;
}

.univ-motto {
  font-family: 'Noto Sans Devanagari', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--rmlau-maroon);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.2rem;
  animation: subtleBlink 2.5s infinite;
}

.univ-motto::before, .univ-motto::after {
  content: '✦';
  color: var(--rmlau-gold);
  font-size: 0.8rem;
}

@keyframes subtleBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; color: var(--rmlau-orange); }
}

.header-accreditations {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.accred-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 1px solid #fde68a;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.naac-grade {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: #b45309;
  line-height: 1;
}

.naac-sub {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #78350f;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   3. PRIMARY NAVIGATION BAR
   ========================================================================== */
.main-navigation {
  background: var(--rmlau-maroon);
  box-shadow: 0 4px 12px rgba(115, 0, 0, 0.25);
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

.nav-menu {
  display: flex;
  align-items: center;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: block;
  padding: 0.85rem 0.95rem;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.88rem;
  white-space: nowrap;
  transition: var(--transition);
  border-bottom: 3px solid transparent;
}

.nav-link:hover, .nav-item.active .nav-link {
  background-color: var(--rmlau-maroon-dark);
  color: var(--rmlau-gold);
  border-bottom-color: var(--rmlau-gold);
}

/* Dropdown menus */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  min-width: 240px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  box-shadow: var(--shadow-lg);
  border-top: 3px solid var(--rmlau-orange);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  z-index: 1010;
}

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

.dropdown-item {
  position: relative;
  border-bottom: 1px solid var(--border-light);
}

.dropdown-item:last-child {
  border-bottom: none;
}

.dropdown-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1rem;
  color: #334155;
  font-size: 0.84rem;
  font-weight: 500;
  transition: var(--transition);
}

.dropdown-link:hover {
  background-color: #f8fafc;
  color: var(--rmlau-maroon);
  padding-left: 1.25rem;
}

/* Sub-dropdown */
.sub-dropdown {
  left: 100%;
  top: 0;
  border-top: none;
  border-left: 3px solid var(--rmlau-orange);
}

.dropdown-item:hover > .sub-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 1.4rem;
  padding: 0.5rem;
  cursor: pointer;
}

/* ==========================================================================
   4. TICKER / WHAT'S NEW STRIP
   ========================================================================== */
.ticker-container {
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
}

.ticker-wrapper {
  display: flex;
  align-items: center;
  height: 42px;
  overflow: hidden;
}

.ticker-badge {
  background: var(--rmlau-orange);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0 1.1rem;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
  flex-shrink: 0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

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

.ticker-marquee {
  display: inline-block;
  white-space: nowrap;
  padding-left: 100%;
  animation: marqueeAnimation 28s linear infinite;
}

.ticker-marquee:hover {
  animation-play-state: paused;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  margin-right: 2.5rem;
  color: #1e293b;
  font-size: 0.85rem;
  font-weight: 500;
}

.ticker-item::before {
  content: '★';
  color: var(--rmlau-orange);
  margin-right: 0.5rem;
  font-size: 0.75rem;
}

.ticker-item a {
  color: var(--rmlau-blue);
  font-weight: 600;
}

.ticker-item a:hover {
  color: var(--rmlau-orange);
  text-decoration: underline;
}

.badge-new {
  background: #ef4444;
  color: #fff;
  font-size: 0.65rem;
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  font-weight: 700;
  margin-left: 0.35rem;
}

@keyframes marqueeAnimation {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-100%, 0, 0); }
}

/* ==========================================================================
   5. HERO SECTION (3-COLUMN LAYOUT)
   ========================================================================== */
.hero-section {
  padding: 1.5rem 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 260px 1fr 260px;
  gap: 1.25rem;
  align-items: stretch;
}

/* Left: Lohia Memorial Card */
.lohia-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  border-top: 4px solid var(--rmlau-orange);
  box-shadow: var(--shadow-sm);
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
}

.lohia-photo-box {
  width: 130px;
  height: 130px;
  margin: 0 auto 0.75rem;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--rmlau-gold);
  box-shadow: var(--shadow-sm);
}

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

.lohia-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--rmlau-maroon);
  margin-bottom: 0.2rem;
}

.lohia-dates {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.lohia-bio {
  font-size: 0.8rem;
  color: #475569;
  line-height: 1.5;
  text-align: justify;
  margin-bottom: 0.8rem;
}

.btn-readmore {
  display: inline-block;
  align-self: center;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--rmlau-maroon);
  border: 1px solid var(--rmlau-maroon);
  padding: 0.35rem 0.8rem;
  border-radius: 4px;
  transition: var(--transition);
}

.btn-readmore:hover {
  background: var(--rmlau-maroon);
  color: #ffffff;
}

/* Center: Carousel Slider */
.slider-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.slider-wrapper {
  position: relative;
  width: 100%;
  height: 380px;
  overflow: hidden;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease-in-out;
}

.slide.active {
  opacity: 1;
  visibility: visible;
}

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

.slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  color: #ffffff;
  padding: 2rem 1.5rem 1rem;
}

.slide-caption h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
}

.slide-caption p {
  font-size: 0.85rem;
  color: #cbd5e1;
}

.slider-controls {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 0.8rem;
  pointer-events: none;
}

.slider-btn {
  pointer-events: auto;
  background: rgba(0, 0, 0, 0.4);
  color: #ffffff;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.slider-btn:hover {
  background: var(--rmlau-orange);
}

.slider-indicators {
  position: absolute;
  bottom: 12px;
  right: 16px;
  display: flex;
  gap: 6px;
  z-index: 10;
}

.indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.indicator.active {
  background: var(--rmlau-gold);
  transform: scale(1.2);
}

/* Right: Leadership Cards */
.leadership-column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.leader-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 1rem;
  border-top: 3px solid var(--rmlau-maroon);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
}

.leader-img-box {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--rmlau-gold);
  margin-bottom: 0.5rem;
  box-shadow: var(--shadow-sm);
}

.leader-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.leader-name {
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--rmlau-maroon);
}

.leader-designation {
  font-size: 0.75rem;
  color: #475569;
  line-height: 1.3;
  margin-top: 0.2rem;
  margin-bottom: 0.4rem;
}

.leader-link {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--rmlau-blue);
  text-transform: uppercase;
}

.leader-link:hover {
  color: var(--rmlau-orange);
  text-decoration: underline;
}

/* ==========================================================================
   6. QUICK PORTALS / STUDENT & COLLEGE GATEWAY
   ========================================================================== */
.quick-portals-section {
  padding: 1.5rem 0;
}

.section-title-wrap {
  text-align: center;
  margin-bottom: 1.5rem;
}

.section-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--rmlau-orange);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.section-main-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--rmlau-maroon);
  position: relative;
  display: inline-block;
  padding-bottom: 0.5rem;
}

.section-main-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: var(--rmlau-gold);
  border-radius: 2px;
}

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

.portal-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 1.25rem 1rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.portal-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--rmlau-orange);
  transition: height 0.2s ease;
}

.portal-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--rmlau-orange);
}

.portal-card:hover::before {
  height: 6px;
}

.portal-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--rmlau-gold-light);
  color: var(--rmlau-maroon);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 0.85rem;
  transition: var(--transition);
}

.portal-card:hover .portal-icon {
  background: var(--rmlau-maroon);
  color: #ffffff;
}

.portal-title {
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.35rem;
}

.portal-desc {
  font-size: 0.76rem;
  color: var(--text-muted);
}

/* ==========================================================================
   7. NEWS, NOTICES & WELCOME 3-COLUMN SECTION
   ========================================================================== */
.content-triad-section {
  padding: 1.5rem 0 2rem;
}

.triad-grid {
  display: grid;
  grid-template-columns: 310px 1fr 310px;
  gap: 1.5rem;
}

.feed-column {
  background: #ffffff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.feed-header {
  background: var(--rmlau-maroon);
  color: #ffffff;
  padding: 0.75rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--rmlau-gold);
}

.feed-header h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.feed-list-scroll {
  height: 380px;
  overflow-y: auto;
  padding: 0.75rem;
  scrollbar-width: thin;
  scrollbar-color: var(--rmlau-gold) #f1f5f9;
}

.feed-list-scroll::-webkit-scrollbar {
  width: 5px;
}

.feed-list-scroll::-webkit-scrollbar-thumb {
  background: var(--rmlau-gold);
  border-radius: 3px;
}

.feed-item {
  padding: 0.75rem 0.5rem;
  border-bottom: 1px dashed var(--border-color);
  transition: var(--transition);
}

.feed-item:hover {
  background-color: #f8fafc;
  border-radius: 4px;
}

.feed-item:last-child {
  border-bottom: none;
}

.feed-date {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--rmlau-orange);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-bottom: 0.25rem;
}

.feed-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: #334155;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.feed-link:hover {
  color: var(--rmlau-maroon);
}

.feed-footer {
  padding: 0.6rem 1rem;
  background: #f8fafc;
  border-top: 1px solid var(--border-color);
  text-align: right;
}

.feed-view-all {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--rmlau-maroon);
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.feed-view-all:hover {
  color: var(--rmlau-orange);
}

/* Center Welcome Card */
.welcome-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.welcome-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--rmlau-maroon);
  margin-bottom: 0.75rem;
  border-bottom: 2px solid var(--border-light);
  padding-bottom: 0.5rem;
}

.welcome-img-box {
  width: 100%;
  height: 180px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 1rem;
  border: 1px solid var(--border-color);
}

.welcome-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.welcome-img-box:hover img {
  transform: scale(1.02);
}

.welcome-text {
  font-size: 0.85rem;
  color: #334155;
  line-height: 1.6;
  text-align: justify;
  margin-bottom: 0.85rem;
}

/* ==========================================================================
   8. SEMINARS, WORKSHOPS & CONFERENCES
   ========================================================================== */
.seminars-section {
  padding: 1.5rem 0;
  background: #f8fafc;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.seminars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.seminar-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.seminar-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.seminar-badge {
  padding: 0.4rem 0.85rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  background: var(--rmlau-maroon);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.seminar-body {
  padding: 1.2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.seminar-title {
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.4;
  margin-bottom: 0.6rem;
}

.seminar-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.85rem;
}

.seminar-btn {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--rmlau-orange);
  align-self: flex-start;
}

.seminar-btn:hover {
  color: var(--rmlau-maroon);
  text-decoration: underline;
}

/* ==========================================================================
   9. PHOTO GALLERY SHOWCASE
   ========================================================================== */
.gallery-section {
  padding: 2rem 0;
}

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

.gallery-item {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  height: 180px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 30%, rgba(115, 0, 0, 0.9));
  color: #ffffff;
  padding: 1rem;
  display: flex;
  align-items: flex-end;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-caption {
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.3;
}

/* ==========================================================================
   10. IMPORTANT GOVERNMENT PORTALS CAROUSEL
   ========================================================================== */
.partners-strip {
  background: #ffffff;
  padding: 1.25rem 0;
  border-top: 1px solid var(--border-color);
}

.partners-heading {
  text-align: center;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.partners-flex {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.partner-link {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  filter: grayscale(80%);
  opacity: 0.8;
  transition: var(--transition);
}

.partner-link:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.06);
}

.partner-badge-text {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--rmlau-maroon);
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: #f8fafc;
}

/* ==========================================================================
   11. FOOTER
   ========================================================================== */
footer.site-footer {
  background: var(--rmlau-maroon-dark);
  color: #f1f5f9;
  border-top: 4px solid var(--rmlau-gold);
}

.footer-top {
  padding: 2.5rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2rem;
}

.footer-col h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--rmlau-gold);
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 0.4rem;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 35px;
  height: 2px;
  background: var(--rmlau-orange);
}

.footer-desc {
  font-size: 0.83rem;
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.footer-links-list li {
  margin-bottom: 0.45rem;
}

.footer-links-list a {
  color: #cbd5e1;
  font-size: 0.82rem;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-links-list a:hover {
  color: var(--rmlau-gold);
  padding-left: 0.3rem;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.82rem;
  color: #cbd5e1;
  margin-bottom: 0.65rem;
}

.contact-info-item i {
  color: var(--rmlau-gold);
  margin-top: 0.2rem;
}

.social-links {
  display: flex;
  gap: 0.6rem;
  margin-top: 1rem;
}

.social-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: var(--transition);
}

.social-btn:hover {
  background: var(--rmlau-orange);
  color: #ffffff;
  transform: translateY(-2px);
}

.footer-bottom {
  background: rgba(0, 0, 0, 0.35);
  padding: 0.9rem 0;
  font-size: 0.78rem;
  color: #94a3b8;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.visitor-badge {
  background: rgba(0, 0, 0, 0.4);
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  font-family: monospace;
  font-weight: 700;
  color: var(--rmlau-gold);
}

/* ==========================================================================
   12. MODAL LIGHTBOX
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s;
  padding: 1rem;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  background: #ffffff;
  border-radius: var(--radius-md);
  max-width: 600px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: scale(0.95);
  transition: transform 0.25s ease;
}

.modal-overlay.active .modal-box {
  transform: scale(1);
}

.modal-header-bar {
  background: var(--rmlau-maroon);
  color: #ffffff;
  padding: 0.85rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header-bar h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 1.25rem;
  cursor: pointer;
  line-height: 1;
}

.modal-content-body {
  padding: 1.5rem;
  font-size: 0.9rem;
  color: #334155;
  line-height: 1.6;
}

/* ==========================================================================
   13. RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
  }
  .lohia-card {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 1.5rem;
  }
  .lohia-photo-box {
    margin: 0;
  }
  .triad-grid {
    grid-template-columns: 1fr 1fr;
  }
  .welcome-card {
    grid-column: 1 / -1;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    text-align: center;
  }
  .brand-wrapper {
    flex-direction: column;
    text-align: center;
  }
  .header-accreditations {
    display: none;
  }
  .mobile-nav-toggle {
    display: block;
  }
  .nav-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    background: var(--rmlau-maroon-dark);
    padding: 0.5rem 0;
  }
  .nav-menu.mobile-open {
    display: flex;
  }
  .nav-item {
    width: 100%;
  }
  .nav-link {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border-top: none;
    display: none;
    background: #450000;
  }
  .nav-item.open-sub > .dropdown-menu {
    display: block;
  }
  .dropdown-link {
    color: #e2e8f0;
  }
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .lohia-card {
    flex-direction: column;
    text-align: center;
  }
  .triad-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
