
@font-face {
    font-family: 'myfont';
    src: url('/bootstrap/font/Montserrat-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'myfontbold';
    src: url('/bootstrap/font/Montserrat-Bold.ttf') format('truetype');
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'myfont', sans-serif;
    min-height: 100vh;
    color: #304438;

    background-color: #f3f3e9;
    background-image:
        radial-gradient(
            ellipse 55% 40% at 0% 10%,
            rgba(148, 181, 137, 0.38) 0%,
            rgba(148, 181, 137, 0.12) 48%,
            transparent 75%
        ),
        radial-gradient(
            ellipse 50% 45% at 100% 35%,
            rgba(195, 207, 157, 0.38) 0%,
            rgba(195, 207, 157, 0.12) 50%,
            transparent 75%
        ),
        radial-gradient(
            ellipse 65% 45% at 45% 100%,
            rgba(216, 226, 199, 0.48) 0%,
            transparent 72%
        ),
        linear-gradient(
            125deg,
            #edf2e6 0%,
            #f8f5e9 45%,
            #e8eee1 100%
        );

    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
}

/* =========================================
   MAIN NEWS VIEW SECTION
========================================= */

.news-view-section {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 75px 0 85px;
}

/* Decorative organic shapes */

.news-view-section::before,
.news-view-section::after {
    content: "";
    position: absolute;
    z-index: -1;
    pointer-events: none;
    border-radius: 50%;
}

.news-view-section::before {
    width: 420px;
    height: 420px;
    top: 100px;
    left: -240px;
    background: rgba(126, 166, 113, 0.13);
    box-shadow:
        70px 70px 0 30px rgba(177, 199, 155, 0.10),
        0 0 90px rgba(126, 166, 113, 0.12);
}

.news-view-section::after {
    width: 480px;
    height: 480px;
    bottom: 50px;
    right: -280px;
    background: rgba(181, 199, 151, 0.17);
    box-shadow:
        -80px -60px 0 25px rgba(139, 177, 129, 0.10),
        0 0 90px rgba(181, 199, 151, 0.12);
}

.news-container {
    position: relative;
    max-width: 1200px;
    padding: 0 55px;
}

/* =========================================
   NEWS TITLE
========================================= */

.news-title {
    font-family: 'myfontbold', sans-serif;
    font-size: 46px;
    line-height: 1.35;
    margin-bottom: 22px;
    color: #174d32;
    letter-spacing: -0.7px;
    overflow-wrap: anywhere;
}

/* =========================================
   NEWS AUTHOR & DATE
========================================= */

.news-author {
    font-size: 14px;
    font-weight: 600;
    color: #536b59;
    margin-bottom: 10px;
}

.news-date {
    font-size: 13px;
    color: #829084 !important;
    margin-bottom: 30px !important;
}

/* =========================================
   NEWS IMAGE
========================================= */

.news-image-wrapper {
    width: 100%;
    height: 530px;
    margin-bottom: 35px;
    overflow: hidden;
    border: 5px solid rgba(255, 255, 255, 0.85);
    border-radius: 18px;
    background: #e5ebdf;
    box-shadow:
        0 12px 35px rgba(34, 67, 43, 0.13),
        0 3px 8px rgba(34, 67, 43, 0.06);
}

.news-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* =========================================
   NEWS DESCRIPTION
========================================= */

.news-description {
    position: relative;
    padding: 35px 45px;
    margin-top: 30px;
    border: 1px solid rgba(49, 104, 65, 0.12);
    border-radius: 12px;
    background: rgba(255, 255, 250, 0.88);
    box-shadow: 0 5px 20px rgba(34, 67, 43, 0.06);
    text-align: justify;
}

.news-description h2 {
    position: relative;
    font-family: 'myfontbold', sans-serif;
    font-size: 24px;
    color: #174d32;
    margin-bottom: 22px;
}

.news-description h2::after {
    content: "";
    display: block;
    width: 55px;
    height: 3px;
    margin-top: 12px;
    border-radius: 5px;
    background: #d9ad45;
}

.news-description p {
    font-size: 15px;
    line-height: 1.95;
    color: #536257;
    font-weight: 400;
    white-space: pre-line;
    overflow-wrap: anywhere;
    margin-bottom: 20px;
}

.news-description p:last-child {
    margin-bottom: 0;
}

/* =========================================
   LATEST NEWS SECTION
========================================= */

.latest-news-section {
    position: relative;
    padding: 75px 0 85px;
    background: rgba(235, 241, 229, 0.90);
    border-top: 1px solid rgba(49, 104, 65, 0.10);
}

.latest-news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 35px;
}

