/* ===== GLOBAL THEME COLORS ===== */
:root {
  --purple-dark: #3c1361;
  --purple-mid: #6a2bbf;
  --purple-light: #c59bff;
  --pink-accent: #ffb6c1;
  --bg-light: #f8f2ff;
}

/* ================= BASE LAYOUT ================= */
html, body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  font-family: "Helvetica Neue", Arial, sans-serif;
  color: #222;
  background: var(--bg-light);
}

header {
    background: linear-gradient(90deg, var(--purple-mid), var(--purple-dark));
    color: white;
    display: flex;
    justify-content: space-between; /* adjust to make room for center */
    align-items: center;
    padding: 10px 20px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    flex-wrap: wrap; /* allow items to wrap on smaller screens */
    padding: 1rem 0;
}

.logo {
        display: flex;
        align-items: flex-start; /* Align logo at the top */
        margin-left: 0; /* Adjust margin as needed */
    }
    
    .logo img {
        height: 50px;
    }
/* ================= CONTENT WRAPPER ================= */
#events {
  width: 70%;
  max-width: 1100px;
  margin: 6rem auto;
  padding: 2rem 1.5rem;
  background: white;
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.05);
}

#events h2 {
  text-align: center;
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--purple-dark);
  margin-bottom: 0.5rem;
}

#events p {
  color: #333;
  font-size: 15px;
  text-align: center;
}

/* TIMELINE GRID */
.events-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
}
#events-timeline p {
    text-align:justify;
}
/* EVENT CARDS */
.event-card {
  background: rgba(255,255,255,0.85);
  border-radius: 18px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.06);
  padding: 1.5rem;
  border-left: 6px solid var(--pink-accent);
  transition: .3s;
  display: flex;
  flex-direction: column;
}

.event-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}

/* POSTER */
.event-poster {
  width: 70%;
  max-width: 300px;
  margin: 0 auto 1.2rem;
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: .3s;
}

.event-card:hover .event-poster {
  transform: scale(1.03);
}

/* DETAILS */
.event-date {
  font-size: 0.9rem;
  color: var(--purple-mid);
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.4rem;
}

.event-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--purple-dark);
  text-align: center;
}

.event-card p {
  text-align: justify;
  font-size: 15px;
  color: #333;
}

/* BUTTON */
.event-btn {
  background: linear-gradient(90deg, var(--purple-mid), var(--purple-light));
  border: none;
  color: white;
  font-weight: 600;
  border-radius: 10px;
  padding: 10px 16px;
  cursor: pointer;
  transition: .3s;
}

.event-btn:hover {
  transform: scale(1.05);
}

/* ================== FOOTER ================== */
.footer {
  background: linear-gradient(90deg, var(--purple-mid), var(--purple-dark));
  color: white;
  text-align: center;
  padding: 1.8rem 1rem;
  margin-top: auto;
}

.footer h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
}

.footer .socials a {
  color: white;
  margin: 0 10px;
  font-size: 1.6rem;
  text-decoration: none;
  transition: .2s;
}

.footer .socials a:hover {
  opacity: 0.7;
}
/* ================= 🎟️ TICKET SEARCH ================= */
.ticket-search {
  margin: 30px 0;
  text-align: center;
}

.ticket-search input {
  padding: 10px;
  width: 220px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.ticket-search button {
  padding: 10px 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  background: #111;
  color: #fff;
}

/* ================= 🎟️ THEMED TICKET POPUP ================= */
.ticket-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.65); /* slightly darker overlay */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 1rem;
  box-sizing: border-box;
}

.ticket-popup.hidden {
  display: none;
}

.ticket-box {
  width: 360px;
  max-width: 95%;
  background: linear-gradient(180deg, var(--purple-light), var(--purple-mid));
  border-radius: 20px;
  padding: 20px;
  color: #fff;
  position: relative;
  box-shadow: 0 12px 35px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: pop-in 0.3s ease-out;
}

