/* =========================================================
   VOTE SMART KE
   CONSTITUENCY DIRECTORY
   ========================================================= */


/* =========================================================
   DIRECTORY PAGE
   ========================================================= */

.vsk-constituency-directory {
    background: #f6f8fb;
    color: #102a43;
}


/* =========================================================
   DIRECTORY HERO
   ========================================================= */

.vsk-directory-hero {
    position: relative;
    overflow: hidden;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
}


/* ---------------------------------------------------------
   SUBTLE HERO BACKGROUND
--------------------------------------------------------- */

.vsk-directory-hero::after {
    content: "";
    position: absolute;
    top: -180px;
    right: -140px;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: #f0fdfa;
    pointer-events: none;
}


/* ---------------------------------------------------------
   HERO INNER
--------------------------------------------------------- */

.vsk-directory-hero-inner {
    position: relative;
    z-index: 1;
    padding-top: 70px;
    padding-bottom: 55px;
}


/* ---------------------------------------------------------
   HERO CONTENT
--------------------------------------------------------- */

.vsk-directory-hero-content {
    max-width: 900px;
}


.vsk-directory-hero-content .vsk-section-label {
    margin-bottom: 12px;
    color: #0f766e;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    line-height: 1.4;
}


.vsk-directory-hero-content h1 {
    margin: 0 0 18px;
    color: #102a43;
    font-size: clamp(2.7rem, 5vw, 4.5rem);
    line-height: 1.04;
    font-weight: 800;
    letter-spacing: -0.035em;
}


.vsk-directory-hero-content p {
    max-width: 820px;
    margin: 0;
    color: #52606d;
    font-size: 1.05rem;
    line-height: 1.75;
}


/* ---------------------------------------------------------
   HERO BUTTON
--------------------------------------------------------- */

.vsk-directory-hero-actions {
    margin-top: 28px;
}


.vsk-directory-hero-button {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 46px;
    padding: 12px 19px;
    border-radius: 7px;
    background: #102a43;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1;
    transition:
        background 0.2s ease,
        transform 0.2s ease;
}


.vsk-directory-hero-button:hover {
    background: #0f766e;
    color: #ffffff;
    transform: translateY(-1px);
}


.vsk-directory-hero-button span {
    font-size: 1rem;
}


/* =========================================================
   HERO STAT CARDS
   ========================================================= */

.vsk-directory-hero-stats {
    display: flex;
    align-items: stretch;
    gap: 14px;
    margin-top: 42px;
}


/* ---------------------------------------------------------
   INDIVIDUAL STAT CARD
--------------------------------------------------------- */

.vsk-directory-stat-card {
    flex: 1 1 0;
    min-height: 118px;
    padding: 20px 22px;
    background: #ffffff;
    border: 1px solid #d9e2ec;
    border-radius: 10px;
    box-shadow: 0 3px 12px rgba(15, 23, 42, 0.04);
}


.vsk-directory-stat-number {
    display: block;
    margin-bottom: 5px;
    color: #102a43;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}


.vsk-directory-stat-label {
    display: block;
    color: #334e68;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.4;
}


.vsk-directory-stat-description {
    display: block;
    margin-top: 5px;
    color: #627d98;
    font-size: 0.78rem;
    line-height: 1.45;
}


/* ---------------------------------------------------------
   HIGHLIGHTED STAT
--------------------------------------------------------- */

.vsk-directory-stat-card-highlight {
    background: #f0fdfa;
    border-color: #b7ebe5;
}


.vsk-directory-stat-card-highlight
.vsk-directory-stat-label {
    color: #285e61;
}


.vsk-directory-stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 27px;
    height: 27px;
    margin-bottom: 9px;
    border-radius: 50%;
    background: #0f766e;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 800;
}

/* =========================================================
   SEARCH / FILTER
   ========================================================= */

.vsk-directory-controls {
    position: relative;
    z-index: 2;
    background: #f8fafc;
    padding-top: 30px;
    padding-bottom: 10px;
}


/* ---------------------------------------------------------
   FILTER CARD
--------------------------------------------------------- */

.vsk-directory-controls-card {
    padding: 28px 30px 30px;
    background: #ffffff;
    border: 1px solid #d9e2ec;
    border-radius: 12px;
    box-shadow: 0 5px 18px rgba(15, 23, 42, 0.05);
}


/* ---------------------------------------------------------
   FILTER HEADING
--------------------------------------------------------- */

