/* News Carousel */
.news-carousel-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
}

.news-item {
    display: flex;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.news-image {
    width: 50%;
    height: 300px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-content {
    width: 50%;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-content h3 {
    margin-top: 0;
    color: var(--sa-blue);
    font-size: 1.4rem;
}

.news-content p {
    font-size: 1rem;
    line-height: 1.5;
}

/* Carousel Navigation */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--sa-blue);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.carousel-nav:hover {
    background-color: var(--indian-green);
}

.carousel-nav.prev {
    left: -20px;
}

.carousel-nav.next {
    right: -20px;
}

/* News List */
#news-list .news-list-item {
    display: flex;
    margin-bottom: 2rem;
    border-bottom: 1px solid #ccc;
    padding-bottom: 1rem;
}

#news-list .news-list-item img {
    width: 200px;
    height: 150px;
    object-fit: cover;
    margin-right: 1rem;
}

#news-list .news-list-content {
    flex: 1;
}

#news-list .news-list-content h2 {
    color: var(--sa-blue);
    margin-bottom: 0.5rem;
}

#news-list h1 {
    text-align: center;
    font-size: 3.5rem;
    margin-bottom: 2rem;
}

.news-list-item h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.news-list-item .read-more {
    display: block;
    width: fit-content;
    margin: 1rem auto 0;
}

.read-more {
    display: inline-block;
    background-color: var(--sa-blue);
    color: #fff;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 1rem;
    transition: background-color 0.3s ease;
}

.read-more:hover {
    background-color: var(--indian-green);
}

/* News Article Page */
#news-article {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

#news-article h1 {
    color: var(--sa-blue);
    margin-bottom: 1rem;
}

#news-article img {
    max-width: 100%;
    height: auto;
    margin-bottom: 1rem;
}

#article-date {
    color: #666;
    font-style: italic;
    margin-bottom: 1rem;
}

#article-content {
    line-height: 1.6;
}

#article-content p {
    margin-bottom: 1rem;
}

#article-content ul {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

#article-content a {
    color: var(--sa-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

#article-content a:hover {
    color: var(--indian-saffron);
    text-decoration: underline;
}

.back-to-news {
    display: inline-block;
    margin-top: 2rem;
    padding: 0.5rem 1rem;
    background-color: var(--sa-green);
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.back-to-news:hover {
    background-color: var(--indian-saffron);
}