﻿/* Announcements section styles */
.announcements-section {
    position: relative;
    width: 100%;
    /*background: #FFFFFF;*/
    overflow: hidden;
    padding: 64px 0;
    box-shadow: 0px 4px 8px rgba(60, 60, 60, 0.1);
}

.announcements-background {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    z-index: 0;
}

.announcements-container {
    position: relative;
    z-index: 1;
    width: 1312px;
    max-width: 90%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 48px;
}

.announcements-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 12px;
}

.announcements-title {
    font-family: 'Barlow', sans-serif;
    font-style: normal;
    font-weight: 800;
    font-size: 3rem;
    line-height: 1.2;
    color: #121212;
    text-shadow: 0px 4px 12px rgba(30, 215, 96, 0.1);
    margin: 0;
}

.announcements-description {
    width: 100%;
    font-family: 'Roboto', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 1.125rem;
    line-height: 1.17;
    color: #121212;
    margin: 0;
}

.announcements-grid {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 24px;
}

.announcements-row {
    display: flex;
    flex-direction: row;
    align-items: stretch; 
    width: 100%;
    gap: 16px;
}

.announcement-card {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    align-items: stretch; 
    width: calc(50% - 8px);
    height: auto; 
    min-height: 250px; 
    border: 1.5px solid #F0484D;
    filter: drop-shadow(0px 4px 6px rgba(60, 60, 60, 0.2));
    border-radius: 24px;
    overflow: hidden;
    background: #FFFFFF; 
}

.announcement-image {
    width: 250px;
    min-height: 100%; 
    position: relative;
    overflow: hidden;
    flex-shrink: 0; 
}

    .announcement-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        position: absolute; 
        top: 0;
        left: 0;
    }

    .announcement-image::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(0deg, rgba(18, 18, 18, 0.2), rgba(18, 18, 18, 0.2));
    }

.announcement-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    padding: 24px 32px;
    width: calc(100% - 250px);
    background: #FFFFFF;
    flex-grow: 1; 
    position: relative; 
}

    .announcement-content::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: #FFFFFF;
        z-index: -1; 
    }

.announcement-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
    flex-grow: 1; 
}

.announcement-date {
    font-family: 'Roboto', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 0.875rem;
    line-height: 1.15;
    color: #7D7D7D;
    text-shadow: 0px 2.79px 8.37px rgba(30, 215, 96, 0.1);
}

.announcement-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    flex-grow: 1; 
}

.announcement-title {
    font-family: 'Roboto', sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 1.5rem;
    line-height: 1.17;
    color: #353535;
    text-shadow: 0px 2.79px 8.37px rgba(30, 215, 96, 0.1);
    margin: 0;
}

.announcement-description {
    font-family: 'Roboto', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 1.125rem;
    line-height: 1.17;
    color: #353535;
    text-shadow: 0px 2.79px 8.37px rgba(30, 215, 96, 0.1);
    margin: 0;
}

.announcement-link {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    margin-top: 16px; 
}

.announcement-link-text {
    font-family: 'Roboto', sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 0.875rem;
    line-height: 1.7;
    color: #E9242B;
}

.announcement-link-icon {
    width: 16px;
    height: 16px;
    position: relative;
}

    .announcement-link-icon svg {
        width: 100%;
        height: 100%;
        fill: #E9242B;
    }


@media (max-width: 1400px) {
    .announcements-container {
        max-width: 90%;
    }
}

@media (max-width: 992px) {
    .announcements-section {
        padding: 48px 0;
    }

    .announcements-row {
        flex-direction: column;
    }

    .announcement-card {
        width: 100%;
        margin-bottom: 16px;
    }
}

@media (max-width: 768px) {
    .announcements-section {
        padding: 40px 0;
    }

    .announcements-title {
        font-size: 2.25rem;
        line-height: 1.22;
    }

    .announcements-description {
        font-size: 1rem;
        line-height: 1.19;
    }

    .announcement-card {
        height: auto;
        flex-direction: column;
    }

    .announcement-image {
        width: 100%;
        height: 200px;
        min-height: 200px; 
    }

    .announcement-content {
        width: 100%;
        height: auto;
    }
}

@media (max-width: 576px) {
    .announcements-section {
        padding: 32px 0;
    }

    .announcements-title {
        font-size: 1.75rem;
        line-height: 1.21;
    }

    .announcements-container {
        gap: 32px;
    }

    .announcement-image {
        height: 160px;
        min-height: 160px; 
    }

    .announcement-content {
        padding: 16px 20px;
    }

    .announcement-title {
        font-size: 1.25rem;
        line-height: 1.2;
    }

    .announcement-description {
        font-size: 1rem;
        line-height: 1.19;
    }
}
