@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* ==================================================
   NEZÁVISLÍ PRO KOUŘIM – HOMEPAGE.CSS
   Cleaned version
================================================== */

/* ==================================================
   VARIABLES
================================================== */

:root {
    --npk-blue: #5964A8;
    --npk-blue-dark: #465094;
    --npk-red: #E30613;
    --npk-red-dark: #c90010;
    --npk-yellow: #FFD100;
    --npk-gray: #C9C9C9;

    --npk-dark: #0F172A;
    --npk-text: #334155;
    --npk-muted: #64748B;
    --npk-light: #F8FAFC;
    --npk-surface: #FFFFFF;
    --npk-surface-soft: #F7F8FF;
    --npk-border: #E2E8F0;

    --npk-radius: 18px;
    --npk-radius-lg: 24px;

    --npk-shadow: 0 8px 22px rgba(15, 23, 42, .06);
    --npk-shadow-hover: 0 16px 34px rgba(15, 23, 42, .10);
    --npk-shadow-lg: 0 18px 45px rgba(15, 23, 42, .10);

    --npk-container: 1320px;
    --npk-transition: .25s ease;
}

/* ==================================================
   BASE
================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #fff;
    color: var(--npk-dark);
    font-family: "Plus Jakarta Sans", Arial, sans-serif;
    font-weight: 400;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    transition: var(--npk-transition);
}

/* ==================================================
   GLOBAL LAYOUT
================================================== */

.npk-container,
.npro-container {
    width: min(92%, var(--npk-container));
    margin: 0 auto;
}

.npk-section,
.homepage section {
    padding: 84px 0;
}

.npk-section-sm {
    padding: 56px 0;
}

.npk-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 28px;
}

.npk-title {
    margin: 0 0 14px;
    color: var(--npk-dark);
    font-size: clamp(30px, 3.6vw, 44px);
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.npk-subtitle {
    max-width: 720px;
    margin: 0 0 44px;
    color: var(--npk-muted);
    font-size: 18px;
    line-height: 1.7;
    font-weight: 400;
}

/* ==================================================
   BUTTONS / LINKS
================================================== */

.npk-button,
.npro-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 13px 26px;
    border-radius: 999px;
    background: var(--npk-red);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    line-height: 1;
    box-shadow: 0 10px 24px rgba(227, 6, 19, .20);
}

.npk-button:hover,
.npro-button:hover {
    transform: translateY(-2px);
    background: var(--npk-red-dark);
    color: #fff;
}

.npk-button-secondary {
    background: var(--npk-blue);
    box-shadow: 0 10px 24px rgba(89, 100, 168, .18);
}

.npk-button-secondary:hover {
    background: var(--npk-blue-dark);
}

.npk-read-more,
.npk-news-all {
    color: var(--npk-red);
    font-weight: 600;
    text-decoration: none;
}

.npk-read-more:hover,
.npk-news-all:hover {
    color: var(--npk-blue);
}

/* ==================================================
   HEADER
================================================== */

.npro-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 16px rgba(15, 23, 42, .05);
}

.npro-header-inner {
    width: min(94%, 1400px);
    min-height: 78px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.npro-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.npro-logo img {
    display: block;
    width: auto;
    max-height: 58px;
}

.npro-menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 32px;
    margin: 0;
    padding: 0;
}

.npro-menu a {
    position: relative;
    color: var(--npk-dark);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
}

.npro-menu a:hover {
    color: var(--npk-blue);
}

.npro-menu a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -9px;
    width: 0;
    height: 2px;
    background: var(--npk-red);
    border-radius: 20px;
    transition: var(--npk-transition);
}

.npro-menu a:hover::after,
.npro-menu .current-menu-item > a::after {
    width: 100%;
}

/* ==================================================
   HERO – text vlevo / fotografie vpravo
================================================== */

/* HERO */
.npro-hero {
    padding: 70px 24px 90px;
    background: #fff;
}

.npro-hero-inner {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(420px, 0.9fr) minmax(520px, 1.35fr);
    align-items: center;
    gap: 64px;
}

.npro-hero-content {
    min-width: 0;
    max-width: 520px;
}

.npro-hero-content h1 {
    margin: 0 0 28px;
    font-size: clamp(48px, 5vw, 74px);
    line-height: 1.04;
    letter-spacing: -0.045em;
    color: #10172a;
}

.npro-hero-lead {
    margin: 0 0 26px;
    max-width: 460px;
    font-size: clamp(25px, 2.4vw, 36px);
    line-height: 1.32;
    font-weight: 600;
    color: #5867b0;
}

.npro-hero-lead::after {
    content: "";
    display: block;
    width: 122px;
    height: 4px;
    margin-top: 24px;
    border-radius: 999px;
    background: linear-gradient(
        90deg,
        #e30621 0 33%,
        #f6c500 33% 66%,
        #5867b0 66% 100%
    );
}

