﻿html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}


.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}




/* Navbar فوق الصورة */
.navbar-top {
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 10;
    background: rgba(0,0,0,0.3);
    padding: 10px 20px;
    color: white;
}

.hero-logo {
    max-width: 40px;
    height: auto;
    transition: max-width 0.3s ease;
    justify-content: center;
}

/* للشاشات الصغيرة جداً مثل الموبايل */
@media (max-width: 576px) {
    .hero-logo {
        max-width: 30px; /* تصغير اللوجو */
    }
    .logo-text {
        font-size: 14px; /* تصغير النص */
    }
}

/* للشاشات المتوسطة (تابلت) */
@media (min-width: 577px) and (max-width: 768px) {
    .hero-logo {
        max-width: 35px;
    }
    .logo-text {
        font-size: 16px;
    }
}

/* للشاشات الكبيرة (لابتوب وما فوق) */
@media (min-width: 769px) {
    .hero-logo {
        max-width: 40px;
    }
    .logo-text {
        font-size: 18px;
    }
}


.logo-text {
    font-size: 1.6rem;
    font-weight: bold;
}

.nav-item i {
    font-size: 1.8rem;
}

.nav-item p {
    margin: 0;
    font-size: 0.9rem;
}



/* ==============================
   HERO SECTION
   ============================== */
.hero-bg {
    background: url('https://assets.cdn.filesafe.space/L4cSmEvSBRbYgkSeFkjC/media/6877bb4f7665d66229c79781.svg') no-repeat center center;
    background-size: cover;
    min-height: 80vh;
    position: relative;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 0;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
    
}

/* النصوص داخل الهيرو */
.hero-subtitle,
.hero-btn {
    position: relative;
    z-index: 2;
    font-size: 1.2rem;
}

.hero-btn {
    background-color: #6f42c1;
    color: white;
    padding: 10px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease;
}

    .hero-btn:hover {
        background-color: #5a32a3;
    }

/* ==============================
   HERO MEDIA (VIDEOS & IMAGES)
   ============================== */
.hero-media {
    width: 90%;
    max-width: 900px;
    margin: 0 auto;
    display: block;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    position: relative;
    z-index: 2;
}

/* الفيديو */
.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

/* ==============================
   TEXT BELOW MEDIA (UNIFIED FOR VIDEO & IMAGE)
   ============================== */
.image-content-below {
    margin: 15px auto 0; /* مسافة أعلى ووسط تلقائي */
    padding: 0 20px; /* مسافة خفيفة من الشمال واليمين */
    max-width: 800px; /* الحد الأقصى للعرض عشان النص يكسر على أسطر */
    color: #fff;
    text-align: center;
    position: relative;
    z-index: 2;
    word-wrap: break-word; /* كسر النص الطويل على أسطر */
    line-height: 1.5; /* مسافة بين الأسطر أفضل */
}


.image-title {
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 8px;
    color: #6f42c1;
}

.image-bio {
    font-size: 1rem;
    color: #FFF;
    margin: 0;
}

/* ==============================
   IMAGE SLIDER
   ============================== */
.hero-slider {
    width: 90%;
    max-width: 900px;
    margin: 40px auto 0;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    z-index: 2;
}

.hero-image {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    border-radius: 20px;
    display: block;
    margin: 0 auto;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

/* أزرار السلايدر */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    background-size: 60% 60%;
}

/* ==============================
   GENERAL TEXT STYLES
   ============================== */
.section-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 30px;
    color: #6f42c1;
    text-align: center;
}

.card-title {
    font-weight: bold;
    color: #fff;
}

.card-text {
    font-size: 0.95rem;
    color: #ccc;
}

/* ==============================
   MEDIA QUERIES
   ============================== */
@media (max-width: 1024px) {
    .hero-media,
    .hero-slider {
        width: 95%;
    }
}

