:root {
  /* Premium Color Palette - Maroon Theme */
  --brand-dark: #4a0404; /* Deep Maroon */
  --brand-primary: #800000; /* MAragon */
  --brand-light: #a01e1e; /* Lighter Maroon */
  --accent: #b91c1c; /* Red Accent */
  --accent-light: #f87171;

  --bg-body: #f8fafc;
  --bg-card: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;

  /* Glassmorphism & Shadows */
  --glass: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.4);
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md:
    0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg:
    0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl:
    0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

  /* Gradients */
  --gradient-brand: linear-gradient(135deg, #4a0404 0%, #800000 100%);
  --gradient-accent: linear-gradient(135deg, #b91c1c 0%, #f87171 100%);
  --gradient-hero: linear-gradient(135deg, #2b0202 0%, #600000 100%);
  --gradient-gold: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
}

/* Base Reset & Typography */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

body {
  font-family:
    "Inter",
    system-ui,
    -apple-system,
    sans-serif;
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-top: 140px; /* Space for fixed header (Banner ~90px + Nav ~50px) */
}
p {
  text-align: justify;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Poppins", sans-serif;
  color: var(--brand-dark);
  font-weight: 700;
  line-height: 1.25;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}
ul {
  list-style: none;
}
img {
  max-width: 100%;
  display: block;
}

/* Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.text-center {
  text-align: center;
}
.text-center p {
  text-align: center;
}
.text-muted {
  color: var(--text-muted);
}
.mt-2 {
  margin-top: 0.5rem;
}
.mt-4 {
  margin-top: 1rem;
}
.mb-4 {
  margin-bottom: 1rem;
}
.my-5 {
  margin-top: 3rem;
  margin-bottom: 3rem;
}
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  margin-bottom: 40px;
}
.section-title h1,
.section-title h2,
.section-title h3 {
  margin-bottom: 0;
}
.section-title h2 {
  font-size: 2.25rem;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.section-title.text-center {
  justify-content: center;
  text-align: center;
}

/* Buttons */
.btn-primary {
  display: inline-block;
  background: var(--gradient-brand);
  color: #fff;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  filter: brightness(110%);
}

/* Header & Navigation Overhaul */
.header-fixed-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: var(--shadow-md);
  overflow-x: clip;
}

.top-banner {
  background: #fff;
  border-bottom: 1px solid #edf2f7;
  padding: 15px 0;
}

/* Make header inner rows span full screen width */
.top-banner .container,
.nav-strip .container {
  max-width: 100%;
  padding-left: 40px;
  padding-right: 40px;
}

.banner-inner {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.brand {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 15px;
  margin-right: auto;
}

.brand-link {
  display: flex;
  align-items: center;
}

.banner-actions {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
}

.social-links {
  display: flex;
  gap: 15px;
  padding-left: 25px;
  border-left: 1px solid #edf2f7;
}

.social-icon {
  color: var(--text-muted);
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease;
}

.social-icon:hover {
  color: var(--brand-primary);
}

.social-icon svg {
  width: 100%;
  height: 100%;
}

/* Header Search - Custom Search Form */
.header-search {
  margin-left: 15px;
  padding-left: 0;
  border-left: none;
}

/* Google CSE Customization - Force rounded corners and icon on right */
.gsc-control-cse,
.gsc-control-searchbox-only {
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  font-family: inherit !important;
}

/* Remove all default margins */
.gsc-search-box,
.gsc-search-box-tools {
  margin: 0 !important;
  padding: 0 !important;
}

/* Style the main search container - force table layout to flex */
table.gsc-search-box {
  margin: 0 !important;
  border-collapse: collapse !important;
  display: flex !important;
  flex-direction: row-reverse !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 20px !important;
  background: #f8fafc !important;
  padding: 4px 12px !important;
  width: 100% !important;
}

table.gsc-search-box:focus-within {
  border-color: var(--brand-primary) !important;
  background: #fff !important;
  box-shadow: 0 0 0 3px rgba(128, 0, 0, 0.1) !important;
}

/* Style table cells */
table.gsc-search-box td {
  border: none !important;
  padding: 0 !important;
  background: transparent !important;
}

/* Input cell - make it grow */
table.gsc-search-box td.gsc-input {
  flex: 1 !important;
  padding: 0 !important;
}

/* Button cell - keep it compact on the right */
table.gsc-search-box td.gsc-search-button {
  flex: 0 0 auto !important;
  padding: 0 !important;
  margin-left: 8px !important;
}

/* Style the input box wrapper */
.gsc-input-box {
  border: none !important;
  background: transparent !important;
  padding: 0 !important;
  height: auto !important;
  box-shadow: none !important;
}

/* Style the actual input field */
.gsc-input input.gsc-input,
input.gsc-input {
  background: transparent !important;
  border: none !important;
  padding: 6px 8px !important;
  font-size: 0.9rem !important;
  color: var(--text-main) !important;
  font-family: inherit !important;
  outline: none !important;
  box-shadow: none !important;
  height: auto !important;
  line-height: normal !important;
}

input.gsc-input::placeholder {
  color: var(--text-muted) !important;
}

/* Style the search button */
.gsc-search-button,
.gsc-search-button button {
  background: transparent !important;
  border: none !important;
  padding: 4px !important;
  margin: 0 !important;
  min-width: auto !important;
  cursor: pointer !important;
  outline: none !important;
}

.gsc-search-button-v2 {
  background: transparent !important;
  border: none !important;
  padding: 4px !important;
  margin: 0 !important;
  min-width: auto !important;
  width: auto !important;
  height: auto !important;
}

/* Style the search icon */
.gsc-search-button svg,
.gsc-search-button-v2 svg {
  fill: var(--text-muted) !important;
  width: 18px !important;
  height: 18px !important;
  display: block !important;
}

.gsc-search-button:hover svg,
.gsc-search-button-v2:hover svg {
  fill: var(--brand-primary) !important;
}

/* Hide autocomplete dropdown styling if needed */
.gsc-completion-container {
  border-radius: 12px !important;
  margin-top: 4px !important;
}

/* Hide clear button */
.gsc-clear-button {
  display: none !important;
}

/* Custom Search Form Styles */
.custom-search-form {
  position: relative;
  width: 200px;
  margin-left: 0;
  margin-right: 0;
}

.custom-search-form .search-input {
  width: 100%;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  border-radius: 25px;
  padding: 10px 45px 10px 20px;
  font-size: 0.9rem;
  color: var(--text-main);
  outline: none;
  font-family: inherit;
  transition: all 0.3s ease;
}

.custom-search-form .search-input::placeholder {
  color: var(--text-muted);
}

.custom-search-form .search-input:focus {
  border-color: var(--brand-primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(128, 0, 0, 0.1);
}

.custom-search-form .search-button {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  border-radius: 50%;
}

.custom-search-form .search-button:hover {
  color: var(--brand-primary);
  background: rgba(128, 0, 0, 0.08);
}

.action-buttons {
  display: flex;
  gap: 12px;
}

.btn-banner-outline {
  padding: 8px 16px;
  border: 1px solid #edf2f7;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.3s ease;
}

.btn-banner-outline:hover {
  background: #f8fafc;
  color: var(--brand-primary);
  border-color: var(--brand-primary);
}

.btn-banner-fill {
  padding: 8px 16px;
  background: var(--brand-primary);
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #fff;
  transition: filter 0.3s ease;
}

.btn-banner-fill:hover {
  filter: brightness(115%);
  color: #fff;
}

.nav-strip {
  background: #dc143c; /* Crimson Red */
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  height: 50px;
  display: flex;
  align-items: center;
}

.logo {
  height: 60px; /* Larger logo in banner */
  transition: transform 0.3s ease;
}

.brand-text h1 {
  font-size: 1.6rem;
  margin: 0;
  color: var(--brand-primary);
  line-height: 1.1;
}

.brand-text h4 {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 2px;
}

.dept-banner-name-row {
  margin-left: auto;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 15px !important;
  padding-left: 20px;
}

.dept-banner-name-row h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--brand-primary);
  margin: 0 !important;
  line-height: 1.2;
  white-space: nowrap !important;
  display: inline-block !important;
}

.dept-banner-name-row .social-icon {
  margin: 0 !important;
  display: flex !important;
  flex-shrink: 0 !important;
}

@media (max-width: 768px) {
  .dept-banner-name-row h2 {
    font-size: 1.1rem;
  }
}

.nav {
  display: flex;
  gap: 10px;
  align-items: center;
  width: 100%;
  justify-content: center;
}

.nav > li > a {
  padding: 0 15px;
  height: 50px;
  display: flex;
  align-items: center;
  font-weight: 600;
  color: #ffffff;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
}

.nav > li > a:hover,
.nav > li > a.active {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

/* Dropdown Menu */
.has-sub {
  position: relative;
}
.sub {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg-card);
  min-width: 260px;
  box-shadow: var(--shadow-xl);
  border-radius: 12px;
  padding: 8px;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: all 0.2s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
  z-index: 1100;
}
/* Target only direct child .sub to prevent nested ones from showing prematurely */
.has-sub:hover > .sub,
.has-sub-level:hover > .sub {
  opacity: 1;
  transform: translateY(0) !important;
  pointer-events: auto;
}

/* Secondary Level Dropdown (Desktop) */
.sub .has-sub-level {
  position: relative;
}
.sub .sub {
  top: -8px; /* Offset parent sub padding */
  left: 100%;
  transform: translateY(0) !important;
  margin-left: -1px; /* Slight overlap to prevent gap */
}

/* Modifier to open nested sub-menus to the left */
.sub .has-sub-left .sub {
  left: auto;
  right: 100%;
  margin-left: 0;
  margin-right: -1px;
}
.sub li a::after {
  content: " ›";
  opacity: 0;
  transition: opacity 0.2s;
  float: right;
}
.sub .has-sub-level > a::after {
  opacity: 1;
}

/* Vertical Overflow Fix: 
   If a nested menu is near the bottom of the list, 
   align it from the bottom instead of the top 
*/
.sub li:nth-last-child(-n + 4).has-sub-level .sub {
  top: auto;
  bottom: -8px;
}

/* Ensure nested menus remain visible */
.sub li {
  position: relative;
}
.sub .has-sub-level {
  position: relative;
}
.sub li a {
  display: block;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 0.95rem;
  color: var(--text-muted);
}
.sub li a:hover {
  background: #f1f5f9;
  color: var(--brand-primary);
  transform: translateX(4px);
}

/* Mobile Toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-main);
  margin: 5px 0;
}

/* Hero Section */
.hero-fullscreen {
  height: 85vh;
  min-height: 600px;
  position: relative;
  overflow: hidden;
  background: #000;
}
.hero-slider-full {
  height: 100%;
  width: 100%;
  position: relative;
}
.slides {
  height: 100%;
  width: 100%;
  position: relative;
}
.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease;
}
.slide.active {
  opacity: 1;
  z-index: 10;
}
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.slide-caption {
  position: absolute;
  bottom: 20%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  padding: 16px 32px;
  border-radius: 16px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
  text-align: center;
  font-size: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.8s ease forwards;
}

