@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;
}

.projects-container {
    padding-top: 50px;
    padding-bottom: 70px;
}

.projects-intro {
    text-align: center;
    margin-bottom: 45px;
    
}

.projects-main-title {
    font-family: 'myfontbold', sans-serif;
    font-size: 35px;
    margin-bottom: 20px;
    position: relative;
    justify-content: center;
}

.projects-main-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: #ffc107;
    margin: 15px auto 0;
}

.projects-intro-text {
    font-family: 'myfont', sans-serif;
    max-width: 850px;
    margin: 0 auto;
    font-size: 14px;
    line-height: 1.7;
    color: #666;
}

.project-card-status {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 11px;
}

.project-status-label {
    color: #666;
}

.project-status-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
}

.project-status-upcoming {
    color: #856404;
    background: #fff3cd;
}

.project-status-ongoing {
    color: #155724;
    background: #d4edda;
}

.project-status-completed {
    color: #155724;
    background: #c3e6cb;
}

.project-status-on-hold {
    color: #721c24;
    background: #f8d7da;
}


.project-card-location i {
    color: #1b7f3b;
}

.project-card-location {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 14px;
    color: #666;
    font-size: 12px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.project-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 15px;
    border-top: 1px solid #eeeeee;
}

.project-card-date {
    color: #777;
    font-size: 12px;
}

.project-card-link {
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 600;
    color: #1b7f3b;
    text-decoration: none;
    white-space: nowrap;
}


a.project-card:hover .project-card-link {
    color: #124b7c;
}

a.project-card:focus-visible {
    outline: 3px solid #1b7f3b;
    outline-offset: 4px;
}


.search-filter-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
}

.search-wrapper {
    flex: 1;
    max-width: 500px;
}

.search-box {
    width: 100%;
    display: flex;
    height: 50px;
    align-items: center;
    background: #ffffff;
    border: 2px solid #dedede;
    border-radius: 40px;
    padding: 0 25px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.search-box:focus-within {
    border-color: #1b7f3b;
    box-shadow: 0 0 0 3px rgba(27, 127, 59, 0.08);
}

.search-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.search-icon img {
    width: 27px;
    height: 27px;
    object-fit: contain;
    opacity: 0.45;
}

.search-input {
    width: 100%;
    height: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-family: 'myfont', sans-serif;
    font-size: 15px;
    color: #333;
}

.search-input::placeholder {
    color: #aeb9c8;
}


.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 30px;
}

a.project-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

a.project-card:hover {
    color: inherit;
    text-decoration: none;
    transform: translateY(-5px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
}

.project-card-image {
    width: 100%;
    height: 220px;
    flex-shrink: 0;
    overflow: hidden;
    background: #f4f5f6;
}

.project-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.project-card-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    padding: 22px;
}


.project-card-title {
    font-family: 'myfontbold', sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    color: #1b7f3b;
    margin-bottom: 12px;
}


.project-card-description {
    font-size: 13px;
    line-height: 1.7;
    color: #666;
    margin-bottom: 22px;
}

.project-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #eeeeee;
}
.project-card-category {
    font-size: 12px;
    font-weight: 600;
    color: #17365d;
}

.project-card-link {
    font-size: 14px;
    font-weight: 600;
    color: #1b7f3b;
    text-decoration: none;

}

.project-card-link:hover {
    color: #124b7c;
}

.project-filter-wrapper {
    width: 250px;
    flex-shrink: 0;
}

.project-status-filter {
    width: 100%;
    height: 50px;
    padding: 0 20px;
    border: 2px solid #dedede;
    border-radius: 30px;
    background: #fff;
    color: #333;
    font-family: 'myfont', sans-serif;
    font-size: 14px;
    outline: none;
    cursor: pointer;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.project-status-filter:focus {
    border-color: #1b7f3b;
    box-shadow: 0 0 0 3px rgba(27, 127, 59, 0.08);
}

.projects-load-more-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.projects-load-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 30px;
    border: 2px solid #1b7f3b;
    border-radius: 25px;
    background: #1b7f3b;
    color: #fff;
    font-family: 'myfont', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.projects-load-more-btn:hover {
    background: #145c2b;
    border-color: #145c2b;
}

@media (max-width: 1100px) {

    .search-filter-row {
        flex-direction: column;
        align-items: stretch;
    }

    .search-wrapper {
        max-width: 100%;
    }

    .project-filter-wrapper {
        width: 100%;
    }

}

@media (max-width: 768px) {

    .search-filter-row {
        gap: 20px;
        margin-bottom: 30px;
    }

    .search-box {
        height: 65px;
        padding: 0 20px;
    }

    .search-input {
        font-size: 15px;
    }

    .project-status-filter {
        height: 55px;
        font-size: 14px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

}




@media (max-width: 992px) {


    .projects-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .projects-main-title {
        font-size: 32px;
    }


}

@media (max-width: 768px) {


    .projects-container {
        padding-top: 35px;
        padding-bottom: 50px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .projects-main-title {
        font-size: 28px;
    }

    .projects-intro-text {
        font-size: 15px;
    }


}

@media (max-width: 480px) {


    .projects-main-title {
        font-size: 25px;
    }

    .projects-intro-text {
        font-size: 14px;
    }

    .project-card-image {
        height: 200px;
    }

    .project-card-content {
        padding: 18px;
    }

    .project-card-title {
        font-size: 19px;
    }

}