* {
  box-sizing: border-box;
}

/* Hamburger */
.hamburger {
  position: fixed;
  color: #3c75ba;
  top: 6px;
  left: 9px;
  font-size: 26px;
  padding: 5px 8px;
  border-radius: 8px;
  cursor: pointer;
  z-index: 1001;
}

.big-title {
  font-size: 2rem;
}

/* Side Panel */
.side-panel {
  position: fixed;
  top: 20px;
  left: -270px;
  width: 250px;
  height: 650px;
  background: rgba(255, 255, 255, 0.655);
  box-shadow: 4px 0 15px rgba(0, 0, 0, 0.296);
  margin-left: 15px;
  padding-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  transition: left 0.3s ease;
  z-index: 1002;
  border: 1px solid white;
  border-radius: 15px;
  backdrop-filter: blur(10px); /* blurs whatever is behind the navbar */
  -webkit-backdrop-filter: blur(5px); /* Safari support */
}

.side-panel a {
  padding: 15px 25px;
  text-decoration: none;
  font-size: 18px;
  font-weight: bold;
  color: #3e80b9;
}

.side-panel a:hover {
  background: #ffffffbb;
  box-shadow: 2px 2px 10px white;
  border-radius: 20px;
  margin-left: 5px;
  margin-right: 5px;
}

/* Overlay */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: none;
  z-index: 1000;
}

/* Active states */
.side-panel.active {
  left: 0;
}

.overlay.active {
  display: block;
}

  
    body {
      font-family: Arial, sans-serif;
      background-image: url(whbg.png);
      background: #f6f6f6;

      
      margin: 0;
    }

    body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 300px; /* adjust how tall the gradient is */

    background: linear-gradient(
    to bottom,
    #a6c9ff,   /* sky blue */
    rgba(135, 206, 235, 0) /* fade to transparent */
    );

    pointer-events: none; /* so it doesn't block clicks */
    z-index: 0;
    }

    header {
      background: rgba(255, 255, 255, 0.165);
      max-width: 94%;
      color: #3c75ba;
      text-align: center;
      margin-left: auto;
      margin-right: auto;
      padding: 10px;
      box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
      border: 1px solid rgba(255, 255, 255, 0.5); /* subtle white edge */
      box-shadow: 0 4px 30px rgba(0, 0, 0, 0.184); /* soft glow */

        position: sticky; /* <--- makes it stick */
        top: 10px;        /* distance from the top of the viewport */
        z-index: 10;

      border-radius: 15px; /* rounds the corners */
      backdrop-filter: blur(10px); /* blurs whatever is behind the navbar */
      -webkit-backdrop-filter: blur(5px); /* Safari support */
    }

    h1 { 
      text-align: center;
     }

    nav.navbar {
      background: rgba(255, 255, 255, 0.165); /* translucent white */
      display: flex;
      max-width: 94%;
      margin-left: auto;
      margin-right: auto;
      justify-content: center;
      gap: 20px;
      padding: 10px 0;
      box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
      position: sticky;
      top: 120px;
      z-index: 10;
      border: 1px solid rgba(255, 255, 255, 0.5); /* subtle white edge */
      box-shadow: 0 4px 30px rgba(0, 0, 0, 0.184); /* soft glow */

      border-radius: 15px; /* rounds the corners */
      backdrop-filter: blur(10px); /* blurs whatever is behind the navbar */
      -webkit-backdrop-filter: blur(5px); /* Safari support */
      }

    nav.navbar a {
      text-decoration: none;
      color: #3c75ba;
      font-weight: bold;
      padding: 8px 12px;
      border-radius: 8px;
      transition: background 0.2s ease;
    }

    nav.navbar a:hover {
      background: #0000000f;
    }

    section {
      padding: 20px;
    }

    section h2 {
      text-align: center;
      margin-bottom: 20px;
    }

    .posters {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 20px;
    }

    .poster {
      background: white;
      border-radius: 15px;
      padding: 10px;
      text-align: center;
      box-shadow: 0 4px 12px rgba(0,0,0,0.15);
      cursor: pointer;
      transition: transform 0.2s;
      text-decoration: none;
      color: black;
      font-size: 1.1rem;
    }

    .poster:hover {
      transform: scale(1.05);
    }

    /* Posts / Social Media Card */
    .post-card {
      max-width: 600px;
      margin: 20px auto;
      background: white;
      border-radius: 15px;
      box-shadow: 0 4px 12px rgba(0,0,0,0.15);
      overflow: hidden;
    }
    .event-card {
      max-width: 300px;
      margin: 20px auto;
      padding: 15px;
      background: white;
      box-shadow: 0 4px 12px rgba(0,0,0,0.15);
      border-radius: 15px;
      overflow: hidden;
    }

    .post-content {
      padding: 15px 20px 20px;
    }

    .post-img {
      width: 100%;
      display: block;
    }

    .post-actions {
      color: #444;
      font-size: 14px;
      margin-top: 10px;
    }

    /* Account section */
    .profile-wrapper {
      text-decoration: none;
      color: inherit;
      display: block;
    }

    .profile-header {
      max-width: 550px;
      margin: 20px auto;
      background: white;
      padding: 15px;
      border-radius: 15px;
      display: flex;
      align-items: center;
      gap: 15px;
      cursor: pointer;
    }

    .pfp {
      width: 55px;
      height: 55px;
      border-radius: 50%;
      object-fit: cover;
    }

    .profile-info h3 { margin: 0; }
    .user-stats { margin: 5px 0 0; font-size: 14px; color: gray; }


    