/* :root defines the color palette for the entire site */
:root {
    --primary-color: #C8963E;       /* Antique Gold - for buttons and highlights */
    --primary-darker: #b38230;      /* Darker Gold for hover effects */
    --bg-dark: #212529;             /* Warm Dark Gray - for footer and navbar */
    --bg-light: #FDF6E3;            /* Light Sand - for main background */
    --text-dark: #212529;           /* Warm Dark Gray - for headings */
    --text-light: #5D4037;          /* Dark Brown - for body text */
    --border-color: #e0d9c7;        /* Light Sandstone - for borders */
    --white: #ffffff;
}

/* General Body & Basic Styles */
body {
    font-family: 'Lato', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    line-height: 1.6;
    color: var(--text-light);
    direction: ltr;
    overflow-x: hidden;
    background-color: var(--bg-light);
}

.section-padding {
    padding: 80px 0;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

h1, h2, h3 {
    text-align: center;
    margin-bottom: 25px;
    color: var(--text-dark);
    font-weight: 700;
}

h1 {
    font-size: 3.2em;
    margin-bottom: 20px;
    line-height: 1.2;
}

h2 {
    font-size: 2.5em;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 10px;
}

h2::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8em;
    margin-bottom: 15px;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 14px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.btn-primary:hover {
    background-color: var(--primary-darker);
    transform: translateY(-2px);
}

/* Header Section */
.header {
    background-color: var(--bg-dark);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header .logo img {
    height: 60px;
    max-width: 100%;
}

.header .navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.header .navigation ul li {
    margin-left: 30px;
}

.header .navigation ul li a {
    text-decoration: none;
    color: var(--white);
    font-weight: 600;
    transition: color 0.3s ease;
}

.header .navigation ul li a:hover {
    color: var(--primary-color);
}

.header-actions {
    display: flex;
    align-items: center;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8em;
    color: var(--white);
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    color: var(--white);
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 1;
    transform: translate(-50%, -50%);
    background-size: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    padding: 20px;
}

.hero-content h1 {
    font-size: 4em;
    color: var(--white);
    text-shadow: 2px 2px 6px rgba(0,0,0,0.6);
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.5em;
    color: var(--white);
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
    margin-bottom: 40px;
}

/* Styling for Page Banners (Static Image) */
.page-banner {
    position: relative;
    width: 100%;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    background-size: cover;
    background-position: center center;
}

.page-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

.page-banner .container {
    position: relative;
    z-index: 2;
}

.page-banner h1 {
    font-size: 4em;
    color: var(--white);
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}

.page-banner h1::after {
    display: none;
}

/* Styling for Professional Content Sections */
.section-title-left {
    text-align: left;
}

.section-title-left::after {
    left: 0;
    transform: none;
}

.lead {
    font-size: 1.2em;
    font-weight: 400;
    color: var(--text-light);
}

.img-fluid {
    max-width: 100%;
    height: auto;
}

.rounded-3 {
    border-radius: 1rem;
}

.shadow-lg {
    box-shadow: 0 1rem 3rem rgba(0,0,0,0.175);
}

/* Universal Card Image Sizing */
.nile-cruise-item img, .category-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

/* Tours Section */
.nile-cruise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.nile-cruise-item {
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.nile-cruise-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

.nile-cruise-item h3 {
    color: var(--text-dark);
    margin: 20px 15px 10px 15px;
}

.nile-cruise-item p {
    font-size: 0.95em;
    color: var(--text-light);
    padding: 0 15px;
    flex-grow: 1;
}

.nile-cruise-item .cruise-info {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 15px 0;
    color: var(--primary-color);
    font-weight: bold;
}

.nile-cruise-item .cruise-info i {
    margin-right: 5px;
}

.nile-cruise-item .btn-primary {
    margin: 20px auto;
    width: fit-content;
}

/* Category Section */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
}

.category-item {
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease;
}

.category-item:hover {
    transform: translateY(-5px);
}

.category-item h3 {
    padding: 15px 10px 5px 10px;
    font-size: 1.3em;
}

.btn-category {
    display: inline-block;
    background-color: transparent;
    color: var(--primary-color);
    padding: 8px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    cursor: pointer;
    font-size: 0.9em;
    margin-bottom: 15px;
}

.btn-category:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Activity Section */
.activities {
    background-color: var(--white);
}

.activity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.activity-item {
    background-color: #f8f9fa;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    overflow: hidden;
    text-align: center;
    padding: 40px 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.activity-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.activity-item i {
    font-size: 3.5em;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.activity-item h3 {
    margin-top: 15px;
    margin-bottom: 10px;
}

.btn-secondary {
    display: inline-block;
    background-color: var(--text-dark);
    color: var(--white);
    padding: 10px 25px;
    border-radius: 50px;
    text-decoration: none;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.9em;
    margin-top: 15px;
}

.btn-secondary:hover {
    background-color: #000;
}

/* Why Choose Us Section */
.why-choose-us {
    background-color: var(--bg-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
    text-align: center;
}

.feature-item {
    background-color: var(--white);
    padding: 40px 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.feature-item i {
    font-size: 3em;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-item h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.feature-item p {
    color: var(--text-light);
    font-size: 0.95em;
    line-height: 1.7;
}

/* Contact Page Styling */
.contact-info-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    font-size: 1.1em;
}

.contact-info-item i {
    font-size: 1.5em;
    color: var(--primary-color);
    width: 40px;
}

.contact-form .form-control {
    padding: 15px;
    border-radius: 5px;
    border: 1px solid var(--border-color);
    margin-bottom: 1rem;
    width: 100%;
}

.contact-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(200, 150, 62, 0.25);
}

/* Footer Section */
.footer {
    background-color: var(--bg-dark);
    color: var(--white);
    padding-top: 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col {
    color: #bbb;
}

.footer-col h3 {
    text-align: left;
    color: var(--primary-color);
    font-size: 1.4em;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 5px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
    transform: none;
}

.footer-col p {
    line-height: 1.8;
    color: #bbb;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: var(--primary-color);
}

.social-media {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

.social-media a {
    color: var(--white);
    font-size: 1.2em;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-media a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding: 20px 0;
    color: #aaa;
    font-size: 0.9em;
    margin-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .header .navigation {
        display: none;
    }
    .menu-toggle {
        display: block;
    }
}
/* New Styling for Tour Detail Page v2 */
.tour-gallery .gallery-item {
    display: block;
    overflow: hidden;
    border-radius: .5rem;
}
.tour-gallery .gallery-item img {
    transition: transform .3s ease;
}
.tour-gallery .gallery-item:hover img {
    transform: scale(1.1);
}

.info-sidebar h4 {
    font-family: var(--heading-font);
    text-align: center;
    margin-bottom: 1.5rem;
}
.card-img-top {
    height: 200px;
    object-fit: cover;
}
.tour-package-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.tour-package-card {
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.tour-package-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.tour-package-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.tour-package-card .card-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.tour-package-card .card-title {
    font-size: 1.4em;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.tour-package-card .card-text {
    font-size: 0.95em;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 15px;
}

.tour-package-card .price {
    font-size: 1.1em;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 10px;
}
/* style.css */

/* Add a smooth transition to the card */
.card {
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

/* Elevate the card on hover */
.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}
/* style.css */

.package-card {
  background-color: #ffffff;
  border-radius: 15px;
  overflow: hidden; /* لإخفاء أي زوائد من الصورة */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%; /* لجعل كل الكروت بنفس الارتفاع */
}

.package-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.package-card-img {
  width: 100%;
  height: 220px;
  object-fit: cover; /* لضمان ملء الصورة للمساحة المخصصة لها */
}

.package-card-body {
  padding: 20px;
  flex-grow: 1; /* للسماح لهذا الجزء بالتمدد وملء المساحة */
  display: flex;
  flex-direction: column;
}

.package-card-title {
  font-weight: 700;
  color: #212529;
  font-family: 'Montserrat', sans-serif;
}

.package-card-price {
  font-size: 1.5rem;
  font-weight: bold;
  color: #C8963E; /* اللون الذهبي */
  margin: 10px 0;
}

.package-card-benefits {
  padding-left: 20px;
  margin-bottom: 20px;
  flex-grow: 1; /* يدفع الزر للأسفل */
  color: #555;
}
/* =================================
   Accordion Custom Styles
   ================================= */

/* 1. تعديل الشكل العام لكل قسم */
.accordion-item {
    border: 1px solid #e9ecef;
    border-radius: 8px !important; /* لإلغاء الحواف الحادة */
    margin-bottom: 1rem;
    overflow: hidden; /* ضروري لعمل الـ border-radius */
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.accordion-item:first-of-type, .accordion-item:last-of-type {
    border-radius: 8px !important;
}

/* 2. تعديل شكل الزر (عنوان اليوم) */
.accordion-button {
    background-color: #ffffff;
    color: #212529; /* لون النص الأساسي */
    font-weight: 700;
}

/* 3. إزالة الظل الأزرق الافتراضي عند الضغط */
.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(0,0,0,.125);
}

/* 4. تغيير لون الزر والأيقونة عندما يكون القسم مفتوحًا */
.accordion-button:not(.collapsed) {
    background-color: #C8963E; /* اللون الذهبي */
    color: #ffffff; /* لون النص أبيض */
    box-shadow: inset 0 -1px 0 rgba(0,0,0,.125);
}

/* 5. تعديل أيقونة السهم إلى علامة + و x */
.accordion-button::after {
    font-family: 'Font Awesome 6 Free'; /* اسم خط أيقونات Font Awesome */
    content: '\f067'; /* كود أيقونة '+' */
    font-weight: 900;
    background-image: none; /* إخفاء السهم الافتراضي */
    transition: transform 0.3s ease-in-out; /* إضافة حركة ناعمة */
}

.accordion-button:not(.collapsed)::after {
    content: '\f00d'; /* كود أيقونة 'x' */
    transform: rotate(90deg); /* تدوير الأيقونة لمزيد من الحركة */
}

/* 6. تنسيق المحتوى الداخلي */
.accordion-body {
    background-color: #fdfdfd; /* لون خلفية فاتح جدًا */
}
/* Sidebar Styles */
.sidebar-container {
    background-color: #f8f9fa; /* لون خلفية رمادي فاتح */
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.widget-title {
    margin-bottom: 1.5rem;
    font-weight: bold;
    position: relative;
    padding-bottom: 10px;
}

/* خط زخرفي تحت عناوين الويدجت */
.widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: #C8963E; /* اللون الذهبي */
}

/* Category Widget with Images Styles */
.category-widget-list {
    display: grid;
    grid-template-columns: 1fr 1fr; /* عمودان */
    gap: 10px;
}

.category-widget-item {
    position: relative;
    display: block;
    border-radius: 8px;
    overflow: hidden;
    height: 90px;
}

.category-widget-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* تعتيم الصورة وإظهار الاسم عند مرور الماوس */
.category-widget-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0));
    opacity: 0.8;
}

.category-widget-item span {
    position: absolute;
    bottom: 10px;
    left: 10px;
    color: #fff;
    font-weight: bold;
    z-index: 2;
    transition: bottom 0.3s ease;
}

.category-widget-item:hover img {
    transform: scale(1.1);
}

.category-widget-item:hover span {
    bottom: 15px;
    color: #C8963E; /* اللون الذهبي */
}
/* =================================
   ## FINAL RESPONSIVE STYLES ##
   ================================= */
/* شاشات الموبايل الكبيرة - حتى 768px */
@media (max-width: 768px) {
    /* --- تعديل الهيدر والقائمة --- */
    .header .container {
        flex-wrap: wrap; 
        justify-content: space-between;
    }

    .menu-toggle {
        display: block; /* إظهار زر الهامبرجر */
        background: none;
        border: none;
        color: var(--primary-color);
        font-size: 24px;
        cursor: pointer;
    }

    /* إخفاء القائمة في الوضع الطبيعي */
    .header .navigation {
        display: none;
        width: 80%;
        order: 3; /* اجعلها تظهر في السطر التالي تحت اللوجو والأزرار */
        margin-top: 15px;
        background-color: rgba(172, 77, 0, 0.699); /* لون خلفية شبه شفافة */
        border-radius: 12px;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.647);
        padding: 20px 0;
        animation: fadeIn 0.3s ease-in-out;
    }
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
    /* القاعدة الأهم: إظهار القائمة عند تفعيلها بالجافاسكريبت */
    .header .navigation.is-active {
        display: block;
    }

    .header .navigation ul {
        flex-direction: column;
        align-items: center;
        padding: 0;
        margin: 0;
    }

   .header .navigation ul li a {
    display: block;
    padding: 14px 0;
    text-align: center;
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 1.3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.6);
    transition: background-color 0.2s ease;
}
    
    .header .navigation ul li:last-child a {
        border-bottom: none; /* إزالة الخط من آخر عنصر */
    }


    /* --- باقي التعديلات للشاشات الصغيرة --- */
    h1, .display-4, .page-banner h1 {
        font-size: 2.5rem; 
    }

    .hero-content h1 {
        font-size: 2.2rem;
        line-height: 1.3;
    }

    section.py-5 > .d-flex.justify-content-between {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    section.py-5 .section-title {
        margin-bottom: 0;
    }
}
/* =================================
   ## Blog Page Styles ##
   ================================= */

.card {
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.card-title {
    color: var(--text-dark);
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

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

.card-text {
    flex-grow: 1; /* يدفع الزر للأسفل */
}

/* تنسيق زر "Read More" */
.card-body .btn-primary {
    padding: 8px 20px;
    font-size: 0.9em;
    align-self: flex-start; /* يجعله لا يمتد بعرض البطاقة */
}

.card-footer {
    background-color: #f8f9fa;
    border-top: 1px solid var(--border-color);
    font-size: 0.85em;
}

/* تنسيق صفحة المقال المفرد */
.blog-content {
    line-height: 1.8;
    font-size: 1.1em;
}

.blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}
/* Horizontal Blog Card Styles */
.blog-card-horizontal {
    display: flex;
    transition: all 0.3s ease;
    border: none;
}

.blog-card-horizontal:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
    transform: translateY(-5px);
}

.blog-card-horizontal .img-fluid {
    height: 100%;
    object-fit: cover;
}

.blog-card-horizontal .card-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.content-after-banner {
    margin-top: 5rem; /* يمكنك تغيير هذا الرقم لزيادة أو تقليل المسافة */
}
/* Change text color on the blog banner ONLY */
.blog-banner h1,
.blog-banner p,
.blog-banner .lead {
    color: #ffffff !important;
}
/* Sidebar Small Post-Card Styles */
.sidebar-post-item {
    display: flex;
    align-items: center;
    text-decoration: none;
    margin-bottom: 15px;
    background-color: #fff;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s ease-in-out;
}

.sidebar-post-item:hover {
    background-color: #f1f1f1;
    transform: translateX(5px);
}

.sidebar-post-item img {
    width: 70px;
    height: 55px;
    object-fit: cover;
    border-radius: 5px;
    margin-right: 15px;
}

.sidebar-post-item h6 {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-dark);
    font-weight: 600;
}
/* Horizontal Scrolling Container Styles */
.horizontal-scroll-container {
    overflow-x: auto; /* يسمح بالتمرير الأفقي */
    padding-bottom: 15px; /* مساحة لإخفاء شريط التمرير */
    /* إخفاء شريط التمرير (scrollbar) */
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}
.horizontal-scroll-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari, and Opera */
}

.horizontal-scroll-wrapper {
    display: flex; /* يجعل العناصر بجانب بعضها */
    gap: 20px; /* مسافة بين البطاقات */
}

.scroll-item {
    flex: 0 0 280px; /* يحدد عرضًا ثابتًا لكل بطاقة */
    width: 280px;
}
/* Sticky Sidebar Styles */
.sidebar-container {
    position: sticky;
    top: 100px; /* المسافة من أعلى الشاشة، يمكنك تعديلها */
}
.page-banner-title {
    color: white !important;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
    font-size: 3.5rem;
}

/* لمنع ظهور الخط الزخرفي تحت العنوان في البانر */
.page-banner-title::after {
    display: none;
}
/* ============================================= */
/* == Category Detail Page Styles == */
/* ============================================= */

.category-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-section {
    margin-bottom: 50px;
}

.section-title {
    margin-bottom: 30px;
    font-size: 2rem;
    color: var(--dark-text);
}

/* Main Two-Column Grid Layout */
.category-layout-grid {
    display: grid;
    grid-template-columns: 1fr; /* Default to single column for mobile */
    gap: 40px;
}

/* Desktop Layout */
@media (min-width: 992px) {
    .category-layout-grid {
        grid-template-columns: 2fr 1fr; /* 2/3 for content, 1/3 for gallery */
    }
}

/* Hotel Cards */
.hotel-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.hotel-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.3s ease;
}

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

.hotel-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.hotel-card-content {
    padding: 20px;
}

/* Activity List */
.activity-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}
.activity-item {
    display: flex;
    align-items: center;
    gap: 10px;
}
.activity-item i {
    color: var(--primary-color);
}

/* Custom Booking Form */
.custom-booking-form {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}


/* Sidebar Gallery (Desktop) */
.sidebar-gallery-column {
    display: none; /* Hidden on mobile */
}

@media (min-width: 992px) {
    .sidebar-gallery-column {
        display: block;
    }
}

.gallery-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.sidebar-gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.gallery-image img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 5px;
}


