/*
 * Styl dla Filharmonii Rybnik - Wersja Ostateczna Stabilna
 * Kolorystyka: GĹÄboki Granat (#0A1931) i Szlachetny BeĹź/Szampan (#C0B283)
 * Fonty: Cormorant Garamond (Eleganckie NagĹĂłwki), Montserrat (Czytelna TreĹÄ)
 */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@700&family=Montserrat:wght@400;500;700&display=swap');

:root {
    --color-primary: rgb(97, 0, 30);
    --color-secondary: #C0B283; /* Szlachetny BeĹź/Szampan (Akcent) */
    --color-text-dark: #333333;
    --color-text-light: #ffffff;
    --color-background-light: #F8F8F8; /* Bardzo jasny, subtelny szary */
    --max-content-width: 1400px;
    --header-top-bar-height: 60px; 
}

/* --- Reset i Podstawowe Style --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--color-text-dark);
    background: url('../img/bg.png');
    overflow-x: hidden;
    padding-top: 0; /* Reset na desktopie */
}

a {
    text-decoration: none;
    color: var(--color-primary);
    transition: color 0.3s;
}

a:hover {
    color: var(--color-secondary);
}

h1, h2, h3, h4 {
    font-family: 'Cormorant Garamond', serif;
    margin-bottom: 0.5em;
    color: var(--color-primary);
    font-weight: 700;
}

/* --- Header i Nawigacja --- */
.header-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px;
    max-width: var(--max-content-width);
    margin: 0 auto;
    color: #1A233A;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo-image {
	filter: grayscale(100%);
    height: 67px;
    width: auto;
    display: block;
	transition: filter 0.3s ease;
}

.logo-text-block {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-line-1 {
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.logo-line-2 {
    font-size: 0.9rem;
    opacity: 0.8;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 15px; /* Odstęp między ikoną FB a przyciskiem menu */
}

.social-link {
    display: flex;
    align-items: center;
    transition: opacity 0.3s ease;
}

.social-link:hover {
    opacity: 0.8;
}

.social-icon {
    object-fit: contain;
    width: 50px;
}

/* Jeśli na mobilkach ikona ma być większa lub inaczej ułożona */
@media (max-width: 768px) {
    .social-icon {
        width: 28px;
        height: 28px;
    }
}

.user-menu button {
    display: none;
    background: none;
    border: none;
    color: var(--color-text-dark);
    font-size: 1.5em;
    cursor: pointer;
    margin-left: 15px;
}

/* HERO na pełną szerokość, ciemny granat */
.hero-container {
    width: 100%;
    background-color: #1A233A; /* Twój ciemny granat */
    position: relative;
}

/* Wycentrowany blok hero */
.hero {
    max-width: var(--max-content-width);
    margin: 0 auto;
    height: 450px;

    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;

    position: relative;
    z-index: 1;
}

/* Delikatna nakładka, jak wcześniej */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.45);
    z-index: -1;
}

/* Treść hero */
.hero-content {
    color: var(--color-text-light);
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.1);
}

.hero-content h1 {
    font-size: 4em;
    color: var(--color-text-light);
    letter-spacing: 5px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.tagline {
    font-size: 1.4em;
    color: var(--color-secondary);
    margin-top: 10px;
    letter-spacing: 2px;
    font-style: italic;
    font-family: 'Cormorant Garamond', serif;
}

/* --- GĹĂłwna Nawigacja (Desktop) --- */

.main-navigation {
    background-color: #1A233A;
    border-top: 3px solid var(--color-secondary);
}

.main-navigation ul {
    list-style: none;
    display: flex;
    justify-content: center;
    max-width: var(--max-content-width);
    margin: 0 auto;
    font-size: 14px;
}

.main-navigation li a {
    display: block;
    padding: 15px 18px;
    color: var(--color-text-light);
    font-weight: 500;
    text-transform: uppercase;
    border-bottom: 3px solid transparent;
}

.main-navigation li a:hover,
.main-navigation li.current-menu-item > a,
.main-navigation li.current_page_item > a {
    background-color: rgba(192, 178, 131, 0.1);
    border-bottom: 3px solid var(--color-secondary);
    color: var(--color-secondary);
}

/* --- GĹĂłwna TreĹÄ --- */

main {
    max-width: var(--max-content-width);
    margin: 40px auto;
    padding: 0 20px;
}

/* --- AktualnoĹci --- */

.aktualnosci h2 {
    font-size: 2.5em;
    margin-bottom: 30px;
    text-align: left;
    border-bottom: 2px solid var(--color-secondary);
    padding-bottom: 5px;
}

.news-grid {
    display: grid;
    grid-template-columns: 1fr; 
    gap: 30px;
    margin-bottom: 50px;
}

.news-item {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s;
    /* UPEWNIAMY SIĘ: brak paddingu tutaj */
    padding: 0;
}

.news-item:hover {
    transform: translateY(-5px);
}

.news-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease-out;
}

