/* RESET I NAPRAWA STOPKI - WKLEJ NA GÓRZE PLIKU */
#kontakt {
    display: block !important;
    clear: both !important;
    position: relative !important;
    background-color: #1a237e !important; /* Ciemny granat */
    width: 100% !important;
    margin: 50px 0 0 0 !important;
    padding: 60px 0 !important;
    float: none !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.ag-contact-title { color: white !important; font-size: 32px !important; text-align: center !important; }
.ag-contact-details { text-align: center !important; color: white !important; }

/* --- KONFIGURACJA BARW I ZMIENNYCH --- */
:root {
    --chaber-light: #e0eaff;    
    --chaber-main: #6495ED;     
    --chaber-dark: #4169E1;     
    --deep-blue: #1a2a6c;       
    --white: #ffffff;
    --text-color: #333333;
}

/* --- RESET SYSTEMOWY --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Blokada przesuwania na boki */
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
}

/* --- NAWIGACJA --- */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 10%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.logo {
    font-weight: 700;
    font-size: 1.38rem;
    color: var(--deep-blue);
    text-transform: uppercase;
    position: relative;
        display: inline-block;
        padding-bottom: 8px;
        /* Odstęp między tekstem a linią */
        cursor: pointer;
        font-weight: 700;
        color: #1a237e;
        /* Twój ciemnoniebieski kolor */

}

.logo::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    /* Przesuwa początek linii na środek napisu */
    transform: translateX(-50%);
    /* Centruje linię idealnie pod napisem */
    width: 150px;
    /* TUTAJ zmieniasz długość kreski */
    height: 3px;
    /* Grubość kreski */
    background-color: #5c7cf2;
    /* Kolor kreski (taki jak w dacie kursów) */
    border-radius: 2px;
    /* Zaokrąglenie końców linii */
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li { margin-left: 25px; }
.nav-links a { text-decoration: none; color: var(--deep-blue); font-weight: 500; }

/* --- HERO SECTION (GRADIENT LEWA -> PRAWA) --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center; /* Wyśrodkowanie bazy */
    padding: 100px 10% 50px;
    background: linear-gradient(90deg, var(--chaber-light) 0%, #f5f8ff 45%, var(--white) 100%);
    position: relative;
}

.hero-content {
    flex: 1;
    max-width: 550px;
    z-index: 10;
}

.hero h1 {
    font-size: 3.5rem;
    color: var(--deep-blue);
    margin-bottom: 20px;
    line-height: 1.1;
    font-weight: 700;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #4a5568;
}

/* --- ZDJĘCIE I EFEKT ENERGII --- */
.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.energy-circle {
    position: relative;
    width: 400px;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.energy-circle img {
    width: 350px;
    height: 350px;
    object-fit: cover;
    border-radius: 50%;
    border: 10px solid var(--white);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    z-index: 5;
    animation: float 6s ease-in-out infinite;
}

.energy-circle::before,
.energy-circle::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 350px;
    height: 350px;
    transform: translate(-50%, -50%); /* Precyzyjne centrowanie aury */
    border-radius: 50%;
    background: var(--chaber-main);
    z-index: 1;
    opacity: 0;
}

.energy-circle::before { animation: energyPulse 6s ease-out infinite; }
.energy-circle::after { animation: energyPulse 8s ease-out infinite 3s; }