/* Mobile Gallery Slider */
.mobile-gallery-slider {
    display: block; /* Visible on mobile */
    overflow-x: auto;
    white-space: nowrap;
    margin-bottom: 30px;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    scrollbar-width: none; /* Hide scrollbar on Firefox */
}

.mobile-gallery-slider::-webkit-scrollbar {
    display: none; /* Hide scrollbar on Chrome/Safari */
}

.slider-image {
    display: inline-block;
    width: 80%;
    margin-right: 15px;
}
.slider-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

@media (min-width: 992px) {
    .mobile-gallery-slider {
        display: none; /* Hide on desktop */
    }
}
/* style.css */

/* Banner Styling */
.page-banner {
    padding: 80px 0;
    background-size: cover;
    background-position: center;
    position: relative;
    color: #fff;
    text-align: center;
}

.page-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Overlay */
}

.page-banner h1 {
    position: relative;
    z-index: 1;
    font-size: 2.5rem;
}

/* Prose Content from CKEditor */
.prose-content {
    line-height: 1.8;
}
.prose-content h3 {
    font-size: 1.8rem;
    margin-top: 20px;
    margin-bottom: 15px;
}
.prose-content p {
    margin-bottom: 15px;
}
/* --- تعديل حجم العمود الجانبي --- */
@media (min-width: 992px) {
    .category-layout-grid {
        /* المحتوى الرئيسي يأخذ 4 أجزاء، والجانبي جزء واحد (20%) */
        grid-template-columns: 4fr 1fr;
    }
}

