
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}


.search-and-explore {
  /*flex-grow: 1;  Allows this section to take up available space */
  display: flex;
  justify-content: center;
}

.search-container {
  display: flex;
  border: 1px solid #ccc;
  border-radius: 20px;
  overflow: hidden;
  max-width: 500px;
  height: 40px;
}

.search-input {
  border: none;
  padding: 0.5em 1em;
  flex-grow: 1;
  outline: none;
}
.explore-dropdown {
  position: relative;
}
.explore-button {
  border-left: 1px solid #ccc;
  padding: 0.5em 1em;
  background-color: #f8f8f8;
  color: #003366;
  font-weight: bold;
}
.explore-button:hover {
  background-color: #eee;
}
.search-input {
  padding: 0.5em 1em;
  border: 1px solid #ccc;
  border-radius: 20px;
  width: 100%;
  max-width: 400px;
  font-size: 1rem;
}

.search-button {
  border: none;
  background-color: transparent;
  cursor: pointer;
  padding: 0.5em;
  font-size: 1.2rem;
  color: #003366;
  margin-left: -40px; /* Moves the icon inside the input field */
  z-index: 1;
}

/* Adjustments for RTL layout */
body[dir="rtl"] .search-button {
  margin-right: -10px;
  /* margin-left: 0; */
}

/* Media query for smaller screens */
@media (max-width: 768px) {
  .search-section {
    order: 3; /* Pushes the search bar to the end on mobile */
    width: 100%;
    margin-top: 10px;
  }
}
body {
  margin: 0;
  padding: 0;
  height: 100%;
}
body[dir="ltr"] {
  font-family: 'Poppins', Arial, sans-serif;
}

body[dir="rtl"] {
  font-family: 'Monadi', sans-serif;
}

.navbar {
  background-color: #fff;
  padding: .2em;
  display: flex;
  gap: 1em;
  justify-content: space-between;
  padding-right: 60px;
  padding-left: 60px;
}
.navbar-section {
  display: flex;
  align-items: center;
  gap: 1em;
}
.nav-links {
  flex: 1;
  justify-content: center;
}
.logo-container {
  flex: 0;
}
.lang-switch {
  flex: 0;
}

.navbar button {
   background-color: #fff; 
  color: #003366; 
  border: none;
  padding: 0.5em 1em;
  cursor: pointer;
}

.navbar button:hover {
  color: #ffbf00;
}
body[dir="rtl"] .navbar,
body[dir="rtl"] .navbar button,
body[dir="rtl"] .navbar span {
  font-family: 'Monadi', 'Tahoma', sans-serif;
  font-size: medium;

}

.page {
  display: none;
  padding: 2em;
}

.page.active {
  display: block;
}


.logo {
  margin-right: 1em;
  width: 130px;
  height: fit-content;
}
body[dir="rtl"] .logo {
  margin-right: 0;
  margin-left: 1em;
}

