html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
    overflow-x: hidden;
}

.section {
    height: 100vh;
    /* Full viewport height */
    width: 100vw;
    display: flex;
    flex-direction: column;
    /* Stack content vertically */
    justify-content: center;
    /* Vertically center */
    align-items: center;
    /* Horizontally center */
    scroll-snap-align: start;
    /* For snap scrolling */
    padding: 40px 20px;
    box-sizing: border-box;
    overflow: hidden;
    /* Prevent content from spilling into next section */
}


.section.snap-section {
    height: 100vh;
    scroll-snap-align: start;
    margin: 0;
    padding: 0;
}

.snap-section {
    height: 100vh;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    flex-shrink: 0;
}

/* In your style.css */
@font-face {
    font-family: "agenda";
    src: url('fonts/agenda-light.ttf') format('truetype');
    font-style: normal;
}

.section,
.section.snap-section,
.snap-section {
    scroll-snap-align: unset;
    scroll-snap-stop: unset;
}

/* Menu toggle container */
.menu-toggle {
    position: fixed;
    top: 20px;
    right: 25px;
    z-index: 1002;
    cursor: pointer;
}

/* Hamburger icon (3 bars) */
.hamburger-icon {
    position: fixed;
    top: 20px;
    right: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 22px;
    width: 30px;

}

.hamburger-icon .bar {
    height: 3px;
    width: 100%;
    background-color: #C1824F;
    border-radius: 2px;
}

/* Close icon (X) */
.close-icon {
    display: none;
    font-size: 2rem;
    color: #C1824F;
    line-height: 1;

    position: fixed;
    /* allow positioning */
    top: 20px;
    /* same as hamburger */
    right: 40px;
    /* move this value higher to shift left */
    z-index: 1002;
    /* above everything */
}

/* When menu is open */
.menu-toggle.active .hamburger-icon {
    display: none;
}

.menu-toggle.active .close-icon {
    display: block;
}

/* Sidebar menu */
.sidebar-menu {
    position: fixed;
    top: 0;
    right: -100%;
    /* hidden initially */
    width: 380px;
    height: 100vh;
    background-color: #00163C;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 3rem 2rem;
    gap: 1.5rem;
    transition: right 0.4s ease;
    z-index: 1001;
    box-shadow: -2px 0 15px rgba(0, 0, 0, 0.4);
}

.sidebar-menu .menu-logo {
    width: 160px;
    /* make it larger */
    height: auto;
    margin-top: 4rem;
    /* push a bit down from top */
    margin-bottom: 2rem;
}

.sidebar-menu.show {
    right: 0;
}

