/* تنسيق الهيدر في صفحات المشاريع */
.project-details-page .project-hero {
    position: relative;
    height: 60vh;
    width: 100%;
    overflow: hidden;
    margin-bottom: 2rem;
}

.project-details-page .project-hero img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.project-details-page .project-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.6) 100%);
    z-index: 2;
}

.project-details-page nav {
    background-color: transparent;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    padding: 1rem 5%;
    transition: all 0.3s ease;
}

.project-details-page .hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    z-index: 3;
    width: 90%;
    max-width: 800px;
    padding: 1rem;
}

.project-details-page .hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.project-details-page .hero-content p {
    font-size: 1.2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* تعديل المسافة بين الهيدر والمحتوى */
.project-details-page main {
    padding-top: 0; /* إزالة padding لأن الصورة ستأخذ ارتفاع كامل الشاشة */
}

.project-details-page .project-content {
    position: relative;
    z-index: 4;
    background: #fff;
    padding-top: 50px;
}

/* إضافة خلفية للهيدر عند التمرير */
.project-details-page nav.scrolled {
    background-color: #002147;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.project-details-page .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    font-size: 1.5rem;
    font-weight: bold;
}

.project-details-page .logo i {
    font-size: 2rem;
    color: #ffd700;
}

.project-details-page .nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.project-details-page .nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    transition: color 0.3s ease;
    font-size: 1rem;
}

.project-details-page .nav-links a:hover {
    color: #ffd700;
}

/* تنسيق زر اللغة */
.project-details-page .lang-switch {
    position: relative;
}

.project-details-page .lang-switch button {
    background: transparent;
    border: 1px solid #fff;
    color: #fff;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
}

.project-details-page .lang-switch button:hover {
    background: rgba(255, 255, 255, 0.1);
}

.project-details-page .lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: none;
    min-width: 120px;
    margin-top: 0.5rem;
}

.project-details-page .lang-dropdown.show {
    display: block;
}

.project-details-page .lang-dropdown a {
    color: #002147;
    padding: 10px 15px;
    display: block;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.project-details-page .lang-dropdown a:hover {
    background: #f5f5f5;
}

/* تنسيق زر القائمة للموبايل */
.project-details-page .hamburger {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 100;
}

.project-details-page .hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: #fff;
    position: absolute;
    transition: all 0.3s ease;
}

.project-details-page .hamburger span:first-child {
    top: 0;
}

.project-details-page .hamburger span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.project-details-page .hamburger span:last-child {
    bottom: 0;
}

.project-details-page .hamburger.active span:first-child {
    transform: rotate(45deg);
    top: 9px;
}

.project-details-page .hamburger.active span:nth-child(2) {
    opacity: 0;
}

.project-details-page .hamburger.active span:last-child {
    transform: rotate(-45deg);
    bottom: 9px;
}

@media (max-width: 768px) {
    .project-details-page .hamburger {
        display: block;
    }

    .project-details-page .nav-links {
        position: fixed;
        top: 80px;
        right: -100%;
        background: #002147;
        width: 100%;
        height: calc(100vh - 80px);
        flex-direction: column;
        padding: 2rem;
        transition: right 0.3s ease;
    }

    .project-details-page .nav-links.active {
        right: 0;
    }

    .project-details-page .nav-links li {
        margin: 1rem 0;
    }

    .project-details-page .lang-switch {
        margin-top: 1rem;
    }
}

