html, body {
    height: 100%;
    margin: 0;
    width: 100%;
    font-family: 'Cairo', sans-serif;
}
    /* في ملف CSS الخاص بك */
    .chapter-disabled {
        opacity: 0.5;
        pointer-events: none;
        filter: grayscale(100%); /* تحويل الصورة إلى اللون الرمادي */
    }
    .chapter-info-container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .chapter-info {
        flex: 1;
    }
    
    .chapter-meta {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 15px;
        font-size: 14px;
    }
    
    /* نمط خاص بالجوال */
    @media (max-width: 768px) {
        .chapter-info-container {
            flex-direction: column;
            align-items: flex-start;
        }
        
        .chapter-info h4 {
            margin-bottom: 10px;
        }
        
        .chapter-meta {
            justify-content: flex-start;
        }
    }
    .chapter-title {
        font-size: 20px; /* الحجم الأصغر للعنوان في شاشات الجوال */
        margin: 2px;
    }
    /* حجم خط أصغر للجوال */
@media (max-width: 768px) {
    .chapter-title {
        font-size: 12px; /* الحجم الأصغر للعنوان في شاشات الجوال */
        margin: 2px;
    }
}
.form-control{
border-radius: 0;
    
}
.row {
    margin: 0;
}
.alert {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}
.btn {
    display: block;
    width: fit-content;
    margin: 10px 0;
    padding-left: 20px;
    padding-right: 20px;
}
.form-check-input:checked {
    background-color: #F46B45;
    border-color: #F46B45;
}
.story-image-container img {
    width: 100%;
    height: auto;
}
.modal-header .btn-close{
        margin: 0;

}
@media (max-width: 768px) {
    .col-md-4, .col-md-8 {
        width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
        padding: 5px;
    }
}
body {
    background-color: #f4f4f4;
}
.btn-outline-secondary{
        --bs-btn-color: #F46B45;
    --bs-btn-border-color: #F46B45;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #F46B45;
    --bs-btn-hover-border-color: #F46B45;
    --bs-btn-focus-shadow-rgb: 108, 117, 125;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #F46B45;
    --bs-btn-active-border-color: #F46B45;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #F46B45;
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: #F46B45;
    --bs-gradient: none;
}

header {
    background-color: #ffffff51;
    color: #F46B45;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 100%;

}
.btn-primary {
    background-color: #F46B45;
    border-color: #ccc ;

}
.input-group > :not(:first-child):not(.dropdown-menu):not(.valid-tooltip):not(.valid-feedback):not(.invalid-tooltip):not(.invalid-feedback) {
    margin-left: calc(var(--bs-border-width) * -1);
    border-radius: 0;
}
.input-group > :not(:first-child):not(.dropdown-menu):not(.valid-tooltip):not(.valid-feedback):not(.invalid-tooltip):not(.invalid-feedback) {
    margin-left: calc(var(--bs-border-width) * -1);
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}
.btn-primary:hover {
    background-color: #FFBE00;
   border-color: #ccc ;

}
.navbar-brand .logo {
    height: 50px;
    width: auto;
}

.navbar-nav .nav-item .nav-link {
    color: #EEA849;
    font-weight: 600;
    padding: 10px 15px;
}

.navbar-nav .nav-item .nav-link:hover {
    color: #F46B45;
}

.dropdown-menu {
    background-color: #ffffff;
    border: 1px solid #ddd;
}

.dropdown-menu .dropdown-item {
    color: #F46B45;
}

.dropdown-menu .dropdown-item:hover {
    background-color: #F46B45;
    color: #ffffff;
}

.btn-custom {
    background-color: #EEA849;
    color: #fff;
    border: none;
    font-size: 16px;
    transition: background-color 0.3s ease;
    text-decoration: none;
}

.btn-custom:hover {
    background-color: #F46B45;
}
a {
    color: #F46B45;
    text-decoration: none;
}

.nav-link{
    color: #F46B45;
   
}
.nav-tabs .nav-item.show .nav-link, .nav-tabs .nav-link.active{
    background-color: #F46B45;
border-radius: 0%;
color:#fff;
}
.nav-tabs .nav-item.show .nav-link, .nav-tabs .nav-link:hover{
    color: #FFBE00;

}
.nav-tabs .nav-item.show .nav-link, .nav-tabs .nav-link{
    border-radius: 0%;

}
.nav-tabs {
    justify-content: center;
}
.footer {
    color: #F46B45;
    text-align: center;
    padding: 20px;
    width: 100%;
    position: relative; /* أو يمكن استخدام 'static' */
    align-items: center; /* Center columns horizontally */
    bottom:0;
    margin-top: 20px; /* أو أي قيمة مناسبة لإضافة مسافة أعلى الفوتر */
}



