        .container {
            width: 100%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 1rem;
        }
      
        /* New Archive */
        .news-archive-content {
            background-color: var(--light);
             padding: 2rem;
        }
        .news-archive-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
            gap: 2rem;
            padding-bottom: 4rem;
        }

        .news-card {
            background-color: var(--light);
            border-radius: 15px;
            overflow: hidden;
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
            transition: all 0.3s ease;
            display: flex;
            flex-direction: column;
        }

        .news-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
        }

      .news-image {
    width: 100%;
    height: 200px; /* กำหนดความสูงที่ต้องการ */
    overflow: hidden; /* ซ่อนส่วนเกินของรูปภาพหากรูปภาพใหญ่กว่าพื้นที่ที่กำหนด */
    border-radius: 8px 8px 0 0; /* เพิ่มถ้าต้องการให้มุมโค้งมน */
    display: flex;
    align-items: center;
    justify-content: center;
    /* ลบคุณสมบัติเหล่านี้ออก:
    background: linear-gradient(45deg, #667eea, #764ba2);
    font-size: 3rem;
    color: var(--light);
    */
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

        .news-content {
            padding: 2rem;
            flex-grow: 1; /* Allow content to grow */
            display: flex;
            flex-direction: column;
        }

        .news-date {
            color: #64748b;
            font-size: 0.875rem;
            margin-bottom: 0.5rem;
            font-weight: 500;
        }

        .news-title {
            font-size: 1.3rem;
            margin-bottom: 1rem;
            color: var(--dark);
            font-weight: 600;
            line-height: 1.4;
        }

        .news-excerpt {
            color: #64748b;
            margin-bottom: 1.5rem;
            line-height: 1.6;
            flex-grow: 1; /* Allow excerpt to grow */
        }

        .read-more {
            color: var(--primary);
            text-decoration: none;
            font-weight: 600;
            transition: color 0.3s;
            margin-top: auto; /* Push to bottom */
            align-self: flex-start;
        }

        .read-more:hover {
            color: var(--primary-dark);
        }

        /* Paging */
        .pagination {
            text-align: center;
            margin-top: 3rem;
        }

        .pagination a, .pagination span {
            display: inline-block;
            padding: 0.7rem 1.1rem;
            margin: 0 5px;
            border-radius: 5px;
            text-decoration: none;
            color: var(--primary);
            border: 1px solid var(--primary);
            transition: all 0.3s ease;
        }

        .pagination a:hover {
            background-color: var(--primary);
            color: white;
        }

        .pagination span.current {
            background-color: var(--primary);
            color: white;
            font-weight: bold;
            cursor: default;
        }

        @media (max-width: 768px) {
            .news-archive-grid {
                grid-template-columns: 1fr;
            }
            
        }