body {
  margin: 0;
  padding-top: 150px;
 font-family: 'Inter', sans-serif;
  color: black;
  background-color: #FEFCFF;
}

/* 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;
}

.signup-section {
      margin-bottom: 20px;
    }

    .signup-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 10px 0;
      cursor: pointer;
    }

    .sign-up-caption p {
      margin: 0;
      font-weight: bold;
      font-size: 24px;
    }

    .sign-up-toggle {
      display: flex;
      align-items: center;
    }

    .arrow {
      width: 0;
      height: 0;
      border-left: 10px solid transparent;
      border-right: 10px solid transparent;
      border-top: 10px solid #9c3587;
      transition: transform 0.3s ease;
    }

    .arrow.open {
      transform: rotate(180deg);
    }

    .header-line {
      border-bottom: 2px solid #301934;
      margin-top: 8px;
    }

    .signup-content {
  display: none;
  margin: 10px auto 0;
  padding: 10px;
  border: 1px solid #301934;
  background-color: #FEFCFF;
  color:#301934;
  width: 90%;
  max-width: 900px; /* optional max width to keep layout clean on large screens */
}
    .signup-content.show {
      display: block;
    }

/* Main Content */
.main-section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
  gap: 30px;
}
 ul {
     line-height: 1.6;
    font-family: 'Inter', sans-serif;
    font-size:16px;
    color: #555;
 }
.voting-logo {
  max-width: 100%;
  width: 150px;
  height: 150px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.voting-logo:hover {
  transform: scale(1.05); /* slightly enlarges image */
  opacity: 0.8;            /* dims the image a bit */
}

.main-text {
  max-width: 800px;
  color: #301934;
}

.main-text h2 {
  font-size: 28px;
  margin-bottom: 10px;
  color: #4B0082;
}

.main-text p {
  font-size: 16px;
  line-height: 1.6;
  text-align: justify;
  color:#555;
  font-family: 'Inter', sans-serif;
}

.voting-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 20px;
  box-sizing: border-box;
}
.voting-gallery-item {
  flex: 1 1 calc(33.33% - 40px); /* 3 per row */
  max-width: 300px;
  text-align: center;
  margin: 0 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.voting-gallery-item img {
  width: 100%;
  object-fit: contain; /* show whole image */
  background-color: #fff; /* optional: gives clean space around image */
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  cursor: pointer;
  display: block;
}

.voting-gallery-item:hover img {
  transform: scale(1.05);
}

.photo-label {
  margin-top: 8px;
  font-size: 16px;
  color: #555;
  text-align:justify;
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
}
.image-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.mobile-overlay-text {
  display: none; /* hidden by default */
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  background-color: rgba(0, 0, 0, 0.4); /* semi-transparent black */
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
  z-index: 2;
  font-weight: 400;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}
.lightbox-arrow {
  position: absolute;
  top: 50%;
  font-size: 30px;
  color: black;
  padding: 10px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10000;
  transform: translateY(-50%);
  user-select: none;
}

.lightbox-arrow.left {
  left: 30px;
}

.lightbox-arrow.right {
  right: 30px;
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  color: white;
  font-size: 28px;
  border: none;
  cursor: pointer;
  z-index: 10001;
  padding: 0;
  line-height: 1;
}

.floating-menu-icon {
  position: fixed;
  top: 230px; /* just below header */
  left: 50px;
  background-color: #301934;
  color: white;
  font-size: 20px;
  padding: 10px 14px;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  z-index: 2000;
  cursor: pointer;
}

.floating-label {
  position: fixed;
  top: 275px;
  left: 40px;
  font-size: 12px;
  color: grey;
  padding: 2px 6px;
  z-index: 2000;
  white-space: nowrap;
  text-decoration: underline;
}

.floating-popup-menu {
  position: fixed;
  top: 280px;
  left: 20px;
  background-color: #ffffff;
  border: 2px solid #301934;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  padding: 10px;
  display: none;
  z-index: 2000;
  flex-direction: column;

  /* ✅ Scroll support */
  max-height: 50vh; /* Limit height to 50% of viewport */
  overflow-y: auto;
  scroll-behavior: smooth;
}

.floating-popup-menu button {
  background-color: #301934;
  color: white;
  border: none;
  padding: 8px 12px;
  margin: 5px 0;
  cursor: pointer;
  border-radius: 5px;
  font-size: 14px;
  width: 150px;
  text-align: left;
  transition: background-color 0.3s ease;
}

.floating-popup-menu button:hover {
  background-color: #7B68EE;
}

/* Optional: custom scrollbars for desktop */
.floating-popup-menu::-webkit-scrollbar {
  width: 6px;
}

.floating-popup-menu::-webkit-scrollbar-thumb {
  background-color: #301934;
  border-radius: 6px;
}

.custom-stars {
  list-style: none;
  padding-left: 0;
}

.custom-stars li {
  font-size: 15px;
  margin-bottom: 5px;
}

.custom-stars li span {
  margin-right: 8px;
}

.banner {
  /* Removed background-color here since it's in HTML inline style */
  color: white;
  height: 70px;                  /* Makes banner taller */
  display: flex;                 /* Enables centering */
  align-items: center;           /* Vertical centering */
  justify-content: center;       /* Horizontal centering */
  padding: 0 40px;               /* Left/right padding only */
  text-align: center;
  font-size: 20px;
  font-family: Arial, sans-serif;
  margin: 20px auto;
  width: 90%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
.info-list li {
  font-size: 16px;
  line-height: 1.6;
   color: #555;
   font-family: 'Inter', sans-serif;
  margin-bottom: 6px;
  text-align: left; /* Default for desktop */
}
.tables-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.table-wrapper {
	display: flex;
    flex-direction: column;
    align-items: center;
}

table {
    border-collapse: collapse;
    width: 100%;
    margin-top: 10px;
}

th, td {
border: 1px solid #000;
padding: 10px;
text-align: center;
}

th {
    background-color: #f2f2f2;
}

/* 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;
}
/* Back to top button */
#backToTop {
  position: fixed !important; 
  bottom: 30px;               /* slightly closer to bottom */
  right: 30px;                /* slightly closer to right edge */
  display: none;              
  z-index: 1000;

  background: #301934;        
  color: #fff;
  font-size: 22px;            /* adjusted arrow size */
  font-weight: bold;
  border: none;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0,0,0,0.25);
  transition: opacity 0.3s ease, transform 0.2s ease;
  line-height: 45px;          /* perfectly center the arrow */
}

#backToTop:hover {
  background: #47265a;        
  transform: translateY(-3px);
}


/* Responsive Adjustments */
@media screen and (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;
}
  .voting-gallery {
      gap:10px;
      padding:10px;
  }
  .voting-gallery-item {
    flex: 1 1 calc(100% - 40px); /* 2 per row on mobile */
  }
  
  .mobile-overlay-text {
    display: block;
  }
  .banner {
    font-size: 16px;     /* Smaller font for small screens */
    padding: 0 16px;     /* Less padding */
    height: 60px;        /* Allow height to adjust based on text */
    line-height: 1.4;
  }
  .info-list li {
    text-align: justify;
  }
  .info-list, 
  ul, li {
      margin-left:10px;
      margin-right:10px;
      padding:0;
  }
  .tables-container {
        flex-direction: column;
    }

}