.slide-title {
  display: block;
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 8px;
  line-height: 1.2;
}

@keyframes slideUp {
  to {
    transform: translate(-50%, 0);
    opacity: 1;
  }
}

.slide-caption p {
  font-size: 1.1rem;
  font-weight: 400;
  margin-top: 5px;
  opacity: 0.9;
  line-height: 1.4;
  text-align: center;
}

/* Mobile overrides */
@media (max-width: 900px) {
  .slide-caption {
    width: 85%;
    padding: 12px 20px;
  }
  .slide-title {
    font-size: 1.6rem;
  }
  .slide-caption p {
    font-size: 0.95rem;
  }
}

.hero-card,
.news-card,
.announce-item {
  position: relative;
  background: var(--bg-card);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(0, 0, 0, 0.03);
  overflow: hidden;
}

.hero-card p,
.staff-card p {
  text-align: center;
}

.hero-card:hover,
.news-card:hover,
.announce-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.news-section {
  padding: 4rem 0;
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 32px;
}

/* Event Gallery Grid in News View */
.event-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 20px;
}

.news-full-content {
  text-align: justify;
}
.news-slider-grid {
  display: flex !important;
  overflow-x: hidden;
  padding: 10px 0;
  scroll-behavior: smooth;
  width: 100%;
}
.news-slider-grid .news-card {
  flex-shrink: 0;
}
.news-page {
  display: grid;
  grid-template-columns: repeat(3, 1fr) !important;
  grid-template-rows: repeat(2, auto);
  gap: 32px;
  width: 100%;
  flex-shrink: 0;
}
.news-grid-wrapper {
  width: 100%;
  overflow: hidden;
}
.news-image-wrapper {
  height: 240px;
  overflow: hidden;
  position: relative;
}
.news-card:hover .news-image-wrapper img {
  transform: scale(1.1);
}
.news-content {
  padding: 24px;
}
.news-department {
  position: absolute;
  top: 15px;
  left: 15px;
  z-index: 5;
  background: rgba(128, 0, 0, 0.7); /* Maroon with 70% opacity */
  color: #fff;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  margin-bottom: 0;
}
.news-card {
  width: 100%;
}
.news-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-main);
}
.news-date {
  font-size: 0.875rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Quick Links */
.quick-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}
.link-card {
  padding: 16px;
  background: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 100%);
  border-radius: 12px;
  text-align: center;
  font-weight: 600;
  color: var(--brand-dark);
  border: 1px solid transparent;
}
.link-card:hover {
  border-color: var(--brand-primary);
  background: #fff;
}

