:root {
  --primary: #37ffd7;        /* Electric aqua accent */
  --primary-hover: #23a798;  /* Slightly darker for hover */
  --secondary: #fd367e;      /* Hot pink accent */
  --accent: #232937;
  --chip-bg: #232b39;
  --chip-active: linear-gradient(90deg, #fd367e 30%, #37ffd7 100%);
  --chip-text: #c6e3e6;
  --section-bg: #181d24;
  --section-highlight: #232c3c;
  --card-bg: #232c3c;
  --card-bg-hover: #2b3551;
  --shadow: 0 2px 22px 0 #37ffd7a2, 0 1.5px 6px #0005;
  --radius: 18px;
  --white: #fff;
  --text-main: #f5fbff;
  --text-secondary: #b0bad6;
  --text-heading: #ecf5ff;
}

body {
  font-family: 'Inter', Arial, sans-serif;
  background: linear-gradient(135deg, #181d24 0%, #232c3c 100%);
  color: var(--text-main);
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

.main-header {
  background: rgba(24, 29, 36, 0.98);
  border-bottom: 2px solid #232b39;
  padding: 24px 0 10px 0;
  text-align: center;
  box-shadow: 0 6px 32px -10px #37ffd7a8;
}

.logo-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 12px;
}
.logo-text {
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, #37ffd7, #fd367e 80%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.main-header h1 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 20px 0;
  color: var(--text-heading);
  letter-spacing: -0.5px;
}

.search-bar-row {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-bottom: 10px;
}
.main-search {
  width: 95%;
  max-width: 420px;
  padding: 15px 22px;
  font-size: 1.05rem;
  border-radius: 30px;
  border: none;
  box-shadow: var(--shadow);
  background: #232b39;
  color: #e9f6fb;
  outline: none;
  transition: box-shadow 0.17s, background 0.18s;
}
.main-search:focus {
  background: #263342;
  box-shadow: 0 0 0 2px var(--primary);
}

main {
  width: 100%;
  margin: 0 auto;
  padding: 0;
}

.section {
  padding: 2.6rem 0 1.3rem 0;
  width: 100%;
  margin: 0 auto 0.5rem auto;
  background: none;
}

.section.events-for-you {
  background: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  margin: 1.1rem 0 1.5rem 0 !important;
  padding: 0 !important;
  border: none !important;
  max-width: 100% !important;
  width: 100% !important;
}
.section.events-nearby {
  background: var(--section-bg);
}
.section.upcoming-events {
  background: #21272d;
  border-top: 1px solid #2e3744;
}
.section.info-section {
  background: var(--card-bg);
  border-top: 1px solid #263342;
}

.section h2 {
  text-align: center;
  font-size: 1.3rem;
  font-weight: 800;
  margin: 0 0 12px 0;
  letter-spacing: 0.3px;
  color: var(--white);
  background: linear-gradient(90deg, #fd367e 10%, #37ffd7 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.chips-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 30px;
}
.chip {
  border: none;
  padding: 11px 28px;
  background: var(--chip-bg);
  color: var(--chip-text);
  border-radius: 24px;
  font-weight: 700;
  font-size: 1.04rem;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: background 0.16s, color 0.16s, box-shadow 0.12s;
}
.chip.active, .chip:active {
  background: var(--chip-active);
  color: #151b1f;
  font-weight: 900;
  box-shadow: 0 4px 14px #fd367e99;
}

.event-card-row, .event-img-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 26px;
}

.event-card, .event-img-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0;
  margin: 0;
  max-width: 330px;
  width: 95vw;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  transition: transform 0.13s, box-shadow 0.18s, background 0.13s;
  border: none;
}
.event-card:hover, .event-img-card:hover {
  background: var(--card-bg-hover);
  transform: scale(1.025) translateY(-2px);
  box-shadow: 0 6px 40px 2px #fd367e77, 0 1.5px 22px 2px #37ffd7a2;
}

.event-img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  background: #1e232b;
}
.event-card-content {
  padding: 1.1rem 1.2rem 1rem 1.2rem;
}
.event-date-chip {
  background: var(--primary);
  color: #151b1f;
  font-weight: 800;
  font-size: 1.02rem;
  padding: 6px 14px;
  border-radius: 13px;
  margin-bottom: 8px;
  display: inline-block;
}
.event-title {
  font-size: 1.13rem;
  font-weight: 800;
  margin: 0 0 7px 0;
  color: var(--white);
}
.event-info-row {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 5px;
  display: flex;
  gap: 14px;
  align-items: center;
}

