.promo-section {
    width: 65%;
    max-height: calc(3.7 * 130px); /* Adjust based on your promo-item height */
    overflow-y: auto; /* Enables vertical scrolling */
    padding-right: 10px; /* Prevents content cut-off */
    max-width: 900px;
    margin: 20px auto;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

.promo-header {
    background-color: #2D1D74;
    color: white;
    padding: 10px;
    border-radius: 8px;
    max-width: 1000px;
    margin: 20px auto;
    text-align: center;
}

.promo-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: bold;
}

.promo-item {
    display: flex;
    align-items: center;
    background: #f2ebff;
    padding: 15px;
    margin-bottom: 15px;
    border-left: 5px solid #2D1D74;
    border-radius: 5px;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: background 0.3s ease-in-out;
    position: relative;
}

.promo-item:hover {
    background: #e6dbfb;
}

.promo-item img.small-img {
    width: 80px;
    height: 80px;
    border-radius: 5px;
    object-fit: cover;
    margin-right: 15px;
    transition: opacity 0.3s ease-in-out;
}

.promo-content {
    flex: 1;
}

.promo-content h3 {
    margin: 0;
    color: #2D1D74;
}

.promo-content p {
    margin: 5px 0;
    color: #333;
}

.promo-content .date {
    font-size: 12px;
    color: #888;
}

/* Hidden details with smooth animation */
.promo-details {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.5s ease, opacity 0.5s ease;
    padding-top: 0;
}

.promo-details img.large-img {
    width: 100%;
    max-width: 500px;
    border-radius: 10px;
    margin-top: 10px;
    transform: translateY(-10px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Expanded effect */
.expanded .small-img {
    opacity: 0;
}

.expanded .promo-details {
    max-height: 500px;
    opacity: 1;
    padding-top: 10px;
}

.expanded .promo-details img.large-img {
    transform: translateY(0);
    opacity: 1;
}

.container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    max-width: 1200px;
    margin: auto;
    gap: 20px;
}

.promo-section {
    width: 65%;
}

.frame {
    width: 30%;
    min-width: 300px;
}

.frame iframe {
    width: 100%;
    height: 500px;
    border: none;
}

/* 📌 RESPONSIVE MOBILE VIEW */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        align-items: center;
    }

    .promo-section {
        width: 90%;
    }

    .promo-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px;
    }

    .promo-item img.small-img {
        margin-bottom: 10px;
        margin-right: 0;
        width: 100px;
        height: 100px;
    }

    .promo-content h3 {
        font-size: 18px;
    }

    .promo-content p {
        font-size: 14px;
    }

    .promo-content .date {
        font-size: 12px;
    }

    .promo-details img.large-img {
        max-width: 100%;
    }

    .frame {
        width: 80%;
        height: auto;
    }
}
