body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    direction: rtl;
}

.navbar {
    background-color: #000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 10px;
    color: white;
    width: 100%;
    /* margin-bottom: 10px; */
}

.navbar a {
    color: white;
    text-decoration: none;
    padding: 18px 20px;
    font-size: bold;
    margin-left: 3px;
}

.navbar a:hover {
    background-color: #575757;
    border-radius: 20px;
    text-decoration: none;
}

.navbar-title {
    display: flex;
    align-items: center;
    padding: 5px 5px;
    margin: 10px 10px;
}

.icon-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    margin-left: 10px;
    object-fit: cover;
    border: 2px solid #fff;
}

.menu-icon {
    font-size: 24px;
    cursor: pointer;
    display: none; 
}
.icon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    vertical-align: middle;
}


.sidebar {
    height: 100%;
    width: 250px;
    position: fixed;
    top: 0;
    right: 0;
    background-color: #333;
    padding:20px 20px;
    transform: translateX(100%);
    transition: 0.3s;
    display: none; 
    z-index: 9999;
    overflow: scroll;
    
}

.sidebar a {
    padding: 10px 15px;
    margin: auto;
    text-decoration: none;
    font-size: 18px;
    color: white;
    display: block;
    transition: 0.3s;
    margin:20px 20px 10px 20px;
    text-decoration: none;
}

.sidebar a:hover {
    background-color: #575757;
    text-decoration: none;
}

.sidebar .closebtn {
    position: absolute;
    top: 10px; /* تعديل المسافة من الأعلى */
    left: 20px; /* تعديل المسافة من اليسار لجعل الزر غير مخفي */
    font-size: 36px;
    margin-right: 0; /* إزالة الـ margin */
    color: white; /* تأكيد لون النص الأبيض ليتماشى مع الخلفية السوداء */
}

.content {
    padding: 20px;
    text-align: center;
}

.posts-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    padding: 20px;
}

.post-card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 15px;
    width: 100%;
    max-width: 300px;
    box-sizing: border-box;
    text-align: center;
    transition: transform 0.3s;
}

.post-card:hover {
    transform: translateY(-5px);
}

.post-card h3 {
    margin: 0 0 10px;
    font-size: 20px;
    color: #007bff;
}

.post-card p {
    margin: 0 0 15px;
    font-size: 16px;
    color: #555;
}

.post-image, .post-video {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
}

.post-image {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
}

.pdf-container {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.pdf-icon {
    width: 50px;
    height: 50px;
    margin-right: 10px;
}

.pdf-details {
    text-align: left;
}

.pdf-details p {
    margin: 0;
    font-size: 14px;
    color: #333;
}

.download-btn {
    display: inline-block;
    padding: 10px 15px;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 10px;
}

.download-btn:hover {
    background-color: #0056b3;
}

.view-btn, .download-btn {
    display: inline-block;
    padding: 10px 15px;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 10px;
    margin: 10px 10px;
}

.view-btn:hover, .download-btn:hover {
    background-color: #0056b3;
    text-decoration: underline;
}

.read-more {
    display: inline-block;
    margin-top: 10px;
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
}

.read-more:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* السلايدر */
.swiper-container {
    width: 100%;
    height: 70vh; /* Adjust the height to 70% of the viewport height */
    max-height: 100vh;
    margin-bottom: 20px;
    overflow: hidden;
    background-color: #f4f4f4; /* Light grey background for the slider */
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2); /* Soft shadow around the slider */
    border-radius: 8px; /* Optional: To round the edges of the slider */
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Ensure the entire image fits inside without being cropped */
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(34, 34, 34, 0.5);
}
@media screen and (max-width: 768px) {
    .swiper-container {
        height: 40vh; /* Adjust to 40% of viewport height for smaller screens */
    }
}

@media screen and (max-width: 480px) {
    .swiper-container {
        height: 30vh; /* Adjust to 30% of viewport height for very small screens */
    }
}



@media screen and (max-width: 768px) {
    .swiper-container {
        height: 300px;
    }
    .menu-icon {
        display: block;
    }
    .sidebar {
        display: block;
        width: 80%;
    }
    .navbar-links {
        display: none;
    }
    .post-card {
        width: 100%;
        margin-bottom: 20px;
    }
    .container {
        padding: 0 20px;
    }
}

/* Navbar dropdown */
.dropdown {
    position: relative;
    display: inline-block;
    
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #000;
    min-width: 300px; /* زيادة العرض لجعلها أكثر وضوحًا */
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 9999;
    text-align: right;
    border-radius: 8px;
    max-height: 400px; /* تحديد أقصى ارتفاع للسماح بالتمرير إذا كان المحتوى كبيرًا */
    overflow-y: auto; /* تمكين التمرير العمودي إذا كان المحتوى يتجاوز الارتفاع المحدد */
}

