:root {
  /* Colors */
  --primary: #800000;      /* Maroon */
  --primary-light: #a33333;
  --primary-dark: #5e0000;
  --secondary: #6c757d;    /* Grey */
  --secondary-light: #e9ecef;
  --secondary-dark: #495057;
  
  --bg-white: #ffffff;
  --bg-light: #f8f9fa;
  --bg-dark: #212529;
  
  --text-dark: #333333;
  --text-light: #f8f9fa;
  --text-muted: #6c757d;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--primary) 0%, #b30000 100%);
  --gradient-overlay: linear-gradient(135deg, rgba(128, 0, 0, 0.9) 0%, rgba(33, 37, 41, 0.8) 100%);

  /* Glassmorphism Defaults */
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(255, 255, 255, 0.5);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  --glass-blur: blur(16px);

  /* Typography */
  --font-main: 'Inter', sans-serif;
  --font-heading: 'Outfit', sans-serif;

  /* Shadows - Enhanced for depth and liquid feel */
  --shadow-sm: 0 4px 15px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08), 0 4px 10px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12), 0 8px 20px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 25px 50px rgba(128, 0, 0, 0.15), 0 10px 25px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 20px rgba(128, 0, 0, 0.3);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* =========================================
   RESET & BASE STYLES
========================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headings);
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

ul {
  list-style: none;
}

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

/* Utility Classes */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-white { color: var(--text-light); }

.bg-primary { background-color: var(--primary); }
.bg-white { background-color: var(--bg-white); }
.bg-light { background-color: var(--bg-light); }

.section-padding {
  padding: 5rem 0;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-normal);
  border: none;
  outline: none;
  font-family: var(--font-main);
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--text-light);
  box-shadow: 0 4px 15px rgba(128, 0, 0, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(128, 0, 0, 0.4);
}

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

.btn-outline:hover {
  background: var(--primary);
  color: var(--text-light);
}

/* Glass Card Utility */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 1rem;
  box-shadow: var(--glass-shadow);
}

/* =========================================
   HEADER & NAVIGATION
========================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.5rem 0;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all var(--transition-normal);
}

.header.scrolled {
  padding: 1rem 0;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--glass-border);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-img {
  height: 45px;
  width: auto;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
  transition: transform var(--transition-fast);
  mix-blend-mode: multiply; /* Removes white background on light surfaces */
}

.logo:hover .logo-img {
  transform: scale(1.05);
}

.logo-text h1 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  margin: 0;
  letter-spacing: -0.5px;
  text-transform: uppercase;
}

.logo-text h1 span {
  color: var(--secondary);
}

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

.nav-list {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-weight: 500;
  font-size: 1rem;
  color: var(--text-dark);
  position: relative;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--primary);
  transition: width var(--transition-normal);
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-btn {
  margin-left: 1rem;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--primary);
  font-size: 1.75rem;
  cursor: pointer;
}

/* Responsive Navigation */
@media (max-width: 992px) {
  .mobile-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-white);
    padding: 0;
    box-shadow: var(--shadow-md);
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transition: clip-path var(--transition-slow);
  }

  .main-nav.active {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
  }

  .nav-list {
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    align-items: flex-start;
  }

  .nav-btn {
    margin-left: 0;
    width: 100%;
    text-align: center;
  }
}

/* =========================================
   HERO SECTION
========================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px; /* Offset for header */
  background: linear-gradient(135deg, rgba(230,230,230,0.5), rgba(245,245,245,0.8)), url('../assets/img/school-bg.jpg') center/cover no-repeat fixed;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.7) 100%);
  z-index: 1;
}

.hero-container {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hero-content {
  max-width: 800px;
}

.badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(128, 0, 0, 0.1);
  color: var(--primary);
  font-weight: 600;
  border-radius: 50px;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: 1px solid rgba(128, 0, 0, 0.2);
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: bounce 2s infinite;
}

.scroll-indicator a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  color: var(--primary);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--glass-border);
  font-size: 1.2rem;
}

/* Floating Shapes (Micro-animations) */
.floating-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  z-index: -1;
  opacity: 0.6;
}

.shape-1 {
  width: 300px;
  height: 300px;
  background: var(--primary);
  top: -100px;
  right: -50px;
  animation: float 10s ease-in-out infinite;
}

.shape-2 {
  width: 250px;
  height: 250px;
  background: var(--secondary);
  bottom: -50px;
  right: 20%;
  animation: float 12s ease-in-out infinite reverse;
}

/* Animations */
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

@keyframes float {
  0% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(30px, -50px) rotate(10deg); }
  66% { transform: translate(-20px, 20px) rotate(-10deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}

/* Entrance Animations */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s forwards cubic-bezier(0.25, 0.8, 0.25, 1);
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

/* Scroll Triggered Animations from JS */
.scroll-animated {
  opacity: 0;
  transform: translateY(30px);
}

.scroll-animated.animate {
  animation: fadeInUp 0.8s forwards cubic-bezier(0.25, 0.8, 0.25, 1);
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================
   COMMON SECTION STYLES
========================================== */
.section-header {
  margin-bottom: 3.5rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.1rem;
}

/* =========================================
   HIGHLIGHTS SECTION
========================================== */
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem; /* Increased gap */
}

.highlight-card {
  background: var(--bg-white);
  padding: 3rem 2.5rem; /* Increased padding */
  border-radius: 1.2rem;
  transition: all var(--transition-normal);
  border: 1px solid rgba(0,0,0,0.05);
  position: relative;
  overflow: hidden;
  z-index: 1;
  box-shadow: var(--shadow-sm); /* Added base shadow */
}

.highlight-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-normal);
  z-index: 2;
}

