@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@300;400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&display=swap');

:root {
    --pink: #ED005F;
    --pink-dark: #c90051;
    --white: #ffffff;
    --dark: #0a0a0a;
    --gray-light: rgba(255, 255, 255, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'DM Sans', sans-serif;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Lexend', sans-serif;
}

/* ============================================
   NAVBAR
   ============================================ */

.navbar {
    background: #ffffff !important;
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.08);
    padding: 12px 0;
    z-index: 1000;
}

.navbar-brand {
    font-family: 'Lexend', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: #111 !important;
    letter-spacing: -0.3px;
}

.navbar .nav-link {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.92rem;
    font-weight: 500;
    color: #333 !important;
    padding: 6px 16px !important;
    transition: color 0.2s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: var(--pink) !important;
}

.navbar .search-input {
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    padding: 6px 16px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    outline: none;
    width: 160px;
    transition: border-color 0.2s;
}

.navbar .search-input:focus {
    border-color: var(--pink);
}

.btn-register {
    background: var(--pink) !important;
    border: none !important;
    border-radius: 6px !important;
    font-family: 'DM Sans', sans-serif !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #fff !important;
    padding: 10px 30px !important;
    transition: background 0.2s ease, transform 0.15s ease;
}

.btn-register:hover {
    background: var(--pink-dark) !important;
    transform: translateY(-1px);
}

/* ============================================
   HERO SWIPER SECTION
   ============================================ */

.hero-swiper-section {
    width: 100%;
    position: relative;
}

.hero-swiper {
    width: 100%;
    height: 600px;
}

.swiper-slide {
    position: relative;
    overflow: hidden;
}

.slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: brightness(0.55);
    transition: transform 6s ease;
}

/* .swiper-slide-active .slide-bg {
    transform: scale(1.05);
} */

.slide-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 80px;
    z-index: 2;
}

.slide-badge {
    display: inline-block;
    background: var(--pink);
    color: #fff;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 4px;
    margin-bottom: 18px;
    width: fit-content;
}

.slide-heading {
    font-family: 'Lexend', sans-serif;
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.15;
    margin-bottom: 18px;
    max-width: 600px;
}

.slide-heading .highlight {
    color: var(--pink);
    font-style: italic;
}

.slide-desc {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.97rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.65;
    max-width: 520px;
    margin-bottom: 32px;
}

.slide-actions {
    display: flex;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
}

.btn-get-started {
    background: var(--pink);
    color: #fff;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 11px 26px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-get-started:hover {
    background: var(--pink-dark);
    color: #fff;
    transform: translateY(-2px);
}

.btn-watch-video {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 10px 22px;
    border-radius: 6px;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: background 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(4px);
}

.btn-watch-video:hover {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
}

.btn-watch-video .play-icon {
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 9px solid #fff;
    display: inline-block;
}

/* Swiper Navigation Arrows */
.hero-swiper-section .swiper-button-prev,
.hero-swiper-section .swiper-button-next {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(6px);
    color: #fff !important;
    transition: background 0.2s;
}

.hero-swiper-section .swiper-button-prev:hover,
.hero-swiper-section .swiper-button-next:hover {
    background: rgba(255, 255, 255, 0.3);
}

.hero-swiper-section .swiper-button-prev::after,
.hero-swiper-section .swiper-button-next::after {
    font-size: 14px !important;
    font-weight: 700;
    color: #fff;
}

/* Swiper Pagination Dots */
.hero-swiper-section .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
    transition: background 0.3s, transform 0.3s;
}

.hero-swiper-section .swiper-pagination-bullet-active {
    background: #ffffff;
    transform: scale(1.3);
}

/* RESPONSIVE HERO & NAVBAR */
@media (max-width: 991.98px) {
    .navbar .search-input {
        width: 120px;
    }

    .hero-swiper {
        height: 500px;
    }

    .slide-content {
        padding: 0 40px;
    }
}

