/* Hero Section */
.news-hero {
    background: linear-gradient(rgba(3, 3, 51, 0.8), rgba(3, 3, 51, 0.8)), url('../img/news-hero-bg.jpg') no-repeat center center;
    background-size: cover;
    color: #fff;
    padding: 100px 0;
    text-align: center;
    margin-bottom: 3rem; /* Increased space below hero section */
}

.news-hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.news-hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.8;
}

/* General News Page Styles */
.news-page {
    padding: 4rem 0;
}

/* Spacing and Alignment Fixes */
.container, .row {
    max-width: 1200px;
    margin: 0 auto;  /* Center the content */
    padding: 0 1.5rem;
    margin-bottom: 1.5rem;
}

.row {
    display: flex;
}

/* Section Title Styles */
.news-section-title {
    font-size: 2rem;
    font-weight: bold;
    position: relative;
    color: #333;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
}

.news-section-title::after {
    content: '';
    display: block;
    height: 4px;
    width: 50px;
    background-color: #007bff; /* Blue line for emphasis */
    position: absolute;
    bottom: 0;
    left: 0;
}

/* Important News Styles */
.important-news-list {
    margin: 0;
    list-style-type: none;
    padding: 0; /* Removed default padding */
}

.important-news-list li {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.important-news-list li:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.important-news-list img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 1rem;
    object-fit: cover;
}

.important-news-list a {
    font-weight: bold;
    color: #333;
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.important-news-list a:hover {
    color: #007bff;
}

/* Latest News Styles */
.latest-news-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.latest-news-item img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 1rem;
    object-fit: cover;
}

.latest-news-item a {
    font-weight: bold;
    color: #333;
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.latest-news-item a:hover {
    color: #007bff;
}

.latest-news-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

/* Main News Styles */
.main-news .news-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #333;
    position: relative;
    padding-bottom: 0.5rem;
}

.main-news .news-title::after {
    content: '';
    display: block;
    height: 6px;
    width: 70px;
    background-color: #6c757d; /* Muted grey line for main news */
    position: absolute;
    bottom: 0;
    left: 0;
}

.main-news .main-news-img {
    width: 100%;
    height: auto;
    margin-bottom: 1rem;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.main-news .news-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 1.5rem;
}

.news-reactions {
    display: flex;
    gap: 1rem;  /* Space out the reaction icons */
    margin-bottom: 1rem;
    font-size: 1.2rem;
    color: #555;
}

.news-reactions i {
    cursor: pointer;
    transition: color 0.3s ease;
}

.news-reactions i:hover {
    color: #007bff;
}

.news-comments {
    margin-top: 2rem;
}

.news-comments h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.news-comments .comment {
    padding: 0.75rem;
    background-color: #f4f4f4;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.news-comments .reply-comment {
    margin-left: 1.5rem;
    background-color: #e9ecef;
}

.news-comments .reply {
    color: #007bff;
    font-size: 0.9rem;
    text-decoration: none;
}

.news-comments .reply:hover {
    text-decoration: underline;
}

.comment-form textarea {
    resize: none;
    margin-bottom: 1rem;
}

.comment-form button {
    float: right;
}

/* Navbar adjustments */
.navbar-container {
    justify-content: space-between;
}

.navbar-menu {
    gap: 1.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .news-page {
        padding: 2rem 0;
    }

    .important-news-list {
        padding: 1rem;
    }

    .latest-news-item img {
        width: 50px;
        height: 50px;
    }

    .main-news .news-title {
        font-size: 1.5rem;
    }

    .news-reactions {
        font-size: 1rem;
    }
}