.highlight-card:hover {
  transform: translateY(-12px); /* Increased lift */
  box-shadow: var(--shadow-hover);
}

.highlight-card:hover::before {
  transform: scaleX(1);
}

.card-icon {
  width: 70px;
  height: 70px;
  background: rgba(128, 0, 0, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 2rem;
  transition: all var(--transition-normal);
}

.highlight-card:hover .card-icon {
  background: var(--gradient-primary);
  color: var(--text-light);
  transform: scale(1.1) rotate(5deg);
  box-shadow: var(--shadow-glow); /* Added icon glow */
}

.highlight-card h3 {
  font-size: 1.6rem;
  margin-bottom: 1.25rem;
  color: var(--text-dark);
}

.highlight-card p {
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  font-weight: 600;
  font-size: 1rem;
}

.card-link i {
  transition: transform var(--transition-fast);
}

.card-link:hover i {
  transform: translateX(5px);
}

/* =========================================
   LEADERSHIP SECTION
========================================== */
.leadership-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2.5rem; /* Increased gap */
}

@media (max-width: 768px) {
  .leadership-grid {
    grid-template-columns: 1fr;
  }
}

.leader-card {
  display: flex;
  gap: 2rem; /* Increased gap between image and text */
  padding: 2.5rem; /* Increased padding */
  align-items: flex-start;
  transition: all var(--transition-normal);
}

.leader-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.leader-image {
  width: 90px;
  height: 90px;
  min-width: 90px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 2.2rem;
  box-shadow: var(--shadow-md);
}

.leader-info h3 {
  color: var(--primary-dark);
  font-size: 1.4rem;
  margin-bottom: 0.35rem;
}

.leader-role {
  display: inline-block;
  font-size: 0.95rem;
  color: var(--secondary);
  font-weight: 500;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.leader-quote {
  font-style: italic;
  color: var(--text-dark);
  position: relative;
  line-height: 1.8;
}

.leader-quote::before {
  content: '"';
  font-size: 3.5rem;
  color: rgba(128, 0, 0, 0.08);
  position: absolute;
  top: -20px;
  left: -20px;
  font-family: serif;
}

/* =========================================
   NEWS SECTION
========================================== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem; /* Increased gap */
}

.news-card {
  background: var(--bg-white);
  border-radius: 1.2rem;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-8px);
}

.news-image {
  height: 220px; /* Increased image height slightly */
  background-size: cover;
  background-position: center;
  position: relative;
}

.news-date {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: var(--primary);
  color: var(--text-light);
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: var(--shadow-md);
}

.news-content {
  padding: 2.5rem; /* Increased padding */
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.news-content h3 {
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
  color: var(--text-dark);
  transition: color var(--transition-fast);
  line-height: 1.3;
}

.news-card:hover .news-content h3 {
  color: var(--primary);
}

.news-content p {
  color: var(--text-muted);
  flex-grow: 1;
  margin-bottom: 1.5rem; /* Added explicit bottom margin before button */
  line-height: 1.7;
}

.news-content .btn {
  align-self: flex-start;
}

/* =========================================
   CALL TO ACTION SECTION
========================================== */
.cta-section {
  background: var(--gradient-primary);
  padding: 6rem 0;
  color: var(--text-light);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle at 20% 150%, rgba(255,255,255,0.1) 0%, transparent 50%), 
                    radial-gradient(circle at 80% -50%, rgba(255,255,255,0.15) 0%, transparent 50%);
  pointer-events: none;
}

.cta-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
  color: var(--text-light);
}

.cta-subtitle {
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  opacity: 0.9;
}

.cta-actions {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* =========================================
   FOOTER SECTION
========================================== */
.footer {
  background-color: var(--text-dark);
  color: var(--text-light);
  padding-top: 5rem;
}

.footer-container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

@media (max-width: 992px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
  }
  .about-col {
    grid-column: 1 / -1;
  }
}

@media (max-width: 576px) {
  .footer-container {
    grid-template-columns: 1fr;
  }
}

.footer-col h3 {
  color: var(--text-light);
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-col h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 2px;
  background-color: var(--primary);
}

.footer-col p {
  color: var(--secondary-light);
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.footer-col ul li {
  margin-bottom: 0.75rem;
}

.footer-col ul li a {
  color: var(--secondary-light);
  transition: color var(--transition-fast);
}

.footer-col ul li a:hover {
  color: var(--primary);
  padding-left: 5px;
}

.contact-info li {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--secondary-light);
}