.footer .row {
    width: 100%;
    display: flex;
    flex-wrap: wrap; /* Allow wrapping of columns if necessary */
    justify-content: space-between; /* Space out columns */
    margin-bottom: 20px; /* Space between rows */
}

.footer .col-md-3 {
    flex: 1;
    max-width: 25%; /* Ensure columns don't exceed 25% of container width */
    padding: 0 15px; /* Space around columns */
    box-sizing: border-box; /* Include padding in the element's total width and height */
}

.footer .logo {
    max-width: 150px;
    margin-bottom: 15px;
}

.footer h5 {
    margin-bottom: 20px;
    font-weight: bold;
    text-align: start; /* Center the heading */
}

.footer p {
    text-align: center; /* Center text */
}

.footer ul {
    margin: 0;
    list-style-type: none;
    display: flex;
    flex-direction: column; /* Stack list items vertically */
    align-items: center; /* Center list items */
}

.footer ul li {
    margin-bottom: 10px; /* Space between list items */
}

.footer ul li a {
    text-decoration: none;
    color: #000;
}

.footer ul li a:hover {
    color: #F46B45;
}

.footer .social-icons a {
    margin: 0 10px; /* Space between social icons */
}

.footer .payment-methods img {
    margin: 0 5px; /* Space between payment method images */
    max-width: 50px; /* Ensure payment method images don't exceed 50px width */
}

.footer .list-unstyled {
    padding-left: 1px; /* Remove left padding */
    margin: 0; /* Remove default margins */
    text-align: right; /* Center text */
}

.footer .list-unstyled li {
    margin-bottom: 10px; /* Space between list items */
}

/* Adjust heading and list alignment */
.footer .list-unstyled, .footer h5 {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.list-unstyled {
    padding-left: 0; /* Default padding */
    list-style: none;
  }

  .custom-list {
    padding-left: 15px; /* Custom padding for specific cases */
  }
  
.social-icons a {
    margin: 0 10px;
    text-decoration: none;
    color: #F46B45;
}
.social-icons a:hover {
    color: #FFBE00;
}
.payment-methods img {
    width: 50px;
    margin: 0 10px;
}
.text-center p {
    margin-bottom: 0;
}
.container {
    padding: 20px;
}

.carousel-item img {
    width: 100%;
    object-fit: cover;
}
.category-card {
    height: 300px; /* ضبط ارتفاع البطاقة */
    background-color: #f9f9f9; /* خلفية البطاقة */
}
.category-card img {
    width: 100%;
    object-fit: cover;
}

#btn_left, #btn_right {
    background-color: #FFBE00;
    border: none;
    color: white;
}

#display_all {
    color: #FFBE00;
    padding-left: 18px;
    float: left;
}

#new_stories {
    float: right;
}

#category_card {
    background-color: #FFBE00;
}

#category_head h2, #category_body h2 {
    font-size: 50px;
}

#category_body {
    text-align: right;
    color: white;
    padding-right: 10px;
}

#impo_links {
    color: white;
    text-align: right;
}

ul.horizontal-list {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    float: right;
}

ul.horizontal-list li {
    margin-right: 20px;
}

#footer_desc {
    float: right;
    color: white;
    padding-right: 18px;
    text-align: justify;
}

#categories {
    outline: none;
    width: 210px;
    font-size: 22px;
    padding: 5px;
    border: none;
    color: white;
    background-color: #FFBE00;
    border-radius: 25px;
}

.topnav {
    overflow: hidden;
    background-color: #e9e9e9;
}

.topnav a {
    font-family: 'Tajawal';
    float: right;
    display: block;
    color: black;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    font-size: 17px;
}

.topnav a:hover {
    background-color: #ddd;
    color: black;
}

.topnav a.active {
    color: #FFBE00;
}

.topnav .search-container {
    float: right;
    border: 1px solid #FFBE00;
    border-radius: 25px;
    margin-top: 12px;
    padding-right: 5px;
}

.topnav input[type=text] {
    padding: 6px;
    background-color: transparent;
    margin-top: 8px;
    font-size: 17px;
    border: none;
}

.topnav .search-container button {
    float: left;
    padding: 6px 10px;
    margin-top: 8px;
    margin-right: 16px;
    font-size: 17px;
    background-color: transparent;
    color: #FFBE00;
    border: none;
    cursor: pointer;
}

.topnav .search-container button:hover {
    background: #ccc;
}

