/* ============================================================
   Three-column row: Announcements | News | YouTube
   ============================================================ */
.main-page-news-announcements-row {
    display: flex;
    gap: 60px;
    margin-top: 24px;
    align-items: stretch;
    padding-left: 30px;
    padding-right: 30px;
}
/* Default: equal columns (overridden by specific classes) */
.main-page-news-announcements-row .iblock-preview-block {
    margin-top: 0;
    display: flex;
    flex-direction: column;
}
/* Column widths — flex-based, gap is fixed 60px */
.main-page-news-announcements-row .iblock-preview-block.col-announcements {
    flex: 1 1 0;
    min-width: 0;
    background: #f0f7fa;
    border: 2px solid rgba(4, 167, 161, 0.2);
    box-shadow: 0 4px 24px rgba(4, 167, 161, 0.1);
}
.main-page-news-announcements-row .iblock-preview-block.col-news {
    flex: 1 1 0;
    min-width: 0;
    background: #e5f3f3;
    border: 2px solid rgba(4, 167, 161, 0.25);
    box-shadow: 0 4px 24px rgba(4, 167, 161, 0.12);
}
.main-page-news-announcements-row .iblock-preview-block.col-youtube {
    flex: 1 1 0;
    min-width: 0;
    background: #fdf2f2;
    border: 2px solid rgba(255, 0, 0, 0.12);
    box-shadow: 0 4px 24px rgba(255, 0, 0, 0.08);
}

/* Block container */
.iblock-preview-block {
    width: 100%;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 24px;
    padding: 24px 22px;
    margin-top: 24px;
    box-shadow: 0 2px 20px 0 rgba(0,0,0,0.06);
    background: #fff;
}

/* Header */
.iblock-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(4, 167, 161, 0.15);
}
.iblock-preview-header h2 {
    font-family: 'Mardoto-Bold', sans-serif;
    font-weight: normal;
    font-size: 26px;
    line-height: 120%;
    letter-spacing: 0.4px;
    margin: 0;
    color: #004d4a;
}
.iblock-preview-see-all-btn {
    cursor: pointer;
    border: 1px solid #04A7A114;
    box-shadow: 8px 8px 16px 0px rgba(4, 167, 161, 0.08);
    background: rgba(4, 167, 161, 0.26);
    border-radius: 16px;
    transition: all 0.25s ease;
    transform: translateY(0);
    flex-shrink: 1;
    min-width: 0;
    overflow: hidden;
}
.iblock-preview-see-all-btn:hover {
    transform: translateY(2px) scale(0.97);
}
.iblock-preview-see-all-btn a {
    display: flex;
    gap: 6px;
    align-items: center;
    padding: 8px 14px;
    color: #007470;
    font-family: 'Mardoto-Medium', sans-serif;
    font-size: 12px;
    line-height: 120%;
    text-decoration: none;
    white-space: nowrap;
}