.vsk-directory-controls-heading {
    margin-bottom: 24px;
}


.vsk-directory-controls-heading .vsk-section-label {
    margin-bottom: 7px;
    color: #0f766e;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.11em;
}


.vsk-directory-controls-heading h2 {
    margin: 0 0 6px;
    color: #102a43;
    font-size: 1.35rem;
    line-height: 1.25;
    font-weight: 800;
}


.vsk-directory-controls-heading p {
    margin: 0;
    color: #627d98;
    font-size: 0.86rem;
    line-height: 1.55;
}


/* ---------------------------------------------------------
   FORM
--------------------------------------------------------- */

.vsk-directory-filter-form {
    display: flex;
    align-items: flex-end;
    gap: 14px;
}


.vsk-directory-search {
    flex: 1 1 auto;
    min-width: 0;
}


.vsk-directory-county {
    flex: 0 0 245px;
}


.vsk-directory-filter-actions {
    flex: 0 0 auto;
}


/* ---------------------------------------------------------
   LABELS
--------------------------------------------------------- */

.vsk-directory-filter-form label {
    display: block;
    margin-bottom: 7px;
    color: #334e68;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1.3;
}


/* ---------------------------------------------------------
   INPUT WRAPPER
--------------------------------------------------------- */

.vsk-directory-input-wrap {
    position: relative;
}


.vsk-directory-search-icon {
    position: absolute;
    top: 50%;
    left: 14px;
    z-index: 2;
    color: #829ab1;
    font-size: 1.15rem;
    line-height: 1;
    transform: translateY(-50%);
    pointer-events: none;
}


/* ---------------------------------------------------------
   INPUT & SELECT
--------------------------------------------------------- */

.vsk-directory-filter-form input,
.vsk-directory-filter-form select {
    box-sizing: border-box;
    width: 100%;
    min-height: 46px;
    padding: 10px 13px;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    background: #ffffff;
    color: #102a43;
    font-size: 0.88rem;
    line-height: 1.4;
}


.vsk-directory-filter-form input {
    padding-left: 40px;
}


.vsk-directory-filter-form input::placeholder {
    color: #9fb3c8;
}


.vsk-directory-filter-form input:focus,
.vsk-directory-filter-form select:focus {
    outline: none;
    border-color: #0f766e;
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.10);
}


/* ---------------------------------------------------------
   SEARCH BUTTON
--------------------------------------------------------- */

.vsk-directory-filter-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 46px;
    padding: 11px 18px;
    border: 0;
    border-radius: 7px;
    background: #102a43;
    color: #ffffff;
    cursor: pointer;
    font-size: 0.84rem;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    transition:
        background 0.2s ease,
        transform 0.2s ease;
}


.vsk-directory-filter-button:hover {
    background: #0f766e;
    color: #ffffff;
    transform: translateY(-1px);
}


.vsk-directory-filter-button span {
    font-size: 1rem;
}


/* ---------------------------------------------------------
   CLEAR FILTERS
--------------------------------------------------------- */

.vsk-directory-clear-button {
    display: block;
    margin-top: 8px;
    color: #627d98;
    text-align: center;
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 700;
}


.vsk-directory-clear-button:hover {
    color: #0f766e;
}

/* =========================================================
   RESULTS AREA
   ========================================================= */

.vsk-directory-results {
    padding-top: 52px;
    padding-bottom: 70px;
}

/* =========================================================
   RESULTS HEADER
   ========================================================= */

.vsk-directory-results-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 28px;
}


/* ---------------------------------------------------------
   TITLE
--------------------------------------------------------- */

.vsk-directory-results-title .vsk-section-label {
    margin-bottom: 6px;
    color: #0f766e;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.11em;
}


.vsk-directory-results-title h2 {
    margin: 0;
    color: #102a43;
    font-size: 1.8rem;
    line-height: 1.2;
    font-weight: 800;
}


/* ---------------------------------------------------------
   RESULTS NOTE
--------------------------------------------------------- */

.vsk-directory-results-note {
    color: #829ab1;
    font-size: 0.78rem;
    font-weight: 600;
}


/* ---------------------------------------------------------
   ACTIVE FILTER AREA
--------------------------------------------------------- */

.vsk-directory-active-filter {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 7px;
}


/* FILTER STATUS */

.vsk-filter-status {
    color: #627d98;
    font-size: 0.76rem;
    font-weight: 600;
}


/* FILTER CHIP */

