/* ─── CONTAINER ─── */
.project-detail-container {
    padding: 60px 0 80px;
    background: #f4f7fb;
}

/* ─── MAIN CARD ─── */
.project-main-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 30px rgba(0,0,0,0.08);
}

/* ─── HERO IMAGE ─── */
.project-hero-img {
    position: relative;
    width: 100%;
    height: 460px;
    overflow: hidden;
}
.project-hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}
.project-main-card:hover .project-hero-img img {
    transform: scale(1.03);
}
.date-chip {
    position: absolute;
    bottom: 24px;
    left: 28px;
    background: #1a3a6b;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 7px 18px;
    border-radius: 30px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.25);
    display: flex;
    align-items: center;
    gap: 7px;
}
.date-chip i { font-size: 12px; opacity: 0.8; }
.category-chip {
    position: absolute;
    bottom: 24px;
    right: 28px;
    background: linear-gradient(135deg, #0077b6, #48cae4);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 7px 18px;
    border-radius: 30px;
    box-shadow: 0 4px 14px rgba(0,119,182,0.35);
}

/* ─── BODY ─── */
.project-body {
    padding: 40px 44px 48px;
}
.project-meta-row {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 22px;
    padding-bottom: 20px;
    border-bottom: 1px solid #edf0f5;
}
.meta-author {
    display: flex;
    align-items: center;
    gap: 10px;
}
.meta-author img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e2e8f0;
}
.meta-author span { font-size: 13px; font-weight: 600; color: #1a2b4c; }
.meta-dot { width: 4px; height: 4px; background: #cbd5e0; border-radius: 50%; }
.meta-item {
    font-size: 13px;
    color: #718096;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}
.meta-item i { color: #0077b6; font-size: 12px; }
.project-title {
    font-size: 28px;
    font-weight: 800;
    color: #1a2b4c;
    line-height: 1.35;
    margin-bottom: 20px;
}
.project-body-text {
    font-size: 15px;
    line-height: 1.95;
    color: #4a5568;
}
.project-body-text p { margin-bottom: 16px; }
/* ─── REDESIGNED GALLERY SECTION ─── */
.project-gallery {
    background: #fff;
    border-radius: 18px;
    padding: 24px 20px;
    margin-top: 20px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
}

.gallery-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 15px;
    border-bottom: 2px solid #edf0f5;
    position: relative;
}

.gallery-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #0077b6, #00b4d8);
}

.gallery-header-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #0077b6, #00b4d8);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-header-icon i {
    color: #fff;
    font-size: 18px;
}

.gallery-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a2b4c;
    margin: 0;
    flex: 1;
}

.gallery-count {
    font-size: 12px;
    color: #718096;
    background: #f0f4f8;
    padding: 4px 10px;
    border-radius: 20px;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

/* Gallery Item */
.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.gallery-image-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1/1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

/* Overlay */
.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 58, 107, 0.9), rgba(0, 119, 182, 0.5), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 15px;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* Zoom Icon */
.zoom-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.gallery-item:hover .zoom-icon {
    transform: translate(-50%, -50%) scale(1);
}

.zoom-icon i {
    color: #0077b6;
    font-size: 18px;
}

/* Caption */
.gallery-caption {
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease 0.1s;
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
    opacity: 1;
}

.gallery-caption h4 {
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 3px;
}

.gallery-caption p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 10px;
    margin: 0;
}

/* Badge */
.gallery-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    color: #fff;
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 600;
    z-index: 2;
    transform: translateX(20px);
    opacity: 0;
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-badge {
    transform: translateX(0);
    opacity: 1;
}

/* Counter */
.gallery-counter {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    color: #fff;
    padding: 3px 8px;
    border-radius: 15px;
    font-size: 10px;
    font-weight: 600;
    font-family: monospace;
    z-index: 2;
}

/* Lightbox Styles */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    transition: transform 0.2s;
    z-index: 10000;
}

.lightbox-close:hover {
    transform: scale(1.1);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 24px;
    transition: background 0.3s;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.4);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .lightbox-close {
        top: 15px;
        right: 20px;
        font-size: 30px;
    }
}