/* --- تنسيق عنوان الأقسام الجانبية --- */
.sidebar-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}

/* --- تنسيق قائمة الرحلات الجانبية --- */
.sidebar-tours-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sidebar-tour-item {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--dark-text);
    transition: background-color 0.2s ease;
    padding: 5px;
    border-radius: 5px;
}

.sidebar-tour-item:hover {
    background-color: #f5f5f5;
}

.sidebar-tour-item img {
    width: 60px;
    height: 50px;
    object-fit: cover;
    border-radius: 5px;
}

.sidebar-tour-item span {
    font-size: 0.9rem;
    font-weight: bold;
}
/* Accordion Styling for Activities */
.activity-accordion {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.accordion-item {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    background-color: #fff;
}

.accordion-header {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
    padding: 20px;
    background-color: transparent;
    border: none;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.accordion-header:hover {
    background-color: #f9f9f9;
}

.accordion-header i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.accordion-header h4 {
    flex-grow: 1;
    margin: 0;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--dark-text);
}

.accordion-icon {
    font-size: 2rem;
    font-weight: 300;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

/* This is the crucial part that hides the description */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease;
    padding: 0 20px;
    color: #6c757d;
    line-height: 1.7;
}

/* This part shows the description when 'active' class is added by JS */
.accordion-item.active .accordion-content {
    max-height: 200px; /* Adjust if description is longer */
    padding: 0 20px 20px 20px;
    border-top: 1px solid #eee;
}

.accordion-item.active .accordion-icon {
    transform: rotate(45deg); /* Turns '+' into 'x' */
}
/* Hotel Modal Styling */
.modal-body .hotel-stars {
    color: #ffc107; /* Gold color for stars */
    font-size: 1.2rem;
    margin-top: 15px;
    margin-bottom: 15px;
}

.modal-body .hotel-amenities ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 15px;
}

