
/* ========================================
   ZMIENNE
======================================== */

:root {
    --primary-blue: #0b1c3c;
    --secondary-blue: #142a59;
    --primary-red: #e6192b;

    --text-dark: #333;
    --text-gray: #666;

    --bg-light: #f4f5f7;
    --white: #ffffff;

    --font-main: 'Open Sans', sans-serif;
    --font-heading: 'Playfair Display', serif;
}

/* ========================================
   RESET
======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    background: var(--bg-light);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

img {
    display: block;
    max-width: 100%;
}

.container {
    width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ========================================
   TOP BAR
======================================== */

.top-bar {
    background: var(--primary-blue);
    color: var(--white);
    font-size: 13px;
    padding: 10px 0;
}

.top-bar-inner {
    display: flex;
    justify-content: flex-end; /* Zmienione z space-between na flex-end */
    align-items: center;
}
.contact-info span {
    margin-right: 20px;
}

.contact-info i {
    margin-right: 5px;
    opacity: 0.8;
}

.quick-links a {
    margin-left: 18px;
}

.quick-links a:hover {
    color: var(--primary-red);
}

/* ========================================
   HEADER
======================================== */

.main-header {
    background: var(--primary-blue);
    color: var(--white);
    height: 110px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    
    overflow: visible !important;
    position: relative !important;
    z-index: 99999 !important;
}

