section {
    display: flex;
    flex-wrap: wrap;
    /*max-width: 1140px;*/
    margin: 0 auto;
    gap: 40px;
    padding: 40px;
}

article {
    max-width: 750px;
    margin: 0 auto;
    width: -webkit-fill-available;
}

aside {
    /*margin-top: 250px;*/
    border-top: 3px solid var(--red);
    padding-top: 20px;
    padding: 20px;
    border-radius: 30px;
    background-color: #f1ebe4;
    width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: fit-content;
    position: sticky;
    top: 20px;

    img {
        width: 240px;
    }

    .day-info {
        width: -webkit-fill-available;
        padding: 10px;
    }
}

.day-title {
    border-bottom: 4px solid var(--red);
    padding: 10px;
    display: flex;
    justify-content: space-around;
    color: var(--red);
    align-items: center;

    .day-event {
        font-size: 19px;
        font-weight: bold;
    }
}

/* Container adjustments */
details.day-lecture {
    border: 6px double var(--coral);
    margin-top: 10px;
    border-radius: 10px;
    padding: 10px;
    direction: rtl;
    /* Ensures RTL context */


    summary {
        display: flex;
        justify-content: space-around;
        align-items: center;
        cursor: pointer;
        list-style: none;
        /* Hides default marker */
        position: relative;
        color: var(--red);
    }

    /* Hide Safari's default marker */
    summary::-webkit-details-marker {
        display: none;
    }

    /* Custom Arrow for RTL */
    summary::before {
        content: '◀';
        /* Points left for Arabic closed state */
        display: inline-block;
        transition: transform 0.2s ease;
        margin-left: 10px;
        /* Space on the left of the arrow in RTL */
        position: absolute;
        right: 0;
    }
}

/* Animation when open */
details.day-lecture[open] summary::before {
    /* Rotates from pointing left to pointing down */
    transform: rotate(-90deg);
}

details.day-lecture[open] summary {
    border-bottom: 3px solid var(--red);
    padding-bottom: 10px;
}

.lecture-name {
    font-weight: bold;
    font-size: 17px;
}

main.day-news {
    margin-top: 15px;
}


.news-shortcut img {
    width: 100px;
    aspect-ratio: 1.2 / 1;
    object-fit: cover;
}

.news-shortcut {
    display: flex;
    margin: 10px;
    border-top: 2px solid var(--light-pink);
    gap: 15px;
    font-size: 17px;
    max-width: 650px;
}

.news-shortcut p {
    display: block;
}

.news-shortcut span {
    display: block;
}

.day-about {
    margin: 20px 0;
    font-size: 15px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .news-shortcut img {
        width: 100px;
        height: 100px;
        aspect-ratio: 1 / 1;
        object-fit: cover;
    }

}

@media (max-width: 1150px) {
    aside {
        margin: 0 auto;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px;
        width: 100%
    }

}

.collapse {
    max-height: 120px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
}