@media (max-width: 576px) {
    .project-gallery {
        padding: 18px 15px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .gallery-header-icon {
        width: 35px;
        height: 35px;
    }
    
    .gallery-title {
        font-size: 16px;
    }
}
</style>

/* ─── RELATED PROJECTS ─── */
.related-section { margin-top: 50px; }
.section-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
}
.section-bar h4 {
    font-size: 20px;
    font-weight: 800;
    color: #1a2b4c;
    white-space: nowrap;
}
.section-bar::after {
    content: '';
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, #0077b6, transparent);
    border-radius: 2px;
}
.r-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
    transition: transform 0.3s, box-shadow 0.3s;
    margin-bottom: 24px;
}
.r-card:hover { transform: translateY(-5px); box-shadow: 0 16px 35px rgba(0,0,0,0.11); }
.r-card .r-img { position: relative; height: 175px; overflow: hidden; }
.r-card .r-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; display: block; }
.r-card:hover .r-img img { transform: scale(1.07); }
.r-card .r-img .r-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26,58,107,0.7) 0%, transparent 55%);
    opacity: 0;
    transition: opacity 0.3s;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 14px;
}
.r-card:hover .r-img .r-overlay { opacity: 1; }
.r-overlay-btn {
    background: #fff;
    color: #1a3a6b;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 20px;
    border-radius: 30px;
    text-decoration: none;
}
.r-card .r-body { padding: 15px 18px; }
.r-card .r-body h6 { font-size: 14px; font-weight: 700; color: #1a2b4c; margin-bottom: 5px; line-height: 1.4; }
.r-card .r-body h6 a { color: inherit; text-decoration: none; }
.r-card .r-body h6 a:hover { color: #0077b6; }
.r-cat { font-size: 12px; color: #0077b6; font-weight: 600; display: flex; align-items: center; gap: 5px; }
.r-cat::before { content: ''; width: 5px; height: 5px; background: #0077b6; border-radius: 50%; }

/* ─── SIDEBAR ─── */
.project-sidebar {
    position: sticky;
    top: 90px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.s-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
}
.share-card { padding: 24px 22px; }
.s-label {
    font-size: 11px;
    font-weight: 800;
    color: #a0aec0;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}
.share-row { display: flex; flex-direction: column; gap: 10px; }
.share-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.25s;
}
.share-btn .left { display: flex; align-items: center; gap: 10px; color: #1a2b4c; }
.share-btn .left i { font-size: 16px; }
.share-btn .follow-tag { font-size: 11px; font-weight: 700; padding: 3px 12px; border-radius: 20px; color: #fff; }
.share-btn.fb { background: #f0f4ff; }
.share-btn.fb:hover { background: #e8eeff; transform: translateX(3px); }
.share-btn.fb .left i { color: #1877f2; }
.share-btn.fb .follow-tag { background: #1877f2; }
.share-btn.yt { background: #fff2f2; }
.share-btn.yt:hover { background: #ffe8e8; transform: translateX(3px); }
.share-btn.yt .left i { color: #ff0000; }
.share-btn.yt .follow-tag { background: #ff0000; }
.cta-card {
    background: linear-gradient(145deg, #1a3a6b 0%, #0077b6 100%);
    padding: 30px 22px;
    text-align: center;
}
.cta-card .cta-icon {
    width: 56px;
    height: 56px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 22px;
    color: #fff;
}
.cta-card h5 { color: #fff; font-size: 17px; font-weight: 800; margin-bottom: 8px; }
.cta-card p { color: rgba(255,255,255,0.75); font-size: 13px; line-height: 1.6; margin-bottom: 20px; }
.btn-quote {
    display: block;
    background: #fff;
    color: #1a3a6b;
    font-size: 13px;
    font-weight: 800;
    padding: 12px 20px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}
.btn-quote:hover {
    background: #ff6b00;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255,107,0,0.4);
}

/* ─── RESPONSIVE ─── */
@media(max-width: 991px) {
    .project-sidebar { position: static; }
    .project-hero-img { height: 320px; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media(max-width: 768px) {
    .project-hero-img { height: 240px; }
    .project-body { padding: 28px 22px 36px; }
    .project-title { font-size: 22px; }
    .date-chip, .category-chip { font-size: 11px; padding: 6px 14px; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media(max-width: 480px) {
    .gallery-grid { grid-template-columns: 1fr; }
}

.related-section{
    padding:30px;
}