/* Items list — vertical stack of cards */
.iblock-preview-items-wrapper {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.iblock-preview-items {
    display: flex;
    flex-direction: column;
    gap: 18px;
    flex: 1;
    overflow: hidden;
}
/* News column: same style as announcements */
.col-news .iblock-preview-items {
    gap: 18px;
}

/* Fade-out overlay at bottom of each column */
.iblock-preview-fade-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to bottom, rgba(240,247,250,0) 0%, rgba(240,247,250,0.55) 30%, rgba(240,247,250,0.88) 60%, rgba(240,247,250,1) 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 8px;
    pointer-events: none;
    z-index: 2;
}
/* News column: fade to column background color */
.col-news .iblock-preview-fade-overlay {
    background: linear-gradient(to bottom, rgba(229,243,243,0) 0%, rgba(229,243,243,0.55) 30%, rgba(229,243,243,0.88) 60%, rgba(229,243,243,1) 100%);
}
/* YouTube column: fade to column background color */
.col-youtube .iblock-preview-fade-overlay {
    background: linear-gradient(to bottom, rgba(253,242,242,0) 0%, rgba(253,242,242,0.55) 30%, rgba(253,242,242,0.88) 60%, rgba(253,242,242,1) 100%);
}
/* "Ավելին ․․․" button */
.iblock-preview-more-btn {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 10px 28px;
    font-family: 'Mardoto-Medium', sans-serif;
    font-size: 14px;
    color: #007470;
    background: rgba(4, 167, 161, 0.12);
    border: 1px solid rgba(4, 167, 161, 0.2);
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(4, 167, 161, 0.12);
    backdrop-filter: blur(6px);
}
.iblock-preview-more-btn:hover {
    background: rgba(4, 167, 161, 0.26);
    box-shadow: 0 6px 20px rgba(4, 167, 161, 0.2);
    transform: translateY(-1px);
    color: #005c59;
}
/* YouTube column: red-themed button */
.col-youtube .iblock-preview-more-btn {
    color: #cc0000;
    background: rgba(255, 0, 0, 0.08);
    border-color: rgba(255, 0, 0, 0.18);
    box-shadow: 0 4px 14px rgba(255, 0, 0, 0.1);
}
.col-youtube .iblock-preview-more-btn:hover {
    background: rgba(255, 0, 0, 0.18);
    box-shadow: 0 6px 20px rgba(255, 0, 0, 0.15);
    color: #990000;
}

/* Each item — vertical card */
.iblock-preview-item {
    width: 100%;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.06);
    background: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.iblock-preview-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(4, 167, 161, 0.12);
}
.iblock-preview-item-link {
    text-decoration: none;
    color: inherit;
    display: block;
}
/* News column: same vertical card as announcements */
.col-news .iblock-preview-item {
    border-radius: 14px;
}
.col-news .iblock-preview-item-link {
    display: block;
}

/* Picture — full width of card, reduced height ~10% */
.iblock-preview-picture {
    width: 100%;
    aspect-ratio: 16 / 8;
    overflow: hidden;
}
/* News column: same image style as announcements */
.col-news .iblock-preview-picture {
    width: 100%;
    min-width: unset;
    aspect-ratio: 16 / 8;
    height: auto;
    border-radius: 0;
}
.iblock-preview-picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.iblock-preview-item:hover .iblock-preview-picture img {
    transform: scale(1.04);
}

