﻿body {
    font-family: 'Montserrat', sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --scroll-offset: 90;
}

input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
    display: none;
}

.urna-section {
    width: 100%;
   /* min-height: 100vh;*/
    display: flex;
    justify-content: center;
    align-items: center;
}

.urna-container {
    width: 95%;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    color: #333;
    overflow: hidden;
    /*min-height: 80vh;*/
}

.hd-hero-title {
    text-align: center;
    padding: 0.5rem 1rem 0.5rem;
}

.hd-hero-heading {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.7rem;
    font-weight: 601;
    color: #2B2D45;
    margin: 0 0 1.1rem;
    line-height: 1.35;
    letter-spacing: 0.01em;
}

.hd-hero-highlight {
    font-weight: 900;
    color: #2B2D45;
}

.hd-hero-sub {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    margin-top: 0.35rem;
}

.hd-hero-line {
    display: block;
    width: 20%;
    height: 3.5px;
    margin: 0 auto;
    background: #157347;
    border-radius: 2px;
    transition: width 0.3s ease;
}

@media (max-width: 991.98px) {
    .hd-hero-heading {
        font-size: 1.4rem;
    }

    .hd-hero-sub {
        font-size: 0.9rem;
    }
}

@media (max-width: 767.98px) {
    .hd-hero-title {
        padding: 1.6rem 0.75rem 1.2rem;
    }

    .hd-hero-heading {
        font-size: 1.15rem;
        line-height: 1.45;
    }

    .hd-hero-sub {
        font-size: 0.78rem;
        letter-spacing: 0.05em;
    }

    .hd-hero-line {
        width: 25%;
        height: 3px;
    }
}

.search-hit {
    background: #ff9000;
    color: #000;
    padding: 0 2px;
    border-radius: 2px;
    box-shadow: none;
}

    .search-hit.active-hit {
        outline: 2px solid rgba(0,0,0,0.08);
        background: #ffb84d;
        padding: 0 3px;
    }

.hd-search-wrapper {
    position: relative;
    max-width: 600px;
    margin: 0 auto 1.8rem;
}

.hd-search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #198754;
    font-size: 1.1rem;
    z-index: 2;
    pointer-events: none;
    transition: color 0.25s ease;
}

.hd-search-input:focus ~ .hd-search-icon {
    color: #157347;
}

.hd-search-input {
    width: 100%;
    padding: 14px 82px 14px 46px;
    border-radius: 14px;
    border: 1.5px solid rgba(25, 135, 84, 0.20);
    background: #f7fcfa;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    color: #2B2D45;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    outline: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.hd-search-input:focus {
    border-color: #198754;
    box-shadow: 0 0 0 4px rgba(25, 135, 84, 0.10), 0 4px 16px rgba(0, 0, 0, 0.06);
    background: #ffffff;
}

.hd-search-input::placeholder {
    color: #9ba5a0;
    font-weight: 400;
}

.hd-search-clear {
    position: absolute;
    right: 44px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: color 0.2s ease, background 0.2s ease;
    font-size: 0.85rem;
}

.hd-search-clear:hover {
    color: #198754;
    background: rgba(25, 135, 84, 0.08);
}

.hd-search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background: #198754;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
    font-size: 1rem;
    padding: 0;
}

.hd-search-btn:hover {
    background: #157347;
    box-shadow: 0 4px 14px rgba(25, 135, 84, 0.35);
    transform: translateY(-50%) scale(1.06);
}

.hd-search-btn:active {
    background: #146c43;
    transform: translateY(-50%) scale(0.96);
    box-shadow: 0 2px 6px rgba(25, 135, 84, 0.25);
}

.hd-search-input:focus ~ .hd-search-btn {
    background: #157347;
    box-shadow: 0 0 0 3px rgba(25, 135, 84, 0.18);
}

.hd-nav-panel {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1100;
    display: none;
    align-items: center;
    gap: 14px;
    padding: 10px 22px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border-radius: 32px;
    box-shadow: 0 8px 36px rgba(0, 0, 0, 0.14), 0 2px 4px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(25, 135, 84, 0.15);
    animation: hdNavSlideUp 0.3s ease;
}

@keyframes hdNavSlideUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.hd-nav-counter {
    font-size: 0.85rem;
    color: #2B2D45;
    font-weight: 500;
    white-space: nowrap;
    min-width: 80px;
    text-align: center;
    letter-spacing: 0.01em;
}

.hd-nav-arrows {
    display: flex;
    gap: 6px;
}

.hd-nav-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1.5px solid rgba(25, 135, 84, 0.22);
    background: #ffffff;
    color: #198754;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 1.05rem;
    padding: 0;
}

.hd-nav-btn:hover {
    background: #198754;
    color: #ffffff;
    border-color: #198754;
    box-shadow: 0 4px 14px rgba(25, 135, 84, 0.30);
    transform: translateY(-1px);
}

.hd-nav-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(25, 135, 84, 0.20);
}

.hd-nav-close-btn {
    color: #dc3545;
    border-color: rgba(220, 53, 69, 0.22);
}

.hd-nav-close-btn:hover {
    background: #dc3545;
    color: #ffffff;
    border-color: #dc3545;
    box-shadow: 0 4px 14px rgba(220, 53, 69, 0.30);
}

@media (max-width: 767.98px) {
    .hd-nav-panel {
        bottom: 16px;
        padding: 8px 16px;
        gap: 8px;
        border-radius: 28px;
    }

    .hd-nav-counter {
        font-size: 0.78rem;
        min-width: 65px;
    }

    .hd-nav-btn {
        width: 34px;
        height: 34px;
        font-size: 0.95rem;
    }

    .hd-search-wrapper {
        max-width: 100%;
    }

    .hd-search-input {
        font-size: 0.9rem;
        padding: 12px 76px 12px 42px;
    }
}

.scroll-top-fab {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 1200;
    display: none;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(220, 224, 227, 0.55);
    color: #007268;
    font-size: 25px;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(0,0,0,0.18);
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.35);
    backdrop-filter: blur(6px) saturate(120%);
    -webkit-backdrop-filter: blur(6px) saturate(120%);
    transition: transform .16s ease, box-shadow .16s ease, background .12s ease;
}

    .scroll-top-fab:hover,
    .scroll-top-fab:focus {
        transform: translateY(-3px);
        box-shadow: 0 10px 24px rgba(0,0,0,0.16);
        background: rgba(220,224,227,0.70);
        outline: none;
    }

@supports not ((-webkit-backdrop-filter: blur(6px)) or (backdrop-filter: blur(6px))) {
    .scroll-top-fab {
        background: rgba(210,214,217,0.78);
    }
}

@media (max-width: 767.98px) {
    .urna-container {
        width: 100%;
        border-radius: 0;
        min-height: auto;
    }
}