.contact-info li i {
  color: var(--primary);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.footer-logo-img {
  height: 55px;
  width: auto;
  background-color: #fff; /* Matches logo background */
  padding: 4px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: transform var(--transition-fast);
}

.footer-logo:hover .footer-logo-img {
  transform: scale(1.05);
}

.footer-logo h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-light);
  margin-bottom: 0 !important;
  text-transform: uppercase;
  letter-spacing: -0.5px;
}

.footer-logo h2 span {
  color: var(--primary);
}

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

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  transition: all var(--transition-normal);
}

.social-links a:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

.footer-bottom {
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: var(--secondary-light);
  font-size: 0.9rem;
}

/* =========================================
   STATS BAR — Animated Counters
========================================== */
.stats-bar {
  background: var(--gradient-primary);
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

.stats-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 10% 50%, rgba(255,255,255,0.08) 0%, transparent 60%),
              radial-gradient(circle at 90% 50%, rgba(255,255,255,0.06) 0%, transparent 60%);
  pointer-events: none;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  position: relative;
  z-index: 1;
}

.stat-item {
  text-align: center;
  color: var(--text-light);
  padding: 1.5rem 1rem;
  border-right: 1px solid rgba(255,255,255,0.15);
}

.stat-item:last-child { border-right: none; }

@media (max-width: 768px) {
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.15); }
  .stat-item:last-child { border-bottom: none; }
}

.stat-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  opacity: 0.85;
}

.stat-value {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.5rem;
  letter-spacing: -1px;
}

.stat-label {
  font-size: 0.95rem;
  opacity: 0.85;
  font-weight: 500;
  letter-spacing: 0.3px;
}

/* =========================================
   NEWS CATEGORY TAGS
========================================== */
.news-category-tag {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tag-academics { background: rgba(37,99,235,0.9); color: #fff; }
.tag-sports    { background: rgba(22,163,74,0.9);  color: #fff; }
.tag-events    { background: rgba(234,88,12,0.9);  color: #fff; }

/* =========================================
   LIGHTBOX MODAL
========================================== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9000;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  animation: fadeIn 0.25s ease;
}

.lightbox.active { display: flex; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.lightbox-inner {
  position: relative;
  max-width: 900px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

#lightbox-img {
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 0.75rem;
  box-shadow: 0 25px 60px rgba(0,0,0,0.6);
}

#lightbox-caption {
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  opacity: 0.9;
}

#lightbox-counter {
  color: rgba(255,255,255,0.55);
  font-size: 0.85rem;
}

.lightbox-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  transition: background var(--transition-fast), transform var(--transition-fast);
  backdrop-filter: blur(8px);
}

.lightbox-btn:hover { background: rgba(128,0,0,0.7); transform: translateY(-50%) scale(1.08); }

#lightbox-prev { left: -64px; }
#lightbox-next { right: -64px; }

@media (max-width: 768px) {
  #lightbox-prev { left: 0; }
  #lightbox-next { right: 0; }
}

.lightbox-close {
  position: absolute;
  top: -50px;
  right: 0;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  transition: background var(--transition-fast);
}

.lightbox-close:hover { background: var(--primary); }

/* =========================================
   NEWS ARTICLE MODAL
========================================== */
.news-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 9000;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  animation: fadeIn 0.25s ease;
  backdrop-filter: blur(4px);
}

.news-modal.active { display: flex; }

.news-modal-inner {
  background: var(--bg-white);
  border-radius: 1.25rem;
  max-width: 720px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 30px 70px rgba(0,0,0,0.3);
  animation: slideUp 0.35s cubic-bezier(0.16,1,0.3,1);
}

@keyframes slideUp {
  from { transform: translateY(40px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.news-modal-img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 1.25rem 1.25rem 0 0;
  display: block;
}

.news-modal-body {
  padding: 2.5rem;
}

.news-modal-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.news-modal-date {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

#modal-title {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  line-height: 1.25;
}

#modal-body {
  color: var(--text-muted);
  line-height: 1.85;
  font-size: 1.05rem;
}

.news-modal-close {
  float: right;
  background: rgba(128,0,0,0.08);
  border: none;
  color: var(--primary);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: background var(--transition-fast);
  flex-shrink: 0;
}

.news-modal-close:hover { background: var(--primary); color: #fff; }

/* =========================================
   NEWS & GALLERY FILTER BUTTONS (shared)
========================================== */
.news-filters {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-btn, .gallery-filter-btn {
  background: transparent;
  border: 2px solid var(--secondary-light);
  color: var(--text-dark);
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: var(--font-main);
  font-size: 0.95rem;
}

.filter-btn:hover, .filter-btn.active,
.gallery-filter-btn:hover, .gallery-filter-btn.active {
  background: var(--primary);
  color: var(--text-light);
  border-color: var(--primary);
}

/* =========================================
   TOAST NOTIFICATIONS
========================================== */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #1e293b;
  color: #fff;
  padding: 1rem 1.5rem;
  border-radius: 0.75rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  font-size: 0.95rem;
  font-weight: 500;
  z-index: 9999;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.16,1,0.3,1);
  max-width: 360px;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-success { border-left: 4px solid #22c55e; }
.toast-error   { border-left: 4px solid var(--primary); }
