@import url('responsive.css');

/* ───── 1. Base Reset ───── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #f8f9fa;
  min-height: 100vh;
  color: #333;
  line-height: 1.6;
}

/* ───── 2. Animations ───── */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* ───── 3. Hero Section ───── */
.hero {
  position: relative;
  padding: 160px 5% 80px;
  background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.7)), url('../assets/event1.jpeg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: white;
  text-align: center;
  margin-bottom: 60px;
}

.hero-content {
  max-width: 900px;
  margin: auto;
  z-index: 3;
  position: relative;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  animation: slideUp 0.8s ease-out;
}

.hero-content p {
  font-size: 1.25rem;
  opacity: 0.9;
  max-width: 700px;
  margin: 0 auto;
  font-weight: 300;
  animation: slideUp 0.8s ease-out 0.2s backwards;
}

/* ───── 4. Layout ───── */
.events-main {
  max-width: 1440px;
  margin: auto;
  padding: 0 5% 80px;
}

.events-hero {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 40px;
  align-items: start;
}

/* ───── 5. Event List Sidebar ───── */
.events-hero-left {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  padding: 30px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 100px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.events-hero-left h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 25px;
  color: #1a1a1a;
  padding-bottom: 15px;
  border-bottom: 2px solid #f0f0f0;
}

.events-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.event-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: left;
  width: 100%;
}

.event-btn:hover {
  background: #f8f9fa;
  transform: translateX(5px);
}

.event-btn.active {
  background: #fff5f5;
  border-color: #ffe3e3;
}

.event-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  min-width: 60px;
  height: 60px;
  padding: 5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.event-btn.active .event-date {
  background: #e74c3c;
  border-color: #e74c3c;
}

.event-date .day {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1;
}

.event-date .month {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: #666;
  font-weight: 600;
  margin-top: 2px;
}

.event-btn.active .event-date .day,
.event-btn.active .event-date .month {
  color: white;
}

.event-info {
  flex: 1;
}

.event-info h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
  line-height: 1.4;
}

.event-btn.active .event-info h3 {
  color: #e74c3c;
}

.event-info p {
  font-size: 0.85rem;
  color: #666;
}

/* ───── 6. Featured Event Details ───── */
.events-hero-right {
  min-width: 0;
}

.events-featured-event {
  background: white;
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.05);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
}

.events-featured-event.active {
  opacity: 1;
  transform: translateY(0);
  display: block;
}

.featured-img {
  width: 100%;
  height: 200px;
  position: relative;
  overflow: hidden;
}

.featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.events-featured-event:hover .featured-img img {
  transform: scale(1.05);
}

.featured-content {
  padding: 40px;
}

.featured-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 20px;
  line-height: 1.2;
}

.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid #eee;
}

.event-meta span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #555;
  font-weight: 500;
  font-size: 0.95rem;
}

.event-meta i {
  color: #e74c3c;
}

.event-location a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.event-location a:hover {
  color: #e74c3c;
}

.featured-body {
  color: #4a4a4a;
  line-height: 1.8;
  font-size: 1.1rem;
  margin-bottom: 40px;
  white-space: pre-line;
}

.register-btn {
  display: inline-block;
  background: #e74c3c;
  color: white;
  padding: 16px 32px;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.register-btn:hover {
  background: #c0392b;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(231, 76, 60, 0.4);
}

/* ───── 7. Registration Popup ───── */
.registration-popup {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  z-index: 1000;
  display: none;
  justify-content: center;
  align-items: center;
  padding: 20px;
  animation: fadeIn 0.3s ease;
}

.registration-content {
  background: white;
  padding: 40px;
  border-radius: 24px;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
  transform: scale(0.95);
  animation: slideUp 0.3s ease forwards;
}

.close-popup {
  position: absolute;
  top: 25px;
  right: 25px;
  font-size: 28px;
  color: #999;
  cursor: pointer;
  transition: color 0.3s ease;
  line-height: 1;
}

.close-popup:hover {
  color: #333;
}

.registration-content h2 {
  color: #1a1a1a;
  margin-bottom: 30px;
  font-size: 1.8rem;
  font-weight: 700;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #4a4a4a;
  font-weight: 500;
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px;
  border: 2px solid #eee;
  border-radius: 10px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: #fcfcfc;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #e74c3c;
  background: white;
  outline: none;
  box-shadow: 0 0 0 4px rgba(231, 76, 60, 0.1);
}

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
  background: #f8f9fa;
  padding: 15px;
  border-radius: 10px;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #e74c3c;
}

.form-actions {
  display: flex;
  gap: 15px;
  margin-top: 40px;
}

.submit-btn,
.cancel-btn {
  padding: 14px 28px;
  font-size: 1rem;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.submit-btn {
  background: #e74c3c;
  color: white;
  border: none;
  flex: 1;
}

.submit-btn:hover {
  background: #c0392b;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.cancel-btn {
  background: transparent;
  border: 2px solid #eee;
  color: #666;
  flex: 0.4;
}

.cancel-btn:hover {
  background: #f5f5f5;
  border-color: #ddd;
  color: #333;
}

/* ───── 8. Responsive Design ───── */
@media (max-width: 1024px) {
  .events-hero {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .events-hero-left {
    position: static;
    order: 2;
  }

  .events-hero-right {
    order: 1;
  }

  .featured-img {
    height: 300px;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 120px 20px 60px;
  }

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

  .featured-content {
    padding: 30px;
  }

  .featured-title {
    font-size: 1.8rem;
  }

  .event-meta {
    flex-direction: column;
    gap: 10px;
  }

  .registration-content {
    padding: 25px;
  }
}