.event-desc {
  white-space: normal;
  word-break: break-word;
  display: block;
  max-height: none;
  -webkit-line-clamp: unset;
  overflow: visible;
}
.event-card-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  justify-content: space-between;
}
.buy-btn, .walkin-btn, .free-btn {
  background: linear-gradient(90deg, #37ffd7 60%, #fd367e 120%);
  color: #181d24;
  font-weight: 800;
  border-radius: 17px;
  border: none;
  padding: 9px 18px;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 2px 12px 0 #37ffd7a2;
  transition: background 0.17s, color 0.16s;
  text-decoration: none;
  display: inline-block;
}
.buy-btn:hover {
  background: linear-gradient(90deg, #fd367e 40%, #37ffd7 100%);
  color: #fff;
  box-shadow: 0 2px 22px 0 #fd367ea8;
}
.walkin-btn {
  background: #181d24;
  color: #37ffd7;
  border: 1.5px solid #37ffd7;
}
.walkin-btn:hover {
  background: #232c3c;
  color: #fd367e;
  border-color: #fd367e;
}
.free-btn {
  background: #232c3c;
  color: #fd367e;
  border: 1.5px solid #fd367e;
}
.free-btn:hover {
  background: #181d24;
  color: #37ffd7;
  border-color: #37ffd7;
}

.upcoming-list {
  display: flex;
  flex-direction: column;
  gap: 19px;
  margin: 0 auto;
  max-width: 620px;
  padding: 14px 6vw;
}
.upcoming-event-row {
  background: var(--card-bg);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 18px 17px;
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: space-between;
  font-size: 1.09rem;
  color: var(--white);
}
.upcoming-date-chip {
  background: var(--primary);
  color: #151b1f;
  font-weight: 800;
  padding: 7px 13px;
  border-radius: 11px;
  font-size: 1.09rem;
  margin-right: 12px;
}

footer {
  background: var(--card-bg);
  border-top: 2px solid #232b39;
  padding: 1.3rem 0;
  text-align: center;
  color: #7bbdbd;
  font-size: 1.05rem;
  margin-top: 2rem;
}

ul, li {
  color: #cde6e8;
}

/* Responsive */
@media (max-width: 600px) {
  .section {
    padding: 1.1rem 0 0.7rem 0;
  }
  .event-card, .event-img-card {
    max-width: 98vw;
  }
  .upcoming-list {
    padding: 10px 2vw;
  }
  .main-header h1 {
    font-size: 1.03rem;
  }
  .logo-text {
    font-size: 1.3rem;
  }
}

/* Fade/slide-in cards */
.fade-in {
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  transition: opacity 0.33s cubic-bezier(.4,2,.5,1), transform 0.28s cubic-bezier(.4,2,.5,1);
}
.fade-in.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Animated chip highlight */
.city-chips-row {
  display: flex;
  justify-content: center;
  gap: 11px;
  margin: 20px 0 18px 0;
}
.city-chip {
  border: none;
  padding: 10px 24px;
  background: var(--chip-bg);
  color: var(--chip-text);
  border-radius: 22px;
  font-weight: 700;
  font-size: 1.03rem;
  box-shadow: var(--shadow);
  cursor: pointer;
  outline: none;
  transition: background 0.14s, color 0.14s, box-shadow 0.17s, transform 0.14s;
}
.city-chip.active, .city-chip:active {
  background: var(--chip-active);
  color: #151b1f;
  font-weight: 900;
  box-shadow: 0 4px 18px #fd367e44;
  transform: scale(1.07);
}
.city-chip:focus {
  outline: 2px solid var(--primary);
}

/* Modal Styles */
.modal-backdrop {
  position: fixed;
  z-index: 999;
  inset: 0;
  background: rgba(24,28,36,0.88);
  display: none;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.25s;
}
.modal-backdrop.active {
  display: flex;
}
@keyframes fadeIn {
  from { opacity: 0;}
  to { opacity: 1;}
}
.modal-card {
  background: var(--card-bg);
  color: #e9f6fb;
  border-radius: 24px;
  box-shadow: var(--shadow);
  max-width: 400px;
  width: 94vw;
  padding: 0;
  overflow: hidden;
  animation: popIn 0.23s;
  position: relative;
}
@keyframes popIn {
  from { transform: scale(0.91);}
  to { transform: scale(1);}
}
.modal-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: #232b39;
}
.modal-content {
  padding: 1.4rem 1.2rem 1.1rem 1.2rem;
}
.modal-date {
  background: #37ffd7;
  color: #181d24;
  font-weight: 800;
  font-size: 1.04rem;
  padding: 7px 16px;
  border-radius: 15px;
  margin-bottom: 10px;
  display: inline-block;
}
.modal-title {
  font-size: 1.28rem;
  font-weight: 800;
  margin: 0 0 10px 0;
  color: var(--white);
}
.modal-info-row {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 9px;
}
.modal-desc {
  white-space: normal !important;
  word-break: break-word !important;
  display: block !important;
  overflow: auto;
  font-size: 1.08rem;
  margin-bottom: 18px;
}

.modal-buy-btn {
  display: inline-block;
  background: linear-gradient(90deg, #37ffd7 60%, #fd367e 120%);
  color: #181d24;
  font-weight: 800;
  border-radius: 17px;
  border: none;
  padding: 11px 22px;
  font-size: 1.1rem;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 1px 8px #37ffd7a1;
  transition: background 0.17s;
}
.modal-buy-btn:hover {
  background: linear-gradient(90deg, #fd367e 40%, #37ffd7 100%);
  color: #fff;
}
.modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 2.1em;
  color: #fd367e;
  background: none;
  border: none;
  z-index: 110;
  cursor: pointer;
  opacity: 0.82;
  transition: opacity 0.15s;
  padding: 3px 11px 3px 11px;
  border-radius: 7px;
}
.modal-close:hover, .modal-close:active {
  opacity: 1;
  background: #fff1;
}

/* Spinner Styles */
#loading-spinner {
  position: fixed;
  z-index: 9999;
  inset: 0;
  background: rgba(24, 28, 36, 0.62);
  display: flex;
  align-items: center;
  justify-content: center;
}
.spinner {
  border: 5px solid #232b39;
  border-top: 5px solid #37ffd7;
  border-radius: 50%;
  width: 56px;
  height: 56px;
  animation: spin 0.9s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg);}
}

