/*
Theme Name: STOSilesia Dojo WP Theme
Theme URI: [Adres Twojej Strony]
Author: [Twoje Imię/Nazwa Studia]
Author URI: [Link do Twojego Portfolio/Strony]
Description: Nowoczesny, responsywny motyw WordPress dla szkół sztuk walki, Taekwondo i klubów sportowych na Śląsku.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: stosilesia
*/

/* Zmienne kolorów */
:root {
    --primary-color: #0A1931; /* Granatowy */
    --secondary-color: #E6E6E6; /* Jasny szary / prawie biały */
    --accent-color: #FF0000; /* Czerwony */
    --white-color: #FFFFFF;
    --text-color: #333333;
    --light-gray: #F5F5F5;
    --darken-accent-color: #CC0000; /* Ciemniejsza czerwień dla hover */
}

/* Globalne style i reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-gray);
    overflow-x: hidden; /* Zapobiega poziomemu scrollowaniu na małych ekranach */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

ul {
    list-style: none;
}

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

h1, h2, h3 {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

h2 {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 10px;
}

h2::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
    border-radius: 2px;
}


/* Przyciski */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    text-align: center;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--white-color);
    border: 2px solid var(--accent-color);
}

.btn-primary:hover {
    background-color: var(--darken-accent-color);
    border-color: var(--darken-accent-color);
    color: var(--white-color);
}

.btn-secondary {
    background-color: var(--white-color);
    color: var(--primary-color);
    border: 2px solid var(--white-color);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
}

.btn-tertiary {
    background-color: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    padding: 8px 15px;
    font-size: 0.9em;
}

.btn-tertiary:hover {
    background-color: var(--accent-color);
    color: var(--white-color);
}

/* Header */
.main-header {
    background-color: var(--white-color);
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo img {
    height: 50px; /* Dostosuj rozmiar logo */
}

/* --- Menu Nawigacyjne --- */
.main-nav {
    display: flex; 
    align-items: center; 
    transition: transform 0.3s ease-in-out; 
}

.main-nav .nav-list {
    display: flex; 
    align-items: center; 
    margin-right: 30px; 
}

.main-nav .nav-list li {
    margin-left: 30px;
}

/* Style dla linków w menu WordPress */
.main-nav ul.nav-list {
    /* Usuń domyślne style WP listy */
    list-style: none;
    padding: 0;
    margin: 0;
}

.main-nav .nav-list a {
    color: var(--primary-color);
    font-weight: 600;
    padding: 5px 0;
    position: relative;
    white-space: nowrap; 
}



.main-nav .nav-list a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.main-nav .nav-list a:hover::after,
.main-nav .nav-list a.active::after,
/* Aktywna klasa od scrollspy w JS i od WP */
.main-nav .nav-list li.current-menu-item a::after,
.main-nav .nav-list li.current_page_item a::after {
    width: 100%;
}

/* Styl dla przycisku "Dołącz do nas" w nawigacji, jeśli jest elementem menu */
.main-nav .nav-list .menu-item-button a {
    /* Resetujemy styl podkreślenia, bo to ma być przycisk */
    padding: 12px 25px;
    margin-left: 30px;
}

.main-nav .nav-list .menu-item-button a::after {
    display: none;
}
/* --- Koniec Menu Nawigacyjnego --- */


.menu-toggle {
    display: none; /* Ukryte domyślnie na desktopie */
    background: none;
    border: none;
    font-size: 1.8em;
    color: var(--primary-color);
    cursor: pointer;
    z-index: 1001; 
}

/* Hero Section */
.hero-section {
    color: var(--white-color);
    text-align: center;
    padding: 150px 0;
    position: relative;
    z-index: 1;
    min-height: 600px; 
    display: flex;
    align-items: center; 
    justify-content: center; 
    overflow: hidden; 
}

/* Nowe style dla tła wideo */
.video-background {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw; 
    height: 100vh; 
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    z-index: -2; 
}

.background-video { 
    width: 100%;
    height: 100%;
    object-fit: cover; 
    pointer-events: none; 
    position: absolute; 
    top: 0;
    left: 0;
}

/* Ciemniejsza nakładka nad wideo, ale pod treścią */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); 
    z-index: -1; 
}

.hero-content {
    position: relative; 
    z-index: 1; 
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 4em;
    margin-bottom: 20px;
    color: var(--white-color);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.5em;
    margin-bottom: 40px;
    font-weight: 400;
}

/* About Section */
.about-section {
    background-color: var(--white-color);
    padding: 80px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.7fr 1fr;
    gap: 60px; 
    align-items: center;
    margin-bottom: 80px;
}

.about-text h2 {
    text-align: left;
    margin-bottom: 20px;
}

.about-text h2::after {
    left: 0;
    transform: translateX(0);
}

.about-text p {
    font-size: 1.1em;
    line-height: 1.8;
}

.about-image img {
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    max-height: 400px; 
    object-fit: cover;
}

