/* Root Variables - Dark Theme with Balanced Magenta-Purple Gradient */
:root {
    --primary-gradient: linear-gradient(135deg, #FF6B6B 0%, #4A2C5A 50%, #5A72C7 100%);
    --secondary-gradient: linear-gradient(90deg, #A93862 0%, #453674 100%);
    --accent-gradient: linear-gradient(90deg, #C54874 0%, #5A4A85 100%);
    --warm-gradient: linear-gradient(90deg, #B83D6B 0%, #453674 100%);
    --cool-gradient: linear-gradient(90deg, #A93862 0%, #4A3B7A 100%);
    --dark-gradient: linear-gradient(90deg, #1f2937 0%, #111827 100%);
    --neon-gradient: linear-gradient(90deg, #C54874 0%, #4A3B7A 100%);
    
    --text-light: #f8fafc;
    --text-muted: #9ca3af;
    --text-accent: #fbbf24;
    --background-primary: #111827;
    --background-secondary: #1f2937;
    --background-card: #374151;
    --border-color: #4b5563;
    
    --card-shadow: 0 20px 40px rgba(0,0,0,0.4);
    --hover-shadow: 0 8px 16px rgba(0,0,0,0.2);
    --glow-shadow: 0 0 30px rgba(251, 191, 36, 0.3);
    
    --border-radius: 20px;
    --border-radius-sm: 10px;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.7;
    color: var(--text-light);
    background: var(--background-primary);
}

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

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-gradient);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-gradient);
}

/* Header & Navigation */
header {
    background: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    cursor: pointer;
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.05);
}

.logo-image {
    height: 50px;
    width: 50px;
    max-width: 200px;
    object-fit: cover;
    transition: var(--transition);
    border-radius: 50%;
    background: transparent;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    /* Prevent layout shift during loading */
    min-height: 48px;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 80%;
}

.nav-link:hover,
.nav-link.active {
    color: white;
}

/* Event Counter Badge */
.nav-menu li {
    position: relative;
}

.event-badge {
    position: absolute;
    top: 0px;
    right: 0px;
    background: linear-gradient(135deg, #FF6B6B, #C54874);
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.6);
    animation: pulse 2s infinite;
    z-index: 10;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-gradient);
    margin: 3px 0;
    transition: var(--transition);
    border-radius: 2px;
}

/* Main Content */
main {
    margin-top: 85px;
}

.page {
    display: none;
    min-height: calc(100vh - 85px);
}

.page.active {
    display: block;
}

/* Hero Section */
.hero {
    background: var(--primary-gradient);
    color: white;
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 100 100\"><circle cx=\"20\" cy=\"20\" r=\"2\" fill=\"white\" opacity=\"0.3\"/><circle cx=\"80\" cy=\"30\" r=\"1\" fill=\"white\" opacity=\"0.5\"/><circle cx=\"40\" cy=\"70\" r=\"1.5\" fill=\"white\" opacity=\"0.4\"/><circle cx=\"90\" cy=\"80\" r=\"1\" fill=\"white\" opacity=\"0.3\"/><circle cx=\"10\" cy=\"90\" r=\"1\" fill=\"white\" opacity=\"0.4\"/></svg>') repeat;
    animation: float 20s infinite linear;
}

/* Compact Hero for non-homepage pages */
.hero.hero-compact {
    min-height: 25vh;
    padding: 2rem 0 !important;
}

.hero-compact .hero-content {
    text-align: center;
}

.hero-compact .hero-text h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 300;
    line-height: 1.3;
}

.hero-compact .hero-text p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    text-align: left;
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-top-row {
    display: flex;
    flex-direction: row;
    gap: 3rem;
    align-items: center;
}

.hero-buttons {
    display: flex;
    justify-content: flex-start;
}

.hero-text {
    flex: 1;
    min-width: 0; /* Allows text to shrink if needed */
}

.hero-text h2 {
    font-size: 3.2rem;
    margin-bottom: 1rem;
    font-weight: 300;
    line-height: 1.25;
    word-spacing: 0.1em;
}

.brand-name {
    font-family: 'Dancing Script', cursive;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 0 30px rgba(255,255,255,0.5);
}

.hero-text p {
    font-size: 1.3rem;
    margin-bottom: 0;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
    align-self: center;
    position: relative;
    z-index: 3;
}

.btn-primary, .btn-secondary {
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.btn-primary {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.btn-primary:hover {
    background: rgba(255, 255, 255, 0.35);
    border-color: rgba(255, 255, 255, 0.7);
    transform: scale(1.05);
}

.btn-secondary {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.4);
    transform: scale(1.05);
}

.hero-image-container {
    position: relative;
    display: flex;
    justify-content: center;
    flex: 0 0 648px;
    align-self: center;
    overflow: visible;
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    transition: box-shadow 0.3s ease;
}

.hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 24px;
    transition: opacity 0.3s ease;
    position: relative;
    z-index: 2;
    border: 3px solid rgba(255, 255, 255, 0.2);
    display: block;
    overflow: hidden;
}

/* Only apply hover effects on devices that can actually hover */
@media (hover: hover) and (pointer: fine) {
    .hero-image-container:hover,
    img:hover {
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
        filter: brightness(1.05);
    }
    
    /* Exception: Don't apply hover effect to fundusze image */
    .funding-logo:hover {
        box-shadow: none;
        filter: none;
    }
}

@media (prefers-reduced-motion: reduce) {
	.hero-image,
	.hero-image-container {
		transition: none;
		transform: none;
		filter: none;
	}

	.hero-image-container:hover,
	.hero-image-container:hover .hero-image {
		transform: none;
		filter: none;
	}
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-icon {
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    animation: float 12s ease-in-out infinite;
    z-index: 1;
}

.floating-icon:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-icon:nth-child(2) {
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.floating-icon:nth-child(3) {
    bottom: 30%;
    left: 20%;
    animation-delay: 4s;
}

.floating-icon i {
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.5rem;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2, .section-header h3 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--text-light);
    font-weight: 600;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Schedule Section */
.schedule-section {
    padding: 6rem 0;
    background: var(--background-secondary);
}

.schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    padding: 0 1rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Responsive grid for different numbers of days */
@media (min-width: 768px) {
    .schedule-grid[data-days="1"] {
        grid-template-columns: 1fr;
        max-width: 600px;
    }
    
    .schedule-grid[data-days="2"] {
        grid-template-columns: 1fr 1fr;
        max-width: 1000px;
    }
    
    .schedule-grid[data-days="3"] {
        grid-template-columns: repeat(3, 1fr);
        max-width: 1200px;
    }
    
    .schedule-grid[data-days="4"] {
        grid-template-columns: repeat(2, 1fr);
        max-width: 1000px;
    }
    
    .schedule-grid[data-days="5"] {
        grid-template-columns: repeat(3, 1fr);
        max-width: 1200px;
    }
    
    .schedule-grid[data-days="6"] {
        grid-template-columns: repeat(3, 1fr);
        max-width: 1200px;
    }
    
    .schedule-grid[data-days="7"] {
        grid-template-columns: repeat(3, 1fr);
        max-width: 1200px;
    }
}

@media (min-width: 1200px) {
    .schedule-grid[data-days="4"] {
        grid-template-columns: repeat(4, 1fr);
        max-width: 1400px;
    }
    
    .schedule-grid[data-days="5"] {
        grid-template-columns: repeat(5, 1fr);
        max-width: 1600px;
    }
}

.schedule-day {
    background: var(--background-card);
    border-radius: var(--border-radius);
    padding: 1.5rem 1rem;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.schedule-day::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-gradient);
}


.schedule-day h4 {
    color: var(--text-light);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 600;
}

.schedule-day h4 i {
    background: var(--warm-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.lesson {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--background-secondary);
    border-radius: var(--border-radius-sm);
    border-left: 4px solid;
    border-left-color: #ff6b6b;
    transform: translateX(5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    border: 1px solid var(--border-color);
}

.lesson:last-child {
    margin-bottom: 0;
}

.lesson-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.lesson-icon i {
    color: white;
    font-size: 1.2rem;
}

.lesson-details {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    flex-grow: 1;
}

.time {
    font-weight: 700;
    color: var(--text-accent);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.class {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-light);
}

.instructor {
    color: var(--text-muted);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Upcoming Events Section */
.upcoming-events-section {
    padding: 6rem 0;
    background: var(--background-primary);
}

.upcoming-events-section .events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.upcoming-event-card {
    background: var(--background-card);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    position: relative;
    cursor: pointer;
    border: 1px solid var(--border-color);
}




.upcoming-event-card .image-container {
    min-height: 200px;
    max-height: 400px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--background-card);
    padding: 1rem;
}

.upcoming-event-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
}


/* Service cards need different image handling */
.service-card .image-container {
    min-height: 200px;
    max-height: 250px;
}

.service-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 12px;
    border: 3px solid rgba(255, 255, 255, 0.2);
}

#uslugi .event-card img {
    width: 336px;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.upcoming-event-card .event-content {
    padding: 1.5rem;
    position: relative;
    z-index: 2;
}

.upcoming-event-card .event-header {
    padding-bottom: 0;
}

.upcoming-event-card .event-footer {
    padding-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.upcoming-event-card .event-content h4 {
    color: var(--text-light);
    margin-bottom: 0;
    font-size: 1.4rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.upcoming-event-card .event-content h4 i {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.event-cta-btn {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    width: auto;
    margin: 0;
}

.event-cta-btn:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-2px);
}

/* Wydarzenia Page */
.wydarzenia-hero {
    background: var(--primary-gradient);
    color: white;
    padding: 8rem 0 6rem;
    text-align: center;
}

.wydarzenia-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.wydarzenia-hero p {
    font-size: 1.3rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.wydarzenia-grid-section {
    padding: 6rem 0;
    background: var(--background-primary);
}

.wydarzenia-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
}

.wydarzenie-card {
    background: var(--background-card);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid var(--border-color);
    position: relative;
}




.wydarzenie-card .image-container {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.wydarzenie-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    margin: 1rem;
    height: calc(250px - 2rem);
}


.wydarzenie-card .event-content {
    padding: 2rem;
    position: relative;
    z-index: 2;
}

.wydarzenie-card .event-date {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.wydarzenie-card .event-title {
    color: var(--text-light);
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.wydarzenie-cta-btn {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.wydarzenie-cta-btn:hover {
    transform: scale(1.05);
    filter: brightness(1.2);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .wydarzenia-hero h1 {
        font-size: 2.5rem;
    }
    
    .wydarzenia-hero p {
        font-size: 1.1rem;
    }
    
    .wydarzenia-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Events Section */
#uslugi {
    padding: 6rem 0;
    background: var(--background-primary);
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Services page - horizontal list layout */
#uslugi .events-grid {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    max-width: 1000px;
}

#uslugi .event-card {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    min-height: 200px;
}

#uslugi .image-container {
    flex: 0 0 360px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#uslugi .event-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 2rem;
}

/* Mobile responsive for services */
@media (max-width: 768px) {
    #uslugi .event-card {
        flex-direction: column;
        min-height: auto;
    }
    
    #uslugi .image-container {
        flex: none;
        width: 100%;
    }
    
    #uslugi .event-card img {
        width: 100%;
        height: 200px;
    }
    
    #uslugi .event-content {
        padding: 1.5rem;
    }
}