@font-face {
  font-family: 'Monadi';
  src: 
       url('../fonts/Monadi.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

/* main section hero section  */
/* All sections (padding + border radius) */
.page {
  padding: 20px;
  padding-top: 0px;
  border-radius: 15px;
  box-sizing: border-box;
}
.hero-section {
  background-image: url('../images/bg2.png');
  background-size: cover;
  background-position: center;
  padding: 0px;
  border-radius: 15px;
  box-sizing: border-box;
}
.hero-section h2 {
      /* width: 55%; */
      font-size: 2.25em;
      line-height: 1.4;
}
.hero-section h1 {
     line-height: .0;
     font-size: 1.3em;
}


.hero-flex {
  display: flex;
  align-items: stretch; /* match heights of image and content */
  justify-content: space-between;
  max-height: 500px;
  /* gap: 2em; */
}

/* Arabic layout */
body[dir="rtl"] .hero-flex {
  flex-direction: row-reverse;
}

.hero-button {
  padding: 0.55em 1.2em;
  border: none;
  font-weight: bold;
  cursor: pointer;
  border-radius: 0.5em;
  font-size: 1.4rem;
   font-family: 'Monadi', 'Tahoma', sans-serif;
       color: #fff7ee;
    background: #d0b025;
    margin: 5px;
}

.hero-button:hover {
  background-color: #e6aa00;
}

.hero-image {
  flex: 4;
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.hero-image img {
     width: 100%;
    height: auto;
    border-radius: 0px;
    max-height: 600px;
    /* max-width: 700px; */
    align-items: end;
}
.hero-content-container{
 flex: 3;
}
body[dir="rtl"] .hero-content-container{
    padding-top: 8.5%;
    padding-right: 12%;
    padding-bottom: 20px;
}
body[dir="ltr"] .hero-content-container{
  padding-top: 7%;
  padding-left: 12%;
  padding-bottom: 20px;
  

}
.hero-content {
  /* flex: 5; */
  /* background-color: rgba(236, 246, 205, 0.7); */
   padding: 1.2em; 
  border-radius: 15px;
  color: #04284b;
  text-align: center;
  display: block;
  flex-direction: column;
  justify-content: center;
  text-align: right;
}


.just-mobile{
  display: none;
}
.just-computer{
  display: block;
}

/* mobile and tab customization */
/* Add this to the end of your styles.css file */

/* Hamburger menu icon, initially hidden */
.menu-icon {
  display: none;
  cursor: pointer;
  /* background-color: #003366; */
  color: #fff;
  font-size: 1.5em;
}

/* Hide the regular navbar buttons on small screens */
@media (max-width: 768px) {
 /* .navbar button:not(#lang-toggle) {
    display: none;
  }
  .navbar button#lang-toggle {
    margin-top: 10px;
  }*/
  
   .just-mobile{
    display: block;
   }
   .just-computer{
      display: none;
    }
   .hero-image{
    display: none;
   }
  .navbar {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    position: relative;
  }

  .menu-icon {
    display: block;
  }

  .menu-icon button {
    padding: 0px;
  }
  .navbar-links {
    display: none;
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 60px;
    left: 0;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 100;
  }

  .navbar.active .navbar-links {
    display: flex;
  }

  .navbar-links button {
    display: block;
    width: 100%;
    text-align: center;
    padding: .2em;
    border-bottom: 1px solid #eee;
  }
  .navbar {
 
  padding-right: 60px;
  padding-left: 20px;
}
}


/* home sections */
.popular-destinations {
  padding: 30px;
  background-color: #fffc; /* Light gray background */
}

/* Header styling */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.header-text h2 {
  font-size: 2rem;
  font-weight: bold;
  margin: 0;
}

.header-text p {
  font-size: 1rem;
  color: #555;
  margin: 5px 0 0;
}
.navigation-arrows {
    display: flex;          /* This puts the buttons side-by-side */
    flex-direction: row;    /* Ensures they go left-to-right (or right-to-left) */
    gap: 10px;

}

.navigation-arrows .nav-arrow {
    /* 1. Reset and Shape */
    width: 40px; 
    height: 40px;
    border-radius: 50%;         /* Forces the circle shape */
    padding: 0;                 /* Clear padding to prevent Safari ovaling */
    
    /* 2. Centering (Works for both Safari and Chrome) */
    display: inline-flex;       /* Use flex to keep them in a row but centered internally */
    align-items: center;        /* Vertical center */
    justify-content: center;    /* Horizontal center */
    
    /* 3. Text and Appearance */
    font-size: 1.2rem;
    line-height: 1;             /* Fixes Safari text baseline shift */
    background-color: #fff;
    border: 1px solid #ddd;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.navigation-arrows .right-arrow {
  background-color: #000;
  color: #fff;
  border: none;
}


/* home popular sections */

/* Container for the cards */
.destination-cards-container {
  display: flex;
  gap: 20px; /* Space between cards */
  overflow-x: auto; /* Enable horizontal scrolling if needed */
  padding-bottom: 10px; /* Add some padding for scrollbar */
  -ms-overflow-style: none;  /* Hides the scrollbar on Internet Explorer and Edge */
  scrollbar-width: none;  /* Hides the scrollbar on Firefox */
}

/* Individual card styling */
.destination-card {
  min-width: 300px; /* Set a minimum width for the cards */
  background-color: #fff;
  border-radius: 20px;
  /* box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); */
  overflow: hidden; /* Ensures the image respects the border-radius */
  flex-shrink: 0; /* Prevents cards from shrinking */
}

.card-image-wrapper {
  position: relative;
  width: 100%;
  height: 200px; /* Adjust the height as needed */
  overflow: hidden;
  border-radius: 20px 20px 20px 20px;
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover; /* This makes the image fill the container without distortion */
}

.card-content {
  padding: 15px;
  position: relative;
      width: 270px;
}

.card-content h3 {
  font-size: 1.2rem;
  margin: 0 0 5px 0;
}

.card-content .location {
  font-size: 0.9rem;
  color: #777;
  margin: 0;
}

.card-content .rating {
  position: absolute;
  top: 15px;
  right: 15px;
  display: flex;
  align-items: center;
  background-color: #e0eefd; /* Light blue background for rating */
  border-radius: 20px;
  padding: 5px 10px;
  font-weight: bold;
  color: #007bff;
}
body[dir="rtl"] .card-content .rating {
   left: 15px;
   right: auto;
}

.card-content .rating .star-icon {
  margin-right: 5px;
  color: #007bff; /* Star color */
}

.card-content .pin-icon {
  color: #777; /* Pin icon color */
}
.destination-cards-wrapper {
  overflow: hidden; /* Hide the scrollbar but allow scrolling */
  width: 100%;
}
/* For WebKit browsers like Chrome and Safari */
.destination-cards-container::-webkit-scrollbar {
    display: none;
}



/* home categories sections */

/* Container for the cards */
.category-cards-container {
  display: flex;
  gap: 20px; /* Space between cards */
  overflow-x: auto; /* Enable horizontal scrolling if needed */
  padding-bottom: 10px; /* Add some padding for scrollbar */
  -ms-overflow-style: none;  /* Hides the scrollbar on Internet Explorer and Edge */
  scrollbar-width: none;  /* Hides the scrollbar on Firefox */
}

/* Individual card styling */
.category-card {
  /* min-width: 300px; Set a minimum width for the cards */
  background-color: #fff;
  border-radius: 20px;
  /* box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); */
  overflow: hidden; /* Ensures the image respects the border-radius */
  flex-shrink: 0; /* Prevents cards from shrinking */
}

.category-card .card-image-wrapper {
  position: relative;
  width: 100%;
  height: 150px; /* Adjust the height as needed */
  overflow: hidden;
  border-radius: 20px 20px 0 0;
}
    .overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgb(208 176 37 / 76%);/* Semi-transparent black */
            color: white;
            display: flex;
            justify-content: center;
            align-items: center;
            opacity: 1;
            transition: opacity 0.3s ease;
            cursor: pointer;
        }

        .card:hover .overlay {
            opacity: 1;
        }

        .overlay-text {
            font-size: 2rem;
          font-family: 'Monadi';
        }
        .container-image{
           position: relative;
            overflow: hidden;
        }
        .location{
           display: flex;
            align-items: center; /* This is the key property for vertical alignment */
            gap: 5px; /* Add some space between the icon and the text */
        }
         .overlay-icon {
            /* The size has been changed from 50px to 70px */
            width: 20px;
            height: 20px;
            fill: #fdd776;
        }

.course-card-image-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
}
.course-card-content{
      background-color: #f0e2c312;
}



  /*
     * Styling for the footer container
     */
    .footer {
      background-color: #003366; /* Dark gray background */
      color: #ffffff; /* White text */
      padding: 2rem;
      border-top-left-radius: 0.5rem; /* Rounded top-left corner */
      border-top-right-radius: 0.5rem; /* Rounded top-right corner */
      /* width: 100%; */
      margin-top: auto;
    }

    /*
     * The inner container to limit width and center content
     */
    .footer-container {
      /* max-width: 1200px; */
      margin: 0 auto;
      display: flex;
      flex-direction: row;
      align-items: center;
      justify-content: space-between;
      gap: 1rem; /* Space between items */
    }

    /*
     * Styling for the navigation links
     */
    .footer-nav a {
      color: #ffffff;
      text-decoration: none;
      transition: color 0.2s ease-in-out;
      display: inline;
    }
    
    .footer-nav a:hover {
      color: #d1d5db; /* Light gray on hover */
    }
    
    /*
     * Media query for tablet and desktop screens (768px and up)
     * This makes the layout horizontal for larger screens.
     */
/* General mobile layout adjustments */
@media (max-width: 768px) {
  /* Hide the main navbar links and show the hamburger menu */
  .navbar-links {
    display: none;
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 60px;
    left: 0;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 100;
  }
  /* .navigation-arrows button{
  width: 20px;
    height: 20px;
} */
.navigation-arrows .nav-arrow {
 
  width: 35px;
  height: 35px;
align-items: center;  
}
.header-text h2 {
  font-size: 1.3em;
}
  .navbar.active .navbar-links {
    display: flex;
  }
  
  .navbar-links button {
    width: 100%;
    text-align: center;
    padding: 0.8em; /* Added more padding for better touch targets */
    border-bottom: 1px solid #eee;
  }
  
  /* Show the hamburger menu icon */
  .menu-icon {
    display: block;
    margin-left: auto; /* Pushes the menu icon to the right */
    padding-top: 20px;
  }

  /* Adjust the main navbar to a cleaner mobile layout */
  .navbar {
    flex-wrap: wrap; /* Allows items to wrap to the next line */
    padding: 10px 20px; /* Reduced padding for smaller screens */
    gap: 10px; /* Reduced gap */
    position: relative;
    justify-content: space-between;
  }

  /* Reorder the sections for mobile view */
  .navbar-section {
    width: auto;
    /* flex: 1 1 auto; */
    justify-content: center; /* Center items for better aesthetics */
    order: 1; /* Set the default order for mobile */
  }

  /* Specific mobile overrides for search and logo */
  .navbar-section.search-and-explore {
    order: 2; /* Place search section below the main links and logo */
    width: 100%; /* Make the search bar full-width */
    justify-content: center;
  }

  .navbar-section.main-links {
    order: 1; /* Keep logo and links at the top */
   text-align: left;
    justify-content: space-between;
  }

  .logo {
    width: 140px; /* Smaller logo for mobile */
    margin: 0;
  }
  
  /* Hero section adjustments for mobile */
  .hero-flex {
    flex-direction: column; /* Stacks image and content vertically */
    align-items: center;
    text-align: center;
  }

  .hero-image {
    display: none; /* Hiding the hero image on mobile to save space */
  }

  .hero-content-container {
    padding: 20px;
    text-align: center;
  }

  .hero-content h1, .hero-content h2 {
    font-size: 1.5em; /* Smaller font sizes for mobile */
    line-height: 1.2;
    margin-bottom: 10px;
  }

  /* Carousel card fixes for horizontal scrolling */
 /* .destination-cards-wrapper,
  .category-cards-container {
    padding: 0 10px; 
  }  */
  .destination-card,
  .category-card {
   /* min-width: 250px;  Ensure cards are not too wide or too small */
    width: 200px;
  }
  
  /* Footer mobile layout */
  .footer-container {
    flex-direction: column;
    text-align: center;
  }

  .footer-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
}
 a {
  text-decoration: none;   /* removes underline */
  color: inherit;          /* makes text inherit the normal color */
  display: block;          /* makes the whole card clickable */
}
/* map page */
#back-to-categories-btn {
  padding: 0.55em 1.2em;
  border: none;
  font-weight: bold;
  cursor: pointer;
  border-radius: 0.5em;
  font-size: 1.4rem;
   font-family: 'Monadi', 'Tahoma', sans-serif;
       /* color: #fff7ee; */
    /* background: #d0b025; */
    margin: 5px;
    display: block;
}
.filter-bar-container {
 display: flex;
 justify-content: right;
 border-radius: 10px;
 margin-bottom: 20px;
}
.map-layout {
  display: flex;
  height: 700px;
  gap: 10px;
}

