:root {
    --primary-color: #4361ee;
    --secondary-color: #3f37c9;
    --text-color: #333;
    --light-gray: #f8f9fa;
    --dark-gray: #6c757d;
    --white: #ffffff;
    --box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    --border-radius: 12px;
}

/* Body Base */
body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-gray);
    padding: 0;
    margin: 0;
}

/* Main Container */
.news-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Card Design */
.news-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    margin-bottom: 30px;
}

/* FULL Image – No Crop */
.news-image {
    width: 100%;
    height: auto;        /* AUTO HEIGHT – full image */
    object-fit: contain; /* Full image visible */
    display: block;
    border-bottom: 4px solid var(--primary-color);
}

/* Content Section */
.news-content {
    padding: 30px;
}

/* Title */
.news-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* Meta Information */
.news-meta {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    color: var(--dark-gray);
    font-size: 0.9rem;
}

.news-date {
    display: flex;
    align-items: center;
    margin-right: 20px;
}

.news-date i {
    margin-right: 5px;
}

/* Description */
.news-description {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 30px;
    color: #444;
}

/* Back Button */
.back-button {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.back-button i {
    margin-right: 8px;
}

.back-button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(67, 97, 238, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .news-container {
        margin: 20px auto;
    }

    .news-title {
        font-size: 1.5rem;
    }

    .news-image {
        height: auto; /* Keep full image on mobile too */
    }
}
