/*=============================================================
    SINGLE PROJECT PAGE - PIXEL PERFECT CSS
    File: single-project.css
    Author: Wshyah Engineering Consultancy
=============================================================*/

/*=============================================================
    1. SINGLE PROJECT PAGE CONTAINER
=============================================================*/
.single_Projects_page {
    padding: 70px 0 20px;
    background: var(--white);
}

/*=============================================================
    2. BREADCRUMB FOR SINGLE PROJECT
=============================================================*/
.single_Projects_page + .breadcrumb .sin_title,
.breadcrumb .sin_title {
    font-size: 48px;
    font-weight: var(--font-weight-bold);
    color: #576468;
    margin-bottom: 0;
    line-height: 1.2;
}

/*=============================================================
    3. PROJECT HERO SECTION (Image + Content)
=============================================================*/
.single_Projects_page > .container > .row:first-child {
    margin-bottom: 80px;
}

.single_Projects_page .image {
    width: 100%;
}

.single_Projects_page .image img {
    width: 100%;
    height: 411px;
    border-radius: 16px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
}

.sin_content {
    padding: 0 40px;
    display: flex;
    /* align-items: center; */
    height: 100%;
}

.sin_content p {
    font-size: 17px;
    font-weight: var(--font-weight-medium);
    color: #59706F;
    line-height: 1.9;
}

/*=============================================================
    4. FEATURES SECTION
=============================================================*/
.features {
    margin-bottom: 80px;
}

.features .row {
    /* align-items: center; */
}

.features .col-md-6 {
    padding: 0 15px;
}

/* Features Image */
.features .col-md-6 > img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
}

/* Features Accordion */
.feat_accordion {
    background: #1D3B4C;
    padding: 50px 40px;
    border-radius: 16px;
}

.feat_accordion h2 {
    font-size: 26px;
    font-weight: var(--font-weight-bold);
    color: var(--white);
    margin-bottom: 10px;
    text-align: right;
}

.feat_accordion .accordion {
    background: transparent;
}

.feat_accordion .accordion-item {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 0;
}

.feat_accordion .accordion-item:last-child {
    border-bottom: none;
}

.feat_accordion .accordion-button {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 24px 0;
    font-size: 18px;
    font-weight: var(--font-weight-medium);
    color: var(--white);
    text-align: right;
    direction: rtl;
}

.feat_accordion .accordion-button:not(.collapsed) {
    background: transparent;
    /* color: var(--accent-color); */
    box-shadow: none;
}

.feat_accordion .accordion-button:focus {
    box-shadow: none;
    border: none;
}

.feat_accordion .accordion-button::after {
    content: '+';
    position: absolute;
    left: 0;
    font-size: 24px;
    font-weight: var(--font-weight-light);
    color: var(--white);
    background: none;
    width: auto;
    height: auto;
    transition: var(--transition-smooth);
}

.feat_accordion .accordion-button:not(.collapsed)::after {
    content: '−';
    /* color: var(--accent-color); */
    transform: rotate(0deg);
}

.feat_accordion .accordion-body {
    padding: 0 0 24px 0;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

.feat_accordion .accordion-body p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.feat_accordion > h2 {
    margin-bottom: 61px;
}

/*=============================================================
    5. GALLERY SECTION
=============================================================*/
.gallery {
    margin-bottom: 0;
}

.gallery .row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.gallery .col-md-4 {
    width: 33.333333%;
    padding: 0 15px;
    margin-bottom: 30px;
}

.gallery .image {
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition-smooth);
}

.gallery .image:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.gallery .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.gallery .image:hover img {
    transform: scale(1.05);
}

/*=============================================================
    6. RESPONSIVE DESIGN - SINGLE PROJECT PAGE
=============================================================*/

/* Tablets and below (max-width: 991px) */
@media (max-width: 991px) {
    .single_Projects_page {
        padding: 60px 0;
    }
    
    .breadcrumb .sin_title {
        font-size: 36px;
    }
    
    .single_Projects_page > .container > .row:first-child {
        margin-bottom: 60px;
    }
    
    .single_Projects_page .col-md-6 {
        width: 100%;
        margin-bottom: 30px;
    }
    
    .sin_content {
        padding: 0 15px;
    }
    
    .sin_content p {
        font-size: 16px;
    }
    
    .features {
        margin-bottom: 60px;
    }
    
    .feat_accordion {
        padding: 40px 30px;
        margin-bottom: 30px;
    }
    
    .feat_accordion h2 {
        font-size: 28px;
        margin-bottom: 25px;
    }
    
    .gallery .col-md-4 {
        width: 50%;
    }
}

