/* css/pages/o-nas.css */

/* ===================== O NAS SECTION WCAG AAA ===================== */
.section-title h1 {
    position: relative;
    padding-bottom: 10px;
}

.section-title::before,
.section-title::after {
    content: "";
    position: absolute;
    top: 30%;
    height: 2px;
    background: linear-gradient(to right, transparent 0%, var(--primary) 30%, var(--accent) 100%);
    transform: translateY(10px);
    z-index: 1;
}

.section-title::before {
    left: 0;
    width: calc(50% - 120px);
}

.section-title::after {
    right: 0;
    width: calc(50% - 120px);
    background: linear-gradient(to left, transparent 0%, var(--primary) 30%, var(--accent) 100%);
}

.about-content {
    margin-bottom: 60px;
    position: relative;
    background: linear-gradient(135deg,
        rgba(248, 249, 250, 0.95) 0%,
        rgba(240, 248, 255, 0.9) 25%,
        rgba(255, 255, 255, 0.95) 50%,
        rgba(240, 248, 255, 0.9) 75%,
        rgba(248, 249, 250, 0.95) 100%);
    border-radius: 20px;
    padding: 30px 40px 60px;
    box-shadow: inset 0 0 50px rgba(8, 47, 97, 0.05);
    overflow: hidden;
}

.about-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(8, 47, 97, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 137, 194, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 60% 10%, rgba(27, 130, 255, 0.02) 0%, transparent 50%);
    pointer-events: none;
}

.about-content::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(8, 47, 97, 0.01) 10px,
        rgba(8, 47, 97, 0.01) 20px
    );
    animation: backgroundMove 20s linear infinite;
    pointer-events: none;
    opacity: 0.3;
}

@keyframes backgroundMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* ===================== BLENDED IMAGE-TEXT SECTIONS ===================== */
.about-blended-section {
    width: 100%;
    padding: 0;
    margin-top: 0;
}

.about-blended-block {
    width: 100%;
    display: flex;
    align-items: stretch;
    min-height: 600px; /* Zwiększona minimalna wysokość dla lepszego widoczności tekstu */
    position: relative;
    overflow: hidden;
    border-radius: 0;
    margin-bottom: 0;
    box-shadow: none;
}

.about-blended-block.section-dark {
    justify-content: flex-end;
}

.about-blended-block.section-light {
    justify-content: flex-start;
}

.about-blended-block.section-light {
    background: linear-gradient(135deg, rgba(240, 248, 255, 0.95) 0%, rgba(230, 240, 250, 0.9) 30%, rgba(240, 248, 255, 0.95) 70%, rgba(230, 240, 250, 0.9) 100%);
}

.about-blended-block.section-dark {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-dark) 100%);
    color: var(--white);
}

.about-blended-block.section-dark .blended-content {
    background: rgba(8, 47, 97, 0.9);
    backdrop-filter: blur(15px);
}

.about-blended-block.section-dark .blended-content h2 {
    color: var(--white);
}

.about-blended-block.section-dark .blended-content p {
    color: rgba(255, 255, 255, 0.9);
}

.about-blended-block.section-dark .philosophy-item {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.about-blended-block.section-dark .philosophy-item h4 {
    color: var(--white);
}

.about-blended-block.section-dark .philosophy-item p {
    color: rgba(255, 255, 255, 0.8);
}

.about-blended-block.reverse {
    flex-direction: row-reverse;
}

/* Dostosowanie wysokości dla długiego tekstu */
.about-blended-block:nth-child(3) {
    min-height: 800px; /* Większa minimalna wysokość dla długiego tekstu w bloku Zespół */
}

.blended-image-container {
    position: absolute;
    inset: 0;
    height: 100%;
    width: 100%;
    overflow: hidden;
    margin: 0;
}

.blended-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    z-index: 1;
}

.about-blended-block:hover .blended-image {
    transform: scale(1.05);
}

/* Style dla zdjęć w białych sekcjach */
.about-blended-block.section-light .blended-image-container {
    border-radius: 0;
}

.about-blended-block.section-light .blended-image {
    border-radius: 0;
    border: none;
}

/* Dla sekcji light - zmniejszony biały gradient */
.about-blended-block.section-light .blended-image-container::after {
    width: 60%; /* Zmniejszony gradient */
    background: linear-gradient(to left, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.3) 70%, rgba(255, 255, 255, 0) 100%);
}

/* Style dla zdjęć w ciemnych sekcjach */
.about-blended-block.section-dark .blended-image-container {
    margin: 0;
}

.about-blended-block:nth-child(3) {
    min-height: 650px; /* Większa wysokość dla długiego tekstu w bloku Zespół */
}

/* Gradient overlays dla płynnego przejścia między obrazem a tekstem */
.blended-image-container::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Dla sekcji light - biały gradient od strony tekstu */
.about-blended-block.section-light .blended-image-container::after {
    background: linear-gradient(to left, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0.45) 55%, rgba(255, 255, 255, 0.05) 100%);
}

