﻿.promo-card {
    margin: 20px auto;
    display: flex;
    background-color: #e0f3e8;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 80, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 80%;
    height: 280px;
}

    .promo-card img {
        width: 40%;
        height: auto;
        object-fit: cover;
        display: block;
    }

.promo-text {
    width: 60%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background-color: #f4fdf7;
    padding: 15px 10px;
    box-sizing: border-box;
}

.promo-title {
    background-color: #2f7a45;
    color: #fff;
    padding: 15px 20px;
    font-size: 1.0rem;
    font-weight: 600;
    margin: 5px 10px;
    border-radius: 0px 10px 0px 0px;
}

.promo-description {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
    color: #2f4f2f;
    background-color: #f4fdf7;
    padding: 10px 12px;
    font-size: 0.9rem;
    line-height: 1.6;
    border-left: 4px solid #2f7a45;
    border-radius: 4px;
    margin: 5px 10px;
    height: 120px;
    overflow: hidden;
    text-align:justify;
}

.description-preview {
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.6;
    max-height: calc(1.6em * 5); /* 3 satır */
}

.more-link {
    align-self: flex-end;
    color: #2f7a45;
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: underline;
    cursor: pointer;
}

}


.more-link {
    flex-shrink: 0;
    align-self: flex-start;
    margin-top: 10px;
    color: #2f7a45;
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: underline;
    cursor: pointer;
}

/* MODAL yapı */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.75);
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-container {
    display: flex;
    flex-direction: row;
    background-color: #fff;
    border-radius: 12px;
    max-width: 900px;
    width: 90%;
    max-height: 85vh;
    overflow: hidden;
    position: relative;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.modal-left {
    flex: 1;
    background-color: #f0f0f0;
}

    .modal-left img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 12px 0 0 12px;
        display: block;
    }

.modal-right {
    flex: 1.2;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow-y: auto;
}

    .modal-right h2 {
        font-size: 1.5rem;
        color: #2f7a45;
        margin-bottom: 10px;
    }

    .modal-right p {
        font-size: 1rem;
        color: #333;
        line-height: 1.6;
    }

.close {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 30px;
    font-weight: bold;
    color: #888;
    cursor: pointer;
    z-index: 10000;
}

    .close:hover {
        color: #000;
    }

/* MOBİL uyum */
@media (max-width: 768px) {
    .promo-card {
        flex-direction: column;
        width: 95%;
        height: auto;
    }

        .promo-card img {
            width: 100%;
            height: 220px;
        }

    .promo-text {
        width: 100%;
    }

    .modal-container {
        flex-direction: column;
        max-height: 90vh;
    }

    .modal-left img {
        border-radius: 12px 12px 0 0;
        height: 220px;
    }

    .modal-right {
        padding: 15px;
    }
}