.latest-news-header h2 {
    position: relative;
    font-family: 'myfontbold', sans-serif;
    font-size: 30px;
    color: #174d32;
    margin: 0;
}

.latest-news-header h2::after {
    content: "";
    display: block;
    width: 65px;
    height: 4px;
    margin-top: 12px;
    border-radius: 5px;
    background: linear-gradient(90deg, #267548, #d9ad45);
}

/* View All Button */

.view-all-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 11px 24px;
    border: 1px solid #174d32;
    border-radius: 30px;
    background: #174d32;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.view-all-btn:hover {
    background: #267548;
    border-color: #267548;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(23, 77, 50, 0.18);
}

/* =========================================
   LATEST NEWS GRID
========================================= */

.latest-news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

/* =========================================
   NEWS CARDS
========================================= */

.news-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(40, 91, 55, 0.12);
    border-radius: 15px;
    background: #fffefa;
    box-shadow: 0 5px 18px rgba(34, 67, 43, 0.075);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.news-card:hover {
    transform: translateY(-6px);
    border-color: rgba(38, 117, 72, 0.30);
    box-shadow: 0 13px 30px rgba(34, 67, 43, 0.13);
}

/* Card Image */

.news-card-image {
    width: 100%;
    height: 235px;
    overflow: hidden;
    background: #e8eee3;
}

.news-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-card-image img {
    transform: scale(1.045);
}

/* Card Content */

.news-card-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 24px;
}

.news-card-title {
    font-family: 'myfontbold', sans-serif;
    font-size: 18px;
    line-height: 1.5;
    color: #174d32;
    margin-bottom: 13px;
    overflow-wrap: anywhere;
}

.news-card-description {
    font-family: 'myfont', sans-serif;
    font-size: 13px;
    line-height: 1.8;
    color: #68776c;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Card Footer */

.news-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #e8ede4;
}

.news-card-date {
    font-size: 12px;
    color: #829084;
}

.news-card-link {
    color: #267548;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.news-card-link:hover {
    color: #174d32;
    transform: translateX(3px);
}

/* =========================================
   RESPONSIVE DESIGN
========================================= */

@media (max-width: 992px) {
    .news-container {
        padding: 0 30px;
    }

    .news-title {
        font-size: 38px;
    }

    .news-image-wrapper {
        height: 420px;
    }

    .news-description {
        padding: 30px;
    }

    .latest-news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .news-view-section {
        padding: 45px 0 55px;
    }

    .news-view-section::before {
        width: 270px;
        height: 270px;
        left: -180px;
    }

    .news-view-section::after {
        width: 300px;
        height: 300px;
        right: -200px;
    }

    .news-container {
        padding: 0 20px;
    }

    .news-title {
        font-size: 30px;
    }

    .news-image-wrapper {
        height: 320px;
        border-radius: 13px;
    }

    .news-description {
        padding: 25px 22px;
    }

    .news-description p {
        font-size: 14px;
    }

    .latest-news-section {
        padding: 55px 0;
    }

    .latest-news-header h2 {
        font-size: 25px;
    }

    .latest-news-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .news-card-image {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .news-view-section {
        padding: 30px 0 45px;
    }

    .news-container {
        padding: 0 16px;
    }

    .news-title {
        font-size: 25px;
    }

    .news-author {
        font-size: 13px;
    }

    .news-image-wrapper {
        height: 230px;
        border-width: 3px;
        border-radius: 11px;
    }

    .news-description {
        padding: 20px 17px;
    }

    .news-description p {
        font-size: 13px;
        line-height: 1.8;
    }

    .latest-news-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
    }

    .latest-news-header h2 {
        font-size: 23px;
    }

    .view-all-btn {
        padding: 10px 20px;
        font-size: 12px;
    }

    .news-card-content {
        padding: 20px;
    }

    .news-card-title {
        font-size: 17px;
    }

    .news-card-image {
        height: 210px;
    }
}

/* =========================================
   ACCESSIBILITY
========================================= */

@media (prefers-reduced-motion: reduce) {
    .news-card,
    .news-card-image img,
    .view-all-btn,
    .news-card-link {
        transition: none;
    }
}
