/* SLIDER */
.home-slider {
    position: relative;
    width: 100%;
    height: 75vh;
    min-height: 400px;
    max-height: 750px;
    overflow: hidden;
}

.home-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease;
}

.home-slide.active {
    opacity: 1;
}

/* KROPKI SLIDERA */
.slider-dots {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 5;
}

.slider-dots button {
    width: 12px;
    height: 12px;
    padding: 0;
    border: 0;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
}

.slider-dots button.active {
    width: 32px;
    background: white;
}

/* LOGO NIW */
.niw-logo {
    display: block;
    width: 100%;
    max-width: 220px;
    height: auto;
    object-fit: contain;
    margin: 20px auto;
}

/* TELEFONY */
@media (max-width: 768px) {
    .home-slider {
        height: 45vh;
        min-height: 300px;
    }

    .home-slide {
        background-position: center;
    }

    .slider-dots {
        bottom: 15px;
    }

    .niw-logo {
        max-width: 160px;
    }
}


/* Sekcja finansowania NIW */
.home-funding {
    width: 100%;
    padding: 40px 20px;
    background: #ffffff;
    box-sizing: border-box;
}

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

.funding-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
}

.funding-logo {
    width: 100%;
    display: flex;
    justify-content: center;
}

.funding-content p {
    max-width: 900px;
    margin: 0 auto;
    font-size: 14px;
    line-height: 1.7;
    color: #374151;
    overflow-wrap: break-word;
}

@media (max-width: 768px) {
    .home-funding {
        padding: 30px 15px;
    }

    .funding-content p {
        font-size: 12px;
        line-height: 1.6;
    }
}

/* SEKCJA O FUNDACJI */
.home-about {
    position: relative;
    padding: 80px 20px;
    background: #f9fafb url('/assets/images/watermark.png')
                center / contain no-repeat;
    text-align: center;
}

.home-about-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.home-about h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 24px;
}

.home-about-description {
    font-size: 18px;
    line-height: 1.8;
    color: #374151;
    margin-bottom: 40px;
}

.home-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 48px;
}