@keyframes energyPulse {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; filter: blur(4px); }
    100% { transform: translate(-50%, -50%) scale(1.4); opacity: 0; filter: blur(15px); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* --- SEKCJE OGÓLNE --- */
.container {
    padding: 80px 10%;
    text-align: center;
    width: 100%;
}

h2 {
    font-size: 2.5rem;
    color: var(--chaber-dark);
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
}

h2::after {
    content: "";
    display: block;
    width: 50px;
    height: 4px;
    background: var(--chaber-main);
    margin: 12px auto 0;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    background: var(--chaber-dark);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
}

footer {
    background: var(--deep-blue);
    color: var(--white);
    padding: 50px 10%;
    text-align: center;
}

/* --- NAPRAWA MOBILNA (CENTROWANIE TOTALNE) --- */
@media (max-width: 768px) {
    .hero {
        flex-direction: column-reverse !important;
        padding: 100px 5% 40px !important;
        text-align: center !important;
        background: linear-gradient(180deg, var(--chaber-light) 0%, var(--white) 100%) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .hero-content {
        max-width: 100% !important;
        width: 100% !important;
        margin: 30px 0 0 0 !important;
        padding: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important; /* Wyśrodkowanie nazwiska i opisu */
        justify-content: center !important;
    }

    .hero h1 {
        font-size: 2.2rem !important;
        text-align: center !important;
        width: 100% !important;
        margin: 0 auto 15px auto !important;
        display: block !important;
    }

    .hero p {
        font-size: 1rem !important;
        text-align: center !important;
        width: 100% !important;
        margin: 0 auto 25px auto !important;
    }

    h2 {
        font-size: 1.6rem !important;
        text-align: center !important;
        display: block !important;
        margin-left: auto !important;
        margin-right: auto !important;
        word-wrap: break-word !important;
    }

    .energy-circle {
        width: 280px;
        height: 280px;
    }

    .energy-circle img {
        width: 240px;
        height: 240px;
    }

    .energy-circle::before, .energy-circle::after {
        width: 240px; 
        height: 240px;
    }

    .nav-links { display: none !important; }
}

/* Kontener trzymający treść na środku */
.container {
    max-width: 1200px; /* Szerokość dopasowana do reszty strony */
    margin: 0 auto;    /* Centrowanie */
    padding: 0 20px;   /* Bezpieczny odstęp od krawędzi na telefonach */
}

.education-section {
    padding: 60px 0;   /* Odstęp sekcji od góry i dołu */
    background-color: #fdfdfd;
}

.section-title {
    display: block !important;
    text-align: center !important;
    width: 100% !important;
    margin: 0 auto 50px auto !important;
}      /* Gwarancja, że napis zajmuje całą szerokość i centruje się */
}

.bio-education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;         /* Większe odstępy między kafelkami */
}

.edu-card {
    background: #ffffff;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
}

/* GŁÓWNA SEKCJA */
.education-section {
    padding: 60px 0;
    background-color: #ffffff;
    width: 100%;
    display: block;
}

/* KONTENER - on trzyma wszystko na środku */
.edu-container {
    max-width: 1200px; /* Szerokość dopasowana do ekranu */
    margin: 0 auto !important; /* Wymuszone centrowanie */
    padding: 0 30px; /* Odstęp od krawędzi ekranu */
}

/* TYTUŁ - wymuszone centrowanie */
.section-title {
    text-align: center !important;
    width: 100%;
    margin-bottom: 50px;
    font-size: 2.2rem;
    color: #2c3e50;
    display: block;
}

/* SIATKA OKIENEK */
.bio-education-grid {
    display: grid;
    /* Wymuszamy 3 kolumny na komputerze */
    grid-template-columns: repeat(3, 1fr); 
    gap: 25px;
    width: 100%;
}

/* STYL OKIENKA */
.edu-card {
    background: #fff;
    border-radius: 15px;
    padding: 25px;
    border: 1px solid #e1e8ed;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* OSTATNIE OKIENKO - teraz będzie wyglądać tak samo jak inne */
.edu-card-last {
    background: #fff;
    border-radius: 15px;
    padding: 25px;
    border: 1px solid #e1e8ed;
}

.edu-card h3 {
    color: #3498db;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.edu-list {
    list-style: none;
    padding: 0;
}

.edu-list li {
    font-size: 0.9rem;
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.edu-list li::before {
    content: "•";
    color: #3498db;
    position: absolute;
    left: 0;
}

/* RESPONSYWNOŚĆ - tutaj naprawiamy telefon */
@media (max-width: 1024px) {
    .bio-education-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 kolumny na tabletach */
    }
}

@media (max-width: 768px) {
    .bio-education-grid {
        grid-template-columns: 1fr; /* 1 kolumna na telefonach */
    }
    .section-title {
        font-size: 1.8rem;
    }
}

/* Reset i podstawa */
/* Reset dla tej sekcji */
/* GŁÓWNA SEKCJA */
.education-section {
    padding: 50px 0;
    background-color: #fcfcfc;
    width: 100%;
    display: block;
    clear: both;
}

/* KONTENER - To on odpowiada za centrowanie */
.edu-container {
    width: 100%;
    max-width: 1200px;
    /* To centruje kontener na każdym urządzeniu */
    margin-left: auto !important;
    margin-right: auto !important;
    /* To dodaje odstęp od brzegów telefonu */
    padding-left: 25px !important;
    padding-right: 25px !important;
}

/* TYTUŁ */
.section-title {
    text-align: center !important;
    width: 100%;
    margin-bottom: 40px;
    font-size: 2rem;
    color: #2c3e50;
    display: block;
}

/* SIATKA OKIENEK */
.bio-education-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 25px;
    width: 100%;
}