.npro-hero-text {
    margin: 0 0 32px;
    max-width: 470px;
    font-size: 18px;
    line-height: 1.75;
    color: #25304a;
}

.npro-hero-image {
    min-width: 0;
}

.npro-hero-image img {
    display: block;
    width: 100%;
    height: min(68vh, 680px);
    min-height: 520px;
    object-fit: cover;
    object-position: center;
    border-radius: 34px;
    box-shadow: 0 24px 70px rgba(16, 23, 42, 0.15);
}

/* MOBIL */
@media (max-width: 980px) {
    .npro-hero {
        padding: 42px 18px 64px;
    }

    .npro-hero-inner {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .npro-hero-content {
        max-width: 100%;
    }

    .npro-hero-image img {
        height: 420px;
        min-height: 0;
        border-radius: 26px;
    }
}

@media (max-width: 560px) {
    .npro-hero-content h1 {
        font-size: 42px;
    }

    .npro-hero-lead {
        font-size: 24px;
    }

    .npro-hero-text {
        font-size: 17px;
    }

    .npro-hero-image img {
        height: 300px;
    }
}



/* ==================================================
   GRID SYSTEM
================================================== */

.npk-grid-2,
.npk-grid-3,
.npk-grid-4,
.npk-grid-7 {
    display: grid;
    gap: 30px;
}

.npk-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.npk-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.npk-grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.npk-grid-7 {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 26px;
}

/* ==================================================
   CARDS
================================================== */

.npk-card {
    background: var(--npk-surface);
    border: 1px solid var(--npk-border);
    border-radius: var(--npk-radius);
    box-shadow: var(--npk-shadow);
    overflow: hidden;
    transition: var(--npk-transition);
}

.npk-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--npk-shadow-hover);
}

/* ==================================================
   TOP AKTUALITA
================================================== */

.npk-top-news {
    padding-top: 70px;
    background: linear-gradient(135deg, #fff 0%, var(--npk-surface-soft) 100%);
}

.npk-top-news-card {
    display: grid;
    grid-template-columns: 55% 45%;
    background: #fff;
    border: 1px solid var(--npk-border);
    border-radius: var(--npk-radius-lg);
    overflow: hidden;
    box-shadow: var(--npk-shadow-lg);
    transition: .35s ease;
}

.npk-top-news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 26px 56px rgba(15, 23, 42, .14);
}

.npk-top-news-image {
    display: block;
    overflow: hidden;
    background: var(--npk-light);
}

.npk-top-news-image img {
    width: 100%;
    height: 100%;
    min-height: 440px;
    object-fit: cover;
    display: block;
    transition: .5s ease;
}

.npk-top-news-card:hover .npk-top-news-image img {
    transform: scale(1.04);
}

.npk-top-news-content {
    padding: 54px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.npk-top-news-label {
    display: inline-flex;
    align-self: flex-start;
    margin-bottom: 20px;
    padding: 8px 16px;
    background: var(--npk-red);
    color: #fff;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.npk-top-news-content h2 {
    margin: 18px 0 20px;
    font-size: clamp(32px, 3.6vw, 48px);
    line-height: 1.12;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.npk-top-news-content h2 a {
    color: var(--npk-dark);
    text-decoration: none;
}

.npk-top-news-content h2 a:hover {
    color: var(--npk-blue);
}

.npk-top-news-content p {
    margin: 0 0 32px;
    color: var(--npk-text);
    font-size: 19px;
    line-height: 1.75;
}

/* ==================================================
   AKTUALITY
================================================== */

.npk-news {
    background: #fff;
}

.npk-news-layout {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
}

.npk-news-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--npk-border);
    border-radius: var(--npk-radius);
    box-shadow: var(--npk-shadow);
    overflow: hidden;
    transition: var(--npk-transition);
}

.npk-news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--npk-shadow-hover);
}

.npk-news-featured {
    grid-row: auto;
    grid-template-columns: unset;
}

.npk-news-image {
    display: block;
    height: 280px;
    overflow: hidden;
    background: var(--npk-light);
}

.npk-news-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: .35s ease;
}

.npk-news-card:hover .npk-news-image img {
    transform: scale(1.04);
}

.npk-news-content {
    padding: 28px;
}

.npk-news-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
    padding: 7px 12px;
    background: rgba(89, 100, 168, .10);
    color: var(--npk-blue);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
}

.npk-news-content h3,
.npk-news-featured .npk-news-content h3 {
    margin: 0 0 14px;
    font-size: 23px;
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: -0.015em;
}

.npk-news-content h3 a {
    color: var(--npk-dark);
    text-decoration: none;
}

.npk-news-content h3 a:hover {
    color: var(--npk-blue);
}