@media (max-width: 767.98px) {
    .navbar .search-input {
        display: none;
    }

    .hero-swiper {
        height: 450px;
    }

    .slide-content {
        padding: 0 24px;
        text-align: center;
        align-items: center;
    }

    .slide-actions {
        justify-content: center;
        width: 100%;
    }

    .slide-desc {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-swiper-section .swiper-button-prev,
    .hero-swiper-section .swiper-button-next {
        display: none;
    }
}

@media (max-width: 575.98px) {
    .hero-swiper {
        height: 420px;
    }

    .slide-badge {
        font-size: 0.65rem;
        padding: 5px 12px;
    }

    .slide-heading {
        font-size: 1.8rem;
        margin-bottom: 12px;
    }

    .slide-desc {
        font-size: 0.9rem;
        margin-bottom: 24px;
    }

    .btn-get-started,
    .btn-watch-video {
        padding: 8px 18px;
        font-size: 0.85rem;
    }
}

/* ============================================
   SECTION 2 — OUR SERVICES
   ============================================ */

.services-section {
    background: #ffffff;
    padding: 72px 0 80px;
}

.services-section .section-tag {
    font-family: 'Lexend', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--pink);
    text-align: center;
    margin-bottom: 10px;
}

.services-section .section-subtitle {
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    color: #666;
    text-align: center;
    margin-bottom: 52px;
}

/* Service Cards */
.service-card {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 16px;
    padding: 40px 30px;
    height: 100%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    text-align: center;
}

.service-card:hover {
    box-shadow: 0 12px 40px rgba(237, 0, 95, 0.12);
    border-color: rgba(237, 0, 95, 0.15);
    transform: translateY(-8px);
}

.service-card .icon-wrap {
    width: 60px;
    height: 60px;
    background: transparent;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 28px;
    transition: all 0.3s ease;
}

.service-card .icon-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.service-card .card-title {
    font-family: 'Lexend', sans-serif;
    font-size: 1.08rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 12px;
    line-height: 1.3;
}

.service-card .card-desc {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
    color: #666;
    line-height: 1.7;
    margin: 0;
}

/* ============================================
   SECTION 3 — HOW IT WORKS
   ============================================ */

.how-it-works-section {
    background: #f8fbff;
    /* Light background as seen in screenshot */
    padding: 0px 0 100px;
    position: relative;
    overflow: hidden;
}

/* Section badge */
.hiw-badge {
    display: inline-block;
    background: rgba(237, 0, 95, 0.1);
    color: var(--pink);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 6px 20px;
    border-radius: 30px;
    margin-bottom: 24px;
}

