/* GM University ECE Department Official Color Scheme and Typography */
:root {
  --gmu-primary: #5b1f1f;           /* Primary (from provided secondary-color) */
  --gmu-primary-dark: #472222;      /* Dark accent (from provided dark-accent) */
  --gmu-secondary: #e9c66f;         /* Secondary accent (gold) */
  --gmu-accent: #e9c66f;            /* Accent (gold) */
  --gmu-accent-dark: #D97706;       /* Darker Gold */
  --gmu-success: #10B981;           /* GMU Green */
  --gmu-text-primary: #1F2937;     /* Dark Gray */
  --gmu-text-secondary: #6B7280;    /* Medium Gray */
  --gmu-text-light: #9CA3AF;       /* Light Gray */
  --gmu-bg-primary: #FFFFFF;       /* White */
  --gmu-bg-secondary: #F9FAFB;     /* Light Gray Background */
  --gmu-bg-tertiary: #F3F4F6;      /* Very Light Gray */
  --gmu-border: #E5E7EB;            /* Light Border */
  --gmu-border-dark: #D1D5DB;     /* Darker Border */

  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;

  --shadow-light: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-strong: 0 10px 15px rgba(0, 0, 0, 0.1);

  --transition-standard: all 0.3s ease;
  --transition-elevated: transform 0.3s ease, box-shadow 0.3s ease;

  /* User-provided palette for professional, elegant accents */
  --primary-gradient: linear-gradient(270deg, #e9c66f, #e9c66f, #f7f3b7, #e9c66f, #e9c66f);
  --secondary-color: #5b1f1f;
  --dark-accent: #472222;
  --light-accent: #f8f9fa;
  --gray-accent: #f1f1f1;
  --text-dark: #333;
  --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --border-radius: 8px;
}

/* GM University Theme */
.theme--navy-copper {
  --brand-primary: var(--gmu-primary);
  --brand-primary-dark: var(--gmu-primary-dark);
  --brand-accent: var(--gmu-accent);
  --brand-accent-dark: var(--gmu-accent-dark);
}

/* Apply GMU theme to key gradient surfaces */
.theme--navy-copper .hero--mech {
  background: linear-gradient(135deg, var(--gmu-primary) 0%, var(--gmu-primary-dark) 100%);
}
.theme--navy-copper .card--primary {
  background: linear-gradient(135deg, var(--gmu-primary) 0%, var(--gmu-primary-dark) 100%);
}
.theme--navy-copper .btn--primary {
  background: linear-gradient(90deg, var(--gmu-primary) 0%, var(--gmu-primary-dark) 100%);
}

/* Base reset & typography */
* { 
  box-sizing: border-box; 
}

html, body { 
  height: 100%; 
  margin: 0;
  padding: 0;
}

html, body {
  font-family: 'Inter', 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--gmu-text-primary);
  background: var(--gmu-bg-primary);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img { 
  max-width: 100%; 
  height: auto;
  display: block; 
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

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

.visually-hidden { 
  position: absolute; 
  width: 1px; 
  height: 1px; 
  overflow: hidden; 
  clip: rect(0 0 0 0); 
  white-space: nowrap; 
  clip-path: inset(50%); 
  border: 0; 
  padding: 0; 
  margin: -1px; 
}

/* Smooth anchor scrolling with performance consideration */
html { 
  scroll-behavior: smooth; 
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

h1 { font-size: 32px; font-weight: 700; color: var(--gmu-text-primary); line-height: 1.2; }
h2 { font-size: 24px; font-weight: 600; color: var(--gmu-text-primary); line-height: 1.3; }
h3 { font-size: 20px; font-weight: 600; color: var(--gmu-text-primary); line-height: 1.4; }
.lead { font-size: 18px; font-weight: 500; color: var(--gmu-text-secondary); line-height: 1.5; }
.body { font-size: 16px; font-weight: 400; color: var(--gmu-text-secondary); line-height: 1.6; }

/* Focus styles & accessibility */
:focus { outline: 3px solid rgba(91,31,31,0.18); outline-offset: 2px; }

/* Remove any cursor effects and focus rings from gallery items */
.activity-card,
.gallery-grid-item,
.activity-card *,
.gallery-grid-item * {
  cursor: default !important;
  outline: none !important;
  pointer-events: auto !important;
}

.activity-card:focus,
.gallery-grid-item:focus,
.activity-card:focus-visible,
.gallery-grid-item:focus-visible,
.activity-card:hover,
.gallery-grid-item:hover {
  outline: none !important;
  box-shadow: none !important;
  transform: none !important;
}

/* Header & Nav */
.site-header {
  background: var(--gmu-bg-primary);
  border-bottom: 1px solid var(--gmu-border);
  height: 80px;
  display: flex; align-items: center;
  box-shadow: var(--shadow-light);
}
.header__inner { display: grid; grid-template-columns: auto auto; gap: 16px; align-items: center; justify-content: space-between; }
.brand__title { color: var(--gmu-primary); font-weight: 700; font-size: 24px; }
.search-input { background: var(--gmu-bg-secondary); border: 1px solid var(--gmu-border); border-radius: var(--radius-md); padding: 10px 14px; font-size: 14px; }

/* Sticky header micro-interaction */
.site-header.site-header--sticky { position: sticky; top: 0; z-index: 50; box-shadow: var(--shadow-light); backdrop-filter: saturate(180%) blur(6px); background: rgba(255,255,255,0.92); }

.nav__list { display: flex; gap: 12px; list-style: none; padding: 0; margin: 0; }
.nav__link { display: inline-block; padding: 8px 10px; color: var(--text-dark); text-decoration: none; border-radius: 8px; transition: var(--transition-standard); }
.nav__link:hover { color: var(--brand-primary); }
/* Stronger active contrast for professionalism */
.nav__link--active { color: #FFFFFF; background: var(--secondary-color); }

/* Hero */
.hero--mech {
  color: #FFFFFF;
  background: linear-gradient(135deg, var(--gmu-primary) 0%, var(--gmu-primary-dark) 100%);
  position: relative;
  padding: 12px 0;
}
.hero--mech::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,0.1); pointer-events: none; }
.hero__inner { position: relative; padding: 56px 0; display: grid; gap: 24px; grid-template-columns: 1.15fr 0.85fr; align-items: center; }
.hero__content { display: grid; gap: 12px; }
.hero__media { border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-medium); }
.hero__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero__title { color: #FFFFFF; font-size: 34px; font-weight: 700; }
.hero__subtitle { color: rgba(255,255,255,0.92); }
.hero__ctas { display: flex; gap: 12px; }

/* Brand strip (logo + department title) */
.brand-strip { background: #FFFFFF; border-bottom: 1px solid var(--neutral-300); box-shadow: var(--shadow-light); }
.brand-strip__inner { display: grid; grid-template-columns: 100px 1fr; gap: 16px; align-items: center; justify-items: center; padding: 12px 0; min-height: 90px; }
.brand-strip__logo { width: 100px; height: 100px; border-radius: 12px; background: #FFFFFF; border: 1px solid var(--neutral-300); display: grid; place-items: center; overflow: hidden; box-shadow: var(--shadow-light); }
.brand-strip__logo img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.brand-strip__titles { display: grid; gap: 4px; align-self: center; align-items: center; text-align: center; justify-items: center; }
.brand-strip__dept { font-size: clamp(18px, 2.2vw, 26px); line-height: 1.3; margin: 0; color: var(--text-dark); font-weight: 700; white-space: nowrap; }
.brand-strip__faculty { color: var(--muted-text); font-size: clamp(16px, 1.8vw, 20px); font-weight: 500; }

/* Standardized Page Header */
.page-header {
  background: linear-gradient(135deg, #5b1f1f, #472222);
  color: white;
  padding: 3rem 0;
  margin-bottom: 2rem;
}
.page-header h1 {
  margin: 0;
  font-size: 2.5rem;
  color: white;
  font-weight: 700;
}
.breadcrumb {
  margin-top: 1rem;
  opacity: 0.9;
}
.breadcrumb a {
  color: white;
  text-decoration: none;
}
.breadcrumb a:hover {
  text-decoration: underline;
}

/* Standardized Content Section */
.content-section {
  background: white;
  padding: 2rem;
  margin-bottom: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Standardized Back Button */
.back-button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: #5b1f1f;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  margin-top: 2rem;
  transition: background 0.3s;
  font-weight: 600;
}
.back-button:hover {
  background: #472222;
  transform: translateY(-1px);
}

/* Main Slider */
.slider { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-medium); background: linear-gradient(135deg, var(--gmu-primary), var(--gmu-primary-dark)); border: 1px solid var(--neutral-300); max-width: 100%; margin: 0 auto; }
.slider__track { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; transition: transform 300ms cubic-bezier(.25,.8,.25,1); will-change: transform; color: #fff; }
.slider__slide { position: relative; min-height: clamp(220px, 30vh, 350px); max-height: 350px; overflow: hidden; }
.slider__slide img { width: 100%; height: 100%; max-height: 350px; object-fit: cover; object-position: center; }
.slide__content { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(0,0,0,0.8)); color: white; padding: 10px 14px; text-align: left; max-width: 1100px; margin: 0 auto; }
.slide__content h3 { 
  font-size: 20px; 
  font-weight: 700; 
  margin: 0 0 6px 0; 
  color: #FFFFFF; 
  text-shadow: 0 2px 6px rgba(0,0,0,0.6), 0 0 1px rgba(0,0,0,0.6);
}
.slide__content p { 
  font-size: 14px; 
  font-weight: 400; 
  margin: 0; 
  color: rgba(255,255,255,0.95);
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

/* Slider Indicators */
.slider__indicators { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.slider__indicator { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,0.5); border: none; cursor: pointer; transition: all 0.3s ease; }
.slider__indicator.active { background: var(--gmu-accent); transform: scale(1.2); }
.slider__indicator:hover { background: rgba(255,255,255,0.8); }
.slider__control { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.9); color: var(--secondary-color); border: 1px solid var(--gmu-border); border-radius: 50%; width: 40px; height: 40px; display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow-light); transition: var(--transition-standard); backdrop-filter: saturate(140%) blur(4px); }
.slider__control:hover { background: var(--gmu-bg-primary); transform: translateY(-50%) scale(1.05); }
.slider__control--prev { left: 12px; }
.slider__control--next { right: 12px; }

/* Welcome + HOD + Video */
.welcome-grid { display: grid; grid-template-columns: 3fr 2fr; gap: 16px; }
.welcome .card__content { min-height: 140px; }
.welcome .card__content p { text-align: justify; text-justify: inter-word; }
.hod-photo { display: flex; gap: 20px; margin: 10px 0; padding: 20px 5px; background: var(--gmu-bg-secondary); border-radius: var(--radius-lg); align-items: center; border: 1px solid var(--gmu-border); }
.hod-photo img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 3px solid var(--gmu-accent); }
.hod__info h3 { margin: 0 0 8px 0; color: var(--gmu-primary); font-size: 20px; font-weight: 600; }
.hod__info p { margin: 4px 0; color: var(--gmu-text-secondary); font-size: 14px; }
.video-card .video-placeholder { height: 300px; border-radius: 12px; background: linear-gradient(135deg, rgba(91,31,31,0.1), rgba(233,198,111,0.1)); display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--secondary-color); border: 2px dashed var(--gmu-accent); cursor: pointer; transition: var(--transition-standard); }
.video-card .video-placeholder:hover { background: linear-gradient(135deg, rgba(91,31,31,0.2), rgba(233,198,111,0.2)); transform: translateY(-2px); }
.video__play-button { font-size: 48px; color: var(--brand-accent); margin-bottom: 16px; }
.video__text { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.video__description { font-size: 14px; color: var(--muted-text); text-align: center; }

/* Video card layout refinement */
.video-card { overflow: hidden; }
.video-card .card__header { padding-bottom: 8px; }
.video-card .card__content { padding: 20px 16px 20px; }

/* Optimized embedded video */
.video-card .dept-video {
  width: calc(100% - 20px);
  height: auto;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 12px;
  box-shadow: var(--shadow-medium);
  display: block;
  margin: 0 auto;
}
.video-description {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--gmu-text-secondary);
  text-align: justify;
  text-justify: inter-word;
}

/* V/M/O three-column */
.vmo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 20px; }
.vmo__card { height: 100%; display: flex; flex-direction: column; }
.vmo__card .card__content { flex: 1; }
.vmo__card ul { margin: 0; padding-left: 20px; }
.vmo__card li { margin: 8px 0; color: var(--gmu-text-secondary); line-height: 1.6; }
.vmo__card p { color: var(--gmu-text-secondary); line-height: 1.6; margin: 0; }
.vmo__card .card__icon { font-size: 24px; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; background: var(--gmu-bg-secondary); border-radius: var(--radius-md); }

