.implementedhero-section {
    background-color: #f0f0f0;
    color: white;
    position: relative;
    width: 100%;
    height: 350px;
    background-image: url('/images/sliderphoto1.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    font-weight: bold;
    font-size: 2.5rem;
}

    .implementedhero-section .overlay {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.4);
        display: flex;
        justify-content: center;
        align-items: center;
    }

        .implementedhero-section .overlay h1 {
            text-transform: uppercase;
            position: relative;
            z-index: 2;
            margin: 0 20px;
            text-align: center;
            font-weight: bold;
            font-size: 3rem;
            color: white;
        }

@media (max-width: 600px) {
    .implementedhero-section {
        height: 180px;
        font-size: 1.8rem;
    }

        .implementedhero-section .overlay h1 {
            font-size: 2rem;
        }

    .short-desc {
        max-height: calc(1.2em * 6);
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 6;
        -webkit-box-orient: vertical;
    }
}

.projects-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 20px 16px 40px 16px;
    padding: 0;
}

.project-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    padding: 16px;
    display: flex;
    flex-direction: column;
}

.project-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.project-title {
    font-size: 1.4em;
    font-weight: bold;
    color: #444;
    margin-bottom: 0;
}

.project-client {
    font-size: 0.95em;
    color: #888;
    margin-top: 4px;
}

.admin-controls {
    display: flex;
    gap: 8px;
    padding: 20px 0 0 16px;
}

.create-btn {
    background-color: #EC1C24;
    border-color: #EC1C24;
    color: white;
    font-weight: bold;
}

    .create-btn:hover {
        background-color: #b3161b;
        border-color: #b3161b;
        color: white;
    }

.btn-icon {
    text-decoration: none;
    color: #EC1C24;
    font-size: 1.2em;
    transition: opacity 0.2s ease;
}

    .btn-icon:hover {
        color: #b3161b;
    }

.project-body {
    display: flex;
    flex-direction: row;
    margin-top: 12px;
    gap: 16px;
}

.project-image {
    max-width: 220px;
    max-height: 150px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    flex-grow: 0;
}

.project-description-wrapper {
    display: flex;
    flex-direction: column;
}

.short-desc {
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more-link {
    margin-top: 0.3rem;
    color: #444;
    cursor: pointer;
    text-decoration: underline;
    align-self: flex-start;
    transition: color 0.3s ease;
}

    .read-more-link:hover {
        color: #EC1C24;
    }

#loadMoreBtn {
    color: #444;
    background-color: transparent;
    border: 2px solid #888;
    padding: 8px 20px;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.3s ease, border-color 0.3s ease;
    border-radius: 4px;
    margin-bottom: 20px;
}

    #loadMoreBtn:hover {
        color: #EC1C24;
        border-color: #EC1C24;
        background-color: transparent;
    }

@media (max-width: 600px) {
    .project-body {
        flex-direction: column;
    }

    .project-image {
        width: 100%;
        height: auto;
    }

    .projects-container {
        grid-template-columns: 1fr;
        margin: 20px 12px 40px 12px;
    }
}

.project-description .read-more-link {
    color: #444;
    cursor: pointer;
    text-decoration: underline;
    display: inline-block;
    margin-top: 0.3rem;
    transition: color 0.3s ease;
}

    .project-description .read-more-link:hover {
        color: #EC1C24;
    }

@media (min-width: 605px) and (max-width: 727px) {
    .projects-container {
        grid-template-columns: 1fr;
        margin: 20px 16px 40px 16px;
    }

    .project-body {
        flex-direction: column;
    }

    .project-image {
        width: 100%;
        height: auto;
        max-width: none;
        max-height: none;
    }
}