/* Mobile devices (max-width: 767px) */
@media (max-width: 767px) {
    .single_Projects_page {
        padding: 50px 0;
    }
    
    .breadcrumb .sin_title {
        font-size: 28px;
    }
    
    .single_Projects_page > .container > .row:first-child {
        margin-bottom: 50px;
    }
    
    .single_Projects_page .col-md-6 {
        margin-bottom: 30px;
    }
    
    .single_Projects_page .col-md-6:last-child {
        margin-bottom: 0;
    }
    
    .sin_content p {
        font-size: 15px;
        line-height: 1.8;
    }
    
    .features {
        margin-bottom: 50px;
    }
    
    .feat_accordion {
        padding: 35px 25px;
        margin-bottom: 30px;
    }
    
    .feat_accordion h2 {
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    .feat_accordion .accordion-button {
        font-size: 17px;
        padding: 20px 0;
    }
    
    .feat_accordion .accordion-body {
        font-size: 14px;
        padding: 0 0 20px 0;
    }
    
    .gallery .col-md-4 {
        width: 100%;
        margin-bottom: 20px;
    }
    
    .gallery .col-md-4:last-child {
        margin-bottom: 0;
    }
}

/* Small mobile devices (max-width: 480px) */
@media (max-width: 480px) {
    .single_Projects_page {
        padding: 40px 0;
    }
    
    .breadcrumb .sin_title {
        font-size: 24px;
    }
    
    .sin_content p {
        font-size: 14px;
    }
    
    .feat_accordion {
        padding: 30px 20px;
    }
    
    .feat_accordion h2 {
        font-size: 22px;
    }
    
    .feat_accordion .accordion-button {
        font-size: 16px;
    }
    
    .single_Projects_page .image img,
    .features .col-md-6 > img,
    .gallery .image {
        border-radius: 12px;
    }
}

/*=============================================================
    7. COLUMN WIDTHS
=============================================================*/
.single_Projects_page .col-md-4 {
    width: 33.333333%;
}

.single_Projects_page .col-md-6 {
    width: 50%;
}

@media (max-width: 991px) {
    .single_Projects_page .col-md-4,
    .single_Projects_page .col-md-6 {
        width: 100%;
    }
}

/*=============================================================
    8. ENHANCED VISUAL EFFECTS
=============================================================*/

/* Smooth section transitions */
.single_Projects_page > .container > * {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.single_Projects_page > .container > *:nth-child(1) {
    animation-delay: 0.1s;
}

.single_Projects_page > .container > *:nth-child(2) {
    animation-delay: 0.2s;
}

.single_Projects_page > .container > *:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Disable animation on mobile for performance */
@media (max-width: 767px) {
    .single_Projects_page > .container > * {
        animation: none;
        opacity: 1;
    }
}

/*=============================================================
    9. ACCESSIBILITY
=============================================================*/
.feat_accordion .accordion-button:focus {
    /* outline: 2px solid var(--accent-color); */
    /* outline-offset: 2px; */
}

.gallery .image:focus-within {
    outline: 2px solid var(--accent-color);
    outline-offset: 4px;
}

/*=============================================================
    10. PRINT STYLES
=============================================================*/
@media print {
    .single_Projects_page {
        padding: 20px 0;
    }
    
    .single_Projects_page .image img,
    .features .col-md-6 > img {
        box-shadow: none;
        page-break-inside: avoid;
    }
    
    .feat_accordion {
        background: #f5f5f5;
        color: #000;
    }
    
    .feat_accordion .accordion-button,
    .feat_accordion .accordion-body p {
        color: #000;
    }
    
    .gallery {
        page-break-before: always;
    }
}

/*=============================================================
    END OF SINGLE PROJECT PAGE CSS
=============================================================*/