@font-face {
  font-family: 'myfont'; 
  src: url('/bootstrap/font/Montserrat-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'myfontbold'; 
  src: url('/bootstrap/font/Montserrat-Bold.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'myfont', sans-serif;
    min-height: 100vh;
    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;
}


.news-events-container {
    margin: 0 auto;
    padding: 60px 20px;
}

.contact-main-title {
    font-family: 'myfontbold', sans-serif;
    font-size: 35px;
    margin-bottom: 20px;
    position: relative;
    justify-content: center;
}

.contact-main-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: #ffc107;
    margin: 15px auto 0;
}

.contact-intro-text {
    font-size: 14px;
    color: black;
    line-height: 1.8;
    margin: 0;
}


.contact-intro {
    text-align: center;
    margin: 0 auto 60px;
}


.search-filter-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.search-wrapper {
    margin-bottom: 0;
    flex: 1;
}

.search-box {
    position: relative;
    width: 100%;
    max-width: 600px;
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.search-input {
    width: 100%;
    padding: 16px 20px 16px 55px;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    font-size: 14px;
    font-family: 'myfont', sans-serif;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #1b7f3b;
    box-shadow: 0 0 0 3px rgba(27, 127, 59, 0.1);
}

.search-input::placeholder {
    color: #adb5bd;
}


.filter-tabs {
    display: flex;
    gap: 15px;
    flex: 1;
    justify-content: flex-end;
    margin-bottom: 0;
}

.filter-tab {
    padding: 12px 30px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    font-size: 14px;
    font-family: 'myfont', sans-serif;
    color: #495057;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-tab:hover {
    border-color: #1b7f3b;
    color: #1b7f3b;
    background: #f0f8f3;
}

.filter-tab.active {
    background: #1b7f3b;
    color: #fff;
    border-color: #1b7f3b;
}


.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}


.news-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    display: block;
}

.news-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-5px);
}

.news-card-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #f0f0f0;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-card-image img {
    transform: scale(1.05);
}

.news-card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-card-title {
    font-size: 18px;
    font-family: 'myfontbold', sans-serif;
    color: #1b7f3b;
    margin-bottom: 15px;
    line-height: 1.3;
}

.news-card-description {
    font-size: 13px;
    color: #6c757d;
    font-family: 'myfontbold', sans-serif;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.news-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.news-card-date {
    font-size: 12px;
    color: #868e96;
}

.news-card-link {
    color: #1b7f3b;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s ease;
}

.news-card-link:hover {
    color: #145a2c;
    transform: translateX(3px);
}


.load-more-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.load-more-btn {
    padding: 15px 50px;
    background: #1b7f3b;
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-family: 'myfontbold', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(27, 127, 59, 0.3);
}

.load-more-btn:hover {
    background: #145a2c;
    box-shadow: 0 6px 16px rgba(27, 127, 59, 0.4);
    transform: translateY(-2px);
}

.load-more-btn:active {
    transform: translateY(0);
}


@media (max-width: 1200px) {
    .news-grid {
        grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-header {
        height: 180px;
    }

    .page-header-content {
        padding-left: 30px;
    }

    .page-header-content h1 {
        font-size: 34px;
    }

    .news-events-container {
        padding: 40px 15px;
    }

    .news-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .filter-tabs {
        gap: 10px;
    }

    .filter-tab {
        padding: 10px 20px;
        font-size: 14px;
    }

    .search-input {
        padding: 14px 20px 14px 50px;
        font-size: 15px;
    }

    .news-card-image {
        height: 220px;
    }

    .news-card-title {
        font-size: 20px;
    }

    .news-card-description {
        font-size: 14px;
    }

    .load-more-btn {
        padding: 13px 40px;
        font-size: 15px;
    }

    .search-filter-row {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }

    .filter-tabs {
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .page-header-content h1 {
        font-size: 28px;
    }

    .filter-tabs {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-tab {
        text-align: center;
    }

    .news-card-content {
        padding: 20px;
    }
}