/*
Theme Name: FS TF Theme
Author: Tomasz Florek
Author URI:
Version: 1.2
Description: Szablon dla firmy szkoleniowej z listą kursów.
*/
/* CSS Variables for Color Scheme */
:root {
    --primary-orange: rgb(253, 73, 8);
    --primary-blue: rgb(8, 106, 253);
    --orange-light: rgba(253, 73, 8, 0.1);
    --blue-light: rgba(8, 106, 253, 0.1);
    --orange-dark: rgb(220, 60, 5);
    --blue-dark: rgb(5, 85, 200);
    --gradient-blue-dark: linear-gradient(135deg, var(--primary-blue), var(--blue-dark));
    --gradient-dark-blue: linear-gradient(135deg, var(--blue-dark), var(--primary-blue));
}

/* Font Loading Screen */
.font-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(212, 212, 212, 0.95));
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.font-loading-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

.font-loading-content {
    text-align: center;
    color: white;
}

.font-loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(136, 136, 136, 0.3);
    border-top: 4px solid rgb(14, 139, 223);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
    .font-loading-spinner {
        width: 50px;
        height: 50px;
        margin: 0 auto 15px;
    }
    
    .font-loading-content {
        padding: 0 20px;
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Font loading states - no hiding of body, just overlay management */
body.fonts-loaded .font-loading-overlay {
    opacity: 0;
    visibility: hidden;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    font-display: swap;
}

/* Global link styles - remove browser defaults */
a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

/* Content area links - styled for readability */
.content a,
.post-content a,
.page-content a,
.entry-content a,
.textwidget a {
    color: var(--primary-blue);
    text-decoration: underline;
    text-decoration-color: rgba(8, 106, 253, 0.3);
    text-underline-offset: 2px;
}

.content a:hover,
.post-content a:hover,
.page-content a:hover,
.entry-content a:hover,
.textwidget a:hover {
    color: var(--primary-orange);
    text-decoration-color: var(--primary-orange);
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: black;
}

.nav-logo i {
    display: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 400;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 16px;
    border-radius: 8px;
}

.nav-link:hover {
    color: var(--primary-orange);
}

.nav-link.active,
.nav-item.active .nav-link,
.nav-item.current-menu-item .nav-link,
.nav-item.current_page_item .nav-link {
    color: white !important;
    background: var(--primary-orange) !important;
    border-radius: 8px;
}





.nav-link:not(.active)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 3px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-orange);
    transition: width 0.3s ease;
    border-radius: 1px;
}

.nav-link:not(.active):hover::after {
    width: 60%;
}

.nav-link.active:hover,
.nav-item.active .nav-link:hover,
.nav-item.current-menu-item .nav-link:hover,
.nav-item.current_page_item .nav-link:hover {
    background: #e55a2b !important;
    color: white !important;
}

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

.bar {
    width: 25px;
    height: 3px;
    background: var(--gradient-blue-dark);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    animation: slowZoom 20s ease-in-out infinite alternate;
    transition: opacity 0.3s ease-in-out;
}

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

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(253, 73, 8, 0.8), rgba(8, 106, 253, 0.6));
    z-index: -1;
}

.hero-content {
    text-align: center;
    color: white;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.4;
    transition: font-size 0.3s ease;
}

.title-line {
    display: block;
    opacity: 0;
    transform: translateY(50px);
    animation: slideUp 1s ease forwards;
}

.title-line:nth-child(2) {
    animation-delay: 0.3s;
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    margin-bottom: 2.5rem;
    opacity: 0;
    animation: fadeIn 1s ease 0.8s forwards;
    transition: font-size 0.3s ease;
    line-height: 1.6;
}

.hero-subtitle span {
    display: block;
    margin-bottom: 0.5rem;
}

/* Brush highlight effect */
.highlight-brush {
    position: relative;
    display: inline-block;
    z-index: 1;
}

.highlight-brush::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -8px;
    right: -8px;
    height: 120%;
    transform: translateY(-50%) rotate(-0.5deg);
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='20' viewBox='0 0 100 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2,10 Q5,2 15,8 T25,12 Q35,4 45,10 T55,8 Q65,14 75,10 T85,12 Q90,6 98,10' stroke='none' fill='%23FFD700' fill-opacity='1'/%3E%3C/svg%3E");
    background-repeat: repeat-x;
    background-size: 40px 100%;
    z-index: -1;
    opacity: 1;
}

.title-line.highlight-brush::before {
    height: 100%;
    top: 10%;
    background-size: 50px 100%;
}

.hero-subtitle .highlight-brush::before {
    height: 90%;
    background-size: 35px 100%;
    transform: translateY(-50%) rotate(0.3deg);
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeIn 1s ease 1.2s forwards;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary-orange);
    color: white;
    border-color: var(--primary-orange);
}

