/* Container for the 3-column layout */
.ns-grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

/* Individual Card Styling */
.ns-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    /* Adds the rounded corners */
    overflow: hidden;
    /* Ensures the top image respects the rounded corners */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    /* Adds a very subtle shadow to lift the card */
}

/* Content spacing */
.ns-content-wrapper {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 25px 30px 30px 30px;
    /* Adds breathing room: top, right, bottom, left */
}

/* Image formatting */
.ns-image-wrapper img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

/* Typography */
.ns-title {
    font-size: 22px;
    line-height: 1.3;
    margin: 0 0 10px 0;
    color: #000;
    font-family: sans-serif;
    font-weight: bold;
}

.ns-description {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1;
}

/* Green Outline Buttons */
.ns-button,
#ns-load-more {
    display: block;
    text-align: center;
    padding: 12px;
    border: 2px solid #12723a;
    color: #12723a;
    text-decoration: none;
    font-weight: 600;
    background-color: transparent;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 16px;
}

.ns-button:hover,
#ns-load-more:hover {
    background-color: #12723a;
    color: #fff;
}

/* Load More Wrapper */
.ns-load-more-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

#ns-load-more {
    padding: 12px 40px;
    border-radius: 4px;
}

/* Responsive design for smaller screens */
@media (max-width: 992px) {
    .ns-grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .ns-grid-container {
        grid-template-columns: 1fr;
    }
}