/* محتوى ملف styles.css */
body {
    font-family: 'Tajawal', 'Roboto', sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
}

.gray-scale {
    filter: grayscale(100%);
    opacity: 0.5;
}


// navbar - Start
.navbar {
    background-color: #fff;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap; /* تأكيد عدم التفاف العناصر */
    padding: 0.5rem 1rem; /* إضافة حشو لتقليل الفراغ حول العناصر */
}

.navbar-brand {
    margin-<?php echo $lang === 'ar' ? 'left' : 'right'; ?>: 0; /* ضبط الهامش ليكون 0 لجعل الـ Logo يلتصق بجانب الشاشة */
    display: flex;
    align-items: center;
}

.d-flex.align-items-center {
    display: flex;
    align-items: center;
    margin-<?php echo $lang === 'ar' ? 'right' : 'left'; ?>: auto;
    gap: 10px; /* إضافة فراغ صغير بين الأيقونات */
}

.navbar-toggler {
    color: #333 !important;
    border: none;
    margin-<?php echo $lang === 'ar' ? 'right' : 'left'; ?>: 0; /* إزالة الهامش الافتراضي لضبط المحاذاة بشكل أفضل */
}

#toggleLang {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-<?php echo $lang === 'ar' ? 'left' : 'right'; ?>: 0; /* ضبط الهامش لتتناسب مع اتجاه اللغة */
}

.navbar-toggler-icon {
    background-image: url('data:image/svg+xml;charset=utf8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 30"%3E%3Cpath stroke="rgba(0, 0, 0, 1)" stroke-width="2" stroke-linecap="round" stroke-miterlimit="10" d="M4 7h22M4 15h22M4 23h22"/%3E%3C/svg%3E');
    margin-<?php echo $lang === 'ar' ? 'left' : 'right'; ?>: 0; /* ضبط المحاذاة لتكون ملائمة */
}
// navbar - End

.rtl #toggleLang {
    margin-left: 0;
    margin-right: 1rem;
}

.ltr #toggleLang {
    margin-left: 1rem;
    margin-right: 0;
}

#showcase {
    background: url('../images/sitehomebg02.jpg') no-repeat center center/cover;
    color: #fff;
    height: 50vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

#showcase h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    color: #fff;
}

#showcase p {
    font-size: 1.5rem;
    color: #fff;
}

.container {
    padding: 60px 15px;
    max-width: 1200px;
    margin: 0 auto;
}

// Footer - Start
.footer {
    display: flex !important; /* تأكد من إضافة هذا السطر */
    flex-direction: column !important; /* يضمن أن المحتوى يرتب عمودياً */
    background-color: #fff !important;
    color: #333 !important;
    justify-content: center !important; /* توسيط العناصر أفقياً */
    align-items: center !important; /* توسيط العناصر عمودياً */
    text-align: center !important;
    padding: 20px 0 !important;
    border-top: 1px solid #ddd !important;
}

.visit-count {
    color: #000 !important;
    font-size: 1.5rem !important;
    font-weight: bold !important;
    text-align: center !important; /* تأكيد التوسيط لعدد الزيارات */
}

/* تصغير حجم الخط للفقرات داخل الفوتر على الشاشات الصغيرة مع الحفاظ على التوسيط */
@media (max-width: 768px) {
    .footer p {
        font-size: 0.9rem !important; /* تصغير حجم الخط للفقرات في الفوتر */
        line-height: 1.4 !important; /* تحسين ارتفاع السطر لضمان سهولة القراءة */
        text-align: center !important; /* تأكيد التوسيط */
        margin: 0 auto !important; /* تأكيد التوسيط بتطبيق الهامش الأوتوماتيكي */
    }

    .visit-count {
        font-size: 1.2rem !important; /* تصغير حجم الخط لعدد الزيارات */
        text-align: center !important; /* تأكيد التوسيط */
        margin: 0 auto !important; /* تأكيد التوسيط بتطبيق الهامش الأوتوماتيكي */
    }
}
// Footer - End


.rtl .navbar-toggler {
    float: right;
}

.ltr .navbar-toggler {
    float: left;
}

.rtl .navbar-nav {
    margin-left: auto;
}

.ltr .navbar-nav {
    margin-right: auto;
}

.rtl .navbar-collapse {
    text-align: left;
}

.ltr .navbar-collapse {
    text-align: right;
}

.card-custom {
    transition: transform 0.2s;
    text-align: start;
}

.card-custom:hover {
    transform: scale(1.05);
}

.card-custom[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

.card-custom[dir="ltr"] {
    direction: ltr;
    text-align: left;
}

.card-custom {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.d-flex {
    display: flex;
}

.align-items-stretch {
    align-items: stretch;
}

.flex-fill {
    flex: 1 1 auto;
}

/* ### An updated section for the custom card styles ### */
.black-text {
    color: #000 !important;
}

.form-check-inline {
    display: flex;
    align-items: center;
}

.form-check-inline label {
    margin-right: 10px;
}

.error-message {
    color: red;
    display: none;
}

.card-custom {
    transition: transform 0.2s, box-shadow 0.2s;
    text-align: start;
    border-radius: 10px;
    background-color: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.card-custom:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.card-title {
    font-size: 1.5rem;
    color: #333333;
    margin-bottom: 1rem;
}

.card-text {
    font-size: 1rem;
    color: #666666;
    margin-bottom: 1.5rem;
}

.btn-custom {
    background-color: #007bff;
    border-color: #007bff;
    color: #ffffff;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.3s;
}

.btn-custom:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

.btn-disabled {
    background-color: gray !important;
    border-color: gray !important;
    pointer-events: none;
    color: #ffffff;
}

.card-img-top {
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    height: 200px;
    object-fit: cover;
}

.countdown-timer {
    background: rgba(255, 255, 255, 0.8);
    padding: 10px;
    border-radius: 10px;
    display: inline-block;
    margin-bottom: 20px;
    text-align: center;
}

.countdown-timer.green {
    color: green;
}

.countdown-timer.red {
    color: red;
}

.bold {
    font-weight: bold;
}

.nav-highlight {
    color: blue;
    font-weight: bold;
    display: flex;
    align-items: center;
}

.nav-highlight i {
    margin-right: 5px;
}

.blink-text {
    animation: blink 1s infinite;
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.hidden {
    display: none !important;
}