.modal-body .hotel-amenities li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-body .carousel-inner {
    border-radius: 8px;
}
/* Mobile Slider Wrapper and Arrows */
.mobile-slider-wrapper {
    position: relative;
    margin-top: 30px; /* <-- هذا السطر يضيف المسافة المطلوبة تحت البانر */
    margin-bottom: 30px;
}

.mobile-gallery-slider {
    scroll-behavior: smooth; /* يجعل التنقل بالأسهم سلسًا */
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 24px;
    line-height: 40px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.slider-arrow:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.prev-arrow {
    left: 10px;
}

.next-arrow {
    right: 10px;
}
/* Horizontal Slider for Hotels */
.horizontal-slider-wrapper {
    position: relative;
}

.hotel-card-grid.horizontal-slider {
    display: grid;
    grid-auto-flow: column; /* This is the key property */
    grid-auto-columns: 80%; /* Each card takes 80% of the container width */
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Hide scrollbar */
    padding-bottom: 15px; /* Space for scrollbar if visible */
}

.hotel-card-grid.horizontal-slider::-webkit-scrollbar {
    display: none; /* Hide scrollbar */
}

/* Adjust card width on larger screens */
@media (min-width: 768px) {
    .hotel-card-grid.horizontal-slider {
        grid-auto-columns: 40%;
    }
}

@media (min-width: 992px) {
    .hotel-card-grid.horizontal-slider {
        grid-auto-columns: 32%;
    }
}
/* Hide mobile slider arrows on desktop */
@media (min-width: 992px) {
    .mobile-slider-wrapper .slider-arrow {
        display: none;
    }
}
.legal-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)), url('/static/images/legal-banner.jpg') center/cover no-repeat;
    color: white;
    text-align: center;
    padding: 100px 20px;
    margin-bottom: 40px;
}