/* Sidebar header with logo */
.sidebar-header {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.sidebar-logo {
    width: 220px;
    height: auto;
    padding-bottom: 2rem;
    padding-top: 1rem;
}

/* Menu links */
.sidebar-menu a {
    color: #C1824F;
    font-family: 'agenda', sans-serif;
    font-size: clamp(0.8rem, 1.2vw, 1.8rem);
    text-decoration: none;
    transition: color 0.2s ease;
    text-align: right;
    width: 100%;
    padding-right: 9rem;
    letter-spacing: 0.3rem;
}

.sidebar-menu a:hover {
    color: #ffffff;
}

/* Remove hover effect from DOWNLOAD link */
.sidebar-menu a:first-of-type:last-child {
    pointer-events: none;
    /* optional: prevent hover/focus */
    color: #C1824F;
    /* keep original color */
}

.download-header {
    color: #C1824F;
    /* original color */
    pointer-events: none;
    /* optional: prevents clicks */
    text-decoration: none;
}

/* Grouped download links */
.download-links {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    /* smaller gap between brochure & booklet */
    width: 100%;
    padding-right: 9rem;
    margin-top: -0.7rem;
}

/* Keep hover effect for brochure & booklet only */
.download-links a:hover {
    color: #ffffff;
}

/* Optional: slightly smaller right padding for grouped links */
.download-links a {
    padding-right: 7rem;
}

/* Page overlay */
.page-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

.page-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

/* Home Section - Ballot Login */
.home-section {
    background-color: #00163C;
    /* dark blue background */
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.home-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 750px;
}

.home-logo {
    width: 180px;
    /* adjust size as needed */
    height: auto;
    margin-top: -220px;
}

.home-subtitle {
    color: #C1824F;
    /* white text */
    font-size: clamp(1rem, 1.8vw, 2rem);
    margin: 0;
    font-family: "agenda";
    letter-spacing: clamp(0.1rem, 0.1vw, 2rem);
    width: 60%;
    line-height: clamp(0.5rem, 4vw, 6rem);
    margin-top: clamp(50px, 9vw, 650px);
}

.home-subtitle-2 {
    font-size: clamp(1rem, 1.6vw, 2.5rem);
    font-family: "agenda";
    color: #C1824F;
    font-weight: 300;
    margin: 0;
    line-height: clamp(1.8rem, 2.5vw, 4rem);
    letter-spacing: clamp(0.1rem, 0.1vw, 2rem);
}

.home-input {
    width: 40%;
    padding: clamp(10px, 1.3vw, 150px);
    font-size: clamp(1rem, 1vw, 1.2rem);
    border: 1px solid #C1824F;
    /* gold border */
    text-align: center;
    outline: none;
    margin-top: clamp(15px, 5vw, 250px);
    font-family: "agenda";
    letter-spacing: clamp(0.1rem, 0.1vw, 2rem);
}

.home-button {
    width: 45%;
    padding: clamp(1px, 0.7vw, 18px);
    background-color: #C1824F;
    /* gold button */
    color: #ffffff;
    /* dark text */
    font-size: clamp(1rem, 1vw, 1.2rem);
    font-family: "agenda";
    border: none;
    cursor: pointer;
    margin-top: clamp(15px, 2vw, 25px);
    transition: background-color 0.2s ease;
    letter-spacing: clamp(0.1rem, 0.1vw, 2rem);
}

.home-button:hover {
    background-color: #A3683F;
    /* slightly darker gold on hover */
}

/* Home 2 - Result Page */
.home2-section {
    background-color: #00163C;
    /* dark blue */
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.home2-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(15px, 2vw, 530px);
    /* spacing between elements */
    width: 100%;
    max-width: 750px;
}

.home2-logo {
    width: 180px;
    height: auto;
    margin-top: -100px;
}

.home2-inputs {
    display: flex;
    justify-content: center;
    /* center horizontally */
    align-items: center;
    /* align vertically */
    gap: clamp(20px, 1vw, 40px);
    /* space between boxes */
    margin-top: clamp(20px, 4vw, 60px);
    flex-wrap: nowrap;
width: 80%;         /* make container wider */
  max-width: 1200px;
    /* ensure side-by-side on larger screens */
}

/* Input style */
.home2-input {
    flex: 1;
    padding: clamp(10px, 1.3vw, 150px);
    font-size: clamp(1rem, 1vw, 1.2rem);
    border: 1px solid #C1824F;
    /* gold border */
    text-align: center;
    outline: none;
    margin-top: clamp(-115px, -5vw, 50px);
    font-family: "agenda";
    letter-spacing: clamp(0.1rem, 0.1vw, 2rem);
}


.home2-subtitle {
    color: #C1824F;
    /* white text */
    font-size: clamp(1rem, 1.8vw, 2rem);
    margin: 0;
    font-family: "agenda";
    letter-spacing: clamp(0.1rem, 0.1vw, 2rem);
    width: 60%;
    line-height: clamp(0.5rem, 4vw, 6rem);
    margin-top: clamp(50px, 6vw, 650px);
}

.home2-subtitle-2 {
    font-family: "agenda";
    color: #ffffff;
    /* lighter gold */
    font-size: clamp(1rem, 2vw, 2.5rem);
    font-weight: 300;
    line-height: clamp(1.8rem, 2.5vw, 3rem);
    margin: 0;
}

.home2-info {
    color: #C1824F;
    /* white text */
    font-size: clamp(1rem, 1.6vw, 2rem);
    margin: 0;
    font-family: "agenda";
    letter-spacing: clamp(0.1rem, 0.1vw, 2rem);
    width: 100%;
    line-height: 2rem;
}