/* Dla sekcji dark - niebieski gradient od strony tekstu */
.about-blended-block.section-dark .blended-image-container::after {
    background: linear-gradient(to left, rgba(8, 47, 97, 0.9) 0%, rgba(8, 47, 97, 0.45) 55%, rgba(8, 47, 97, 0.12) 100%);
}

/* Dla reverse bloków (tekst po lewej) - gradient po lewej stronie */
.about-blended-block.reverse .blended-image-container::after {
    left: 0;
    right: auto;
}

/* Dla reverse sekcji light - zmniejszony biały gradient od lewej */
.about-blended-block.reverse.section-light .blended-image-container::after {
    background: linear-gradient(to right, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0.45) 55%, rgba(255, 255, 255, 0.05) 100%);
}

/* Dla reverse sekcji dark - niebieski gradient od lewej */
.about-blended-block.reverse.section-dark .blended-image-container::after {
    background: linear-gradient(to right, rgba(8, 47, 97, 0.9) 0%, rgba(8, 47, 97, 0.45) 55%, rgba(8, 47, 97, 0.12) 100%);
}

.blended-content {
    flex: 1;
    max-width: 58%;
    padding: 56px 64px;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(8px);
    position: relative;
    z-index: 2;
    border-radius: 0;
    box-shadow: none;
    border-left: 1px solid rgba(255, 255, 255, 0.5);
}

.about-blended-block.section-light .blended-content {
    background: rgba(255, 255, 255, 0.8);
}

.about-blended-block.section-dark .blended-content {
    background: rgba(6, 32, 68, 0.72);
    backdrop-filter: blur(8px);
    border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.about-blended-block.section-dark .blended-content {
    margin-left: auto;
}

.about-blended-block.section-light .blended-content {
    margin-right: auto;
}

.blended-content h2 {
    color: var(--primary);
    font-family: 'Michroma', sans-serif;
    font-size: clamp(2.1rem, 3vw, 2.6rem);
    margin-bottom: 28px;
    margin-top: 0;
    position: relative;
    padding-bottom: 15px;
    letter-spacing: 0.02em;
}

.about-blended-block.section-dark .blended-content h2 {
    color: var(--white);
}

.blended-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 90px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
}

.about-blended-block.section-dark .blended-content h2::after {
    background: linear-gradient(90deg, var(--white), var(--primary-light));
}

.blended-content p {
    line-height: 1.9;
    margin-bottom: 22px;
    color: #1f2a44;
    font-size: 1.08rem;
    position: relative;
    z-index: 2;
}

.blended-content ul li {
    color: #1f2a44;
    line-height: 1.8;
    margin-bottom: 12px;
}

.about-blended-block.section-dark .blended-content p {
    color: rgba(255, 255, 255, 0.92);
}

.blended-content .highlight-text {
    background: linear-gradient(120deg, #ffffff 0%, var(--primary-light) 50%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
    display: inline;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* Philosophy Highlights */
.philosophy-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-top: 30px;
}

.philosophy-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    border: 1px solid rgba(8, 47, 97, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.about-blended-block.section-dark .philosophy-item {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
}

.philosophy-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary), var(--primary-light));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.about-blended-block.section-dark .philosophy-item::before {
    background: linear-gradient(180deg, var(--white), var(--primary-light));
}

.philosophy-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: rgba(8, 47, 97, 0.2);
}

.about-blended-block.section-dark .philosophy-item:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
}

.philosophy-item:hover::before {
    opacity: 1;
}

.philosophy-item i {
    font-size: 1.8rem;
    color: var(--primary);
    margin-top: 2px;
    flex-shrink: 0;
    background: rgba(8, 47, 97, 0.1);
    padding: 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.about-blended-block.section-dark .philosophy-item i {
    color: var(--white);
    background: rgba(255, 255, 255, 0.2);
}

.philosophy-item:hover i {
    color: white;
    background: var(--primary);
    transform: scale(1.1);
}

.about-blended-block.section-dark .philosophy-item:hover i {
    color: var(--primary-dark);
    background: var(--white);
}

.philosophy-item h4 {
    color: var(--primary);
    font-family: 'Michroma', sans-serif;
    font-size: 1.1rem;
    margin: 0 0 8px 0;
    font-weight: 600;
}

.about-blended-block.section-dark .philosophy-item h4 {
    color: var(--white);
}

.philosophy-item p {
    margin: 0;
    color: #555;
    font-size: 0.95rem;
    line-height: 1.5;
}

.about-blended-block.section-dark .philosophy-item p {
    color: rgba(255, 255, 255, 0.8);
}

/* Tech Features */
.tech-features {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 25px;
}

.tech-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    border: 1px solid rgba(8, 47, 97, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.about-blended-block.section-dark .tech-item {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.tech-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary), var(--primary-light));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.about-blended-block.section-dark .tech-item::before {
    background: linear-gradient(180deg, var(--white), var(--primary-light));
}

.tech-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-light);
}

.about-blended-block.section-dark .tech-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.tech-item:hover::before {
    opacity: 1;
}