.btn-primary:hover {
    background: var(--orange-dark);
    color: white;
    border-color: var(--orange-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px var(--orange-light);
}

.btn-secondary {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
}

.btn-secondary:hover {
    background: var(--blue-dark);
    color: white;
    border-color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px var(--blue-light);
}

.btn-outline {
    background: transparent;
    color: var(--primary-orange);
    border-color: var(--primary-orange);
}

.btn-outline:hover {
    background: var(--primary-orange);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px var(--orange-light);
}

.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-indicator {
    background: white;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.5rem;
    opacity: 0.9;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
    cursor: pointer;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Features Section */
.features {
    padding: 60px 0;
    background: #f8f9fa;
}

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

.feature-card {
    background: white;
    padding: 1.5rem 1.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
    transition: transform 0.3s ease;
}

.feature-card:nth-child(odd) .feature-icon {
    background: var(--gradient-blue-dark);
}

.feature-card:nth-child(even) .feature-icon {
    background: var(--gradient-dark-blue);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #333;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

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

.section-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--gradient-blue-dark);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: font-size 0.3s ease;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.section-footer {
    display: flex;
    justify-content: center;
    margin-top: 2.5rem;
}

.btn-count {
    opacity: 0.8;
    font-weight: 400;
}

/* Courses Section */
.courses {
    padding: 60px 0;
    background: white;
}

.courses-grid,
.courses-page .courses-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 2rem;
}

/* WordPress dodaje <li> dla każdego postu, musimy je stylować jako elementy grid */
.courses-grid .wp-block-post,
.courses-page .courses-grid .wp-block-post {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Upewnij się, że post-template też używa grid */
.courses-grid .wp-block-post-template,
.courses-page .courses-grid .wp-block-post-template {
    display: contents;
}

/* Style for course button link */
.course-btn-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    position: relative;
    font-size: 0 !important; /* Hide original text */
}

.course-btn-link i {
    font-size: 0.9rem;
}

.course-btn-link::before {
    content: "\f05a"; /* FontAwesome info-circle icon */
    font-family: "Font Awesome 6 Free";
    font-weight: 700;
    font-size: 0.9rem;
    margin-right: 0.5rem;
}

.course-btn-link::after {
    content: "Zobacz szczegóły";
    font-size: 1rem !important;
    font-weight: 700;
    color: inherit;
}

/* Upewnij się, że wp-block-query nie psuje layoutu */
.courses-grid .wp-block-query {
    display: contents;
}

/* Media query dla 2 kolumn w zakresie 500px-768px */
@media (min-width: 500px) and (max-width: 768px) {
    .courses-grid,
    .courses .courses-grid,
    .courses-page .courses-grid,
    .news-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .courses-grid .wp-block-post-template,
    .courses-page .courses-grid .wp-block-post-template {
        display: contents;
    }
    
    /* Ukryj trzeci element w sekcjach kursów i aktualności na stronie głównej */
    .courses .course-card:nth-child(3),
    .news .news-card:nth-child(3) {
        display: none !important;
    }
}

/* Media query dla 3 kolumn w zakresie 769px-1100px */
@media (min-width: 769px) and (max-width: 1100px) {
    .courses-grid,
    .courses .courses-grid,
    .courses-page .courses-grid,
    .news-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
    
    .courses-grid .wp-block-post-template,
    .courses-page .courses-grid .wp-block-post-template {
        display: contents;
    }
}

/* Media query dla bardzo małych ekranów - 1 kolumna poniżej 500px */
@media (max-width: 499px) {
    .courses-grid,
    .courses .courses-grid,
    .courses-page .courses-grid,
    .news-grid {
        grid-template-columns: 1fr !important;
    }
    
    .courses-grid .wp-block-post-template,
    .courses-page .courses-grid .wp-block-post-template {
        display: contents;
    }
}

@media (min-width: 1101px) and (max-width: 1200px) {
    .courses-grid,
    .courses-page .courses-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .courses-grid .wp-block-post-template,
    .courses-page .courses-grid .wp-block-post-template {
        display: contents;
    }
}

.course-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.course-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    flex-shrink: 0;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Default course image container with icon */
.course-default-container {
    position: relative;
    display: inline-block;
    width: 100%;
    height: 100%;
}

.course-default-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.9);
    z-index: 1;
    text-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.course-card:hover .course-default-icon {
    color: rgba(255, 255, 255, 1);
    transform: translate(-50%, -50%) scale(1.1);
}

/* Image transitions */
.course-image img {
    transition: transform 0.3s ease;
}

.course-card:hover .course-image img {
    transform: scale(1.1);
}

.course-badge, .popular-course{
    background: var(--primary-orange);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}
.popular-course{
    line-height: 40px;
}
.course-badge {
    position: absolute;
    top: 15px;
    right: 15px;
}
.course-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.course-content h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #333;
}

