﻿
/* ====== GRID CAŁEJ STRONY ====== */
.materials-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
    margin: 60px auto;
    max-width: 1200px;
}

/* ====== KARTA MATERIAŁU ====== */
.material-card {
    background: var(--card-bg);
    border-radius: 26px;
    padding: 40px 36px;
    width: calc(50% - 40px);
    box-shadow: 0 30px 80px rgba(0,0,0,0.08);
    transition: transform .25s ease, box-shadow .25s ease;
}

    .material-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 40px 100px rgba(0,0,0,0.12);
    }


.photo-vertical-oval {
    width: 200px;
    height: 300px;
    border-radius: 999px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    background: white;
    margin-left: 60px; /* 🔹 PRZESUNIĘCIE W PRAWO */
}


    .photo-vertical-oval img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

@media (max-width: 768px) {
    .hero-section {
        flex-direction: column; /* 🔥 zdjęcie idzie NA DÓŁ */
        text-align: center;
    }

    .hero-text {
        max-width: 100%;
    }

    .photo-vertical-oval {
        margin: 30px auto 0; /* wyśrodkowanie na dole */
        width: 180px;
        height: 260px;
    }
}





/* ====== TYTUŁ (NA RAZIE NEUTRALNY) ====== */
.material-title {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--card-title-color);
    text-align: center;
}

/* ====== CONTENT ====== */
.material-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.material-text p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--card-text-color);
    max-width: 500px;
    margin: 0 auto 12px auto;
}

/* ====== OBRAZ ====== */
.material-image {
    max-width: 220px;
    height: auto;
    transition: transform .25s ease;
}

.material-card:hover .material-image {
    transform: scale(1.04);
}

/* ====== MOBILE ====== */
@media (max-width: 992px) {
    .material-card {
        width: 100%;
        padding: 30px 24px;
    }
}





/* ====== CYTAT KOŃCOWY ====== */
.materials-quote {
    margin-top: 50px;
    text-align: center;
    padding: 24px 20px;
    background: linear-gradient(to right, #ff66b2, #ff99cc);
    border-radius: 12px;
}

    .materials-quote p {
        font-size: 1.3rem;
        font-style: italic;
        color: #ffffff;
        text-shadow: 1px 1px 2px #cc0066;
        margin: 0;
    }