.dropdown-content a {
    color: white;
    padding: 20px 16px; /* زيادة الحشو لجعل الروابط أكثر وضوحًا */
    text-decoration: none;
    display: block;
    transition: background-color 0.3s;
    border-bottom: 1px solid #575757;
    font-size: 18px; /* زيادة حجم النص */
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background-color: #575757;
}

.dropdown:hover .dropdown-content {
    display: block;
}

@media screen and (max-width: 768px) {
    .dropdown-content {
        position: relative;
        background-color: #000;
    }
} 
.open-sidebar {
    transform: translateX(0);
    display: block;
}

/* تصميم الأعمدة داخل القائمة المنسدلة */
.row {
    display: flex;
    justify-content: space-between;
}

.column {
    flex: 1;
    margin: 10px;
}

.column h4 {
    font-size: 18px;
    margin-bottom: 10px;
}

.column ul {
    list-style-type: none;
    padding: 0;
}

.column ul li {
    margin-bottom: 8px;
}

.column ul li a {
    color: white;
    text-decoration: none;
}

.column ul li a:hover {
    color: #007bff;
}

/* تأكد من أن القائمة الكبيرة تظهر بشكل جيد */
.dropdown-content {
    width: 100%; /* يمكن تعديل العرض حسب الحاجة */
    background-color: #000; /* لتتناسب مع التصميم العام */
}


/* Sidebar dropdown content is always visible */
.sidebar .dropdown-content {
    display: block; /* Ensure the dropdown content in the sidebar is visible */
    background-color: #000; /* Sidebar background color */
    padding: 10px;
    border-radius: 8px;
}

/* Styling the columns inside the sidebar dropdown */
.sidebar .row {
    display: flex;
    flex-direction: column; /* Stack items vertically */
}

.sidebar .column {
    margin-bottom: 20px;
}

.sidebar .column h4 {
    color: white; /* Ensure the text is visible against dark background */
    margin-bottom: 10px;
}

.sidebar .column ul {
    list-style: none;
    padding-left: 0;
}

.sidebar .column ul li {
    margin-bottom: 8px;
    color: white;
}

.sidebar .column ul li a {
    color: white;
    text-decoration: none;
}

.sidebar .column ul li a:hover {
    color: #007bff;
}

/* Adjustments for contact info icons */
.sidebar .dropdown-content a i {
    margin-right: 8px;
    color: #fff;
}

.sidebar .dropdown-content a {
    color: white;
    padding: 10px;
    text-decoration: none;
    display: block;
}

.sidebar .dropdown-content a:hover {
    background-color: #575757;
}


/* Define a new class for the specific a tags */
.special-link {
    background-color: #007bff; /* Blue background */
    color: white; /* White text color */
    padding: 10px 20px; /* Adjust padding */
    border-radius: 8px; /* Rounded corners */
    text-decoration: none; /* Remove underline */
    display: inline-block; /* Ensure it takes up space properly */
    transition: background-color 0.3s ease; /* Smooth hover transition */
}

/* Hover effect for special links */
.special-link:hover {
    background-color: #0056b3; /* Darker blue on hover */
    color: #fff; /* Ensure text stays white on hover */
    text-decoration: underline; /* Add underline on hover */
}




.content {
    max-width: 1200px;
    margin: 10px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

h2 {
    color: #000;
    text-align: center;
    font-size: 36px;
    margin-bottom: 20px;
}

h3 {
    color: #000;
    font-size: 24px;
    margin-top: 40px;
    margin-bottom: 20px;
    text-align: right;
}

p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: justify;
}



/* Add subtle hover effects for interactive elements */
a {
    color: #0056b3;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.content ul {
    margin-top: 10px;
    margin-left: 20px;
}

.content ul li {
    font-size: 18px;
    margin-bottom: 10px;
    line-height: 1.6;
}

iframe {
    margin-top: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
/* Scrolling Text Styling */
.scrolling-text {
    width: 100%;
    background-color: #f8f9fa;
    padding: 10px 0;
    overflow: hidden;
    position: relative;
    text-align: center;
    margin-bottom: 10px;
    height: 60px; /* Increase height for larger text */
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #000; /* Optional border to visually indicate the area */
}

.scrolling-text p {
    position: absolute;
    white-space: nowrap;
    font-size: 30px; /* Larger font size */
    font-weight: bold; /* Bold text */
    color: #027109;
    animation: scrollText 10s linear infinite; /* Adjust timing for better pacing */
    transform: translateX(100%); /* Start outside of the viewport */
}

/* Scrolling Animation */
@keyframes scrollText {
    0% {
        transform: translateX(-100%); /* Start outside on the right */
    }
    100% {
        transform: translateX(100%); /* Move fully to the left and out of view */
    }
}
/* Slider and other content */
.swiper-container {
    width: 100%;
    height: 70vh;
    max-height: 100vh;
    margin-bottom: 20px;
    background-color: #f4f4f4;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(34, 34, 34, 0.5);
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .swiper-container {
        height: 40vh;
    }
}

@media screen and (max-width: 480px) {
    .swiper-container {
        height: 30vh;
    }
}