/* Projects — listing + single-project view (formerly services.css) */

.projects {
    padding: 100px 40px;
    background: #f8f9fa;
}

.projects h2 {
    text-align: center;
    font-size: 48px;
    color: #2c3e50;
    margin-bottom: 70px;
}

.projects-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 380px));
    justify-content: center;
    gap: 40px;
}

/* Card — relocated from the shared style.css and renamed, since this
   page is the only thing on the site using it */
.project-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    transition: all 0.4s;
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.project-image {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.project-content {
    padding: 30px;
}

.project-content h3 {
    font-size: 24px;
    color: #2c3e50;
    margin-bottom: 15px;
}

.project-content p {
    color: #555;
    line-height: 1.6;
}

.project-readmore {
    color: #008000;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.25s;
}

.project-card:hover .project-readmore {
    gap: 12px;
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty-state i {
    font-size: 40px;
    margin-bottom: 15px;
    color: #ddd;
}

/* Pagination */
.projects-pagination {
    margin-top: 55px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.pager {
    display: inline-flex;
    border-radius: 30px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.pager-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    background: #fff;
    text-decoration: none;
    border-left: 1px solid #eee;
    transition: all 0.2s;
}

.pager-btn:first-child {
    border-left: none;
}

.pager-btn:hover {
    background: #0FFF50;
    color: #fff;
}

.pager-btn.is-current {
    background: #008000;
    color: #fff;
    font-weight: 700;
}

.pager-btn.is-disabled {
    color: #ccc;
    cursor: default;
}

.pager-summary {
    margin: 0;
    color: #777;
    font-size: 14px;
}

/* Single Project View */
.project-detail {
    padding: 70px 40px 100px;
    background: #fff;
}

.project-detail-wrap {
    max-width: 1000px;
    margin: 0 auto;
}

.project-detail-title {
    font-size: 36px;
    color: #2c3e50;
    margin-bottom: 25px;
    line-height: 1.3;
}

.project-main-image {
    width: 100%;
    height: 460px;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.project-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-detail-content {
    color: #444;
    line-height: 1.9;
    font-size: 16.5px;
    margin-bottom: 50px;
}

.project-detail-content p {
    margin-bottom: 22px;
}

/* Gallery grid — sits below the main photo and body content */
.project-gallery-heading {
    font-size: 24px;
    color: #2c3e50;
    margin-bottom: 24px;
}

.project-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
}

.project-gallery-item {
    aspect-ratio: 4 / 3;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    cursor: pointer;
}

.project-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
    display: block;
}

.project-gallery-item:hover img {
    transform: scale(1.08);
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-main-image {
        height: 260px;
    }

    .project-detail-title {
        font-size: 27px;
    }

    .project-gallery {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .pager-btn {
        min-width: 34px;
        height: 34px;
        padding: 0 10px;
        font-size: 13px;
    }
}