.vsk-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 7px 11px;
    border: 1px solid #b7ebe5;
    border-radius: 20px;
    background: #f0fdfa;
    color: #285e61;
    font-size: 0.74rem;
    line-height: 1.3;
}


.vsk-filter-chip strong {
    font-weight: 800;
}

/* =========================================================
   CONSTITUENCY GRID
   ========================================================= */

.vsk-constituency-directory-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}


/* =========================================================
   CONSTITUENCY CARD
   ========================================================= */

.vsk-constituency-directory-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #dfe6ee;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.045);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.vsk-constituency-directory-card:hover {
    transform: translateY(-4px);
    border-color: #cbd8e5;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.09);
}

/* =========================================================
   CARD IMAGE
   ========================================================= */

.vsk-directory-card-image {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 220px;

    overflow: hidden;

    background: #ffffff;
    border-bottom: 1px solid #e5ebf1;
}

.vsk-directory-card-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;
    object-position: center;

    background: #ffffff;

    transition: transform 0.25s ease;
}

.vsk-constituency-directory-card:hover
.vsk-directory-card-image img {
    transform: scale(1.02);
}


/* =========================================================
   IMAGE PLACEHOLDER
   ========================================================= */

.vsk-directory-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;

    box-sizing: border-box;
    padding: 25px;

    background: #ffffff;

    color: #486581;

    text-align: center;
    font-size: 0.95rem;
    font-weight: 700;
}


/* =========================================================
   CARD CONTENT
   ========================================================= */

.vsk-directory-card-content {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 21px 21px 19px;
}


/* =========================================================
   COUNTY LABEL
   ========================================================= */

.vsk-directory-card-county {
    margin-bottom: 7px;
    color: #0f766e;
    font-size: 0.67rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    line-height: 1.4;
    text-transform: uppercase;
}


/* =========================================================
   CONSTITUENCY NAME
   ========================================================= */

.vsk-directory-card-content h3 {
    margin: 0 0 10px;
    font-size: 1.25rem;
    line-height: 1.25;
    font-weight: 800;
}

.vsk-directory-card-content h3 a {
    color: #102a43;
    text-decoration: none;
}

.vsk-directory-card-content h3 a:hover {
    color: #0f766e;
}


/* =========================================================
   SUMMARY
   ========================================================= */

.vsk-directory-card-summary {
    margin: 0 0 18px;
    color: #627d98;
    font-size: 0.86rem;
    line-height: 1.65;
}


/* =========================================================
   CARD LINK
   ========================================================= */

.vsk-directory-card-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid #edf2f7;
    color: #102a43;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 800;
}

.vsk-directory-card-link:hover {
    color: #0f766e;
}

.vsk-directory-card-link span {
    font-size: 1.1rem;
    line-height: 1;
    transition: transform 0.2s ease;
}

.vsk-directory-card-link:hover span {
    transform: translateX(3px);
}


/* =========================================================
   PAGINATION
   ========================================================= */

.vsk-directory-pagination {
    margin-top: 48px;
    padding-top: 28px;
    border-top: 1px solid #e2e8f0;
    text-align: center;
}


/* PAGINATION LIST */

.vsk-directory-pagination ul {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 7px;
    margin: 0;
    padding: 0;
    list-style: none;
}


/* REMOVE WORDPRESS LIST SPACING */

.vsk-directory-pagination li {
    margin: 0;
    padding: 0;
    list-style: none;
}


/* PAGE BUTTONS */

.vsk-directory-pagination a,
.vsk-directory-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 13px;

    border: 1px solid #d9e2ec;
    border-radius: 8px;

    background: #ffffff;
    color: #102a43;

    text-decoration: none;

    font-size: 0.84rem;
    font-weight: 700;

    line-height: 1;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}


/* HOVER */

.vsk-directory-pagination a:hover {
    border-color: #0f766e;
    background: #f0fdfa;
    color: #0f766e;
    transform: translateY(-1px);
}


/* CURRENT PAGE */

.vsk-directory-pagination .current {
    border-color: #102a43;
    background: #102a43;
    color: #ffffff;
}


/* CURRENT PAGE SHOULD NOT MOVE */

.vsk-directory-pagination .current:hover {
    transform: none;
}


/* PREVIOUS / NEXT */

.vsk-directory-pagination .prev,
.vsk-directory-pagination .next {
    min-width: auto;
    padding-left: 16px;
    padding-right: 16px;
}


/* DOTS */

