/* --- ZMIENNE WIZUALNE (PALETA BARW) --- */
:root {
    --color-navy: #0B1B3D;
    --color-gold: #C5A059;
    --color-gold-hover: #B38F48;
    --color-light: #F8F9FA;
    --color-text: #2D3748;
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Inter', sans-serif;
}

/* --- RESET I BAZA --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-sans);
    color: var(--color-text);
    background-color: #ffffff;
    line-height: 1.6;
    scroll-behavior: smooth;
}

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

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

/* --- GÓRNY PASEK (TOP BAR) --- */
.top-bar {
    background-color: var(--color-navy);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    padding: 10px 0;
    border-bottom: 1px solid var(--color-gold);
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar .top-links {
    display: flex;
    gap: 12px;
}

.top-bar .top-links a {
    color: var(--color-gold);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0.5px;
    padding: 6px 14px;
    border: 1px solid rgba(197, 160, 89, 0.4);
    border-radius: 4px;
    background-color: rgba(197, 160, 89, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.top-bar .top-links a:hover {
    color: var(--color-navy);
    background-color: var(--color-gold);
    border-color: var(--color-gold);
    box-shadow: 0 0 12px rgba(197, 160, 89, 0.45);
    transform: translateY(-1px);
}

.top-bar .top-contact {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

/* --- NAGŁÓWEK (HEADER) --- */
.main-header {
    background-color: #ffffff;
    padding: 20px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo-area {
    display: flex;
    align-items: center;
    gap: 30px;
}

.school-logo {
    height: 46px;
    width: auto;
    object-fit: contain;
    mix-blend-mode: multiply;
    flex-shrink: 0;
}

.school-title {
    display: flex;
    flex-direction: column;
}

.title-main {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    color: var(--color-navy);
    font-weight: bold;
    line-height: 1.2;
}

.title-sub {
    font-size: 0.85rem;
    color: var(--color-gold);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

.main-navigation a {
    text-decoration: none;
    color: var(--color-navy);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    transition: color 0.3s;
}

.main-navigation a:hover, .main-navigation a.active {
    color: var(--color-gold);
}

/* --- PRZYCISK CTA --- */
.btn-gold {
    display: inline-block;
    background-color: var(--color-gold);
    color: #ffffff;
    font-family: var(--font-sans);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 15px 35px;
    border: 1px solid var(--color-gold);
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.btn-gold:hover {
    background-color: var(--color-gold-hover);
    border-color: var(--color-gold-hover);
    transform: translateY(-2px);
}

/* --- SEKCJA HERO --- */
.hero-section {
    position: relative;
    height: 65vh;       
    min-height: 480px;  
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(11, 27, 61, 0.75), rgba(11, 27, 61, 0.55)), url('2lo.png') center/cover no-repeat;
    color: #ffffff;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 850px;
    animation: fadeIn 1.5s ease-out;
}

.hero-content h1 {
    font-family: var(--font-serif);
    font-size: 4rem;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 4px 12px rgba(0,0,0,0.6);
}

.hero-content p {
    font-size: 1.35rem;
    margin-bottom: 30px;
    font-weight: 300;
    opacity: 0.95;
    line-height: 1.5;
}

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

/* --- TYTUŁY SEKCJI --- */
.section-title { margin-bottom: 50px; }
.section-title h2 {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    color: var(--color-navy);
    margin-bottom: 15px;
}
.section-title p { color: #718096; font-size: 1.1rem; }
.light-text h2, .light-text p { color: #ffffff; }

/* --- SEKCJA ATUTY (PRZERWA ZMNIEJSZONA O POŁOWĘ) --- */
.features-section {
    padding: 32px 0; /* Zmniejszono z 65px dla mocniejszego podciągnięcia do góry */
    background-color: #ffffff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.feature-card {
    text-align: center;
    padding: 40px 30px;
    border: 1px solid #E2E8F0;
    transition: all 0.3s ease;
    background-color: #FAFCFF;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(11, 27, 61, 0.08);
    border-color: var(--color-gold);
}

.feature-icon {
    font-size: 3.5rem;
    color: var(--color-gold);
    margin-bottom: 20px;
    line-height: 1;
}

.feature-card h3 {
    font-family: var(--font-serif);
    color: var(--color-navy);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* --- SEKCJA PROFILE KLAS --- */
.profiles-section {
    padding: 55px 0;
    background-color: var(--color-navy);
    border-top: 5px solid var(--color-gold);
}

.profiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

.profile-card {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(197, 160, 89, 0.3);
    padding: 50px 20px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
}

.profile-card h3 {
    font-family: var(--font-serif);
    color: var(--color-gold);
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.profile-subjects {
    color: #ffffff;
    font-size: 0.95rem;
    opacity: 0.8;
    font-weight: 300;
}

.profile-card:hover {
    background-color: var(--color-gold);
    border-color: var(--color-gold);
    transform: scale(1.03);
}

.profile-card:hover h3, 
.profile-card:hover .profile-subjects {
    color: var(--color-navy);
}

/* --- SEKCJA OSTATNIE WYDARZENIA (3 KOLUMNY) --- */
/* --- SEKCJA AKTUALNOŚCI (CIEMNA, 3 KOLUMNY ZE ZDJĘCIAMI) --- */
.events-section {
    padding: 55px 0;
    background-color: var(--color-navy); /* Powrót do granatowego tła */
    border-top: 5px solid var(--color-gold);
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 równe kolumny */
    gap: 25px; /* Odstęp między kartami */
}

.event-card {
    background-color: rgba(255, 255, 255, 0.03); /* Bardzo delikatne, jaśniejsze wypełnienie z obrazka */
    border: 1px solid rgba(197, 160, 89, 0.3); /* Złota, półprzezroczysta ramka */
    display: flex;
    flex-direction: column;
    text-align: center; /* Wyśrodkowanie tekstu jak na obrazku */
    transition: all 0.3s ease;
}

.event-card:hover {
    border-color: var(--color-gold);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.event-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid rgba(197, 160, 89, 0.3); /* Oddzielenie zdjęcia od tekstu złotą linią */
}

.event-content {
    padding: 30px 20px;
    flex-grow: 1;
}

.event-date {
    color: rgba(255, 255, 255, 0.5); /* Dyskretna data nad tytułem */
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 15px;
}

.event-card h3 {
    font-family: var(--font-serif);
    color: var(--color-gold); /* Złoty tytuł */
    font-size: 1.8rem;
    margin-bottom: 20px;
    line-height: 1.3;
}

.event-card p {
    color: #ffffff; /* Biały tekst z obrazka */
    font-size: 0.95rem;
    opacity: 0.85;
    line-height: 1.7;
    font-family: var(--font-sans);
}

/* RWD - responsywność na telefony */
@media (max-width: 900px) {
    .events-grid {
        grid-template-columns: 1fr; /* Na komórkach 1 karta pod drugą */
        gap: 30px;
    }
}


/* --- STOPKA --- */
.main-footer {
    background-color: #050d1f;
    color: rgba(255, 255, 255, 0.7);
    padding: 70px 0 0 0;
}

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

.footer-col h4 {
    color: #ffffff;
    font-family: var(--font-serif);
    font-size: 1.3rem;
    margin-bottom: 25px;
    border-bottom: 2px solid var(--color-gold);
    padding-bottom: 10px;
    display: inline-block;
}

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

.footer-col ul li {
    margin-bottom: 15px;
}

.footer-col ul a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-col ul a:hover {
    color: var(--color-gold);
}

.footer-logo-text {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 15px;
    display: block;
}

.footer-bottom {
    background-color: #030814;
    text-align: center;
    padding: 25px 0;
    font-size: 0.85rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* RWD */
@media (max-width: 900px) {
    .top-bar .container { flex-direction: column; gap: 10px; }
    .top-bar .top-links { justify-content: center; flex-wrap: wrap; }
    .header-flex { flex-direction: column; gap: 20px; text-align: center; }
    .logo-area { flex-direction: column; gap: 10px; }
    .main-navigation ul { flex-wrap: wrap; justify-content: center; }
    .hero-content h1 { font-size: 2.8rem; }
    .hero-content p { font-size: 1.15rem; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-col h4 { margin: 0 auto 25px auto; }
}
