/* Detail Page Styles */
html,
body {
    overflow-x: hidden;
}

.detail-page {
    min-height: 100vh;
    background: #f8f9fa;
    padding-top: 92px;
    overflow-x: hidden;
}

.detail-hero {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    margin-top: 0;
}

.detail-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.1)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,165.3C1248,149,1344,107,1392,85.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.3;
}

.detail-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
    max-width: 900px;
    padding: 2rem;
}

.detail-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.6s ease;
}

.detail-subtitle {
    font-size: 1.5rem;
    opacity: 0.95;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease;
}

.detail-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem;
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
}

.detail-content {
    background: white;
    border-radius: 15px;
    padding: 3rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.detail-image-section {
    margin-bottom: 2.5rem;
}

.detail-image-section img {
    width: 100%;
    height: clamp(260px, 48vw, 500px);
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background: #fff;
}

.detail-image-section img.detail-image-zoom-out {
    object-fit: contain;
    background: #fff;
}

.detail-text-section {
    line-height: 1.8;
}

.detail-description {
    margin-bottom: 2.5rem;
}

.detail-description p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 1.5rem;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.detail-description h3 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #3498db;
}

.detail-features {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 2rem;
    margin-top: 2rem;
}

.detail-features h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

.detail-features ul {
    list-style: none;
    padding: 0;
}

.detail-features li {
    font-size: 1.1rem;
    color: #555;
    padding: 0.8rem 0;
    padding-left: 2rem;
    position: relative;
    border-bottom: 1px solid #e0e0e0;
}

.detail-features li:last-child {
    border-bottom: none;
}

.detail-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #3498db;
    font-weight: bold;
    font-size: 1.3rem;
}

.detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.detail-info-card,
.detail-contact-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.detail-info-card h3,
.detail-contact-card h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #3498db;
}

.detail-info-card p {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 0.8rem;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.detail-info-card strong {
    color: #2c3e50;
}

.contact-btn {
    display: inline-block;
    background: #3498db;
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    margin-top: 1rem;
    width: 100%;
}

.contact-btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}

.detail-contact-card p {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* Project details page only: simplified full-width layout */
.project-detail-page .detail-page {
    background: linear-gradient(180deg, #eef4fb 0%, #f8f9fa 240px, #f8f9fa 100%);
}

.project-detail-page .detail-hero {
    height: 320px;
    background: linear-gradient(120deg, #0e3a67 0%, #1f5f97 60%, #3f89c7 100%);
}

.project-detail-page .detail-container {
    max-width: 1100px;
    grid-template-columns: 1fr;
    padding-top: 2.5rem;
}

.project-detail-page .detail-content {
    border-radius: 18px;
    padding: 2.5rem;
    box-shadow: 0 12px 32px rgba(18, 52, 86, 0.12);
}

.project-detail-page .detail-image-section img {
    height: clamp(300px, 45vw, 560px);
    width: min(88%, 960px);
    display: block;
    margin: 0 auto;
    object-fit: contain;
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
    background: #fff;
    padding: 0.5rem;
}

.project-detail-page .detail-features {
    background: #f2f8ff;
    border: 1px solid #d7e6f7;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .detail-container {
        grid-template-columns: 1fr;
        padding: 2.5rem 1.25rem;
    }

    .detail-sidebar {
        order: -1;
    }

    .detail-image-section img {
        max-height: 420px;
    }
}

@media (max-width: 768px) {
    .navbar {
        width: 100%;
        left: 0;
        right: 0;
    }

    .navbar .nav-container {
        width: 100%;
        max-width: 100%;
        margin: 0;
        border-radius: 0;
        padding-left: 0.8rem;
        padding-right: 0.8rem;
    }

    .detail-page {
        padding-top: 84px;
    }

    .detail-hero {
        height: 260px;
    }

    .detail-title {
        font-size: 2rem;
        line-height: 1.2;
    }

    .detail-subtitle {
        font-size: 1rem;
        line-height: 1.5;
    }

    .detail-container {
        padding: 2rem 1rem;
        gap: 2rem;
    }

    .detail-content {
        padding: 2rem 1.5rem;
    }

    .detail-description p {
        font-size: 1rem;
    }

    .detail-features {
        padding: 1.5rem;
    }

    .detail-features li {
        font-size: 1rem;
        padding: 0.7rem 0;
        padding-left: 1.6rem;
    }

    .detail-features li::before {
        font-size: 1.1rem;
    }

    .detail-image-section img {
        max-height: 320px;
    }

    .project-detail-page .detail-hero {
        height: 250px;
    }

    .project-detail-page .detail-content {
        padding: 1.5rem;
    }

    .project-detail-page .detail-container {
        padding-top: 1.5rem;
    }

    .project-detail-page .detail-image-section img {
        width: 100%;
        padding: 0.25rem;
    }
}
