/*
Theme Name: Wolni Republikanie
Theme URI: https://wolnirepublikanie.pl
Author: Jakubiak
Author URI: https://wolnirepublikanie.pl
Description: Motyw WordPress dla strony Wolni Republikanie - ruch obywatelski
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wolni-republikanie
*/

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

html,
body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

:root {
    --color-bg: #0a0e1a;
    --color-bg-alt: #0f1625;
    --color-primary: #1e3a5f;
    --color-primary-soft: rgba(30, 58, 95, 0.2);
    --color-secondary: #dc2626;
    --color-text: #f5f5f5;
    --color-text-muted: #a3a3a3;
    --color-card: rgba(15, 23, 42, 0.95);
    --shadow-soft: 0 20px 50px rgba(0, 0, 0, 0.6);
    --radius-lg: 12px;
    --radius-xl: 20px;
    --blur-strong: 20px;
    --transition-fast: 0.2s ease-out;
    --transition-normal: 0.3s ease-out;
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--color-text);
    background: 
        linear-gradient(135deg, #0a0e1a 0%, #1a1f35 50%, #0a0e1a 100%);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.98), rgba(30, 58, 95, 0.98));
    border-bottom: 1px solid rgba(220, 38, 38, 0.2);
    color: white;
    padding: 16px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.brand-link {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.site-logo {
    height: 95px;
    width: auto;
    max-width: 260px;
    display: flex;
    align-items: center;
    transition: transform var(--transition-fast);
}

.site-logo:hover {
    transform: scale(1.02);
}

.site-logo img,
.site-logo .custom-logo,
.brand-link .site-logo img,
.site-header .site-logo img,
.site-header .brand-link .site-logo img {
    height: 100%;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    display: block;
}

.site-title {
    font-size: 1.9em;
    margin: 0;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.site-description {
    font-size: 0.9em;
    opacity: 0.9;
    margin-top: 5px;
}

.brand-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
}

.header-navigation {
    flex: 1 1 auto;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
}

.header-navigation ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    gap: 6px;
    align-items: center;
}

.header-navigation li {
    position: relative;
}

.header-navigation a {
    display: block;
    padding: 10px 18px;
    color: rgba(249, 250, 251, 0.95);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 999px;
    border: 1px solid transparent;
    white-space: nowrap;
    transition:
        background-color var(--transition-fast),
        border-color var(--transition-fast),
        color var(--transition-fast),
        transform var(--transition-fast);
}

.header-join-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    border-radius: 999px;
    border: 2px solid rgba(254, 249, 195, 0.95) !important;
    background: linear-gradient(135deg, #dc2626, #b91c1c) !important;
    color: #ffffff !important;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none !important;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.45);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition:
        transform var(--transition-fast),
        box-shadow var(--transition-fast),
        filter var(--transition-fast),
        border-color var(--transition-fast);
}

.header-join-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
    box-shadow: 0 6px 18px rgba(220, 38, 38, 0.65);
    border-color: #fef08a !important;
}

@media (max-width: 768px) {
    .header-navigation {
        flex-direction: column;
        gap: 8px;
    }

    .header-join-btn {
        width: 100%;
        text-align: center;
    }
}

.header-navigation a:hover {
    background: rgba(15, 23, 42, 0.95);
    border-color: rgba(148, 163, 184, 0.5);
    transform: translateY(-1px);
    color: #f9fafb;
}

.header-navigation .current-menu-item > a {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.site-main {
    min-height: 500px;
    padding: 40px 0 72px;
    width: 100%;
    overflow-x: hidden;
}

.content-area {
    padding: 20px 0;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.home .site-main {
    margin-top: 18px;
    padding-top: 0;
}

.home-hero {
    position: relative;
    margin-top: 18px;
    border-radius: var(--radius-xl);
    padding: 40px 32px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 58, 95, 0.95));
    border: 1px solid rgba(220, 38, 38, 0.15);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2.4fr);
    gap: 32px;
}

.home-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top left, rgba(59, 130, 246, 0.22), transparent 60%),
        radial-gradient(circle at center right, rgba(252, 165, 165, 0.18), transparent 55%);
    opacity: 0.9;
    pointer-events: none;
}

.home-hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.hero-tagline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(148, 163, 184, 0.55);
    color: var(--color-text-muted);
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.hero-tagline-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(135deg, #22c55e, #4ade80);
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.4);
}

