/* =========================================
   Project Detail Page
========================================= */


/* =========================================
   Main Section
========================================= */

.project-detail-page {
    position: relative;
    width: 100%;
    overflow: hidden;
}


.about-us.project-detail-section {
    position: relative;
    padding: 80px 0 100px;
}


.about-us.project-detail-section::before {
    display: none;
}


.project-detail-section .detail-main-column {
    position: relative;
    z-index: 1;

    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
}


/* Signature: reuse the site's own capsule motif (see .about-us::before
   on the homepage) as a quiet backdrop behind the detail column, so the
   detail page still feels like part of the same brand system. */

.project-detail-section .detail-main-column::before {
    content: "";

    position: absolute;
    z-index: -1;

    top: -30px;
    right: -60px;

    width: 55%;
    height: 70%;

    background: #f1f0fe;

    border-radius: 500px;
}


/* =========================================
   Breadcrumb
========================================= */

.detail-breadcrumb {
    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 10px;

    margin-bottom: 22px;

    font-size: 13px;
    font-weight: 500;
}


.detail-breadcrumb a {
    color: #7a6ad8;

    transition: color 0.2s ease;
}


.detail-breadcrumb a:hover {
    color: #5f50bd;
}


.detail-breadcrumb i {
    font-size: 10px;

    color: #b9b2ea;
}


.detail-breadcrumb span {
    color: #8a8a8a;
}


/* =========================================
   Entrance Motion
========================================= */

@keyframes detailFadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.detail-hero-image,
.detail-meta-box,
.detail-content,
.back-link {
    animation: detailFadeUp 0.6s ease both;
}


.detail-meta-box {
    animation-delay: 0.08s;
}


.detail-content {
    animation-delay: 0.16s;
}


.back-link {
    animation-delay: 0.24s;
}


@media (prefers-reduced-motion: reduce) {
    .detail-hero-image,
    .detail-meta-box,
    .detail-content,
    .back-link {
        animation: none;
    }
}


/* =========================================
   Project Hero Image
========================================= */

.detail-hero-image {
    position: relative;
    isolation: isolate;

    width: 100%;
    min-height: 260px;

    margin-bottom: 25px;

    overflow: hidden;

    border-radius: 20px;

    background: #f1f0fe;

    box-shadow: 0 12px 35px rgba(30, 30, 30, 0.08);
}


.detail-hero-image img {
    position: relative;
    z-index: 1;

    display: block;

    width: 100%;
    height: auto;

    max-height: 650px;

    object-fit: cover;

    transition: transform 0.4s ease;
}


.detail-hero-image:hover img {
    transform: scale(1.02);
}


.detail-hero-overlay {
    position: absolute;
    z-index: 2;

    right: 0;
    bottom: 0;
    left: 0;

    padding: 60px 35px 25px;

    background: linear-gradient(
        to top,
        rgba(20, 15, 45, 0.85) 0%,
        rgba(20, 15, 45, 0.45) 55%,
        rgba(20, 15, 45, 0) 100%
    );

    text-align: right;

    pointer-events: none;
}


.detail-hero-overlay .category {
    display: inline-flex;

    align-items: center;

    gap: 6px;

    margin-bottom: 8px;

    padding: 4px 14px;

    border-radius: 20px;

    background: rgba(255, 255, 255, 0.15);

    color: #fff;
    font-size: 13px;
}


.detail-hero-overlay .category i {
    font-size: 11px;
}


.detail-hero-title {
    margin: 0;

    color: #fff;
    font-size: 28px;
    font-weight: 700;

    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}


@media (max-width: 768px) {
    .detail-hero-overlay {
        padding: 40px 20px 18px;
    }

    .detail-hero-title {
        font-size: 20px;
    }
}


/* =========================================
   Project Meta Box
========================================= */

.detail-meta-box {
    display: grid;

    grid-template-columns: repeat(4, minmax(0, 1fr));

    width: 100%;
    min-height: 115px;

    margin: 25px 0 35px;
    padding: 0;

    overflow: hidden;

    background: linear-gradient(
        135deg,
        #7a6ad8 0%,
        #6252c5 100%
    );

    border-radius: 18px;

    box-shadow: 0 15px 35px rgba(122, 106, 216, 0.22);
}


/* =========================================
   Meta Item
========================================= */

.detail-meta-item {
    position: relative;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    min-width: 0;
    min-height: 115px;

    padding: 20px 15px;

    text-align: center;

    transition:
        background 0.3s ease,
        transform 0.3s ease;
}


.detail-meta-item i {
    margin-bottom: 8px;

    font-size: 18px;

    color: rgba(255, 255, 255, 0.85);
}


/* =========================================
   Meta Divider
========================================= */

.detail-meta-item:not(:last-child)::after {
    content: "";

    position: absolute;

    top: 20%;
    bottom: 20%;

    left: 0;

    width: 1px;

    background: rgba(255, 255, 255, 0.3);
}


/* =========================================
   Meta Hover
========================================= */

.detail-meta-item:hover {
    background: rgba(255, 255, 255, 0.08);

    transform: translateY(-4px);
}


/* =========================================
   Meta Title
========================================= */

