/* ============================================
   CAMPUS EVENTS - PAGE SPECIFIC STYLES
   Only page content styles (Header/Footer from Header_Footer.css)
   ============================================ */

:root {
  /* GLA Colors */
  --gla-green: #2D5016;
  --gla-green-dark: #1e3a0f;
  --gla-green-light: #4a7c2f;
  --gla-golden: #F4A400;
  --gla-golden-dark: #D89000;
  
  /* Text Colors */
  --text-dark: #1a202c;
  --text-medium: #4a5568;
  --text-light: #718096;
  
  /* Backgrounds */
  --bg-light: #f7fafc;
  --white: #ffffff;
  
  /* Spacing */
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-7: 2rem;
  --space-8: 2.5rem;
  --space-10: 3.5rem;
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-xs: 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 4px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 32px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 24px 48px rgba(0, 0, 0, 0.16);
  
  /* Transitions */
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Fonts */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Poppins', var(--font-body);
}

/* ===== Base Reset ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  /* Apply 30% opacity to green/golden gradient stops */
  background: linear-gradient(135deg, rgba(45, 80, 22, 0.3) 0%, rgba(244, 164, 0, 0.3) 50%, rgba(30, 58, 15, 0.3) 100%), var(--bg-light);
  background-attachment: fixed;
  color: var(--text-dark);
  line-height: 1.6;
  min-height: 100vh;
}

/* ===== Hero Section ===== */
.hero-section {
  min-height: 65vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1e3a0f 0%, #2D5016 50%, #1a2f0c 100%);
  color: var(--white);
  padding: var(--space-8) var(--space-6);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 20% 30%, rgba(244, 164, 0, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(74, 124, 47, 0.2) 0%, transparent 50%),
    repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(255, 255, 255, 0.02) 35px, rgba(255, 255, 255, 0.02) 70px);
  pointer-events: none;
  animation: heroGlow 8s ease-in-out infinite;
}

@keyframes heroGlow {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.85; }
}

.hero-content {
  text-align: center;
  max-width: 980px;
  position: relative;
  z-index: 1;
}

.hero-logo {
  width: 100px;
  height: 100px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, rgba(244, 164, 0, 0.25) 0%, rgba(45, 80, 22, 0.25) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  margin: 0 auto var(--space-5);
  border: 3px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  color: var(--gla-golden);
  animation: pulse 2s ease-in-out infinite;
}

.hero-logo i {
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 12px 32px rgba(244, 164, 0, 0.4);
  }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: var(--space-3);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.hero-subtitle {
  font-size: 1.15rem;
  font-weight: 500;
  opacity: 0.95;
  margin-bottom: var(--space-3);
}

.hero-description {
  max-width: 680px;
  margin: 0 auto;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.65;
}

/* ===== Section Title ===== */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  text-align: center;
  margin: var(--space-7) 0 var(--space-8);
  color: var(--text-dark);
  font-weight: 700;
  position: relative;
  padding-bottom: var(--space-3);
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  margin: var(--space-3) auto 0;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--gla-green), var(--gla-golden));
}

/* ===== Featured Gallery Section ===== */
.image-gallery-section {
  padding: var(--space-8) var(--space-6);
  max-width: 1400px;
  margin: 0 auto;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(247, 250, 252, 0.9) 100%);
  border-radius: var(--radius-xl);
  box-shadow: 0 8px 32px rgba(45, 80, 22, 0.15);
  border: 1px solid rgba(45, 80, 22, 0.1);
}

.swiper {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  background: #000;
  border: 2px solid rgba(45, 80, 22, 0.1);
}

.eventsSwiper {
  height: clamp(380px, 48vh, 550px);
}

.swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  position: relative;
  overflow: hidden;
}

.swiper-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.4) 100%);
  z-index: 1;
  pointer-events: none;
}

.swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  min-height: 380px;
  background: #000;
}

/* Swiper Navigation */
.swiper-button-next,
.swiper-button-prev {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-full);
  background: rgba(45, 80, 22, 0.95);
  color: white;
  transition: all var(--transition-base);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 2px solid rgba(244, 164, 0, 0.3);
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 20px;
  font-weight: 700;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background: var(--gla-golden);
  transform: scale(1.12);
  box-shadow: 0 8px 24px rgba(244, 164, 0, 0.5);
  border-color: rgba(255, 255, 255, 0.5);
}

.swiper-pagination {
  bottom: 20px !important;
  z-index: 10;
}

.swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.6);
  opacity: 1;
  transition: all var(--transition-base);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.swiper-pagination-bullet-active {
  background: var(--gla-golden);
  width: 36px;
  border-radius: var(--radius-full);
  border-color: var(--gla-golden);
  box-shadow: 0 2px 8px rgba(244, 164, 0, 0.5);
}