.hero-title {
    font-size: clamp(2.25rem, 3.3vw, 3.2rem);
    line-height: 1.05;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #f9fafb;
}

.hero-title span {
    background: linear-gradient(135deg, #dc2626, #ef4444);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-lead {
    max-width: 32rem;
    color: var(--color-text-muted);
    font-size: 0.98rem;
}

.hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 4px;
}

.btn-primary {
    padding-inline: 28px;
    padding-block: 12px;
    border-radius: 8px;
    border: none;
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.4);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), filter var(--transition-fast);
}

.btn-primary:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.5);
}

.btn-secondary {
    padding-inline: 22px;
    padding-block: 10px;
    border-radius: 999px;
    border: 1px solid rgba(156, 163, 175, 0.55);
    background: rgba(15, 23, 42, 0.8);
    color: var(--color-text);
    font-weight: 500;
    font-size: 0.94rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition:
        background-color var(--transition-fast),
        border-color var(--transition-fast),
        transform var(--transition-fast);
}

.btn-secondary:hover {
    background: rgba(15, 23, 42, 0.96);
    border-color: rgba(209, 213, 219, 0.85);
    transform: translateY(-1px);
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 12px;
    border-top: 1px solid rgba(148, 163, 184, 0.4);
    margin-top: 10px;
}

.hero-meta-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 120px;
}

.hero-meta-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--color-text-muted);
}

.hero-meta-value {
    font-size: 0.98rem;
    color: #e5e7eb;
    font-weight: 500;
}

.home-hero-media {
    position: relative;
    z-index: 1;
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-card {
    position: relative;
    width: 100%;
    max-width: 420px;
    aspect-ratio: 4 / 5;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background:
        linear-gradient(to top, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.3)),
        url('pan jakubiak.jpg') center/cover no-repeat;
    border: 2px solid rgba(220, 38, 38, 0.2);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.hero-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.15));
}

.hero-card-content {
    position: relative;
    padding: 20px 20px 18px;
    color: #f9fafb;
}

.hero-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(148, 163, 184, 0.7);
    font-size: 0.78rem;
    margin-bottom: 8px;
}

.hero-chip-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 30%, #fee2e2 0, #f97316 28%, #b91c1c 100%);
}

.hero-card-name {
    font-size: 1.2rem;
    font-weight: 600;
}

.hero-card-role {
    font-size: 0.85rem;
    color: #e5e7eb;
    opacity: 0.9;
}

.hero-card-footer {
    margin-top: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    color: rgba(209, 213, 219, 0.9);
}

.hero-signal {
    display: flex;
    align-items: center;
    gap: 4px;
}

.hero-signal-bar {
    width: 3px;
    border-radius: 999px;
    background: linear-gradient(to top, #22c55e, #bbf7d0);
}
.hero-signal-bar:nth-child(1) { height: 11px; }
.hero-signal-bar:nth-child(2) { height: 15px; }
.hero-signal-bar:nth-child(3) { height: 21px; }

.hero-card-social {
    display: flex;
    gap: 8px;
}

.hero-social-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(248, 250, 252, 0.85);
    opacity: 0.7;
}

.hero-badge-row {
    position: absolute;
    top: 14px;
    right: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hero-badge {
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(148, 163, 184, 0.65);
    font-size: 0.72rem;
    color: rgba(248, 250, 252, 0.9);
}

.home-section {
    margin-top: 40px;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 22px;
}

.section-title {
    font-size: 1.35rem;
    font-weight: 600;
    color: #e5e7eb;
}

.section-kicker {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--color-text-muted);
}

.section-description {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    max-width: 28rem;
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 18px;
}

.pillar-card {
    position: relative;
    border-radius: var(--radius-lg);
    padding: 18px 18px 16px;
    background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.28), transparent 60%),
                radial-gradient(circle at bottom right, rgba(248, 113, 113, 0.25), transparent 60%),
                var(--color-card);
    backdrop-filter: blur(var(--blur-strong));
    -webkit-backdrop-filter: blur(var(--blur-strong));
    border: 1px solid rgba(148, 163, 184, 0.45);
    box-shadow: 0 24px 50px rgba(15, 23, 42, 0.9);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition:
        transform var(--transition-normal),
        box-shadow var(--transition-normal),
        border-color var(--transition-normal),
        background-position 0.4s ease-out;
    background-size: 180% 180%;
}