.event-card {
    background: var(--background-card);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    position: relative;
    cursor: pointer;
    border: 1px solid var(--border-color);
}




.event-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}


.event-content {
    padding: 1.5rem;
    position: relative;
    z-index: 2;
}

.event-content h3 {
    color: var(--text-light);
    margin-bottom: 0.8rem;
    font-size: 1.4rem;
    font-weight: 600;
}

.event-date {
    background: var(--warm-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.event-content p:last-child {
    color: var(--text-muted);
    line-height: 1.7;
}

/* Service Cards */
.service-card .event-content h3 {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.service-card .event-content h3 i {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.event-price {
    background: var(--warm-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.service-btn {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.service-btn:hover {
    transform: scale(1.05);
    filter: brightness(1.2);
}

/* Contact Section */
#kontakt {
    padding: 6rem 0;
    background: var(--background-secondary);
    color: var(--text-light);
    position: relative;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    position: relative;
    z-index: 2;
}

.about-section h3,
.contact-info h3 {
    color: var(--text-dark);
    margin-bottom: 2rem;
    font-size: 2rem;
    font-weight: 600;
}

.about-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin: 1.5rem 0;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}


.about-section p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.contact-details {
    background: var(--background-card);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.contact-item {
    margin-bottom: 2rem;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-item h4 {
    color: var(--text-dark);
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.contact-item h4 i {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-item p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 1.1rem;
}

.email-link {
    color: var(--text-accent);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border-bottom: 2px solid transparent;
}

.email-link:hover {
    color: var(--text-light);
    border-bottom-color: var(--text-accent);
    text-shadow: var(--glow-shadow);
}

.contact-form {
    background: white;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
}

.contact-form h4 {
    color: var(--text-dark);
    margin-bottom: 2rem;
    font-size: 1.4rem;
    font-weight: 600;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
    background: var(--background-card);
    color: var(--text-light);
    transition: var(--transition);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--text-muted);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--text-accent);
    background: var(--background-secondary);
    box-shadow: var(--glow-shadow);
}

.contact-form button {
    background: var(--warm-gradient);
    color: white;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 10px 30px rgba(245, 87, 108, 0.4);
}

.contact-form button:hover {
    transform: scale(1.05);
    filter: brightness(1.2);
}

/* Instructors Section */
.instructors-section {
    margin-top: 4rem;
    padding-top: 4rem;
    border-top: 2px solid #ecf0f1;
    position: relative;
    z-index: 2;
}

.instructors-section h3 {
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
    font-weight: 600;
}

.instructors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.instructor-card {
    background: var(--background-card);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.instructor-card:hover {
    transform: translateY(-2px);
}

.instructor-card img {
    width: 140px !important;
    height: 140px !important;
    border-radius: 50% !important;
    margin-bottom: 1.5rem;
    object-fit: cover;
    border: 4px solid var(--border-color);
    transition: var(--transition);
}

.instructor-card:hover img {
    border-color: var(--text-accent);
    box-shadow: var(--glow-shadow);
}

.instructor-card h4 {
    color: var(--text-light);
    margin-bottom: 0.8rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.instructor-card p:first-of-type {
    color: #FF6B6B;
    font-weight: 700;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.instructor-card p:last-of-type {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

.instructor-quote {
    display: block;
    margin-top: 1rem;
    padding: 0.8rem 1rem;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.1), rgba(196, 72, 116, 0.1));
    border-left: 3px solid #FF6B6B;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    font-weight: 500;
    color: #FF6B6B;
    text-align: center;
    position: relative;
}

/* Footer */
footer {
    background: var(--dark-gradient);
    color: white;
    padding: 4rem 0 2rem;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--primary-gradient);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h4 {
    margin-bottom: 1.5rem;
    color: var(--text-light);
    font-size: 1.3rem;
    font-weight: 600;
}

.footer-section p {
    line-height: 1.7;
    color: rgba(255,255,255,0.8);
    font-size: 1.1rem;
}

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

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.1rem;
}

.footer-section a:hover {
    color: white;
    transform: translateX(5px);
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.social-links a:hover {
    background: var(--primary-gradient);
    transform: translateY(-5px);
}

/* EU Funding Section */
.footer-funding {
    padding: 2rem 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 2rem;
}

.funding-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.funding-text {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
    order: 1;
}

.funding-logo {
    height: 60px;
    width: auto;
    max-width: 100%;
    order: 2;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
    font-size: 1rem;
}

/* Responsive funding section */
@media (max-width: 1024px) {
    .hero-content {
        text-align: center;
    }
    
    .hero-top-row {
        flex-direction: column;
        gap: 2rem;
    }
    
    .hero-text {
        order: 2;
    }
    
    .hero-image-container {
        order: 1;
        flex: none;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .funding-logo {
        height: 50px;
        max-width: 90vw;
    }
    
    .funding-text {
        font-size: 0.85rem;
    }
}

/* Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

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

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Mobile Responsive */
@media (max-width: 900px) {
    .nav-menu {
        position: fixed;
        left: 0;
        top: 70px;
        max-height: 0;
        opacity: 0;
        visibility: hidden;
        overflow: hidden;
        flex-direction: column;
        background: rgba(17, 24, 39, 0.95);
        backdrop-filter: blur(20px);
        width: 100%;
        text-align: center;
        transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease, visibility 0.4s ease;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        padding: 2rem 0;
        gap: 1rem;
    }

    .nav-menu.active {
        max-height: 300px;
        opacity: 1;
        visibility: visible;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero {
        padding: 4rem 0;
        min-height: 70vh;
    }

    .hero-text h2 {
        font-size: 2.4rem;
        line-height: 1.3;
        word-spacing: 0.08em;
    }

    .hero-text p {
        font-size: 1.1rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .btn-primary, .btn-secondary {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }

    .schedule-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .events-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .upcoming-events-section .events-grid {
        grid-template-columns: 1fr;
    }

    .instructors-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .section-header h2, .section-header h3 {
        font-size: 2.2rem;
    }

    .lesson {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .lesson-details {
        align-items: center;
    }

    .logo-image {
        height: 40px;
        width: 40px;
        max-width: 150px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 3rem 0;
    }

    .hero-text h2 {
        font-size: 2rem;
        line-height: 1.35;
        word-spacing: 0.05em;
    }

    .hero.hero-compact {
        min-height: 20vh;
        padding: 1.5rem 0 !important;
    }

    .hero-compact .hero-text h1 {
        font-size: 1.8rem;
    }

    .hero-compact .hero-text p {
        font-size: 1rem;
    }

    .schedule-section,
    #uslugi,
    #kontakt {
        padding: 4rem 0;
    }

    .schedule-day,
    .contact-details,
    .contact-form {
        padding: 1rem;
    }

    .instructor-card {
        padding: 1.5rem;
    }

    .instructor-card img {
        width: 120px !important;
        height: 120px !important;
        border-radius: 50% !important;
    }
    
    .instructors-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
        max-width: 250px;
    }
}

/* Facebook Event Link Styling - Inline Version */
.facebook-event-link-inline {
    display: inline;
    background: #1877f2;
    color: white !important;
    text-decoration: none;
    margin-left: 6px;
    padding: 2px 3px;
    border-radius: 2px;
    transition: all 0.3s ease;
    font-size: 0.8em;
    vertical-align: baseline;
    position: relative;
    top: -2px;
    line-height: 1;
}

.facebook-event-link-inline:hover {
    background: #166fe5;
    transform: scale(1.05);
}

.facebook-event-link-inline:focus {
    outline: 2px solid var(--text-accent);
    outline-offset: 2px;
}

/* Hover tooltip */
.facebook-event-link-inline::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 1000;
    margin-bottom: 5px;
}

.facebook-event-link-inline:hover::after {
    opacity: 1;
    visibility: visible;
}