/* ============================================================
   Global SVG Fail-Safe Constraints (Fix for missing Greenshift CSS)
   ============================================================ */
.gspb-buttonbox-icon svg,
.gs_icon,
.wp-block-greenshift-blocks-buttonbox svg,
.gspb_accordion_title_icon svg {
    max-width: 20px !important;
    max-height: 20px !important;
    width: 1em !important;
    height: 1em !important;
    display: inline-block !important;
}
.wp-block-greenshift-blocks-buttonbox, .gspb_accordion_title {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
}

/* ---------------------------------------------------------------------------------------------------------------------------------------------------- */
/* ============================================================
   main.css — Single Project Template Styles
   Yossef Saeed | Child Theme
   ============================================================ */

/* ============================================================
   1. SINGLE PROJECT WRAPPER
   ============================================================ */
.single-project {
    direction: rtl;
}

/* ============================================================
   2. PROJECT HERO
   ============================================================ */
.project-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 60px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.project-hero-meta {
    margin-bottom: 20px;
}

/* Badge في صفحة الـ hero مش absolute — override الـ portfolio.css */
.project-hero-meta .portfolio-card-badge {
    position: static;
    display: inline-block;
}

.project-hero-title {
    font-size: 40px;
    font-weight: 800;
    color: #1B3A6B;
    line-height: 1.3;
    margin: 0 0 20px 0;
}

.project-hero-desc {
    font-size: 17px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 35px;
}

.project-hero-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.project-hero-image {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(27, 58, 107, 0.15);
}

.project-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ============================================================
   3. BUTTONS — btn-cta & btn-large
   ============================================================ */
.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    background: #1B3A6B;
    color: #fff !important;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.2s ease;
    border: 1.5px solid #1B3A6B;
}

.btn-cta:hover {
    background: #112A4F;
    border-color: #112A4F;
    color: #fff !important;
    transform: translateY(-2px);
}

.btn-cta svg {
    stroke: #fff;
    flex-shrink: 0;
}

.btn-large {
    padding: 14px 32px;
    font-size: 16px;
}

/* btn-preview داخل الـ hero (مش داخل card) */
.project-hero-actions .btn-preview {
    padding: 12px 28px;
    font-size: 15px;
}

.project-hero-actions .btn-preview.btn-large {
    padding: 14px 32px;
    font-size: 16px;
}

/* ============================================================
   4. SECTION TITLE (مشترك بين الأقسام)
   ============================================================ */
.section-title {
    font-size: 30px;
    font-weight: 800;
    color: #1B3A6B;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: #1B3A6B;
    border-radius: 2px;
    margin: 12px auto 0;
}

/* ============================================================
   5. PROJECT DETAILS (التحدي / الحل / النتيجة)
   ============================================================ */
.project-details {
    background: #f8f9fb;
    padding: 70px 40px;
}

.project-details-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.project-detail-card {
    background: #fff;
    border-radius: 16px;
    padding: 35px 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-detail-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(27, 58, 107, 0.1);
}

.project-detail-icon {
    width: 60px;
    height: 60px;
    background: rgba(27, 58, 107, 0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: #1B3A6B;
}

.project-detail-icon svg {
    stroke: #1B3A6B;
}

.project-detail-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1B3A6B;
    margin-bottom: 15px;
}

.detail-content {
    color: #555;
    font-size: 15px;
    line-height: 1.8;
}

/* لو المحتوى فيه ul/li من ACF */
.detail-content ul {
    padding-right: 20px;
    margin: 0;
}

.detail-content li {
    margin-bottom: 8px;
    color: #555;
    font-size: 15px;
    line-height: 1.7;
}

/* ============================================================
   6. PROJECT GALLERY
   ============================================================ */
.project-gallery-section {
    padding: 70px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.project-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    aspect-ratio: 16 / 10;
}

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

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

/* لو عندك صورة واحدة بس */
.project-gallery-grid:has(.gallery-item:only-child) .gallery-item {
    grid-column: 1 / -1;
}

/* ============================================================
   7. TESTIMONIAL
   ============================================================ */
.project-testimonial-section {
    background: #f8f9fb;
    padding: 70px 40px;
}

.testimonial-card {
    max-width: 750px;
    margin: 0 auto;
    background: #fff;
    border-radius: 20px;
    padding: 50px 45px;
    text-align: center;
    box-shadow: 0 8px 40px rgba(27, 58, 107, 0.1);
    position: relative;
}

.testimonial-quote {
    color: #1B3A6B;
    margin-bottom: 25px;
}

.testimonial-card blockquote {
    font-size: 18px;
    line-height: 1.9;
    color: #333;
    font-style: italic;
    margin: 0 0 25px 0;
    border: none;
    padding: 0;
}

.testimonial-label {
    display: inline-block;
    padding: 6px 18px;
    background: rgba(27, 58, 107, 0.08);
    color: #1B3A6B;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
}

/* ============================================================
   8. CTA SECTION
   ============================================================ */
.project-cta-section {
    padding: 70px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.project-cta-card {
    background: #1B3A6B;
    border-radius: 20px;
    padding: 60px 50px;
    text-align: center;
    color: #fff;
}

.project-cta-card h2 {
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 15px;
}

.project-cta-card p {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 35px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* btn-cta داخل الـ CTA كارد — ألوان معكوسة */
.project-cta-card .btn-cta {
    background: #fff;
    color: #1B3A6B !important;
    border-color: #fff;
}

.project-cta-card .btn-cta:hover {
    background: rgba(255, 255, 255, 0.9);
    color: #1B3A6B !important;
}

.project-cta-card .btn-cta svg {
    stroke: #1B3A6B;
}

/* ============================================================
   9. RELATED PROJECTS
   ============================================================ */
.project-related-section {
    padding: 70px 40px;
    background: #f8f9fb;
    max-width: 100%;
}

.project-related-section > .portfolio-grid {
    max-width: 1200px;
    margin: 0 auto;
}

/* ============================================================
   10. RESPONSIVE — Tablet
   ============================================================ */
@media (max-width: 1024px) {
    .project-hero {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 50px 30px;
    }

    .project-hero-image {
        order: -1;
        max-height: 400px;
    }

    .project-hero-image img {
        max-height: 400px;
    }

    .project-hero-title {
        font-size: 32px;
    }

    .project-details-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .project-gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   11. RESPONSIVE — Mobile
   ============================================================ */
@media (max-width: 768px) {
    .project-hero {
        padding: 30px 20px;
    }

    .project-hero-title {
        font-size: 26px;
    }

    .project-hero-desc {
        font-size: 15px;
    }

    .project-hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .project-hero-actions a {
        justify-content: center;
        width: 100%;
    }

    .project-details {
        padding: 50px 20px;
    }

    .project-gallery-section {
        padding: 50px 20px;
    }

    .project-testimonial-section {
        padding: 50px 20px;
    }

    .testimonial-card {
        padding: 35px 25px;
    }

    .testimonial-card blockquote {
        font-size: 16px;
    }

    .project-cta-section {
        padding: 50px 20px;
    }

    .project-cta-card {
        padding: 40px 25px;
    }

    .project-cta-card h2 {
        font-size: 24px;
    }

    .project-related-section {
        padding: 50px 20px;
    }

    .section-title {
        font-size: 24px;
    }
}

/*----------------------------------------------------------------------------------------------------------------------------------*/