#loading-spinner { display: none; }

@media (max-width: 600px) {
  .modal-close {
    font-size: 2.6rem;
    top: 10px;
    right: 10px;
    padding: 0.2em 0.5em;
    z-index: 10;
    background: #191e27cc;
    border-radius: 50%;
    color: #fff;
  }
}

.event-desc.collapsed {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: 2.8em;
  white-space: normal;
  word-break: break-word;
}

.toggle-desc {
  color: #2fa4ff;
  cursor: pointer;
  font-size: 0.98em;
  margin-top: -10px;
  margin-bottom: 8px;
  display: inline-block;
}

.walkin-btn, .free-btn {
  font-weight: bold;
  font-size: 1.1em;
  border: 2px solid #ffd86a;
  color: #ffd86a !important;
  background: #232c3c !important;
  margin-top: 6px;
}

.featured-badge {
  background: linear-gradient(90deg, #fd367e 30%, #37ffd7 100%);
  color: #fff;
  font-size: 0.82em;
  font-weight: bold;
  border-radius: 7px;
  padding: 3px 12px;
  margin-bottom: 9px;
  display: inline-block;
  letter-spacing: 1px;
  box-shadow: 0 2px 8px #fd367e45;
}

#event-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 99;
  background: rgba(16,18,22,0.97);
  display: none;
  align-items: center;
  justify-content: center;
  transition: opacity 0.22s;
  /* Remove overflow:hidden here */
}