/* Text content — below image */
.iblock-preview-content {
    padding: 10px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
/* News column: same text style as announcements */
.col-news .iblock-preview-content {
    padding: 10px 14px 14px;
}
.col-news .iblock-preview-content h3 {
    font-size: 15px;
    line-height: 140%;
}
.iblock-preview-date {
    font-family: 'Mardoto-Bold', sans-serif;
    font-size: 15px;
    color: #007470;
    line-height: 120%;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, rgba(4, 167, 161, 0.12), rgba(4, 167, 161, 0.04));
    padding: 4px 10px;
    border-radius: 8px;
    border-left: 3px solid #04A7A1;
    display: inline-block;
    align-self: flex-start;
}
.iblock-preview-content h3 {
    font-family: 'Mardoto-Medium', sans-serif;
    font-size: 15px;
    line-height: 140%;
    letter-spacing: 0.2px;
    color: #1a1a1a;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================================================
   YouTube Column Styles
   ============================================================ */
.youtube-col-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(255, 0, 0, 0.12);
}
.youtube-col-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
}
.youtube-col-header-left svg {
    flex-shrink: 0;
}
.youtube-col-header h2 {
    font-family: 'Mardoto-Bold', sans-serif;
    font-weight: normal;
    font-size: 26px;
    line-height: 120%;
    letter-spacing: 0.4px;
    margin: 0;
    color: #1a1a1a;
}
.youtube-col-subscribe-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #FF0000;
    color: #fff;
    font-family: 'Mardoto-Medium', sans-serif;
    font-size: 12px;
    line-height: 120%;
    border-radius: 14px;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 3px 10px rgba(255,0,0,0.18);
    flex-shrink: 0;
}
.youtube-col-subscribe-btn:hover {
    background: #cc0000;
    transform: translateY(2px);
    box-shadow: 0 2px 6px rgba(255,0,0,0.25);
}
.youtube-col-videos {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
    overflow: hidden;
}
.youtube-col-video-card {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}
.youtube-col-video-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
.youtube-col-thumb {
    width: 100%;
    aspect-ratio: 16 / 8;
    overflow: hidden;
    position: relative;
}
.youtube-col-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.youtube-col-video-card:hover .youtube-col-thumb img {
    transform: scale(1.04);
}
.youtube-col-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.55);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
    backdrop-filter: blur(3px);
}
.youtube-col-video-card:hover .youtube-col-play {
    background: rgba(255, 0, 0, 0.85);
    transform: translate(-50%, -50%) scale(1.1);
}
.youtube-col-play svg {
    margin-left: 2px;
}
.youtube-col-info {
    padding: 8px 10px 10px;
}
.youtube-col-info h4 {
    font-family: 'Mardoto-Medium', sans-serif;
    font-size: 13px;
    line-height: 140%;
    color: #1a1a1a;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.youtube-col-date {
    font-family: 'Mardoto-Bold', sans-serif;
    font-size: 14px;
    color: #cc0000;
    letter-spacing: 0.4px;
    background: rgba(255, 0, 0, 0.06);
    padding: 3px 8px;
    border-radius: 6px;
    border-left: 3px solid #FF0000;
    display: inline-block;
    align-self: flex-start;
}
.youtube-col-meta {
    margin-top: 3px;
    font-family: 'Mardoto-Regular', sans-serif;
    font-size: 11px;
    color: #888;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (min-width: 1280px) and (max-width: 1919px) {
    .iblock-preview-header h2,
    .youtube-col-header h2 {
        font-size: 22px;
    }
    .iblock-preview-content h3 {
        font-size: 13px;
    }
}
@media (min-width: 1024px) and (max-width: 1279px) {
    .main-page-news-announcements-row {
        gap: 40px;
    }
    .iblock-preview-header h2,
    .youtube-col-header h2 {
        font-size: 20px;
    }
    .iblock-preview-see-all-btn a {
        padding: 7px 14px;
        font-size: 12px;
    }
    .iblock-preview-content h3,
    .youtube-col-info h4 {
        font-size: 13px;
    }
}
@media (min-width: 768px) and (max-width: 1023px) {
    .main-page-news-announcements-row {
        flex-wrap: wrap;
        gap: 30px;
    }
    .main-page-news-announcements-row .iblock-preview-block.col-announcements,
    .main-page-news-announcements-row .iblock-preview-block.col-news {
        flex: 1 1 calc(50% - 15px);
    }
    .main-page-news-announcements-row .iblock-preview-block.col-youtube {
        flex: 1 1 100%;
    }
    .youtube-col-videos {
        flex-direction: row;
        overflow-x: auto;
    }
    .youtube-col-video-card {
        min-width: 240px;
        flex-shrink: 0;
    }
}
@media (min-width: 320px) and (max-width: 767px) {
    .main-page-news-announcements-row {
        flex-direction: column;
        gap: 20px;
    }
    .main-page-news-announcements-row .iblock-preview-block.col-announcements,
    .main-page-news-announcements-row .iblock-preview-block.col-news,
    .main-page-news-announcements-row .iblock-preview-block.col-youtube {
        flex: 1 1 100%;
    }
    .iblock-preview-block {
        padding: 14px;
        border-radius: 20px;
    }
    .iblock-preview-header,
    .youtube-col-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    .iblock-preview-header h2,
    .youtube-col-header h2 {
        font-size: 20px;
    }
    .iblock-preview-see-all-btn,
    .youtube-col-subscribe-btn {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
    .iblock-preview-see-all-btn a {
        justify-content: center;
    }
    .iblock-preview-content h3 {
        font-size: 14px;
    }
    .youtube-col-info h4 {
        font-size: 12px;
    }
}