.legal-hero h1 {
    font-size: 48px;
    font-weight: bold;
}

.legal-hero p {
    font-size: 18px;
    margin-top: 10px;
}

.legal-content {
    background: white;
    padding: 40px;
    max-width: 900px;
    margin: auto;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.legal-content h2 {
    font-size: 24px;
    font-weight: 700;
    margin-top: 40px;
    border-left: 5px solid #f4a300;
    padding-left: 15px;
}

.legal-content p,
.legal-content li {
    color: #444;
    font-size: 16px;
    line-height: 1.8;
}

.legal-content ul {
    margin-left: 20px;
    padding-left: 20px;
    list-style-type: disc;
}
.legal-content {
    background-color: #fff;
}

.legal-section {
    background: #fefefe;
    border-left: 4px solid #ffae00;
    padding: 25px 25px 15px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    animation: fadeInUp 0.6s ease-in-out;
}

.legal-section h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
    border-bottom: 2px solid #d6a100;
    display: flex;
    align-items: center;
    gap: 10px;
}

.icon {
    font-size: 1.2em;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.email-box {
    display: flex;
    align-items: center;
    background: #f9f9f9;
    padding: 10px 15px;
    border-radius: 8px;
    border-left: 4px solid #ffae00;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    font-size: 1rem;
    margin-top: 10px;
}

.email-box i {
    color: #ffae00;
    margin-right: 10px;
    font-size: 1.2rem;
}

.email-box a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

.email-box a:hover {
    text-decoration: underline;
}
.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0 5px 0;
    margin: 30px 0 10px 0;
    border-left: 4px solid #ffae00;
    padding-left: 10px;
    position: relative;
}