/* Gallery Slideshows */
.gallery-section { margin-bottom: 50px; }
.gallery-section__title { font-size: 24px; font-weight: 600; color: #1F2937; margin-bottom: 30px; padding-bottom: 15px; border-bottom: 3px solid #F59E0B; }

.gallery-slideshow { position: relative; background: #FFFFFF; border: 1px solid #E5E7EB; border-radius: 16px; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); overflow: hidden; margin-bottom: 30px; }
.gallery-slideshow__track { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; transition: transform 300ms cubic-bezier(.25,.8,.25,1); will-change: transform; }
.gallery-slideshow__slide { display: flex; flex-direction: column; min-height: 350px; }
.gallery-slideshow__slide img { width: 100%; height: 250px; object-fit: cover; }
.gallery-slideshow__content { padding: 25px; background: #FFFFFF; flex: 1; }
.gallery-slideshow__content h4 { font-size: 20px; font-weight: 600; color: #1F2937; margin: 0 0 10px 0; }
.gallery-slideshow__content p { font-size: 16px; color: #6B7280; margin: 0; line-height: 1.5; }

/* Gallery Slideshow Controls */
.gallery-slideshow__control { position: absolute; top: 50%; transform: translateY(-50%); background: var(--secondary-color); color: white; border: none; border-radius: 50%; width: 45px; height: 45px; display: grid; place-items: center; cursor: pointer; font-size: 18px; font-weight: bold; transition: all 0.3s ease; z-index: 10; }
.gallery-slideshow__control:hover { background: var(--gmu-primary-dark); transform: translateY(-50%) scale(1.1); }
.gallery-slideshow__control--prev { left: 15px; }
.gallery-slideshow__control--next { right: 15px; }

/* Gallery Slideshow Indicators */
.gallery-slideshow__indicators { position: absolute; bottom: 15px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; }
.gallery-slideshow__indicator { width: 14px; height: 14px; border-radius: 50%; background: rgba(91,31,31,0.4); border: none; cursor: pointer; transition: all 0.3s ease; }
.gallery-slideshow__indicator.active { background: var(--gmu-accent); transform: scale(1.3); }
.gallery-slideshow__indicator:hover { background: rgba(91,31,31,0.7); }

/* Featured row (3 wide tiles) */
.featured-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.featured__tile { background: #FFFFFF; border: 1px solid var(--neutral-300); border-radius: 12px; box-shadow: var(--shadow-light); min-height: 140px; display: grid; place-items: center; color: var(--text-secondary); text-align: center; font-weight: 600; }

/* 3x3 Grid Layout Styles */
.gallery-grid-3x3 {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 40px;
}

.gallery-grid-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.gallery-grid-item {
  background: var(--gmu-bg-primary);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-light);
  border: 1px solid var(--gmu-border);
  transition: var(--transition-standard);
  position: relative;
}

.gallery-grid-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}


.gallery-item__title { font-size: 18px; font-weight: 700; color: #ffffff; margin: 0 0 16px 0; text-align: center; }

/* Updated Gallery Slideshow Styles for 3x3 Grid */
.gallery-grid-item .gallery-slideshow { position: relative; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-light); background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); }

.gallery-grid-item .gallery-slideshow__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  transition: transform 300ms cubic-bezier(.25,.8,.25,1);
  will-change: transform;
}

.gallery-grid-item .gallery-slideshow__slide {
  position: relative;
  min-height: 200px;
  overflow: hidden;
}

.gallery-grid-item .gallery-slideshow__slide img { width: 100%; height: 220px; object-fit: cover; image-rendering: auto; }

.gallery-grid-item .gallery-slideshow__content { display: none; }

.gallery-grid-item .gallery-slideshow__content h4 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 5px 0;
  color: white;
}

.gallery-grid-item .gallery-slideshow__content p {
  font-size: 12px;
  margin: 0;
  opacity: 0.9;
}

.gallery-grid-item .gallery-slideshow__control { display: none; }

.gallery-grid-item .gallery-slideshow__control:hover {
  background: var(--gmu-bg-primary);
  transform: translateY(-50%) scale(1.1);
}

.gallery-grid-item .gallery-slideshow__control--prev {
  left: 8px;
}

.gallery-grid-item .gallery-slideshow__control--next {
  right: 8px;
}

.gallery-grid-item .gallery-slideshow__indicators {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
}

.gallery-grid-item .gallery-slideshow__indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.gallery-grid-item .gallery-slideshow__indicator.active {
  background: var(--gmu-accent);
  transform: scale(1.2);
}

.gallery-grid-item .gallery-slideshow__indicator:hover {
  background: rgba(255,255,255,0.8);
}

/* Activities (3x3) elegant tiles using provided variables */
.activities-section { padding: 36px 0; }
.activities-section .section__title { margin-bottom: 20px; }
.activities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.activity-card {
  background: var(--secondary-color);
  color: #ffffff;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-medium);
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  transition: var(--transition-smooth);
  position: relative;
  will-change: transform, box-shadow;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.activity-card:hover {
  transform: translateY(-4px) translateZ(0);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.activity-card .gallery-slideshow {
  margin-bottom: 0;
}
.activity-card .gallery-slideshow__slide {
  min-height: auto;
}
.activity-card .gallery-slideshow__slide img {
  display: block;
}
.activity-card__title {
  margin-top: 16px;
  font-size: 16px;
  font-weight: 600;
}

@media (max-width: 992px) {
  .activities-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .activities-grid { grid-template-columns: 1fr; }
}

/* Responsive Design for 3x3 Grid */
@media (max-width: 1200px) {
  .gallery-grid-row {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .gallery-grid-row:last-child {
    grid-template-columns: 1fr;
    max-width: 50%;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .gallery-grid-row {
    grid-template-columns: 1fr;
  }
  
  .gallery-grid-row:last-child {
    max-width: 100%;
  }
  
  .gallery-grid-item {
    padding: 15px;
  }
  
  .gallery-item__title {
    font-size: 16px;
  }
  
  .gallery-grid-item .gallery-slideshow__slide {
    min-height: 180px;
  }
}

/* Links buttons grid */
.links-grid { display: grid; grid-template-columns: repeat(3, minmax(220px, 1fr)); gap: 12px 18px; justify-items: start; }
.link-btn { display: inline-block; padding: 10px 16px; border: 1px solid var(--neutral-300); border-radius: 10px; background: #fff; color: var(--brand-primary); text-decoration: none; box-shadow: var(--shadow-light); transition: var(--transition-standard); }
.link-btn:hover { background: var(--neutral-200); }
.link-btn--wide { grid-column: 1 / -1; text-align: center; justify-self: center; min-width: 260px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; border: none; cursor: pointer; text-decoration: none; }
.btn--primary { background: linear-gradient(90deg, var(--secondary-color) 0%, var(--dark-accent) 100%); color: #FFFFFF; border-radius: 10px; padding: 10px 18px; box-shadow: 0 8px 22px rgba(3,10,23,0.12); transition: var(--transition-elevated); }
.btn--primary:hover { background: linear-gradient(90deg, var(--dark-accent) 0%, var(--secondary-color) 100%); transform: translateY(-2px); }
.btn--primary:active { transform: translateY(0); box-shadow: 0 6px 12px rgba(3,10,23,0.12); }
.btn--primary[disabled] { background: var(--gray-accent); color: var(--gmu-text-light); cursor: not-allowed; }
.btn--primary:focus-visible { outline: 3px solid rgba(91,31,31,0.24); outline-offset: 2px; }

.btn--ghost { background: transparent; border: 1px solid #EEF4FB; color: var(--secondary-color); border-radius: 10px; padding: 10px 18px; transition: var(--transition-standard); }
.btn--ghost:hover { background: var(--light-accent); }

.btn--icon { background: var(--light-accent); border: 1px solid var(--gray-accent); border-radius: 10px; padding: 8px; }
.btn--icon:hover { background: var(--gray-accent); }

/* Sections & layout */
.section { padding: 36px 0; }
.section__title { margin-bottom: 16px; }
.section--alt { background: var(--neutral-200); border-top: 1px solid var(--neutral-300); border-bottom: 1px solid var(--neutral-300); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.hod__grid { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; }

/* Stats band */
.stats-band { background: rgba(91,31,31,0.04); border-top: 1px solid var(--neutral-300); border-bottom: 1px solid var(--neutral-300); }
.stats-band__inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: center; padding: 18px 0; }
.stat { text-align: center; }
.stat__value { font-size: 26px; font-weight: 700; color: var(--brand-primary); }
.stat__label { color: var(--muted-text); }

/* Layout with sticky TOC */
.layout--with-toc { display: grid; grid-template-columns: 260px 1fr; gap: 24px; }
.toc { position: sticky; top: 88px; align-self: start; background: #fff; border: 1px solid var(--neutral-300); border-radius: 12px; box-shadow: var(--shadow-light); padding: 12px; height: max-content; }
.toc__title { font-weight: 600; color: var(--text-secondary); margin: 4px 4px 8px; }
.toc__nav { display: grid; gap: 4px; }
.toc__link { display: block; padding: 8px 10px; color: var(--muted-text); text-decoration: none; border-left: 3px solid transparent; border-radius: 6px; }
.toc__link:hover { color: var(--brand-primary); background: var(--neutral-200); }
.toc__link--active { color: var(--brand-primary); border-left-color: var(--brand-accent); background: #0a4d8c0a; }

/* Highlights */
.section--highlights { padding-top: 12px; }
.highlights-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.highlight { text-decoration: none; }

/* Events timeline */
.events__timeline { position: relative; list-style: none; padding: 0; margin: 0; }
.events__timeline::before { content: ""; position: absolute; left: 10px; top: 0; bottom: 0; width: 2px; background: var(--neutral-300); }
.timeline__item { position: relative; display: grid; grid-template-columns: 28px 1fr; gap: 12px; margin: 10px 0; }
.timeline__dot { width: 12px; height: 12px; border-radius: 999px; background: var(--brand-accent); position: relative; top: 10px; left: 5px; box-shadow: 0 0 0 3px #ffffff; }
.timeline__content { padding-left: 0; }

/* Logos strip */
.logos-strip { background: var(--neutral-200); border-top: 1px solid var(--neutral-300); border-bottom: 1px solid var(--neutral-300); padding: 18px 0; }
.logos-strip__inner { display: grid; grid-auto-flow: column; gap: 24px; align-items: center; overflow-x: auto; scrollbar-width: thin; }
.logos-strip .logo { color: var(--secondary-color); background: #fff; border: 1px solid var(--neutral-300); border-radius: 10px; padding: 8px 12px; white-space: nowrap; box-shadow: var(--shadow-light); }

/* Footer columns */
.footer__cols { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 24px; }
.footer__title { font-weight: 600; margin-bottom: 8px; }
.footer__text { color: #DDEEFF; opacity: 0.92; }

/* Cards */
.card { background: var(--gmu-bg-primary); border: 1px solid var(--gmu-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-light); transition: var(--transition-elevated); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-strong); }
.card:focus-within { outline: 3px solid rgba(245,158,11,0.2); outline-offset: 2px; }
.card--disabled { opacity: 0.6; pointer-events: none; }
.card__header { display: flex; align-items: center; gap: 12px; padding: 16px; }
.card__content { padding: 0 16px 16px; color: var(--muted-text); }
.card__title { font-weight: 600; color: var(--text-primary); }
.card__icon { width: 56px; height: 56px; border-radius: 10px; background: #FFFFFF; box-shadow: var(--shadow-light); }

/* Card polish: subtle border color on hover */
.card:hover { border-color: #dbe7f5; }

.card--primary { color: #FFFFFF; background: linear-gradient(135deg, var(--gmu-primary) 0%, var(--gmu-primary-dark) 100%); border: 1px solid rgba(255,255,255,0.1); box-shadow: var(--shadow-medium); }
.card--primary .card__title { color: #FFFFFF; }
.card--primary .card__icon { background: #FFFFFF; }

.card--info { background: var(--gmu-bg-primary); border: 1px solid var(--gmu-border); color: var(--gmu-text-primary); box-shadow: var(--shadow-light); position: relative; }
/* Elegant accent bar for info cards */
.card--info::before { content: ""; position: absolute; inset: 0 auto auto 0; height: 4px; width: 100%; background: linear-gradient(90deg, var(--gmu-accent), transparent); border-top-left-radius: var(--radius-lg); border-top-right-radius: var(--radius-lg); }

.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }

/* Scroll reveal micro-interaction */
.reveal { opacity: 1; transform: none; transition: var(--transition-elevated); }
.reveal.reveal--visible { opacity: 1; transform: none; }

/* Faculty grid */
.faculty-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.avatar--circle { width: 72px; height: 72px; background: var(--light-accent); border-radius: 999px; border: 1px solid var(--gray-accent); }
.faculty__name { color: var(--text-dark); font-weight: 600; margin-top: 8px; }
.faculty__meta { color: #6E7E8A; font-size: 14px; }
.badge--research svg { fill: #D87E2A; }

/* Labs */
.lab-card { background: #FFFFFF; border: 1px solid #EEF4FB; box-shadow: 0 8px 24px rgba(3,10,23,0.06); }
.lab-card .badge--safety { display: inline-block; padding: 4px 8px; border-radius: 6px; background: #FFF4E6; color: #B25E20; font-size: 12px; }
.lab-card .carousel { width: 100%; min-height: 100px; background: #F6F8FB; border: 1px dashed #EEF4FB; }

/* Tables */
.table--curriculum { width: 100%; border-collapse: collapse; border: 1px solid #EEF4FB; }
.table--curriculum thead { background: var(--light-accent); color: var(--text-dark); }
.table--curriculum th, .table--curriculum td { padding: 12px 16px; border-bottom: 1px solid var(--gray-accent); }
.table--curriculum tbody tr:hover { background: #FBFDFF; }

/* Forms */
input, textarea, select { background: #FFFFFF; border: 1px solid var(--gray-accent); border-radius: 8px; padding: 10px 12px; }
input::placeholder, textarea::placeholder { color: var(--gmu-text-light); }
input:focus, textarea:focus, select:focus { border-color: var(--secondary-color); box-shadow: 0 8px 24px rgba(91,31,31,0.12); }
.input--error { border-color: #D64545; box-shadow: 0 6px 18px rgba(214,69,69,0.08); }
input[disabled], textarea[disabled] { background: #F4F6FA; color: #A9B8CE; }
label { color: #3F596A; font-size: 14px; display: block; margin: 8px 0 6px; }
.form--grievance { display: grid; gap: 10px; max-width: 640px; }

/* Metrics & Charts */
.metric { background: #FFFFFF; border: 1px solid var(--gray-accent); border-radius: 12px; padding: 16px; display: grid; gap: 6px; }
.metric__icon { width: 32px; height: 32px; background: var(--light-accent); border-radius: 8px; }
.metric__value { color: var(--secondary-color); font-size: 22px; font-weight: 700; }
.chart { height: 220px; background: #FFFFFF; border: 1px solid var(--gray-accent); border-radius: 12px; margin-top: 12px; display: grid; }
.chart--placements__canvas { width: 100%; height: 100%; }

/* Modals */
.modal[aria-hidden="true"] { display: none; }
.modal-backdrop { position: fixed; inset: 0; background: rgba(3,10,23,0.48); }
.modal__content { position: fixed; inset: 50% auto auto 50%; transform: translate(-50%, -50%); background: #FFFFFF; border-radius: 12px; box-shadow: 0 30px 60px rgba(3,10,23,0.18); padding: 16px; width: min(720px, 92%); }
.modal__close { background: none; border: none; color: #6E7E8A; cursor: pointer; }
.modal__close:hover { color: var(--secondary-color); }

/* Gallery Modal */
.gallery-modal[inert] { 
  display: none; 
  pointer-events: none;
}
.gallery-modal { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; }
.gallery-modal__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.85); backdrop-filter: blur(4px); }
.gallery-modal__content { position: relative; z-index: 10000; background: var(--secondary-color); border-radius: 16px; box-shadow: 0 20px 60px rgba(0,0,0,0.5); padding: 30px; width: min(800px, 90vw); max-height: 90vh; overflow: auto; }
.gallery-modal__close { position: absolute; top: 15px; right: 15px; background: rgba(255,255,255,0.9); border: none; color: var(--secondary-color); font-size: 32px; width: 45px; height: 45px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; line-height: 1; transition: var(--transition-standard); z-index: 10001; }
.gallery-modal__close:hover { background: #FFFFFF; transform: scale(1.1); }
.gallery-modal__title { font-size: 24px; font-weight: 700; color: #FFFFFF; margin: 0 0 20px 0; text-align: center; }
.gallery-modal__slideshow { position: relative; border-radius: 12px; overflow: hidden; background: rgba(0,0,0,0.3); min-height: 400px; }
.gallery-modal__track { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; transition: transform 500ms cubic-bezier(.2,.9,.2,1); height: 100%; }
.gallery-modal__slide { display: flex; align-items: center; justify-content: center; min-height: 400px; }
.gallery-modal__track img { width: 100%; height: auto; max-height: 70vh; object-fit: contain; display: block; }

/* Gallery Modal Navigation */
.gallery-modal__nav { 
  position: absolute; 
  top: 50%; 
  transform: translateY(-50%); 
  background: rgba(255,255,255,0.9); 
  border: none; 
  width: 50px; 
  height: 50px; 
  border-radius: 50%; 
  cursor: pointer; 
  font-size: 24px; 
  color: var(--secondary-color); 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  transition: all 0.3s ease; 
  z-index: 10002; 
}
.gallery-modal__nav:hover { 
  background: white; 
  transform: translateY(-50%) scale(1.1); 
}
.gallery-modal__nav--prev { left: 20px; }
.gallery-modal__nav--next { right: 20px; }

/* Gallery Modal Indicators */
.gallery-modal__indicators { 
  display: flex; 
  justify-content: center; 
  gap: 10px; 
  margin-top: 20px; 
}
.gallery-modal__indicator { 
  width: 12px; 
  height: 12px; 
  border-radius: 50%; 
  background: rgba(255,255,255,0.5); 
  border: none; 
  cursor: pointer; 
  transition: all 0.3s ease; 
}
.gallery-modal__indicator.active { 
  background: var(--gmu-accent); 
  transform: scale(1.3); 
}

/* Footer */
.site-footer { background: var(--gmu-primary); color: #FFFFFF; padding: 40px 24px; }
.site-footer a { color: rgba(255,255,255,0.9); text-decoration: none; margin-right: 12px; transition: var(--transition-standard); }
.site-footer a:hover { color: var(--gmu-accent); }
.footer__inner { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 32px; align-items: center; text-align: center; }
.footer__brand { font-size: 24px; font-weight: 700; color: #FFFFFF; margin-bottom: 8px; }
.footer__text { color: rgba(255,255,255,0.8); line-height: 1.6; white-space: nowrap; }

/* Footer Quick Links - 2x10 grid layout with centered 3rd row */
.footer__links {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 2px 4px;
  width: 100%;
  grid-column: 1 / -1; /* span full footer width */
  justify-items: center;
}
.footer__links .footer-link:nth-child(n+21) {
  grid-column: span 1;
}
.footer__links .footer-link:nth-child(21) {
  grid-column: 5 / 6;
}
.footer__links .footer-link:nth-child(22) {
  grid-column: 6 / 7;
}
.footer__links .footer-link {
  display: inline-block;
  padding: 6px 8px;
  text-align: center;
  color: #FFFFFF;
  background: transparent;
  border: none;
  border-radius: 0;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: .1px;
  text-decoration: none;
  box-shadow: none;
  transition: var(--transition-standard);
  border-bottom: 1px solid transparent;
}
.footer__links .footer-link:hover { 
  color: var(--gmu-accent);
  border-bottom-color: var(--gmu-accent);
}
.footer__links .footer-link:focus-visible {
  outline: 3px solid rgba(255,255,255,0.65);
  outline-offset: 2px;
}

/* Specific styles for About and Admissions buttons */
.footer__links .footer-link:first-child,
.footer__links a[href="pages/admissions.html"] {
  color: #FFFFFF;
}

@media (max-width: 1200px) {
  .footer__links {
    grid-template-columns: repeat(5, 1fr);
    gap: 2px 4px;
  }
  .footer__links .footer-link:nth-child(21) {
    grid-column: 2 / 3;
  }
  .footer__links .footer-link:nth-child(22) {
    grid-column: 3 / 4;
  }
}

@media (max-width: 900px) {
  .footer__inner { grid-template-columns: 1fr; }
  .footer__links {
    grid-template-columns: repeat(3, 1fr);
    gap: 2px 4px;
  }
  .footer__links .footer-link:nth-child(21) {
    grid-column: auto;
  }
  .footer__links .footer-link:nth-child(22) {
    grid-column: 2 / 3;
  }
}

@media (max-width: 560px) {
  .footer__links {
    grid-template-columns: repeat(2, 1fr);
    gap: 2px 4px;
  }
  .footer__links .footer-link {
    font-size: 13px;
    padding: 4px 6px;
  }
  .footer__links .footer-link:nth-child(21),
  .footer__links .footer-link:nth-child(22) {
    grid-column: auto;
  }
  .footer__text {
    white-space: normal;
    font-size: 12px;
  }
}

/* Do-not rules (enforced via comments and targeted styles) */
/* - No gradients on inline SVG paths. */
/* - No gradient text for headings or nav. */
/* - Reserve shadows for containers, not tiny chips. */
/* - No border-radius > 16px on primary containers. */
/* - Do not apply gradient to .card__icon; use solid #FFFFFF with brand fill. */

/* Chatbox */
.chatbox {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  font-family: var(--font-family, 'Inter', sans-serif);
}

.chatbox__toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--gmu-primary);
  color: white;
  padding: 12px 20px;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  font-weight: 600;
}

.chatbox__toggle:hover {
  background: var(--gmu-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.chatbox__icon {
  font-size: 18px;
}

.chatbox__text {
  font-size: 14px;
}

.chatbox__panel {
  position: absolute;
  bottom: 70px;
  right: 0;
  width: 350px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.chatbox__panel.chatbox__panel--open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.chatbox__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 20px 0 20px;
  border-bottom: 1px solid #eee;
}

.chatbox__title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--gmu-primary);
}

.chatbox__close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #999;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.chatbox__close:hover {
  background: #f5f5f5;
  color: var(--gmu-primary);
}

.chatbox__body {
  padding: 20px;
}

.chatbox__description {
  margin: 0 0 16px 0;
  font-size: 14px;
  color: #666;
  line-height: 1.5;
}

.chatbox__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.chatbox__input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chatbox__label {
  font-size: 14px;
  font-weight: 600;
  color: var(--gmu-primary);
}

.chatbox__input {
  padding: 12px;
  border: 2px solid #e1e1e1;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
  transition: border-color 0.3s ease;
}

.chatbox__input:focus {
  outline: none;
  border-color: var(--gmu-primary);
}

.chatbox__submit {
  background: var(--gmu-primary);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.chatbox__submit:hover {
  background: var(--gmu-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
  .chatbox {
    bottom: 15px;
    right: 15px;
  }

  .chatbox__panel {
    width: calc(100vw - 30px);
    right: -15px;
    bottom: 65px;
  }

  .chatbox__toggle {
    padding: 10px 16px;
  }

  .chatbox__icon {
    font-size: 16px;
  }

  .chatbox__text {
    font-size: 13px;
  }
}

/* Responsive tweaks */
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
  .hero__inner { grid-template-columns: 1fr; padding: 36px 0; }
  .header__inner { grid-template-columns: auto auto; }
  .nav__list { display: none; }
  .brand-strip__inner { grid-template-columns: 1fr; gap: 10px; text-align: center; padding: 10px 0; min-height: 70px; }
  .brand-strip__logo { justify-self: center; width: 70px; height: 70px; border-radius: 10px; }
  .brand-strip__titles { text-align: center; }
  .brand-strip__dept { font-size: 16px; white-space: normal; line-height: 1.2; }
  .brand-strip__faculty { font-size: 12px; }
  .welcome-grid { grid-template-columns: 1fr; }
  .vmo-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .featured-row { grid-template-columns: 1fr; }
  .links-grid { grid-template-columns: 1fr; }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Gallery overrides to match Activities card design */
.section--gallery .gallery-grid-item {
  background: var(--secondary-color);
  color: #ffffff;
  border-radius: var(--border-radius);
  padding: 20px;
  box-shadow: var(--box-shadow);
  border: 1px solid rgba(255,255,255,0.12);
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
}
.section--gallery .gallery-item__title {
  color: #ffffff;
  border: 0;
  padding-bottom: 0;
  margin-bottom: 12px;
}
.section--gallery .gallery-slideshow { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); }
.section--gallery .gallery-slideshow__slide img { height: 220px; object-fit: cover; }
.section--gallery .gallery-slideshow__content { background: linear-gradient(transparent, rgba(0,0,0,0.75)); }

/* Department Activities Gallery: fix extra whitespace and reposition arrows */
.section--gallery .gallery-grid-item .gallery-slideshow__slide { min-height: auto; }
.section--gallery .gallery-slideshow { position: relative; }
.section--gallery .gallery-slideshow__control { display: none; }

/* ========================================
   OPTIMIZED PROFESSIONAL GALLERY STYLES
   ======================================== */

/* Section Subtitle */
.section__subtitle {
  text-align: center;
  color: var(--gmu-text-secondary);
  font-size: 1.1rem;
  margin: -0.5rem auto 2.5rem;
  max-width: 700px;
  line-height: 1.6;
}

/* Optimized Gallery Grid - Department Activities */
.gallery-grid--optimized {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.gallery-grid-item {
  background: linear-gradient(135deg, var(--gmu-primary) 0%, var(--gmu-primary-dark) 100%);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(91, 31, 31, 0.15);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), 
              box-shadow 0.4s ease;
  cursor: pointer;
  position: relative;
}

/* Removed ::before pseudo-element to eliminate hover overlay */

.gallery-grid-item:hover {
  /* Hover effects disabled */
}

.gallery-item__title {
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 700;
  padding: 1.25rem 1.5rem;
  margin: 0;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 2px solid var(--gmu-secondary);
  text-align: center;
  position: relative;
  z-index: 2;
}

.gallery-slideshow {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.3);
}

.gallery-slideshow__track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
}

.gallery-slideshow__slide {
  min-width: 100%;
  position: relative;
}

.gallery-slideshow__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  will-change: transform;
}

.gallery-slideshow__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, transparent 100%);
  padding: 1.5rem;
  color: white;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.gallery-grid-item:hover .gallery-slideshow__content {
  transform: translateY(0);
}

.gallery-slideshow__content h4 {
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.gallery-slideshow__content p {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.9;
}

.gallery-slideshow__control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  color: var(--gmu-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  opacity: 0;
  z-index: 10;
}

.gallery-grid-item:hover .gallery-slideshow__control {
  opacity: 1;
}

.gallery-slideshow__control--prev {
  left: 1rem;
}

.gallery-slideshow__control--next {
  right: 1rem;
}

.gallery-slideshow__control:hover {
  background: white;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.gallery-slideshow__indicators {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.gallery-slideshow__indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.gallery-slideshow__indicator.active {
  width: 24px;
  border-radius: 4px;
  background: var(--gmu-secondary);
}

/* Optimized Activities Grid - Co-Curricular */
.activities-grid--optimized {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.activity-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.4s ease;
  cursor: pointer;
  border: 2px solid transparent;
  position: relative;
}

/* Removed ::after pseudo-element (white circle with magnifying glass) */

.activity-card:hover {
  /* Hover effects disabled */
}

.activity-card .gallery-slideshow {
  aspect-ratio: 16 / 10;
  background: #f1f1f1;
}

.activity-card__title {
  padding: 1.25rem 1.5rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gmu-primary);
  text-align: center;
  background: linear-gradient(to right, rgba(233, 198, 111, 0.1) 0%, transparent 50%, rgba(233, 198, 111, 0.1) 100%);
  border-top: 2px solid var(--gmu-secondary);
  margin: 0;
}

.activity-card:hover .activity-card__title {
  color: var(--gmu-primary-dark);
  background: linear-gradient(to right, rgba(233, 198, 111, 0.2) 0%, rgba(233, 198, 111, 0.1) 50%, rgba(233, 198, 111, 0.2) 100%);
}

/* Click hint animation */
@keyframes pulse-hint {
  0%, 100% {
    transform: scale(1);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.05);
    opacity: 1;
  }
}

.gallery-grid-item:nth-child(1),
.activity-card:nth-child(1) {
  animation: pulse-hint 2s ease-in-out 1;
  animation-delay: 1s;
}

/* Performance Optimizations */
.gallery-slideshow__slide img,
.activity-card img {
  content-visibility: auto;
  contain-intrinsic-size: 400px 300px;
}

/* Lazy load optimization */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.3s ease;
}

img[loading="lazy"].loaded {
  opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .gallery-grid--optimized,
  .activities-grid--optimized {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .section__subtitle {
    font-size: 1rem;
    padding: 0 1rem;
  }
  
  .gallery-item__title,
  .activity-card__title {
    font-size: 1.1rem;
  }
  
  .gallery-slideshow__control {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }
}
