:root {
  --primary-color: #d80000; /* Swiss Red */
  --secondary-color: #2d3436;
  --accent-color: #636e72;
  --bg-color: #ffffff;
  --light-bg: #f8f9fa;
  --text-color: #2d3436;
  --header-bg: rgba(255, 255, 255, 0.9);
  --card-bg: #ffffff;
  --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
  --radius: 16px;
  --event-hero-image-left: url("images/hero1.JPG");
  --event-hero-image-right: url("images/hero2.jpeg");
}

html {
  scroll-behavior: smooth;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", "Segoe UI", "Helvetica Neue", sans-serif;
  line-height: 1.7;
  background-color: var(--bg-color);
  color: var(--text-color);
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
header {
  background-color: var(--header-bg);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
  position: relative;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.header-content {
  display: flex;
  align-items: center;
  height: 80px;
}

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

.logo .highlight {
  color: var(--primary-color);
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 40px;
}

nav a {
  text-decoration: none;
  color: var(--secondary-color);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.3s;
  position: relative;
}

nav a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

nav a:hover {
  color: var(--primary-color);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  padding: 8px 24px;
  cursor: pointer;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  transition: all 0.3s;
  margin-left: 20px;
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(216, 0, 0, 0.2);
}

/* Hero Section */
.hero-section {
  height: 100vh;
  background-image: url("https://images.unsplash.com/photo-1527668752968-14dc70a27c95?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80");
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  margin-top: -80px; /* Pull behind header */
  padding-top: 80px;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.6));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 20px;
  animation: fadeIn 1s ease-out;
}

.hero-content h1 {
  font-size: 4.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: -1px;
  line-height: 1.1;
}

.hero-content p {
  font-size: 1.5rem;
  margin-bottom: 40px;
  font-weight: 300;
  opacity: 0.9;
}

.btn-hero {
  display: inline-block;
  background-color: var(--primary-color);
  color: #fff;
  padding: 16px 48px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s;
  box-shadow: 0 10px 20px rgba(216, 0, 0, 0.3);
}

.btn-hero:hover {
  background-color: #b30000;
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(216, 0, 0, 0.4);
}

/* Event Hero Section */
.event-hero-section {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background-color: #2f2f2f;
  overflow: hidden;
}

.event-hero-section::before,
.event-hero-section::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 56%;
  background-size: cover;
  background-repeat: no-repeat;
  z-index: 0;
}

.event-hero-section::before {
  left: 0;
  background-image: var(--event-hero-image-left);
  background-position: center left;
  -webkit-mask-image: linear-gradient(
    to right,
    #000 0%,
    #000 82%,
    transparent 100%
  );
  mask-image: linear-gradient(to right, #000 0%, #000 82%, transparent 100%);
}

.event-hero-section::after {
  right: 0;
  background-image: var(--event-hero-image-right);
  background-position: center right;
  -webkit-mask-image: linear-gradient(
    to left,
    #000 0%,
    #000 82%,
    transparent 100%
  );
  mask-image: linear-gradient(to left, #000 0%, #000 82%, transparent 100%);
}

.event-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at center,
      rgba(0, 0, 0, 0.18) 0%,
      rgba(0, 0, 0, 0) 32%
    ),
    linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45));
  z-index: 1;
}

.event-hero-content {
  position: relative;
  z-index: 2;
  max-width: 850px;
}

.event-hero-content h2 {
  color: #fff;
  margin-bottom: 20px;
}

.event-hero-content p {
  font-size: 1.15rem;
  margin-bottom: 36px;
  line-height: 1.8;
  opacity: 0.96;
}

/* Event Story */
.event-story-section {
  background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
}

.event-story-layout {
  max-width: 900px;
}

.event-story-layout h2 {
  margin-bottom: 30px;
}

.event-story-content {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow);
  padding: 38px;
}

.event-story-content h3 {
  font-size: 1.35rem;
  color: var(--secondary-color);
  margin: 28px 0 12px;
}

.event-story-content p {
  color: var(--accent-color);
  margin-bottom: 16px;
  line-height: 1.8;
}

.event-story-content ul {
  margin: 0 0 16px 22px;
  color: var(--accent-color);
}

.event-story-content li {
  margin-bottom: 10px;
  line-height: 1.7;
}

/* Gallery Page */
.gallery-page {
  min-height: 100vh;
  background: linear-gradient(160deg, #ffffff 0%, #f7f7f7 55%, #efefef 100%);
}

.gallery-header {
  padding: 90px 0 35px;
  text-align: center;
}

.gallery-title {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--secondary-color);
  letter-spacing: -0.7px;
  margin-bottom: 14px;
}

