/*
 Theme Name:   GeneratePress Child - MKS
 Theme URI:    https://mitrakaryasarana.com
 Description:  Child theme for PT Mitra Karya Sarana
 Author:       PT Mitra Karya Sarana
 Template:     generatepress
 Version:      1.0.0
*/

/* ── projects_by_cat shortcode ── */
.project-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin: 30px 0;
}
.project-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s;
}
.project-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.project-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}
.project-card-content {
    padding: 15px;
}
.project-card-content h3 {
    margin: 0 0 8px;
    font-size: 16px;
}
.project-card-content h3 a {
    text-decoration: none;
    color: inherit;
}
.project-card-content p {
    margin: 0;
    font-size: 14px;
    color: #666;
}
@media (min-width: 600px) {
    .project-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .project-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
    .project-card img { height: 200px; }
}

/* ── Project Showcase [project_showcase] ── */

/* Filter - mobile first: horizontal scroll */
.ps-filters {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    scrollbar-width: none;
}
.ps-filters::-webkit-scrollbar { display: none; }
.ps-filter-btn {
    padding: 7px 14px;
    border: 2px solid #1a3a5c;
    background: transparent;
    color: #1a3a5c;
    border-radius: 30px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.25s;
}
.ps-filter-btn:hover,
.ps-filter-btn.active {
    background: #1a3a5c;
    color: #fff;
}

/* Counter */
.ps-counter {
    font-size: 13px;
    color: #888;
    margin-bottom: 16px;
}

/* Card Grid - mobile first: 1 column */
.ps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

/* Card */
.ps-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.25s, box-shadow 0.25s;
    display: flex;
    flex-direction: column;
}
.ps-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* Card Image */
.ps-card-image a { display: block; }
.ps-card-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}
.ps-no-image {
    width: 100%;
    height: 180px;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-size: 14px;
}

/* Card Body */
.ps-card-body {
    padding: 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.ps-card-title {
    font-size: 16px;
    margin: 0 0 10px;
    line-height: 1.3;
}
.ps-card-title a {
    color: #1a3a5c;
    text-decoration: none;
}
.ps-card-title a:hover { color: #e8a020; }

/* Meta */
.ps-meta {
    font-size: 13px;
    color: #555;
    margin-bottom: 3px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.ps-icon { font-size: 14px; flex-shrink: 0; }

/* Description */
.ps-desc {
    font-size: 13px;
    color: #666;
    margin: 8px 0 0;
    line-height: 1.5;
    flex: 1;
}

/* Scope */
.ps-scope {
    font-size: 12px;
    color: #888;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #eee;
}

/* ── Responsive breakpoints (mobile-first) ── */

/* Tablet: 2 columns */
@media (min-width: 600px) {
    .ps-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .ps-card-image img, .ps-no-image { height: 200px; }
    .ps-filter-btn { padding: 8px 16px; font-size: 14px; }
    .ps-filters { flex-wrap: wrap; overflow-x: visible; }
}

/* Desktop: 3 columns */
@media (min-width: 1024px) {
    .ps-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
    .ps-card-image img, .ps-no-image { height: 220px; }
    .ps-card-body { padding: 18px; }
    .ps-card-title { font-size: 17px; }
}
