/* Announcements Page Styles */

.announcements-header {
    background: linear-gradient(135deg, #2878eb 0%, #1a5ab3 100%);
    padding: 3rem 0 4rem 0;
    margin-bottom: 2rem;
    border-radius: 0 0 50px 50px;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(40, 120, 235, 0.2);
}

.announcements-header::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.announcements-header::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: 10%;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.header-title-main {
    font-family: 'Atma', cursive;
    font-size: 3.5rem;
    color: white !important;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .header-title-main {
        font-size: 2.5rem;
    }
}

.announcements-container {
    padding-bottom: 3rem;
}

.news-card {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: white;
    height: 100%;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
}

.news-image-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden;
    background-color: #f8f9fc;
    /* Light background for 'contain' fit */
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
    /* Give some space if it's a logo */
}

.news-category-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: white;
    background: var(--primary);
}

.news-card-body {
    padding: 1.5rem;
}

.news-date {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.news-date i {
    margin-right: 5px;
}

.news-title {
    font-family: 'Atma', cursive;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.clickable-news-image,
.clickable-news-title {
    cursor: pointer;
}

.clickable-news-title:hover {
    color: var(--primary);
    text-decoration: underline;
}

.news-excerpt {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    word-break: break-word;
}

.news-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Modal Content Styles */
.modal-news-image {
    max-height: 400px;
    width: 100%;
    object-fit: contain;
    background: #f8f9fc;
    border-radius: 15px;
    padding: 20px;
}

/* Category Specific Colors */
.badge-exams {
    background-color: #f14d5d;
}

.badge-protypa {
    background-color: #2878eb;
}

.badge-onasseia {
    background-color: #2ecc71;
}

.badge-updates {
    background-color: #f39c12;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .announcements-header {
        padding: 2rem 0;
    }
}