/* متغيرات الألوان */
:root {
    --primary-color: #2d5a27;    /* أخضر غامق */
    --secondary-color: #8B5A2B;   /* بني */
    --accent-color: #f4c542;      /* أصفر ذهبي */
    --light-bg: #f8f9fa;
    --dark-text: #333;
    --white: #fff;
    --gradient: linear-gradient(135deg, rgba(45,90,39,0.9), rgba(139,90,43,0.9));
}

/* الخطوط المحلية */
@font-face {
    font-family: 'Saudi';
    src: url('../fonts/saudi-regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Saudi';
    src: url('../fonts/saudi-bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'ExpoArabic';
    src: url('../fonts/expo-book.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'ExpoArabic';
    src: url('../fonts/expo-medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'ExpoArabic';
    src: url('../fonts/expo-semibold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* الأساسيات */
body {
    font-family: 'Saudi', 'Tajawal', 'Cairo', sans-serif;
    background-color: var(--light-bg);
    color: var(--dark-text);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'ExpoArabic', 'Cairo', sans-serif;
    font-weight: 600;
}

/* شريط التنقل */
.navbar {
    transition: all 0.3s ease;
    padding: 15px 0;
    background-color: var(--primary-color) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.navbar-scrolled {
    background-color: rgba(45, 90, 39, 0.95) !important;
    padding: 10px 0;
}
.navbar-brand {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 1px;
    font-family: 'ExpoArabic', 'Cairo', sans-serif;
}
.navbar-brand img {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
    transition: transform 0.3s;
}
.navbar-brand:hover img {
    transform: scale(1.05);
}
.nav-link {
    font-weight: 500;
    margin: 0 5px;
    position: relative;
}
.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 10px;
    left: 10px;
    height: 3px;
    background-color: var(--accent-color);
    border-radius: 3px;
}

/* صندوق البحث */
.search-box {
    background: white;
    border-radius: 50px;
    padding: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    max-width: 400px;
}
.search-box input {
    border: none;
    outline: none;
    padding: 10px 20px;
    border-radius: 0 50px 50px 0;
    background: transparent;
}
.search-box button {
    border-radius: 50px;
    padding: 10px 20px;
    background: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}
.search-box button:hover {
    background: var(--secondary-color);
}

/* القسم الترحيبي (Hero Section) */
.hero-section {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: 80vh;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: -80px; /* لتعويض ارتفاع النافبار */
    margin-bottom: 50px;
    position: relative;
    overflow: hidden;
}
.hero-content {
    animation: fadeInUp 1.5s ease;
}
.hero-content h1 {
    font-size: 4rem;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    margin-bottom: 20px;
}
.hero-content .btn {
    border-radius: 50px;
    padding: 15px 40px;
    font-weight: 700;
    transition: all 0.3s;
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--primary-color);
}
.hero-content .btn:hover {
    transform: scale(1.05);
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* البطاقات */
.card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    height: 100%;
    background: white;
}
.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}
.card-img-top {
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s;
}
.card:hover .card-img-top {
    transform: scale(1.05);
}
.card-body {
    padding: 20px;
}
.card-title {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-family: 'Saudi', 'Cairo', sans-serif;
}
.card-text {
    color: #666;
}
.btn-primary-custom {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    border-radius: 50px;
    padding: 8px 25px;
    font-weight: 600;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}
.btn-primary-custom:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
    transform: scale(1.05);
}

/* إحصائيات */
.stats-section .stat-item {
    background: white;
    border-radius: 20px;
    padding: 30px 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: 0.3s;
}
.stats-section .stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
.stats-section .stat-item h3 {
    color: var(--primary-color);
    font-weight: 800;
    font-size: 2.5rem;
}

/* صفحات التفاصيل */
.detail-header {
    background: var(--gradient);
    color: white;
    padding: 80px 0 60px;
    margin-bottom: 40px;
    margin-top: -80px;
    border-radius: 0 0 50px 50px;
}
.detail-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 10px;
}
.info-box {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    margin-bottom: 25px;
}
.info-box i {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 15px;
}
.star-rating i {
    margin-left: 2px;
}

/* معرض الصور */
.carousel-item img {
    height: 500px;
    object-fit: cover;
    border-radius: 15px;
}

/* الفوتر */
footer {
    background: #1e2b1c !important;
    color: #ccc;
    padding: 40px 0 20px;
    margin-top: 60px;
}
footer a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s;
}
footer a:hover {
    color: var(--accent-color);
}
footer h5 {
    color: var(--accent-color);
    margin-bottom: 20px;
}

/* استجابة للشاشات الصغيرة */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .detail-title {
        font-size: 2.5rem;
    }
    .search-box {
        max-width: 100%;
        margin-top: 10px;
    }
}

/* ===== حل مشكلة التصاق المحتوى ===== */

/* تحسين هوامش الصفحة الرئيسية */
.container {
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

/* تباعد بين بطاقات المناطق السياحية */
.row {
    margin-right: -15px;
    margin-left: -15px;
}

.row > [class*="col-"] {
    padding-right: 15px;
    padding-left: 15px;
    margin-bottom: 30px !important; /* مسافة بين البطاقات */
}

/* تحسين شكل البطاقات */
.card {
    margin-bottom: 20px;
    border: 1px solid rgba(0,0,0,0.125);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card-body {
    padding: 20px;
    flex: 1 1 auto;
}

.card-img-top {
    height: 220px;
    object-fit: cover;
    width: 100%;
}

/* تحسين هوامش العنوان */
h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-weight: 500;
    line-height: 1.2;
}

h1.mb-4 {
    margin-bottom: 1.5rem !important;
    margin-top: 1rem !important;
}

/* تباعد بين الأقسام */
section, .section {
    margin-bottom: 40px;
    padding: 20px 0;
}

/* تحسين هوامش الصفحة الرئيسية */
.main-content, 
.container .container {
    padding-top: 20px;
    padding-bottom: 20px;
}

/* تحسين ظهور الصور */
img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

/* تباعد بين الأزرار */
.btn, .btn-primary-custom {
    margin-top: 10px;
    display: inline-block;
}

/* تحسين النجوم */
.star-rating i {
    margin-left: 2px;
    font-size: 1.1rem;
}

/* تحسين الفوتر */
footer {
    margin-top: 50px !important;
    padding: 40px 0 20px !important;
}

/* ===== حل مشكلة التصاق المحتوى بالهيدر ===== */

/* زيادة المسافة بين الهيدر ومحتوى الصفحة */
body {
    padding-top: 0 !important;
}

/* الفاصل الموجود في الهيدر - تعديل ارتفاعه */
div[style*="height: 80px"] {
    height: 100px !important; /* زيادة الارتفاع من 80 إلى 100 */
}

/* أو بدلاً من ذلك، أضف هذا الكود للصفحات الرئيسية */
main, .main-content {
    padding-top: 20px !important;
    margin-top: 10px !important;
}

/* تحسين هوامش العناوين الرئيسية */
h1, h2, h3 {
    margin-top: 30px !important;
    margin-bottom: 20px !important;
}

/* تباعد خاص للصفحات */
.container h1:first-child,
.container h2:first-child,
.container .text-center h1 {
    margin-top: 40px !important;
    padding-top: 20px !important;
}

/* تحسين ظهور الصفحة بالكامل */
.page-content, 
.main-wrapper {
    padding-top: 30px;
}