.section-title i {
    font-size: 1.2rem;
    color: #ffae00;
}

.section-title h4 {
    margin: 0;
    font-weight: bold;
    position: relative;
}

.section-title h4::after {
    content: "";
    display: block;
    width: 80px;
    height: 4px;
    background-color: #d6a226;
    margin-top: 4px;
    border-radius: 2px;
}
/* Category Detail — shrink & center ONLY this booking form */
#page-booking-form {
  max-width: 680px;      /* صغّر العرض */
  margin: 0 auto;        /* وسّط السكشن */
}

/* ترتيب الحقول: عمودين على الديسكتوب، عمود واحد على الموبايل */
@media (min-width: 992px) {
  #page-booking-form .custom-booking-form {
    grid-template-columns: 1fr 1fr;
    column-gap: 16px;
  }
  /* الحقول اللي لازم تاخد الصف كله */
  #page-booking-form .custom-booking-form .full-width {
    grid-column: 1 / -1;
  }
}

/* تحسينات بسيطة للشكل داخل هذا السكشن فقط */
#page-booking-form .custom-booking-form .form-group {
  margin: 0;
}
#page-booking-form .btn-primary {
  width: 100%;
}
/* تصغير ارتفاع مربع التعليق الأخير في فورمة الكاتيجوري ديتيل */
#page-booking-form textarea {
    min-height: 20px;  /* الارتفاع الأدنى */
    max-height: 60px; /* أقصى ارتفاع لو المستخدم كبره */
}