/* STYL OKIENKA */
.edu-card {
    background: #ffffff !important;
    border: 1px solid #eef2f6 !important;
    border-radius: 12px !important;
    padding: 25px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05) !important;
    text-align: left; /* Tekst w środku okienka do lewej */
}

.edu-card h3 {
    color: #3498db;
    font-size: 1.15rem;
    margin-bottom: 15px;
    border-bottom: 1px solid #f0f4f8;
    padding-bottom: 10px;
}

.edu-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.edu-list li {
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.edu-list li::before {
    content: "•";
    color: #3498db;
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* --- POPRAWKI DLA TELEFONU I TABLETU --- */
@media (max-width: 1024px) {
    .bio-education-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 kolumny na tabletach */
    }
}

@media (max-width: 768px) {
    .education-section {
        padding: 30px 0;
    }

    .edu-container {
        /* Bardzo ważne: upewnienie się, że na małym ekranie kontener nie ucieka */
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    .bio-education-grid {
        /* Jedno okienko pod drugim */
        grid-template-columns: 1fr !important; 
        gap: 20px;
        /* Wyśrodkowanie siatki */
        margin: 0 auto !important;
    }

    .section-title {
        font-size: 1.6rem;
        margin-bottom: 25px;
    }

    .edu-card {
        /* Wymuszenie szerokości okienka, żeby nie było za wąskie */
        width: 100% !important;
        margin: 0 auto !important;
    }
}

/* WYMUSZENIE WYGLĄDU - STYL "PANCERNY" */
.ag-section {
    padding: 60px 0 !important;
    background-color: #fcfcfc !important;
    width: 100% !important;
    display: block !important;
}

.ag-container {
    max-width: 1100px !important;
    margin: 0 auto !important;
    padding: 0 25px !important; /* Odstęp od brzegów telefonu */
}

.ag-title {
    text-align: center !important;
    font-size: 28px !important;
    color: #2c3e50 !important;
    margin-bottom: 40px !important;
    display: block !important;
    width: 100% !important;
}

.ag-grid {
    display: flex !important;
    flex-wrap: wrap !important; /* Zamiast Grid używamy Flex dla lepszej zgodności */
    justify-content: center !important;
    gap: 20px !important;
}

.ag-card {
    background: #ffffff !important;
    border: 1px solid #ddd !important; /* Wyraźna ramka */
    border-radius: 12px !important;
    padding: 25px !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1) !important;
    flex: 1 1 300px !important; /* 3 kolumny na kompie, 1 na telefonie */
    min-width: 280px !important;
    display: block !important;
    margin-bottom: 10px !important;
}

.ag-card-header {
    color: #3498db !important;
    font-weight: bold !important;
    font-size: 18px !important;
    margin-bottom: 15px !important;
    border-bottom: 2px solid #3498db !important;
    padding-bottom: 5px !important;
}

.ag-academic {
    margin-bottom: 15px !important;
    border-left: 3px solid #eee !important;
    padding-left: 10px !important;
}

.ag-academic strong { font-size: 14px !important; display: block !important; }
.ag-academic p { font-size: 12px !important; color: #666 !important; margin: 0 !important; }

.ag-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.ag-list li {
    font-size: 13px !important;
    margin-bottom: 8px !important;
    padding-left: 15px !important;
    position: relative !important;
    color: #444 !important;
}

.ag-list li::before {
    content: "•" !important;
    color: #3498db !important;
    position: absolute !important;
    left: 0 !important;
    font-weight: bold !important;
}

/* POPRAWKA DLA TELEFONÓW */
@media (max-width: 768px) {
    .ag-card {
        flex: 1 1 100% !important; /* Okienko na całą szerokość ekranu */
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .ag-container {
        padding: 0 15px !important;
    }
    
    .ag-title {
        font-size: 22px !important;
    }
}

/* PRZYWRÓCENIE I NAPRAWA PRZYCISKU YOUTUBE */
.yt-section-wrapper {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important; /* Centruje przycisk na komputerze */
    padding: 40px 20px !important;
    background-color: #fcfcfc !important;
    clear: both !important;
}


  .btn-yt {
   display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: #ff0000 !important; /* Czerwone tło */
    color: #ffffff !important; /* Biały tekst */
    padding: 12px 25px !important;
    border-radius: 5px !important; /* Lekko zaokrąglone rogi, jak wcześniej */
    text-decoration: none !important;
    font-weight: bold !important;
    font-family: Arial, sans-serif !important;
    transition: background 0.3s ease !important;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1) !important;
}


.btn-yt-new:hover {
    background-color: #cc0000 !important;
}

.play-icon-new {
    margin-right: 10px !important;
    font-size: 14px !important;
    line-height: 1 !important;
}

/* POPRAWKA NA TELEFON */
@media (max-width: 768px) {
    .yt-section-wrapper {
        padding: 20px 15px !important;
    }
    
    .btn-yt-new {
        width: 100% !important; /* Na telefonie przycisk zajmie całą szerokość */
        max-width: 400px !important; /* Ale nie będzie karykaturowo wielki */
        font-size: 16px !important;
    }
}

/* Kontener dla przycisków */
.button-wrapper {
    display: flex;
    gap: 15px;
    padding: 20px 0;
    flex-wrap: wrap; /* Żeby na telefonie przyciski mogły przejść jeden pod drugi */
}

/* Wspólne style dla obu przycisków */
.btn-main {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    font-family: 'Arial', sans-serif;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 50px; /* Maksymalne zaokrąglenie */
    transition: all 0.3s ease;
    cursor: pointer;
}

/* Styl przycisku NIEBIESKIEGO */
.btn-blue {
    background-color: #1565c0; /* Ciemny błękit */
    color: white !important;
    box-shadow: 0 4px 15px rgba(21, 101, 192, 0.4);
}

.btn-blue:hover {
    background-color: #0d47a1;
    transform: translateY(-2px); /* Lekkie uniesienie */
    box-shadow: 0 6px 20px rgba(21, 101, 192, 0.6);
}

/* Styl przycisku CZERWONEGO */
.btn-red {
    background-color: #e50914; /* Czerwień YouTube */
    color: white !important;
    box-shadow: 0 4px 15px rgba(229, 9, 20, 0.4);
}

.btn-red:hover {
    background-color: #b20710;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229, 9, 20, 0.6);
}

/* Białe kółko z ikoną Play */
.play-circle {
    background-color: white;
    color: #e50914; /* Kolor ikony wewnątrz kółka */
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-size: 10px; /* Rozmiar trójkąta */
    padding-left: 2px; /* Korekta wyśrodkowania trójkąta */
}

/* RWD - Telefon */
@media (max-width: 768px) {
    .button-wrapper {
        justify-content: center; /* Centrowanie na telefonie */
    }
    .btn-main {
        width: 100%; /* Przyciski na całą szerokość na telefonie */
        max-width: 300px;
    }
}

/* Styl sekcji Bioenergoterapia - Trzy Kafle */
.bio-cards-section {
    padding: 60px 0 !important;
    background-color: #fcfcfc !important;
    text-align: center !important;
}

.bio-main-title {
    color: #5c7cf2 !important; /* Ten sam odcień niebieskiego co na foto */
    font-size: 42px !important;
    font-weight: bold !important;
    margin-bottom: 40px !important;
    display: block !important;
}

/* Podkreślenie pod tytułem */
.bio-main-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 4px;
    background-color: #5c7cf2;
    margin: 10px auto 0;
    border-radius: 2px;
}

.bio-cards-grid {
    display: flex !important;
    justify-content: center !important;
    gap: 30px !important;
    flex-wrap: wrap !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
}

.bio-single-card {
    background: #ffffff !important;
    border-radius: 20px !important; /* Mocne zaokrąglenia */
    padding: 40px 30px !important;
    flex: 1 !important;
    min-width: 300px !important;
    max-width: 380px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03) !important; /* Bardzo delikatny cień */
    transition: transform 0.3s ease !important;
}

