/* Single Project Page Styling */
.single-project-page {
    padding-top: 0px;
    padding-bottom: 80px;
    /* background-color: #f9f9f9; */
    /* direction: rtl; handled by WordPress if lang=ar */
    /* text-align: right; */
    font-family: 'Cairo', sans-serif; /* Applied Cairo Font */
}

.single-project-page .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.single-project {
    background: #fff;
    /* border-radius: 12px; */
    /* overflow: hidden; REMOVED to prevent scroll issues */
    /* box-shadow: 0 10px 30px rgba(0,0,0,0.05); */
}

/* Header / Hero */
.project-header {
    position: relative;
    /* border-bottom: 1px solid #eee; */
}

/* .project-title-wrap {
    padding: 20px 0;
    text-align: right;
} */

.project-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #333;
}

.project-featured {
    width: 100%;
    height: auto;
    max-height: 600px;
    overflow: hidden;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
    border-bottom-left-radius: 12px;
    margin-top: 20px;
}

.project-featured img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Content Grid */
.project-layout {
    display: flex;
    flex-wrap: wrap;
    padding: 40px 0;
    gap: 40px;
}

.project-sidebar {
    flex: 0 0 300px; /* Sidebar width */
    max-width: 100%;
}

.project-main-content {
    flex: 1;
    min-width: 300px; /* Adjust as needed */
}

/* Metadata Styling */
.project-meta-box {
    background: #fdfdfd;
    padding: 25px;
    border: 1px solid #eee;
    border-radius: 8px;
}

.meta-item {
    margin-bottom: 20px;
}

.meta-item:last-child {
    margin-bottom: 0;
}

.meta-label {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    margin-bottom: 5px;
    font-weight: 600;
}

.meta-value {
    font-size: 1.1rem;
    color: #333;
    font-weight: 500;
}

/* Main Content Typography */
.project-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
}

/* Gallery Styling */
.project-gallery-section {
    padding: 40px 0;
    border-top: 1px solid #eee;
}

.gallery-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
    text-align: center;
}

.project-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item a {
    display: block;
}

.gallery-item img {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .project-layout {
        flex-direction: column;
    }
    
    .project-sidebar {
        flex: auto;
        width: 100%;
        margin-bottom: 20px;
    }
}
