/*
 * DCM Project Detail — title, hero, about/stats, gallery, related.
 * Matches screenshots exactly.
 */

.dcm-site .dcm-detail {
    max-width: 1200px;
    margin: 0 auto;
    padding: 110px 32px 0;
}

/* ---------- Title ---------- */

.dcm-site .dcm-detail-title {
    font-size: 36px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 24px;
    line-height: 1.1;
}

/* ---------- Hero ---------- */

.dcm-site .dcm-detail-hero {
    width: 100%;
    aspect-ratio: 2 / 1;
    background: #3944f7;
    overflow: hidden;
    margin-bottom: 44px;
}

.dcm-site .dcm-detail-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---------- About + Stats ---------- */

.dcm-site .dcm-detail-body {
    display: flex;
    gap: 60px;
    margin-bottom: 44px;
}

.dcm-site .dcm-detail-about {
    flex: 1 1 50%;
    min-width: 0;
}

.dcm-site .dcm-detail-about h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 14px;
    color: #1a1a1a;
}

.dcm-site .dcm-detail-about p,
.dcm-site .dcm-detail-description p {
    font-size: 14.5px;
    line-height: 1.8;
    color: #444;
    margin: 0 0 12px;
}

.dcm-site .dcm-detail-description p:last-child {
    margin-bottom: 0;
}

.dcm-site .dcm-detail-stats {
    flex: 1 1 50%;
    min-width: 0;
}

.dcm-site .dcm-detail-stats h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 14px;
    color: #1a1a1a;
}

.dcm-site .dcm-stat-row {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.dcm-site .dcm-stat-row dt {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #999;
    margin: 0 0 2px;
}

.dcm-site .dcm-stat-row dd {
    font-size: 14.5px;
    color: #1a1a1a;
    margin: 0;
}

/* Stats rendered from source HTML */
.dcm-site .dcm-stats-content p {
    font-size: 14.5px;
    line-height: 2;
    color: #1a1a1a;
    margin: 0 0 8px;
}

.dcm-site .dcm-stats-content p:last-child {
    margin-bottom: 0;
}

.dcm-site .dcm-stats-content b,
.dcm-site .dcm-stats-content strong {
    font-weight: 600;
    color: #666;
}

/* ---------- Gallery ---------- */

.dcm-site .dcm-detail-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-bottom: 50px;
}

.dcm-site .dcm-gallery-item {
    aspect-ratio: 4 / 3;
    background: #3944f7;
    overflow: hidden;
}

.dcm-site .dcm-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---------- Related ---------- */

.dcm-site .dcm-detail-related {
    margin-bottom: 60px;
}

.dcm-site .dcm-detail-related h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 20px;
    color: #1a1a1a;
}

.dcm-site .dcm-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.dcm-site .dcm-related-card {
    aspect-ratio: 1 / 1;
    background: linear-gradient(135deg, #56CCF2, #2F80ED);
    overflow: hidden;
    position: relative;
    display: block;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.dcm-site .dcm-related-card:hover {
    opacity: 0.88;
}

.dcm-site .dcm-related-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dcm-site .dcm-related-card span {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    line-height: 1.3;
    font-family: 'DM Sans', sans-serif;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

/* ---------- Responsive ---------- */

@media (max-width: 768px) {
    .dcm-site .dcm-detail {
        padding: 95px 20px 0;
    }

    .dcm-site .dcm-detail-title {
        font-size: 28px;
    }

    .dcm-site .dcm-detail-body {
        flex-direction: column;
        gap: 32px;
    }

    .dcm-site .dcm-detail-stats {
        flex: none;
    }

    .dcm-site .dcm-detail-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .dcm-site .dcm-related-grid {
        grid-template-columns: 1fr;
    }
}
