/* Gallery Styles */

:root {
  --primary-color: #0B4678;
  --primary-light: #1075CD;
  --accent-red: #FF0000;
  --white: #FFFFFF;
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --black-95: rgba(0, 0, 0, 0.95);
  --transition-speed: 300ms;
}

/* General Gallery Container */
.gallery-container {
  width: 100%;
  background-color: var(--white);
  overflow-x: hidden;
}

/* =====================
   HERO SECTION
   ===================== */
.hero-section {
  position: relative;
  background: linear-gradient(to bottom right, #0B4678, #1075CD, #0B4678);
  color: #ffffff;
  padding-top: 5rem;
  padding-bottom: 5rem;
  text-align: center;
  overflow: hidden;
}

@media (min-width: 640px) {
  .hero-section {
    padding-top: 6rem;
    padding-bottom: 6rem;
  }
}

/* Red Glow - Top Right */
.hero-background-accent-1 {
  position: absolute;
  top: 0;
  right: 0;
  width: 24rem;
  height: 24rem;
  background: rgba(255, 0, 0, 0.1);
  border-radius: 9999px;
  filter: blur(96px);
}

/* White Glow - Bottom Left */
.hero-background-accent-2 {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 24rem;
  height: 24rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 9999px;
  filter: blur(96px);
}

/* Hero Content Container */
.hero-content {
  position: relative;
  z-index: 10;
  max-width: 80rem;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
  text-align: center;
}

@media (min-width: 640px) {
  .hero-content {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .hero-content {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* Center Content */
.hero-content > * {
  max-width: 56rem;
  margin-left: auto;
  margin-right: auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 9999px;
  padding: 0.625rem 1.25rem;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  color: #ffffff;
}

.badge-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: #FF0000;
}

.hero-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

@media (min-width: 640px) {
  .hero-title {
    font-size: 3rem;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 3.75rem;
  }
}

.hero-subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.625;
}

@media (min-width: 640px) {
  .hero-subtitle {
    font-size: 1.5rem;
  }
}


/* =====================
   FILTER TABS
   ===================== */
.filter-section {
  position: sticky;
  top: 5rem;
  z-index: 40;
  background-color: #ffffff;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
              0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.filter-container {
  max-width: 80rem;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  flex-wrap: wrap;
}

@media (min-width: 640px) {
  .filter-container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .filter-container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.filter-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  border: none;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 300ms ease;
  background-color: #F3F4F6;
  color: #374151;
}

@media (min-width: 640px) {
  .filter-button {
    font-size: 1rem;
  }
}

.filter-button:hover:not(.active) {
  background-color: #E5E7EB;
}

.filter-button.active {
  background: linear-gradient(to right, #1075CD, #0B4678);
  color: #ffffff;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
              0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.filter-icon {
  width: 1rem;
  height: 1rem;
}


/* =====================
   EVENTS SECTION
   ===================== */
.events-section {
  padding-top: 4rem;
  padding-bottom: 4rem;
  background: linear-gradient(to bottom right, #F9FAFB, #ffffff);
}

@media (min-width: 640px) {
  .events-section {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
}

.section-content {
  max-width: 80rem;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .section-content {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .section-content {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(to right, #E7F1FB, #D4E7F7);
  color: #0B4678;
  border-radius: 9999px;
  padding: 0.5rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.section-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: #0B4678;
  margin-bottom: 1rem;
  text-align: center;
}

@media (min-width: 640px) {
  .section-title {
    font-size: 2.25rem;
  }
}

.section-description {
  font-size: 1.125rem;
  color: #4B5563;
  max-width: 42rem;
  margin: 0 auto 3rem;
  text-align: center;
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  margin-top: 2rem;
}

@media (min-width: 640px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (min-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.25rem;
  }
}

@media (min-width: 1280px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }
}


/* Gallery Card */
.gallery-card {
  position: relative;
  background-color: #ffffff;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid #E5E7EB;
  cursor: pointer;
  transition: all 400ms cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.08),
              0 1px 2px 0 rgba(0, 0, 0, 0.04);
}

.gallery-card:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.12),
              0 10px 10px -5px rgba(0, 0, 0, 0.08);
  border-color: rgba(16, 117, 205, 0.3);
  transform: translateY(-8px);
}

/* Gallery Card Image Wrapper */
.gallery-card-image-wrapper {
  position: relative;
  overflow: hidden;
  background: linear-gradient(to bottom right, #F9FAFB, #ffffff);
  height: 220px;
  width: 100%;
  flex-shrink: 0;
}

.gallery-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
}

.gallery-card-image.lazy-load {
  filter: blur(10px);
}

.gallery-card-image.loaded {
  filter: blur(0);
  transition: filter 300ms ease;
}

.gallery-card:hover .gallery-card-image {
  transform: scale(1.12);
}

/* Gallery Card Overlay */
.gallery-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.35) 40%, transparent);
  opacity: 0;
  transition: opacity 400ms ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-card:hover .gallery-card-overlay {
  opacity: 1;
}

/* Gallery Card Button */
.gallery-card-button {
  position: relative;
  background: linear-gradient(135deg, #FF0000, #CC0000);
  border: none;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  cursor: pointer;
  transition: all 300ms ease;
  z-index: 10;
  box-shadow: 0 10px 30px rgba(255, 0, 0, 0.35),
              inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.4);
}

.gallery-card-button:hover {
  background: linear-gradient(135deg, #FF2020, #E00000);
  transform: scale(1.1);
  box-shadow: 0 15px 40px rgba(255, 0, 0, 0.45),
              inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.gallery-card-button:active {
  transform: scale(0.95);
}

.gallery-card-button svg {
  width: 1.5rem;
  height: 1.5rem;
  stroke-width: 2.5;
}

/* Gallery Card Content */
.gallery-card-content {
  padding: 1.125rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  background-color: #ffffff;
  transition: background-color 300ms ease;
}

.gallery-card:hover .gallery-card-content {
  background-color: #F9FAFB;
}

.gallery-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: #0B4678;
  margin: 0 0 0.5rem;
  line-height: 1.4;
  transition: color 300ms ease;
}

.gallery-card:hover .gallery-card-title {
  color: #1075CD;
}

.gallery-card-date {
  font-size: 0.8rem;
  color: #6B7280;
  margin: 0;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 300ms ease;
}

.gallery-card:hover .gallery-card-date {
  color: #1075CD;
}

/* Gallery Card Badge */
.gallery-card-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  padding: 0.375rem 0.875rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #1075CD;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.5);
}


/* =====================
   TEAM SECTION
   ===================== */
.team-section {
  padding-top: 4rem;
  padding-bottom: 4rem;
  background-color: #ffffff;
}

@media (min-width: 640px) {
  .team-section {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
}

/* Team Grid */
.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 640px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .team-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}


/* Team Card */
.team-card {
  position: relative;
}

.team-card-wrapper {
  position: relative;
  background-color: #ffffff;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
              0 4px 6px -2px rgba(0, 0, 0, 0.05);
  transition: all 300ms ease;
}

.team-card:hover .team-card-wrapper {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transform: translateY(-5px);
}

.team-card-image {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(to bottom right, #F3F4F6, #E5E7EB);
}

.team-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.team-card:hover .team-card-image img {
  transform: scale(1.05);
}

/* Team Info */
.team-info {
  padding: 1.5rem;
  background: linear-gradient(to bottom right, #0B4678, #1075CD);
  color: #ffffff;
}

.team-name {
  font-weight: 700;
  font-size: 1.125rem;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.team-position {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.team-department {
  display: inline-block;
  background-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #ffffff;
}

/* Team Card Icon */
.team-card-icon {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 3rem;
  height: 3rem;
  background-color: #FF0000;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 300ms ease;
  font-size: 1.5rem;
}

.team-card:hover .team-card-icon {
  opacity: 1;
}


/* =====================
   STATS SECTION
   ===================== */
.stats-section {
  padding-top: 4rem;
  padding-bottom: 4rem;
  background: linear-gradient(to bottom right, #0B4678, #1075CD, #0B4678);
  color: #ffffff;
}

@media (min-width: 640px) {
  .stats-section {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
}

.stats-section .section-content {
  max-width: 80rem;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .stats-section .section-content {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .stats-section .section-content {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

@media (min-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Stat Card */
.stat-card {
  text-align: center;
}

.stat-number {
  font-size: 2.25rem;
  font-weight: 700;
  color: #FF0000;
  margin-bottom: 0.5rem;
}

@media (min-width: 640px) {
  .stat-number {
    font-size: 3rem;
  }
}

.stat-label {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  font-size: 1rem;
}


/* =====================
   LIGHTBOX MODAL
   ===================== */
.lightbox-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 50;
  opacity: 0;
  transition: opacity 300ms ease;
}

.lightbox-modal[aria-hidden="false"] {
  display: flex;
  opacity: 1;
}

/* Backdrop */
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(4px);
}

/* Container */
.lightbox-container {
  position: relative;
  z-index: 51;
  width: 100%;
  max-width: 1000px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  background: rgba(0, 0, 0, 0.8);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* Content Area */
.lightbox-content {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #000000;
}

/* Media Container */
.lightbox-media-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-media-container img,
.lightbox-media-container video {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 0.5rem;
}

/* Navigation Arrows */
.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(135deg, #FF0000, #CC0000);
  border: 2px solid rgba(255, 255, 255, 0.5);
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  cursor: pointer;
  transition: all 300ms ease;
  z-index: 52;
  backdrop-filter: blur(4px);
  box-shadow: 0 8px 32px rgba(255, 0, 0, 0.4),
              inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.lightbox-arrow:hover:not(:disabled) {
  background: linear-gradient(135deg, #FF2020, #E00000);
  transform: translateY(-50%) scale(1.15);
  box-shadow: 0 12px 40px rgba(255, 0, 0, 0.6),
              inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.lightbox-arrow:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background: linear-gradient(135deg, #AA0000, #880000);
}

.lightbox-arrow svg {
  width: 1.25rem;
  height: 1.25rem;
}

.lightbox-arrow--prev {
  left: 1rem;
}

.lightbox-arrow--next {
  right: 1rem;
}

@media (max-width: 640px) {
  .lightbox-arrow {
    width: 2rem;
    height: 2rem;
  }
  .lightbox-arrow--prev {
    left: 0.5rem;
  }
  .lightbox-arrow--next {
    right: 0.5rem;
  }
}

/* Close Button */
.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  cursor: pointer;
  transition: all 300ms ease;
  z-index: 53;
  backdrop-filter: blur(4px);
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.lightbox-close svg {
  width: 1.5rem;
  height: 1.5rem;
}

/* Counter */
.lightbox-counter {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.7);
  color: #ffffff;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  backdrop-filter: blur(4px);
  z-index: 52;
}

/* Info Section */
.lightbox-info {
  background: rgba(0, 0, 0, 0.6);
  color: #ffffff;
  padding: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.lightbox-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: #ffffff;
}

.lightbox-description {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  line-height: 1.5;
}

/* Lazy Loading - Blur-in effect */
.lazy-load {
  filter: blur(10px);
  transition: filter 600ms ease;
}

.lazy-load.loaded {
  filter: blur(0);
}

/* Gallery Card Button */
.gallery-card-button {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: #FF0000;
  border: 2px solid #ffffff;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 300ms ease;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
}

.gallery-card-button:hover {
  background: #CC0000;
  transform: scale(1.1);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}

.gallery-card-button svg {
  width: 1.25rem;
  height: 1.25rem;
}

.gallery-card-image-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background-color: #E5E7EB;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-card-content {
  padding: 1rem;
}

.gallery-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: #0B4678;
  margin: 0 0 0.5rem;
}

.gallery-card-date {
  font-size: 0.875rem;
  color: #6B7280;
  margin: 0;
}

.no-items {
  text-align: center;
  color: #6B7280;
  padding: 2rem;
  font-size: 1rem;
}

/* =====================
   ANIMATIONS
   ===================== */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
