﻿/* ── Brand tokens ─────────────────────────────────────────────── */
:root {
    --brand: #AF4320;
    --brand-dark: #8f3419;
    --brand-deep: #3A000A;
    --ink: #1a1a2e;
    --ink-soft: #3d4457;
    --ink-muted: #6b7280;
    --rule: #e5e7eb;
    --surface: #f9fafb;
    --white: #ffffff;
}



/* ── Layout shell ─────────────────────────────────────────────── */
.pd-body {
    background: var(--white);
    padding: 64px 0 80px;
}

.pd-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 56px;
    align-items: start;
}

@media (max-width: 991px) {
    .pd-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* ── Image gallery (left) ─────────────────────────────────────── */
.pd-gallery {
    position: relative;
}

.pd-main-img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    border-radius: 10px;
    display: block;
    box-shadow: 0 4px 24px rgba(0,0,0,0.12);
}

.pd-thumb-row {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.pd-thumb {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.65;
    transition: opacity 0.2s, border-color 0.2s;
}

    .pd-thumb:hover {
        opacity: 1;
    }

    .pd-thumb.active {
        border-color: var(--brand);
        opacity: 1;
    }

/* ── Description below gallery ───────────────────────────────── */
.pd-description {
    margin-top: 40px;
}

.pd-section-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--brand);
    margin-bottom: 12px;
}

.pd-description-text {
    font-size: 15.5px;
    color: var(--ink-soft);
    line-height: 1.8;
}

/* Read more toggle */
.pd-readmore-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--brand);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: color 0.15s;
}

    .pd-readmore-btn:hover {
        color: var(--brand-dark);
    }

.pd-readmore-content {
    margin-top: 16px;
    font-size: 15.5px;
    color: var(--ink-soft);
    line-height: 1.8;
    border-top: 1px solid var(--rule);
    padding-top: 16px;
}

/* ── Sidebar (right) ──────────────────────────────────────────── */
.pd-sidebar {
    position: sticky;
    top: 100px;
}

/* Project meta card */
.pd-meta-card {
    background: var(--surface);
    border: 1px solid var(--rule);
    border-radius: 12px;
    overflow: hidden;
}

.pd-meta-card-header {
    background: #1e2235;
    padding: 20px 24px;
}

    .pd-meta-card-header h2 {
        color: #fff;
        font-size: 17px;
        font-weight: 700;
        margin: 0 0 4px;
        line-height: 1.3;
    }

    .pd-meta-card-header span {
        color: rgba(255,255,255,0.55);
        font-size: 12.5px;
    }

.pd-meta-list {
    padding: 8px 0;
}

.pd-meta-row {
    display: flex;
    flex-direction: column;
    padding: 14px 24px;
    border-bottom: 1px solid var(--rule);
}

    .pd-meta-row:last-child {
        border-bottom: none;
    }

.pd-meta-key {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.9px;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin-bottom: 3px;
}

.pd-meta-val {
    font-size: 14.5px;
    font-weight: 500;
    color: var(--ink);
    line-height: 1.5;
}

/* Category badge */
.pd-cat-badge {
    display: inline-block;
    background: rgba(175,67,32,0.1);
    color: var(--brand);
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    margin-top: 4px;
}

/* CTA inside sidebar */
.pd-sidebar-cta {
    margin-top: 16px;
    background: #1e2235;
    border-radius: 10px;
    padding: 24px;
    text-align: center;
}

    .pd-sidebar-cta p {
        color: rgba(255,255,255,0.8);
        font-size: 13.5px;
        margin: 0 0 14px;
        line-height: 1.6;
    }

    .pd-sidebar-cta a {
        display: inline-block;
        background: var(--brand);
        color: #fff;
        font-size: 13.5px;
        font-weight: 700;
        padding: 10px 24px;
        border-radius: 6px;
        text-decoration: none;
        transition: background 0.15s, transform 0.12s;
    }

        .pd-sidebar-cta a:hover {
            background: var(--brand-dark);
            color: #fff !important;
            transform: translateY(-1px);
        }

