@import url('carousel.css');
@import url('lightbox.css');
/* ==========================================================================
   1. USTAWIENIA OGÓLNE I RESET
   ========================================================================== */
html, body {
        width: 100%;
        margin: 0;
        padding: 0;
        overflow-x: hidden;
    }

html {
    scroll-behavior: smooth;
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    font-family: 'Lato', sans-serif;
    background-color: #ffffff;
    color: #333;
    line-height: 1.6;
}

main {
    flex: 1 0 auto;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ==========================================================================
   2. NAGŁÓWEK I GÓRNA BELKA (DESKTOP)
   ========================================================================== */
header {
    width: 100% !important;
    background: #ffffff !important;
    display: flex !important;
    flex-direction: column !important;
    position: relative !important;
    padding: 0 !important;
}

.top-bar {
    display: flex !important;
    height: 40px !important;
    width: 100% !important;
    background-color: #132b5d !important;
    position: relative !important;
    justify-content: center !important;
    align-items: center !important;
}

.top-bar-content {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    color: #ffffff !important;
    font-size: 0.9rem !important;
}

.top-bar-content a {
    color: #ffffff !important;
    text-decoration: none !important;
}

.top-separator {
    color: #ffffff !important;
    opacity: 0.5;
    margin: 0 20px !important;
    font-size: 0.9rem !important;
}

.top-bar-phone, .top-bar-email {
    display: inline-block !important;
}

.top-socials {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 30px !important;
}

.top-socials a {
    color: #ffffff !important;
    text-decoration: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: transform 0.2s ease, opacity 0.2s ease !important;
}

.top-socials a i {
    font-size: 1.1rem !important;
}

.top-socials a:hover {
    transform: scale(1.2) !important;
    opacity: 0.8 !important;
}

.header-main {
    width: 100% !important;
    background: #ffffff !important;
    padding: 20px 50px 15px 50px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    border-bottom: 1px solid #eee !important;
    box-shadow: 0px 4px 12px rgba(0,0,0,0.03);
}

header h1 {
    font-family: 'Archivo Black', sans-serif !important;
    font-size: 26px !important;
    letter-spacing: 1px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    margin: 0 0 15px 0 !important; 
    transition: 0.3s !important;
    text-align: center !important;
    width: 100% !important;
    display: block !important;
    background: linear-gradient(135deg, #00247d, #cf142b, #00247d) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    filter: drop-shadow(1px 1px 1px rgba(0, 36, 125, 0.15)) !important;
}

header h1 a {
    text-decoration: none !important;
    color: transparent !important; 
    -webkit-text-fill-color: transparent !important;
    display: inline-block !important;
}

/* ==========================================================================
   3. MENU NAWIGACYJNE (DESKTOP)
   ========================================================================== */
#nav-menu {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
}

#nav-menu ul {
    list-style: none !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
}

#nav-menu ul li {
    position: relative !important;
    padding: 10px 15px !important;
}

#nav-menu ul li a {
    text-decoration: none !important;
    color: #000000 !important;
    text-transform: uppercase !important;
    font-size: 0.8rem !important;
    letter-spacing: 1px !important;
    transition: color 0.3s !important;
}

#nav-menu ul li a:hover {
    color: #666666 !important;
}

/* Dropdown na desktopie */
#nav-menu ul li ul {
    display: none !important; 
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    background-color: #ffffff !important;
    min-width: 240px !important;
    box-shadow: 0px 8px 20px rgba(0,0,0,0.08) !important;
    border: 1px solid #eee !important;
    z-index: 9999 !important;
    flex-direction: column !important;
    gap: 0 !important;
    padding: 5px 0 !important;
}

#nav-menu ul li ul li {
    width: 100% !important;
    display: block !important;
    padding: 0 !important;
}

#nav-menu ul li ul li a {
    display: block !important;
    padding: 8px 20px !important;
    font-size: 0.75rem !important;
    text-align: left !important;
    line-height: 1.3 !important;
}

#nav-menu ul li:hover > ul {
    display: flex !important;
}

#nav-menu ul li ul li a:hover {
    background-color: #f9f9f9 !important;
    color: #000000 !important;
}

/* Przycisk hamburgera - ukryty na desktopie */
.hamburger {
    display: none !important;
    width: 30px;
    height: 20px;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    z-index: 2100;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: #000000;
    transition: 0.3s ease-in-out;
}