.tech-item i {
    font-size: 1.5rem;
    color: var(--primary);
    flex-shrink: 0;
    background: rgba(8, 47, 97, 0.1);
    padding: 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.about-blended-block.section-dark .tech-item i {
    color: var(--white);
    background: rgba(255, 255, 255, 0.2);
}

.tech-item:hover i {
    color: white;
    background: var(--primary);
    transform: scale(1.1);
}

.about-blended-block.section-dark .tech-item:hover i {
    color: var(--primary-dark);
    background: var(--white);
}

.tech-item span {
    color: #333;
    font-weight: 500;
    font-size: 0.95rem;
}

.about-blended-block.section-dark .tech-item span {
    color: rgba(255, 255, 255, 0.9);
}

/* Block Divider */
.block-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 40px 0;
    padding: 20px 0;
    position: relative;
}

/* Pierwszy divider - zmniejszony górny margines */
.about-blended-section .block-divider:first-child {
    margin-top: 10px;
}

.block-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(8, 47, 97, 0.2), transparent);
}

.divider-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    border-radius: 1px;
    position: relative;
    z-index: 2;
}

.divider-accent {
    margin: 0 20px;
    font-size: 2rem;
    color: var(--primary-light);
    opacity: 0.8;
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* ===================== NEWS SECTION - INSTAGRAM ===================== */
.news-section {
    background: linear-gradient(135deg, var(--light) 0%, #f0f8ff 100%);
    padding: 80px 0;
}

.news-section .section-title {
    margin-bottom: 40px;
}

.instagram-feed {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.instagram-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
    max-width: 1000px;
    width: 100%;
}

.instagram-post {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
    aspect-ratio: 1;
}

.instagram-post:hover {
    transform: translateY(-5px);
}

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

.instagram-post:hover img {
    transform: scale(1.05);
}

.post-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 15px;
    text-align: center;
}

.instagram-post:hover .post-overlay {
    opacity: 1;
}

.post-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 10px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 5px;
    color: white;
    font-weight: 600;
}

.stat-icon {
    font-size: 1.2rem;
}

.stat-count {
    font-size: 0.9rem;
}

.post-caption {
    color: white;
    font-size: 0.85rem;
    line-height: 1.4;
    max-height: 2.8em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
}

.instagram-error {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.instagram-error p {
    color: #666;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

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

/* Responsywność */
@media (max-width: 768px) {
    .about-blended-section {
        padding: 0;
    }

    .about-blended-block {
        flex-direction: column;
        min-height: auto;
        margin-bottom: 0;
    }

    .about-blended-block.reverse {
        flex-direction: column;
    }

    .blended-image-container {
        position: relative;
        inset: auto;
        height: 250px;
        width: 100%;
        order: -1;
    }

    .blended-image-container::after {
        display: none;
    }

    .about-blended-block.reverse .blended-image-container {
        order: -1;
    }

    .blended-content {
        max-width: 100%;
        width: 100%;
        padding: 30px 20px;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: none;
        border-left: none;
    }

    .about-blended-block.section-dark .blended-content {
        background: rgba(8, 47, 97, 0.95);
        border-left: none;
    }

    .about-blended-block.section-light .blended-content {
        background: rgba(255, 255, 255, 0.95);
    }

    .blended-content h2 {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }

    .blended-content h2::after {
        width: 60px;
        height: 3px;
    }

    .blended-content p {
        font-size: 1rem;
        line-height: 1.7;
    }

    .philosophy-highlights {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-top: 20px;
    }

    .philosophy-item {
        padding: 15px;
        gap: 12px;
    }

    .philosophy-item i {
        font-size: 1.5rem;
        padding: 8px;
    }

    .philosophy-item h4 {
        font-size: 1rem;
    }

    .philosophy-item p {
        font-size: 0.9rem;
    }

    .divider-accent {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    .instagram-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .news-section {
        padding: 60px 0;
    }
}

/* ===================== PARKING SECTION ===================== */
.parking-section {
    margin: 30px 0;
}

.parking-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #ddd;
    text-align: center;
}

/* Tytuł parking w ciemnej sekcji */
.about-blended-block.section-dark .parking-title {
    color: var(--white);
}

/* Lista parkingowa bez kropek */
.parking-section ul {
    list-style: none;
    padding-left: 0;
}

.parking-section li {
    position: relative;
    padding-left: 20px;
    line-height: 1.6;
    margin-bottom: 8px;
}

.parking-section li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    background: var(--secondary);
    border-radius: 50%;
}

/* Elementy listy parkingowej w ciemnej sekcji */
.about-blended-block.section-dark .parking-section ul li {
    color: var(--white);
    line-height: 1.6;
    margin-bottom: 8px;
}

/* Style dla wszystkich list - niebieskie punkty jak w badaniu nasienia */
.about-content ul,
.about-blended-block ul {
    list-style: none;
    padding: 0;
    margin: 0 0 16px 0;
}

.about-content li,
.about-blended-block li {
    position: relative;
    padding-left: 20px;
    line-height: 1.6;
    margin-bottom: 8px;
    color: inherit;
}

.about-content li::before,
.about-blended-block li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    background: var(--secondary);
    border-radius: 50%;
}

/* Wyjątek dla list z ikonami - usuń niebieskie punkty */
.icon-list li {
    padding-left: 0;
}

.icon-list li::before {
    display: none;
}