#map {
  flex: 3;
  border-radius: 15px;
}


/* Mobile → bottom sheet */
@media (max-width: 768px) {
  .map-layout {
    flex-direction: column;
  }


  
}.category-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 320px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
}



.category-item:last-child {
  border-bottom: none;
}

/* Button for categories with sub */
.category-btn {
  width: 100%;
  padding: 12px 16px;
  background: none;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
  cursor: pointer;
}

.category-btn:hover {
  background: #f5f5f5;
}

/* Arrow */
.arrow {
  font-size: 12px;
  transition: transform 0.3s ease;
}

/* Sub menu */
.sub-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: none;
  background: #fafafa;
}

.sub-menu li a {
  display: block;
  padding: 10px 24px;
  font-size: 14px;
  color: #333;
  text-decoration: none;
}

.sub-menu li a:hover {
  background: #eaeaea;
}

/* Active state */
.category-item.open .sub-menu {
  display: block;
}

.category-item.open .arrow {
  transform: rotate(180deg);
}

/* Category without sub */
.category-link {
  display: block;
  padding: 12px 16px;
  text-decoration: none;
  color: #000;
  font-size: 15px;
}

.category-link:hover {
  background: #f5f5f5;
}
.filter-toggle{
  display: none;
}

/* --- Mobile: show categories as horizontal chips (bottom bar) --- */
@media (max-width: 768px) {
  /* Make the map panel stack and allow map height to adapt */
  .map-layout {
    flex-direction: column;
  }

  /* Make the map fill the screen but leave room for the floating button */
  #map {
    height: calc(100vh - 80px) !important;
    margin-bottom: 0;
  }

  /* Floating yellow filter button */
  .filter-toggle {
    position: fixed;
    right: 16px;
    bottom: 92px; /* sits above the bottom sheet */
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #d4af37;
    border: none;
    box-shadow: 0 6px 18px rgba(0,0,0,0.22);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 1100;
    cursor: pointer;
  }
  .filter-toggle svg { display:block; }

  /* Transform the category menu into a bottom chip bar (hidden by default) */
  .category-menu {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    display: flex;
    gap: 10px;
    padding: 10px;
    margin: 0;
    overflow-x: auto;
    border-radius: 12px;
    background: rgba(255,255,255,0.98);
    z-index: 1050;
    border: 1px solid #ddd;
    align-items: center;
    -webkit-overflow-scrolling: touch;
    transform: translateY(120%);
    opacity: 0;
    transition: transform 0.28s ease, opacity 0.2s ease;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    pointer-events: none;
  }

  .category-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  /* Full-height sheet layout when opened on mobile */
  .category-menu.sheet {
    width: 100%;
    height: 60%; /* increased to show more content */
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 16px 16px 0 0;
    padding: 0;
    display: block;
    background: #fff;
    overflow: auto; /* allow sheet to scroll if needed */
    -webkit-overflow-scrolling: touch; /* smooth scrolling on iOS */
  }

  .category-menu.sheet .filter-sheet {
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  .filter-sheet .sheet-header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 18px;
    border-bottom: 1px solid #eee;
    position: relative;
  }
  .filter-sheet .sheet-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
  }
  .filter-sheet .sheet-header .sheet-close {
    position: absolute;
    right: 14px;
    top: 10px;
    background: transparent;
    border: none;
    font-size: 22px;
    cursor: pointer;
  }

  .filter-sheet .sheet-body {
    padding: 12px 16px;
    overflow: auto;
    flex: 1 1 auto;
  }

  .filter-section {
    border-radius: 10px;
    padding: 8px 0;
    margin-bottom: 12px;
    background: #fff;
    border: 1px solid #f0f0f0;
  }
  .filter-section .section-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    cursor: pointer;
  }
  .filter-section .section-row .section-title { font-weight: 600; }
  .filter-section .section-row .section-icon {
    display: inline-flex;
  }

  /* Make course cards in the bottom sheet appear vertically stacked and full-width */
  .category-menu .courses-cards-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 8px 12px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    /* limit to available sheet height for proper internal scrolling */
    max-height: calc(100% - 120px);
  }
  .category-menu .courses-cards-container .destination-card {
    min-width: auto;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 12px;
  }
  .category-menu .courses-cards-container .card-image-wrapper {
    width: 110px;
    height: 80px;
    flex: 0 0 110px;
    border-radius: 10px;
  }
  .category-menu .courses-cards-container .card-content {
    padding: 10px;
    width: calc(100% - 110px);
  }
  .category-menu .courses-cards-container .card-content h3 {
    font-size: 1rem;
    margin-bottom: 6px;
  
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #e9f6ee; /* default greenish */
    color: #096;
    font-size: 18px;
  }

  .filter-section .section-content {
    display: none;
    padding: 6px 12px 12px 12px;
    background: #fff;
  }
  .filter-section.open .section-content { display: block; }

  .filter-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 6px;
    gap: 10px;
  }
  .filter-item label { display: inline-flex; gap: 10px; align-items: center; }
  .filter-item input[type="checkbox"] { width: 18px; height: 18px; }

  .filter-sheet .sheet-footer {
    padding: 12px 16px;
    border-top: 1px solid #eee;
    background: #fff;
  }
  .filter-sheet .sheet-footer .apply-row {
    display: flex;
    gap: 12px;
    align-items: center;
  }
  .filter-sheet .sheet-footer .apply-count { font-size: 14px; color: #666; }
  .filter-sheet .sheet-footer .apply-btn {
    margin-left: auto;
    background: #d4af37;
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
  }

  .category-item {
    border-bottom: none;
    flex: 0 0 auto;
  }

  /* Make the links look like pills */
  .category-link,
  .category-btn {
    /* display: inline-flex; */
    /* align-items: center; */
    gap: 8px;
    padding: 8px 14px;
    border-radius: 20px;
    white-space: nowrap;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    font-size: 14px;
    color: #000;
    text-decoration: none;
  }

  /* Hide dropdown arrows and submenus on small screens (keep UX simple) */
  .category-item.has-sub .arrow {
    display: none;
  }
  .sub-menu {
    display: none !important;
  }
}