@media (max-width: 768px) {
    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-btn {
        padding: 8px 20px;
        font-size: 0.95rem;
    }

    .hero-media {
        border-radius: 15px;
    }

    .image-title {
        font-size: 1.2rem;
    }

    .image-bio {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .hero-subtitle {
        font-size: 0.9rem;
        padding: 0 10px;
    }

    .image-title {
        font-size: 1rem;
    }

    .image-bio {
        font-size: 0.85rem;
    }
}










/* قسم الفيديوهات */
.videos-section {
    background: url('https://assets.cdn.filesafe.space/L4cSmEvSBRbYgkSeFkjC/media/686692a7c5f95a4a3ec85c46.svg') no-repeat center center;
    background-size: cover;
    padding: 50px 0;
    min-height: 100vh;
    text-align: center;
    color: white;
    direction: rtl; /* النصوص من اليمين لليسار */
}

.section-title {
    margin-top: 10px;
    font-size: 28px;
    margin-bottom: 30px;
    margin-top: 10px;
    font-weight: bold;
}

.section-title-all {
    margin-top: 50px;
    font-size: 28px;
    margin-bottom: 30px;
    font-weight: bold;

}

/* تصميم الكارت الخاص بالفيديو */
.video-card {
    background: rgba(255, 255, 255, 0.08); /* شفاف */
    border: 2px solid rgba(255, 255, 255, 0.3); /* إطار */
    border-radius: 10px;
    overflow: hidden;
    padding: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 320px; /* العرض الافتراضي على الديسكتوب */
    width: 100%;
    margin: 0 auto;
}

    .video-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    }

/* عنوان الفيديو */
.video-title {
    font-size: 1rem;
    margin-bottom: 10px;
    margin-top: 10px;
    color: #fff;
    text-align: center;
    font-weight: 600;
}

/* منطقة الفيديو */
.video-media {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    background: #000;
    aspect-ratio: 9 / 10; /* الفيديو طولي مثل الريلز */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}
.video-details-video {
    width: 100%;
    max-width: 400px; /* عرض مناسب مثل ريلز */
    height: 80vh; /* يأخذ 80% من طول الشاشة */
    max-height: 700px;
    object-fit: cover; /* عشان الفيديو يملى المساحة زي الريلز */
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    display: block;
    margin: 0 auto; /* علشان يتوسّط */
}

/* للشاشات الصغيرة */
@media (max-width: 768px) {
    .video-details-video {
        max-width: 300px;
        height: 70vh;
    }
}

/* للموبايل */
@media (max-width: 480px) {
    .video-details-video {
        max-width: 100%;
        height: 60vh;
    }
}

.video-element {
    width: 100%;
    height: 100%;
    object-fit: cover; /* يملأ الفيديو بدون تشويه */
    display: block;
    border: none;
    background: #000;
}

/* أيقونة التشغيل */
.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.5rem;
    color: white;
    pointer-events: none;
    opacity: 0.8;
}

/* أزرار أسفل القسم */
.buttons-group {
    display: flex;
    flex-direction: row; /* خليهم جنب بعض */
    gap: 15px;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    flex-wrap: wrap; /* يلفوا لو الشاشة صغيرة جدًا */
}