.course-content p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.course-details {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.course-duration,
.course-level {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-size: 0.9rem;
}

.course-price {
    margin-bottom: 0;
}

.price {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-blue-dark);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* About Section */
.about {
    padding: 60px 0;
    background: #f8f9fa;
}

.about-content {
    display: block;
    text-align: center;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #1438d6;
}

.lead {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 100%;
    margin: 0 auto;
}

.stat {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.stat-number, .stat-number-inactive {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-dark-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #666;
    font-weight: 400;
}



/* News Section */
.news {
    padding: 60px 0;
    background: white;
}

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

.news-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.news-image {
    height: 200px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Image transitions */
.news-image img {
    transition: transform 0.3s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-content {
    padding: 1.5rem;
}

.news-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.news-date {
    color: #666;
    font-size: 0.9rem;
}

.news-category {
    background: var(--primary-orange);
    color: white;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 700;
}

.news-content h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #333;
}

.news-content p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.news-link {
    color: var(--primary-orange);
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.news-link:hover {
    gap: 1rem;
}

/* Contact Section */
.contact {
    padding: 60px 0;
    background: #f8f9fa;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #333;
}

.contact-info p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Removed old grid styles for .contact-details - now using .info-list for layout */

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-blue-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-text h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.contact-text p {
    color: #666;
    margin: 0;
}

.contact-form {
    background: white;
    padding: 1.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-cta {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

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

.cta-card h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #333;
}

.cta-card p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-cta-section {
    padding: 50px 0;
    background: #f8f9fa;
}

.form-group {
    margin-bottom: 0.1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 3px var(--orange-light);
}

.form-group:nth-child(even) input:focus,
.form-group:nth-child(even) select:focus,
.form-group:nth-child(even) textarea:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px var(--blue-light);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: #1a1a1a;
    color: white;
    padding: 40px 0 20px;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.footer-logo i {
    display: none;
}

.footer-section p {
    color: #ccc;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: white;
}

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

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

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--primary-orange);
}

/* WordPress Footer Widget Styles */
.footer .widget {
    margin-bottom: 2rem;
}

.footer .widget .widget-title,
.footer .widget h3,
.footer .widget h4 {
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer .widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer .widget ul li {
    margin-bottom: 0.5rem;
}

.footer .widget ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer .widget ul li a:hover {
    color: var(--primary-orange);
}

.footer .widget .textwidget {
    color: #ccc;
    line-height: 1.6;
}

.footer .widget .textwidget p {
    margin-bottom: 0.5rem;
}

.footer .widget .textwidget i {
    margin-right: 0.5rem;
    color: var(--primary-orange);
}

/* Hide duplicate footer sections when widgets are active - but allow animations */
.footer .widget + .footer-section:not(.widget) {
    display: none !important;
}

/* WordPress menu widget in footer */
.footer .widget_nav_menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer .widget_nav_menu ul li {
    margin-bottom: 0.5rem;
}

.footer .widget_nav_menu ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer .widget_nav_menu ul li a:hover {
    color: var(--primary-orange);
}

/* Sidebar Widget Styles */
.sidebar-widget {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.sidebar-widget:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.sidebar-widget h3 {
    color: var(--primary-blue);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--blue-light);
    position: relative;
}

.sidebar-widget h3::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-orange);
    border-radius: 1px;
}

/* Recent Posts Widget */
.recent-posts {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.recent-post {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: rgba(8, 106, 253, 0.02);
    border-radius: 8px;
    border-left: 3px solid var(--primary-blue);
    transition: all 0.3s ease;
}

.recent-post:hover {
    background: rgba(8, 106, 253, 0.05);
    border-left-color: var(--primary-orange);
    transform: translateX(5px);
}

.recent-post-meta {
    flex-shrink: 0;
    background: var(--primary-blue);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    text-align: center;
    min-width: 60px;
}

.recent-date {
    font-size: 0.85rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.recent-post h4 {
    margin: 0;
    flex: 1;
}

.recent-post h4 a {
    color: #333;
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.4;
    display: block;
    transition: color 0.3s ease;
}

.recent-post h4 a:hover {
    color: var(--primary-orange);
}

.recent-post h4 a:focus {
    outline: 2px solid var(--primary-orange);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Category List Widget */
.category-list {
    list-style: none;
}

.category-list li {
    margin-bottom: 0.5rem;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #666;
    text-decoration: none;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.category-list a:hover {
    color: var(--primary-orange);
}

.category-list a.active {
    color: var(--primary-orange);
    font-weight: 700;
}

.category-list a.active span {
    background: var(--primary-orange);
    color: white;
}

.category-list span {
    background: #f8f9fa;
    color: #666;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
}

/* Tag Cloud Widget */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-cloud .tag {
    background: var(--blue-light);
    color: var(--primary-blue);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 400;
    transition: all 0.3s ease;
    border: 1px solid rgba(8, 106, 253, 0.2);
}

.tag-cloud .tag:hover {
    background: var(--primary-orange);
    color: white;
    border-color: var(--primary-orange);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(253, 73, 8, 0.3);
}

.tag-cloud .tag:focus {
    outline: 2px solid var(--primary-orange);
    outline-offset: 2px;
}

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

.social-links a, .social-links span{
    width: 40px;
    height: 40px;
    background: #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links div[role="listitem"]:nth-child(odd) a:hover, 
.social-links div[role="listitem"]:nth-child(odd) span:hover {
    background: var(--primary-orange);
    transform: translateY(-2px);
}

.social-links div[role="listitem"]:nth-child(even) a:hover, 
.social-links div[role="listitem"]:nth-child(even) span:hover {
    background: var(--primary-blue);
    transform: translateY(-2px);
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: #ccc;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    text-align: center;
    color: #ccc;
}

/* Responsive Design - Hamburger menu poniżej 950px */
@media (max-width: 950px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 1rem 0;
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(10px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .about-section .about-layout,
    .about-page-content .about-layout,
    .about-layout {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
}

/* Responsive Design - Mobile styles poniżej 500px */
@media (max-width: 499px) {
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .about-content {
        display: block;
        text-align: center;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .courses-grid,
    .courses .courses-grid,
    .courses-page .courses-grid {
        grid-template-columns: 1fr !important;
    }
    
    .courses-grid .wp-block-post-template,
    .courses-page .courses-grid .wp-block-post-template {
        display: contents;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .highlight-brush::before {
        left: -4px;
        right: -4px;
        background-size: 30px 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .course-content {
        padding: 2rem 1.5rem;
    }
    
    .news-content {
        padding: 1.5rem;
    }
    
    /* Page header mobile styles for very small screens */
    .page-header {
        padding: 50px 0 30px;
    }
    
    .page-header-content h1 {
        font-size: 1.8rem;
        line-height: 1.1;
    }
    
    .page-header-content p {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }
    
    /* News page mobile styles for very small screens */
    .news-page {
        padding: 15px 0;
    }
    
    .news-page .news-layout {
        gap: 1rem !important;
    }
    
    .news-page .news-main {
        gap: 1rem;
    }
    
    .news-page .article-content {
        padding: 1rem;
    }
    
    .news-page .article-content h2 {
        font-size: 1.2rem;
        line-height: 1.4;
        word-wrap: break-word;
        hyphens: auto;
    }
    
    .news-page .article-excerpt {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    .news-page .sidebar-widget {
        padding: 1rem;
    }
    
    .news-page .article-image {
        height: 200px;
    }
    
    .news-page .popular-post {
        padding: 0.8rem;
    }
    
    .news-page .popular-post h4 {
        font-size: 0.9rem;
        line-height: 1.3;
    }
    
    /* Image responsive fixes for very small screens */
    .news-page .article-image-wrapper {
        height: 180px;
    }
    
    .news-page .popular-post img {
        width: 80px;
        height: 60px;
        object-fit: cover;
    }
}

/* Scroll animations */
.feature-card,
.course-card,
.news-card,
.about-text,
.contact-info,
.contact-form,
.footer-section {
    opacity: 0 !important;
    transform: translateY(30px) !important;
    transition: all 0.6s ease;
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible,
.feature-card.visible,
.course-card.visible,
.news-card.visible,
.about-text.visible,
.contact-info.visible,
.contact-form.visible,
.footer-section.visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Loading animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}



/* Page Header Styles */
.page-header {
    padding: 80px 0 50px;
    background: var(--gradient-blue-dark);
    color: white;
    text-align: center;
}

.page-header-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.page-header-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.breadcrumb a:hover {
    opacity: 1;
}

.breadcrumb span {
    opacity: 0.6;
}

/* Fix breadcrumb alignment - make all elements inline */
.breadcrumb .wp-block-post-title,
.breadcrumb p.wp-block-post-title {
    display: inline;
    margin: 0;
    padding: 0;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    color: white;
    opacity: 1;
}

.breadcrumb .current-page,
.breadcrumb .breadcrumb-current {
    color: white;
    opacity: 1;
    font-weight: 400;
}

/* Additional breadcrumb fixes */
.breadcrumb .breadcrumb-current.wp-block-post-title,
.breadcrumb .breadcrumb-current p.wp-block-post-title {
    display: inline;
    margin: 0;
    padding: 0;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    color: white;
    opacity: 1;
}

/* Course Filters */
.course-filters {
    padding: 40px 0;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.filter-bar {
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-group label {
    font-weight: 400;
    color: #333;
    white-space: nowrap;
}

.filter-group select {
    padding: 8px 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    background: white;
    font-size: 0.9rem;
    min-width: 150px;
    transition: border-color 0.3s ease;
}

.filter-group select:focus {
    outline: none;
    border-color: var(--primary-orange);
}

/* Courses Page */
.courses-page {
    padding: 40px 0;
    background: white;
}

.course-category {
    display: inline-block;
    background: white;
    color: var(--blue-dark);
    align-self: flex-start;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    border: 1px solid var(--blue-dark);
}

.course-features {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8rem;
    color: #666;
}

.course-students {
    color: #28a745;
}

.course-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.course-actions .btn {
    flex: 1;
    min-width: 120px;
    justify-content: center;
}

/* Course button positioning */
.course-content {
    position: relative;
}

.course-button-positioned {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: calc(100% - 2rem);
    margin: 0 1rem;
    text-align: center;
}

.course-actions-placeholder {
    visibility: hidden;
    pointer-events: none;
}

.price-note {
    font-size: 0.8rem;
    color: #666;
    font-weight: 400;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 60px 20px;
}

.no-results-content i {
    font-size: 4rem;
    color: #ccc;
    margin-bottom: 1rem;
}

.no-results-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.no-results-content p {
    color: #666;
    margin-bottom: 2rem;
}

/* CTA Section */
.cta-section {
    padding: 50px 0;
    background: linear-gradient(135deg, #1a1a1a, #333);
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-secondary {
    background: transparent;
    color: white;
    border-color: white;
}

.btn-secondary:hover {
    background: white;
    color: #333;
}

/* News Page Styles */
.news-page {
    padding: 40px 0;
    background: white;
}

/* Napraw WordPress wrapper */
.news-page .wp-site-blocks {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.news-page .news-layout {
    display: grid !important;
    grid-template-columns: 2fr 1fr !important;
    gap: 2rem !important;
    align-items: start !important;
}

/* Upewnij się, że główna treść i sidebar są obok siebie */
.news-page .news-main {
    grid-column: 1 !important;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.news-page .news-sidebar {
    grid-column: 2 !important;
}

/* Upewnij się, że WordPress query nie psuje layoutu */
.news-page .wp-block-query {
    display: contents;
}

.news-page .wp-block-post-template {
    display: contents;
}

.news-page .wp-block-post {
    list-style: none;
    margin: 0;
    padding: 0;
}

.news-page .news-article {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.news-page .news-article.featured {
    border: 2px solid var(--primary-orange);
}

/* Article image container */
.news-page .article-image-container {
    position: relative;
}

/* Hide container when featured image is empty */
.news-page .article-image-container:has(.wp-block-post-featured-image:empty) {
    display: none !important;
}

/* Fallback for browsers that don't support :has() */
.news-page .wp-block-post-featured-image:empty {
    display: none !important;
}

.news-page .article-image-container:empty {
    display: none !important;
}

/* Article image wrapper - only show when has image */
.news-page .article-image-wrapper {
    height: 250px;
    overflow: hidden;
    border-radius: 15px 15px 0 0;
}

.news-page .article-image-wrapper:empty {
    display: none !important;
    height: 0 !important;
}

.news-page .article-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Legacy support for old article-image class */
.news-page .article-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.news-page .article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-page .article-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-orange);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    z-index: 2;
}

/* Badge positioning in container */
.news-page .article-image-container .article-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 2;
}

.news-page .article-content {
    padding: 2rem;
}

.news-page .article-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.news-page .article-date,
.news-page .article-author {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: #666;
    font-size: 0.9rem;
}

.news-page .article-category {
    background: var(--primary-orange);
    color: white;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 700;
}

.news-page .article-content h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.news-page .article-excerpt {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 1.1rem;
}

.news-page .article-content-full {
    color: #555;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.news-page .article-content-full h3 {
    color: #333;
    margin: 1.5rem 0 1rem;
}

.news-page .article-content-full ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.news-page .article-content-full li {
    margin-bottom: 0.5rem;
}

.article-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.tag {
    background: var(--orange-light);
    color: var(--primary-orange);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    border: 1px solid var(--primary-orange);
    transition: all 0.3s ease;
}

.tag:nth-child(even) {
    background: var(--blue-light);
    color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.article-share {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.article-share span {
    font-weight: 400;
    color: #333;
}

.share-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.share-btn:hover {
    transform: translateY(-2px);
}

.share-btn.facebook {
    background: #3b5998;
}

.share-btn.twitter {
    background: #1da1f2;
}

.share-btn.linkedin {
    background: #0077b5;
}

/* Sidebar */
.news-page .news-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.news-page .sidebar-widget {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.news-page .sidebar-widget h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: #333;
    border-bottom: 2px solid var(--primary-orange);
    padding-bottom: 0.5rem;
}

.category-list {
    list-style: none;
}

.category-list li {
    margin-bottom: 0.5rem;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #666;
    text-decoration: none;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.category-list a:hover {
    color: var(--primary-orange);
}

.category-list span {
    background: #f8f9fa;
    color: #666;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
}

.popular-posts {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.popular-post {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.popular-post img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}
.post-content a{
    color: #333;
    text-decoration: none;
}
.post-content h4 {
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
    color: #333;
    line-height: 1.3;
}

.post-date {
    font-size: 0.8rem;
    color: #666;
}


/* Category list in sidebar */
.category-list {
    list-style: none;
    padding: 0;
}

.category-list li {
    margin-bottom: 0.5rem;
}

.category-list a {
    color: #333;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
    transition: color 0.3s ease;
}

.category-list a:hover {
    color: var(--primary-blue);
}

.category-list .count {
    background: var(--blue-light);
    color: var(--primary-blue);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 700;
}

/* No posts message */
.no-posts {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
}

.no-posts i {
    font-size: 4rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.no-posts h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.no-posts p {
    color: #666;
    font-size: 1.1rem;
}

/* Article actions and read more button */
.article-actions {
    margin-top: 1.5rem;
}

.read-more-btn,
.wp-block-read-more.read-more-btn {
    display: inline-flex;
    align-items: center;
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease;
    margin: 0;
    padding: 0;
    background: none;
    border: none;
    font-size: inherit;
}

.read-more-btn:hover,
.wp-block-read-more.read-more-btn:hover {
    color: var(--blue-dark);
}

/* Hide screen reader text in read more links */
.read-more-btn .screen-reader-text,
.wp-block-read-more.read-more-btn .screen-reader-text {
    display: none !important;
}



/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.page-btn {
    padding: 10px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.page-btn:hover,
.page-btn.active {
    background: var(--primary-orange);
    color: white;
    border-color: var(--primary-orange);
}

/* Responsive Design for New Pages - Updated for mobile news layout */
@media (max-width: 499px) {
    .page-header {
        padding: 80px 0 20px;
    }
    
    .page-header-content h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .page-header-content p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .breadcrumb {
        flex-wrap: wrap;
        font-size: 0.85rem;
        gap: 0.3rem;
    }
    
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .filter-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group select {
        min-width: auto;
    }
    
    .news-page .news-layout,
    body.blog .news-page .news-layout,
    .wp-site-blocks .news-page .news-layout {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        display: grid !important;
    }
    
    .news-page .news-main {
        order: 1 !important;
        grid-column: 1 !important;
    }
    
    .news-page .news-sidebar {
        order: 2 !important;
        grid-column: 1 !important;
    }
    
    .news-page {
        padding: 20px 0;
    }
    
    .news-page .news-main {
        gap: 1.5rem;
    }
    
    .news-page .news-article {
        margin-bottom: 1rem;
    }
    
    .news-page .article-content {
        padding: 1.5rem;
    }
    
    .news-page .article-content h2 {
        font-size: 1.3rem;
        margin-bottom: 0.8rem;
        word-wrap: break-word;
        hyphens: auto;
    }
    
    .news-page .article-excerpt {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .news-page .article-meta {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
        margin-bottom: 0.8rem;
    }
    
    .news-page .article-date,
    .news-page .article-author {
        font-size: 0.85rem;
    }
    
    .news-page .article-category {
        font-size: 0.75rem;
        padding: 1px 8px;
    }
    
    .news-page .sidebar-widget {
        padding: 1.5rem;
    }
    
    .news-page .sidebar-widget h3 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    
    /* Ensure proper spacing and overflow handling on mobile */
    .news-page .container {
        padding: 0 15px;
    }
    
    .news-page .news-article {
        overflow: hidden;
    }
    
    .news-page .article-image img {
        max-width: 100%;
        height: auto;
    }
    
    .news-page .category-list {
        padding-left: 0;
    }
    
    .news-page .category-list li {
        margin-bottom: 0.5rem;
    }
    
    .news-page .popular-posts {
        gap: 1rem;
    }
    
    /* WordPress specific mobile fixes */
    .news-page .wp-site-blocks {
        overflow-x: hidden;
    }
    
    .news-page .wp-block-query {
        width: 100%;
    }
    
    .news-page .wp-block-post-template {
        width: 100%;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .course-actions {
        flex-direction: column;
    }
    
    .course-actions .btn {
        flex: none;
    }
}

/* Course Detail Page Styles */
.course-hero {
    padding: 30px 0 50px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.course-hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.course-hero-noimage{
    margin: 0.3rem 2.5rem;
    align-items: center;
    margin-top: 2rem;    
}
.course-hero-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
    margin-top: 2rem;
}

.course-hero-info h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #333;
}

.course-description {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.course-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
}

.meta-item i {
    color: var(--primary-orange);
}

.course-price-section {
    margin-bottom: 2rem;
}

.price-main {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-orange);
    margin-bottom: 0.5rem;
}

.price-note {
    color: #666;
    font-size: 0.9rem;
}

.course-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-large {
    padding: 15px 30px;
    font-size: 1.1rem;
}

.course-hero-image {
    position: relative;
}

.course-hero-image img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.course-hero-image .course-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary-orange);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 700;
}

/* Course Detail Page Content Layout */
.course-detail-content {
    padding: 50px 0;
    background: white;
}

.course-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2.5rem;
}

.course-main {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.content-section h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #333;
    border-bottom: 2px solid var(--primary-orange);
    padding-bottom: 0.5rem;
}

.content-section p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 1rem;
}
/* Learning Objectives */
.learning-objectives {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.objective {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid var(--primary-orange);
}

.objective i {
    color: #28a745;
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* Course Modules */
.course-modules {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.module {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.module:hover {
    border-color: var(--primary-orange);
    box-shadow: 0 5px 20px var(--orange-light);
}

.module-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: #f8f9fa;
    cursor: pointer;
}

.module-header h3 {
    font-size: 1.2rem;
    color: #333;
    margin: 0;
}

.module-duration {
    background: var(--primary-orange);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 700;
}

.module-content, .course-main .content-section{
    padding: 1.5rem 2rem;
}

.module-content ul, .course-main .content-section ul{
    list-style: none;
    padding: 0;
}

.module-content li, .course-main .content-section li{
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    padding-left: 1.5rem;
}

.module-content li:before, .course-main .content-section li:before{
    content: '•';
    color: var(--primary-orange);
    font-weight: 700;
    position: absolute;
    left: 0;
}

.module-content li:last-child, .course-main .content-section li:last-child{
    border-bottom: none;
}

/* Requirements */
.requirements {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.requirement-group {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    border-left: 4px solid var(--primary-orange);
}

.requirement-group h4 {
    color: #333;
    margin-bottom: 1rem;
}

.requirement-group ul {
    list-style: none;
    padding: 0;
}

.requirement-group li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
    color: #666;
}

.requirement-group li:before {
    content: '✓';
    color: #28a745;
    font-weight: 700;
    position: absolute;
    left: 0;
}

/* Reviews */
.reviews {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.review {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid #e9ecef;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.reviewer-info strong {
    color: #333;
    margin-right: 1rem;
}

.review-date {
    color: #666;
    font-size: 0.9rem;
}

.review-rating {
    color: #ffc107;
}

.review p {
    color: #555;
    line-height: 1.6;
    margin: 0;
}

/* Course Sidebar */
.course-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.course-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.course-info2 {
    display: flex;
    flex-direction: column;
    gap: 0rem;
}
.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.info-item i {
    color: var(--primary-orange);
    font-size: 1.2rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.info-item div strong {
    display: block;
    color: #333;
    margin-bottom: 0.3rem;
}

.info-item div span {
    color: #666;
    font-size: 0.9rem;
}

/* Instructor Info */
.instructor-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.instructor-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
}

.instructor-details h4 {
    color: #333;
    margin-bottom: 0.5rem;
}

.instructor-details p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.instructor-stats {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.instructor-stats span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #666;
    font-size: 0.8rem;
}

.instructor-stats i {
    color: var(--primary-orange);
}

/* Related Courses */
.related-courses {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.related-course {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.related-course:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.related-course img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.related-course .course-info h5 {
    color: #333;
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
    line-height: 1.3;
}

.related-course .price {
    color: var(--primary-orange);
    font-weight: 700;
    font-size: 0.9rem;
}

/* Responsive Design for Course Detail */
/* Media query dla średnich ekranów - 500px do 680px */
@media (min-width: 500px) and (max-width: 680px) {
    .course-hero-main {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .course-hero-info h1 {
        font-size: 2.2rem;
    }
    
    .course-meta {
        justify-content: center;
        gap: 1.5rem;
    }
    
    .course-actions {
        justify-content: center;
        gap: 1rem;
    }
    
    .course-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .learning-objectives {
        grid-template-columns: 1fr;
    }
    
    .requirements {
        grid-template-columns: 1fr;
    }
    
    .module-header {
        padding: 1.2rem 1.5rem;
    }
    
    .module-content, .course-main .content-section {
        padding: 1.2rem 1.5rem;
    }
    
    .price-main {
        font-size: 2.2rem;
    }
    
    .course-hero {
        padding: 70px 0 40px;
    }
    
    .course-detail-content {
        padding: 40px 0;
    }
    
    /* Sidebar adjustments for medium screens */
    .sidebar-widget {
        padding: 1.2rem;
        margin-bottom: 1.5rem;
    }
    
    .sidebar-widget h3 {
        font-size: 1.2rem;
        margin-bottom: 1.2rem;
    }
    
    .instructor-info {
        text-align: left;
    }
    
    .instructor-photo {
        width: 70px;
        height: 70px;
        margin-bottom: 0.8rem;
    }
    
    .instructor-stats {
        flex-direction: row;
        justify-content: space-between;
        gap: 1rem;
    }
    
    .related-course {
        padding: 0.8rem;
    }
    
    .related-course img {
        width: 50px;
        height: 50px;
    }
    
    /* Course category and badge adjustments */
    .course-category {
        font-size: 0.75rem;
        padding: 3px 10px;
    }
    
    .course-badge {
        font-size: 0.75rem;
        padding: 4px 12px;
        top: 12px;
        right: 12px;
    }
    
    /* Button adjustments */
    .btn-large {
        padding: 12px 24px;
        font-size: 1rem;
    }
    
    /* Content section adjustments */
    .content-section h2 {
        font-size: 1.8rem;
        margin-bottom: 1.2rem;
    }
    
    .objective {
        padding: 0.8rem;
    }
    
    .requirement-group {
        padding: 1.5rem;
    }
}

@media (max-width: 499px) {
    .course-hero-main {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .course-hero-info h1 {
        font-size: 2rem;
    }
    
    .course-meta {
        flex-direction: column;
        gap: 1rem;
    }
    
    .course-actions {
        flex-direction: column;
    }
    
    .course-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .learning-objectives {
        grid-template-columns: 1fr;
    }
    
    .requirements {
        grid-template-columns: 1fr;
    }
    
    .module-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .review-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* Page Content Styles */
.page-content {
    padding: 50px 0;
    background: white;
}

.page-text {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #666;
}

.page-text h1,
.page-text h2,
.page-text h3,
.page-text h4,
.page-text h5,
.page-text h6 {
    color: #333;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.page-text h1 {
    font-size: 2.5rem;
}

.page-text h2 {
    font-size: 2rem;
}

.page-text h3 {
    font-size: 1.5rem;
}

.page-text p {
    margin-bottom: 1.5rem;
}

.page-text ul,
.page-text ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.page-text li {
    margin-bottom: 0.5rem;
}

.page-text img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.page-text blockquote {
    border-left: 4px solid var(--primary-orange);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #555;
}

/* About Page Styles */
.about-page-content {
    padding: 50px 0;
    background: white;
}

.about-section {
    margin-bottom: 50px;
}

.about-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    width: 100%;
}

.about-text h2, .about-text h3 {
    font-size: 2.5rem;
    margin: 0.4rem 0rem;
    color: #1279f0;
}

.about-text p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}
.about-text ul{
    padding: 0rem 2rem 1rem 2rem;
}
.about-text ul li{
    padding: 0.2rem 0.3rem;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 15px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.stat-item:hover {
    border-color: var(--primary-orange);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--orange-light);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-orange);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #666;
    font-weight: 400;
}

.about-image {
    width: 100%;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

/* Mission & Vision */
.mission-vision {
    margin-bottom: 50px;
}

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

.mission-card {
    background: white;
    padding: 3rem 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.mission-card:hover {
    border-color: var(--primary-orange);
    transform: translateY(-10px);
    box-shadow: 0 20px 50px var(--orange-light);
}

.card-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-blue-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    color: white;
    font-size: 2rem;
}

.mission-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.mission-card p {
    color: #666;
    line-height: 1.6;
}

/* Team Section */
.team-section {
    margin-bottom: 50px;
}

.team-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.team-intro {
    text-align: center;
    color: #666;
    font-size: 1.2rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.team-member {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.member-photo {
    height: 250px;
    overflow: hidden;
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.team-member:hover .member-photo img {
    transform: scale(1.1);
}

.member-info {
    padding: 2rem;
}

.member-info h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.member-position {
    color: var(--primary-orange);
    font-weight: 700;
    margin-bottom: 1rem;
}

.member-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.member-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill {
    background: #f8f9fa;
    color: #666;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    border: 1px solid #e9ecef;
}

/* Certifications */
.certifications-section {
    margin-bottom: 50px;
}

.certifications-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
}

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

.cert-item {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.cert-item:hover {
    border-color: var(--primary-orange);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px var(--orange-light);
}

.cert-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-blue-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.5rem;
}

.cert-item h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #333;
}

.cert-item p {
    color: #666;
    line-height: 1.6;
}

/* Why Choose Us */
.why-choose-us h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
}

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

.reason-item {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--primary-orange);
    transition: all 0.3s ease;
    position: relative;
}

.reason-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.reason-number {
    position: absolute;
    top: -15px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: var(--gradient-blue-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
}

.reason-item h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #333;
    margin-top: 1rem;
}

.reason-item p {
    color: #666;
    line-height: 1.6;
}

/* Contact Page Styles */
.contact-page {
    padding: 50px 0;
    background: white;
}

/* Contact Section on Homepage */
.contact-section {
    padding: 3rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.contact-section .section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.contact-section .section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: var(--gradient-blue-dark);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-section .section-header p {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.contact-cta {
    text-align: center;
    margin-top: 3rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 2.5rem;
}

@media (max-width: 1200px) {
    .contact-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.contact-info-card {
    background: white;
    padding: 1.5rem 1.5rem;
    border-radius: 15px;
    box-shadow: 2px -5px 11px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.contact-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.contact-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
    transition: transform 0.3s ease;
}

.contact-info-card:nth-child(1) .contact-icon {
    background: var(--gradient-blue-dark);
}

.contact-info-card:nth-child(2) .contact-icon {
    background: var(--gradient-dark-blue);
}

.contact-info-card:nth-child(3) .contact-icon {
    background: var(--gradient-blue-dark);
}

.contact-info-card:nth-child(4) .contact-icon {
    background: var(--gradient-dark-blue);
}

.contact-info-card:hover .contact-icon {
    transform: scale(1.1);
}

.contact-info-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #333;
}

.contact-info-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.contact-info-card a {
    color: var(--primary-orange);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info-card a:hover {
    color: #e55a2b;
}

.contact-details {
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.contact-section {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(248, 249, 250, 0.8));
    border-radius: 25px;
    padding: 3rem 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-section h2 {
    font-size: 2.8rem;
    margin-bottom: 0.2rem;
    text-align: center;
    color: #333;
    font-weight: 700;
    position: relative;
    padding-bottom: 1rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.info-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    width: 100%;
    padding: 2rem 0;
}

.info-list .info-item {
    position: relative;
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.08),
        0 1px 4px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
}

.info-list .info-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-orange);
    border-radius: 16px 16px 0 0;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.info-list .info-item:nth-child(even)::before {
    background: var(--primary-blue);
}

.info-list .info-item:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.12),
        0 4px 12px rgba(0, 0, 0, 0.08);
}

.info-list .info-item:hover::before {
    transform: scaleX(1);
}

.info-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.info-list .info-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-orange), var(--orange-dark));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white !important;
    font-size: 1.3rem;
    transition: all 0.3s ease;
}

.info-list .info-icon i {
    color: white !important;
}

.info-list .info-item:nth-child(even) .info-icon {
    background: linear-gradient(135deg, var(--primary-blue), var(--blue-dark));
}

.info-list .info-item:hover .info-icon {
    transform: scale(1.05) rotate(3deg);
}

.info-list .info-item h4 {
    color: #1a1a1a;
    font-size: 1.2rem;
    margin: 0;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.02em;
    flex: 1;
}

.info-list .info-item p {
    color: #1d1d1d;
    line-height: 1.6;
    margin: 0;
    font-weight: 400;
    padding: 0;
    width: 100%;
}

/* Desktop large screens */
@media (min-width: 1400px) {
    .info-list {
        grid-template-columns: repeat(4, 1fr);
        gap: 2.5rem;
    }
    
    .contact-section {
        padding: 4rem 3rem;
    }
    
    .contact-section h2 {
        font-size: 3.2rem;
        margin-bottom: 3.5rem;
    }
    
    .info-list .info-item {
        padding: 2.5rem 2rem;
    }
    
    .info-list .info-icon {
        width: 55px;
        height: 55px;
        font-size: 1.4rem;
    }
    
    .info-list .info-item h4 {
        font-size: 1.3rem;
    }
    
    .info-list .info-item p {
        font-size: 0.95rem;
    }
    
    .info-header {
        margin-bottom: 1.4rem;
    }
}

@media (max-width: 1200px) {
    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .info-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.8rem;
    }
    
    .info-list .info-item {
        padding: 1.8rem 1.5rem;
    }
    
    .info-list .info-icon {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
    
    .info-list .info-item h4 {
        font-size: 1.1rem;
    }
    
    .info-list .info-item p {
        font-size: 0.85rem;
    }
    
    .info-header {
        gap: 0.8rem;
        margin-bottom: 1rem;
    }
}

@media (max-width: 499px) {
    .contact-section {
        padding: 2.5rem 1.8rem;
        border-radius: 22px;
    }
    
    .contact-section h2 {
        font-size: 2.4rem;
        margin-bottom: 2.5rem;
    }
    
    .contact-section h2::after {
        width: 70px;
    }
    
    .info-list {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1rem 0;
    }
    
    .info-list .info-item {
        padding: 1.8rem 1.5rem;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .info-list .info-icon {
        width: 42px;
        height: 42px;
        font-size: 1.1rem;
        border-radius: 10px;
    }
    
    .info-list .info-item h4 {
        font-size: 1rem;
    }
    
    .info-list .info-item p {
        font-size: 0.8rem;
        line-height: 1.5;
    }
    
    .info-header {
        gap: 0.7rem;
        margin-bottom: 0.8rem;
    }
    
    .info-list .info-item:hover {
        transform: translateY(-2px);
    }
    
    .info-list .info-item:hover .info-icon {
        transform: scale(1.03) rotate(2deg);
    }
}

@media (max-width: 480px) {
    .contact-section {
        padding: 2rem 1.2rem;
        border-radius: 20px;
        margin: 0 0.5rem;
    }
    
    .contact-section h2 {
        font-size: 2rem;
        margin-bottom: 1.8rem;
    }
    
    .contact-section h2::after {
        width: 50px;
        height: 3px;
    }
    
    .info-list {
        gap: 1.2rem;
        padding: 0.5rem 0;
    }
    
    .info-list .info-item {
        padding: 1.5rem 1rem;
        border-radius: 14px;
        max-width: 100%;
    }
    
    .info-list .info-icon {
        width: 38px;
        height: 38px;
        font-size: 1rem;
        border-radius: 8px;
    }
    
    .info-list .info-item h4 {
        font-size: 0.9rem;
        line-height: 1.2;
    }
    
    .info-list .info-item p {
        font-size: 0.75rem;
        line-height: 1.4;
    }
    
    .info-header {
        gap: 0.6rem;
        margin-bottom: 0.7rem;
    }
    
    .info-list .info-item:hover .info-icon {
        transform: scale(1.02) rotate(1deg);
    }
}

/* Stare style .info-item zostały zastąpione przez .info-list .info-item */

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

.map-section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #333;
}

.map-container {
    background: #f8f9fa;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);
}

.map-placeholder {
    padding: 4rem 2rem;
    text-align: center;
    color: #666;
}

.map-placeholder i {
    font-size: 2rem;
    color: var(--primary-orange);
    margin-bottom: 1rem;
}

.map-placeholder p {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.map-placeholder small {
    color: #999;
}

/* Responsive Design for Contact Page */
@media (max-width: 499px) {
    .contact-info-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-info-card {
        padding: 2rem 1.5rem;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

/* Responsive Design for About Page */
@media (max-width: 499px) {
    .page-content {
        padding: 30px 0;
    }
    
    .page-text {
        padding: 0 10px;
    }
    
    .page-text h1 {
        font-size: 2rem;
    }
    
    .page-text h2 {
        font-size: 1.5rem;
    }
    
    .page-text h3 {
        font-size: 1.25rem;
    }
    
    .about-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .mission-vision-grid {
        grid-template-columns: 1fr;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .certifications-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .reasons-grid {
        grid-template-columns: 1fr;
    }
    
    .about-text h2 {
        font-size: 2rem;
    }
    
    .team-section h2,
    .certifications-section h2,
    .why-choose-us h2 {
        font-size: 2rem;
    }
    
    /* Contact Section Responsive */
    .contact-section .section-header h2 {
        font-size: 2rem;
    }
    
    .contact-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-cta .btn {
        width: 100%;
        max-width: 300px;
    }
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-blue-dark);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    z-index: 1000;
}

.scroll-to-top:hover {
    background: var(--gradient-dark-blue);
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(8, 106, 253, 0.4);
}

.scroll-to-top:focus {
    outline: 2px solid var(--primary-orange);
    outline-offset: 2px;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top i {
    transition: transform 0.3s ease;
}

.scroll-to-top:hover i {
    transform: translateY(-2px);
}

/* Responsive adjustments for scroll to top */
@media (max-width: 499px) {
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
}