.pillar-card:hover {
    transform: translateY(-6px);
    border-color: rgba(248, 250, 252, 0.8);
    box-shadow: 0 30px 70px rgba(15, 23, 42, 0.95);
    background-position: 40% 0%;
}

.pillar-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: rgba(191, 219, 254, 0.95);
}

.pillar-title {
    font-size: 1.02rem;
    font-weight: 600;
    color: #f9fafb;
}

.pillar-text {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.pillar-meta {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    color: rgba(209, 213, 219, 0.9);
}

.pillar-dot-row {
    display: flex;
    gap: 3px;
}

.pillar-dot {
    width: 4px;
    height: 4px;
    border-radius: 999px;
    background: rgba(248, 250, 252, 0.7);
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 18px;
}

.media-card {
    border-radius: var(--radius-lg);
    padding: 16px 16px 14px;
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.9));
    border: 1px solid rgba(31, 41, 55, 0.8);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.9);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.media-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.media-card-tag {
    font-size: 0.78rem;
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(55, 65, 81, 0.85);
    color: rgba(249, 250, 251, 0.9);
}

.media-card-title {
    font-size: 0.98rem;
    font-weight: 600;
    color: #e5e7eb;
}

.media-card-body {
    font-size: 0.86rem;
    color: var(--color-text-muted);
}

.media-card-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    color: rgba(148, 163, 184, 0.95);
}

.media-card-link {
    font-size: 0.8rem;
    text-decoration: none;
    color: rgba(129, 212, 250, 0.95);
}

.home-slides {
    margin-top: 40px;
}

.slides-strip {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x mandatory;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.slides-strip::-webkit-scrollbar {
    display: none;
}

.slides-nav {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-bottom: 10px;
}

.slides-nav-btn {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 1px solid rgba(75, 85, 99, 0.8);
    background: rgba(15, 23, 42, 0.9);
    color: #e5e7eb;
    font-size: 16px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.slides-nav-btn:hover {
    background: rgba(31, 41, 55, 0.95);
    border-color: rgba(148, 163, 184, 0.9);
    transform: translateY(-1px);
}

.slide-card {
    flex: 0 0 auto;
    width: min(340px, 80vw);
    border-radius: 18px;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(55, 65, 81, 0.9);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.9);
    display: flex;
    flex-direction: column;
    scroll-snap-align: start;
}

.slide-card img {
    width: 100%;
    display: block;
}

.slide-card figcaption {
    padding: 10px 12px;
    font-size: 0.85rem;
    color: #e5e7eb;
}

.media-video {
    width: 100%;
    border-radius: 14px;
    border: 1px solid rgba(55, 65, 81, 0.8);
}

.facebook-embed {
    margin-top: 32px;
}

.facebook-embed .section-heading {
    margin-bottom: 16px;
    justify-content: center;
    text-align: center;
}

.facebook-embed .facebook-frame {
    background: rgba(15, 23, 42, 0.98);
    border-radius: var(--radius-xl);
    padding: 18px;
    border: 1px solid rgba(55, 65, 81, 0.9);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.7);
    max-width: 520px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 500px;
}

.facebook-embed .facebook-frame iframe {
    width: 100% !important;
    max-width: 500px !important;
    min-width: 280px !important;
    height: 500px !important;
    border: none !important;
    display: block !important;
    background: transparent;
}

.support-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 60;
}

.support-modal.is-open {
    display: flex;
}

.support-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.75);
}

.support-modal-dialog {
    position: relative;
    max-width: 540px;
    width: 100%;
    margin: 20px;
    background: rgba(15, 23, 42, 0.98);
    border-radius: var(--radius-xl);
    padding: 32px 28px 28px;
    border: 1px solid rgba(55, 65, 81, 0.9);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8);
    text-align: center;
}

.support-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    border: none;
    background: transparent;
    color: #9ca3af;
    font-size: 24px;
    cursor: pointer;
}

.support-modal-close:hover {
    color: #e5e7eb;
}

.support-modal-dialog h2 {
    font-size: 1.3rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #f5f5f5;
    margin-bottom: 8px;
}

.support-modal-subtitle {
    font-size: 0.95rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 20px;
}

.support-modal-account {
    font-size: 0.95rem;
    color: #e5e7eb;
    margin-bottom: 16px;
}

.support-modal-account strong {
    display: block;
    margin-top: 4px;
    font-size: 1.1rem;
    letter-spacing: 0.08em;
}

.support-modal-text {
    font-size: 0.95rem;
    color: rgba(209, 213, 219, 0.95);
    margin-bottom: 14px;
}

