html, body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  font-family: "Helvetica Neue", Arial, sans-serif;
  color: #222;
 font-size: 16px;
line-height: 1.6;
}
body {
  min-height: 100vh;   /* ensures full height */
}
main {
  flex: 1;
  margin: 100px auto 0 auto; /* ✅ centers horizontally */
  max-width: 2000px;
  width: 100%;               /* ✅ ensures full stretch inside max-width */
  padding: 0 20px;           /* ✅ prevents text hugging the viewport edge */
  box-sizing: border-box;
}

/* Header */
header {
  background-color: #301934; /* dark purple for top part */
  color: white;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}
/* Logo + Title inline */
.logo-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 18px;  /* taller */
  background-color: #301934; /* stays dark */
}

.header-logo {
  height: 40px; /* slightly larger logo */
}

.campaign-name {
  font-size: 18px; /* larger title text */
  font-weight: bold;
  margin: 0;
  color: white;
}
.desktop-menu {
  display: flex;
  align-items: center;
  background-color: #563c5c;
  padding: 3px 15px;
  position: relative;
}

/* Center the menu absolutely */
.menu {
  list-style: none;
  margin: 0 auto;   /* centers inside flexbox */
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Right-aligned join button */
.join-btn {
  margin-left: auto; /* pushes only this one to the right */
}

.join-btn a {
  background-color: #301934; /* same as top header */
  color: #d3d3d3;            /* light gray text */
  padding: 4px 10px;         /* smaller size */
  border-radius: 0;          /* square edges */
  text-decoration: none;
  font-weight: 500;          /* slightly lighter than bold */
  font-size: 14px;           /* smaller font */
  border: 1px solid #d3d3d3; /* subtle gray border */
  transition: all 0.3s ease;
}

.join-btn a:hover {
  background-color: #d3d3d3; /* gray highlight on hover */
  color: #301934;            /* dark purple text */
  border-color: #d3d3d3;
}

.menu a {
  color: white;
  text-decoration: none;
  padding: 6px 12px; /* smaller padding for compact look */
  display: block;
  font-weight: 500;
}

.menu a:hover {
  background-color: #7B68EE; /* hover effect */
  color: white;
}

.menu li {
  position: relative;
  margin: 5px;
}

.dropbtn {
  display: inline-flex;
  align-items: center;
  transition: background-color 0.3s, color 0.3s;
}

.dropbtn i {
  font-size: 0.8em;
  margin-left: 4px;
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* Dropdown Menu (Desktop) */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #E6E6FA;
  min-width: 160px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  z-index: 999;
}

.dropdown-content a {
  padding: 12px 16px;
  color: black;
}
/* Hide toggle button on desktop */
.menu-toggle-wrapper {
  display: none;
}
/* ðŸ”’ Hide sidebar on desktop */
.sidebar {
  display: none;
}

/* Footer */
.last-container {
  text-align: center;
  padding: 20px;
  background-color: #301934;
  color: white;
}

.last-container .social-icons {
  margin: 10px 0;
}

.last-container .social-icons a {
  color: white;
  font-size: 20px;
  margin: 0 10px;
  text-decoration: none;
}

/* Social Label Section */
.social-label {
  text-align: center;
  font-weight: bold;
  color: #301934;
  margin-top: 40px;
  font-size: 18px;
  letter-spacing: 1px;
}

.social-divider {
  margin: 15px auto 30px;
  padding: 15px 0;
  max-width: 320px;
  border: 2px solid #301934;
  border-radius: 10px;
  text-align: center;
}

.social-divider a {
  color: #301934;
  font-size: 24px;
  margin: 0 12px;
  text-decoration: none;
  transition: color 0.3s ease;
}

.social-divider a:hover {
  color: #6a1b9a;
}
/* ===============================
   🎵 Stream Updates Section (White Theme)
   =============================== */
.updates-section {
  text-align: center;
  margin: 60px auto;
  max-width: 1200px;
  background: #ffff;
  padding: 40px 15px;
  border-radius: 16px;
  color: #222;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e5e5;
  transition: all 0.3s ease;
}

.updates-section h2 {
  font-size: 1.8em;
  margin-bottom: 25px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #301934; /* accent purple */
}

/* ===== Toggle Buttons ===== */
.toggle-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 25px;
  flex-wrap: wrap;
}

