/* Project Detail Page - High-end minimalist styling */

body[data-page="project-detail"] main {
    background: #fff;
}

/* Shared gap variable for checker rows and panel bridges */
body[data-page="project-detail"] {
    --checker-gap: clamp(24px, 3vw, 48px);
}

/* Increase usable width on large screens only for project detail */
body[data-page="project-detail"] .container {
    max-width: 1680px;
}

body[data-page="project-detail"] .breadcrumb-container { margin-top: 20px; }

.checker-section { padding: 32px 0 12px; }
.checker-row { display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--checker-gap); align-items: stretch; margin-bottom: clamp(20px, 3vw, 36px); }
.checker-row.alt { grid-template-columns: 1fr 1.2fr; }
.checker-row .media, .checker-row .content { height: 100%; }
.checker-row .media .img-mask { overflow: hidden; display: block; height: 100%; border: 1.5px solid #e6ecef; background-color: #fbfcfd; }
.checker-row .media .img-mask.round-right { border-left: none; }
.checker-row .media .img-mask.round-left { border-right: none; }
.checker-row .media .img-mask.round-left { border-top-left-radius: 50px; border-bottom-left-radius: 50px; border-top-right-radius: 0; border-bottom-right-radius: 0; }
.checker-row .media .img-mask.round-right { border-top-right-radius: 50px; border-bottom-right-radius: 50px; border-top-left-radius: 0; border-bottom-left-radius: 0; }
.checker-row .media .checker-img { width: 100%; height: 100%; display: block; object-fit: cover; box-shadow: 0 8px 24px rgba(16,24,40,0.08); }
.checker-row .content h3 { margin-bottom: 16px; }
.checker-row .content p { color: #445; margin-bottom: 10px; }
.checker-row .content .text-panel { position: relative; background: #fff; border: 1px solid #eef2f2; box-shadow: 0 8px 24px rgba(16,24,40,0.06); padding: 18px 20px; height: 100%; display: flex; flex-direction: column; justify-content: center; }
/* Capsule side on the outside; straight edge that meets the image on the inside */
.checker-row .content .text-panel.panel-right-round { border-top-right-radius: 0; border-bottom-right-radius: 0; border-top-left-radius: 8px; border-bottom-left-radius: 8px; border-right: none; margin-right: calc(var(--checker-gap) * -1); }
.checker-row .content .text-panel.panel-left-round { border-top-left-radius: 0; border-bottom-left-radius: 0; border-top-right-radius: 8px; border-bottom-right-radius: 8px; border-left: none; margin-left: calc(var(--checker-gap) * -1); }
/* Add the 50px outer capsule corners */
.checker-row .content .text-panel.panel-right-round { border-top-left-radius: 50px; border-bottom-left-radius: 50px; }
.checker-row .content .text-panel.panel-left-round { border-top-right-radius: 50px; border-bottom-right-radius: 50px; }
.checker-row .content .data-table { width: 100%; border-collapse: collapse; }
.checker-row .content .data-table td { padding: 8px 10px; border-bottom: 1px dashed #e9eeee; color: #2b3b3b; }
.checker-row .content .data-table td:first-child { font-weight: 450; color: #1f2937; padding-right: 16px; white-space: nowrap; }
.checker-row .content .data-table tr:last-child td { border-bottom: none; }

.project-hero-detail {
    padding: 120px 0 60px;
    background-size: cover;
    background-position: center;
    color: #fff;
}

.project-hero-detail .hero-content h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    color: #ffffff;
    text-shadow: 0 3px 12px rgba(0,0,0,0.65), 0 1px 4px rgba(0,0,0,0.5);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.project-hero-detail .location {
    color: #ffffff;
    margin-bottom: 18px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.6), 0 1px 3px rgba(0,0,0,0.4);
    font-weight: 500;
}

.project-hero-detail .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.project-hero-detail .tag {
    background: rgba(8, 100, 238, 0.24);
    border: 1px solid rgba(255,255,255,0.35);
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.85rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 12px rgba(107, 4, 241, 0.2);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    font-weight: 500;
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(160px, 1fr));
    gap: 18px;
    margin-top: 28px;
}

.hero-metrics .metric {
    background: rgba(8, 100, 238, 0.24);
    border: 1px solid rgba(255,255,255,0.3);
    padding: 16px 18px;
    border-radius: 25px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.hero-metrics .metric-label {
    font-size: 0.85rem;
    opacity: 0.95;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    font-weight: 500;
}

.hero-metrics .metric-value {
    font-size: 1.4rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.project-overview-detail {
    padding: 64px 0 24px;
    background: #fff;
}

.overview-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 40px;
}

.overview-text h2 { margin-bottom: 12px; }
.overview-text p { color: #445; margin-bottom: 18px; }

.highlights { list-style: none; display: grid; gap: 8px; }
.highlights li { color: #334; }
.highlights strong { color: var(--primary-color); font-weight: 600; }

.overview-specs { display: grid; gap: 10px; align-content: start; }
.overview-specs .spec { display: flex; justify-content: space-between; gap: 16px; padding: 12px 14px; border: 1px solid #eef2f2; border-radius: 10px; }
.overview-specs .spec span { color: #667; }

.services-and-results { padding: 24px 0 100px; }
.sr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.services-and-results .card { background: #fff; border: 1px solid #eef2f2; border-radius: 50px; padding: 24px; box-shadow: 0 8px 24px rgba(16,24,40,0.06); }
.card h3 { margin-bottom: 14px; }

.service-pills { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.service-pills li { border: 1px solid #e6f0ee; color: #134e4a; background: #f0faf8; padding: 6px 12px; border-radius: 999px; font-size: 0.9rem; }

.results { display: grid; grid-template-columns: repeat(2, minmax(220px, 1fr)); gap: clamp(12px, 2vw, 18px); }
.results.intensity { grid-template-columns: repeat(2, minmax(220px, 1fr)); margin-bottom: 10px; }
.result { border: 1px solid #eef2f2; border-radius: 12px; padding: 14px; background: #fcfdfd; }
.result.highlight { background: #f7fffc; border-color: #d8f3ec; }
.result.stage { background: #f9fbff; }
.result.mint { background: #eafff6; border-color: #ccf5e8; }
.result span { display: block; color: #667; font-size: 0.85rem; }
.result b { display: block; margin-top: 6px; font-size: 1.1rem; }
.result small { color: #778; }

.our-contribution { padding: 16px 0 24px; }
.our-contribution h2 { margin-bottom: 10px; }
.contrib-list { list-style: none; display: grid; gap: 10px; }
.contrib-list li { border: 1px solid #eef2f2; border-radius: 10px; padding: 10px 12px; background: #fff; display: grid; gap: 4px; }
.contrib-list li small { color: #687;
    font-size: 0.9rem; }

/* Project-detail CTA button - minimal style with 25px corners */
body[data-page="project-detail"] .cta-section .cta-button {
    background: transparent;
    color: var(--cta-button-color);
    border: 2px solid currentColor;
    border-radius: 25px;
    padding: 12px 28px;
    box-shadow: none;
    display: inline-block;
    margin-top: 16px;
}
body[data-page="project-detail"] .cta-section .cta-button:visited {
    color: var(--cta-button-color);
    border-color: currentColor;
}
body[data-page="project-detail"] .cta-section .cta-button:hover {
    background: var(--cta-button-color);
    color: #1b1818 !important;
    border-color: var(--cta-button-color);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
body[data-page="project-detail"] .cta-section .cta-button:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

@media (max-width: 1024px) {
    .overview-grid { grid-template-columns: 1fr; }
    .checker-row, .checker-row.alt { grid-template-columns: 1fr; }
    .hero-metrics { grid-template-columns: 1fr 1fr; }
    .sr-grid { grid-template-columns: 1fr; }
    /* Reset negative margins on stacked layout */
    .checker-row .content .text-panel.panel-left-round,
    .checker-row .content .text-panel.panel-right-round { margin: 0; border-left: 1px solid #eef2f2; border-right: 1px solid #eef2f2; }
}

@media (max-width: 640px) {
    .project-hero-detail { padding: 90px 0 40px; }
    .project-hero-detail .hero-content h1 { font-size: 2.2rem; }
    .hero-metrics { grid-template-columns: 1fr; }
    .metrics-inline { grid-template-columns: 1fr; }
    .checker-row .media .img-mask { height: auto; }
    .checker-row .media .checker-img { height: auto; max-height: 300px; }
    .checker-row .content .data-table td { padding: 8px 6px; }
    .results { grid-template-columns: 1fr; }
    /* Ensure the highlighted intensity row also stacks on small screens */
    .results.intensity { grid-template-columns: 1fr; }
    .services-and-results .card { border-radius: 28px; padding: 18px; }
}

/* Ultra-wide screens: slightly increase image height comfort */
@media (min-width: 1600px) {
    .checker-row .media .checker-img { max-height: 520px; }
    .hero-metrics { grid-template-columns: repeat(4, minmax(160px, 1fr)); }
}