.bio-single-card:hover {
    transform: translateY(-5px) !important;
}

.bio-icon {
    font-size: 30px !important;
    margin-bottom: 15px !important;
}

.bio-single-card h3 {
    color: #333 !important;
    font-size: 22px !important;
    margin-bottom: 15px !important;
    font-weight: bold !important;
}

.bio-single-card p {
    color: #666 !important;
    line-height: 1.6 !important;
    font-size: 16px !important;
    margin: 0 !important;
}

/* Responsywność */
@media (max-width: 768px) {
    .bio-cards-grid {
        flex-direction: column !important;
        align-items: center !important;
    }
    .bio-single-card {
        width: 90% !important;
    }
}

/* SEKCJA KURSY I WARSZTATY */
.events-section {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    min-height: 300px !important;
    padding: 80px 0 !important;
    background-color: #ffffff !important;
    z-index: 10 !important;
}

.events-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
}

.event-item {
    display: flex !important;
    background: #fff !important;
    border-radius: 15px !important;
    overflow: hidden !important;
    border: 1px solid #eee !important;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03) !important;
}

.event-item:hover {
    transform: translateX(10px) !important; /* Dynamiczne wysunięcie w prawo */
    border-color: #5c7cf2 !important;
    box-shadow: 0 10px 30px rgba(92, 124, 242, 0.1) !important;
}

