/* --------------------- */
/* 1. BASE STYLES */
/* --------------------- */
body {
  font-family: Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6em;
  font-weight: bold;
  background-color: #fff;
  margin: 0;
  padding: 0;
}
body {
  background-color: white !important;
}

#allcontent {
  padding: 10px;
  max-width: 1200px;
  margin: auto;
}

marquee {
  color: #292929;
}

p {
  color: black;
}

p:first-letter {
  font-size: 2em;
}
p:first-line {
  font-style: italic;
}

/* --------------------- */
/* 2. TYPOGRAPHY & TEXT */
/* --------------------- */
h1 {
  font-size: 2.2em;
  color: #cc6600;
  text-align: center;
  font-family: "Emblema One", sans-serif;
  line-height: 1.6em;
}

h2 {
  font-size: 1.5em;
  font-weight: normal;
  color: #cc6600;
  text-decoration: underline;
}

li {
  color: #007e7e;
  list-style-type: square;
  margin-left: 10px;
}
/* --------------------- */
/* 3. HEADER & NAV */
/* --------------------- */
.headermenu {
  background: #000;
  color: #fff;
  width: 100%;
}
/* Base nav */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #000;
  padding: 10px;
  flex-wrap: wrap;
  position: relative;
}

nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 10px;
}

nav ul li a {
  padding: 8px 12px;
  color: white;
  text-decoration: none;
  border-radius: 5px;
}

nav ul li a:hover {
  background: #fff;
  color: #0d5353;
}
/* Ensure nav items have no bullets and stay inside nav bar */
nav ul {
  list-style: none !important;  /* remove dots */
  margin: 0;
  padding: 0;
  display: flex;
  gap: 15px;
  align-items: center;
}

nav ul li {
  list-style: none !important; /* double safety */
  margin: 0;
  padding: 0;
}

nav ul li a {
  padding: 8px 12px;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  display: inline-block; /* ensures links stay inside bar */
}

nav ul li a:hover {
  background: #fff;
  color: #0d5353;
}

/* Mobile toggle button */
.menu-toggle {
  display: none;
  font-size: 28px;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
}

/* User submenu */
.sub-menu-wrap {
  position: absolute;
  top: 100%;
  right: 10px;
  width: 300px;
  max-height: 0;
  overflow: hidden;
  background: #ffffff;
  transition: max-height 0.5s;
  z-index: 10;
}

.sub-menu-wrap.open-menu {
  max-height: 500px;
}

.sub-menu {
  padding: 15px;
}

.sub-menu-link {
  display: block;
  margin: 10px 0;
  color: #333;
  text-decoration: none;
}

.user-info {
  display: flex;
  align-items: center;
}

.user-info img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin-right: 10px;
}

.user-pic {
  width: 40px;
  border-radius: 50%;
  cursor: pointer;
  margin-left: 20px;
  border: 2px solid blue;
}

/* Fix nav list (remove dots & align) */
nav ul {
  list-style: none;      /* removes bullets */
  margin: 0;
  padding: 0;
  display: flex;
  gap: 15px;
  align-items: center;
}

/* Make nav fixed at the top */
.headermenu {
  background: #000;
  color: #fff;
  width: 100%;
  position: fixed;   /* keep on top */
  top: 0;
  left: 0;
  z-index: 999;      /* always above */
}

/* Push body content below nav */
body {
  padding-top: 70px;   /* adjust to your nav height */
}

/* Mobile menu styling */
#mainMenu {
  display: flex;
  gap: 15px;
}

@media (max-width: 768px) {
  #mainMenu {
    display: none;            /* hide menu by default */
    flex-direction: column;   /* stack items */
    width: 100%;
    background: #000;
    padding: 10px 0;
  }

  #mainMenu.open {
    display: flex; /* show when toggled */
  }

  nav ul li {
    text-align: center;
    padding: 10px 0;
  }
}


/* Hamburger button */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 22px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 20;
}

.menu-toggle span {
  display: block;
  height: 4px;
  background: white;
  border-radius: 2px;
  transition: all 0.4s ease;
}

/* When active: transform into X */
.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translateY(9px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-9px);
}

/* Show toggle only on mobile */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }
}
/* --------------------- */
/* 4. LAYOUT STRUCTURE */
/* --------------------- */
/* Flex container */
.content-wrapper {
  display: flex;
  flex-direction: row; /* Main content left, aside right */
  gap: 20px;
  padding: 20px;
  max-width: 1200px;
  margin: auto;
  box-sizing: border-box;
}

.main-content {
  flex: 1;
  min-width: 0;
  box-sizing: border-box;
}


