/* News Page Custom Styling */

.news-card {
    transition: all 0.3s ease;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.news-image {
    transition: all 0.3s ease;
    overflow: hidden;
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

/* Horizontal card layout */
.news-inner {
    display: block;
}

.news-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

@media (min-width: 768px) {
    .news-inner {
        display: grid;
        grid-template-columns: 360px 1fr;
        align-items: stretch;
    }

    .news-image img {
        height: 220px;
    }
}

.category-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.category-business {
    background: #dcfce7;
    color: #166534;
}

.category-project {
    background: #dbeafe;
    color: #1e40af;
}

.category-achievement {
    background: #fef3c7;
    color: #d97706;
}

.category-partnership {
    background: #ede9fe;
    color: #7c3aed;
}

.category-csr {
    background: #fce7f3;
    color: #be185d;
}

.category-training {
    background: #ecfdf5;
    color: #059669;
}

.newsletter-section {
    background: #ffffff;
    border-top: 3px solid #10b981;
}

.newsletter-input {
    transition: all 0.3s ease;
    border: 2px solid #d1fae5;
    background: #ffffff;
}

.newsletter-input:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
    outline: none;
}

.newsletter-button {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    transition: all 0.3s ease;
}

.newsletter-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3);
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.fade-in:nth-child(1) {
    animation-delay: 0.1s;
}

.fade-in:nth-child(2) {
    animation-delay: 0.2s;
}

.fade-in:nth-child(3) {
    animation-delay: 0.3s;
}

.fade-in:nth-child(4) {
    animation-delay: 0.4s;
}

.fade-in:nth-child(5) {
    animation-delay: 0.5s;
}

.fade-in:nth-child(6) {
    animation-delay: 0.6s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gradient-text {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.news-date {
    color: #6b7280;
    font-size: 0.875rem;
}

.read-more {
    color: #10b981;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #059669;
}

/* Truncate preview text */
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    line-clamp: 3;
    overflow: hidden;
}

/* Mobile-specific styles - plain white backgrounds */
@media (max-width: 768px) {
    .news-card {
        background: #ffffff;
    }

    .news-card:hover {
        background: #ffffff;
    }

    .newsletter-section {
        background: #ffffff;
    }
}