body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  background: linear-gradient(to bottom, #fdf4ff, #ffffff);
  color: #333;
  overflow-x: hidden;
}

/* === COLLEGE BANNER === */
.college-banner {
  width: 100%;
  background-color: #7b1fa2;
  color: white;
  text-align: center;
  padding: 0.8rem 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  position: relative;
  top: 15px;
  z-index: 20;
}
.college-banner img { width: 100px; margin-right: 10px; vertical-align: middle; }
.college-banner h1 { display: inline-block; font-size: 3rem; margin: 0; vertical-align: middle; }
.college-banner p { margin: 4px 0 0; font-size: 1rem; }

/* === HOME SECTION === */
section { display: none; padding: 2rem; text-align: center; min-height: 80vh; }
section.active { display: block; }
#home { position: relative; height: 100vh; overflow: hidden; }
.spline-fullscreen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 200%;
  z-index: -1; /* ensures it's behind all content */
  overflow: hidden;
}

.spline-fullscreen iframe {
  width: 100%;
  height: 100%;
  border: none;
}


.home-content {
  position: relative;
  z-index: 5;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  flex-wrap: wrap;
  gap: 6rem;           /* slightly less spacing */
  padding-top: 10px;   /* move everything up */
  margin-top: -50px;   /* pushes entire section upward */
}
@media (max-width: 768px) {
  .home-content {
    margin-top: -20px; /* smaller upward shift on mobile */
  }
}


.home-left {
  flex: 1 1 350px;
  display: flex;
  justify-content: flex-end; /* pushes poster a bit to right */
  padding-right: 40px; /* control how far right */
}

.home-right {
  flex: 1 1 350px;
  display: flex;
  justify-content: flex-start; /* pushes overlay left */
  padding-left: 40px; /* control how far left */
}

.main-poster { width: 400px; border-radius: 25px; box-shadow: 0 6px 20px rgba(0,0,0,0.3); transition: transform 0.3s; }
.main-poster:hover { transform: scale(1.03); }

.home-overlay {
  background: rgba(0, 0, 0, 0.4);
  color: white;
  padding: 2rem 3rem;
  border-radius: 16px;
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  max-width: 400px;
}
.home-overlay h2 { font-size: 2rem; margin-bottom: 1rem; }
.home-overlay p { font-size: 1.1rem; margin-bottom: 1rem; }
.home-overlay p { 
  font-size: 1.1rem; 
  margin-bottom: 1rem; 
}

.home-overlay p:last-of-type {
  margin-bottom: 2rem;
}

.home-overlay .btn {
  margin-top: 0.5rem; /* adjust to make the spacing perfect */
}



.btn {
  background: #802F89;
  color: white;
  padding: 0.8rem 1.6rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s;
}
.event-info .btn {
  display: inline-block;
  margin: 0.5rem 0; /* adds vertical spacing between buttons */
}
.btn:hover { background: #5a2060; }

/* === EVENTS GRID === */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.tarang-title {
  font-family: 'Fjalla One', sans-serif; /* change font style */
  font-weight: 900; /* boldness: 100–900, or use 'bold' */
  letter-spacing: 1px; /* optional: spacing between letters */
  text-transform: uppercase; /* optional: make all caps */
  color: #2b004d; /* optional: change color */
}

.event-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 1rem;
  text-align: center;
  transition: all 0.3s;
  cursor: pointer;
}
.event-card:hover { transform: scale(1.03); box-shadow: 0 8px 20px rgba(0,0,0,0.15); }
.event-card img { width: 100%; height: 180px; border-radius: 12px; object-fit: cover; }
.event-card h3 { color: #802F89; margin: 0.5rem 0; }
.event-card p { color: #555; margin: 0.2rem 0; }

/* === EVENT DETAIL === */
.event-detail {
  max-width: 1100px;
  margin: 4rem auto;
  text-align: left;
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  align-items: flex-start;
}
.event-detail img {
  width: 100%;
  max-width: 500px;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}
.event-info h2 { color: #802F89; margin-bottom: 0.8rem; }
.coord-section { margin-top: 1.5rem; }
.coord-section h3 { color: #802F89; margin-bottom: 0.5rem; }
.coord-section ul { margin: 0 0 1rem 1.5rem; color: #444; }

footer {
  background: #802F89;
  color: white;
  text-align: center;
  padding: 1rem;
}

@media (max-width: 900px) {
  .home-content { flex-direction: column; }
  .main-poster { width: 80%; }
}
@media (max-width: 700px) {
  .event-detail { flex-direction: column; text-align: center; }
  .event-info { text-align: center; }
}