.pd-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-muted);
    text-decoration: none;
    margin-top: 14px;
    transition: color 0.15s;
}

    .pd-back-link:hover {
        color: var(--brand);
    }

/* ── Related Projects section ─────────────────────────────────── */
.pd-related {
    background: #000000;
    padding: 72px 0 80px;
}

.pd-related-heading {
    text-align: center;
    margin-bottom: 48px;
}

    .pd-related-heading h2 {
        color: #fff;
        font-size: clamp(28px, 3.5vw, 44px);
        font-weight: 700;
        margin: 0 0 12px;
    }

    .pd-related-heading p {
        color: rgba(255,255,255,0.5);
        font-size: 15px;
        max-width: 480px;
        margin: 0 auto;
        line-height: 1.6;
    }

.pd-related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

@media (max-width: 991px) {
    .pd-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .pd-related-grid {
        grid-template-columns: 1fr;
    }
}

.pd-related-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    display: block;
    text-decoration: none;
}

    .pd-related-card img {
        width: 100%;
        aspect-ratio: 4/3;
        object-fit: cover;
        display: block;
        transition: transform 0.4s ease;
    }

    .pd-related-card:hover img {
        transform: scale(1.07);
    }

.pd-related-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.4) 55%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pd-related-card:hover .pd-related-overlay {
    opacity: 1;
}

.pd-related-always {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 100%);
}

.pd-related-title {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 2px;
    line-height: 1.3;
}

.pd-related-sub {
    color: rgba(255,255,255,0.7);
    font-size: 12px;
    margin: 0;
}

.pd-related-overlay-detail {
    color: rgba(255,255,255,0.85);
    font-size: 12px;
    line-height: 1.6;
    margin-top: 6px;
}

    .pd-related-overlay-detail li {
        list-style: none;
        padding: 0;
    }

        .pd-related-overlay-detail li::before {
            content: "›  ";
            color: var(--brand);
            font-weight: 700;
        }

/* ── Loading / not found ──────────────────────────────────────── */
.pd-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

.pd-not-found {
    text-align: center;
    padding: 120px 24px;
}

    .pd-not-found h2 {
        font-size: 32px;
        font-weight: 700;
        color: var(--ink);
        margin-bottom: 16px;
    }

    .pd-not-found p {
        color: var(--ink-muted);
        margin-bottom: 28px;
    }

.pd-btn-primary {
    display: inline-block;
    background: var(--brand);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    padding: 12px 28px;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.15s, transform 0.12s;
}

    .pd-btn-primary:hover {
        background: var(--brand-dark);
        transform: translateY(-1px);
        color: #fff;
    }

/* ── CTA Banner ───────────────────────────────────────────────── */
.pd-cta-banner {
    background: url('./Custom/BofKoreaBD/images/bgimg1.png') center center no-repeat fixed;
    background-size: cover;
    padding: 80px 0;
    text-align: center;
    position: relative;
}

    .pd-cta-banner::before {
        content: "";
        position: absolute;
        inset: 0;
        background: rgba(0,0,0,0.55);
    }

    .pd-cta-banner .container {
        position: relative;
        z-index: 1;
    }

    .pd-cta-banner h2 {
        color: #fff;
        font-size: clamp(24px, 3.5vw, 44px);
        font-weight: 700;
        margin: 0 0 16px;
        line-height: 1.2;
    }

    .pd-cta-banner p {
        color: rgba(255,255,255,0.75);
        font-size: 16px;
        max-width: 520px;
        margin: 0 auto 32px;
        line-height: 1.7;
    }

.pd-cta-btn {
    display: inline-block;
    border: 2px solid #fff;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    padding: 12px 36px;
    text-decoration: none;
    letter-spacing: 0.3px;
    transition: background 0.2s, color 0.2s;
}

    .pd-cta-btn:hover {
        background: #fff;
        color: var(--ink);
    }