.support-modal-thanks {
    font-size: 0.95rem;
    font-weight: 600;
    color: #f5f5f5;
}

@media (max-width: 640px) {
    .support-modal-dialog {
        padding: 28px 18px 22px;
    }
}

.page-content {
    max-width: 900px;
    margin: 0 auto;
}

.page-title {
    color: #e5e7eb;
    font-size: 2rem;
    margin-bottom: 24px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(75, 85, 99, 0.8);
}

.board-members {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.board-member {
    background: rgba(15, 23, 42, 0.96);
    border-radius: var(--radius-lg);
    padding: 20px;
    text-align: center;
    box-shadow: 0 22px 50px rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(55, 65, 81, 0.95);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.board-member:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.95);
    border-color: rgba(248, 250, 252, 0.9);
}

.board-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid rgba(59, 130, 246, 0.6);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.8);
}

.board-member h4 {
    color: #e5e7eb;
    margin-bottom: 10px;
    font-size: 1.1rem;
    font-weight: 600;
}

.board-member .function {
    color: var(--color-text-muted);
    font-style: italic;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.member-description {
    color: rgba(209, 213, 219, 0.9);
    font-size: 0.9rem;
    line-height: 1.6;
}

.program-section {
    margin: 30px 0;
    padding: 28px;
    background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.18), transparent 60%),
                radial-gradient(circle at bottom right, rgba(248, 113, 113, 0.15), transparent 60%),
                rgba(15, 23, 42, 0.96);
    border: 1px solid rgba(55, 65, 81, 0.9);
    border-left: 4px solid rgba(59, 130, 246, 0.8);
    border-radius: var(--radius-lg);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.9);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.program-section:hover {
    transform: translateY(-3px);
    box-shadow: 0 24px 50px rgba(15, 23, 42, 0.95);
}

.program-section h3 {
    color: #e5e7eb;
    margin-bottom: 15px;
    font-size: 1.3rem;
    font-weight: 600;
}

.program-content {
    color: rgba(209, 213, 219, 0.95);
    line-height: 1.7;
}

.program-image {
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
}

.program-image img {
    width: 100%;
    height: auto;
    display: block;
}

.support-section {
    background: rgba(15, 23, 42, 0.98);
    color: white;
    padding: 40px;
    border-radius: var(--radius-xl);
    text-align: center;
    margin: 40px 0;
    border: 1px solid rgba(55, 65, 81, 0.9);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
}

.support-section h2 {
    margin-bottom: 20px;
    font-size: 1.8rem;
    font-weight: 600;
}

.support-section p {
    color: rgba(249, 250, 251, 0.95);
    font-size: 1rem;
    line-height: 1.7;
}

.account-number {
    font-size: 1.4em;
    font-weight: 700;
    background: rgba(15, 23, 42, 0.85);
    padding: 18px 28px;
    border-radius: 12px;
    margin: 24px 0;
    display: inline-block;
    border: 1px solid rgba(148, 163, 184, 0.4);
    letter-spacing: 0.05em;
    font-family: 'Courier New', monospace;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.contact-form {
    max-width: 600px;
    margin: 40px auto 0;
    background: rgba(15, 23, 42, 0.96);
    padding: 32px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(55, 65, 81, 0.9);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.9);
}

.contact-form h3 {
    color: #e5e7eb;
    margin-bottom: 24px;
    font-size: 1.3rem;
    font-weight: 600;
}

.contact-form label {
    display: block;
    color: rgba(209, 213, 219, 0.95);
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 500;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 16px;
    margin-bottom: 20px;
    border: 1px solid rgba(55, 65, 81, 0.9);
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.95rem;
    background: rgba(15, 23, 42, 0.8);
    color: #e5e7eb;
    transition: border-color var(--transition-fast), background var(--transition-fast);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.7);
    background: rgba(15, 23, 42, 0.95);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form button,
.contact-form .btn {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: white;
    padding: 14px 32px;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), filter var(--transition-fast);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4);
}

.contact-form button:hover,
.contact-form .btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.55);
}

.contact-info {
    margin-bottom: 40px;
}

.contact-section {
    background: rgba(15, 23, 42, 0.96);
    padding: 24px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(55, 65, 81, 0.9);
    margin-bottom: 20px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.9);
}

.contact-section h3 {
    color: #e5e7eb;
    margin-bottom: 12px;
    font-size: 1.1rem;
    font-weight: 600;
}