.npk-news-content p {
    margin: 0 0 24px;
    color: var(--npk-text);
    line-height: 1.65;
}

/* ==================================================
   ZASTUPITELÉ / LIDÉ
================================================== */

.npk-representatives {
    background: var(--npk-light);
}

.npk-person-card,
.npk-zastupitel,
.npk-candidate-card {
    padding: 0;
    text-align: left;
}

.npk-grid-7 .npk-person-card,
.npk-grid-7 .npk-zastupitel,
.npk-candidate-card {
    text-align: center;
}

.npk-person-photo,
.npk-zastupitel-photo,
.npk-candidate-photo {
    position: relative;
    display: block;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: var(--npk-light);
}

.npk-person-photo img,
.npk-zastupitel-photo img,
.npk-candidate-photo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: .35s ease;
}

.npk-person-card:hover .npk-person-photo img,
.npk-zastupitel:hover .npk-zastupitel-photo img,
.npk-candidate-card:hover .npk-candidate-photo img {
    transform: scale(1.04);
}

.npk-person-content,
.npk-zastupitel-content,
.npk-candidate-content {
    padding: 20px 18px 22px;
}

.npk-person-content h3,
.npk-zastupitel-content h2,
.npk-candidate-content h2 {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.4;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.npk-grid-7 .npk-person-content h3,
.npk-grid-7 .npk-zastupitel-content h2,
.npk-candidate-content h2 {
    font-size: 17px;
    line-height: 1.35;
}

.npk-person-content h3 a,
.npk-zastupitel-content h2 a,
.npk-candidate-content h2 a {
    color: var(--npk-dark);
    text-decoration: none;
}

.npk-person-content h3 a:hover,
.npk-zastupitel-content h2 a:hover,
.npk-candidate-content h2 a:hover {
    color: var(--npk-blue);
}

.npk-person-content p,
.npk-role,
.npk-candidate-motto {
    margin: 0 0 16px;
    color: var(--npk-muted);
    font-size: 14px;
    line-height: 1.6;
}

.npk-grid-7 .npk-read-more,
.npk-candidate-card .npk-read-more {
    font-size: 13px;
}

.npk-candidate-number {
    position: absolute;
    top: 12px;
    left: 12px;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--npk-red);
    color: #fff;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
}

/* ==================================================
   INFO A MÉDIA
================================================== */

.npk-media-page {
    background: #fff;
}

.npk-media-list {
    display: grid;
    gap: 26px;
}

.npk-media-item {
    display: grid;
    grid-template-columns: 300px 1fr;
    background: #fff;
    border: 1px solid var(--npk-border);
    border-radius: var(--npk-radius);
    box-shadow: var(--npk-shadow);
    overflow: hidden;
    transition: var(--npk-transition);
}

.npk-media-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--npk-shadow-hover);
}

.npk-media-thumb {
    display: block;
    min-height: 220px;
    overflow: hidden;
    background: var(--npk-light);
}

.npk-media-thumb img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: .35s ease;
}

.npk-media-item:hover .npk-media-thumb img {
    transform: scale(1.04);
}

.npk-media-content {
    padding: 30px 34px;
}

.npk-media-content h2 {
    margin: 14px 0 12px;
    font-size: clamp(23px, 2.8vw, 32px);
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.npk-media-content h2 a {
    color: var(--npk-dark);
    text-decoration: none;
}

.npk-media-content h2 a:hover {
    color: var(--npk-blue);
}

.npk-media-content p {
    margin: 0 0 22px;
    color: var(--npk-text);
    line-height: 1.65;
}

/* ==================================================
   SINGLE POST / DETAIL KANDIDÁTA
================================================== */

.npk-single-number {
    display: inline-flex;
    margin-bottom: 18px;
    padding: 8px 16px;
    background: rgba(89, 100, 168, .10);
    color: var(--npk-blue);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
}

.npk-single-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 60px;
    align-items: start;
}

.npk-single-content {
    max-width: 900px;
    color: var(--npk-text);
    font-size: 19px;
    line-height: 1.9;
}

.npk-single-content p {
    margin: 0 0 28px;
}

.npk-single-sidebar {
    position: sticky;
    top: 110px;
}

.npk-single-photo-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--npk-border);
    border-radius: var(--npk-radius-lg);
    box-shadow: var(--npk-shadow);
}

.npk-single-photo-card img {
    width: 100%;
    display: block;
}

.npk-single-photo-info {
    padding: 24px;
}

.npk-single-photo-info h2 {
    margin: 0 0 8px;
    color: var(--npk-dark);
    font-size: 22px;
    line-height: 1.3;
    font-weight: 600;
}

.npk-single-photo-info p {
    margin: 0;
    color: var(--npk-muted);
    font-size: 15px;
}