.detail-meta-item span {
    display: block;

    margin-bottom: 7px;

    font-size: 13px;

    font-weight: 500;

    line-height: 1.8;

    color: rgba(255, 255, 255, 0.72);
}


/* =========================================
   Meta Value
========================================= */

.detail-meta-item h6 {
    margin: 0;

    max-width: 100%;

    font-size: 16px;

    font-weight: 800;

    line-height: 1.8;

    color: #ffffff;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}


/* =========================================
   Project Content
========================================= */

.detail-content {
    width: 100%;

    padding: 40px;

    background: #ffffff;

    border: 1px solid rgba(122, 106, 216, 0.08);

    border-radius: 22px;

    box-shadow: 0 10px 35px rgba(30, 30, 30, 0.06);

    transition: box-shadow 0.3s ease;
}


.detail-content:hover {
    box-shadow: 0 16px 45px rgba(30, 30, 30, 0.09);
}


/* =========================================
   Project Content Title
========================================= */

.detail-content h3 {
    position: relative;

    display: flex;

    align-items: center;

    gap: 10px;

    margin: 0 0 28px;

    padding-bottom: 15px;

    font-size: 25px;

    font-weight: 800;

    color: #1e1e1e;
}


.detail-content h3 i {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    width: 34px;
    height: 34px;

    border-radius: 10px;

    background: #f1f0fe;

    color: #7a6ad8;

    font-size: 15px;
}


.detail-content h3::after {
    content: "";

    position: absolute;

    right: 0;

    bottom: 0;

    width: 65px;

    height: 3px;

    border-radius: 10px;

    background: #7a6ad8;
}


/* =========================================
   Project Text
========================================= */

.detail-content p,
.detail-content div {
    margin: 0;

    font-size: 15px;

    font-weight: 400;

    line-height: 2.4;

    text-align: justify;

    color: #555555;
}


.detail-content p {
    margin-bottom: 18px;
}


.detail-content p:last-child {
    margin-bottom: 0;
}


/* =========================================
   Back Button
========================================= */

.back-link {
    margin-top: 35px;

    text-align: center;
}


.back-link a {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    min-width: 190px;
    min-height: 50px;

    padding: 12px 28px;

    border-radius: 25px;

    background: #7a6ad8;

    color: #ffffff;

    font-size: 14px;

    font-weight: 700;

    text-decoration: none;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
}


.back-link a i {
    transition: transform 0.25s ease;
}


.back-link a:hover i {
    transform: translateX(4px);
}


.back-link a:hover {
    transform: translateY(-3px);

    background: #5f50bd;

    color: #ffffff;

    box-shadow: 0 10px 25px rgba(122, 106, 216, 0.3);
}


/* =========================================
   Tablet
========================================= */

@media (max-width: 991px) {

    .about-us.project-detail-section {
        padding: 65px 0 80px;
    }


    .project-detail-section .detail-main-column::before {
        display: none;
    }


    .detail-breadcrumb {
        font-size: 12px;
    }


    .detail-hero-image img {
        max-height: 500px;
    }


    .detail-meta-box {
        min-height: 105px;

        border-radius: 16px;
    }


    .detail-meta-item {
        min-height: 105px;

        padding: 15px 10px;
    }


    .detail-meta-item span {
        font-size: 12px;
    }


    .detail-meta-item h6 {
        font-size: 14px;
    }


    .detail-content {
        padding: 30px;
    }

}


/* =========================================
   Mobile
   اطلاعات همچنان کنار هم باقی می‌مانند
========================================= */

@media (max-width: 576px) {

    .about-us.project-detail-section {
        padding: 50px 0 60px;
    }


    .detail-hero-image {
        margin-bottom: 20px;

        border-radius: 15px;
    }


    .detail-hero-image img {
        max-height: 350px;
    }


    /* چهار ستون همچنان کنار هم */

    .detail-meta-box {
        grid-template-columns: repeat(4, minmax(0, 1fr));

        min-height: 90px;

        margin: 20px 0 25px;

        border-radius: 14px;
    }


    .detail-meta-item {
        min-height: 90px;

        padding: 10px 4px;
    }


    .detail-meta-item span {
        margin-bottom: 4px;

        font-size: 9px;

        line-height: 1.6;
    }


    .detail-meta-item h6 {
        font-size: 10px;

        line-height: 1.6;
    }


    .detail-meta-item:not(:last-child)::after {
        top: 20%;
        bottom: 20%;

        left: 0;

        width: 1px;

        height: auto;
    }


    .detail-content {
        padding: 25px 18px;

        border-radius: 16px;
    }


    .detail-content h3 {
        margin-bottom: 20px;

        font-size: 21px;
    }


    .detail-content p,
    .detail-content div {
        font-size: 14px;

        line-height: 2.2;
    }


    .back-link {
        margin-top: 25px;
    }


    .back-link a {
        width: 100%;
    }

}


/* =========================================
   Very Small Screens
========================================= */

@media (max-width: 400px) {

    .detail-meta-item {
        padding: 8px 2px;
    }


    .detail-meta-item span {
        font-size: 8px;
    }


    .detail-meta-item h6 {
        font-size: 9px;
    }

}