body {
    max-width: 100%;
    font-family: 'Montserrat Armenian';
}

.news-section {
    padding: 1% 0% 1%;
    background-color: #fafafa;
}


.news-container {
    max-width: 100%;
    display: flex;
    gap: 0;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: nowrap;
    position: relative;
    margin: 2% 4% 0%;
}

.divider {
    width: 1.5px;
    background-color: #EAEAEA;
    height: 595px;
    margin: 0 1%;
    position: relative;
    z-index: 1;
}

.news-column {
    width: 48%;
    box-sizing: border-box;
    position: relative;
    z-index: 2;
    height: 550px;

}

.news-heading {
    font-size: 24px;
    margin-bottom: 13px;
    margin-left: 30px;
    color: #833F6D;
    text-transform: uppercase;
    font-family: 'Montserrat Armenian semiBold';
}

.news-heading a {
    font-size: 24px;
    color: #833F6D;
    text-decoration: none;
}

.news-group-card {
    background-color: #FFFFFF;
    border-radius: 10px;
    padding: 18px;
    box-shadow: 0px 1px 4px rgba(0, 0, 0, 0.25);
    margin-bottom: 30px;
    min-height: 100%;

}

.news-group-card .news-card {
    background-color: #F9F9F9;
    box-shadow: 1.57px 1.57px 1.57px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
    height: 160px;
    overflow: hidden;
}

.news-group-card .news-card:last-child {
    margin-bottom: 0;
}

.news-card:hover {
    transform: translateY(-2px);
}

.news-card img {
    width: 170px;
    height: 160px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

.news-content {
    padding-left: 20px;
    padding-right: 25px;
    position: relative;
    display: flex;
    flex-direction: column;
}

.news-content h3 {
    font-size: 13px;
    font-family: 'Montserrat Armenian light';
    margin-bottom: 8px;
    color: #151515;
}

.news-content h3 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    font-size: 13px;
}


.news-content h3 a:hover {
    color: #B760A5;
}

.news-content p {
    font-size: 11.5px;
    color: #4E4E4E;
    line-height: 147%;

}

.news-date {
    font-size: 9px;
    color: #AFAFAF;
    font-family: 'Montserrat Armenian light';
    position: absolute;
    bottom: -5px;
    right: 20px;
}

/* reklam */

.ads-right-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.ad-box {
    width: 313px;
    height: 516px;
    overflow: hidden;
    margin-top: 16%;
    border-radius: 12px;
}

.ad-box a {
    display: none;
}
.ad-box a:first-child {
    display: block;
}

.ad-box img {
    width: 100%;
    height: 100%;
    border-radius: 12px;

    object-fit: cover;
    display: block;
}

/* Modal Overlay */
.custom-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Modal Content Frame */
.custom-modal-content {
    background-color: #262626;
    padding: 20px;
    border-radius: 20px;
    max-width: 800px;
    width: 100%;
    position: relative;
}

/* Close Button */
.custom-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    cursor: pointer;
}

/* Video Container */
.custom-modal-body {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.video-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: auto;
    margin-left: 40px;
    margin-right: 40px;
    margin-bottom: 20px;
    margin-top: 30px;
}

.video-wrapper iframe {
    width: 90%;
    height: 50vh;
    border: none;
    border-radius: 25px;
    background: #000;
}

/* Title under video */
.custom-modal-title {
    font-size: 14px;
    color: #FFFFFF;
    font-family: 'Montserrat Armenian semiBold';
    text-align: start;
    width: 70%;
    margin-left: 60px;
    margin-bottom: 70px;

}

/* Decorative SVG in corner */
.videoLogo {
    position: absolute;
    bottom: 48px;
    right: 40px;
    width: 140px;
    height: auto;
}

/* Responsive */
@media (max-width: 768px) {
    .news-container {
        flex-direction: column;
    }
    .news-group-card {
        min-height: 10%;
    }


    .news-container::before {
        display: none;
    }

    .news-column {
        width: 100%;
        padding: 0;
        margin-top: 0 !important;
    }

    .news-group-card .news-card {
        flex-direction: row; /* instead of column */
        align-items: flex-start;
        height: auto;
    }

    .news-card img {
        width: 120px;
        height: 100px;
        object-fit: cover;
        flex-shrink: 0;
        border-radius: 10px;
    }

    .news-content {
        padding-left: 15px;
        padding-right: 10px;
        text-align: left;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        flex-grow: 1;
    }

    .news-content h3 {
        font-size: 14px;
        margin-bottom: 5px;
        -webkit-line-clamp: 1;
        line-clamp: 1;
    }

    .news-content p {
        font-size: 12px;
        line-height: 1.4;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .news-date {
        font-size: 9px;
        margin-top: auto;
        position: relative;
        right: 0;
        bottom: 0;
    }
    .divider {
        height: 5px;

    }
}
