/**
 * News Block - Awwwards Level Redesign
 * Modern card grid with hover lifts, glassmorphism details, and premium typography
 */

.news-block {
    padding: 8rem 0 !important;
    background: #FAFAFA !important;
    position: relative !important;
    overflow: hidden !important;
    width: 100% !important;
    margin: 0 !important;
    display: block !important;
}

/* Background gradient wave */
.news-block::before {
    content: '';
    position: absolute;
    bottom: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

/* === HEADER === */
.news-header {
    text-align: left !important;
    margin-bottom: 5rem;
    position: relative;
    z-index: 1;
    max-width: 1300px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 0 3rem !important;
}

.news-title-main {
    font-family: 'Montserrat', sans-serif !important;
    font-size: clamp(2.5rem, 5vw, 4rem) !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    color: #1A1A2E !important;
    text-transform: uppercase !important;
    letter-spacing: -0.04em !important;
    margin: 0;
}

.news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    max-width: 1300px !important;
    margin: 0 auto !important;
    padding: 0 3rem !important;
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* === CARD STYLES === */
.news-card {
    background: white;
    border-radius: 2rem;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(139, 92, 246, 0.1);
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    position: relative;
}

.news-card:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    border-color: rgba(139, 92, 246, 0.2);
}

/* Thumbnail Container */
.news-thumbnail {
    width: 100%;
    aspect-ratio: 16/10;
    background: #1A1A2E;
    position: relative;
    overflow: hidden;
}

.news-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-card:hover .news-thumbnail img {
    /* removed scale */
}

/* Date Badge */
.news-meta {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-family: 'Inter', sans-serif !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    color: #EC4899;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1;
}

/* Content Area */
.news-content {
    padding: 2.5rem 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-title {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    margin-bottom: 1rem;
    color: #1A1A2E;
    transition: color 0.3s ease;
}

.news-title a {
    color: inherit;
    text-decoration: none;
    background: linear-gradient(to right, #1A1A2E, #1A1A2E);
    background-size: 0% 2px;
    background-position: 0 100%;
    background-repeat: no-repeat;
    transition: background-size 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding-bottom: 2px;
}

.news-card:hover .news-title a {
    color: #8B5CF6;
    background-size: 100% 2px;
    background-image: linear-gradient(to right, #EC4899, #8B5CF6);
}

.news-excerpt {
    font-family: 'Inter', sans-serif !important;
    font-size: 1rem !important;
    color: rgba(26, 26, 46, 0.7);
    line-height: 1.6 !important;
    margin-bottom: 2rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Read More Link */
.news-read-more {
    font-family: 'Inter', sans-serif !important;
    font-weight: 700 !important;
    font-size: 0.875rem !important;
    color: #8B5CF6;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.news-read-more::after {
    content: '→';
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-card:hover .news-read-more {
    color: #EC4899;
}

.news-card:hover .news-read-more::after {
    transform: translateX(5px);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {

    .news-header,
    .news-grid {
        padding: 0 1.5rem !important;
    }

    .news-card {
        border-radius: 1.5rem;
    }

    .news-content {
        padding: 2rem 1.5rem;
    }

    .news-title {
        font-size: 1.35rem !important;
    }
}

/* === ACCESSIBILITY === */
@media (prefers-reduced-motion: reduce) {

    .news-card,
    .news-thumbnail img,
    .news-read-more::after {
        transition: none !important;
        transform: none !important;
    }
}

/* === PRINT === */
@media print {
    .news-block::before {
        display: none;
    }

    .news-card {
        box-shadow: none;
        border: 1px solid #ccc;
        page-break-inside: avoid;
    }

    .news-read-more {
        display: none;
    }
}