/* الزر المخصص */
.cbutton-hVf23Xz02i {
    padding: 12px 30px;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    background: linear-gradient(90deg, #8e2de2, #4a00e0);
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    min-width: 130px;
    text-align: center;
}

    .cbutton-hVf23Xz02i:hover {
        background: linear-gradient(90deg, #4a00e0, #8e2de2);
        transform: translateY(-2px);
    }

.main-heading-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
}

/* استجابة الشاشات - موبايل */
@media (max-width: 768px) {
    .video-card {
        max-width: 90%; /* يملأ تقريبًا الشاشة على الموبايل */
    }

    .video-title {
        font-size: 0.9rem;
    }

    .buttons-group {
        flex-direction: row; /* خليهم دايمًا جنب بعض حتى على الموبايل */
        gap: 10px;
    }

    .cbutton-hVf23Xz02i {
        padding: 10px 20px;
        font-size: 14px;
        min-width: 110px;
    }
}

/* استجابة للشاشات الكبيرة جدًا */
@media (min-width: 1200px) {
    .video-card {
        max-width: 350px; /* عرض أكبر على الشاشات العريضة */
    }
}




/* ==============================
   TIMELINE SECTION
   ============================== */
.timeline-section {
    background: url('https://assets.cdn.filesafe.space/L4cSmEvSBRbYgkSeFkjC/media/686693acec92f4199d0239b4.svg') no-repeat center center;
    background-size: cover;
    min-height: 100vh;
    position: relative;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    direction: rtl;
    padding: 60px 20px;
}

.section-title {
    font-size: 32px;
    margin-bottom: 10px;
}

.section-description {
    font-size: 16px;
    max-width: 700px;
    margin: 0 auto 50px auto;
    line-height: 1.6;
}

/* ==============================
   TIMELINE
   ============================== */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

    /* الخط الرئيسي */
    .timeline::after {
        content: '';
        position: absolute;
        width: 4px;
        background-color: #5D1D99;
        top: 0;
        bottom: 0;
        left: 50%;
        margin-left: -2px;
        z-index: 1;
    }

/* --- عنصر الـ timeline --- */
.timeline-item {
    position: relative;
    display: flex;
    justify-content: space-between;
    margin-bottom: 50px;
    align-items: flex-start;
    flex-wrap: wrap;
}

    /* الدائرة في بداية كل عنصر */
    .timeline-item::before {
        content: '';
        position: absolute;
        width: 14px;
        height: 14px;
        background-color: #5D1D99;
        border-radius: 50%;
        top: 0;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 2;
    }

    /* العناصر على اليسار */
    .timeline-item.left .timeline-content {
        order: 1;
        width: 45%;
        max-width: 90%;
        margin-right: 20px; /* المسافة بين العمود والخط */
    }

    .timeline-item.left .timeline-image {
        order: 2;
        width: 45%;
    }

    /* العناصر على اليمين */
    .timeline-item.right .timeline-content {
        order: 2;
        width: 45%;
        max-width: 90%;
        margin-left: 20px; /* المسافة بين العمود والخط */
    }

    .timeline-item.right .timeline-image {
        order: 1;
        width: 45%;
    }

/* ==============================
   TIMELINE CONTENT
   ============================== */
/* العناوين دايمًا من اليمين */
.timeline-content h3 {
    font-size: 1.5rem;
    color: #6f42c1;
    margin-bottom: 8px;
    text-align: right !important;
}

/* الوصف دايمًا من اليمين */
.timeline-content p {
    font-size: 1rem;
    color: #FFF;
    margin: 10px 0 0 0;
    max-width: 100%;
    word-wrap: break-word;
    line-height: 1.6;
    text-align: right !important;
}

/* ==============================
   TIMELINE IMAGES
   ============================== */
.timeline-image img {
    width: 300px; /* العرض ثابت */
    height: 200px; /* الارتفاع ثابت */
    object-fit: cover; /* يحافظ على شكل الصورة */
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: transform 0.8s ease-out, opacity 0.8s ease-out;
}

/* الصور اليمين: تطير من اليمين */
.timeline-item.right .timeline-image img {
    transform: translateX(200px);
}

/* الصور الشمال: تطير من الشمال */
.timeline-item.left .timeline-image img {
    transform: translateX(-200px);
}

/* عند ظهور الصور */
.timeline-item.visible .timeline-image img {
    opacity: 1;
    transform: translateX(0);
}

/* ==============================
   RESPONSIVE
   ============================== */
@media (max-width: 1024px) {
    .timeline-item .timeline-content,
    .timeline-item .timeline-image {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .timeline-item {
        flex-direction: column !important;
        align-items: center;
    }

        .timeline-item.left .timeline-content,
        .timeline-item.left .timeline-image,
        .timeline-item.right .timeline-content,
        .timeline-item.right .timeline-image {
            width: 100%;
            order: unset;
            text-align: center !important;
            margin: 0; /* إزالة المسافة الجانبية على الشاشات الصغيرة */
        }

    .timeline::after {
        left: 50%;
    }

    .timeline-item::before {
        left: 50%;
    }

    .timeline-content p {
        padding: 0 10px;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 28px;
    }

    .timeline-content h3 {
        font-size: 1.3rem;
    }

    .timeline-content p {
        font-size: 0.9rem;
        line-height: 1.5;
        padding: 0 10px;
    }

    .timeline-image img {
        width: 250px; /* تصغير الصور على الشاشات الصغيرة */
        height: 170px;
    }
}



/* الخلفية الرئيسية - بدون أي تغميق */
.image-gallery-container {
    background: url('https://assets.cdn.filesafe.space/L4cSmEvSBRbYgkSeFkjC/media/686693acec92f4199d0239b4.svg') no-repeat center center;
    direction: rtl; /* للكتابة واتجاه العناصر */
    background-size: cover;
    min-height: 100vh;
    position: relative;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; /* خلي المحتوى يبدأ من فوق */
    text-align: center;
    padding-top: 50px; /* مسافة بين الهيدر والمعرض */
}

/* الكارت */
.card {
    border-radius: 12px;
    background: #fff; /* كارت أبيض بدون أي شفافية */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin: 10px auto;
    max-width: 300px; /* قلل حجم الكارت */
}

    .card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
    }

/* الصورة داخل الكارت */
.card-img-top {
    height: 200px; /* قلل الطول شوي */
    object-fit: cover;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

/* العنوان */
.card-title {
    font-size: 16px; /* صغر الحجم شوي */
    font-weight: bold;
    color: #6f42c1; /* اللون الجديد */
    margin-bottom: 8px;
}

/* الوصف */
.card-text {
    font-size: 13px;
    color: black; /* اللون الجديد */
    line-height: 1.5;
    min-height: 50px; /* تثبيت طول الكروت */
}

/* النص العلوي */
h2 {
    color: #5D1D99;
    font-weight: bold;
}



/* قسم البوستات */
.posts-section {
    background: url('https://assets.cdn.filesafe.space/L4cSmEvSBRbYgkSeFkjC/media/686692a7c5f95a4a3ec85c46.svg') center no-repeat;
    background-size: cover; /* هنا بنحدد إنها تغطي المساحة بالكامل */
    direction: rtl; /* للكتابة واتجاه العناصر */
    min-height: 60vh;
}


/* الخلفية */
.full-section {
   
    padding: 60px 0;
  

}

/* تصميم البوست */
.post-box {
    background: rgba(255, 255, 255, 0.08); /* شفاف */
    border: 2px solid rgba(255, 255, 255, 0.3); /* إطار */
    border-radius: 15px;
    padding: 20px;
    color: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    min-height: 350px;
}

    .post-box:hover {
        transform: translateY(-6px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    }

/* عنوان البوست */
.post-title {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #fff;
    font-weight: bold;
}

/* عرض الملفات */
.post-media {
    margin-bottom: 15px;
}

.post-image,
.post-video {
    max-width: 100%;
    max-height: 200px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    object-fit: cover;
}

/* وصف البوست */
.post-description {
    font-size: 1rem;
    color: #ddd;
    line-height: 1.6;
    margin-top: 10px;
}

/* رابط تحميل الملفات */
.file-link {
    display: inline-block;
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: #ffcc00;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s ease;
}

    .file-link:hover {
        background: rgba(255, 255, 255, 0.2);
    }
@media (max-width: 768px) {
    .timeline::after {
        display: none; /* يخفي الخط */
    }

    .timeline-item::before {
        display: none; /* يخفي الدوائر */
    }
}


/* الخلفية */
.all-posts-section {
    background: url('https://assets.cdn.filesafe.space/L4cSmEvSBRbYgkSeFkjC/media/686692a7c5f95a4a3ec85c46.svg') no-repeat center center;
    background-size: cover;
    padding: 100px 0;

}

    /* عنوان السيكشن */
    .all-posts-section .section-title {
        color: #6f42c1;
        font-size: 2rem;
        margin-bottom: 40px;
    }

/* تصميم كروت البوستات */
.post-box {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 15px;
    text-align: center;
    color: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    max-width: 320px;
    height: 360px; /* ارتفاع ثابت */
    margin: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

    .post-box:hover {
        transform: translateY(-5px);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    }

/* عنوان البوست */
.post-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* قسم الوسائط */
.post-media {
    width: 100%;
    height: 180px; /* ثابت لكل الصور والفيديو */
    overflow: hidden;
    border-radius: 10px;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
}

    .post-media img,
    .post-media video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 10px;
    }

/* وصف البوست */
.post-description {
    font-size: 0.9rem;
    margin-top: 10px;
    color: #f0f0f0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* لو مفيش بوستات */
.no-posts {
    color: #fff;
    font-size: 1.2rem;
    font-weight: bold;
}



.custom-footer {
    background: url('https://assets.cdn.filesafe.space/L4cSmEvSBRbYgkSeFkjC/media/686692a7c5f95a4a3ec85c46.svg') no-repeat center center;
    background-size: cover;
    padding: 60px 0;
    display: flex;
    justify-content: center;
    align-items: center;

}

.footer-container {
    position: relative;
    background: url('https://assets.cdn.filesafe.space/L4cSmEvSBRbYgkSeFkjC/media/685b4151a71e99b9d9b7f216.png') no-repeat center center;
    background-size: cover;
    border-radius: 20px;
    padding: 25px 30px;
    max-width: 800px;
    width: 90%;
    text-align: center;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
    border: 2px solid #5D1D99; /* إطار بنفسجي داكن */
    overflow: hidden;
    z-index: 1;
    color: #ffffff; /* نصوص أبيض */
}

    /* طبقة اللون الغامق فوق الصورة */
    .footer-container::before {
        content: "";
        position: absolute;
        inset: 0;
        background: #0A1F44
; 
        z-index: 0;
    }

    /* عشان النصوص تظهر فوق الطبقة */
    .footer-container * {
        position: relative;
        z-index: 1;
        color: #ffffff; /* نص أبيض */
    }

/* اللوجو */
.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
    
}

    .footer-logo img {
        max-width: 30px; /* صغّرت اللوجو أكثر */
    }

    .footer-logo .logo-text {
        font-size: 1.4rem;
        font-weight: bold;
        color: #ffffff;
    }


/* أيقونات السوشيال */
.social-icons {
    margin: 15px 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

    .social-icons a img {
        width: 40px;
        height: 40px;
        transition: transform 0.3s ease, filter 0.3s ease;
    }

    /* عند المرور (Hover) يتلون بنفسجي فاتح */
    .social-icons a:hover img {
        transform: scale(1.2);
        filter: drop-shadow(0 0 5px #d6bcfa);
    }

/* النصوص داخل الفوتر */
.contact-info h4 {
    margin-bottom: 10px;
    font-size: 1.4rem;
    font-weight: bold;
}

.contact-info p,
.contact-info a {
    margin: 8px 0;
    color: #ffffff; /* نص أبيض */
    font-size: 1rem;
    font-weight: 500;
}

    .contact-info a:hover {
        color: #d6bcfa; /* بنفسجي فاتح عند المرور */
        text-decoration: underline;
    }

/* موبايل */
@media (max-width: 576px) {
    .footer-container {
        padding: 20px;
    }

    .footer-logo img {
        max-width: 80px;
    }

    .social-icons a img {
        width: 35px;
        height: 35px;
    }
}

.post-details-section {
    padding: 100px 20px 60px 20px;
    min-height: 80vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: url('https://assets.cdn.filesafe.space/L4cSmEvSBRbYgkSeFkjC/media/686692a7c5f95a4a3ec85c46.svg') no-repeat center center;
    background-size: cover;
    color: #fff;
}

.post-content-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-start;
}

.post-text {
    flex: 1;
    min-width: 300px;
    text-align: right;
}

.post-details-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: #6f42c1; /* تغيير لون العنوان */
}

.post-details-description p {
    font-size: 1.2rem;
    line-height: 1.8;
}

.back-btn {
    margin-top: 20px;
    padding: 10px 25px;
    background: #5D1D99;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s ease;
}

    .back-btn:hover {
        transform: scale(1.05);
    }

.post-media-container {
    flex: 1;
    min-width: 300px;
    text-align: left;
}

.post-details-image,
.post-details-video {
    width: 100%;
    max-width: 900px;
    max-height: 90vh; /* أقصى طول للشاشات الكبيرة */
    object-fit: contain;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.post-details-pdf {
    width: 100%;
    max-width: 600px;
    height: 80vh; /* طول أكبر للـ PDF */
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    border: none;
}

/* Responsive: الشاشات الصغيرة */
@media (max-width: 991px) {
    .post-details-image,
    .post-details-video,
    .post-details-pdf {
        max-width: 100%;
        height: auto; /* يسمح بالتمدد بشكل متناسب */
        max-height: none; /* إزالة الحد الأعلى للارتفاع */
    }
}


.file-link {
    display: inline-block;
    padding: 15px 25px; /* تكبير مساحة الملف */
    background: #3A0F66;
    color: #fff;
    font-weight: bold;
    border-radius: 10px;
    text-decoration: none;
    transition: transform 0.3s ease;
}

    .file-link:hover {
        transform: scale(1.05);
    }

@media (max-width: 991px) {
    .post-content-wrapper {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

    .post-media-container,
    .post-text {
        text-align: center;
    }

    .post-details-image,
    .post-details-video,
    .post-details-pdf {
        max-height: none;
    }
}