/* Stats (Facts) */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-top: 24px;
}
.stat-card {
  background: var(--bg-card);
  padding: 32px;
  text-align: center;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: var(--gradient-brand);
}
.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--brand-dark);
  margin-bottom: 8px;
  line-height: 1;
}
.stat-label {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Footer */
.site-footer {
  background: #2b0202 !important;
  color: #f1f5f9;
  padding: 80px 0 40px;
  margin-top: 80px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: space-between;
}
.footer-col {
  flex: 1;
  min-width: 220px;
}

/* Make footer span full screen width, matching header */
.site-footer .container {
  max-width: 100%;
  padding-left: 40px;
  padding-right: 40px;
}

/* Upcoming Events Redesign */
.events-section {
  padding: 3rem 0;
  background: #fff;
}
.events-grid {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 20px;
  max-width: 1200px;
  margin: 30px auto 0;
  width: 100%;
}

.event-card {
  flex: 0 0 calc(25% - 15px) !important; /* 4-columns with 20px gap */
  min-width: 260px;
  max-width: 285px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
  display: flex !important;
  flex-direction: column;
}

.event-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.event-image-wrapper {
  height: 120px;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.event-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-date-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 55px;
  background: var(--gradient-brand);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border-radius: 8px;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.event-date-badge .day {
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1;
}

.event-date-badge .month {
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.event-info {
  padding: 15px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.event-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--brand-dark);
  margin-bottom: 8px;
  line-height: 1.3;
}

.event-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: auto;
}

.event-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.event-meta svg {
  width: 14px !important;
  height: 14px !important;
  flex-shrink: 0;
  color: var(--brand-primary);
}

@media (max-width: 992px) {
  .event-card {
    flex: 0 0 calc(50% - 10px) !important;
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  .event-card {
    flex: 0 0 100% !important;
    max-width: 100%;
  }
}

.footer-col h4 {
  color: #fff;
  margin-bottom: 24px;
  font-size: 1.25rem;
  position: relative;
  padding-bottom: 12px;
}
.footer-col h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background: var(--accent-light);
}
.footer-links li {
  margin-bottom: 12px;
}
.footer-links a {
  color: #cbd5e1;
}
.footer-links a:hover {
  color: var(--accent-light);
  padding-left: 6px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.footer-logo {
  width: 60px;
  height: auto;
}

.footer-brand-text h2 {
  font-size: 1.4rem;
  margin: 0;
  color: #fbbf24; /* Yellowish/Gold for better visibility */
  line-height: 1.2;
}

.footer-brand-text h5 {
  font-size: 0.9rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 400;
}

.site-footer .social-icon {
  color: #cbd5e1;
}

.site-footer .social-icon:hover {
  color: var(--accent-light);
}

/* Announcement Ribbon/Scroll */
.announce-slider-container {
  position: relative;
  max-width: 1160px; /* 4 items * 275px + 3 gaps * 20px */
  margin: 0 auto 24px;
}
.announce-row {
  display: flex;
  overflow-x: hidden;
  gap: 20px;
  padding: 10px 0 24px;
  scroll-snap-type: x mandatory;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.announce-row::-webkit-scrollbar {
  display: none;
}
.announce-item {
  width: 275px !important;
  flex-shrink: 0;
  padding: 0 !important;
  text-align: center;
  border: none !important;
  box-shadow: var(--shadow-lg);
  scroll-snap-align: start;
}
.announce-item img {
  height: 420px !important;
  width: 100% !important;
  object-fit: cover !important;
  border: none !important;
  border-radius: 0;
  margin-bottom: 0;
}
.announce-item .muted {
  padding: 12px 16px 20px;
  display: block;
  font-size: 0.95rem;
  font-weight: 500;
}

.announce-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  color: var(--brand-dark);
  font-size: 24px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}
.announce-nav-btn:hover {
  background: var(--brand-primary);
  color: #fff;
  box-shadow: 0 6px 16px rgba(122, 0, 0, 0.4);
}
.announce-nav-prev {
  left: -60px;
}
.announce-nav-next {
  right: -60px;
}
@media (max-width: 1400px) {
  .announce-nav-prev {
    left: 0px;
  }
  .announce-nav-next {
    right: 0px;
  }
}
@media (max-width: 1160px) {
  .announce-slider-container {
    margin-left: 15px;
    margin-right: 15px;
  }
}
@media (max-width: 768px) {
  .announce-nav-btn {
    width: 36px;
    height: 36px;
    font-size: 20px;
  }
}

/* News Navigation Buttons */
.news-container {
  position: relative;
  width: 100%;
}

.news-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  color: var(--brand-dark);
  font-size: 24px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.news-nav-btn:hover {
  background: var(--brand-primary);
  color: #fff;
  box-shadow: 0 6px 16px rgba(122, 0, 0, 0.4);
}

.news-nav-prev {
  left: -60px;
}
.news-nav-next {
  right: -60px;
}

@media (max-width: 1400px) {
  .news-nav-prev {
    left: 0px;
  }
  .news-nav-next {
    right: 0px;
  }
}

@media (max-width: 768px) {
  .news-nav-btn {
    width: 36px;
    height: 36px;
    font-size: 20px;
  }
}

/* About Us Specific Styles */
.about-hero {
  background: var(--gradient-hero);
  color: #fff;
  padding: 80px 0;
  border-radius: 24px;
  margin-bottom: 60px;
  text-align: center;
}
.about-hero h1 {
  color: #fff;
  font-size: 3rem;
  margin-bottom: 16px;
}
.about-hero p {
  font-size: 1.25rem;
  opacity: 0.9;
  max-width: 800px;
  margin: 0 auto;
}

.dean-message {
  display: flex;
  gap: 40px;
  align-items: center;
  margin-bottom: 80px;
}
.dean-img {
  width: 300px;
  height: 300px;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: var(--shadow-xl);
  flex-shrink: 0;
}
.dean-content {
  flex: 1;
  background: #fff;
  padding: 40px;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  border-left: 6px solid var(--brand-primary);
}
.dean-quote {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.timeline {
  position: relative;
  padding-left: 40px;
  margin: 40px 0;
  border-left: 2px solid #e2e8f0;
}
.timeline-item {
  position: relative;
  margin-bottom: 40px;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: -49px;
  top: 0;
  width: 16px;
  height: 16px;
  background: var(--brand-primary);
  border-radius: 50%;
  border: 4px solid #fff;
  box-shadow: 0 0 0 2px var(--brand-primary);
}
.timeline-date {
  font-weight: 700;
  color: var(--brand-primary);
  margin-bottom: 8px;
}

/* Responsive */
@media (max-width: 900px) {
  .nav-inner {
    padding: 0 20px;
  }
  .nav-toggle {
    display: block;
  }

  .nav {
    flex-direction: column;
    width: 100%;
    align-items: flex-start;
  }
  .nav > li {
    width: 100%;
  }
  .nav > li > a {
    display: block;
    padding: 12px 15px;
    color: var(--brand-dark);
    border-radius: 8px;
    margin-bottom: 2px;
  }
  .nav > li > a:hover {
    background: #f1f5f9;
    color: var(--brand-primary);
  }
  .sub {
    position: static;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    display: none;
    padding-left: 20px;
    border: none;
  }
  .has-sub.active > .sub,
  .has-sub-level.active > .sub {
    display: block;
  }

  .dean-message {
    flex-direction: column;
  }
  .dean-img {
    width: 100%;
    height: auto;
    max-width: 400px;
  }
  .hero-fullscreen {
    height: 60vh;
  }
  .slide-title {
    font-size: 1.6rem;
  }
  .slide-caption p {
    font-size: 1.2rem;
  }
}

/* Fix right-aligned dropdowns */
.nav > li:last-child .sub {
  left: auto;
  right: 0;
}

/* Base Responsive Enhancements */
@media (max-width: 1200px) {
  .brand {
    margin-left: 0;
  }
  .header-search {
    margin-right: 0;
  }
}

@media (max-width: 992px) {
  .banner-actions {
    gap: 15px;
  }
  .news-page {
    grid-template-columns: 1fr !important;
  }
  .footer-grid {
    gap: 20px;
  }
}

@media (max-width: 900px) {
  .header-fixed-container {
    position: relative;
    box-shadow: none;
  }
  body {
    padding-top: 0;
  }
  .navbar {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 80vh;
    overflow-y: auto;
    z-index: 1001;
    background: #fff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    padding: 20px;
    border-bottom: 1px solid #eee;
  }
  .navbar.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
}

@media (max-width: 768px) {
  .banner-inner {
    flex-direction: row !important;
    flex-wrap: wrap;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 10px 15px;
    gap: 10px;
  }
  .brand {
    margin-right: 0;
    flex: 1 1 auto;
    width: auto;
  }
  .brand-link {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 0;
  }
  .logo {
    height: 40px; /* slightly smaller to fit row */
  }
  .brand-text {
    text-align: left;
    width: auto;
  }
  .brand-text h1 {
    font-size: 1.2rem;
    white-space: nowrap;
  }
  .brand-text h4 {
    font-size: 0.85rem;
  }
  .banner-actions {
    flex-direction: row;
    width: auto;
    align-items: center;
    gap: 15px;
    flex-wrap: nowrap;
  }
  .action-buttons {
    display: none;
  }
  .social-links {
    padding-left: 0;
    border-left: none;
    margin-top: 0;
    gap: 10px;
  }
  .header-search {
    margin-left: 0;
    width: 35px; /* compact search */
    margin-top: 0;
    position: relative;
  }
  .custom-search-form .search-input {
    width: 35px;
    padding: 8px;
    background: transparent;
    border-color: transparent;
    color: transparent;
    cursor: pointer;
  }
  .custom-search-form .search-input:focus {
    width: 200px;
    position: absolute;
    right: 15px;
    top: 50px;
    background: #fff;
    border-color: var(--brand-primary);
    color: var(--text-main);
    z-index: 100;
  }
  .custom-search-form .search-button {
    pointer-events: none; /* Let the input expand on click */
  }
  .nav-strip {
    height: auto;
  }
  .news-page {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }
  .news-grid {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }
  .event-gallery-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 15px;
  }
  .footer-col {
    min-width: 100%;
    text-align: center;
  }
  .footer-brand {
    justify-content: center;
  }
  .footer-links {
    justify-items: center;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .quick-links {
    grid-template-columns: 1fr;
  }
  .dean-message {
    flex-direction: column;
  }
  .dean-img {
    width: 100%;
    max-width: 300px;
    height: auto;
  }
  .nav-toggle {
    display: flex;
    flex-direction: column;
    position: relative;
    top: auto;
    right: auto;
    background: transparent;
    border-radius: 4px;
    padding: 8px;
    box-shadow: none;
    align-items: center;
    justify-content: center;
    gap: 0; /* Margins on span handle spacing */
  }
}

@media (max-width: 480px) {
  .slide-title {
    font-size: 1.35rem;
  }
  .slide-caption {
    width: 95%;
    padding: 15px;
  }
  .slide-caption p {
    font-size: 0.95rem;
  }
  .brand-text h1 {
    font-size: 1.05rem;
  }
  .brand-text h4 {
    font-size: 0.75rem;
  }
  .stat-number {
    font-size: 2.2rem;
  }
  .section-title h2 {
    font-size: 1.6rem;
  }
  .event-gallery-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px;
  }
}