/* Plakietka z datą */
.event-date-box {
    background-color: #5c7cf2 !important;
    color: white !important;
    min-width: 100px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px !important;
}

.event-day {
    font-size: 32px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
}

.event-month {
    text-transform: uppercase !important;
    font-size: 14px !important;
    font-weight: bold !important;
    letter-spacing: 1px !important;
}

/* Treść wydarzenia */
.event-content {
    padding: 25px !important;
    flex-grow: 1 !important;
}

.event-location {
    font-size: 13px !important;
    color: #5c7cf2 !important;
    font-weight: bold !important;
    margin-bottom: 8px !important;
    text-transform: uppercase !important;
}

.event-content h3 {
    margin: 0 0 10px 0 !important;
    color: #333 !important;
    font-size: 20px !important;
}

.event-content p {
    color: #666 !important;
    font-size: 15px !important;
    line-height: 1.5 !important;
    margin-bottom: 15px !important;
}

.event-link {
    color: #5c7cf2 !important;
    text-decoration: none !important;
    font-weight: bold !important;
    font-size: 14px !important;
    transition: gap 0.3s !important;
}

.event-link:hover {
    text-decoration: underline !important;
}

/* Styl dla wyprzedanych/nieaktywnych */
.event-item.sold-out {
    opacity: 0.7 !important;
    filter: grayscale(1) !important;
}

.status-badge {
    display: inline-block !important;
    background: #eee !important;
    color: #777 !important;
    padding: 5px 15px !important;
    border-radius: 20px !important;
    font-size: 12px !important;
    font-weight: bold !important;
}

/* Responsywność dla telefonów */
@media (max-width: 600px) {
    .event-item {
        flex-direction: column !important; /* Na telefonie data na górze */
    }
    .event-date-box {
        flex-direction: row !important;
        min-width: auto !important;
        gap: 10px !important;
        padding: 10px !important;
    }
    .event-item:hover {
        transform: translateY(-5px) !important; /* Na telefonie uniesienie zamiast wysunięcia */
    }
}

/* Sekcja O Mnie */
.about-me-section {
    padding: 80px 0 !important;
    background-color: #ffffff !important;
    overflow: hidden;
}

.about-me-flex {
    display: flex !important;
    align-items: center !important;
    gap: 50px !important;
}

/* Tekst */
.about-me-text {
    flex: 1 !important;
    text-align: left !important;
}

.about-title {
    color: #1565c0 !important;
    font-size: 32px !important;
    margin-bottom: 25px !important;
    font-weight: bold !important;
}