.centers-cards-container,
.courses-cards-container,
.category-cards-container {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
}

.centers-cards-container::-webkit-scrollbar,
.courses-cards-container::-webkit-scrollbar,
.category-cards-container::-webkit-scrollbar {
  height: 8px;
}
.text-one-line {
  display: -webkit-box;
  -webkit-line-clamp: 1;      /* عدد الأسطر */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
}

/* contact us css */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 2fr; /* Matches the layout seen in your video transitions */
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.info-item {
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
    border-radius: 15px; /* Matches your course cards */
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Matches your button shadow */
}

.contact-form-card {
    padding: 30px;
    background: #fff;
    border-radius: 15px;
}

.form-input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Monadi', 'Tahoma', sans-serif; /* Using your site's font */
}

.explore-btn {
    background-color: #d4af37; /* Matches your yellow button color */
    color: white;
    border: none;
    padding: 10px 30px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    width: 100%;
}

@media (max-width: 768px) {
    .contact-wrapper {
        grid-template-columns: 1fr; /* Stack vertically on mobile like your course grid */
    }
}

/* Container Link */
.course-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    margin-bottom: 15px;
}

/* The Main Card */
.floating-course-card {
    display: flex;
    flex-direction: row-reverse; /* Aligns items for RTL (Image on Right) */
    align-items: center;
    background: #ffffff;
    border-radius: 16px;
    padding: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid rgba(0,0,0,0.05);
    direction: rtl; /* Ensures Arabic text flow */
}