/* Animacja ikony hamburgera */
.hamburger.open span:nth-child(1),
.hamburger.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.hamburger.open span:nth-child(2),
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3),
.hamburger.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }


/* ==========================================================================
   4. TREŚĆ STRONY I STOPKA (DESKTOP)
   ========================================================================== */
.hero-container {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
    gap: 50px;
}

.bio-content {
    flex: 1.2;
    text-align: left;
}

.bio-subtitle {
    font-style: italic;
    color: #555;
    display: block;
    margin-bottom: 25px;
    font-size: 1.2rem;
}

.bio-text h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.6rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 35px;
    margin-bottom: 15px;
    color: #222;
    /* border-bottom: 1px solid #eee; */
    padding-bottom: 5px;
}

.bio-text p {
    margin-bottom: 15px;
    line-height: 1.8;
}

.bio-text ul, .bio-text ol {
    margin-bottom: 25px;
    padding-left: 20px;
}

.bio-text li {
    margin-bottom: 8px;
    line-height: 1.7;
}

.bio-image {
    flex: 1;
    text-align: right;
    position: sticky;
    top: 140px;
}

.bio-image img {
    max-width: 100%;
    height: auto;
    box-shadow: 15px 15px 40px rgba(0,0,0,0.06);
    display: block;
}

.site-footer {
    flex-shrink: 0;
    width: 100%;
    background-color: #ffffff;
    color: #1a1a1a;
    padding: 30px 0;
    margin-top: 60px;
    border-top: 1px solid #eee;
    font-size: 0.9rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    text-align: center;
}

.footer-container {
    width: 100%;
    display: flex;
    justify-content: center;
}

