﻿.faydalar-alani-bg {
    background-color: white;
    padding: 80px 20px 80px 20px;
}

.faydalar-alani-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.faydalar-alani-title {
    display: block;
    font-size: 2.5rem;
    font-weight: 600;
    color: black;
    margin: 0;
    padding: 0;
    margin-bottom: 70px;
    text-align: center;
}

    .faydalar-alani-title span {
        color: #f6861f;
    }

.faydalar-alani-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 60px;
    justify-content: center;
}

.faydalar-alani-card-left {
    background-color: #fff;
    color: #333;
    padding: 30px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: left;
    box-shadow: 5px 5px 0px 0px black;
    transition: all 0.3s ease-in-out;
    transform: rotate(-2deg);
}

    .faydalar-alani-card-left:hover {
        transform: rotate(0deg) translateY(-10px);
    }

    .faydalar-alani-card-left h4 {
        font-size: 1.3rem;
        font-weight: 600;
        margin-bottom: 15px;
        color: #333;
    }

    .faydalar-alani-card-left p {
        font-size: 0.9rem;
        line-height: 1.6;
        color: #666;
    }

.faydalar-alani-card-right {
    background-color: #fff;
    color: #333;
    padding: 30px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: left;
    box-shadow: 5px 5px 0px 0px black;
    transition: all 0.3s ease-in-out;
    transform: rotate(2deg);
}

    .faydalar-alani-card-right:hover {
        transform: rotate(0deg) translateY(-10px);
    }

    .faydalar-alani-card-right h4 {
        font-size: 1.3rem;
        font-weight: 600;
        margin-bottom: 15px;
        color: #333;
    }

    .faydalar-alani-card-right p {
        font-size: 0.9rem;
        line-height: 1.6;
        color: #666;
    }

/* Horizontal Scroll - up to 1200px */
@media (max-width: 1200px) {

    .faydalar-alani-bg {
        padding: 40px 20px 50px 20px;
    }

    .faydalar-alani-cards-grid {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: black transparent;
        justify-content: flex-start;
        gap: 20px;
        padding: 0.5rem 0.3rem 0.7rem 0.3rem;
        cursor: grab;
    }

        .faydalar-alani-cards-grid.active {
            cursor: grabbing;
        }

        .faydalar-alani-cards-grid::-webkit-scrollbar {
            height: 6px;
        }

        .faydalar-alani-cards-grid::-webkit-scrollbar-track {
            background: #f1f1f1;
            border-radius: 10px;
        }

        .faydalar-alani-cards-grid::-webkit-scrollbar-thumb {
            background: #999;
            border-radius: 10px;
        }

            .faydalar-alani-cards-grid::-webkit-scrollbar-thumb:hover {
                background: #777;
            }

    .faydalar-alani-card-left,
    .faydalar-alani-card-right {
        flex: 0 0 300px;
        width: 300px;
    }

    /* Reset transform/hover effects for better touch experience */
    .faydalar-alani-card-left,
    .faydalar-alani-card-right {
        transform: rotate(0deg);
        user-select: none;
    }

        .faydalar-alani-card-left:hover,
        .faydalar-alani-card-right:hover {
            transform: none;
        }
}

@media (max-width: 768px) {
    .faydalar-alani-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }

    .faydalar-alani-cards-grid {
        gap: 30px;
    }

    card-right {
        flex: 0 0 250px;
        width: 250px;
    }

    .faydalar-alani-card-right h4 {
        font-size: 1rem;
    }

    .faydalar-alani-card-right p {
        font-size: 0.7rem;
    }

    .faydalar-alani-card-left h4 {
        font-size: 1rem;
    }

    .faydalar-alani-card-left p {
        font-size: 0.7rem;
    }
}
