/* =========================================================
   01. GLOBAL RESET
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* =========================================================
   02. HTML
   ========================================================= */

html {
    scroll-behavior: smooth;
    overflow-y: scroll;
}


/* =========================================================
   03. BODY
   ========================================================= */

body {
    font-family: "Jakarta-Sans";
    background: #f7f7f7;
    color: #111;
    line-height: 1.9;
    font-size: 15px;

    min-height: 100vh;
    display: flex;
    flex-direction: column;
}


/* =========================================================
   04. GLOBAL IMAGE
   ========================================================= */

img {
    display: block;
    width: 100%;
}


/* =========================================================
   05. GLOBAL LINK
   ========================================================= */

a {
    color: #111;
    text-decoration: none;
}


/* =========================================================
   06. CONTAINER
   ========================================================= */

.container {
    width: 1180px;
    max-width: 92%;
    margin: auto;
}


/* =========================================================
   07. NEWS CONTAINER
   ========================================================= */

.news-container {
    width: 80%;
    max-width: 1200px;
    margin: 50px auto;
    padding: 40px;
    background: #fff;
    border-radius: 8px;
}


/* =========================================================
   08. NEWS TITLE
   ========================================================= */

.news-title {
    margin-bottom: 35px;
    padding-bottom: 15px;
    font-size: 34px;
    border-bottom: 3px solid #222;
}


/* =========================================================
   09. NEWS ITEM
   ========================================================= */

.news-item {
    display: flex;
    gap: 25px;
    padding: 25px 0;
    border-bottom: 1px solid #ddd;
}


/* =========================================================
   10. NEWS IMAGE
   ========================================================= */

.news-image {
    width: 180px;
    height: 180px;
    overflow: hidden;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.news-image img {
    /* display: block; */
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}


/* =========================================================
   11. NEWS PAGE LOAD ANIMATION
   ========================================================= */

.news-container.fade {
    opacity: 0;
    transform: translateY(30px);
    transition:
        opacity 0.8s ease,
        transform 0.8s ease;
}

.news-container.fade.show {
    opacity: 1;
    transform: translateY(0);
}


/* =========================================================
   12. NEWS ITEM FADE
   ========================================================= */

.news-item.fade {
    opacity: 0;
    transform: translateY(30px);
    transition:
        opacity 0.8s ease,
        transform 0.8s ease;
}

.news-item.fade.show {
    opacity: 1;
    transform: translateY(0);
}


/* =========================================================
   13. NEWS CONTENT
   ========================================================= */

.news-content {
    flex: 1;
}

.news-content p {
    margin: 0;
    color: #555;
    line-height: 1.7;
}

.news-content h2 {
    margin: 0;
    font-size: 24px;
}

.news-content h2 a {
    color: #222;
    text-decoration: none;
}

.news-meta {
    margin: 0;
    margin-bottom: 10px;
    color: #888;
    font-size: 14px;
}

.news-description p {
    margin: 0;
}


/* =========================================================
   14. FADE IN ANIMATION
   ========================================================= */

.fade {
    opacity: 0;
    transform: translateY(40px);
    transition: 1s;
}

.fade.show {
    opacity: 1;
    transform: none;
}


/* =========================================================
   15. MOBILE
   ========================================================= */

@media (max-width: 768px) {

    .news-item {
        display: block;
    }

    .news-image {
        width: 100%;
        height: 220px;
        margin-bottom: 20px;
    }

    .news-container {
        padding: 20px;
    }

}


/* =========================================================
   16. SCROLLBAR
   ========================================================= */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 20px;
}

::-webkit-scrollbar-track {
    background: #f5f5f5;
}


/* =========================================================
   17. FOOTER
   ========================================================= */

.site-footer {
    background: #f7f7f7;
}

footer {
    margin-top: auto;
}