.contact-section p {
    color: rgba(209, 213, 219, 0.95);
    line-height: 1.7;
}

.notice {
    padding: 16px 20px;
    border-radius: 10px;
    margin-bottom: 24px;
    border: 1px solid;
}

.notice-success {
    background: rgba(34, 197, 94, 0.15);
    border-color: rgba(34, 197, 94, 0.4);
    color: #86efac;
}

.notice-error {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.4);
    color: #fca5a5;
}

.site-footer {
    background: linear-gradient(135deg, #101827, #15213a);
    color: white;
    padding: 32px 0 24px;
    margin-top: 60px;
    border-top: 1px solid rgba(55, 65, 81, 0.8);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 18px;
}

.footer-section {
    min-width: 180px;
    text-align: left;
}

.footer-section h4 {
    margin-bottom: 15px;
    color: #fff;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(55, 65, 81, 0.9);
    padding-top: 16px;
    margin-top: 12px;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(209, 213, 219, 0.9);
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: white;
    text-decoration: none;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.94rem;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), filter var(--transition-fast);
    margin: 10px 5px;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4);
}

.btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.55);
}

.btn-external {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    box-shadow: 0 8px 24px rgba(34, 197, 94, 0.4);
}

.btn-external:hover {
    box-shadow: 0 12px 32px rgba(34, 197, 94, 0.55);
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .header-content {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
    
    .site-logo,
    .brand-link .site-logo {
        height: 115px;
        max-width: 280px;
        width: auto;
    }
    
    .site-logo img,
    .site-logo .custom-logo,
    .site-logo img.custom-logo,
    .brand-link .site-logo img {
        height: 100%;
        width: auto;
        max-width: 100%;
        object-fit: contain;
    }
    
    .header-navigation {
        width: 100%;
        justify-content: center;
    }
    
    .header-navigation ul {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .header-navigation a {
        padding: 8px 14px;
        font-size: 0.85rem;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 4px;
    }
    
    .home-hero {
        grid-template-columns: 1fr;
        padding: 28px 20px;
    }
    
    .home-hero-media {
        margin-top: 24px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-cta-group {
        flex-direction: column;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .pillars-grid {
        grid-template-columns: 1fr;
    }
    
    .media-grid {
        grid-template-columns: 1fr;
    }
    
    .slides-strip {
        gap: 12px;
    }
    
    .slide-card {
        width: 180px;
    }
    
    .board-members {
        grid-template-columns: 1fr;
    }
    
    .program-section {
        padding: 20px;
    }
    
    .support-section {
        padding: 32px 24px;
    }
    
    .account-number {
        font-size: 1.1em;
        padding: 14px 20px;
        word-break: break-all;
    }
    
    .contact-form {
        padding: 24px 20px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 24px;
    }
    
    .section-heading {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .facebook-embed {
        text-align: center;
    }
    
    .facebook-embed .facebook-frame {
        max-width: 100%;
        padding: 12px;
        width: 100%;
        min-height: 400px;
    }
    
    .facebook-embed .facebook-frame iframe {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 280px !important;
        height: 400px !important;
    }
    
}


.ewidencja-button-wrapper {
    text-align: center;
    margin: 40px 0;
}

.single-board-member-function {
    font-size: 1.2em;
    color: #666;
    font-style: italic;
}

.single-board-member-thumbnail {
    float: left;
    margin: 0 30px 20px 0;
}

.stowarzyszenie-notice {
    padding: 20px;
    background: #f0f0f0;
    border-radius: 5px;
    margin-top: 30px;
}

.error-404-buttons {
    margin: 30px 0;
}

/* Agresywne style dla logo na mobile - OSTATECZNA WERSJA */
@media screen and (max-width: 768px) {
    header .site-logo,
    .site-header .site-logo,
    .header-content .brand-link .site-logo,
    .brand-link .site-logo {
        height: 250px !important;
        min-height: 250px !important;
        max-height: 250px !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    header .site-logo img,
    .site-header .site-logo img,
    .site-logo .custom-logo,
    .site-logo img.custom-logo,
    .header-content .brand-link .site-logo img,
    .brand-link .site-logo img,
    .site-header .brand-link .site-logo img,
    .site-header .site-logo .custom-logo {
        height: 250px !important;
        min-height: 250px !important;
        max-height: 250px !important;
        width: auto !important;
        max-width: 100% !important;
        object-fit: contain !important;
    }
}