.hiw-heading {
    font-family: 'Lexend', sans-serif;
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 16px;
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.hiw-subtitle {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.98rem;
    font-weight: 400;
    color: #666;
    margin-bottom: 64px;
    max-width: 520px;
}

/* Phone image column */
.hiw-image-col {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hiw-img-container {
    background: #000;
    border-radius: 20px;
    padding: 0;
    /* overflow: hidden; */
    /* REMOVED TO PREVENT CLIPPING OF THE CARD */
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.15);
    display: inline-block;
    max-width: 100%;
    position: relative;
    /* For the floating card */
}

/* Floating Secure Card */
.hiw-secure-card {
    position: absolute;
    bottom: 30px;
    /* MOVED UP - was 40px */
    right: -55px;
    /* MOVED RIGHT - was -30px */
    background: #1a1a1c;
    border-radius: 12px;
    padding: 24px;
    width: 260px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 100;
    text-align: left;
    backdrop-filter: blur(10px);
}

.hiw-secure-card .secure-icon {
    width: 32px;
    height: 32px;
    background: rgba(237, 0, 95, 0.15);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.hiw-secure-card .secure-icon svg {
    width: 18px;
    height: 18px;
    fill: var(--pink);
}

.hiw-secure-card .secure-title {
    font-family: 'Lexend', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
}

.hiw-secure-card .secure-desc {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.8rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.5;
    margin: 0;
}

.hiw-img-container img {
    max-width: 100%;
    height: auto;
    max-height: 540px;
    display: block;
    border-radius: 20px;
    /* ADDED TO MATCH CONTAINER */
}

/* Steps */
.hiw-steps {
    display: flex;
    flex-direction: column;
    gap: 48px;
    justify-content: center;
    padding-left: 20px;
}

.hiw-step {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.step-number {
    font-family: 'Lexend', sans-serif;
    font-size: 3.2rem;
    font-weight: 800;
    color: var(--pink);
    line-height: 0.8;
    min-width: 70px;
    letter-spacing: -2px;
}

.step-body {
    padding-top: 2px;
}

.step-title {
    font-family: 'Lexend', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
    line-height: 1.2;
}

.step-desc {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.92rem;
    font-weight: 400;
    color: #777;
    line-height: 1.6;
    margin: 0;
}

/* Separator line between steps */
.hiw-step+.hiw-step {
    position: relative;
}

/* RESPONSIVE SERVICES & HOW IT WORKS */
@media (max-width: 991.98px) {
    .hiw-image-col {
        margin-bottom: 60px;
    }

    .hiw-steps {
        padding-left: 0;
    }

    .hiw-secure-card {
        right: -20px;
        bottom: 20px;
        width: 220px;
        padding: 16px;
    }
}

@media (max-width: 767.98px) {
    .services-section {
        padding: 60px 0;
    }

    .hiw-heading {
        font-size: 2.2rem;
    }

    .step-number {
        font-size: 2.5rem;
        min-width: 60px;
    }

    .hiw-step {
        gap: 20px;
    }

    .hiw-secure-card {
        position: static;
        width: 100%;
        margin-top: 20px;
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    }
}

@media (max-width: 575.98px) {
    .section-tag {
        font-size: 1.6rem;
    }

    .hiw-img-container img {
        max-height: 400px;
    }
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
    background: #000000;
    padding: 15px 0;
    text-align: center;
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
}

.footer-socials a {
    color: #ffffff;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-socials a:hover {
    color: var(--pink);
    transform: translateY(-5px);
}

.footer-copyright {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
    letter-spacing: 0.3px;
}

/* ============================================
   PAGE BANNER (Elections, Results, etc.)
   ============================================ */

.page-banner {
    width: 100%;
    padding: 100px 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    text-align: center;
    color: #ffffff;
}

.page-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    /* Dark overlay */
    z-index: 1;
}

.page-banner .container {
    position: relative;
    z-index: 2;
}

.page-banner h1 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 500;
    margin-bottom: 12px;
}

.page-banner p {
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ============================================
   ACTIVE ELECTIONS LIST
   ============================================ */

.elections-section {
    padding: 80px 0 100px;
    background: #ffffff;
}

.election-header-row {
    background: #f1f4f9;
    border-radius: 10px;
    padding: 14px 24px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    font-family: 'Lexend', sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    color: #333;
}

.election-row {
    background: #ffffff;
    border-radius: 10px;
    padding: 24px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.election-row:hover {
    background: #f8fbff;
    border-color: rgba(237, 0, 95, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

/* Layout Columns */
.col-info {
    width: 45%;
}

.col-type {
    width: 15%;
    text-align: center;
}

.col-status {
    width: 15%;
    text-align: center;
}

.col-action {
    width: 25%;
    text-align: right;
}

.election-title {
    font-family: 'Lexend', sans-serif;
    font-size: 20px;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.election-meta {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    color: #888;
    margin: 0;
}

.election-date {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--pink);
    font-weight: 500;
    margin-top: 4px;
    font-size: 0.78rem;
}

.type-pill {
    display: inline-block;
    background: #f1f4f9;
    padding: 4px 14px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #555;
}

.status-indicator {
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.dot.active {
    background: #28a745;
    box-shadow: 0 0 10px rgba(40, 167, 69, 0.4);
}

.status-active {
    color: #28a745;
}

.dot.soon {
    background: #fd7e14;
}

.status-soon {
    color: #fd7e14;
}

.election-date.date-soon {
    color: #fd7e14;
}

.btn-start-voting {
    background: var(--pink);
    color: #fff;
    border: none;
    padding: 10px 22px;
    border-radius: 6px;
    font-size: 0.88rem;
    font-weight: 600;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-start-voting:hover {
    background: var(--pink-dark);
    color: #fff;
    transform: translateX(5px);
}

.btn-not-start {
    background: #f8f9fa;
    color: #bbb;
    border: 1px solid #eee;
    padding: 10px 22px;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: not-allowed;
    text-decoration: none;
    display: inline-block;
}

/* RESPONSIVE ELECTIONS LIST */
@media (max-width: 991.98px) {
    .election-header-row {
        display: none;
    }

    .election-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        padding: 24px;
        position: relative;
    }

    .col-info,
    .col-type,
    .col-status,
    .col-action {
        width: 100%;
        text-align: left;
    }

    .col-type,
    .col-status {
        width: auto;
        display: inline-block;
        margin-right: 15px;
    }

    .col-action {
        margin-top: 10px;
        border-top: 1px solid #eee;
        padding-top: 20px;
        text-align: center;
    }

    .btn-start-voting,
    .btn-not-start {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 575.98px) {
    .elections-section {
        padding: 50px 0;
    }

    .election-row {
        padding: 20px;
    }

    .election-title {
        font-size: 18px;
    }

    .election-meta {
        font-size: 0.82rem;
    }
}

/* ============================================
   CODE ENTRY PAGE (election_code.php)
   ============================================ */

.code-entry-section {
    padding: 80px 0;
    background: #ffffff;
}

.encryption-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(237, 0, 95, 0.08);
    color: var(--pink);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    padding: 6px 16px;
    border-radius: 30px;
}

.pulse-icon {
    width: 6px;
    height: 6px;
    background: var(--pink);
    border-radius: 50%;
    position: relative;
}



@keyframes badge-pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(2.2);
        opacity: 0;
    }
}

.code-card-container {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.code-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 45px 40px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.06);
    border: 1px solid #f1f1f1;
}

.code-card .card-subtitle {
    font-size: 0.88rem;
    color: #888;
}

.code-inputs {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.otp-box {
    width: 100%;
    height: 60px;
    background: #f4f6f9;
    border: 1.5px solid;
    border-radius: 8px;
    text-align: center;
    font-family: 'Lexend', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark);
    transition: all 0.2s ease;
    border-color: rgba(237, 0, 95, 0.1);
}

.otp-box:focus {
    background: #ffffff;
    border-color: var(--pink);
    box-shadow: 0 0 10px rgba(237, 0, 95, 0.1);
    outline: none;
}

.help-link {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--pink);
    text-decoration: none;
    transition: opacity 0.2s;
}

.help-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.info-alert {
    background: #edf2f7;
    border-radius: 8px;
    padding: 16px 20px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.info-icon {
    font-size: 1rem;
    color: #4a5568;
    margin-top: 2px;
}

.info-text {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.78rem;
    color: #4a5568;
    line-height: 1.5;
    margin: 0;
}

/* Responsive adjustments for code page */
@media (max-width: 575.98px) {
    .code-card {
        padding: 30px 20px;
    }

    .otp-box {
        height: 50px;
        font-size: 1.2rem;
    }

    .info-alert {
        padding: 12px;
        gap: 8px;
    }

    .info-text {
        font-size: 0.72rem;
    }
}

/* ============================================
   ELECTION FILTER TABS
   ============================================ */

.filter-container {
    display: flex;
    justify-content: center;
}

.filter-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #f8fbff;
    padding: 10px 24px;
    border-radius: 50px;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.filter-label {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #886c75;
}

.filter-tabs {
    display: flex;
    gap: 10px;
}

.filter-tab {
    background: #ebf0f7;
    border: none;
    padding: 10px 22px;
    border-radius: 30px;
    font-family: 'Lexend', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: #555;
    transition: all 0.3s ease;
    cursor: pointer;
}

.filter-tab:hover {
    background: #e1e8f0;
    color: #111;
}

.filter-tab.active {
    background: var(--pink);
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(237, 0, 95, 0.25);
}

/* Tab filter responsive */
@media (max-width: 767.98px) {
    .filter-wrapper {
        flex-direction: column;
        border-radius: 20px;
        padding: 20px;
        width: 100%;
        gap: 15px;
    }

    .filter-tabs {
        flex-wrap: wrap;
        justify-content: center;
    }

    .filter-tab {
        font-size: 0.82rem;
        padding: 8px 16px;
    }
}

/* ============================================
   VOTING OPTIONS PAGE (voting_options.php)
   ============================================ */

.voting-section {
    padding: 72px 0 80px;
    background: #ffffff;
}

.voting-main-title {
    font-family: 'Lexend', sans-serif;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    color: #111;
    margin-bottom: 12px;
}

.voting-main-sub {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.88rem;
    color: #888;
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Position Group */
.ballot-position {
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 48px;
}

.ballot-position:last-of-type {
    border-bottom: none;
}

.position-label {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
}

.position-number {
    font-family: 'Lexend', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--pink);
    line-height: 1;
    letter-spacing: -1px;
}

.position-title {
    font-family: 'Lexend', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

/* Candidate Card */
.candidate-card {
    background: #fff;
    border: 1.5px solid #e8eaf0;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.28s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.candidate-card.selected {
    border-color: var(--pink);
    box-shadow: 0 0 0 3px rgba(237, 0, 95, 0.12);
}

.candidate-photo-wrap {
    width: 350px;
    height: 350px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 16px;
    background: #f0f0f0;
}

.candidate-photo {
    width: 100%;
    /* height: 100%; */
    /* object-fit: cover; */
    object-position: top;
    display: block;
}

.candidate-info {
    flex: 1;
    width: 100%;
}

.info-content-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.candidate-party {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #aaa;
    display: block;
    margin-bottom: 4px;
    text-align: left;
}

.candidate-name {
    font-family: 'Lexend', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
    text-align: left;
}

.verify-badge {
    width: 22px;
    height: 21px;
    transition: all 0.3s ease;
}

.verify-svg {
    width: 100%;
    height: 100%;
    filter: brightness(0) saturate(100%) invert(98%) sepia(4%) saturate(225%) hue-rotate(182deg) brightness(95%) contrast(92%);
    /* Default gray */
    transition: filter 0.3s ease;
}

.candidate-card.selected .verify-svg {
    filter: brightness(0) saturate(100%) invert(18%) sepia(85%) saturate(7403%) hue-rotate(334deg) brightness(93%) contrast(101%);
    /* Brand Pink #ED005F */
}

/* Select / Deselect Button */
.btn-select-candidate {
    width: 100%;
    padding: 10px 0;
    border-radius: 8px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border: 1.5px solid #dde2ec;
    background: #f4f6fb;
    color: #666;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: auto;
}

.btn-select-candidate:hover {
    border-color: var(--pink);
    color: var(--pink);
    background: #fff0f5;
}

.btn-select-candidate.selected {
    background: var(--pink);
    border-color: var(--pink);
    color: #ffffff;
}

/* Submit Vote Button */
.btn-submit-vote {
    display: inline-block;
    background: var(--pink);
    color: #fff;
    font-family: 'Lexend', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    padding: 14px 52px;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.15s ease;
    box-shadow: 0 10px 28px rgba(237, 0, 95, 0.25);
}

.btn-submit-vote:hover {
    background: var(--pink-dark);
    color: #fff;
    transform: translateY(-2px);
}

/* Voting Section Responsive */
@media (max-width: 767.98px) {
    .voting-section {
        padding: 50px 0;
    }

    .position-number {
        font-size: 1.8rem;
    }

    .position-title {
        font-size: 1rem;
    }

    .candidate-photo-wrap {
        height: 350px;
    }
}

/* ============================================
   ELECTION RESULTS ARCHIVE (election_results.php)
   ============================================ */

.results-archive-section {
    padding: 80px 0 100px;
    background: #ffffff;
}

.live-portal-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(237, 0, 95, 0.08);
    color: var(--pink);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 6px 18px;
    border-radius: 30px;
    letter-spacing: 1.2px;
}

.results-title {
    font-family: 'Lexend', sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 16px;
}

.results-subtitle {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.05rem;
    color: #666;
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Filter Tabs */
.results-filter-tabs {
    display: flex;
    gap: 8px;
    background: #f1f4f9;
    padding: 6px;
    border-radius: 12px;
}

.res-filter-tab {
    border: none;
    background: transparent;
    padding: 10px 24px;
    border-radius: 30px;
    font-family: 'Lexend', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: #666;
    transition: all 0.25s ease;
}

.res-filter-tab.active {
    background: var(--pink);
    color: #fff;
    box-shadow: 0 4px 12px rgba(237, 0, 95, 0.2);
}

/* Results List */
.result-row {
    display: flex;
    align-items: center;
    padding: 40px 24px;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.result-row.gray-bg {
    background: #f8f9fc;
}

.res-number {
    font-family: 'Lexend', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--pink);
    min-width: 100px;
    line-height: 1;
    letter-spacing: -2px;
}

.res-content {
    flex: 1;
    padding: 0 40px;
}

.res-badge {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    padding: 4px 12px;
    border-radius: 4px;
    margin-right: 12px;
}

.badge-completed {
    background: #e6f7ed;
    color: #28a745;
}

.badge-processing {
    background: rgb(4, 141, 4);
    color: #fff;
}

.badge-pending {
    background: #f1f1f1;
    color: #888;
}

.res-date {
    font-size: 0.72rem;
    font-weight: 700;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.res-item-title {
    font-size: 1.8rem;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.res-item-desc {
    font-size: 0.92rem;
    color: #777;
    max-width: 500px;
    line-height: 1.5;
    margin: 0;
}

.res-stats {
    text-align: right;
    padding-right: 48px;
}

.voting-rate-label {
    font-size: 0.62rem;
    font-weight: 700;
    color: #aaa;
    letter-spacing: 1.5px;
    margin-bottom: 4px;
}

.voting-rate-value {
    font-family: 'Lexend', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a1a1a;
}

.voting-rate-value .rate-change {
    font-size: 0.85rem;
    color: #28a745;
    margin-left: 6px;
}

/* Action Button */
.btn-view-report {
    display: inline-block;
    background: var(--pink);
    color: #fff;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(237, 0, 95, 0.2);
}

.btn-view-report:hover {
    background: var(--pink-dark);
    color: #fff;
    transform: translateY(-2px);
}

.btn-view-report.btn-disabled {
    background: #c0c4cc;
    cursor: not-allowed;
    box-shadow: none;
}

/* Footer & Pagination */
.showing-text {
    font-size: 0.85rem;
    color: #888;
}

.pagination .page-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    margin: 0 3px;
    border: none;
    color: #666;
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
}

.pagination .page-item.active .page-link {
    background: var(--pink);
    color: #fff;
}

.pagination .page-item.disabled .page-link {
    color: #ccc;
}

/* RESPONSIVE RESULTS */
@media (max-width: 991.98px) {
    .result-row {
        flex-direction: column;
        align-items: flex-start;
        padding: 40px 0;
        text-align: left;
    }

    .result-row.gray-bg {
        margin: 0;
        padding: 40px 20px;
        width: 100%;
        border-radius: 12px;
        margin-bottom: 20px;
    }

    .res-number {
        font-size: 2.8rem;
        min-width: auto;
        margin-bottom: 15px;
    }

    .res-content {
        padding: 0;
        width: 100%;
        margin-bottom: 25px;
    }

    .res-stats {
        text-align: left;
        padding-right: 0;
        margin-bottom: 25px;
    }

    .res-action {
        width: 100%;
    }

    .btn-view-report {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 575.98px) {
    .results-archive-section {
        padding: 50px 0 80px;
    }

    .results-filter-tabs {
        flex-wrap: wrap;
        width: 100%;
        justify-content: center;
        gap: 5px;
    }

    .res-filter-tab {
        width: calc(50% - 5px);
        padding: 10px 12px;
        font-size: 0.8rem;
        text-align: center;
    }

    .res-number {
        font-size: 2.2rem;
    }

    .res-item-title {
        font-size: 1.4rem;
    }

    .results-footer {
        flex-direction: column;
        gap: 25px;
        text-align: center;
    }

    .showing-text {
        order: 2;
    }

    nav[aria-label="Page navigation"] {
        order: 1;
    }
}

/* ============================================
   ELECTION FULL REPORT (election_full_report.php)
   ============================================ */

.full-report-section {
    padding: 80px 0 120px;
    background: #f8fbff;
}

.pulsing-dot {
    width: 6px;
    height: 6px;
    background: var(--pink);
    border-radius: 50%;
    position: relative;
    display: inline-block;
    margin-right: 8px;
    vertical-align: middle;
}


.report-search-container {
    max-width: 280px;
    margin: 0;
}

.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 20px;
    color: #888;
    font-size: 0.85rem;
}

.report-search-input {
    height: 48px;
    border-radius: 12px;
    border: none;
    background: #f1f4f9;
    /* Lighter background as seen in screenshot */
    padding-left: 48px;
    font-family: "DM Sans", sans-serif;
    font-size: 0.9rem;
    color: #333;
    transition: all 0.3s ease;
}

.report-search-input:focus {
    background: #fff;
    border-color: var(--pink);
    box-shadow: 0 10px 25px rgba(237, 0, 95, 0.08);
}

.report-search-input::placeholder {
    color: #aaa;
}

/* Position Card */
.position-result-card {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.015);
    border: 1px solid #f2f2f5;
}

.pos-title {
    font-family: "Lexend", sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: #111;
    margin: 0;
}

.total-votes {
    font-family: "DM Sans", sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    color: #aaa;
    letter-spacing: 1.2px;
    display: block;
    margin-top: 4px;
}

/* Candidate Row */
.candidate-result-row {
    display: flex;
    align-items: center;
    padding: 24px 0;
    border-bottom: 1px solid #f8f9fb;
}

.candidate-result-row:last-child {
    border-bottom: none;
}

.cand-img {
    width: 65px;
    height: 65px;
    border-radius: 12px;
    overflow: visible;
    /* Changed from hidden to show the badge */
    background: #f4f6fa;
    border: 1px solid #edf1f7;
    position: relative;
    /* For absolute positioning of badge */
}

.cand-img.winner {
    border: 2px solid var(--pink);
    box-shadow: 0 0 15px rgba(237, 0, 95, 0.15);
    padding: 3px;
    background: #ffffff;
}

.cand-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    /* Slight adjustment to fit within border */
}

.winner-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 22px;
    height: 22px;
    background: var(--pink);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 5;
}

.winner-badge img {
    width: 12px;
    height: 12px;
    filter: brightness(0) invert(1);
    object-fit: contain;
}

.cand-name {
    font-family: "Lexend", sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: #111;
    margin: 0;
}

.cand-party {
    font-family: "DM Sans", sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--pink);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Progress Bar */
.report-progress {
    height: 10px;
    border-radius: 10px;
    background: #eff2f7;
    overflow: visible;
}

.report-progress .progress-bar {
    border-radius: 10px;
    background: #cdd4df;
    position: relative;
    transition: width 1s ease-out;
}

.report-progress .progress-bar.winner {
    background: var(--pink);
    box-shadow: 0 4px 10px rgba(237, 0, 95, 0.2);
}

.cand-percentage {
    font-family: "Lexend", sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #111;
    line-height: 1.2;
}

.cand-votes-count {
    font-family: "DM Sans", sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    color: #aaa;
    letter-spacing: 0.8px;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .candidate-result-row {
        flex-wrap: wrap;
    }

    .cand-progress-wrapper {
        order: 3;
        width: 100%;
        margin: 20px 0 0 !important;
    }

    .cand-stats {
        margin-left: auto;
    }
}

/* ============================================
   CONTACT US SECTION V2 (PREMIUM)
   ============================================ */

.contact-section-v2 {
    position: relative;
    padding: 120px 0;
    background: radial-gradient(circle at top right, #f8fbff, #edf2f9);
    overflow: hidden;
}

/* Floating Shapes Background */
.glass-bg-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(237, 0, 95, 0.05), rgba(74, 144, 226, 0.05));
    filter: blur(40px);
}

.shape-1 {
    width: 400px;
    height: 400px;
    top: -100px;
    right: -100px;
    animation: float 15s infinite alternate;
}

.shape-2 {
    width: 300px;
    height: 300px;
    bottom: 10%;
    left: -50px;
    animation: float 12s infinite alternate-reverse;
}

.shape-3 {
    width: 200px;
    height: 200px;
    bottom: -50px;
    right: 20%;
    animation: float 18s infinite alternate;
}

@keyframes float {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    100% {
        transform: translate(40px, 60px) rotate(15deg);
    }
}

.contact-portal-card {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 40px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

/* Info Panel (Left) */
.contact-info-panel {
    background: linear-gradient(160deg, #111 60%, var(--pink) 150%);
    padding: 60px 45px;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.panel-title {
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #fff;
}

.panel-desc {
    font-family: "DM Sans", sans-serif;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 50px;
}

.info-items-v2 {
    display: flex;
    flex-direction: column;
    gap: 35px;
}

.info-item-v2 {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.item-icon {
    width: 45px;
    height: 45px;
    min-width: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--pink);
    transition: all 0.3s ease;
}

.info-item-v2:hover .item-icon {
    background: var(--pink);
    color: #fff;
    transform: scale(1.1);
}

.item-text label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--pink);
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.item-text p {
    font-size: 0.95rem;
    color: #fff;
    margin: 0;
    line-height: 1.5;
}

.item-text p a {
    color: #fff;
    text-decoration: none;
    transition: opacity 0.2s;
}

.item-text p a:hover {
    opacity: 0.8;
}

.footer-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
}

.footer-line {
    flex-grow: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.social-icons-v2 {
    display: flex;
    gap: 15px;
}

.social-icons-v2 a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.social-icons-v2 a:hover {
    background: var(--pink);
    transform: translateY(-3px);
}

/* Form Panel (Right) */
.contact-form-panel {
    padding: 70px 60px;
}

.form-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #111;
    margin: 0;
}

.form-line {
    width: 50px;
    height: 4px;
    background: var(--pink);
    border-radius: 2px;
    margin-top: 10px;
}

/* Floating Input Group */
.floating-group {
    position: relative;
    margin-bottom: 5px;
}

.floating-input {
    width: 100%;
    height: 60px;
    background: #fff;
    border: 2px solid #f0f3f8;
    border-radius: 16px;
    padding: 10px 20px 10px 55px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.floating-textarea {
    height: auto;
    padding-top: 25px;
}

.input-icon {
    position: absolute;
    left: 20px;
    top: 22px;
    color: #ccc;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.floating-label {
    position: absolute;
    left: 55px;
    top: 18px;
    color: #aaa;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.floating-input:focus~.floating-label,
.floating-input:not(:placeholder-shown)~.floating-label {
    top: -12px;
    left: 15px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--pink);
    background: #fff;
    padding: 2px 10px;
    border-radius: 4px;
}

.floating-input:focus {
    border-color: var(--pink);
    box-shadow: 0 10px 25px rgba(237, 0, 95, 0.06);
    outline: none;
}

.floating-input:focus~.input-icon {
    color: var(--pink);
}

/* Premium Button */
.premium-submit-btn {
    width: 100%;
    height: 64px;
    background: var(--pink);
    border: none;
    border-radius: 16px;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.premium-submit-btn:hover {
    background: var(--pink-dark);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 35px rgba(237, 0, 95, 0.20);
}

.premium-submit-btn:active {
    transform: scale(0.98);
}

@media (max-width: 1199.98px) {
    .contact-form-panel {
        padding: 50px 40px;
    }

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

@media (max-width: 991.98px) {
    .contact-portal-card {
        border-radius: 30px;
    }

    .contact-info-panel {
        padding: 50px 40px;
    }

    .contact-form-panel {
        padding: 50px 40px;
    }
}

@media (max-width: 767.98px) {
    .contact-section-v2 {
        padding: 80px 0;
    }

    .panel-desc {
        margin-bottom: 30px;
    }

    .floating-input {
        border-radius: 12px;
    }
}