/* =============================================
   PROJECT DETAIL CSS - PT. AFNAN DEVA TEKHNIK
   ============================================= */

/* ── HERO ── */
.detail-hero {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: flex-end;
    padding-top: var(--nav-height);
    overflow: hidden;
}
.detail-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1.05);
    transition: transform 0.8s ease;
    background-color: var(--dark);
}
.detail-hero:hover .detail-hero-bg {
    transform: scale(1);
}
.detail-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(20, 20, 20, 0.55) 0%,
        rgba(20, 20, 20, 0.92) 100%
    );
}
.detail-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 50px 40px 50px;
}
.detail-hero-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}
.detail-hero-icon {
    font-size: 40px;
    line-height: 1;
}
.detail-hero-category-year {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}
.detail-category-badge {
    background: var(--orange);
    color: var(--white);
    font-family: "Oswald", sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 3px;
}
.detail-year-badge {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    font-family: "Oswald", sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    padding: 5px 14px;
    border-radius: 3px;
}
.detail-status-badge {
    font-family: "Oswald", sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 3px;
}
.detail-status-badge.status-selesai {
    background: #16a34a;
    color: #fff;
}
.detail-status-badge.status-sedang-berlangsung {
    background: #e87722;
    color: #fff;
}
.detail-status-badge.status-tertunda {
    background: #e83922;
    color: #fff;
}

.detail-hero h1 {
    font-size: clamp(24px, 4vw, 40px);
    color: var(--white);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.2;
}
.detail-hero-scope {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 10px;
    font-family: "Lato", sans-serif;
    font-weight: 300;
    line-height: 1.6;
}
.detail-hero-location {
    font-size: 14px;
    color: var(--orange-light);
    display: flex;
    align-items: center;
    gap: 6px;
}
.detail-hero-location i {
    color: var(--orange);
}

/* ── LAYOUT ── */
.detail-layout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 40px 80px;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 50px;
    align-items: start;
}

/* ── MAIN ── */
.detail-main {
    min-width: 0;
}

/* ── PROJECT NAV BAR ── */
.project-nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 40px;
    padding: 14px 20px;
    background: var(--off-white);
    border-radius: 6px;
    border: 1px solid var(--light-gray);
}
.proj-nav-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    background: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: 4px;
    font-family: "Oswald", sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--dark);
    cursor: pointer;
    transition: all 0.2s;
}
.proj-nav-btn:hover:not(:disabled) {
    background: var(--orange);
    border-color: var(--orange);
    color: var(--white);
}
.proj-nav-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}
.proj-nav-back {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: "Oswald", sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--gray);
    text-decoration: none;
    transition: color 0.2s;
}
.proj-nav-back:hover {
    color: var(--orange);
}

/* ── SECTION ── */
.detail-section {
    margin-bottom: 50px;
}
.detail-section-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}
.detail-section-line {
    width: 4px;
    height: 30px;
    background: var(--orange);
    border-radius: 2px;
    flex-shrink: 0;
}
.detail-section-header h2 {
    font-size: 20px;
    color: var(--dark);
    letter-spacing: 1px;
    text-transform: uppercase;
}
.detail-description {
    font-size: 15px;
    color: var(--gray);
    line-height: 1.85;
    font-family: "Lato", sans-serif;
}

/* ── GALLERY ── */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
.gallery-item {
    position: relative;
    border-radius: 5px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
    background: var(--dark2);
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.gallery-item:hover img {
    transform: scale(1.08);
}
.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: rgba(232, 119, 34, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    opacity: 0;
    transition: opacity 0.3s;
}
.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

/* ── LIGHTBOX ── */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}
.lightbox.open {
    display: flex;
}
.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 85vh;
    text-align: center;
}
.lightbox-content img {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 4px;
    display: block;
    margin: 0 auto;
}
.lightbox-caption {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    margin-top: 12px;
    font-family: "Lato", sans-serif;
}
.lightbox-close {
    position: fixed;
    top: 20px;
    right: 26px;
    background: none;
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: var(--white);
    font-size: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 10001;
}
.lightbox-close:hover {
    background: var(--orange);
    border-color: var(--orange);
}
.lightbox-prev,
.lightbox-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.12);
    border: none;
    color: var(--white);
    font-size: 42px;
    line-height: 1;
    width: 54px;
    height: 80px;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lightbox-prev {
    left: 16px;
}
.lightbox-next {
    right: 16px;
}
.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--orange);
}