.floating-course-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12);
}

/* Image Styling */
.card-image-section {
    width: 110px;
    height: 80px;
    flex-shrink: 0;
}

.card-image-section img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

/* Middle Content Styling */
.card-info-section {
    flex-grow: 1;
    padding: 0 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.course-title-text {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.academy-name {
    font-size: 0.85rem;
    color: #777;
}
/* Container for the whole list */
.sidebar-list-container {
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* The Main Card */
.floating-course-card {
    display: flex;
    flex-direction: row-reverse; /* Keeps image on right for RTL */
    align-items: center;
    justify-content: space-between; /* This justifies the content */
    background: #ffffff;
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    direction: rtl;
    width: 100%; /* Ensures it fills the sidebar width */
    box-sizing: border-box;
}

/* 1. Image Section (Right) */
.card-image-section {
    width: 80px;  /* Fixed size for consistency */
    height: 60px;
    flex-shrink: 0;
    margin-right: 0;
    margin-left: 10px; /* Space between image and text */
}

.card-image-section img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

/* 2. Middle Content (Justified to fill space) */
.card-info-section {
    flex-grow: 1; /* Takes up all remaining space */
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden; /* Prevents text from breaking layout */
}

.course-title-text {
    margin: 0;
    font-size: 0.95rem;
    font-weight: bold;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.academy-name {
    font-size: 0.8rem;
    color: #888;
    margin-top: 2px;
}

/* 3. Price/Left Section */
/* Ensure the link doesn't add unwanted padding */
.course-card-link {
    text-decoration: none;
    display: block;
    width: 100%;
    margin-bottom: 12px;
}

.floating-course-card {
    display: flex;
    flex-direction: row-reverse; /* RTL: Image Right, Price Left */
    align-items: center;
    justify-content: space-between; /* This justifies the items to the edges */
    background: #ffffff;
    border-radius: 12px;
    padding: 10px 15px; /* Horizontal padding for breathing room */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    direction: rtl;
    width: 100%; 
    box-sizing: border-box;
}

/* 1. Image (Far Right) */
.card-image-section {
    width: 70px;
    height: 70px;
    flex-shrink: 0; /* Prevents image from squishing */
    margin-left: 12px; /* Gap between image and text */
}

.card-image-section img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

/* 2. Middle Info (Expands to fill gap) */
.card-info-section {
    flex: 1; /* CRITICAL: This pushes the price to the far left */
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0; /* Prevents text overflow from breaking flex */
}

.course-title-text {
    margin: 0;
    font-size: 1rem;
    font-weight: bold;
    color: #333;
    line-height: 1.2;
}

.academy-name {
    font-size: 0.8rem;
    color: #888;
    margin-top: 4px;
}
.contact-us{
  display: flex !important;
  justify-content: center;   
  align-items: center;       
  min-height: 60vh;  
}

.contact-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px;
  max-width: 360px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  direction: rtl;
  text-align: center;
}

.contact-card h3 {
  margin-bottom: 20px;
  font-size: 20px;
  color: #0b3c6d;
  font-weight: bold;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  padding: 12px 16px;
  margin-bottom: 12px;
  border-radius: 12px;
  text-decoration: none;
  background: #f7f9fc;
  color: #333;
  transition: all 0.3s ease;
}

.contact-item:hover {
  background: #e9f0ff;
  transform: translateY(-2px);
}

.icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  font-weight: bold;
}

.icon.email {
  background: #d4af37; /* ذهبي */
}

.icon.facebook {
  background: #1877f2; /* أزرق فيسبوك */
  font-family: Arial, sans-serif;
}

.text {
  font-size: 15px;
}


/* 3. Price (Far Left) */
.card-price-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 70px;
    text-align: center;
    border-right: 1px solid #eee; /* Divider line */
    padding-right: 10px;
}

.price-amount {
    font-size: 1.1rem;
    font-weight: 800;
    color: #D4AF37;
    display: block;
}

.currency-label {
    font-size: 0.7rem;
    color: #999;
}


/*end contact us css */


/* الإعدادات العامة */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Tajawal', sans-serif;
}