.home-stat-card {
    background: white;
    padding: 30px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.home-stat-card strong {
    display: block;
    font-size: 36px;
    color: #2563eb;
    margin-bottom: 10px;
}

.home-stat-card p {
    color: #374151;
}

.home-about-button {
    display: inline-block;
    padding: 16px 32px;
    background: #2563eb;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
}

.home-about-button:hover {
    background: #1d4ed8;
}

/* TELEFONY */
@media (max-width: 768px) {
    .home-about {
        padding: 50px 15px;
    }

    .home-about h2 {
        font-size: 28px;
    }

    .home-stats {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* WYGLĄD SEKCJI O FUNDACJI */

.home-about {
    background-color: #f9fafb;
    background-size: 600px auto;
    background-position: center;
}

.home-about-container {
    z-index: 1;
}

.home-about h2 {
    color: #111827;
}

.home-about .home-stat-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 30px 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.home-about .home-stat-card strong {
    color: #7c3aed;
}

.home-about .home-about-button {
    background: #7c3aed;
}

.home-about .home-about-button:hover {
    background: #6d28d9;
}

/* KARTY STATYSTYK */

.home-about .home-stats .home-stat-card {
    display: block;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 30px 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.home-about .home-stats .home-stat-card strong {
    display: block;
    color: #7c3aed;
    font-size: 36px;
    margin-bottom: 10px;
}


.home-about .home-stat-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 30px 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.home-about .home-stat-card {
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 12px;
    padding: 30px 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* KARTY STATYSTYK */
.home-about .home-stats .home-stat-card {
    background-color: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 12px;
    padding: 30px 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
}


/* ===== GRAM – Klub Gier Planszowych ===== */

.home-gram {
    padding: 80px 20px;
    background: #fffbeb;
}

.gram-container {
    max-width: 1152px;
    margin: 0 auto;
}

.gram-heading {
    text-align: center;
    margin-bottom: 48px;
}

.gram-heading h2 {
    color: #92400e;
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 16px;
}

.gram-line {
    width: 96px;
    height: 4px;
    background: #f59e0b;
    margin: 0 auto 16px;
}

.gram-heading p {
    font-size: 22px;
    font-weight: 600;
    color: #374151;
}

.gram-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
    margin-bottom: 48px;
}

.gram-poster {
    display: flex;
    justify-content: center;
}

.gram-poster img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.2);
}

.gram-description {
    color: #374151;
    font-size: 16px;
    line-height: 1.75;
}

.gram-description p {
    margin: 0 0 20px;
}

.gram-description p:first-child {
    font-size: 18px;
}

.gram-description strong {
    color: #92400e;
}

.gram-description a {
    color: #b45309;
    font-weight: 600;
}

.gram-details {
    max-width: 896px;
    margin: 0 auto;
}

.gram-meetings {
    padding: 24px;
    margin-bottom: 32px;
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    border-radius: 0 12px 12px 0;
    color: #374151;
    line-height: 1.75;
}

.gram-meetings h3 {
    color: #92400e;
    font-size: 20px;
    margin: 0 0 12px;
}

.gram-meetings p {
    margin: 0 0 12px;
}

.gram-event {
    padding: 32px;
    margin-bottom: 32px;
    background: linear-gradient(90deg, #15803d, #065f46);
    color: white;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.gram-event h3 {
    font-size: 24px;
    padding-bottom: 12px;
    margin: 0 0 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.gram-event p {
    line-height: 1.75;
}

.gram-event-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.gram-event-tags span {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
}

.gram-closing {
    text-align: center;
    padding: 16px 0;
    color: #374151;
    line-height: 1.75;
}

.gram-closing p {
    font-size: 18px;
    margin: 0 0 16px;
}

.gram-closing p:nth-child(2) {
    color: #b45309;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 24px;
}

.gram-facebook {
    display: inline-block;
    padding: 16px 32px;
    background: #1877f2;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
}

.gram-facebook:hover {
    background: #1464d2;
}

/* Responsywność */
@media (max-width: 768px) {
    .home-gram {
        padding: 48px 16px;
    }

    .gram-intro {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .gram-heading p {
        font-size: 18px;
    }

    .gram-event {
        padding: 24px;
    }
}

/* Tryb ciemny – jeśli strona używa klasy .dark */
.dark .home-gram {
    background: #111827;
}

.dark .gram-heading h2,
.dark .gram-meetings h3,
.dark .gram-description strong {
    color: #fbbf24;
}

.dark .gram-heading p,
.dark .gram-description,
.dark .gram-closing {
    color: #d1d5db;
}

.dark .gram-meetings {
    background: #3b2b14;
    color: #e5e7eb;
}


/* ===== AKTUALNOŚCI ===== */

.home-news {
    padding: 80px 20px;
    background: #ffffff;
}

.home-news-container {
    max-width: 1280px;
    margin: 0 auto;
}

.home-news-heading {
    text-align: center;
    margin-bottom: 48px;
}

.home-news-heading h2 {
    font-size: 36px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 16px;
}

.home-news-heading p {
    font-size: 18px;
    color: #4b5563;
    margin: 0;
}

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

.home-news-card {
    background: #f9fafb;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.home-news-card:hover {
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.15);
}

.home-news-card > img {
    display: block;
    width: 100%;
    height: 192px;
    object-fit: cover;
}

.home-news-content {
    padding: 24px;
}

.home-news-content h3 {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    color: #111827;
    margin: 0 0 12px;
}

.home-news-content > p {
    color: #4b5563;
    line-height: 1.6;
    margin: 0 0 16px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
}

.home-news-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
}

.home-news-bottom time {
    color: #6b7280;
    font-size: 14px;
}

.home-news-bottom a {
    color: #2563eb;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.home-news-bottom a:hover {
    color: #1d4ed8;
}

.home-news-footer {
    text-align: center;
    margin-top: 48px;
}

.home-news-footer a {
    display: inline-block;
    padding: 16px 32px;
    background: #2563eb;
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
}

.home-news-footer a:hover {
    background: #1d4ed8;
}

.home-news-message {
    text-align: center;
    color: #dc2626;
}

/* Responsywność */
@media (max-width: 1024px) {
    .home-news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .home-news {
        padding: 48px 16px;
    }

    .home-news-grid {
        grid-template-columns: 1fr;
    }

    .home-news-heading h2 {
        font-size: 30px;
    }
}

/* Tryb ciemny */
.dark .home-news {
    background: #111827;
}

.dark .home-news-heading h2,
.dark .home-news-content h3 {
    color: #ffffff;
}

.dark .home-news-heading p,
.dark .home-news-content > p {
    color: #d1d5db;
}

.dark .home-news-card {
    background: #1f2937;
}



/* ===== DOŁĄCZ DO NAS ===== */

.home-join {
    padding: 80px 20px;
    background: linear-gradient(90deg, #ca8a04, #92400e);
    color: #ffffff;
    text-align: center;
}

.home-join-container {
    max-width: 896px;
    margin: 0 auto;
}

.home-join h2 {
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 16px;
    color: #ffffff;
}

.home-join p {
    font-size: 20px;
    line-height: 1.6;
    margin: 0 auto 32px;
    max-width: 672px;
}

.home-join-button {
    display: inline-block;
    padding: 16px 32px;
    border: 2px solid #ffffff;
    border-radius: 8px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
}

.home-join-button:hover {
    background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 640px) {
    .home-join {
        padding: 48px 16px;
    }

    .home-join h2 {
        font-size: 30px;
    }

    .home-join p {
        font-size: 18px;
    }
}

/* ===== O FUNDACJI – NIEBIESKIE KOLORY ===== */

.home-about {
    background-color: #f9fafb;
}

.home-about h2 {
    color: #111827;
}

.home-about-description {
    color: #374151;
}

/* Niebieskie liczby w kartach */
.home-about .home-stat-card strong {
    color: #2563eb !important;
}

/* Białe karty */
.home-about .home-stat-card {
    background-color: #ffffff !important;
}

.home-about .home-stat-card p {
    color: #374151;
}

/* Niebieski przycisk */
.home-about .home-about-button {
    background-color: #2563eb !important;
    color: #ffffff !important;
    border-color: #2563eb !important;
}

.home-about .home-about-button:hover {
    background-color: #1d4ed8 !important;
    border-color: #1d4ed8 !important;
}


.gram-facebook {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.gram-facebook svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}


/* Czcionka zgodna z domyślnym Tailwind */

body {
    font-family: ui-sans-serif, system-ui, -apple-system,
                 BlinkMacSystemFont, "Segoe UI",
                 Roboto, Arial, sans-serif;
}

button,
input,
textarea,
select {
    font-family: inherit;
}

/* DARK MODE – Finansowanie NIW */
.dark .home-funding,
.dark .home-niw {
    background-color: #111827;
    color: #f9fafb;
}

.dark .home-funding p,
.dark .home-niw p {
    color: #e5e7eb;
}

/* DARK MODE – O fundacji */
.dark .home-about {
    background-color: #111827;
    color: #f9fafb;
}

.dark .home-about h2,
.dark .home-about p {
    color: #f9fafb;
}

/* Karty statystyk */
.dark .home-stat-card {
    background-color: #1f2937 !important;
    color: #f9fafb;
}

.dark .home-stat-card p {
    color: #e5e7eb;
}

/* DARK MODE – karty O fundacji */

.dark .home-about .home-stat-card {
    background: #1f2937 !important;
    border: 1px solid #374151 !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

/* Liczby */
.dark .home-about .home-stat-card h3,
.dark .home-about .home-stat-card strong {
    color: #60a5fa !important;
}

/* Opisy pod liczbami */
.dark .home-about .home-stat-card p,
.dark .home-about .home-stat-card span {
    color: #e5e7eb !important;
}


/* O fundacji – kolory zgodne z oryginałem */
.dark .home-about {
    background-color: #1f2937 !important;
}

.dark .home-about .home-stat-card {
    background-color: #111827 !important;
    border: none !important;
    box-shadow: none !important;
}

/* Teksty */
.dark .home-about h2,
.dark .home-about p {
    color: #f9fafb;
}

.dark .home-about .home-stat-card h3,
.dark .home-about .home-stat-card strong {
    color: #60a5fa !important;
}

.dark .home-about .home-stat-card p,
.dark .home-about .home-stat-card span {
    color: #f9fafb !important;
}

/* Aktualności */
.dark .home-news {
    background-color: #111827 !important;
}




/* Logo NIW – białe tło */
.home-funding .funding-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto 24px;
    padding: 20px 30px;
    background: #ffffff !important;
    border-radius: 8px;
}

/* Rozmiar logo */
.home-funding .funding-logo .niw-logo {
    display: block;
    width: 290px;
    max-width: 100%;
    height: auto;
}

/* Białe tło również w trybie ciemnym */
.dark .home-funding .funding-logo,
[data-theme="dark"] .home-funding .funding-logo {
    background: #ffffff !important;
}


/* NIW – mniejsze logo i białe tło */
.home-funding .funding-logo {
    width: 260px !important;
    max-width: 90%;
    padding: 12px 18px !important;
    margin: 0 auto 24px !important;
    background: #ffffff !important;
    border-radius: 8px;
    box-sizing: border-box;
}

.home-funding .funding-logo .niw-logo {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
}

/* Zachowaj białe tło w dark mode */
.dark .home-funding .funding-logo {
    background: #ffffff !important;
}

/* Sekcja finansowania NIW */
.home-funding {
    background: #ffffff !important;
    padding: 48px 20px !important;
    text-align: center;
}

/* Białe pole logo */
.home-funding .funding-logo {
    width: 350px !important;
    max-width: 90% !important;
    padding: 20px 30px !important;
    margin: 0 auto 24px !important;
    background: #ffffff !important;
    border-radius: 8px !important;
    box-sizing: border-box;
}

/* Logo NIW */
.home-funding .niw-logo {
    display: block;
    width: 100% !important;
    height: auto !important;
}

/* Tekst pod logo */
.home-funding .funding-content p {
   color: #374151 !important;
    max-width: 900px;
    margin: 0 auto !important;
    font-size: 14px;
    line-height: 1.7;
}

/* Dark mode */
.dark .home-funding,
[data-theme="dark"] .home-funding {
    background: #111827 !important;
}
.home-funding .funding-logo {
    width: 290px !important;
}


/* Strona na pełną szerokość – bez białych ramek */
html,
body {
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
    min-height: 100%;
}

body {
    overflow-x: hidden;
}

/* Główne sekcje na pełną szerokość */
.home-hero,
.home-funding,
.home-about,
.home-news {
    width: 100%;
    box-sizing: border-box;
}
/* NIW zawsze jasne, również w dark mode */
.dark .home-funding,
[data-theme="dark"] .home-funding {
    background: #ffffff !important;
}

.dark .home-funding .funding-content p,
[data-theme="dark"] .home-funding .funding-content p {
    color: #374151 !important;
}


/* NIW – tryb jasny */
.home-funding {
    background-color: #ffffff !important;
}

.home-funding .funding-content p {
    color: #374151 !important;
}

/* NIW – tryb ciemny */
.dark .home-funding,
[data-theme="dark"] .home-funding {
    background-color: #111827 !important;
}

.dark .home-funding .funding-content p,
[data-theme="dark"] .home-funding .funding-content p {
    color: #ffffff !important;
}

/* Logo NIW zawsze na białym tle */
.home-funding .funding-logo {
    background-color: #ffffff !important;
}
/* Karty statystyk – rozmiar jak w React */
.home-about .home-stats .home-stat-card {
    padding: 24px 20px;
}

.home-about .home-stats .home-stat-card p {
    margin: 0;
}

.home-about .home-stats {
    margin-bottom: 40px;
}