﻿.news-container {
    margin: 0 auto;
    padding: 20px;
    position: relative; /* Ensure the container has a position for ::before */
    background-color: rgba(0, 0, 0, 0.8); /* Transparent dark overlay */
    position: relative;
}

    .news-container::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: url(../images/Backgrounds/NewsBackground.webp);
        background-size: cover;
        background-position: center;
        z-index: -1; /* Ensure the overlay is behind the content */
    }


/* Hero News index page styling */
.hero-news {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Space out content vertically */
    align-items: center;
    padding: 20px;
    margin-bottom: 30px;
    background-color: rgba(0, 0, 0, 0.6); /* Transparent overlay */
    color: inherit;
    min-height: 400px;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    max-width: 100%;
    text-align: center;
    box-sizing: border-box;
}


    .hero-news img {
        width: 100%;
        max-width: 600px;
        height: auto;
        object-fit: cover;
        border-radius: 10px;
        margin-bottom: 20px; /* Space below image */
    }

/* News grid for regular articles */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsive grid */
    gap: 20px;
}

/* News card style */
.news-card {
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.7); /* Transparent overlay */
    color: inherit; /* Maintain existing font color */
}

    .news-card img {
        max-width: 100%;
        height: 200px;
        object-fit: contain;
        margin-bottom: 15px;
    }
    .news-card a.news-read-more {
        color: #fff; /* Sets the link color to white */
        text-decoration: underline; /* Removes underline for cleaner look */
        transition: color 0.3s ease; /* Smooth transition for hover effect */
    }

        .news-card a.news-read-more:hover {
            color: #ffcc00; /* Changes color to a noticeable shade on hover */
            text-decoration: underline; /* Adds underline on hover for emphasis */
        }

.news-details-container {
    margin: 0 auto;
    padding: 20px;
    position: relative; /* Ensure the container has a position for ::before */
    min-height: 100vh; /* Ensure it takes at least the full viewport height */
    background-color: rgba(0, 0, 0, 0.8); /* Transparent dark overlay */
    position: relative;
}

    .news-details-container::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: url(../images/Backgrounds/NewsBackground.webp);
        background-size: cover;
        background-position: center;
        z-index: -1; /* Ensure the overlay is behind the content */
    }

/* Hero Section in the details page */
.news-hero-details {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    width: 100%;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    margin-bottom: 20px;
    padding: 20px;
    border-radius: 10px;
    box-sizing: border-box;
}

/* Hero image styling */
.news-hero-image {
    width: 100%;
    max-height: 40vh; /* Sets maximum height */
    object-fit: contain; /* Ensures the full image is displayed without cropping */
    border-radius: 10px;
    margin-bottom: 15px; /* Adds spacing below the image */
}

/* News Title and Date Styling */
.news-details-content {
    padding: 20px;
    text-align: center;
}

    .news-details-content h1 {
        font-size: 36px;
        margin-bottom: 10px;
        color: #fff;
    }

.news-publish-date, .news-category {
    font-size: 16px;
    color: #ccc;
}

/* Content section */
.news-article-content {
    padding: 20px;
    font-size: 18px;
    line-height: 1.6;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.8); /* Dark transparent background for readability */
    border-radius: 10px;
}
    .news-article-content img {
        max-width: 60%; /* Makes the image responsive */
        height: auto; /* Maintains the aspect ratio */
        margin: 10px 0; /* Adds vertical space around images */
        border-radius: 8px; /* Optional: Adds a subtle rounding for consistency */
    }

    .news-article-content video {
        max-width: 60%; /* Ensures videos don’t overflow the container */
        height: auto;
        display: block; /* Centers the video if it’s a block element */
        margin: 10px auto;
    }

.related-articles {
    color: #fff; /* Sets the text color to white */
    padding: 20px; /* Optional: Adds padding for spacing */
    background-color: rgba(0, 0, 0, 0.7); /* Optional: Adds a dark background to distinguish the section */
    border-radius: 8px; /* Optional: Rounds the corners */
}

    .related-articles h2 {
        color: #fff; /* Ensures the heading is white */
    }

    .related-articles ul li a {
        color: #fff; /* Ensures the links are white */
        text-decoration: none; /* Removes underline for a cleaner look */
        transition: color 0.5s ease;
    }

        .related-articles ul li a:hover {
            text-decoration: underline; /* Adds underline on hover for clarity */
            color: #ffcc00; /* Changes the color to a noticeable yellow shade */
        }

.cta-button {
    padding: 10px 20px;
    background-color: transparent;
    border: 2px solid white;
    color: white;
    text-decoration: none;
    text-align: center;
    font-size: 1rem;
    border-radius: 25px;
    transition: background-color 0.3s, color 0.3s;
    min-width: 150px; /* Set a minimum width to make the buttons uniform */
}

    .cta-button:hover {
        background-color: white;
        color: black;
    }

   /* News Landing page mobile format*/
@media (max-width: 768px) {
    .OurMission-section,
    .OurOrigins-Section {
        display: block; /* Force block display for stacking */
        text-align: center; /* Center-align text on mobile */
    }

        .OurMission-section h2,
        .OurOrigins-Section h2,
        .OurMission-section p,
        .OurOrigins-Section p {
            margin-left: 20px; /* Adjust margins for mobile */
            margin-right: 20px;
            text-align: left; /* Align text to the left within the block */
        }

        .OurMission-section img,
        .OurOrigins-Section img {
            display: block; /* Ensure image is block-level */
            width: 100%; /* Ensure the image takes up full width */
            max-width: 100%; /* Allow the image to be fluid */
            margin-bottom: 20px; /* Add space between the image and the text */
            margin-left: auto;
            margin-right: auto; /* Center the image */
        }
    .hero-news {
        padding: 15px 15px;
    }

        .hero-news h2 {
            font-size: 1.25rem;
        }

        .hero-news p {
            font-size: 0.9rem;
        }

        .hero-news a {
            font-size: 0.9rem;
            padding: 8px 16px;
        }
    .news-item {
        width: 100%; /* Make each news item take full width on smaller screens */
    }
}
/* News Landing page mobile format*/
@media (max-width: 768px) {
    .news-article-content h2{
        font-size:1.1em
    }
    .news-article-content p{
        font-size:0.8em
    }
}