.gallery-subtitle {
  max-width: 720px;
  margin: 0 auto;
  color: var(--accent-color);
  font-size: 1.05rem;
}

.gallery-actions {
  margin-top: 26px;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-secondary {
  display: inline-block;
  background-color: #fff;
  color: var(--secondary-color);
  border: 2px solid #d9d9d9;
  padding: 12px 24px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.25s ease;
}

.btn-secondary:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: translateY(-2px);
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  grid-auto-rows: 8px;
  align-items: start;
  gap: 18px;
  padding-bottom: 100px;
}

.gallery-item {
  grid-row-end: span 1;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 14px 28px -20px rgba(0, 0, 0, 0.45);
  background: #fff;
  transform: translateY(24px);
  opacity: 0;
  animation: galleryFadeIn 0.55s ease forwards;
}

.gallery-item img {
  display: block;
  width: 100%;
  height: auto;
}

.gallery-empty {
  text-align: center;
  color: var(--accent-color);
  background-color: #fff;
  border: 1px dashed #d1d1d1;
  border-radius: var(--radius);
  padding: 50px 20px;
  margin-bottom: 100px;
}

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

/* Sections */
.section {
  padding: 120px 0;
}

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

h2 {
  text-align: center;
  margin-bottom: 80px;
  font-size: 2.5rem;
  color: var(--secondary-color);
  font-weight: 800;
  letter-spacing: -0.5px;
}

/* Project Section */
.project-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.project-text p {
  font-size: 1.15rem;
  color: var(--accent-color);
  margin-bottom: 20px;
  line-height: 1.8;
}

.project-image img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.3s;
}

.project-image img:hover {
  transform: scale(1.02);
}

/* School Cards */
.school-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
}

.school-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.school-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.card-image {
  height: 260px;
  overflow: hidden;
  position: relative;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.school-card:hover .card-image img {
  transform: scale(1.08);
}

.card-content {
  padding: 40px;
}

.school-card h3 {
  margin-bottom: 15px;
  color: var(--secondary-color);
  font-size: 1.5rem;
  font-weight: 700;
}

.school-card p {
  color: var(--accent-color);
  margin-bottom: 30px;
  font-size: 1rem;
  line-height: 1.6;
}

.card-link {
  display: inline-flex;
  align-items: center;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
  transition: all 0.3s;
}

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

/* Footer */
footer {
  background-color: var(--secondary-color);
  color: #fff;
  text-align: center;
  padding: 60px 0;
  margin-top: 0;
}

footer p {
  opacity: 0.7;
  font-size: 0.9rem;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    height: auto;
    padding: 15px 0;
    gap: 15px;
  }

  .logo {
    margin-right: 0;
    margin-bottom: 5px;
  }

  nav ul {
    margin: 0;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
  }

  nav ul li {
    margin-left: 0;
  }

  .btn-outline {
    margin-left: 0;
    width: 100%;
    max-width: 200px;
    text-align: center;
  }

  .hero-section {
    height: auto;
    min-height: 100vh;
    padding-top: 120px;
    padding-bottom: 60px;
  }

  .hero-content h1 {
    font-size: 2.8rem;
  }

  .hero-content p {
    font-size: 1.2rem;
  }

  .section {
    padding: 60px 0;
  }

  .event-hero-section {
    min-height: 50vh;
  }

  .event-hero-section::before,
  .event-hero-section::after {
    width: 58%;
  }

  .event-hero-content p {
    font-size: 1rem;
  }

  .event-story-content {
    padding: 24px;
  }

  .event-story-content h3 {
    font-size: 1.15rem;
  }

  h2 {
    font-size: 2rem;
    margin-bottom: 40px;
  }

  .project-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .project-image {
    order: -1;
  }

  .school-grid {
    grid-template-columns: 1fr;
  }

  .card-image {
    height: 200px;
  }

  .gallery-title {
    font-size: 2rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  #map {
    height: 300px;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 2.2rem;
  }

  .btn-hero {
    width: 100%;
    padding: 14px 20px;
  }
}

@media (max-width: 700px) {
  .event-hero-section::before,
  .event-hero-section::after {
    -webkit-mask-image: none;
    mask-image: none;
    width: 100%;
  }

  .event-hero-section::before {
    background-position: center;
  }

  .event-hero-section::after {
    display: none;
  }
}

@media (min-width: 700px) {
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

#map {
  width: 100%;
  height: 500px;
  background-color: #e0e0e0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  z-index: 1;
}
