/* ============================================
   EVENTS PAGE - RESPONSIVE STYLES
   ============================================ */

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

/* ===== HERO SECTION (#page-1) ===== */
#page-1 {
  background: linear-gradient(
    135deg,
    var(--first-color) 0%,
    rgba(0, 0, 0, 0.95) 50%,
    var(--first-color) 100%
  );
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

#page-1 .wrapper {
  text-align: center;
  color: var(--second-color);
  padding: min(500px, 15%) min(300px, 12%);
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 1;
}

#page-1 h1 {
  font-size: 3rem !important;
  font-weight: 700;
  margin-bottom: 1rem;
}

#page-1 h2 {
  font-size: 2rem !important;
  margin-top: 0.75rem;
  margin-bottom: 1rem;
}

#page-1 p {
  margin-top: 0.75rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}

/* ===== SERVICES SECTION ===== */
#services {
  background-color: var(--second-color);
  padding: 5rem 0;
}

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

#services h2 {
  text-align: center;
  font-size: 2.8rem !important;
  font-weight: 700;
  color: var(--first-color);
  margin-bottom: 3rem;
}

/* ===== CAROUSEL CARDS ===== */
#services .carousel-wrapper {
  margin: 3rem 0;
}

#services .card {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  background-color: var(--first-color);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all 0.3s ease-in-out;
}

#services .card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.2);
}

#services .card i {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: var(--second-color);
  transition: transform 0.3s ease-in-out;
}

#services .card:hover i {
  transform: scale(1.1);
}

#services .card h3 {
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--second-color);
  font-size: 1.75rem !important;
}

#services .card p {
  font-weight: 400;
  margin-bottom: 1.5rem;
  color: var(--third-color);
  line-height: 1.7;
  flex-grow: 1;
}

/* ===== BUTTONS ===== */
/* Buttons use the standard .btn class from index-style.css */
#services .card .btn {
  background-color: var(--second-color);
  color: var(--first-color);
  padding: 10px 20px;
  text-decoration: none;
  transition: all 0.3s ease-in-out;
  display: inline-block;
  margin-top: 0.5rem;
}

#services .card .btn:hover {
  background-color: var(--first-color);
  color: var(--second-color);
  border: 1px solid var(--second-color);
}

/* ===== CTA SECTION ===== */
#services .cta {
  text-align: center;
  margin-top: 4rem;
  padding: 3rem 2rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

#services .cta p {
  font-size: 1.125rem;
  color: var(--first-color);
  max-width: 900px;
  margin: 0 auto 2rem;
  line-height: 1.8;
}

#services .cta .btn {
  background-color: var(--first-color);
  color: var(--second-color);
  padding: 10px 20px;
  text-decoration: none;
  transition: all 0.3s ease-in-out;
  display: inline-block;
}

#services .cta .btn:hover {
  background-color: var(--second-color);
  color: var(--first-color);
  border: 1px solid var(--first-color);
}

/* ===== RESPONSIVE DESIGN ===== */

/* Large Tablets and Small Desktops */
@media (max-width: 1200px) {
  #page-1 {
    min-height: 85vh;
  }

  #services {
    padding: 4rem 0;
  }

  #services .card {
    padding: 2rem 1.5rem;
  }
}

/* Tablets */
@media (max-width: 968px) {
  #page-1 {
    min-height: 80vh;
  }

  #page-1 .wrapper {
    padding: min(400px, 12%) min(200px, 8%);
  }

  #services {
    padding: 3.5rem 0;
  }

  #services h2 {
    font-size: 2.2rem !important;
    margin-bottom: 2.5rem;
  }

  #services .card {
    padding: 2rem 1.5rem;
    border-radius: 0.5rem;
  }

  #services .card:hover {
    transform: translateY(-6px) scale(1.01);
  }

  #services .cta {
    margin-top: 3rem;
    padding: 2.5rem 1.5rem;
  }
}

/* Mobile Devices */
@media (max-width: 768px) {
  #page-1 {
    min-height: 75vh;
  }

  #page-1 h1 {
    font-size: 2rem !important;
  }

  #page-1 h2 {
    margin-top: 0.75rem;
    font-size: 1.5rem !important;
  }

  #page-1 p {
    margin-top: 0.75rem;
    font-size: 1rem !important;
  }

  #page-1 .wrapper {
    padding: min(300px, 10%) min(100px, 5%);
  }

  #services {
    padding: 3rem 0;
  }

  #services .container {
    padding: 15px;
  }

  #services h2 {
    font-size: 1.8rem !important;
    margin-bottom: 2rem;
  }

  #services .carousel-wrapper {
    margin: 2rem 0;
  }

  #services .card {
    padding: 2rem 1.5rem;
    border-radius: 0.5rem;
    min-height: auto;
  }

  #services .card:hover {
    transform: translateY(-4px) scale(1.005);
  }

  #services .card i {
    font-size: 2.5rem;
    margin-bottom: 1.25rem;
  }

  #services .card h3 {
    font-size: 1.5rem !important;
    margin-bottom: 0.75rem;
  }

  #services .card p {
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
  }

  #services .card .btn {
    width: 100%;
    max-width: 200px;
    text-align: center;
  }

  #services .cta {
    margin-top: 2.5rem;
    padding: 2rem 1.5rem;
    border-radius: 0.5rem;
  }

  #services .cta p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  #services .cta .btn {
    width: 100%;
    max-width: 250px;
  }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
  #page-1 {
    min-height: 70vh;
  }

  #page-1 .wrapper {
    padding: min(250px, 8%) min(50px, 3%);
  }

  #services {
    padding: 2.5rem 0;
  }

  #services .container {
    padding: 10px;
  }

  #services h2 {
    font-size: 1.6rem !important;
  }

  #services .card {
    padding: 1.75rem 1.25rem;
  }

  #services .card i {
    font-size: 2.25rem;
    margin-bottom: 1rem;
  }

  #services .card h3 {
    font-size: 1.3rem !important;
  }

  #services .card p {
    font-size: 0.9rem;
  }

  #services .cta {
    padding: 1.75rem 1.25rem;
  }

  #services .cta p {
    font-size: 0.95rem;
  }
}

/* Extra Small Devices */
@media (max-width: 360px) {
  #page-1 {
    min-height: 65vh;
  }

  #page-1 .wrapper {
    padding: min(200px, 6%) min(30px, 2%);
  }

  #services {
    padding: 2rem 0;
  }

  #services .card {
    padding: 1.5rem 1rem;
  }

  #services .cta {
    padding: 1.5rem 1rem;
  }
}

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

/* Print styles */
@media print {
  #page-1,
  #services {
    background: white;
    color: black;
  }
}
