body {
  margin-top: 2px;
  font-family: 'Poppins', sans-serif;
  color: #333;
  background: linear-gradient(to bottom right, #f8eaff, #ffffff);
  flex-direction: column;
  display: flex;
}
/* ====== NAVBAR ====== */
nav {
  background: white;
  color: #802F89;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 2rem; 
  flex-wrap: wrap;
  margin: 0;
}
nav .nav-left h1 {
  font-size: 1.4rem;
  font-weight: 700;
}
.nav-right
{
  margin-left: 100px;
  margin-bottom: 0;
}
.nav-right a {
  color: white;
  background: #802F89;
  text-decoration: none;
  padding: 6px 20px;
  margin: 0;
  font-weight: 500;
  transition: color 0.3s;
  border-radius: 8px;
}
nav .nav-center a:hover {
  color: #ffd700;
}

/* ====== SECTIONS ====== */
section {
  display: none;
  padding: 0 8%;
  min-height: 80vh;
}
section.active { display: block; }

/* ====== HOME SECTION ====== */
.home-container {
  display: flex;
  margin: 0;
  justify-content:space-between;
  height: 85vh;
}
.spline-container {
  width: 60%;
  height: 100%;
}
.spline-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}
.slider-wrapper{
   margin-top: 5px;
 }
.slider{
 transition: width 2s, height 2s, background-color 2s, transform 2s;
}
.slider img{
  display: block;
  margin: 0;
  width: 85%;
}
.slider img:hover{
transform: translate(10px, 1px);
/* transform: scale(1.03); */
transition: all 1s;
}
.glass-box {
  width: 150%;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 0rem 1rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  color: #2d004d;
  margin-top: 0px;
  text-align: justify;
}
.glass-box h2 {
  font-size: 2rem;
  color: #802F89;
}
.glass-box h4{
  margin-top: 2px;
  margin-bottom: 0;
}
.btn {
  background: #802F89;
  color: white;
  padding: 0.8rem 1.6rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  transition: 0.3s;
}
.btn:hover {
  background: #5e2163;
}
.back-btn {
  margin-top: 1rem;
  background: #ccc;
  color: #333;
}
.back-btn:hover {
  background: #aaa;
}

/* ====== EVENTS GRID ====== */
.section-title {
  color: #802F89;
  font-size: 2rem;
}
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.event-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  transition: all 0.3s;
  cursor: pointer;
  overflow: hidden;
}
.event-card:hover {
  transform: scale(1.03);
}
.event-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.event-card h3 {
  color: #802F89;
  padding: 1rem;
}
.subevent-card {
  background: #fff;
  border-radius: 10px;
  padding: 10px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: transform 0.3s;
  width: 180px;
}

.subevent-card:hover {
  transform: scale(1.05);
}

.subevent-img {
  width: 100%;
  height: 120px;
  border-radius: 8px;
  object-fit: cover;
  margin-bottom: 10px;
}

/* ====== CHAPTER DETAIL ====== */
.chapter-detail {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
  flex-wrap: wrap;
}
.chapter-detail img {
  margin-top: 6px;
  width: 50%;
  max-width: 500px;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}
.chapter-info {
  flex: 1;
}
.subevents-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}
.subevent-card {
  background: rgb(255, 255, 255);
  border-radius: 8px;
  padding: 3rem 1rem;;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: 0.3s;
  cursor: pointer;
}
.subevent-card:hover {
  transform: scale(1.05);
  background: #f6edfa;
}

/* ====== EVENT DETAIL ====== */
.event-detail {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  flex-wrap: wrap;
}
.event-detail img {
  width: 45%;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}
.event-info {
  flex: 1;
}
.event-info h2 {
  color: #802F89;
}

/* ====== FOOTER ====== */
footer {
  background: #802F89;
  color: white;
  text-align: center;
  padding: 0.1rem 0.2rem;
  position: relative;
  margin-bottom: auto;
}
@media (max-width: 768px) {
  .home-container { flex-direction: column; }
  .spline-container, .glass-box { width: 100%; }
  .chapter-detail, .event-detail { flex-direction: column; }
}
body {
  font-family: "Poppins", sans-serif;
  margin: 0;
  background: linear-gradient(to bottom, #f9f5ff, #ffffff);
  color: #222;
}

/* Section layout */
.chapter-section {
  padding: 2rem;
  max-width: 1200px;
  margin: auto;
}

.chapter-section h2 {
  font-size: 1.8rem;
  color: #3b0ca3;
  margin-bottom: 0.5rem;
}

.chapter-section p {
  color: #555;
  margin-bottom: 1.5rem;
}

/* Sub-events grid */
.subevents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

/* Card styling */
.subevent-card {
  background: #ffffff;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-align: center;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.subevent-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

/* Poster section */
.poster-holder {
  width: 100%;
  height: 180px;
  background: #f4f4f4;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.poster-holder img {
  width: 100%;
  height: 50%;
  object-fit: cover;
}

/* Event title */
.subevent-card h3 {
  margin: 1rem 0;
  font-size: 1.1rem;
  color: #222;
}

/* Divider line */
.divider {
  height: 2px;
  background: #e0d6ff;
  margin: 2rem 0;
}