.toggle-btn {
  padding: 10px 24px;
  border: 2px solid #d0b0ff;
  background: #f9f9ff;
  color: #301934;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.toggle-btn:hover {
  background: #e9ddff;
  border-color: #c8a6ff;
}

.toggle-btn.active {
  background: #6b4b8a;
  color: #fff;
  border-color: #6b4b8a;
  transform: scale(1.05);
}

/* ===== Stream Boxes Wrapper ===== */
.stream-box-wrapper {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 10px;
}

/* ===== Individual Platform Box ===== */
.platform-box {
  flex: 1;
  min-width: 320px;
  max-width: 700px;
  background: #fcfcfc;
  padding: 18px 20px;
  border-radius: 12px;
  border: 1px solid #ddd;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
  height: auto;
  position: relative; /* needed for absolute date */
}

.platform-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

/* ===== Platform Headers ===== */
.platform-box h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3em;
  font-weight: 700;
  color: #301934;
  margin-bottom: 8px;
}

/* ===== Platform Logos ===== */
.platform-logo {
  width: 26px;
  height: 26px;
  object-fit: contain;
  vertical-align: middle;
}

/* ===== Top-Right Date ===== */
#spotifyDate,
#youtubeDate {
  position: absolute;
  top: 15px;
  right: 20px;
  font-style: italic;
  font-weight: 500;
  color: #7e57c2;
  font-size: 14px;
  letter-spacing: 0.5px;
}

/* ===== Subtle Brand Accent Lines ===== */
.platform-box.spotify {
  border-top: 5px solid #1DB954;
}

.platform-box.youtube {
  border-top: 5px solid #FF0000;
}

/* Optional: Light hover lift for each box */
.platform-box:hover {
  transform: translateY(-3px);
  transition: 0.25s ease;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

/* ===== Song Rows ===== */
.song-row {
  background: #f7f7f7;
  color: #222;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 8px;
  margin-bottom: 6px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid #eee;
  transition: background 0.25s ease, transform 0.1s ease;
}

.song-row:hover {
  background: #f0f0f0;
  transform: translateY(-1px);
}

.song-row span:first-child {
  text-align: left;
  flex: 1;
}

.song-row span:last-child {
  text-align: right;
  min-width: 110px;
}

.song-row .growth {
  font-size: 10px;
  color: #28a745;
  margin-left: 6px;
}

.song-row .growth:before {
  content: "▲ ";
  color: #28a745;
  font-size: 10px;
}

/* ===== Hidden Sections ===== */
.content-section {
  display: none;
}
.content-section.active {
  display: block;
}

/* ===============================
   🎵 Featured Playlists Section
   =============================== */
.playlists {
  background: #ffffff;
  color: #222;
  text-align: center;
  margin: 70px auto;
  max-width: 1200px;
  padding: 40px 10px 60px;
  border-radius: 20px;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.playlists h2 {
  font-size: 2rem;
  margin-bottom: 10px;
  font-weight: 800;
  color: #301934;
  text-transform: uppercase;
}

.playlists p {
  color: #555;
  margin-bottom: 40px;
  font-size: 1.05rem;
}

/* Wrapper for playlist grids */
.playlist-grid {
  display: flex;
  flex-direction: column;
  gap: 40px;
  width: 100%;
  box-sizing: border-box;
}

/* Each card fits container width */
.playlist-card {
  background: #fafafa;
  border-radius: 16px;
  padding: 25px 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border: 1px solid #eee;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
  box-sizing: border-box;
}

.playlist-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.playlist-card h3 {
  font-size: 1.4rem;
  margin-bottom: 20px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-align: left;
  padding-left: 5px;
}

/* 5 images per row */
.playlist-images {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

/* Smaller thumbnails */
.playlist-images img {
  width: 100%;
  aspect-ratio: 1 / 1; /* keeps them square */
  border-radius: 8px;
  object-fit: cover;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.playlist-images img:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* Brand borders */
.playlist-card:nth-child(1) {
  border-top: 5px solid #1db954; /* Spotify green */
}
.playlist-card:nth-child(2) {
  border-top: 5px solid #ff0000; /* YouTube red */
}
.playlist-card:nth-child(3) {
  border-top: 5px solid #fa57c1; /* Apple pink */
}

/* ===========================
   🎧 Streamer Dashboard Styling (White Aesthetic)
   =========================== */
 .runtime-warning {
  background: linear-gradient(90deg, #424242, #757575);
  color: #fff;
  text-align: center;
  padding: 12px 20px;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 12px;
  font-weight: 500;
  border-radius: 6px;
  margin: 20px auto;
  width: 80%;
  max-width: 1000px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  letter-spacing: 0.3px;
}
.timestamp, .timestamptop, .timestamphall, .chart-date {
  font-style: italic;
  color: #7e57c2;
  font-size: 13px;
  letter-spacing: 0.5px;
}
#dashboard {
  margin-top: 2.5rem;
  padding: 1.5rem;
  background: #fff;
  border-radius: 20px;
}

#dashboard h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 0.3rem;
  font-weight: 800;
  color: #111;
}

#dashboard p {
  text-align: center;
  color: #666;
  margin-bottom: 2rem;
}

/* Dashboard grid layout */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* Exactly 2 cards per row */
  gap: 2.5rem; /* Slightly larger gap for better spacing */
  justify-items: center; /* Center cards horizontally */
}

/* Dashboard cards */
.dashboard-card {
  background: rgba(255, 255, 255, 0.7);
  border-radius: 24px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.08);
  padding: 2.5rem; /* Larger padding for a bigger card */
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
  border: 1px solid rgba(230, 230, 230, 0.7);
  width: 90%; /* Makes each card wide inside the grid cell */
  min-height: 350px; /* Gives more height for larger look */
}
.dashboard-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.1);
}

