#mk-page-introduce {
    display: none;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    width:100%;
    box-sizing: border-box;
    padding-left: 15px;
    padding-right: 15px;
}

.document-category-featured-image img {
    width:100%;
    height:100%;
    max-height:475px;
    object-fit:cover;
    margin-bottom:-10px;
}

.document-category-featured-image {
    position: relative; 
}

.document-category-title-overlay {
    position: absolute; 
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 0; 
    box-sizing: border-box;
    text-shadow: 0px 4px 30px rgba(0, 0, 0, 1);
}

.document-category-title-overlay .container {
    display:flex;
    justify-content: space-between;
}

.document-category-title {
    margin: 0;
    color:white;
}

.search-box input {
  width: 300px;
  padding: 8px;
  background-color: white;
  border: 2px solid #9dc953; 
  border-radius: 5px;
  font-size: 14px;
  color: #555;
}

.category-description {
    padding-top:40px;
    padding-bottom:0px;
}

.category-description p {
    font-size:18px;
}

.main-content {
    padding:20px 0px;
}

.document-category-description p {
    font-size:22px;
}



.container.main-content {
    display: flex;
}

.sidebar {
    padding-top:30px;
    width: 20%;
}

.filter-block h3 {
    color: #333;
    padding:10px;
    font-size:20px;
    background-color: #D1E3D6;
}

.filter-options, .archive-options {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.filter-options li, .archive-options li {
    margin-bottom: 10px;
}

.content-area {
    width: 75%;
    padding-left: 40px;
}

.sort-box {
    display: flex;
    justify-content: space-between;
    padding-top:20px;
    width:100%;
    margin-bottom:10px;
}

.sort-by-block span {
    font-weight:bold;
    margin-right:10px;
}

.sort-by-block select {
    padding:10px;
    border:1px solid black;
    min-width:200px;
}

.document-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.document-item {
    width: calc(33.333% - 20px);
    border: 1px solid #e2e2e2;
    border-radius: 5px;
    overflow: hidden;
    background-color: #fff;
}

.document-thumbnail img {
    width: 100%;
    height: 100%;
    max-height: 170px;
    object-fit: cover;
}

.document-content {
    padding: 20px;
}

.document-content h2 {
    font-size: 1.1em;
    color: #2b7c2f;
    margin: 0 0 10px;
}

.document-content .document-excerpt {
    color: #666;
    margin-bottom: 15px;
}

.document-content .button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #2b7c2f;
    color: #fff;
    text-decoration: none;
    border-radius: 20px;
    font-weight: bold;
}

.document-content .button:hover {
    background-color: #225f25;
}











/* Modal styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 99999; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4); /* Black with opacity */
    padding-top: 60px;
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
}

.modal-content .sort-by-block, .modal-content .filter-block {
    margin-top:40px;
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close-modal:hover,
.close-modal:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.filter-options {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.filter-options li {
    margin-bottom: 10px;
}

.filter-options input {
    margin-right: 10px;
}

#apply-filters-btn {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #2b7c2f;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    display:none;
}

#apply-filters-btn:hover {
    background-color: #225f25;
}

.mobile-filter-button {
    display: none;
}

.documents-show-all {
    padding: 5px 20px;
    background-color: #2b7c2f;
    text-decoration: none;
    border-radius: 20px;
    font-weight: bold;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    width: fit-content;
    color: #fff;
    transition: all 0.3s ease-in-out;
    margin-bottom: 10px;
}

.documents-show-all:hover {
    background-color: #225f25;
}

@media screen and (max-width: 1000px) {
    .document-item {
        width:calc(50% - 20px);
    }
}

/* Hide filter sidebar on mobile */
@media screen and (max-width: 768px) {
    .sidebar, .sort-box .sort-by-block {
        display: none; /* Hide the filter sidebar */
    }
    
    .document-item {
        width:auto;
    }
    
    .content-area {
        width: 100%;
        padding-right: 40px;
    }

    .mobile-filter-button {
        display: block;
        margin-left: 10px;
    }

    .mobile-filter-button button {
        padding: 10px 20px;
        background-color: #2b7c2f;
        color: white;
        border: none;
        border-radius: 5px;
        font-size: 16px;
        cursor: pointer;
    }

    .mobile-filter-button button:hover {
        background-color: #225f25;
    }
    
    #apply-filters-btn {
        display:block;
    }
}