/* ==================================================
   RESPONSIVE
================================================== */

@media (max-width: 1200px) {
    .npk-grid-7 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .npk-news-layout {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1000px) {
    .npk-single-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .npk-single-sidebar {
        position: relative;
        top: auto;
        max-width: 420px;
        margin: 0 auto;
    }
}

@media (max-width: 992px) {
    .npk-top-news-card {
        grid-template-columns: 1fr;
    }

    .npk-top-news-image img {
        min-height: 320px;
    }

    .npk-top-news-content {
        padding: 38px;
    }

    .npk-grid-3,
    .npk-grid-4,
    .npk-grid-7 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .npk-media-item {
        grid-template-columns: 260px 1fr;
    }

    .npk-grid-7 .npk-person-content h3,
    .npk-grid-7 .npk-zastupitel-content h2,
    .npk-candidate-content h2 {
        font-size: 18px;
    }
}

@media (max-width: 900px) {
    .npro-header-inner {
        min-height: auto;
        flex-direction: column;
        gap: 18px;
        padding: 18px 0;
    }

    .npro-logo img {
        max-height: 56px;
    }

    .npro-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px 24px;
    }

    .npro-hero {
        min-height: 500px;
        background-image:
            linear-gradient(
                180deg,
                rgba(255, 255, 255, .98) 0%,
                rgba(255, 255, 255, .88) 55%,
                rgba(255, 255, 255, .35) 100%
            ),
            url('../images/kourim-hero.jpg');
    }
}

@media (max-width: 768px) {
    .npk-section,
    .homepage section {
        padding: 64px 0;
    }

    .npk-page-hero {
        padding: 60px 0;
    }

    .npk-section-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }

    .npk-grid-2,
    .npk-grid-3,
    .npk-grid-4,
    .npk-grid-7,
    .npk-news-layout {
        grid-template-columns: 1fr;
    }

    .npk-media-item {
        grid-template-columns: 1fr;
    }

    .npk-media-thumb {
        min-height: 230px;
    }

    .npro-menu {
        gap: 12px 18px;
    }

    .npro-menu a {
        font-size: 14px;
    }

    .npro-hero h1 {
        font-size: 38px;
    }

    .npro-hero-text,
    .npk-page-intro {
        font-size: 18px;
    }

    .npk-top-news-content {
        padding: 30px;
    }

    .npk-top-news-content p {
        font-size: 18px;
    }

    .npk-news-image {
        height: 240px;
    }
}

@media (max-width: 576px) {
    .npk-title {
        font-size: 30px;
    }

    .npk-subtitle {
        margin-bottom: 34px;
        font-size: 17px;
    }

    .npro-header-inner {
        width: min(94%, 100%);
    }

    .npro-menu {
        gap: 10px 14px;
    }

    .npro-menu a {
        font-size: 13px;
    }

    .npro-hero {
        min-height: 460px;
    }

    .npro-hero h1 {
        font-size: 34px;
    }

    .npro-hero-lead {
        font-size: 21px;
    }

    .npk-candidate-content h2,
    .npk-person-content h3,
    .npk-zastupitel-content h2 {
        font-size: 18px;
    }
}


/*** header **/

/* Rodič podmenu */
.npro-menu > .menu-item-has-children {
    position: relative;
}

/* Podmenu – ve výchozím stavu skryté */
.npro-menu .sub-menu {
    position: absolute;
    z-index: 1000;
    top: calc(100% -2px);
    left: 0;

    display: flex;
    flex-direction: column;
    gap: 2px;

    width: max-content;
    min-width: 280px;
    margin: 0;
    padding: 10px;

    list-style: none;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px);
    transition:
        opacity 0.2s ease,
        visibility 0.2s ease,
        transform 0.2s ease;
}

/* Otevření podmenu */
.npro-menu .menu-item-has-children:hover > .sub-menu,
.npro-menu .menu-item-has-children:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

/* Položky podmenu */
.npro-menu .sub-menu > li {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
}

.npro-menu .sub-menu > li > a {
    display: block;
    padding: 11px 14px;
    color: #1e293b;
    font-size: 15px;
    line-height: 1.4;
    white-space: nowrap;
    border-radius: 9px;
}

.npro-menu .sub-menu > li > a:hover,
.npro-menu .sub-menu > li > a:focus {
    color: #465094;
    background: #f1f5f9;
}
/* Společná fotografie kandidátů: zachovat celý snímek. */
.npk-top-news-image:has(.npk-candidates-photo) {
    display: flex;
    align-items: center;
}
.npk-top-news-image img.npk-candidates-photo {
    height: auto;
    min-height: 0;
    object-fit: contain;
}
.npk-top-news-card:hover .npk-top-news-image img.npk-candidates-photo {
    transform: none;
}