/* تنسيق محتوى المشروع */
.project-info-detailed {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.project-overview {
    margin-bottom: 3rem;
}

.project-overview h2 {
    color: #002147;
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    text-align: right;
}

.project-intro {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.project-intro p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 1rem;
    text-align: right;
}

.project-intro ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.project-intro ul li {
    padding: 0.5rem 1.5rem;
    position: relative;
    font-size: 1.1rem;
    text-align: right;
}

.project-steps {
    margin-top: 3rem;
}

.project-steps h3 {
    color: #002147;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-align: right;
}

.step-section {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.step-section h4 {
    color: #002147;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: right;
}

.step-section h4 i {
    color: #ffd700;
}

.step-list {
    list-style: none;
    padding: 0;
}

.step-list li {
    padding: 0.8rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
    color: #444;
    text-align: right;
}

.step-list li i {
    color: #002147;
    font-size: 1rem;
}

/* تنسيق المواصفات الفنية */
.technical-specs {
    background: #f8f9fa;
    padding: 3rem 2rem;
    margin: 3rem 0;
    border-radius: 8px;
}

.technical-specs h3 {
    color: #002147;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-align: right;
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: flex-end;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.spec-item {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.spec-item:hover {
    transform: translateY(-5px);
}

.spec-item h4 {
    color: #002147;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    text-align: right;
}

.spec-item p {
    color: #666;
    line-height: 1.6;
    text-align: right;
}

/* تنسيق أثر المشروع */
.project-impact {
    background: #fff;
    padding: 3rem 2rem;
    border-radius: 8px;
    margin: 3rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.project-impact h3 {
    color: #002147;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: right;
    justify-content: flex-end;
}

.project-impact p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 1.5rem;
    text-align: right;
}

.project-impact ul {
    list-style: none;
    padding: 0;
}

.project-impact ul li {
    padding: 0.8rem 0;
    font-size: 1.1rem;
    color: #444;
    position: relative;
    padding-right: 1.5rem;
    text-align: right;
}

.project-impact ul li:before {
    content: '•';
    color: #002147;
    position: absolute;
    right: 0;
}

/* تنسيق معرض الصور */
.project-gallery {
    padding: 3rem 2rem;
    background: #f8f9fa;
}

.project-gallery h3 {
    color: #002147;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-align: center;
}

.gallery-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.gallery-slider {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding: 1rem 0;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.gallery-slider::-webkit-scrollbar {
    display: none;
}

.gallery-card {
    flex: 0 0 300px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    background: #fff;
}

.gallery-image {
    position: relative;
    padding-top: 75%;
    overflow: hidden;
}

.gallery-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-image img:hover {
    transform: scale(1.05);
}

/* أزرار التنقل في المعرض */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(0, 33, 71, 0.8);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    transition: background 0.3s ease;
}

.gallery-nav:hover {
    background: rgba(0, 33, 71, 1);
}

.gallery-nav.prev {
    left: -20px;
}

.gallery-nav.next {
    right: -20px;
}

/* سكرول بار مخصص */
.gallery-scrollbar {
    margin-top: 1rem;
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    position: relative;
}

.scrollbar-thumb {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: #002147;
    border-radius: 2px;
    cursor: pointer;
}

/* تحسينات للموبايل */
@media (max-width: 768px) {
    .project-hero {
        height: 50vh;
    }

    .hero-content {
        right: 1rem;
        bottom: 1rem;
        padding: 0.5rem;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .gallery-card {
        flex: 0 0 250px;
    }

    .gallery-nav {
        width: 35px;
        height: 35px;
    }

    .technical-specs {
        padding: 2rem 1rem;
        margin: 2rem 0;
    }

    .technical-specs h3 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .specs-grid {
        grid-template-columns: 1fr; /* عمود واحد على الموبايل */
        gap: 1rem;
    }

    .spec-item {
        padding: 1.5rem;
        text-align: center; /* توسيط النص */
    }

    .spec-item h4 {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
        text-align: center; /* توسيط العنوان */
    }

    .spec-item p {
        font-size: 1rem;
        text-align: center; /* توسيط النص */
    }
}

/* تحسين المظهر على الشاشات المتوسطة */
@media (min-width: 769px) and (max-width: 1024px) {
    .specs-grid {
        grid-template-columns: repeat(2, 1fr); /* عمودين على الشاشات المتوسطة */
    }
}
 