@keyframes pop-in {
  0% { transform: scale(0.8); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.close-popup {
  position: absolute;
  top: 12px;
  right: 14px;
  font-size: 28px; /* larger X */
  font-weight: 700;
  color: white;
  cursor: pointer;
  transition: transform 0.2s;
}

.close-popup:hover {
  transform: scale(1.2);
}

.ticket-item {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 12px;
  width: 100%;
  color: #fff;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  text-align: center;
  transition: transform 0.3s;
}

.ticket-item:hover {
  transform: translateY(-4px);
}

.ticket-item strong {
  display: block;
  font-size: 16px;
  margin-bottom: 8px;
  font-weight: 700;
}

/* BUTTON INSIDE TICKET POPUP */
.ticket-box button {
  background: linear-gradient(90deg, var(--purple-mid), var(--pink-accent));
  border: none;
  color: white;
  font-weight: 600;
  border-radius: 12px;
  padding: 10px 18px;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  margin-top: 10px;
}

.ticket-box button:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}
* ================= FEEDBACK SECTION ================= */
/* ================= FEEDBACK SECTION CENTERING ================= */
.contact-container {
  display: flex;
  justify-content: center;   /* center horizontally */
  align-items: flex-start;   /* keep form top-aligned */
  margin: 0 auto;            /* center container itself */
  max-width: 1100px;         /* same feel as #events */
  padding: 0 1rem;
}

.contact-left-box {
  margin: 0 auto;            /* center the box */
}
.contact-left-box {
  flex: 1 1 500px;
  max-width: 520px;
  background: #f8f2ff;
  padding: 24px 20px;
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(106, 43, 191, 0.15);
}

.contact-left-box h2 {
  text-align: center;
  color: var(--purple-dark);
  margin-bottom: 6px;
  font-size: 1.6rem;
}

.contact-left-box p {
  text-align: center;
  font-size: 14px;
  opacity: 0.85;
  margin-bottom: 18px;
}

.contact-left-box label {
  display: block;
  margin-top: 12px;
  font-weight: 600;
  font-size: 14px;
}

.contact-left-box input,
.contact-left-box textarea {
  width: 100%;
  padding: 10px 12px;
  margin-top: 6px;
  border-radius: 10px;
  border: 1px solid var(--purple-light);
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  box-sizing: border-box;
}

.contact-left-box textarea {
  min-height: 100px;
  resize: vertical;
}

.contact-left-box button.contact-button {
  margin-top: 16px;
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--purple-mid), var(--purple-light));
  color: white;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}

.contact-left-box button.contact-button:hover {
  opacity: 0.92;
}

.popup {
  display: none;
  margin-top: 10px;
  font-size: 13px;
  text-align: center;
}

.popup#popup-sending {
  color: var(--purple-mid);
}

.popup#popup-success {
  color: green;
}

.popup#popup-failed {
  color: red;
}
mark {
  background: #c59bff;
  color: #3c1361;
  padding: 0 4px;
  border-radius: 4px;
}

/* ================= MOBILE ================= */
@media (max-width: 768px) {
  #events {
    width: 92%;
    margin: 5rem auto;
    padding: 1.5rem 1.2rem;
  }

  .events-timeline {
    grid-template-columns: 1fr !important;
    gap: 1.5rem;
  }

  .event-card {
    padding: 1.2rem;
    border-left-width: 4px;
  }

  .event-card h3 {
    font-size: 1.1rem;
  }

  .event-card p {
    font-size: 14px;
    line-height: 1.25rem;
  }

  .event-poster {
    width: 90%;
  }

  .event-btn {
    width: 100%;
    padding: 12px 0;
  }

  .header {
    font-size: 1.2rem;
  }
  .ticket-box {
    width: 90%;
    padding: 15px;
  }

  .ticket-item {
    padding: 12px;
    margin-bottom: 10px;
  }

  .ticket-item strong {
    font-size: 14px;
  }

  .close-popup {
    font-size: 32px; /* extra big for mobile */
    top: 10px;
    right: 12px;
  }

  .ticket-box button {
    width: 100%;
    padding: 12px 0;
  }
}