@media screen and (max-width: 600px) {
    .topnav .search-container {
        float: none;
    }

    .topnav a, .topnav input[type=text], .topnav .search-container button {
        float: none;
        display: block;
        text-align: left;
        border: 1px solid #FFBE00;
        border-radius: 10px;
        background-color: transparent;
        width: 100%;
        margin: 0;
        padding: 14px;
    }

    .topnav input[type=text] {
        border: 1px solid #ccc;
    }
}
.input-group>.form-control, .input-group>.form-floating, .input-group>.form-select {
    position: relative;
    flex: 1 1 auto;

}
#popup_text {
    font-size: 12px;
    color: white;
    text-align: right;
    margin-top: 110px;
}

#popup_button {
    background-color: #FFBE00;
    color: white;
    border: none;
    border-radius: 20px;
    outline: none;
    padding: 5px;
    width: 100px;
}
    .story-favorites-icon {
    color: #FFBE00; /* اللون الجديد للأيقونة */
}

.modal-content {
    background-size: 500px 300px;
    margin-top: 100px;
    padding-top: 20px;
    padding-bottom: 20px;
    border-radius: 20px;
}

.modal-header {
    border: none;
}

.ad-card {
    background-color: #f8f9fa; /* لون خلفية الإعلان */
}

.card-img-top {
    height: 170px; /* ارتفاع الصور في القصص والإعلانات */
    object-fit: cover;
}

.card-body {
    padding: 15px;
}
/* لضبط ارتفاع وبُعد البطاقات */
.story-card, .ad-card {
    margin: 0.5%;
}

/* لضمان تغطية الصورة بالكامل للمساحة المخصصة لها */
.story-image-wrapper, .ad-image-wrapper {
    height: 100%;
}

.story-image, .ad-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
        display: block;

}
.story-card {
    position: relative; /* مهم لتحديد موقع العناصر الداخلية بشكل صحيح */
    overflow: hidden; /* تأكد من أن الصورة لا تتجاوز حدود الكارد */
}

.story-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.story-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* يجعل الصورة تغطي المساحة بالكامل */
    display: block;
}

.story-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.5); /* خلفية مظللة لتظهر النص بشكل أوضح */
    color: #fff;
    padding: 10px;
    text-align: center;
}
html {
    font-family: 'Tajawal';
}

#login_title {
    text-align: right;
}

#img1 {
    float: left;
}

#fl {
    float: left;
}

@media screen and (max-width: 600px) {
    /* form {
        width: 100px;
    } */

    #form_row {
        width: 100%;
        height: 100px;
        position: absolute;
        top: -960px;
        left: -150px;
        bottom: 0;
        right: 0;
        margin: auto;
    }

    input:focus {
        outline: none;
    }

    .divider {
        width: 500px;
        text-align: center;
    }

    .divider hr {
        margin-left: auto;
        margin-right: auto;
        width: 40%;
    }

    .left {
        float: left;
    }

    .right {
        float: right;
    }

    #correct {
        width: 20%;
    }

    .modal-content {
        top: 250px;
    }
}

body {
    margin: 0;
    padding: 0;
    height: 100vh;
    overflow-y: scroll;
}
.main-banner-wrap {
    background-size: contain;
    position: relative;
    height: auto;
}

.main-banner-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

@media (max-width: 768px) {
    .main-banner-wrap {
        height: 300px; /* Adjust height for smaller screens */
    }

    .carousel-item img {
        object-fit: cover;
        height: 300px; /* Adjust image height to match banner height */
    }
}

@media (max-width: 576px) {
    .main-banner-wrap {
        height: 200px; /* Further adjust height for very small screens */
    }

    .carousel-item img {
        object-fit: cover;
        height: 200px; /* Adjust image height to match banner height */
    }
}

.carousel-item img {
    max-width: 80%;
    max-height: 100%;
    object-fit: contain;
    margin: auto;
}

.carousel-indicators [data-bs-target] {
    background-color: #000;
}

.category-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
}

.category-detail {
    display: flex;
    flex-direction: column;
}

.category-card img {
    width: 100%;
    height: auto;
}

.category-stories {
    display: flex;
    flex-direction: column;
}

.grid-stories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.story-card img {
    width: 100%;
    height: auto;
}

.card {
    display: flex;
    flex-direction: column;
}

.card-body {
    flex: 1;
}

.category-card, .story-card {
    position: relative;
    overflow: hidden;
    border-radius: 0;
    border: 1px solid #ddd;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.category-image-wrapper, .story-image-wrapper {
    position: relative;
    flex: 1;
}

.category-image, .story-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.category-overlay, .story-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.category-image-wrapper:hover .category-overlay, .story-image-wrapper:hover .story-overlay {
    opacity: 1;
}