.classes-overview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
    text-align: center;
}

.class-card {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
    display: flex; 
    flex-direction: column;
    justify-content: space-between; 
}

.class-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background-color: var(--accent-color);
}

.class-card i {
    font-size: 3em;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.class-card h3 {
    color: var(--white-color);
    margin-bottom: 15px;
}

.class-card p {
    font-size: 0.95em;
    line-height: 1.7;
    margin-bottom: 25px;
    flex-grow: 1; 
}


/* Trainers Section (Uproszczone dla 50/50) */
.trainers-section {
    background-color: var(--light-gray);
    padding: 80px 0;
    text-align: center;
}

.trainers-section h2 {
    /* Utrzymuje centrowanie h2 */
}

/* --- Nowy układ Master Trainer 50/50 --- */
.master-trainer-layout {
    display: flex;
    gap: 50px;
    align-items: center; /* Wyśrodkuj zawartość pionowo */
    background-color: var(--white-color);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-top: 50px;
    text-align: left; /* Wyrównanie tekstu wewnątrz kolumn */
}

.trainer-photo {
    flex: 1 1 50%; /* Zajmuje 50% */
}

.trainer-photo img {
    width: 100%;
    height: 500px; /* Stała wysokość zdjęcia */
    object-fit: cover; /* Pokryj całą powierzchnię */
    border-radius: 0; /* Usuń zaokrąglenia */
    display: block;
}

.trainer-details {
    flex: 1 1 50%; /* Zajmuje 50% */
    padding: 40px;
}

.trainer-details h3 {
    font-size: 2em;
    color: var(--accent-color);
    margin-bottom: 5px;
}

.trainer-details .title {
    font-weight: 600;
    color: #666;
    margin-bottom: 20px;
    display: block;
    font-size: 1.1em;
}

.trainer-details hr {
    border: 0;
    border-top: 1px solid var(--light-gray);
    margin: 20px 0;
}

.trainer-details h4 {
    color: var(--primary-color);
    margin-top: 30px;
    margin-bottom: 10px;
    font-size: 1.2em;
}

.trainer-details ul {
    list-style: none;
    padding-left: 0;
}

.trainer-details ul li {
    margin-bottom: 10px;
    font-size: 1.05em;
    line-height: 1.5;
}

.trainer-details ul li i {
    color: var(--accent-color);
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

/* --- Koniec nowego układu --- */


/* Gallery Section */
.gallery-section {
    padding: 80px 0;
    background-color: var(--primary-color);
}

.gallery-section h2 {
    color: var(--white-color);
}

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

.gallery-grid img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.gallery-grid img:hover {
    transform: scale(1.05);
}


/* Footer */
.main-footer {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 60px 0 30px;
    font-size: 0.9em;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); 
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand .logo img {
    height: 40px;
    filter: brightness(0) invert(1); /* Zmienia kolor logo na biały */
}

.footer-brand p {
    margin-top: 10px;
    font-size: 1.2em;
    font-weight: 700;
}

.footer-links-small {
    margin-top: 20px;
    line-height: 1.8; 
}

.footer-links-small a {
    color: var(--secondary-color);
    margin-right: 15px;
    font-size: 0.85em;
    white-space: nowrap; 
}

.footer-links-small a:hover {
    text-decoration: underline;
}

.footer-column h3 {
    color: var(--white-color);
    margin-bottom: 20px;
    font-size: 1.1em;
}

.footer-column ul {
    list-style: none;
    padding-left: 0; /* Zapewnia brak wcięcia dla list WP */
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: var(--secondary-color);
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: var(--accent-color);
}

/* Style dla widgetów */
.footer-column .widget ul li {
    margin-bottom: 10px;
}

.footer-column .widget-title {
    color: var(--white-color);
    margin-bottom: 20px;
    font-size: 1.1em;
}


.social-icons {
    margin-top: 20px;
    display: flex;
    gap: 15px; 
}

.social-icons a {
    color: var(--white-color);
    font-size: 1.5em;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: var(--accent-color);
}

.newsletter input[type="email"] {
    width: 100%;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    margin-bottom: 10px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white-color);
    font-size: 1em;
}

.newsletter input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter .btn-primary {
    width: 100%;
    border-radius: 5px;
    font-size: 1em;
}

/* Sekcja z treścią SEO */
.seo-content-section {
    background-color: var(--white-color); 
    padding: 80px 0; 
    color: var(--text-color);
}

.seo-content-section h2 {
    text-align: left; 
    margin-bottom: 30px;
    font-size: 2.2em;
    color: var(--primary-color);
}

.seo-content-section h2::after {
    left: 0;
    transform: translateX(0); 
}

.seo-content-section h3 {
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 1.8em;
    color: var(--primary-color);
}

.seo-content-section h4 {
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.5em;
    color: var(--primary-color);
}

/* Blog Section */
.blog-section {
    background-color: var(--white-color);
    padding: 80px 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.blog-post-card {
    background-color: var(--light-gray);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.blog-post-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.blog-post-card h3 {
    font-size: 1.4em;
    padding: 20px 20px 10px;
    margin-bottom: 0;
    line-height: 1.3;
}

.blog-post-card .post-meta {
    font-size: 0.85em;
    color: #777;
    padding: 0 20px;
    margin-bottom: 15px;
}

.blog-post-card p {
    padding: 0 20px 20px;
    font-size: 0.95em;
    line-height: 1.7;
    flex-grow: 1; 
}

.blog-post-card .btn-tertiary {
    align-self: flex-start; 
    margin: 0 20px 20px; 
    padding: 10px 20px;
}

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

/* Style dla pojedynczych stron/postów (jeśli używasz index.php) */
.entry-header {
    margin-bottom: 30px;
}
.entry-title {
    font-size: 2.5em;
    text-align: center;
}
.entry-content {
    line-height: 1.8;
}

/* Responsywność */

/* Tablet i mniejsze desktop (do 992px) */
@media (max-width: 992px) {
    .main-nav .nav-list li {
        margin-left: 20px;
    }

    .hero-title {
        font-size: 3.5em;
    }

    .hero-subtitle {
        font-size: 1.3em;
    }

    .about-grid {
        grid-template-columns: 1fr; /* Stos w kolumnach */
        gap: 30px;
    }

    .about-text h2 {
        text-align: center;
    }
    .about-text h2::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .about-image {
        order: -1; /* Obrazek na górze w widoku mobilnym */
        margin-bottom: 30px;
    }

    .classes-overview {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* 2 kolumny lub 1 */
    }
    
    /* Responsywność dla 50/50 Trenerzy */
    .master-trainer-layout {
        flex-direction: column; /* Układaj kolumny pionowo na tabletach */
        gap: 0;
    }
    .trainer-photo img {
        height: 350px; /* Zmniejsz wysokość zdjęcia na tabletach */
    }
    .trainer-details {
        padding: 30px;
    }
    .trainer-details h3 {
        text-align: center;
    }
    .trainer-details .title {
        text-align: center;
    }
    /* Koniec Responsywności dla Trenerów */

    .footer-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .blog-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

/* Mobile (do 768px) */
@media (max-width: 768px) {
    .main-nav {
        display: flex; 
        flex-direction: column;
        position: fixed; 
        top: 0;
        right: -100%; /* Domyślnie poza ekranem */
        width: 70%; 
        max-width: 300px;
        height: 100%;
        background-color: var(--primary-color);
        box-shadow: -5px 0 15px rgba(0,0,0,0.3);
        z-index: 999;
        padding: 80px 20px 20px; 
        transition: right 0.3s ease-in-out; 
    }


    .main-nav.active {
        right: 0; /* Wysuń menu na ekran */
    }

    .main-nav .nav-list {
        flex-direction: column;
        width: 100%;
        text-align: left; 
        margin-right: 0; 
        margin-bottom: 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-top: 20px;
    }

    .main-nav .nav-list li {
        margin: 0;
        padding: 15px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .main-nav .nav-list .menu-item-button a {
        /* Przywracamy styl przycisku w menu mobilnym */
        padding: 12px 25px;
        border: 2px solid var(--accent-color);
        background-color: var(--accent-color);
        color: var(--white-color);
        width: 100%;
        display: block; /* Wypełnij całą szerokość li */
        margin-left: 0;
        text-align: center;
    }

    .menu-toggle {
        display: block; /* Pokaż toggle na mobilu */
    }

    .hero-section {
        padding: 100px 0;
        min-height: 450px;
    }

    .hero-title {
        font-size: 2.8em;
    }

    .hero-subtitle {
        font-size: 1.1em;
    }

    h2 {
        font-size: 2em;
    }

    .about-section,
    .trainers-section,
    .gallery-section {
        padding: 60px 0; 
    }

    .classes-overview,
    .gallery-grid,
    .blog-grid {
        grid-template-columns: 1fr; /* Jedna kolumna */
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand,
    .footer-column {
        margin-bottom: 30px;
    }

    .social-icons {
        justify-content: center; /* Wyśrodkuj ikony */
    }
    
    /* Responsywność dla 50/50 Trenerzy na małym mobilu */
    .master-trainer-layout {
        border-radius: 0;
    }
    .trainer-photo img {
        height: 300px; 
    }
    .trainer-details {
        padding: 20px;
    }
}

/* Mobile landscape (do 576px) */
@media (max-width: 576px) {
    .hero-title {
        font-size: 2.2em;
    }
    .hero-subtitle {
        font-size: 1em;
    }
    h2 {
        font-size: 1.8em;
    }
	.main-nav .nav-list a {
	  font-weight: 600;
	  padding: 5px 0;
	  position: relative;
	  white-space: nowrap;
	}
}