/* ── HIGHLIGHTS ── */
.highlights-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    list-style: none;
}
.highlight-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--off-white);
    padding: 14px 18px;
    border-radius: 6px;
    border-left: 3px solid var(--orange);
}
.highlight-icon {
    font-size: 18px;
    flex-shrink: 0;
}
.highlight-text {
    font-size: 13.5px;
    color: var(--dark);
    font-family: "Lato", sans-serif;
    font-weight: 700;
    line-height: 1.4;
}

/* ── SIDEBAR ── */
.sidebar-card {
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 18px rgba(0, 0, 0, 0.07);
    padding: 26px;
    margin-bottom: 24px;
    border-top: 4px solid var(--orange);
}
.sidebar-card-title {
    font-family: "Oswald", sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--orange);
    margin-bottom: 18px;
}
.info-list {
    list-style: none;
}
.info-list li {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 11px 0;
    border-bottom: 1px solid var(--light-gray);
}
.info-list li:last-child {
    border-bottom: none;
}
.info-label {
    font-size: 11px;
    color: var(--gray);
    letter-spacing: 1px;
    text-transform: uppercase;
    font-family: "Oswald", sans-serif;
    display: flex;
    align-items: center;
    gap: 6px;
}
.info-label i {
    color: var(--orange);
    font-size: 11px;
}
.info-value {
    font-size: 14px;
    color: var(--dark);
    font-weight: 700;
    font-family: "Lato", sans-serif;
}

/* ── CTA SIDEBAR ── */
.sidebar-cta-card {
    background: var(--dark);
    border-top: 4px solid var(--orange);
    text-align: center;
}
.sidebar-cta-icon {
    font-size: 36px;
    margin-bottom: 12px;
}
.sidebar-cta-card h3 {
    font-size: 16px;
    color: var(--white);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.sidebar-cta-card p {
    font-size: 13px;
    color: #aaa;
    line-height: 1.6;
    margin-bottom: 18px;
}
.sidebar-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px 20px;
    background: #25d366;
    color: var(--white);
    border-radius: 5px;
    font-family: "Oswald", sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.2s;
    margin-bottom: 10px;
}
.sidebar-cta-btn:hover {
    background: #1ebe57;
}
.sidebar-back-btn {
    display: block;
    width: 100%;
    padding: 11px 20px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
    border-radius: 5px;
    font-family: "Oswald", sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s;
}
.sidebar-back-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

/* ── RELATED PROJECTS ── */
.related-card {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--light-gray);
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s;
}
.related-card:last-child {
    border-bottom: none;
}
.related-card:hover {
    opacity: 0.75;
}
.related-card-img {
    width: 64px;
    height: 50px;
    border-radius: 4px;
    overflow: hidden;
    background: var(--dark2);
    flex-shrink: 0;
}
.related-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.related-card-info {
    min-width: 0;
}
.related-card-name {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.3;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.related-card-meta {
    font-size: 11px;
    color: var(--gray);
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
    .detail-layout {
        grid-template-columns: 1fr;
        padding: 40px 30px 60px;
    }
    .detail-sidebar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        align-items: start;
    }
    .sidebar-card {
        margin-bottom: 0;
    }
}
@media (max-width: 768px) {
    .detail-hero-inner {
        padding: 40px 20px 40px;
    }
    .detail-layout {
        padding: 30px 20px 60px;
    }
    .detail-sidebar {
        display: block;
    }
    .sidebar-card {
        margin-bottom: 20px;
    }
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }
    .highlights-list {
        grid-template-columns: 1fr;
    }
    .project-nav-bar {
        flex-direction: column;
        gap: 10px;
    }
    .proj-nav-btn,
    .proj-nav-back {
        width: 100%;
        justify-content: center;
    }
}
@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    .lightbox-prev {
        left: 6px;
    }
    .lightbox-next {
        right: 6px;
    }
}

.text-tinyMCE {
    line-height: 2;
}

.breadcrumb {
    color: #fff;
}