.news-item:hover img {
    transform: scale(1.05);
}

.news-item .content {
    padding: 20px;
}

.news-item.featured {
    grid-column: 1 / 2;
    display: flex;
    flex-direction: row; /* WYMUSZAMY poziomo */
    padding: 0;
}

.news-item.featured img {
    width: 40%;
    height: 100%;
    object-fit: cover;
    transform: none;
    flex-shrink: 0;
}

.news-item.featured .content {
    width: 60%;
    padding: 20px;
}

.featured h3 {
    font-size: 2em;
    margin-top: 0;
}

.excerpt {
    margin-bottom: 15px;
}

.read-more {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--color-secondary);
    color: var(--color-primary);
    border-radius: 4px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: background-color 0.3s;
}

.read-more:hover {
    background-color: #d6c6a1;
}

.small-news-group {
    grid-column: 2 / 3;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Karta małego newsa bez paddingu – tylko content ma padding */
.small-news-group .news-item {
    padding: 0; /* ważne */
}

.small-news-group .news-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

/* Padding tylko na treści */
.news-item .content {
    padding: 20px;
}

.small-news-group .news-item h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2em;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0 0 8px 0;
    line-height: 1.3;
}
.small-news-group .news-item p {
    font-size: 0.95em;
    color: var(--color-text-dark);
}

/* --- Promocja Orkiestry --- */

.orchestra-promo {
    text-align: center;
    padding: 70px 40px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
    border-top: 5px solid var(--color-secondary);
}

.orchestra-promo h2 {
    font-size: 2.5em;
    color: var(--color-primary);
    margin-bottom: 20px;
}

.orchestra-promo a {
    color: var(--color-secondary);
    font-weight: 700;
    font-size: 1.3em;
    text-transform: uppercase;
    display: inline-block;
    padding: 5px 0;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s;
}

.orchestra-promo a:hover {
    border-bottom: 2px solid var(--color-secondary);
}

/* --- Footer --- */

footer {
    background-color: #1A233A;
    color: var(--color-text-light);
    padding: 40px 40px 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    max-width: var(--max-content-width);
    margin: 0 auto 20px auto;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding-bottom: 30px;
}

.footer-mission {
    flex: 2; 
    padding-right: 30px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo-image {
    width: 90px;
    display: block;
}

.mission-statement {
    font-size: 0.9em;
    opacity: 0.7;
    margin-top: 15px;
}

.footer-links {
    flex: 1;
    min-width: 150px;
}

.footer-contact {
    flex: 2; 
    max-width: 350px;
}

.footer-content h4 {
    color: var(--color-secondary);
    margin-bottom: 15px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
}

.footer-links ul {
    list-style: none;
}

.footer-links a {
    color: var(--color-text-light);
    display: block;
    opacity: 0.8;
    font-size: 0.95em;
    padding: 5px 0;
}

.footer-links a:hover {
    color: var(--color-secondary);
    opacity: 1;
}

.footer-contact p {
    font-size: 0.95em;
    margin-bottom: 10px;
    opacity: 0.9;
}

.social-links {
    margin-top: 15px;
}

.social-links a {
    color: var(--color-text-light);
    font-size: 1.8em;
    margin-right: 20px;
    opacity: 0.8;
}

.social-links a:hover {
    color: var(--color-secondary);
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 15px;
    font-size: 0.8em;
    max-width: var(--max-content-width);
    margin: 0 auto;
    opacity: 0.6;
}

.aktualnosci-archiwum {
    max-width: var(--max-content-width);
    margin: 0 auto;
    padding: 40px 20px;
}

/* Sekcja aktualności */
.news-archive {
    margin-top: 20px;
}

/* Grid */
.news-archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 40px;
    margin-top: 30px;
}

.news-item .thumb img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 15px;
}

/* Tytuł wpisu */
.news-item h2 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