#event-modal.active {
  display: flex;
  opacity: 1;
}


.event-modal-content {
  background: #21232b;
  border-radius: 14px;
  max-width: 97vw;
  width: 95vw;
  max-height: 92vh;
  padding: 25px 16px 20px 16px;
  box-shadow: 0 7px 32px #000a;
  position: relative;
  overflow-y: auto;     /* Allow scroll INSIDE modal */
  /* On mobile, allow modal itself to scroll if needed */
}

@media (max-width: 600px) {
  .modal-close {
    left: 50%;
    right: auto;
    top: 7px;
    transform: translateX(-50%);
    font-size: 2.2em;
    background: #232b39;
    border: 2px solid #fd367e33;
    color: #fd367e;
    box-shadow: 0 2px 12px #0006;
    padding: 7px 21px 7px 21px;
    border-radius: 99px;
    opacity: 0.94;
  }
}

.faq-accordion {
  margin: 32px auto;
  max-width: 580px;
  background: transparent;
  border-radius: 18px;
  box-shadow: none;
  padding: 0;
}

.faq-item {
  background: #232b39;
  margin: 18px 0;
  border-radius: 15px;
  box-shadow: 0 4px 22px 0 #191f2c60, 0 1.5px 8px #0003;
  overflow: hidden;
  transition: box-shadow 0.22s, background 0.21s;
  border: 1.5px solid #24283a;
}

.faq-item.active {
  box-shadow: 0 4px 18px #37ffd755, 0 1.5px 8px #fd367e33;
  background: #263342;
  border-color: #37ffd7;
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  outline: none;
  color: #37ffd7;
  font-size: 1.13rem;
  font-weight: bold;
  padding: 20px 22px 17px 22px;
  cursor: pointer;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  letter-spacing: 0.2px;
  transition: background 0.15s, color 0.15s;
}
.faq-question:hover, .faq-item.active .faq-question {
  background: #232937;
  color: #fd367e;
}
.faq-question:after {
  content: '▼';
  font-size: 1em;
  color: #fd367e;
  margin-left: 14px;
  transition: transform 0.22s, color 0.13s;
}
.faq-item.active .faq-question:after {
  transform: rotate(-180deg);
  color: #37ffd7;
}
.faq-answer {
  background: inherit !important;  /* Inherit from parent card! */
  color: #eaf7ff;
  font-size: 1.09rem;
  padding: 0 22px 18px 22px;
  display: none;
  border-top: 1px solid #293041;
  margin-bottom: 7px;
  animation: fadeIn 0.3s;
  line-height: 1.63;
  border-radius: 0 0 12px 12px;
}

.faq-item.active .faq-answer {
  display: block;
}

.faq-answer ul {
  margin: 0 0 0 8px;
  padding: 0 0 0 14px;
  color: #b0bad6;
  font-size: 1em;
}

@media (max-width: 650px) {
  .faq-accordion {
    max-width: 97vw;
  }
  .faq-item {
    margin: 12px 0;
  }
  .faq-question, .faq-answer {
    padding-left: 5vw;
    padding-right: 5vw;
  }
}



.event-desc:not(.collapsed) {
  display: block !important;
  max-height: none !important;
  -webkit-line-clamp: unset !important;
  overflow: visible !important;
}
.faq-item.active .faq-answer {
  display: block;
  /* Optional: Add animation for a smooth effect */
  animation: fadeIn 0.23s;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-7px);}
  to { opacity: 1; transform: translateY(0);}
}