aside {
  position: sticky;
  top: 100px;
  width: 300px;
  max-height: calc(100vh - 150px);
  overflow-y: auto;
  background: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  padding: 15px;
  border-radius: 10px;
  flex-shrink: 0;
  z-index: 10; /* Ensure it doesn't overlap other content */
}


aside h4 {
  color: #007bff;
  text-align: center;
}

aside ul {
  list-style-type: square;
  padding-left: 20px;
}

aside li {
  color: #007e7e;
  margin-bottom: 10px;
}

aside .close-btn {
  display: none;
}


aside.open {
  max-height: 60vh;
  overflow-y: auto;
  background: #fff;
  z-index: 1050;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

body.no-scroll {
  overflow: hidden;
  touch-action: none;
}

/* --------------------- */
/* 5. SLIDESHOW */
/* --------------------- */
.slideshow-container {
  width: 100%;
  background-color: black;
  padding: 30px;
  border: 1px dashed #cc6600;
  text-align: center;
  box-sizing: border-box;
}

.slideshow-container img {
  width: 100%;
  height: auto;
  max-width: 100%;
}

.text {
  color: #cc6600;
  font-size: 1.2em;
  font-weight: bold;
}

/* --------------------- */
/* 6. TESTIMONIAL SECTION */
/* --------------------- */
.contain {
  width: 100%;
  background: #000;
  padding: 30px 0;
  display: flex;
  justify-content: center;
  box-sizing: border-box;
}

.testimonial {
  max-width: 800px;
  width: 90%;
}

.testimonial-text {
  background: white;
  color: black;
  height: 350px;
  position: relative;
  box-shadow: 0 15px 20px rgba(0, 0, 0, 0.2);
}

.user-text {
  width: 80%;
  text-align: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: none;
}

.user-text.active-text {
  display: block;
  animation: moveup 0.5s linear forwards;
}

.user-text span {
  display: block;
  font-size: 13px;
  margin-top: 20px;
  font-weight: 500;
  text-transform: uppercase;
}

.user-pic {
  width: 65px;
  padding: 5px;
  border-radius: 50%;
  margin: 10px;
  cursor: pointer;
}

.testimonial-pic{
  margin-top: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.user-pix{
  width: 65px;
  padding: 5px;
  border-radius: 50%;
  margin: 10px;
  cursor: pointer;
}
.user-text.active-text{
  display: block;
  animation: moveup 0.5s linear forwards; 
}
.user-pix.active-pix{
  width: 100px;
  border: 3px solid #a7cece;
}
@keyframes moveup {
  0% { margin-top: 25px; }
  100% { margin-top: 0; }
}

/* --------------------- */
/* 7. VOTE NOW BUTTON */
/* --------------------- */
.votenow {
  background-color: #cc6600;
  font-size: 18px;
  font-weight: bold;
  color: white;
  text-align: center;
  padding: 10px;
  border-radius: 10px;
  margin: 20px auto;
  width: fit-content;
}

/* --------------------- */
/* 8. FOOTER */
/* --------------------- */
footer {
  background-color: black;
  color: #cc6600;
  text-align: center;
  padding: 15px;
  margin-top: 40px;
  font-size: 90%;
}

/* --------------------- */
/* 9. SECTION RATIONALE */
/* --------------------- */
#rationale {
  line-height: 1.9em;
  font-style: italic;
  font-family: Georgia, serif;
  color: #444;
  border: 1px dashed white;
  background-color: #a7cece;
  padding: 25px;
  margin: 30px auto;
  max-width: 100%;
}

/* --------------------- */
/* 10. RESPONSIVE DESIGN */
/* --------------------- */
@media (max-width: 768px) {
  .content-wrapper {
    flex-direction: column;
  }

  .main-content,
  .slideshow-container,
  .contain {
    width: 100%;
  }

  .mobile-toggle-btn {
    display: block;
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1000;
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 15px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
  }

  #hangoutMenu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: white;
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.3);
    padding: 20px;
    overflow-y: auto;
    z-index: 999;
  }

  #hangoutMenu.open {
    display: block;
  }

  #closeAsideBtn {
    display: block;
    background: none;
    border: none;
    font-size: 28px;
    position: absolute;
    top: 15px;
    right: 15px;
    cursor: pointer;
  }

  body.no-scroll {
    overflow: hidden;
    touch-action: none;
  }
  .user-pic {
    width: 40px !important;
    height: 30px !important;
    display: inline-block !important;
    position: relative;
    z-index: 9999;
  }
  
  
}