/* Unique gradient headers per card */
.dashboard-card:nth-child(1)::before,
.dashboard-card:nth-child(2)::before,
.dashboard-card:nth-child(3)::before,
.dashboard-card:nth-child(4)::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 8px;
  border-radius: 20px 20px 0 0;
}

.dashboard-card:nth-child(1)::before {
  background: linear-gradient(90deg, #a88beb, #f8ceec);
}
.dashboard-card:nth-child(2)::before {
  background: linear-gradient(90deg, #ffafbd, #ffc3a0);
}
.dashboard-card:nth-child(3)::before {
  background: linear-gradient(90deg, #89f7fe, #66a6ff);
}
.dashboard-card:nth-child(4)::before {
  background: linear-gradient(90deg, #f6d365, #fda085);
}

/* Title header for each card */
.dashboard-card h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: #222;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Decorative underline */
.dashboard-card h3::after {
  content: "";
  display: block;
  width: 50px;
  height: 3px;
  margin: 0.5rem auto 1.2rem;
  border-radius: 2px;
  background: linear-gradient(90deg, #8a2be2, #ff69b4);
}

/* Table-style header for each list */
.streamer-header {
  display: grid;
  grid-template-columns: 2fr 1fr; /* Same as list layout */
  font-weight: 700;
  color: #555;
  font-size: 0.9rem;
  text-transform: uppercase;
  border-bottom: 2px solid rgba(0, 0, 0, 0.05);
  padding: 0 1.2rem 0.5rem 1.2rem; /* match inner spacing */
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
}

.streamer-header span:first-child {
  text-align: left;
  padding-left: 1.2rem; /* aligns with rank+name block */
}

.streamer-header span:last-child {
  text-align: right;
  padding-right: 1rem; /* perfectly aligns with stream numbers */
}

/* Streamer list items */
.streamer-list li {
  display: grid;
  grid-template-columns: 2fr 1fr; /* Match header layout */
  justify-content: space-between;
  align-items: center;
  background: #fafafa;
  border-radius: 12px;
  padding: 0.75rem 1.2rem; /* same padding as header */
  margin-bottom: 0.7rem;
  font-weight: 500;
  transition: background 0.25s ease, transform 0.25s ease;
  cursor: pointer;
}

/* Streams aligned right */
.streamer-list li .streams {
  font-weight: 700;
  color: #ff69b4;
  text-align: right;
  min-width: 60px;
  padding-right: 2.5rem; /* ensures perfect header alignment */
}

/* Special headers for 3-column lists */
#topList ~ .streamer-header,
.dashboard-card:nth-child(3) .streamer-header {
  grid-template-columns: 2fr 1fr 1fr; /* Streamer | Position | Weeks */
}
#hallList ~ .streamer-header,
.dashboard-card:nth-child(4) .streamer-header {
  grid-template-columns: 2fr 1fr; /* Streamer */
}
#hallList li {
  grid-template-columns: 2fr 1fr;
}
#hallList.streamer-list {
    font-size:20px;
}
/* Streamer list base styling */
.streamer-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
/* 3-column variants (e.g., Weekly Top Streamers) */
#topList li {
  grid-template-columns: 2fr 1fr 1fr;
}

/* Hover and active effects */
.streamer-list li:hover,
.streamer-list li:active {
  background: #fff;
  transform: scale(1.02);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

/* Text and span alignment */
.streamer-list li span {
  display: block;
  text-align: center;
}
.streamer-list li span.streamer-name {
  text-align: left;
  font-weight: 500;
}

/* Rank numbers */
.streamer-list li .rank {
  font-weight: 700;
  margin-right: 0.75rem;
  width: 1.2rem;
  text-align: center;
  flex-shrink: 0;
}

/* Top 3 color highlights */
.streamer-list li:nth-child(1) .rank {
  color: #ffd700; /* Gold */
}
.streamer-list li:nth-child(2) .rank {
  color: #c0c0c0; /* Silver */
}
.streamer-list li:nth-child(3) .rank {
  color: #cd7f32; /* Bronze */
}

/* Streamer username alignment */
.streamer-list li .username {
  flex: 1;
  font-size: 1rem;
  color: #333;
  text-align: left;
  margin-left: 0.3rem;
}

/* Streams count aligned to the right */
.streamer-list li .streams {
  font-weight: 700;
  color: #ff69b4;
  text-align: right;
  min-width: 60px;
}

/* Subtle update animation (pulse) */
@keyframes pulse {
  0% { background-color: #fafafa; }
  50% { background-color: #fff; }
  100% { background-color: #fafafa; }
}

.streamer-list li.updated {
  animation: pulse 1.5s ease-in-out;
}

/* ===============================
   🎧 Streamers Entry Section
   =============================== */
.streamers-entry {
  background: #ffffff;
  border-radius: 16px;
  padding: 30px 25px;
  max-width: 900px;
  margin: 40px auto;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  color: #222;
  text-align: left;
  line-height: 1.6;
  font-family: 'Poppins', sans-serif;
  transition: all 0.3s ease;
}

.streamers-entry:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.streamers-entry p {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
  text-align: center;
}

.streamers-entry ul {
  list-style: none;
  padding: 0;
  margin-top: 15px;
}

.streamers-entry ul b {
  display: block;
  font-size: 1rem;
  margin-bottom: 8px;
  color: #444;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.streamers-entry li {
  position: relative;
  padding-left: 25px;
  margin: 10px 0;
  font-size: 0.98rem;
  color: #333;
}

.streamers-entry li::before {
  content: "🎧";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 1rem;
  opacity: 0.8;
}

.streamers-entry li:hover {
  color: #000;
  transform: translateX(5px);
  transition: 0.3s;
}

/* Optional Divider */
.streamers-entry::before {
  content: "";
  display: block;
  height: 3px;
  width: 80%;
  margin: 0 auto 20px;
  background: linear-gradient(90deg, #000000, #555555, #b0b0b0);
  border-radius: 2px;
  opacity: 0.8;
}
/* ===============================
   📩 Contact Form Button
   =============================== */
.contact-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 8px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  border-radius: 25px;
  background: linear-gradient(90deg, #000000, #4a4a4a, #9c9c9c);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.25s ease;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.contact-btn:hover {
  background: linear-gradient(90deg, #1a1a1a, #5c5c5c, #b5b5b5);
  transform: translateY(-2px);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.25);
}

.contact-btn:active {
  transform: scale(0.97);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
/* ===============================
   📚 Streaming Tutorials Section (Enhanced)
   =============================== */
.tutorial-section {
  margin: 50px auto;
  padding: 0 10px;
  max-width: 100%;
  text-align: center;
  box-sizing: border-box;
}
/* Title Bar */
.tutorial-title {
  margin-bottom: 40px;
}

.tutorial-title h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #333;
  background: linear-gradient(to right, #000, #555);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}

.tutorial-title p {
  font-size: 1rem;
  color: #666;
}

/* Two main tutorial boxes */
.tutorial-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 10px;
  box-sizing: border-box;
}
/* Reduce side padding inside each tutorial box */
.tutorial-box {
  padding: 15px 15px; /* was 40px 25px */
}
/* 📻 Stationhead Tutorial Box */
.tutorial-box:nth-child(1) {
  background: linear-gradient(160deg, rgba(255, 240, 240, 1) 20%, rgba(255, 220, 220, 0.7) 50%, #fff 100%);
  border-radius: 18px;
  box-shadow: 0 6px 25px rgba(255, 100, 100, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tutorial-box:nth-child(1):hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 35px rgba(255, 80, 80, 0.25);
}

.tutorial-box:nth-child(1) h2 {
  color: #d32f2f;
}

/* 🎧 Last.fm Tutorial Box */
.tutorial-box:nth-child(2) {
  background: linear-gradient(160deg, rgba(250, 240, 255, 1) 20%, rgba(230, 210, 255, 0.7) 50%, #fff 100%);
  border-radius: 18px;
  box-shadow: 0 6px 25px rgba(130, 60, 255, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tutorial-box:nth-child(2):hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 35px rgba(130, 60, 255, 0.25);
}

.tutorial-box:nth-child(2) h2 {
  color: #6a1b9a;
}

/* General tutorial box text */
.tutorial-box p {
  color: #444;
  font-size: 1rem;
  margin-bottom: 25px;
  text-align: center;
}

.tutorial-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* always 2 cards per row */
  gap: 20px;
  justify-items: center;
  box-sizing: border-box;
}

/* Individual cards */
.tutorial-card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  padding: 15px;
  max-width: 300px;
  text-align: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  transition: all 0.2s ease-in-out;
  backdrop-filter: blur(6px);
  box-sizing: border-box;
}

.tutorial-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.tutorial-card img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 10px;
  object-fit: cover;
}

.tutorial-card h4 {
  font-size: 1rem;
  color: #222;
  margin: 6px 0;
}

.tutorial-card p {
  font-size: 0.9rem;
  color: #555;
  text-align: justify;
}

/* Notes list */
ul {
  text-align: justify;
  color: #444;
  font-size: 15px;
  padding-left: 20px;
  margin-top: 10px;
}

/* ===========================
   📅 Events Section Styling
   =========================== */
#events {
  margin-top: 3rem;
  padding: 2rem 1.5rem;
  background: #fff;
  border-radius: 20px;
}

#events h2 {
  text-align: center;
  font-size: 1.9rem;
  font-weight: 800;
  color: #111;
  margin-bottom: 0.5rem;
}

#events p {
  text-align: center;
  color: #666;
  font-size: 1rem;
  margin-bottom: 2rem;
}

/* Timeline layout */
.events-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
}

/* Event cards */
.event-card {
  background: rgba(255, 255, 255, 0.7);
  border-radius: 18px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
  padding: 1.5rem;
  border-left: 6px solid #ffb6c1;
  transition: all 0.3s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.event-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

/* Event poster/banner */
.event-poster {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-card:hover .event-poster {
  transform: scale(1.03);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

/* Event details */
.event-date {
  font-size: 0.9rem;
  color: #ff69b4;
  font-weight: 700;
  margin-bottom: 0.4rem;
  text-transform: uppercase;
}

.event-card h3 {
  color: #222;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.event-card p {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

/* Buttons */
.event-btn {
  background: linear-gradient(90deg, #ff9ad5, #b487ff);
  border: none;
  color: white;
  font-weight: 600;
  border-radius: 10px;
  padding: 10px 16px;
  align-self: flex-start;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.event-btn:hover {
  transform: scale(1.05);
  background: linear-gradient(90deg, #ff8cc9, #9f72ff);
}

.event-btn.disabled {
  background: #ccc;
  color: #666;
  cursor: not-allowed;
  transform: none;
}

/* Status variants */
.event-card.upcoming {
  border-left-color: #b487ff;
}

.event-card.past {
  opacity: 0.85;
  border-left-color: #bbb;
}
/* ===========================
   📜 Certificate Section Styling
   =========================== */
#certificate {
  margin-top: 3rem;
  padding: 2rem 1.5rem;
  background: #fff;
  border-radius: 20px;
}

#certificate h2 {
  text-align: center;
  font-size: 1.9rem;
  font-weight: 800;
  color: #111;
  margin-bottom: 0.5rem;
}

#certificate p {
  text-align: center;
  color: #666;
  font-size: 1rem;
  margin-bottom: 2rem;
}

/* Timeline layout (reuse event grid) */
#certificate-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
}

/* Certificate cards (reuse event-card style) */
#certificate-timeline .event-card {
  background: rgba(255, 255, 255, 0.7);
  border-radius: 18px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
  padding: 1.5rem;
  transition: all 0.3s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

#certificate-timeline .event-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

/* Certificate poster/banner */
#certificate-timeline .event-poster {
  width: 70%; /* scale down to 70% */
  height: auto; /* maintain aspect ratio */
  object-fit: cover;
  border-radius: 12px;
  margin: 0 auto 1rem auto; /* center horizontally and keep bottom margin */
  display: block; /* needed to center with margin auto */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#certificate-timeline .event-poster:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}


/* Certificate details */
#certificate-timeline .event-card h3 {
  color: #222;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

#certificate-timeline .event-card p {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

/* Optional: remove colored left border from certificates */
#certificate-timeline .event-card {
  border-left: none;
}

/* ℹ️ Info Button */
.info-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  margin-bottom: 10px;
  user-select: none;
}

.info-icon {
  width: 18px;
  height: 18px;
  background: #e0e0e0;
  color: #007bff;
  border-radius: 50%;
  font-weight: bold;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.info-label {
  font-size: 14px;
  color: #0066cc;
  text-decoration: underline;
}

/* ℹ️ Popup Overlay */
.popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(3px);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* Popup Box */
.popup-content {
  background: white;
  padding: 25px 20px 20px;
  width: 90%;
  max-width: 400px;
  max-height: 75vh;          /* 🔑 limit height */
  overflow-y: auto;          /* 🔑 enable scroll */
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
  position: relative;
  animation: fadeIn 0.25s ease-in-out;
}

/* Optional: smooth scrollbar (Chrome / Edge / Safari) */
.popup-content::-webkit-scrollbar {
  width: 6px;
}
.popup-content::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 10px;
}
.popup-content::-webkit-scrollbar-track {
  background: transparent;
}

/* Close Button — circular */
.close-btn {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f2f2f2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  color: #333;
  transition: background 0.2s ease, transform 0.2s ease;
}

/* Close hover */
.close-btn:hover {
  background: #e0e0e0;
  transform: scale(1.05);
}


/* Simple Fade Animation */
@keyframes fadeIn {
  from {opacity: 0; transform: translateY(-10px);}
  to {opacity: 1; transform: translateY(0);}
}
.submit-streamer-section {
  max-width: 400px;
  margin: 40px auto;
  text-align: center;
}

.submit-streamer-section input {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
}

.submit-streamer-section button {
  padding: 10px 20px;
  cursor: pointer;
}

#streamerMessage.success {
  color: green;
}

#streamerMessage.error {
  color: red;
}
/* ===== SUBMISSION STATUS ===== */
.submit-status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  font-size: 14px;
  color: #6a2bbf;
}

.hidden {
  display: none;
}

/* ===== SPINNER ===== */
.spinner {
  width: 22px;
  height: 22px;
  border: 3px solid #ddd;
  border-top: 3px solid #6a2bbf;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===== SUCCESS CHECK ===== */
.success-check {
  margin-top: 12px;
  font-size: 26px;
  color: #4CAF50;
  animation: pop 0.4s ease-out;
}

@keyframes pop {
  0% { transform: scale(0.5); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* ===== DISABLED BUTTON ===== */
button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
/* Professional Download Icon */
.card-link-icon {
  position: absolute;
  top: 18px;
  right: 20px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  color: #444;
  background: #f5f5f7;
  border-radius: 8px; /* square-rounded instead of circle */
  border: 1px solid #e0e0e0;
  transition: all 0.25s ease;
}

.card-link-icon:hover {
  background: #ececf1;
  color: #000;
  border-color: #d0d0d0;
  transform: translateY(-2px);
}
@media (max-width: 768px) {
 .desktop-menu { display: none; }
  .menu-toggle-wrapper {
    display: flex; align-items: center; justify-content: center;
    background: #563c5c; padding: 4px 8px; height: 34px; gap: 4px; width: 100%;
  }
  .menu-toggle { font-size: 18px; color: white; }
  .menu-label { font-size: 14px; color: white; font-weight: 600; }

  .sidebar {
    display: block;
    position: fixed;
    top: 60px;
    left: 0; right: 0;
    width: auto; max-width: none;
    height: 50vh; /* ⬅️ Half the screen height */
    background: #6d4c7d;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
    overflow-y: auto;
    opacity: 0; visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 10000;
    padding: 20px 15px;
  }
  .sidebar.show { opacity: 1; visibility: visible; transform: translateY(0); }
  .sidebar ul li { margin-bottom: 20px; } /* more spacing */
  .sidebar ul li a {
    text-decoration: none;
    color: #f2e9f8;
    font-size: 18px; /* balanced size */
    line-height: 1.5;
    font-family: Montserrat, sans-serif;
    font-weight: 500;
    display: block;
    padding: 6px 10px;
    border-radius: 6px;
    transition: background 0.3s;
  }
  .sidebar ul {
  list-style: none;
  padding: 20px 0 0 0; /* ⬅️ pushes menu items down */
  margin: 0;
}
  .sidebar ul li a:hover { background: #8a6b96; }

  .sidebar .dropdown-content {
    background: #c9b6d4;
    border-radius: 6px;
    padding: 4px 0;
  }
  .sidebar .dropdown-content a {
    color: #301934;
    font-size: 18px;
    padding: 8px 14px;
    display: block;
  }
  .sidebar .dropdown-content a:hover { background: #b497c4; color: #fff; }

  /* Bigger close button */
  .sidebar .close-btn {
    position: absolute;
    top: 8px; right: 20px;
    font-size: 36px; /* ⬅️ Bigger for easy tapping */
    font-weight: bold;
    color: #fff;
    cursor: pointer;
    background:transparent;
  }
  .sidebar .dropdown > a i {
  transition: transform 0.3s;
}
.sidebar .dropdown > a i.rotate {
  transform: rotate(180deg);
}
/* Make all sidebar menu labels uppercase */
.sidebar ul li a,
.sidebar .dropdown-content a {
  text-transform: uppercase;
}
/* General Body + Main Layout */
  html, body {
    overflow-x: hidden;
    background-color: #fdfdfd;
  }
  main {
    margin: 80px 0 0 0;
    padding: 0 10px;
  }
  /* Add margin below the header for Stream Updates */
  #streamUpdates {
    margin-top: 60px; /* pushes section below fixed header */
    padding-left: 8px;
    padding-right: 8px;
    overflow-x: hidden;
  }
/* Prevent content from exceeding viewport width */
  .updates-section,
  .stream-box-wrapper,
  .platform-box {
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
  }

  /* Add spacing above toggle buttons */
  .toggle-buttons {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.6rem;
  }

  /* Ensure toggle buttons fit smaller screens */
  .toggle-btn {
    flex: 1 1 auto;
    padding: 10px 14px;
    font-size: 0.95rem;
    border-radius: 12px;
    text-align: center;
    min-width: 90px;
  }

  /* Simplify sections */
  .playlists,
  #events, #dashboard {
    margin: 0;
    padding: 20px 10px;
    border-radius: 0;
    box-shadow: none;
    border: none;
  }
                                            
  /* Stack platform boxes vertically */
  .stream-box-wrapper {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding:0;
  }

  .platform-box {
    width: 100%;
    border-radius: 14px;
    padding: 3px;
  }

  /* Playlist Adjustments */
  .playlist-images {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  .playlist-card {
    border-radius: 14px;
    padding: 1rem;
  }

  /* Dashboard Simplify */
  .dashboard-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  .dashboard-card {
    padding:25px;
    min-height: 250px;
  }

  /* Streamer List Layout Fix */
  .streamer-list li {
    grid-template-columns: 2fr 1fr;
    padding: 5px 1rem;
    border-radius: 10px;
  }
  .streamer-list li span.streamer-name {
    font-size: 14px;
  }
  .streamer-list li .streams {
    font-size: 14px;
  }

  /* Events Section */
  .events-timeline {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  .event-card {
    border-radius: 14px;
    padding: 1rem;
  }
  .event-poster {
    height: 150px;
    border-radius: 10px;
  }
  .event-card h3 {
    font-size: 1rem;
  }
  .event-card p {
    font-size: 0.9rem;
  }
  .event-btn {
    width: 100%;
    text-align: center;
    border-radius: 12px;
  }
.tutorial-section {
  padding: 0;
  margin: 0;
}
.tutorial-wrapper {
  display: flex;
  flex-direction: column;
  gap: 25px;
  padding: 0;
  margin: 0;
}

.tutorial-box {
  padding: 10px;
  border-radius: 14px;
  overflow: hidden; /* ensures inner content aligns perfectly to edges */
  margin:0;
}

.tutorial-grid {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 0;
  margin: 0;
}

/* ✅ Full-width cards, no left/right gaps */
.tutorial-card {
  width: 100%;
  max-width: 100%;
  text-align: left;
  margin: 0;
}

/* ✅ Make images fully flush — no side margins */
.tutorial-card img {
  display: block;
  width: 100%;
  border-radius: 0; /* remove rounding that causes visual gap */
  height: auto;
  margin: 0;
}

/* Optional: reapply rounded corners neatly */
.tutorial-card:first-child img {
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

/* Text adjustments */
.tutorial-card h4 {
  font-size: 1.1rem;
  margin: 10px 10px 5px 10px;
}

.tutorial-card p {
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0 10px 10px 10px;
}

/* Notes list */
ul {
  font-size: 14px;
  padding: 0 15px 10px 25px;
  margin: 0;
}

.tutorial-title {
  text-align: center;
  margin-bottom: 20px;
}

.tutorial-title h1 {
  font-size: 1.5rem;
  margin: 0;
}

.tutorial-title p {
  font-size: 0.9rem;
  margin: 5px 0 15px 0;
}
/* Footer */
  .last-container {
    font-size: 0.85rem;
    padding: 15px;
  }
  .last-container .social-icons a {
    font-size: 18px;
    margin: 0 8px;
  }

  /* Utility */
  .social-label {
    font-size: 1rem;
    margin-top: 20px;
  }  
 #certificate.content-section {
  width: 100%;
  padding: 10px 3px;          /* ⬅️ creates 3px left/right space */
  margin-top: 0;
  margin-bottom: 20px;
  box-sizing: border-box;
 background: linear-gradient(to bottom, #f9f9f9, #ffffff);
}
#certificate-timeline {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: calc(100% - 6px); /* ⬅️ leaves 3px gap on each side */
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
}
#certificate-timeline .event-card {
  width: 100%;
  margin: 0 auto;
  padding: 5px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-left: none;
 background: linear-gradient(to bottom, #f9f9f9, #ffffff);
}
#certificate-timeline .event-poster {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 12px;
}
#certificate-timeline .event-poster:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}
  #certificate-timeline .event-card h3,
  #certificate-timeline .event-card p {
    text-align: center;          /* ensure titles and descriptions are centered */
    font-size: 1rem;             /* slightly smaller for mobile */
  }
  /* Info button tweaks for mobile */
  .info-button {
    justify-content: center; /* center icon + label */
    font-size: 0.9rem;
  }
  .info-icon {
    width: 16px;
    height: 16px;
    font-size: 11px;
  }/* SECTION */
  #submit-streamer {
    width: 100%;
    padding: 12px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  /* FORM */
  #submit-streamer form {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
  }

  /* INPUT */
  #submit-streamer input {
    width: 100%;
    max-width: 100%;
    padding: 12px 14px;
    font-size: 16px; /* prevents iOS zoom */
    box-sizing: border-box;
  }

  /* BUTTON */
  #submit-streamer button {
    width: 100%;
    max-width: 100%;
    margin-top: 10px;
    padding: 12px;
    font-size: 16px;
    box-sizing: border-box;
  }

  /* STATUS + MESSAGE */
  #submit-streamer #submit-status,
  #submit-streamer #streamerMessage {
    width: 100%;
    text-align: center;
    margin-top: 10px;
  }
  /* Smaller download icon on mobile */
.card-link-icon {
  width: 26px;
  height: 26px;
  font-size: 13px;
  top: 14px;
  right: 14px;
  border-radius: 6px;
}
}