
.sections {
    padding: 40px;
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}
.news-container {
    width: 100%;
    background-color: rgba(37, 37, 37, 0.95);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.news-section {
    width: 100%;
}

.news-header {
    margin-bottom: 30px;
    text-align: center;
    position: relative;
}

.news-header h2 {
    font-size: 2rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
    padding-bottom: 15px;
    position: relative;
}

.news-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, #fc7b259e, #fc7e6b9b);
}

.card {
    background-color: rgba(37, 37, 37, 0.8); /* Semi-transparent background */
    border-radius: 10px;
    padding: 20px;
    max-width: 600px; /* Restrict card width */
    max-height: 500px; /* Restrict card height */
    overflow: hidden; /* Prevent content overflow */
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin: 0 auto;
}

.card h2 {
    margin-bottom: 10px;
    color: #b3b3b3;
    font-size: 1.4rem; /* Slightly smaller */
}

/* Individual News Item */
.news-item {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s, background 0.3s;
}

.news-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.02);
}

/* Update Label */
.update-label {
    background: rgba(99, 136, 106, 0.2);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: bold;
    color: #63886a;
}

/* News Content Styling */
.news-content h3 {
    font-size: 1.4rem;
    font-weight: bold;
    color: #e0e0e0;
    margin: 0;
    transition: color 0.3s;
}

.news-item:hover .news-content h3 {
    color: #ff6200;
}

.news-content .news-date {
    font-size: 0.9rem;
    color: #a0a0a0;
    display: block;
    margin-top: 5px;
}

/* News Arrow */

.news-arrow {
    margin-left: 20px;
    color: #fc7b25;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}
.news-item:hover .news-arrow {
    transform: translateX(5px);
}
/* Responsive Design */
@media (max-width: 600px) {
    .news-section {
        padding: 15px;
    }

    .news-header h2 {
        font-size: 2rem;
        font-weight: bold;
        color: #ffcc00; /* Gold color for better visibility */
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    }
    .news-item {
        padding: 8px; /* Smaller padding */
        height: 50px; /* Adjust for smaller screens */
    }

    .news-content h3 {
        font-size: 0.9rem; /* Adjust font size for title */
    }

    .news-content .news-date {
        font-size: 0.7rem; /* Adjust font size for date */
    }

    .news-icon img {
        width: 25px; /* Adjust icon size */
        height: 25px;
    }

    .card {
        max-width: 90%; /* Fit smaller screens */
    }
}




.modal {
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

.view-all-button:hover {
    background-color: rgba(255, 204, 0, 0.4);
}

/* Update news list styling */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-height: 600px;
    overflow-y: auto;
    padding-right: 15px;
}

/* Customize scrollbar */
.news-list::-webkit-scrollbar {
    width: 8px;
}

.news-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.news-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

/* Update news item styling */
.news-item {
    display: flex;
    align-items: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    flex-wrap: wrap;
}

/* Add new styles for expanded content */
.news-item-content {
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.5s ease;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 0 0 10px 10px;
    margin-top: 0;
}

.news-item.expanded {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px 10px 0 0;
}

.news-item.expanded .news-item-content {
    max-height: 500px;
    padding: 20px;
    margin-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.news-item-content .content-title {
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 10px;
    text-align: left;
}

.news-item-content .content-date {
    font-size: 0.9rem;
    color: #a0a0a0;
    margin-bottom: 15px;
    text-align: left;
}

.news-item-content .content-text {
    color: #e0e0e0;
    line-height: 1.6;
    text-align: left;
    white-space: pre-line;
    padding: 15px 0;
}

/* Remove old modal styles */
.modal, .modal-content, .close {
    display: none;
}

.news-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
    border-color: rgba(252, 123, 37, 0.5);
}

.news-icon {
    margin-right: 20px;
}

.news-icon img {
    width: 30px; /* Smaller icon size */
    height: 30px;
    max-width: 100%; /* Ensure it doesn't exceed container */
    object-fit: contain; /* Maintain aspect ratio */
}


.news-content {
    flex: 1;
}

.news-content h3 {
    font-size: 1.1rem;
    margin: 0 0 5px 0;
    color: #fff;
}


.news-content .news-date {
    font-size: 0.8rem; /* Reduced font size */
    color: #b3b3b3;
    font-style: italic;
}

/* Arrow on the Right */
.news-arrow {
    flex-shrink: 0;
    font-size: 1rem; /* Reduced arrow size */
    color: #fff;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.news-item:hover .news-arrow {
    opacity: 1;
}

/* Card Styling */
.card {
    background-color: rgba(37, 37, 37, 0.8); /* Semi-transparent background */
    border-radius: 10px;
    padding: 20px;
    max-width: 600px; /* Restrict card width */
    max-height: 500px; /* Restrict card height */
    overflow: hidden; /* Prevent content overflow */
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin: 0 auto;
}

.card h2 {
    margin-bottom: 10px;
    color: #b3b3b3;
    font-size: 1.4rem; /* Slightly smaller */
}

/* Responsive Design */
@media (max-width: 600px) {
    .news-section {
        padding: 15px;
    }

    .news-item {
        padding: 8px; /* Smaller padding */
        height: 50px; /* Adjust for smaller screens */
    }

    .news-content h3 {
        font-size: 0.9rem; /* Adjust font size for title */
    }

    .news-content .news-date {
        font-size: 0.7rem; /* Adjust font size for date */
    }

    .news-icon img {
        width: 25px; /* Adjust icon size */
        height: 25px;
    }

    .card {
        max-width: 90%; /* Fit smaller screens */
    }
}


.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #252525;
    padding: 20px;
    border-radius: 10px;
    width: 50%;
    text-align: center;
    color: #e0e0e0;
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #b3b3b3;
}