/* MOBILE VIEW FIX FOR SMALL SCREENS */
@media (max-width: 480px) {
  body {
    font-size: 14px;
    padding: 10px;
    margin: 0;
  }

  #rationale,
  .slideshow-container {
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
    display: block;
    margin: 0 auto;
  }

  #rationale {
    font-size: 13px;
    text-align: justify;
    background-color: #a7cece; /* or keep original */
  }

  .slideshow-container img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 10px;
  }

  .slideshow-container {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
 
    aside {
      position: static;
      width: 100%;
      max-height: none;
      overflow-y: visible;
      margin-top: 20px;
      box-shadow: none;
    }
  }
   


  @media only screen and (orientation: portrait) {
    .slideshow-container,
    #rationale,
    aside {
      width: 100%;
      padding: 10px;
      box-sizing: border-box;
    }
  
    aside {
      position: static;
      max-height: none;
      overflow-y: visible;
      margin-top: 20px;
    }
  }
  

  @media (max-width: 768px) {
    .user-pic {
      display: block !important;
      width: 50px !important;
      height: auto !important;
    }
  }
  .ebook-container {
    text-align: center;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    max-width: 300px; /* Reduced from 500px */
    margin: 0 auto;
    }
    
    .ebook-container img {
    width: 100%;
    height: auto;
    max-width: 150px; /* Reduced image size */
    border-radius: 8px;
    transition: transform 0.3s;
    }
    
    .ebook-container img:hover {
    transform: scale(1.02);
    cursor: pointer;
    }
    
    .ebook-caption {
    font-size: 14px; /* Slightly smaller caption */
    margin-top: 10px;
    color: #333;
    }

    @media (max-width: 480px) {
      .ebook-container {
        max-width: 150px !important;
        width: 60% !important;
        padding: 10px;
        margin: 10px auto;
        box-sizing: border-box;
      }
    
      .ebook-container img {
        max-width: 150px !important;
        width: 60% !important;
        height: auto !important;
      }
    
      .ebook-caption {
        font-size: 13px;
        padding: 0 10px;
      }
      .ebook-container img:hover {
        transform: scale(1.02);
        cursor: pointer;
      }
      .download-btn {
        display: inline-block;
        margin-top: 15px;
        padding: 10px 20px;
        background-color: #cc6600;
        color: white;
        text-decoration: none;
        border-radius: 6px;
        font-weight: bold;
        transition: background-color 0.3s ease;
      }
      
      .download-btn:hover {
        background-color: #a75000;
      }
      
    }
    
  .hero {
    margin-top: 60px;              /* match navbar height */
    min-height: calc(100vh - 60px); /* full screen but flexible */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    animation: bgChange 15s infinite alternate ease-in-out;
  }
  
  .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
    z-index: 1;
  }
  
  .hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    padding: 0 20px;
    max-width: 900px;   /* prevents overly wide text */
  }
  
  .hero-content h1 {
    font-size: clamp(2rem, 5vw, 3.5rem); /* responsive size */
    margin-bottom: 15px;
    line-height: 1.2;
    word-break: break-word; /* prevents overflow */
    color: #fff;
  }
  
  .hero-content p {
    font-size: clamp(1rem, 2vw, 1.5rem);
    line-height: 1.4;
    color: #fff;
  }
  
  @media (max-width: 991px) {
    .hero {
      min-height: 50vh;  /* tablet */
    }
  }
  
  @media (max-width: 768px) {
    .hero {
      min-height: 60vh;   /* phones */
      background-attachment: scroll;
      padding: 40px 15px; /* breathing room */
    }
  }
   

/* Background animation */
@keyframes bgChange {
    0% { background-image: url('pic.JPG'); }
    50% { background-image: url('Initiativelogo.png'); }
    100% { background-image: url('pic.JPG'); }
}

/* Text fade-in / slide effect */
@keyframes textMove {
    from { opacity: 0; transform: translateY(-60%); }
    to { opacity: 1; transform: translateY(-50%); }
}

section {
  padding: 40px 20px;
  background: white;
  margin: 20px auto;
  max-width: 1100px;
  border-radius: 8px;
  animation: fadeInUp 1s ease-in-out;
}
/* 2. HERO TEXT - keep it centered and not cut off */
@media (max-width: 768px) {
  .hero {
    height: auto; /* allow height to grow with text */
    padding: 50px 15px;
  }

  .hero-content h1 {
    font-size: clamp(1.5rem, 6vw, 2.5rem);
    color: #fff;
  }

  .hero-content p {
    font-size: clamp(0.9rem, 4vw, 1.2rem);
    color: #fff;
  }
}