.floating-submit-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #fd367e;
  color: #fff;
  padding: 14px 20px;
  border-radius: 40px;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 4px 18px #fd367e55;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

@keyframes btnPulse {
  0% { box-shadow: 0 0 0 0 #fd367e44; }
  70% { box-shadow: 0 0 0 14px #fd367e00; }
  100% { box-shadow: 0 0 0 0 #fd367e00; }
}

.floating-submit-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px #fd367e99;
}
@media (max-width: 650px) {
  .floating-submit-btn {
    right: 14px;
    bottom: 18px;
    padding: 13px 19px 12px 19px;
    font-size: 1.06rem;
  }
}

.section,
.section.info-section,
.section.upcoming-events,
footer,
.main-header {
  border-top: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
}

footer {
  border-top: none !important;
}

.section.info-section,
.section.upcoming-events,
footer,
.main-header {
  background: transparent !important;
}

.ended-badge {
  background: #3a4250;
  color: #b0bad6;
  font-size: 0.85em;
  font-weight: 700;
  border-radius: 7px;
  padding: 3px 10px;
  margin-bottom: 9px;
  display: inline-block;
  opacity: 0.75;
}
.ongoing-badge {
  background: #37ffd7;
  color: #181d24;
  font-size: 0.86em;
  font-weight: 700;
  border-radius: 7px;
  padding: 3px 10px;
  margin-bottom: 9px;
  display: inline-block;
  box-shadow: 0 2px 12px #37ffd77a;
}

.event-card.ended {
  opacity: 0.5;
  pointer-events: none;
}

.section.featured-event-section {
  background: none;
  border-bottom: 2px solid #37ffd7a1;
  margin-bottom: 12px;
  padding-bottom: 1.4rem;
}
.featured-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #232c3c;
  border-radius: 22px;
  box-shadow: 0 2px 18px #fd367e33;
  padding: 1.5rem 1rem 1.1rem 1rem;
  max-width: 400px;
  margin: 0 auto 0 auto;
  position: relative;
}
.featured-img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  border-radius: 15px;
  margin-bottom: 1rem;
}
.featured-card-content {
  width: 100%;
  text-align: center;
}
.featured-badge {
  background: linear-gradient(90deg, #fd367e 30%, #37ffd7 100%);
  color: #fff;
  font-size: 0.93em;
  font-weight: bold;
  border-radius: 7px;
  padding: 5px 15px;
  margin: 0 0 9px 0;
  display: inline-block;
  letter-spacing: 1px;
  box-shadow: 0 2px 8px #fd367e45;
}

.event-desc p, .modal-desc p {
  margin: 0 0 1em 0;
}

.share-btn {
  transition: transform 0.1s;
}
.share-btn:active {
  transform: scale(1.2);
}

.section.events-for-you h2 {
  margin-top: 0.2rem !important;  /* pulls the heading up */
  margin-bottom: 0.8rem !important; /* space below, adjust as needed */
}

@media (max-width: 600px) {
  .chips-row {
    flex-wrap: wrap !important;
    gap: 6px !important;
    margin: 0 0 15px 0 !important;
    padding: 0 !important;
    overflow-x: visible !important;
    justify-content: center !important;
    width: 100% !important;
  }
  .chip {
    flex: 1 0 46%;
    min-width: 82px;
    max-width: 49vw;
    padding: 9px 2px !important;
    font-size: 0.93rem !important;
    white-space: nowrap;
    margin-bottom: 3px;
  }
}

.feature-cta-card {
  background: #232b39;
  border-radius: 16px;
  margin: 24px auto 8px auto;
  max-width: 360px;
  padding: 19px 16px;
  text-align: center;
  box-shadow: 0 3px 14px #fd367e22;
  font-family: 'Inter', Arial, sans-serif;
}
.feature-cta-card span:first-child {
  font-size: 1.19em;
  font-weight: 800;
  color: #fd367e;
}
.feature-cta-card span:last-child {
  color: #b0bad6;
}
