html, body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  font-family: Century Gothic, sans-serif;
  color: black;
  background-color: #FEFCFF;
}

body {
  min-height: 100vh;   /* ensures full height */
}

main {
  flex: 1;
  margin: 100px auto 0 auto; /* ✅ centers horizontally */
  max-width: 1200px;
  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;
}
/* 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);
}

.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;
}
/* Main Content */
.main-section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;   /* ✅ centers children */
  gap: 30px;
  margin: 0 auto;
  width: 100%;
  max-width: 1000px;         /* ✅ keeps content centered/narrower */
}

.main-text {
  max-width: 800px;
  margin: 0 auto;
  color: #301934;

  
}

.show-logo {
  max-width: 100%;
  width: 150px;
  height: 150px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.show-logo:hover {
  transform: scale(1.05); /* slightly enlarges image */
  opacity: 0.8;            /* dims the image a bit */
}

.main-text h2 {
  font-size: 28px;
  margin-bottom: 10px;
  color: #4B0082;
}

.main-text p {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  text-align: justify;
  color: #555;
}
.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 {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 6px;
  text-align: left; /* Default for desktop */
  font-family: 'Inter', sans-serif;
  color: #555;
}
ul {
font-size: 16px;
  line-height: 1.6;
  margin-bottom: 6px;
  text-align: left; /* Default for desktop */
  font-family: 'Inter', sans-serif;
  color: #555;
}
ol {
    font-size: 16px;
  line-height: 1.6;
  margin-bottom: 6px;
  text-align: left; /* Default for desktop */
  font-family: 'Inter', sans-serif;
  color: #555;
}
.intro {
  width: 100%;
  margin: 60px auto 20px auto; /* ✅ centered block */
  max-width: 1200px;           /* optional: keeps it narrower than main */
}

.intro h2 {
  text-align: center;
  font-size:28px;
  font-weight:bold;
}
.intro h3 {
  color: maroon;
  font-size:22px;
  font-weight:bold;
  text-align: justify;
  font-family: 'Inter', sans-serif;
}

.intro p {
  text-align: justify;
  color: #555;
  line-height: 1.6;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  max-width: 100%;   /* ✅ prevents very long line lengths */
  margin: 0 auto;     /* ✅ centers text block */
}

table {
      width: 95%; /* wider table */
      border-collapse: collapse;
      margin: 20px auto;
      font-size: 16px;
      box-shadow: 0 4px 8px rgba(0,0,0,0.1);
      background: white;
    }

    th, td {
      border: 1px solid #999; /* darker border for visible lines */
      padding: 12px;
      text-align: center;
    }

    th {
      background: linear-gradient(135deg, #6c63ff, #4e8cff); /* gradient header */
      color: white;
      font-size: 18px;
      text-transform: uppercase;
      letter-spacing: 1px;
    }

    tr:nth-child(even) {
      background-color: #f9f9f9; /* zebra striping */
    }

    tr:hover {
      background-color: #f1f7ff; /* hover effect */
    }
 @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;
}

.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;
  }
   table {
    width: 100%;        /* full width */
    font-size: 12px;    /* smaller text so table fits */
  }

  th, td {
    padding: 6px;       /* tighter padding */
    font-size: 12px;
    word-wrap: break-word; /* allow text to wrap instead of stretching */
    white-space: normal;   /* ✅ wrap long text instead of forcing scroll */
  }

  tr:nth-child(even) {
    background-color: #f9f9f9;
  }
  /* ✅ Align lists consistently with other text */
  ul, ol, .info-list {
    margin: 0 0 12px 0;   /* same left/right as paragraphs */
    padding-left: 20px;   /* indent for bullets/numbers */
    text-align: justify;  /* keep text justified like others */
  }

  ul li, ol li, .info-list li {
    margin-bottom: 6px;   /* spacing between items */
  }
}