/* Zajawka */
.news-item .excerpt {
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Paginacja */
.pagination {
    margin-top: 50px;
    text-align: center;
}

.pagination .page-numbers {
    margin: 0 5px;
    padding: 8px 12px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 4px;
}

.pagination .current {
    background: var(--color-secondary);
    color: #000;
    font-weight: bold;
}

.donation-box {
    max-width: var(--max-content-width);
    margin: 40px auto;
    padding: 0 40px;

    background-color: #1A233A;
    color: var(--color-text-light);
    border-top: 3px solid var(--color-secondary);
    border-bottom: 3px solid var(--color-secondary);
    padding-top: 50px;
    padding-bottom: 50px;
}

.donation-inner {
    text-align: center;
}

.donation-box h2 {
    color: var(--color-secondary);
    margin-bottom: 20px;
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.donation-lead {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 20px;
}

.donation-data {
    margin-top: 30px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.donation-data strong {
    color: var(--color-secondary);
}

/* Ogólna sekcja strony */
.page-content {
    max-width: var(--max-content-width);
    margin: 40px auto;
    padding: 20px 40px;
	background: #fff;
}

/* Nagłówek strony */
.page-header h1 {
    font-size: 2.4rem;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-secondary);
}

/* Obrazek wyróżniający obok treści */
.single-featured-image {
    float: left;
    width: 40%;
    max-width: 40%;
    margin: 0 30px 20px 0; /* odstęp od tekstu */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

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

.single-excerpt {
    font-size: 1.4rem;
    line-height: 1.6;
    font-style: italic;
    color: var(--color-secondary);

    margin: 20px 0 30px; /* ładny oddech */
    padding: 15px 0;

    display: block;
    width: 100%;

    clear: both; /* ZAWSZE nad obrazkiem */
}

/* MOBILE — obrazek wraca nad tekst */
@media (max-width: 900px) {
    .single-featured-image {
        float: none;
        width: 100%;
        max-width: 100%;
        margin: 20px 0;
    }
}

.page-body::after {
    content: "";
    display: block;
    clear: both;
}

/* Treść strony */
.page-body p {
    font-size: 1.15rem;
    line-height: 1.7;
    margin-bottom: 1.4em;
}

/* Nagłówki w treści */
.page-body h2 {
    font-size: 1.8rem;
    margin: 40px 0 20px;
    color: var(--color-secondary);
}

.page-body h3 {
    font-size: 1.4rem;
    margin: 30px 0 15px;
    color: var(--color-secondary);
}

/* Listy */
.page-body ul,
.page-body ol {
    margin: 20px 0 20px 25px;
    line-height: 1.6;
}

/* Obrazy w treści */
.page-body img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    border-radius: 4px;
}

.back-to-news {
    display: inline-block;
    margin-bottom: 25px;
    color: var(--color-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.back-to-news:hover {
    opacity: 0.7;
}

.concert-calendar {
    margin: 60px 0;
}

.concert-calendar h2 {
    font-size: 2.2em;
    margin-bottom: 25px;
    border-bottom: 2px solid var(--color-secondary);
    padding-bottom: 5px;
}

/* GRID 3 kolumny */
.concert-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Karta koncertu */
.concert-item {
    display: flex;
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.concert-item:hover {
    transform: translateY(-4px);
}

/* Data */
.concert-date {
    width: 70px;
    height: 70px;
    background: var(--color-primary);
    color: var(--color-secondary);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-right: 20px;
}

.concert-date .day {
    font-size: 1.8rem;
    font-weight: 700;
}

.concert-date .month {
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* Treść */
.concert-info h3 {
    margin: 0;
    font-size: 1.3rem;
    color: var(--color-primary);
}

.concert-info .details {
    margin: 5px 0 10px;
    color: var(--color-text-dark);
    font-size: 0.95rem;
}

/* Link */
.concert-link {
    display: inline-block;
    padding: 8px 16px;
    background: var(--color-secondary);
    color: var(--color-primary);
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background 0.3s ease;
}

.concert-link:hover {
    background: #d6c6a1;
}

/* RESPONSYWNOŚĆ */
@media (max-width: 1000px) {
    .concert-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 650px) {
    .concert-grid {
        grid-template-columns: 1fr;
    }
}

.all-concerts-wrapper {
    display: flex;
    justify-content: flex-end;
    margin-top: 25px;
}

.all-concerts-link {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-primary);
    border-bottom: 2px solid var(--color-secondary);
    padding-bottom: 3px;
    transition: color 0.3s ease;
}

.all-concerts-link:hover {
    color: var(--color-secondary);
}

.single-concert h1 {
    font-size: 2.4rem;
    margin-bottom: 20px;
}

.concert-meta {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 30px;
}

.concert-meta-date {
    width: 90px;
    height: 90px;
    background: var(--color-primary);
    color: var(--color-secondary);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.concert-meta-date .day {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.concert-meta-date .month-year {
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin-top: 4px;
    opacity: 0.9;
}

.concert-meta-info p {
    margin: 3px 0;
    font-size: 1.1rem;
}

.concert-featured-image {
    margin: 20px 0 40px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

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

.concert-body {
    font-size: 1.1rem;
    line-height: 1.7;
}

.past-concerts .concert-item {
    opacity: 0.6;
}
.past-concerts .concert-item:hover {
    opacity: 1;
}

.past-concerts-section {
    margin-top: 60px; /* możesz dać 40–80 w zależności od stylu */
}

.contact-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 20px;
}

.contact-right h2 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Mobile */
@media (max-width: 768px) {
    .contact-columns {
        grid-template-columns: 1fr;
    }
}

/* Kontener formularza */
.wpcf7-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Etykiety */
.wpcf7-form p label {
    font-weight: 600;
    font-size: 1rem;
    display: block;
    margin-bottom: 6px;
}

/* Pola tekstowe */
.wpcf7-form-control.wpcf7-text,
.wpcf7-form-control.wpcf7-email,
.wpcf7-form-control.wpcf7-textarea {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease, background-color 0.3s ease;
    background: #fafafa;
}

/* Hover + focus */
.wpcf7-form-control.wpcf7-text:focus,
.wpcf7-form-control.wpcf7-email:focus,
.wpcf7-form-control.wpcf7-textarea:focus {
    border-color: var(--color-primary);
    background: #fff;
    outline: none;
}

/* Textarea */
.wpcf7-form-control.wpcf7-textarea {
    min-height: 150px;
    resize: vertical;
}

/* Przycisk */
.wpcf7-submit {
    background: var(--color-primary);
    color: var(--color-secondary);
    border: none;
    padding: 14px 24px;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.wpcf7-submit:hover {
    background: var(--color-secondary);
    color: var(--color-primary);
}

/* Komunikaty */
.wpcf7-response-output {
    margin-top: 15px;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 0.95rem;
}

/* Sukces */
.wpcf7-mail-sent-ok {
    border: 2px solid #4caf50;
    background: #e8f5e9;
}

/* Błąd */
.wpcf7-validation-errors,
.wpcf7-not-valid-tip {
    color: #d32f2f;
}

/* Wrapper w pliku front-page.php */
.slider-wrapper {
	width: 100%;
    margin-bottom: 20px;
    overflow: hidden;
}

.custom-slider {
    max-width: var(--max-content-width);
    position: relative;
	margin: 0 auto;
}

/* UKŁAD GRID - zamiast position absolute */
.slider-container {
    display: grid;
    /* Jedna komórka, która przyjmuje rozmiar zawartości (obrazka) */
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
}

.slide {
    /* Wszystkie slajdy jeden na drugim w tej samej komórce */
    grid-column: 1;
    grid-row: 1;
    
    opacity: 0;
    z-index: 1;
    transition: opacity 0.8s ease-in-out;
    
    /* Flex usuwa pustą przestrzeń pod img */
    display: flex;
    width: 100%;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

/* Obrazek steruje wysokością */
.slide img {
    width: 100%;
    height: auto; /* Kluczowe do responsywności */
    display: block;
    object-fit: cover;
}

/* Przyciski */
.slider-prev,
.slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.3);
    color: white;
    border: none;
    font-size: 24px;
    padding: 10px 15px;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s;
}

.slider-prev:hover,
.slider-next:hover {
    background: rgba(192, 159, 88, 0.9);
}

.slider-prev { left: 0; }
.slider-next { right: 0; }

/* --- Nowa Sekcja Hero (Układ 3-6-3) --- */

#custom-hero-section {
    max-width: var(--max-content-width);
    margin: 40px auto;
    padding: 0;
}

.hero-grid-container {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr; /* Układ 25% - 50% - 25% */
    gap: 30px;
    align-items: start;
}

.hero-side-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (min-width: 600px) and (max-width: 769px) {
  .hero-side-column {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .hero-side-column .hero-teaser {
    align-self: stretch;
  }
}

/* Duże ekrany (desktop): powrót do kolumny */
@media (min-width: 770px) {
  .hero-side-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
}


.hero-teaser a {
    display: block;
    text-align: center;
    background: #fff;
    padding-bottom: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    border-bottom: 2px solid transparent;
}

.hero-teaser a:hover {
    transform: translateY(-5px);
    border-bottom: 2px solid var(--color-secondary);
}

.teaser-img-wrapper {
    overflow: hidden;
}

.teaser-img-wrapper img {
    width: 100%;
    filter: grayscale(20%);
    transition: filter 0.3s ease;
}

.hero-teaser a:hover img {
    filter: grayscale(0%);
}

.teaser-label {
    display: block;
    margin-top: 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-primary);
    letter-spacing: 1px;
}

/* Kolumna Środkowa - Karta Główna */
.hero-main-card {
    background: #fff;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-top: 4px solid var(--color-secondary);
}

.main-img-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

.main-text-content {
    padding: 30px;
    text-align: center;
}

.main-text-content h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: var(--color-primary);
}

.main-text-content p {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 15px;
    color: var(--color-text-dark);
}

.cta-bold {
    font-weight: 700;
    color: var(--color-primary) !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 20px;
}

/* Responsywność */
@media (max-width: 1100px) {
    .main-navigation li a {
        padding: 15px 10px;
    }
}

@media (max-width: 768px) {
    .main-navigation li {
        font-size: 14px;
    }
    .hero-grid-container {
        grid-template-columns: 1fr;
    }
    .hero-main-column {
        grid-column: span 1;
    }
}

/* --- Poprawka Menu Rozwijanego --- */

/* 1. Rodzic musi mieć pozycję relatywną, aby podmenu "przykleiło się" do niego */
.main-navigation li {
    position: relative;
}

/* 2. Ukrycie podmenu i ustawienie go w odpowiedniej pozycji */
.main-navigation ul ul {
    display: none;             /* Ukrywamy domyślnie */
    position: absolute;        /* Wyrywamy z przepływu tekstu */
    top: 100%;                 /* Pojawia się dokładnie pod linkiem */
    left: 0;
    background-color: #1A233A; /* Taki sam kolor jak główny pasek */
    min-width: 220px;          /* Szerokość rozwijanego paska */
    flex-direction: column;    /* Elementy jeden pod drugim (nadpisuje flex główny) */
    z-index: 9999;             /* Musi być nad wszystkim innym */
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
    border-top: 2px solid var(--color-secondary);
    padding: 10px 0;
}

/* 3. Wyświetlanie podmenu po najechaniu myszką na rodzica */
.main-navigation li:hover > ul {
    display: flex;
}

/* 4. Stylizacja linków wewnątrz podmenu */
.main-navigation ul ul li a {
    padding: 10px 20px;
    font-size: 13px;
    text-transform: none;      /* Opcjonalnie: wyłączenie wielkich liter dla czytelności */
    border-bottom: none;       /* Usunięcie dolnej kreski z głównego menu */
    width: 100%;
}

.main-navigation ul ul li a:hover {
    background-color: rgba(192, 178, 131, 0.15); /* Subtelny złoty hover */
    border-bottom: none;
    color: var(--color-secondary);
}

/* 5. Obsługa strzałek/wskaźników (opcjonalnie, jeśli masz podstrony) */
.main-navigation .menu-item-has-children > a::after {
    content: ' ▾';
    font-size: 10px;
    opacity: 0.7;
}

/* Kontener główny - ogranicza szerokość, żeby tekst nie rozlewał się na cały ekran */
.news-archive-list {
    max-width: 900px;
    margin: 0 auto; /* Wyśrodkowanie kontenera */
    padding: 20px 0;
}

/* Pojedynczy artykuł */

.news-item-clean {
    display: flex;
    flex-direction: column; /* Układ pionowy wewnątrz elementu */
    margin-bottom: 60px; /* DUŻY ODSTĘP między artykułami */
    padding-bottom: 40px; /* Odstęp wewnątrz od linii */
    border-bottom: 1px solid #e0e0e0; /* Delikatna linia oddzielająca */
    overflow: hidden;
}

/* Tytuł artykułu */
.news-item-clean h2 {
    margin: 0 0 20px 0; /* Odstęp pod tytułem */
    font-size: 1.8rem; /* Większa czcionka tytułu */
    line-height: 1.3;
}

.news-item-clean h2 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.news-item-clean h2 a:hover {
    color: #c09f58; /* Kolor złoty/brandowy po najechaniu - dopasuj do strony */
}

/* Kontener dla przycisku (pozwala na wyrównanie do prawej) */
.meta-footer {
    display: flex;
    justify-content: flex-end; /* To wyrzuca link na PRAWO */
    width: 100%;
}

/* Sam link "Zobacz więcej" */
.read-more-link {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #666;
    text-decoration: none;
    border-bottom: 1px solid transparent; /* Przygotowanie pod hover */
    transition: all 0.3s ease;
}

.read-more-link:hover {
    color: #000;
    border-bottom: 1px solid #000; /* Podkreślenie przy najechaniu */
}

.back-to-news {
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.85rem;
    color: #666;
    letter-spacing: 1px;
    font-weight: bold;
    transition: color 0.3s;
}

.back-to-news:hover {
    color: #000;
    text-decoration: underline;
}