﻿.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.news-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: transform 0.3s ease;
}

    .news-card:hover {
        transform: translateY(-5px);
    }

    .news-card img {
        width: 100%;
        height: 180px;
        object-fit: cover;
    }

.news-card-content {
    padding: 1rem;
}

    .news-card-content h3 {
        margin: 0 0 0.5rem;
        font-size: 1.2rem;
    }

    .news-card-content p {
        font-size: 0.9rem;
        color: #555;
    }

.read-more {
    display: inline-block;
    margin-top: 0.5rem;
    color: #007bff;
    text-decoration: none;
}

    .read-more:hover {
        text-decoration: underline;
    }
.news-meta {
    font-size: 0.85rem;
    color: #777;
    margin: 0.3rem 0 0.8rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

    .news-meta span {
        display: flex;
        align-items: center;
        gap: 0.3rem;
    }

@media (max-width: 600px) {
    .news-card-content h3 {
        font-size: 1rem;
    }

    .news-card-content p {
        font-size: 0.85rem;
    }
}
/*----------------------*/
.detail-container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 2rem;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    font-family: 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #333;
    transition: all 0.3s ease;
}

.detail-image {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

    .detail-image:hover {
        transform: scale(1.02);
    }

.detail-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 0.6rem;
}

.detail-meta {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

    .detail-meta::before {
        content: "📅 ";
        margin-right: 0.25rem;
        font-size: 1rem;
    }

.detail-content {
    font-size: 1.05rem;
    color: #444;
    line-height: 1.8;
    margin-top: .3rem;
    /*white-space: pre-wrap;*/
}

.back-link {
    display: inline-block;
    margin-top: 2rem;
    font-size: 0.95rem;
    text-decoration: none;
    color: #007bff;
    background: transparent;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    transition: background 0.2s ease;
}

    .back-link:hover {
        background: #f0f8ff;
        text-decoration: underline;
    }

/* Responsive Design */
@media (max-width: 600px) {
    .detail-container {
        padding: 1rem;
        border-radius: 10px;
    }

    .detail-title {
        font-size: 1.6rem;
    }

    .detail-meta {
        font-size: 0.85rem;
        gap: 0.8rem;
    }

    .detail-content {
        font-size: 1rem;
    }

    .back-link {
        font-size: 0.9rem;
        padding: 0.3rem 0.6rem;
    }
}