.about-me-text p {
    font-size: 16px !important;
    line-height: 1.7 !important;
    color: #444 !important;
    margin-bottom: 15px !important;
}

.about-intro {
    font-size: 18px !important;
    color: #222 !important;
}

.about-highlight {
    background: #f0f7ff !important;
    border-left: 4px solid #1565c0 !important;
    padding: 15px 20px !important;
    margin: 20px 0 !important;
    font-style: italic !important;
    color: #1565c0 !important;
    font-weight: 500 !important;
}

.about-footer {
    font-weight: bold !important;
    color: #1565c0 !important;
    margin-top: 20px !important;
}

/* Zdjęcie z poświatą */
.about-me-image {
    flex: 1 !important;
    display: flex !important;
    justify-content: center !important;
}

.image-circle-wrapper {
    position: relative !important;
    width: 350px !important;
    height: 350px !important;
    border-radius: 50% !important;
    padding: 15px !important;
    background: white !important;
    /* Poświata nawiązująca do Twojego zdjęcia */
    box-shadow: 0 0 50px rgba(92, 124, 242, 0.2) !important;
    border: 1px solid rgba(92, 124, 242, 0.1) !important;
}

.image-circle-wrapper img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 50% !important;
}

/* RESPONSYWNOŚĆ */
@media (max-width: 992px) {
    .about-me-flex {
        flex-direction: column-reverse !important; /* Na tablecie zdjęcie ląduje nad tekstem */
        text-align: center !important;
    }
    
    .about-me-text {
        text-align: center !important;
    }
    
    .about-highlight {
        border-left: none !important;
        border-top: 4px solid #1565c0 !important;
    }

    .image-circle-wrapper {
        width: 280px !important;
        height: 280px !important;
    }
}

/* POPRAWKA DLA TYTUŁU BIOENERGOTERAPIA */
.bio-main-title, .section-title, .ag-title {
    word-wrap: break-word !important; /* Pozwala łamać słowo */
    overflow-wrap: break-word !important;
    hyphens: auto !important; /* Dodaje dywiz (-) przy łamaniu, jeśli przeglądarka to wspiera */
}

/* DODATKOWA KOREKTA WIELKOŚCI DLA MAŁYCH EKRANÓW */
@media (max-width: 480px) {
    .bio-main-title {
        font-size: 28px !important; /* Zmniejsza czcionkę tylko na bardzo małych telefonach */
        line-height: 1.2 !important;
        padding: 0 10px !important;
    }
    
    .ag-title {
        font-size: 24px !important;
    }
}

/* Styl przycisku "Dowiedz się więcej" */
.open-modal-btn {
    background: none !important;
    border: none !important;
    color: #5c7cf2 !important;
    font-weight: bold !important;
    cursor: pointer !important;
    padding: 0 !important;
    font-size: 14px !important;
}

/* Tło modala (ciemna przesłona) */
.modal-overlay {
    display: none; /* Domyślnie ukryte */
    position: fixed !important;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999 !important;
    align-items: center;
    justify-content: center;
}