.vsk-directory-pagination .dots {
    min-width: 30px;
    padding: 0 4px;
    border-color: transparent;
    background: transparent;
    color: #829ab1;
}


/* DON'T CREATE A HOVER BOX FOR DOTS */

.vsk-directory-pagination .dots:hover {
    border-color: transparent;
    background: transparent;
    color: #829ab1;
    transform: none;
}


/* =========================================================
   PAGINATION MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .vsk-directory-pagination {
        margin-top: 38px;
        padding-top: 22px;
    }

    .vsk-directory-pagination ul {
        gap: 5px;
    }

    .vsk-directory-pagination a,
    .vsk-directory-pagination span {
        min-width: 38px;
        height: 38px;
        padding: 0 10px;
        border-radius: 7px;
        font-size: 0.78rem;
    }

    .vsk-directory-pagination .prev,
    .vsk-directory-pagination .next {
        padding-left: 12px;
        padding-right: 12px;
    }

}


/* =========================================================
   NO RESULTS
   ========================================================= */

.vsk-directory-no-results {
    max-width: 650px;
    margin: 20px auto 0;
    padding: 55px 30px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    text-align: center;
}

.vsk-directory-no-results h2 {
    margin: 8px 0 12px;
    color: #102a43;
}

.vsk-directory-no-results p {
    margin: 0 0 25px;
    color: #627d98;
    line-height: 1.7;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .vsk-constituency-directory-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .vsk-directory-filter-form {
        display: block;
    }

    .vsk-directory-search {
        margin-right: 0;
        margin-bottom: 15px;
    }

    .vsk-directory-county {
        width: 100%;
        margin-right: 0;
        margin-bottom: 15px;
    }

    .vsk-directory-filter-actions {
        display: flex;
        align-items: center;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .vsk-directory-hero-content {
        padding-top: 45px;
        padding-bottom: 42px;
    }

    .vsk-directory-hero-content h1 {
        font-size: 2.25rem;
    }

    .vsk-directory-results {
        padding-top: 40px;
        padding-bottom: 50px;
    }

    .vsk-directory-results-header {
        display: block;
        margin-bottom: 22px;
    }

    .vsk-directory-active-filter {
        margin-top: 12px;
    }

    .vsk-directory-active-filter span {
        margin-left: 0;
        margin-right: 5px;
    }

    .vsk-constituency-directory-grid {
        display: block;
    }

    .vsk-constituency-directory-card {
        margin-bottom: 18px;
    }

    .vsk-directory-card-image {
        height: 210px;
    }

    .vsk-directory-card-content {
        padding: 20px;
    }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 400px) {

    .vsk-directory-hero-content h1 {
        font-size: 2rem;
    }

    .vsk-directory-card-image {
        height: 180px;
    }

}

/* =========================================================
   SEARCH / FILTER RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {

    .vsk-directory-filter-form {
        display: block;
    }

    .vsk-directory-search {
        margin-bottom: 16px;
    }

    .vsk-directory-county {
        width: 100%;
        margin-bottom: 16px;
    }

    .vsk-directory-filter-actions {
        display: flex;
        align-items: center;
    }

    .vsk-directory-clear-button {
        margin-top: 0;
        margin-left: 12px;
    }

}


@media (max-width: 600px) {

    .vsk-directory-controls {
        padding-top: 20px;
    }

    .vsk-directory-controls-card {
        padding: 22px 18px 20px;
        border-radius: 10px;
    }

    .vsk-directory-controls-heading {
        margin-bottom: 20px;
    }

    .vsk-directory-controls-heading h2 {
        font-size: 1.2rem;
    }

    .vsk-directory-controls-heading p {
        font-size: 0.82rem;
    }

    .vsk-directory-filter-actions {
        display: block;
    }

    .vsk-directory-filter-button {
        width: 100%;
    }

    .vsk-directory-clear-button {
        margin-top: 10px;
        margin-left: 0;
    }

}

/* =========================================================
   RESULTS HEADER RESPONSIVE
   ========================================================= */

@media (max-width: 700px) {

    .vsk-directory-results-header {
        display: block;
        margin-bottom: 22px;
    }

    .vsk-directory-results-title h2 {
        font-size: 1.55rem;
    }

    .vsk-directory-results-note {
        margin-top: 8px;
    }

    .vsk-directory-active-filter {
        justify-content: flex-start;
        margin-top: 13px;
    }

    .vsk-filter-status {
        width: 100%;
    }

}