.header-inner {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* LOGO */

.logo-wrapper {
    width: 240px;
    height: 80px;
    display: flex;
    align-items: center;
}

.logo-wrapper img {
    max-height: 100%;
}

/* ========================================
   NAV & MEGA MENU
======================================== */

.main-header .container, 
.main-header .header-inner,
.main-nav,
.main-nav ul,
.main-nav li {
    overflow: visible !important;
    position: relative;
}

.main-nav {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

.main-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 18px; /* Zmniejszone z 22px, by dać więcej oddechu po bokach */
    margin: 0;
    padding: 0;
}

.main-nav > ul > li > a {
    font-size: 15px; /* Złoty środek: większe niż pierwotne 12px, ale bezpieczniejsze niż 16px */
    font-weight: 700;
    text-transform: uppercase;
    padding-bottom: 5px;
    white-space: nowrap;
    transition: 0.3s;
    letter-spacing: 0.2px; /* Zmniejszone rozstrzelenie liter, by zaoszczędzić miejsce w poziomie */
}
.main-nav > ul > li > a.active,
.main-nav > ul > li > a:hover {
    color: var(--primary-red);
    border-bottom: 2px solid var(--primary-red);
}

.has-mega-menu {
    position: static !important; 
}

.mega-dropdown {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    width: 900px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
    padding: 30px;
    z-index: 999999 !important; 
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    transition: all 0.3s ease;
    color: var(--text-dark);
}

.has-mega-menu:hover .mega-dropdown {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.mega-column {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.mega-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-category {
    font-size: 15px;
    font-weight: 800;
    color: var(--primary-blue);
    text-transform: uppercase;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 8px;
    margin-bottom: 5px;
    cursor: default;
}

.mega-group a {
    color: var(--text-gray);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.2s ease;
    display: inline-block;
    text-transform: none;
    padding-bottom: 0;
    border-bottom: none;
}

.mega-group a:hover {
    color: var(--primary-red);
    transform: translateX(5px);
    border-bottom: none;
}

.emblem-wrapper {
    width: 85px;
    height: 85px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.emblem-wrapper img {
    max-height: 100%;
}

/* ========================================
HERO
======================================== */

.hero-section {
    position:relative;
    width:100%;
    aspect-ratio:3 / 1;
    border-radius:0 0 0 0;
    overflow:hidden;
    /* Poprawiona nazwa pliku - upewnij się, że plik jest w folderze images! */
    background-image:url('images/school.jpg'); 
    background-size:cover;
    background-position:center;
    background-repeat:no-repeat;
    margin-bottom:40px;
}
.hero-inner{

    position:relative;

    height:100%;

    display:flex;

    justify-content:flex-end;

    align-items:flex-end;

    padding:
        0
        70px
        55px
        70px;
}

/* ========================================
CYTAT
======================================== */

.hero-quote{

    max-width:420px;

    background:
        rgba(2,22,58,.88);

    padding:
        34px
        38px;

    border-radius:24px;

    color:#fff;

    box-shadow:
        0 12px 35px rgba(0,0,0,.22);

    margin-right:40px;

    margin-bottom:10px;
}

.hero-quote blockquote{

    margin:0 0 20px 0;

    font-size:34px;

    line-height:1.45;

    font-family:
        'Playfair Display',
        serif;

    font-style:italic;
}

.hero-quote cite{

    font-size:14px;

    letter-spacing:2px;

    font-style:normal;

    font-weight:700;

    opacity:.82;
}

/* ========================================
RESPONSIVE
======================================== */

@media(max-width:1200px){

    .hero-quote{

        max-width:360px;
    }

    .hero-quote blockquote{

        font-size:28px;
    }

}

@media(max-width:768px){

    .hero-section{

        aspect-ratio:auto;

        min-height:420px;
    }

    .hero-inner{

        padding:
            30px
            25px;
    }

    .hero-quote{

        max-width:100%;
    }

    .hero-quote blockquote{

        font-size:24px;
    }

}

/* ========================================
   IKONY
======================================== */

.icon-menu-section {
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

.icon-menu {
    background: var(--white);
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    padding: 24px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.icon-menu a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-right: 1px solid #eee;
}

.icon-menu a:last-child {
    border-right: none;
}

.icon-menu i {
    font-size: 30px;
    color: var(--primary-red);
    margin-bottom: 10px;
}

.icon-menu span {
    font-size: 12px;
    font-weight: 700;
}

.icon-menu a:hover {
    color: var(--primary-red);
}

/* ========================================
   REKRUTACJA
======================================== */

.recruitment-section {
    margin-top: 50px;
    margin-bottom: 60px;
}

.recruitment-banner {
    background:
        linear-gradient(
            to right,
            rgba(11,28,60,1) 0%,
            rgba(11,28,60,0.95) 40%,
            rgba(11,28,60,0) 100%
        ),
        url('images/students.jpg');
    background-size: cover;
    background-position: center;
    border-radius: 14px;
    overflow: hidden;
    color: var(--white);
}

.recruitment-content {
    width: 55%;
    padding: 60px;
}

.recruitment-content h2 {
    font-family: var(--font-heading);
    font-size: 48px;
    line-height: 1.1;
    margin-bottom: 20px;
}

.recruitment-content p {
    font-size: 18px;
    margin-bottom: 25px;
}

.recruitment-features {
    display: flex;
    gap: 20px;
    margin-top: 35px;
}

.feature {
    text-align: center;
    font-size: 10px;
    font-weight: 700;
}

.feature i {
    display: block;
    font-size: 24px;
    margin-bottom: 8px;
}

/* ========================================
   AKTUALNOŚCI
======================================== */

.news-section {
    margin-bottom: 70px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.section-header h2 {
    font-size: 40px;
    font-weight: 800;
    color: var(--primary-blue);
}

.section-header a {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-blue);
}

.section-header a:hover {
    color: var(--primary-red);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.news-card {
    background: var(--white);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-content {
    padding: 22px;
}

.news-date {
    display: block;
    font-size: 13px;
    color: #777;
    margin-bottom: 10px;
}

.news-content h3 {
    font-size: 20px;
    line-height: 1.35;
    color: var(--primary-blue);
    margin-bottom: 12px;
}

.news-content p {
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 20px;
}

.news-content a {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-red);
}

.news-content a:hover {
    opacity: 0.8;
}

/* ========================================
   STATYSTYKI
======================================== */

.stats-section {
    margin-bottom: 60px;
}

.stats-wrapper {
    background: var(--primary-blue);
    border-radius: 14px;
    padding: 35px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--white);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 18px;
}

.stat-item i {
    font-size: 38px;
}

.stat-item strong {
    display: block;
    font-size: 38px;
    line-height: 1;
}

.stat-item span {
    font-size: 12px;
    letter-spacing: 1px;
}

/* ========================================
   GALERIA
======================================== */

.gallery-section {
    margin-bottom: 60px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.gallery-item {
    height: 170px;
    border-radius: 12px;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* ========================================
   FOOTER
======================================== */
.main-footer {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 60px 0 40px;
    font-size: 13px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 30px;
}
.footer-col h4 {
    font-size: 14px;
    margin-bottom: 20px;
    letter-spacing: 1px;
}
.footer-col p {
    margin-bottom: 10px;
    color: rgba(255,255,255,0.7);
}
.footer-col p i { width: 20px; color: var(--primary-red); }
.btn-outline {
    border: 1px solid rgba(255,255,255,0.3);
    color: var(--white);
    padding: 8px 15px;
    margin-top: 10px;
}
.btn-outline:hover { background: var(--white); color: var(--primary-blue); }

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a { color: rgba(255,255,255,0.7); }
.footer-col ul a:hover { color: var(--primary-red); }
.footer-col ul i { color: var(--primary-red); font-size: 10px; margin-right: 5px; }

.social-icons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}
.social-icons a {
    width: 35px; height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1877F2;
    color: white;
}
.social-icons .ig { background: #E1306C; }
.social-icons .yt { background: #FF0000; }

.map-placeholder {
    height: 100px;
    background: #ddd;
    border-radius: 6px;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}
/* USUNIĘCIE STARYCH MARGINESÓW DLA LINKÓW W TOP-BAR */
.quick-links a {
    margin-left: 0 !important; /* Usuwamy stary margines, który może psuć układ */
}

/* KONTENER DLA TEKSTU I IKON */
.social-inline-container {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important; 
}

/* NAPIS "Obserwuj nas:" - zmieniamy na biały, bo tło paska jest ciemne */
.social-label {
    font-weight: 700;
    color: var(--white) !important; 
    font-size: 13px;
    text-transform: none;
}

/* IKONY - WIELKOŚĆ I KOLOR */
.social-inline-container a i {
    font-size: 20px !important; /* Wyraźna wielkość */
    display: block;
}

/* FACEBOOK - JASNY NIEBIESKI (lepiej widoczny na granacie niż ciemny niebieski) */
.social-icon-fb {
    color: #4267B2 !important; 
    transition: 0.3s;
}

/* INSTAGRAM - GRADIENT */
.social-icon-ig i {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* EFEKT NAJECHANIA */
.social-inline-container a:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}