/* Okienko z treścią */
.modal-window {
    background: white !important;
    padding: 40px !important;
    border-radius: 20px !important;
    max-width: 500px !important;
    width: 90% !important;
    position: relative !important;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2) !important;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { transform: translateY(-30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Przycisk zamknięcia (X) */
.close-btn {
    position: absolute !important;
    top: 15px; right: 20px;
    font-size: 30px !important;
    cursor: pointer !important;
    color: #aaa !important;
}

.close-btn:hover { color: #333 !important; }

.modal-title { color: #1565c0 !important; margin-bottom: 20px !important; }
.modal-body p, .modal-body li { line-height: 1.6; color: #444; }

/* STYLIZACJA SEKCJI KONTAKT */
.ag-contact-section {
    background-color: #1a237e !important; /* Ciemny granat ze zdjęcia */
    color: white !important;
    padding: 60px 0 30px 0 !important;
    text-align: center !important;
    width: 100% !important;
    clear: both !important; /* To naprawia nakładanie się elementów */
    margin-top: 50px !important;
}

.ag-contact-title {
    font-size: 36px !important;
    font-weight: bold !important;
    margin-bottom: 10px !important;
}

.ag-contact-underline {
    width: 40px;
    height: 3px;
    background-color: #5c7cf2;
    margin: 0 auto 30px auto;
}

.ag-contact-details p {
    font-size: 16px !important;
    margin-bottom: 12px !important;
    line-height: 1.6 !important;
}

.ag-contact-details a {
    color: white !important;
    text-decoration: none !important;
}

.ag-contact-details a:hover {
    text-decoration: underline !important;
}

.ag-footer-copy {
    margin-top: 40px !important;
    font-size: 14px !important;
    opacity: 0.8;
}

/* POPRAWKA DLA TELEFONU */
@media (max-width: 768px) {
    .ag-contact-section {
        padding: 40px 15px !important;
    }
    .ag-contact-title {
        font-size: 28px !important;
    }
    .ag-contact-details p {
        font-size: 14px !important;
    }
}

/* WYMUSZENIE POPRAWNEGO UKŁADU DLA STOPKI */
footer#kontakt.ag-contact-section {
    display: block !important;
    clear: both !important; /* To jest kluczowe - odpycha wszystko nad stopką */
    position: relative !important;
    width: 100% !important;
    margin-top: 100px !important; /* Daje duży margines nad kontaktem */
    padding: 60px 20px !important;
    background-color: #1a237e !important;
    min-height: 200px !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* NAPRAWA KONTENERA KURSY - aby nie "połykał" stopki */
section#kursy, .events-section {
    display: block !important;
    clear: both !important;
    margin-bottom: 50px !important;
    position: relative !important;
}

/* NAPRAWA MODALA - aby nie blokował widoku strony */
.modal-overlay {
    display: none; 
    position: fixed !important;
    z-index: 9999 !important;
}

/* Naprawa widoczności sekcji */
#kursy {
    display: block !important;
    padding-top: 100px !important; /* Odstęp, żeby menu nie zasłaniało tytułu */
    margin-bottom: 50px;
}

/* Styl dla modala, żeby na pewno był na wierzchu */
.modal-overlay {
    display: none; /* Domyślnie ukryty, JavaScript go pokaże */
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 10000; /* Najwyższa warstwa */
    align-items: center;
    justify-content: center;
}

.bio-main-title {
    text-align: center !important; /* Środkuje napis */
    margin-bottom: 40px !important;
    position: relative;
}

/* Dodanie niebieskiej kreski pod napisem (opcjonalnie, dla stylu) */
.bio-main-title::after {
    content: "";
    display: block;
    width: 50px;
    height: 3px;
    background-color: #5c7cf2; /* Ten sam niebieski co w dacie */
    margin: 15px auto 0 auto;
}

/* Styl dla wyprzedanego kursu */
.event-sold-out {
    opacity: 0.7;
    filter: grayscale(0.5);
    border-left: 5px solid #999 !important;
    cursor: not-allowed;
}

.status-badge {
    display: inline-block;
    background: #ff4d4d;
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    margin-top: 10px;
}

/* Ikona Zoom w dacie (opcjonalnie) */
.event-date-box.zoom-style {
    background-color: #2D8CFF !important;
}

/* --- NAPRAWA GALERII BĄBELKOWEJ --- */
.gallery-section { 
    display: block !important;
    clear: both !important;
    padding: 80px 0 !important; 
    background: #f9fbff !important;
    width: 100% !important;
}

/* To jest kluczowy kontener, który musi mieć flex, aby kółka były obok siebie */
.bubble-gallery {
    display: flex !important;
    flex-direction: row !important; /* Wymuszenie układu poziomego */
    flex-wrap: wrap !important;     /* Pozwala kółkom przechodzić do nowej linii na telefonie */
    justify-content: center !important;
    align-items: center !important;
    gap: 30px !important;
    margin-top: 40px !important;
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.bubble-item {
    display: block !important; /* Każdy element bąbelka jako blok wewnątrz flexa */
    width: 160px !important;
    height: 160px !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    cursor: pointer !important;
    border: 5px solid #fff !important;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1) !important;
    animation: float 5s ease-in-out infinite !important;
    transition: all 0.4s ease !important;
}

/* Rozmiary specjalne */
.bubble-item.big { width: 230px !important; height: 230px !important; animation-duration: 7s !important; }
.bubble-item.small { width: 110px !important; height: 110px !important; animation-duration: 4s !important; }

.bubble-item img { 
    width: 100% !important; 
    height: 100% !important; 
    object-fit: cover !important; 
}

.bubble-item:hover {
    animation-play-state: paused !important;
    transform: scale(1.1) translateY(-10px) !important;
    box-shadow: 0 15px 35px rgba(92, 124, 242, 0.4) !important;
}

/* Lightbox Styl */
.lightbox-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

#lightbox-img {
    max-width: 90%;
    max-height: 80%;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(255,255,255,0.2);
}

.close-lightbox {
    position: absolute;
    top: 30px; right: 40px;
    color: white; font-size: 50px; cursor: pointer;
}

/* --- POPRAWKA WYŚRODKOWANIA NA TELEFONIE --- */
@media (max-width: 768px) {
    .bubble-gallery {
        display: flex !important;
        justify-content: center !important; /* Centruje bąbelki w poziomie */
        align-items: center !important;    /* Centruje w pionie, jeśli trzeba */
        padding-left: 0 !important;        /* Usuwa ewentualne wcięcia */
        padding-right: 0 !important;
        margin-left: auto !important;
        margin-right: auto !important;
        width: 100% !important;
    }

    .bubble-item {
        /* Zmniejszamy nieco kółka na telefonie, żeby lepiej się mieściły obok siebie */
        width: 120px !important;
        height: 120px !important;
        margin: 5px !important; /* Dodaje mały luz wokół każdego bąbelka */
    }

    .bubble-item.big {
        width: 160px !important;
        height: 160px !important;
    }

    .bubble-item.small {
        width: 90px !important;
        height: 90px !important;
    }
}

/* Efekt wybuchu energii */
.bubble-item {
    position: relative;
    overflow: hidden; /* Ważne, żeby wybuch nie wychodził poza koło */
}

.bubble-item::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(92, 124, 242, 0.6); /* Twój błękitny kolor */
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    z-index: 2;
    pointer-events: none;
}

/* Klasa aktywowana przez JavaScript */
.bubble-item.explode::before {
    animation: energyExplosion 0.6s ease-out;
}

@keyframes energyExplosion {
    0% {
        width: 0;
        height: 0;
        opacity: 0.8;
    }
    100% {
        width: 250%; /* Wybuch większy niż samo koło */
        height: 250%;
        opacity: 0;
    }
}

/* Kontener musi mieć to, by wybuch był w środku */
.bubble-item {
    position: relative !important;
    overflow: hidden !important;
}

/* To jest nasz "ładunek wybuchowy" */
.bubble-item::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(92, 124, 242, 0.8); /* Intensywny błękit */
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    z-index: 10;
    pointer-events: none;
}

/* Animacja wybuchu */
.bubble-item.explode::after {
    animation: blast 0.5s ease-out;
}

@keyframes blast {
    0% {
        width: 0;
        height: 0;
        opacity: 1;
    }
    100% {
        width: 300%;
        height: 300%;
        opacity: 0;
    }
}

/* Podstawowy rozmiar (Średni) */
.bubble-item {
    width: 160px !important;
    height: 160px !important;
}

/* Duży bąbelek */
.bubble-item.big {
    width: 220px !important;
    height: 220px !important;
}

/* Mały bąbelek */
.bubble-item.small {
    width: 120px !important;
    height: 120px !important;
}

/* Dodajmy różną prędkość pływania dla realizmu */
.bubble-item.big { animation-duration: 7s !important; }
.bubble-item.small { animation-duration: 4s !important; }

.ag-card p {
    font-size: 14px !important;
    line-height: 1.5 !important;
    color: #444 !important;
    margin-top: 5px;
}

.ag-card-header {
    text-transform: none !important; /* Pozwala na użycie emoji i małych liter w nagłówkach kafelków */
    letter-spacing: 0px !important;
}

/* Centrowanie przycisku w sekcji bioenergoterapii */
#bioenergoterapia .ag-container > div[style*="margin-top: 40px"] {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
}

/* Na wypadek, gdyby przycisk sam w sobie miał float */
#bioenergoterapia .btn-main {
    margin-left: auto !important;
    margin-right: auto !important;
    display: inline-block !important;
}