/* ==========================================================================
   STYLE DEDYKOWANE DLA /kurs-maturalny.php
   ========================================================================== */

/* === SEKCJA HERO === */
.hero-matura-section {
    padding: 80px 20px 40px;
    text-align: center;
    background-color: #f9f9f9;
    position: relative;
    color: #212121;
}

/* NOWY STYL DLA TŁA */
.hero-matura-section--with-bg {
    background-size: cover;
    background-position: center;
    color: #ffffff;
    background-image: linear-gradient(rgba(26, 26, 26, 0.65), rgba(26, 26, 26, 0.65)), url('/img/oli123.jpeg');
}

.hero-matura-content {
    position: relative;
    z-index: 2;
}

.hero-matura-content h1 {
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.hero-matura-section--with-bg .hero-matura-content h1 {
    color: #ffffff;
}

.hero-matura-content .hero-subtitle {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2.5rem auto;
    color: #cccccc;
}

.hero-matura-section:not(.hero-matura-section--with-bg) .hero-subtitle {
    color: #555;
}


/* === INTERAKTYWNY PRZEŁĄCZNIK (TABS) === */
.matura-tabs {
    display: inline-flex;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.25);
    border-radius: 50px;
    padding: 5px;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.tab-link {
    padding: 12px 25px;
    border: none;
    background-color: transparent;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #ffffff;
    white-space: nowrap;
}

.tab-link.active {
    background-color: #FFA550;
    color: #1a1a1a;
    box-shadow: 0 4px 15px rgba(255, 165, 80, 0.4);
}

/* === KONTENER NA TREŚĆ ZAKŁADEK === */
.tab-content-wrapper {
    background-color: #ffffff;
    padding-top: 60px;
}
.tab-content {
    display: none;
    animation: fadeIn 0.5s;
}
.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* === SEKCJE WEWNĄTRZ ZAKŁADEK === */
.info-section, .video-section, .schedule-section, .pricing-plan {
    margin-bottom: 60px;
}

.info-list {
    list-style: none;
    padding-left: 0;
    max-width: 800px;
    margin: 40px auto 0;
    display: grid;
    gap: 15px;
}

.info-list li {
    background-color: #f9f9f9;
    padding: 15px 20px 15px 50px;
    border-radius: 8px;
    position: relative;
    font-size: 1.05rem;
    text-align: left;
    border: 1px solid #e0e0e0;
}

.info-list li::before {
    content: '✓';
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #FFA550;
    font-weight: bold;
    font-size: 1.2rem;
}

.video-placeholder {
    width: 100%;
    max-width: 800px;
    aspect-ratio: 16 / 9;
    background-color: #e0e0e0;
    margin: 40px auto 0;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 600;
    color: #888;
    overflow: hidden;
}

.video-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* === TABELA Z TERMINARZEM === */
.schedule-table-wrapper {
    max-width: 800px;
    margin: 40px auto 0;
    overflow-x: auto;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.schedule-table th, .schedule-table td {
    padding: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.schedule-table thead th {
    background-color: #f9f9f9;
    font-weight: 600;
    color: #333;
}

.schedule-table tbody tr:last-child td {
    border-bottom: none;
}

.schedule-table tbody tr:hover {
    background-color: #FFF5E6;
}

.schedule-table td:first-child {
    font-weight: bold;
    color: #FFA550;
    text-align: center;
    width: 60px;
}

.container .section-title {
    text-align: center;
}

/* Poprawka dla benefit-card, aby ikony były w kolorze pomarańczowym */
.benefit-card .benefit-icon {
    color: #FFA550;
}

/* Media Queries */
@media (max-width: 768px) {
    .hero-matura-content h1 {
        font-size: 2.2rem;
    }
    .hero-matura-content .hero-subtitle {
        font-size: 1.1rem;
    }
    .matura-tabs {
        max-width: 100%;
        display: flex;
        align-items: center;    


    }
    .tab-link {
        font-size: 0.9rem;
        padding: 10px 16px;
    }
}

@media (max-width: 768px) {
  .video-placeholder {
    padding-left: 1rem;  /* 16px marginesu po lewej */
    padding-right: 1rem; /* 16px marginesu po prawej */
    background-color: transparent; /* Usuwa ewentualne tło kontenera */
  }
}

@media (max-width: 768px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* --- KOMPLETNE I POPRAWIONE STYLE DLA CENNIKA --- */

/* --- OSTATECZNE STYLE DLA CENNIKA --- */

/* 1. Styl bazowy dla całego bloku ceny ORAZ dla prostej ceny (np. "45 zł") */
.pricing-plan__price {
    /* Ustawienia wizualne dla ceny */
    font-size: 3.5rem;
    font-weight: 700;
    color: #FFA550; /* Pomarańczowy kolor */
    
    /* Ustawienia układu (dla wersji z dwiema cenami) */
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 15px;
    margin: 15px 0;
}

/* 2. Styl tylko dla przekreślonej, starej ceny */
.pricing-plan__price .pricing-plan__price--old {
    font-size: 2rem;
    color: #b0b0b0; /* Szary kolor */
    font-weight: 400;
    /* Przekreślenie jest z tagu <del> w HTML */
}

/* 3. Styl dla nowej ceny (gdy jest obok starej) */
/* Ta klasa dziedziczy wygląd z .pricing-plan__price, więc nie musimy powtarzać stylów */
.pricing-plan__price .pricing-plan__price--current {
    /* Możemy tu dodać specyficzne style w razie potrzeby, */
    /* ale na ten moment nie jest to konieczne. */
}

/* 4. Poprawka dla telefonów (nadal aktywna) */
@media (max-width: 480px) {
    /* Zmniejszamy prostą cenę */
    .pricing-plan__price {
        font-size: 3.2rem;
    }
    /* Oraz ceny w wersji złożonej */
    .pricing-plan__price .pricing-plan__price--current {
        font-size: 3.2rem; 
        white-space: nowrap; 
    }
    .pricing-plan__price .pricing-plan__price--old {
        font-size: 1.8rem;
    }
}