body {
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.navbar {
    background: #fff;
    padding: 15px 0;
    position: sticky;
    top: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    text-decoration: none;
    color: #555;
    font-weight: 500;
}

.btn-join {
    background: #f1c40f;
    padding: 8px 15px;
    border-radius: 5px;
    color: #000 !important;
}

/* Hero Section */
.hero {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #2c3e50;
}

.cta-btn {
    display: inline-block;
    background: #2c3e50;
    color: #fff;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 30px;
    margin-top: 25px;
    transition: 0.3s;
}

.cta-btn:hover {
    background: #f1c40f;
    color: #000;
}

/* Stats */
.stats {
    display: flex;
    justify-content: space-around;
    padding: 40px 0;
    background: #fff;
    text-align: center;
}

.stat-card h2 {
    color: #f1c40f;
    font-size: 2.5rem;
}

/* Features */
.features {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.feature-card {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.feature-card .icon {
    font-size: 40px;
    margin-bottom: 15px;
}

/* Form Section */
.registration {
    padding: 60px 0;
}

.form-card {
    background: #fff;
    max-width: 600px;
    margin: 0 auto;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.input-group input, .input-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: #27ae60;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
}

/* Floating Button */
.floating-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: #f1c40f;
    color: #000;
    padding: 12px 20px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    display: none; /* يظهر في الموبايل فقط */
}

@media (max-width: 768px) {
    .floating-btn { display: block; }
    .navbar nav { display: none; } /* يمكن استبداله بقائمة همبرغر */
    .hero h1 { font-size: 1.8rem; }
}