.category-title, .story-title {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.category-description, .story-description {
    font-size: 0.875rem;
}

.col-md-3, .col-md-9 {
    padding: 0 10px;
}

.mb-3 {
    margin-bottom: 15px;
}
@media (min-width: 992px) {
    .navbar-expand-lg .navbar-collapse {
        display: flex !important;
        flex-basis: auto;
        justify-content: space-between;
    }
}


        .banner {
            background-color: rgba(255, 190, 0, 0.6); /* تراكب أصفر مع شفافية */
            padding-bottom: 40px; 
            text-align: center;
            color: white;
        }

        .content-box {
            background-color: white;
            padding: 20px;
            margin-top: -50px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        }

        .story-image-container {
            position: relative;
            margin-bottom: 20px;
        }

        .story-image {
            width: 100%;
            height: auto;
        }

        .story-image-overlay {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: rgba(255, 190, 0, 0.6); /* تراكب أصفر مع شفافية */
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            font-size: 1.5rem;
            font-weight: bold;
        }

        .rating {
            display: flex;
            direction: rtl; 
        }

        .rating .fa-star {
            color: #ddd;
            font-size: 1.5em;
        }

        .rating .fa-star.checked {
            color: #f39c12;
        }


        
        .share-buttons {
            display: flex; /* Aligns child elements (buttons) horizontally */
            gap: 10px; /* Optional: Adds space between buttons */
        }
        
        .share-buttons a {
            color: #fff;
            background-color: #444;
            padding: 15px;
            border-radius: 50%;
            text-align: center;
            width: 45px; /* Sets width */
            height: 45px; /* Sets height to match width for a circle */
            display: inline-flex; /* Allows flex properties within the button */
            justify-content: center; /* Center horizontally */
            align-items: center; /* Center vertically */
            text-decoration: none;
            transition: background-color 0.3s ease;
            font-size: 20px; /* Size of the icons */
        }
        
        .share-buttons a:hover {
            background-color: #666;
        }
        
        
/* Custom Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.pagination .page-item {
    margin: 0 5px;
}

.pagination .page-link {
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 50%;
    text-decoration: none;
    color: #333;
}

.pagination .page-link:hover {
    background-color: #F46B45; /* Background color on hover */
    color: #fff; /* Text color on hover */
}

.pagination .active .page-link {
    background-color: #F46B45; /* Background color for the active page */
    color: #fff; /* Text color for the active page */
    border-color: #F46B45;
}

.pagination .disabled .page-link {
    background-color: #f8f9fa; /* Background color for disabled items */
    color: #F46B45; /* Text color for disabled items */
    border-color: #ddd;
}
        .horizontal-stats {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1rem;
            padding: 0.5rem;
            border-radius: 0.5rem;
            background-color: #f9f9f9;
        }

        .stat-item {
            text-align: center;
            flex: 1;
        }

        .stat-icon {
            font-size: 18px;
            color: #F46B45;
        }

        .stat-item p {
            margin: 0.5rem 0 0;
            font-size: 14px;
            font-weight: 400;
        }
        .custom-padding {
            padding: 20px; /* Example padding */
        }

        .chapters-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: 20px;
        }

        .chapter-card {
            background-color: #fff;
            border: 1px solid #ddd;
            border-radius: 8px;
            padding: 15px;
            text-align: center;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        }

        .chapter-card img {
            max-width: 100%;
            border-radius: 8px;
        }

        .chapter-card .chapter-title {
            font-size: 1.2em;
            margin: 10px 0;
        }

        .chapter-card .chapter-meta {
            color: #777;
            font-size: 0.9em;
            margin-bottom: 10px;
        }

        .chapter-card .likes {
            font-size: 0.8em;
            color: #f56565;
        }
        
        
        
        /* تحسين استجابة النجوم */
.star {
    font-size: 20px; /* يمكنك تقليل حجم النجوم قليلاً لتناسب الشاشات الصغيرة */
}

@media (max-width: 576px) { /* استعلام وسائط للشاشات الصغيرة */
    .modal-dialog {
        max-width: 90vw; /* تقليل العرض الأقصى للحوار في الشاشات الصغيرة */
    }
    .modal-content {
        border-radius: 10px; /* تقليل نصف القطر للحدود لتناسب الشاشات الصغيرة */
    }
    .star {
        font-size: 18px; /* تقليل حجم النجوم بشكل أكبر في الشاشات الصغيرة */
    }
    .btn {
        font-size: 20px; /* تقليل حجم النص في الأزرار لتناسب الشاشات الصغيرة */
    }
}

        
        

