/* Reset some default styles */
body, h1, p, ul {
    margin: 0;
    padding: 0;
}

/* Apply a background color to the body */
body {
    background-color: #f5f5f5;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* Style the header */
header {
    background-color: #f5f5f5;
    color: #000;
    padding: 10px 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

nav ul {
    list-style: none;
    display: flex;
}

nav li {
    margin-right: 20px;
}

nav a {
    text-decoration: none;
    color: #000;
    font-weight: 500;
}

.content {
    margin-top: 75px;
}

/* Style the hero section */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.first {
    text-align: center;
    padding: 150px 0;
    animation: fadeIn 1s ease-in-out;
    align-items: center;
}

.first h1 {
    font-size: 48px;
    margin: 20px 0;
    color: #000;
}

.first p {
    font-size: 20px;
    color: #555;
}

@keyframes fadeIn2 {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0); /* Move it back to its original position */
    }
}

.second {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    animation: fadeIn2 1s ease-in-out forwards;
}

.second h1 {
    margin: 20px 0;
    align-items: center;
    text-align: center;
    color: #000;
}

.third {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.third h1 {
    margin: 20px 0;
    align-items: center;
    text-align: center;
    color: #000;
}

/* Latest news section */

.latest-news {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.latest-newsbox {
    display: flex;
    flex-direction: row;
    width: calc(100% / 1.6);
    max-width: 600px;
    margin: 20px;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    text-align: left;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards;
}

.latest-newsbox img {
    width: 50%;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
    transition: .5s ease;
    backface-visibility: hidden;
    display: block;
}

.latest-news-content {
    width: 45%;
    margin: 2.5%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.latest-newsbox h2 {
    justify-content: center;
    text-align: center;
    margin: 15px 0 10px;
    color: #333;
}

.latest-newsbox p {
    text-align: center;
    justify-content: center;
    color: #666;
    margin: 0px 0 11px;
}

.latest-news-date {
    text-align: center;
    color: #666;
}

/* All news section */

.all-news {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.all-newsbox {
    width: calc(100% / 3);
    max-width: 300px;
    margin: 20px;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards;
}

.all-newsbox img {
    width: 100%;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    transition: .5s ease;
    backface-visibility: hidden;
    display: block;
}

.all-newsbox h2 {
    margin: 8px 0 10px;
    color: #333;
}

.all-newsbox p {
    color: #666;
    margin: 0px 0 11px;
}

.all-news-date {
    color: #666;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.load-more-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
    margin-top: 20px;
}

.load-more-button {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    justify-content: center;
    width: 10%;
    transition: background-color 0.3s ease;
}

.load-more-button:hover {
    background-color: #0056b3;
}

@media only screen and (max-width: 768px) {
    .all-newsbox, .latest-newsbox {
        width: 100%;
        max-width: 300px;
        flex-direction: column;
    }

    .latest-news-content, .latest-newsbox img, .latest-newsbox h2, .latest-newsbox p {
        justify-content: center;
        text-align: center;
        width: 100%;
    }

    .latest-news-content {
        margin: 0;
    }

    .latest-newsbox h2 {
        margin: 8px 0 10px;
    }

    .latest-newsbox p {
        margin: 0px 0 11px;
    }
}

.footer {
    margin: 6px 0;
}

/*.hero {
    text-align: center;
    padding: 100px 0;
    animation: fadeIn 1s ease-in-out;
}

.hero h1 {
    font-size: 48px;
    margin: 20px 0;
    color: #000;
}

.hero p {
    font-size: 20px;
    color: #777;
}

.cta-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007bff;
    color: #fff;
    border: none;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 20px;
    font-size: 18px;
    font-weight: 600;
}*/