.back-to-top {
    visibility: hidden;
    background-color: #fff;
    border: 1px solid #eee;
    width: 48px;
    height: 48px;
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 90;
    cursor: pointer;
    border-radius: 50px;
    opacity: 0;
    transition: all .4s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.back-to-top.show {
    visibility: visible !important;
    opacity: 1 !important;
}

.back-to-top .fa {
    position: absolute;
    top: 20px;
    left: 50%;
    width: 12px;
    height: 12px;
    margin-left: -6px;
    border-left: 1px solid #000;
    border-bottom: 1px solid #000;
    transform: rotate(135deg);
    box-sizing: border-box;
}

.azs-wrapper-block {
    background: linear-gradient(to bottom, #132b5d 0%, #2e6caa 100%);
	
	margin-top: 35px;
	margin-bottom: 35px;
	padding-top: 50px;
	padding-bottom: 50px;
	box-sizing: border-box;
	width: 100vw;
	position: relative;
	left: 50%;
	right: 50%;
	margin-left: -50vw;
	margin-right: -50vw;
}

.azs-features-section {
	display: flex;
	justify-content: space-between;
	gap: 20px;
	width: 100%;
	max-width: 1140px; 
	margin: 0 auto;   
	padding: 0 15px;  
	box-sizing: border-box;
}

.azs-features-section *, 
.azs-features-section *::before, 
.azs-features-section *::after {
	box-sizing: border-box;
}

.azs-col {
	flex: 1;
	background: #ffffff; 
	padding: 35px 25px;
	text-align: center;
	border: 1px solid #e2e8f0;
	border-radius: 4px;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.azs-title {
	color: #132b5d !important; 
	font-size: 14pt !important;
	font-weight: bold !important;
	letter-spacing: 0.5px;
	margin: 0 0 25px 0 !important;
	text-transform: uppercase;
}

.azs-list {
	list-style: none !important;
	padding: 0 !important;
	margin: 0 !important;
	text-align: left;
}

.azs-list li {
	font-size: 11pt !important;
	color: #4a5568 !important;
	line-height: 1.6 !important;
	margin-bottom: 14px !important;
	position: relative !important;
	padding-left: 22px !important;
}

.azs-list li:last-child {
	margin-bottom: 0 !important;
}

.azs-list li::before {
	content: "★" !important;
	position: absolute !important;
	left: 0 !important;
	top: 0 !important;
	color: #132b5d !important;
	font-size: 10pt !important;
}

.azs-features-section .azs-col {
	opacity: 0;
	transform: translateY(30px);
	transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.azs-features-section.active .azs-col {
	opacity: 1;
	transform: translateY(0);
}

.nauczyciele-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
    margin-bottom: 40px;
    overflow: hidden;
}

.anim-item {
    opacity: 0;
    transition: all 0.8s ease-out;
}

.slide-in-left { transform: translateX(-100px); }
.slide-in-right { transform: translateX(100px); }

.anim-item.is-visible {
    opacity: 1;
    transform: translateX(0);
}

/* ==========================================================================
   5. RESPONSYWNOŚĆ (WYŁĄCZNIE NA TELEFONY - MAX 768px)
   ========================================================================== */
@media (max-width: 768px) {
    header {
        position: relative !important;
        flex-direction: column !important;
        padding: 0 !important;
    }
    
    .top-bar {
        height: auto !important;
        padding: 8px 10px !important;
    }

    .top-bar-content {
        display: flex !important;
        flex-direction: column !important; 
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        width: 100% !important;
    }

    .top-separator {
        display: none !important;
    }

    .top-bar-phone {
        display: block !important;
        text-align: center !important;
        font-size: 0.82rem !important;
        line-height: 1.4 !important;
        width: 100% !important;
    }

    .top-bar-phone .phone-text {
        display: inline-block !important;
    }

    .top-bar-phone .phone-number {
        display: block !important;
        width: 100% !important;
        text-align: center !important;
        margin-top: 1px !important;
        font-weight: bold !important;
    }

    .top-bar-email {
        display: block !important;
        text-align: center !important;
        font-size: 0.82rem !important;
        width: 100% !important;
    }

    .top-socials {
        gap: 40px !important;
        margin-top: 4px !important;
        width: 100% !important;
        justify-content: center !important;
    }

    .top-socials a {
        padding: 6px 10px !important;
    }

    .top-socials a i {
        font-size: 1.3rem !important;
    }

    .header-main {
        position: static !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        padding: 25px 15px !important; 
        box-shadow: 0px 4px 12px rgba(0,0,0,0.03) !important;
    }

    header h1 {
        margin-bottom: 0 !important;
        font-size: 24px !important; 
        letter-spacing: 0.5px !important;
        text-align: center !important;
        padding: 0 !important;
        width: 100% !important;
        display: block !important;
    }

    .hamburger {
        display: flex !important;
        position: absolute !important;
        top: 25px !important;
        right: 25px !important;
        margin: 0 !important;
        z-index: 2100 !important;
    }

    .hamburger span {
        background: #ffffff !important; 
    }

    .hamburger.active span,
    .hamburger.open span {
        background: #000000 !important;
    }
    
    #nav-menu {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100vh !important;
        background: #ffffff !important;
        z-index: 2000 !important;
        display: none !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        margin-top: 0 !important;
    }

    #nav-menu.open,
    #nav-menu.active {
        display: flex !important;
    }

    #nav-menu ul {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 25px !important;
        width: 100% !important;
    }

    #nav-menu ul li {
        text-align: center !important;
        width: 100% !important;
        padding: 5px 0 !important;
    }

    #nav-menu ul li a {
        font-size: 1.2rem !important;
        letter-spacing: 2px !important;
        color: #000000 !important;
        display: block !important;
    }

    #nav-menu ul li ul {
        position: static !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        box-shadow: none !important;
        border: none !important;
        background: transparent !important;
        margin-top: 15px !important;       
        gap: 15px !important;
        width: 100% !important;
        padding: 0 !important;
    }

    #nav-menu ul li ul li a {
        font-size: 1rem !important;
        text-align: center !important;
    }

    .hero-container {
        flex-direction: column;
        display: block;
        margin-top: 15px;
    }

    .bio-image {
        position: relative !important;
        top: 0 !important;
        width: 100%;
        text-align: center;
        margin-bottom: 20px;
    }

    .bio-image img {
        max-width: 100%;
        height: auto;
        margin: 0 auto;
    }

    .bio-text h2 {
        font-size: 1.2rem;
        text-align: center;
    }

    .footer-content {
        flex-direction: column;
        gap: 10px;
    }

    .back-to-top.show {
        visibility: hidden !important;
    }
    .azs-features-section {
		flex-direction: column;
		gap: 20px;
	}
	.azs-wrapper-block {
		padding: 25px 15px;
	}
    .fa-xs {
        display: none!important;
    }
}