/* ===== Major Events Section ===== */
.major-events-section {
  padding: var(--space-8) var(--space-6);
  background: 
    linear-gradient(135deg, rgba(45, 80, 22, 0.08) 0%, rgba(244, 164, 0, 0.05) 50%, rgba(45, 80, 22, 0.08) 100%),
    radial-gradient(circle at 0% 0%, rgba(244, 164, 0, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 100% 100%, rgba(45, 80, 22, 0.1) 0%, transparent 50%);
  position: relative;
  overflow: hidden;
}

#major-events-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Event Card - Modern Clean Style */
.event-showcase {
  position: relative;
  background: rgba(255, 255, 255, 0.2);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  border: 1px solid rgba(45, 80, 22, 0.1);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.event-showcase:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(45, 80, 22, 0.12);
  border-color: rgba(244, 164, 0, 0.3);
}

/* Event Header */
.event-header {
  position: relative;
  padding: var(--space-3) var(--space-4);
  background: linear-gradient(135deg, var(--gla-green) 0%, var(--gla-green-dark) 100%);
  color: white;
  overflow: hidden;
}

/* Event Icon */
.event-icon {
  position: absolute;
  top: 50%;
  right: var(--space-4);
  transform: translateY(-50%);
  font-size: 2rem;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.event-showcase:hover .event-icon {
  transform: translateY(-50%) scale(1.05);
  background: rgba(244, 164, 0, 0.2);
}

.event-title-section {
  max-width: calc(100% - 65px);
  z-index: 1;
  position: relative;
}

.event-title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: #ffffff;
}

.event-tagline {
  font-size: 0.85rem;
  font-weight: 400;
  opacity: 0.9;
  font-style: italic;
  margin: 0.25rem 0 0 0;
  color: rgba(255, 255, 255, 0.95);
}

/* Event Content Grid */
.event-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-6);
  padding: var(--space-5);
  align-items: start;
}

/* Gallery - Left Side (66% width) */
.event-media {
  order: 1;
  position: relative;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  transition: all 0.3s ease;
}

.event-media:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
  transform: translateY(-2px);
}

/* Description - Right Side (33% width) */
.event-description {
  order: 2;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-5);
  background: rgba(255, 255, 255, 0.7);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-radius: 16px;
  border: 1px solid rgba(45, 80, 22, 0.15);
  border-left: 4px solid var(--gla-golden);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  height: fit-content;
}

.event-description p {
  font-size: 0.975rem;
  line-height: 1.8;
  color: var(--text-medium);
  margin: 0;
  text-align: justify;
}

.event-description p:first-of-type {
  font-size: 1.05rem;
  color: var(--text-dark);
  font-weight: 500;
  line-height: 1.8;
  text-align: justify;
}

.event-description p:last-child {
  font-size: 0.925rem;
  margin-top: var(--space-4);
  padding: var(--space-4);
  background: linear-gradient(135deg, rgba(244, 164, 0, 0.08) 0%, rgba(45, 80, 22, 0.06) 100%);
  border-left: 4px solid var(--gla-golden);
  border-radius: 10px;
  color: var(--text-dark);
  font-weight: 600;
  line-height: 1.7;
  text-align: left;
}

.event-description p strong {
  font-weight: 700;
  color: var(--gla-green);
  display: inline-block;
  margin-right: 0.25rem;
}

/* ===== Event Card Gallery ===== */
.event-swiper {
  width: 100%;
  height: 420px;
  border-radius: 16px;
  overflow: visible;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  background: #000;
  position: relative;
}

.event-swiper .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  border-radius: 16px;
  overflow: hidden;
}

.event-swiper .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #000;
}

/* Event Swiper Navigation Buttons - Ensure visibility */
.event-swiper .swiper-button-next,
.event-swiper .swiper-button-prev {
  width: 45px;
  height: 45px;
  background: rgba(45, 80, 22, 0.95);
  border-radius: 50%;
  color: white;
  transition: all var(--transition-base);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 10;
}

.event-swiper .swiper-button-next::after,
.event-swiper .swiper-button-prev::after {
  font-size: 18px;
  font-weight: 700;
}

.event-swiper .swiper-button-next:hover,
.event-swiper .swiper-button-prev:hover {
  background: var(--gla-golden);
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(244, 164, 0, 0.5);
}

.event-swiper .swiper-pagination {
  bottom: 15px !important;
}

.event-swiper .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.6);
  opacity: 1;
}

.event-swiper .swiper-pagination-bullet-active {
  background: var(--gla-golden);
  width: 30px;
  border-radius: 5px;
}
/* Tablet */
@media (max-width: 992px) {
  .event-content {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }
  
  .event-description {
    order: 1;
  }
  
  .event-media {
    order: 2;
  }
  
  .event-swiper {
    height: 380px;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .hero-logo {
    width: 90px;
    height: 90px;
    font-size: 2.5rem;
  }
  
  .eventsSwiper {
    height: clamp(280px, 45vh, 400px);
    border-radius: var(--radius-md);
  }
  
  .swiper-button-prev,
  .swiper-button-next {
    width: 42px !important;
    height: 42px !important;
  }
  
  .swiper-button-prev::after,
  .swiper-button-next::after {
    font-size: 18px !important;
  }
  
  #major-events-container {
    gap: var(--space-6);
  }
  
  .event-showcase {
    border-radius: 16px;
  }
  
  .event-header {
    padding: var(--space-4) var(--space-3);
  }
  
  .event-icon {
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
  }
  
  .event-content {
    grid-template-columns: 1fr;
    padding: var(--space-4) var(--space-3);
    gap: var(--space-5);
  }
  
  .event-description {
    order: 1;
  }
  
  .event-media {
    order: 2;
  }
  
  .event-swiper {
    height: 300px;
    border-radius: 16px;
  }
  
  .event-swiper .swiper-button-next,
  .event-swiper .swiper-button-prev {
    width: 38px !important;
    height: 38px !important;
  }
  
  .event-swiper .swiper-button-next::after,
  .event-swiper .swiper-button-prev::after {
    font-size: 15px !important;
  }
}

/* ===== Accessibility ===== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

a:focus,
button:focus {
  outline: 3px solid rgba(45, 80, 22, 0.4);
  outline-offset: 3px;
}

/* Fade-in utility for elements with class .fade-in */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeIn 0.5s ease both; }
