/* ======================
   Base Styles
   ====================== */
:root {
  --primary-color: #2a5bd7;
  --secondary-color: #ff6b35;
  --dark-color: #1a1a2e;
  --light-color: #f8f9fa;
  --text-color: #333;
  --text-light: #777;
  --white: #fff;
  --black: #000;
  --gray: #e9ecef;
  --dark-gray: #6c757d;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Open Sans', sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1.5rem;
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: var(--transition);
}

a:hover {
  color: var(--secondary-color);
}

img {
  max-width: 100%;
  height: auto;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.section-padding {
  padding: 80px 0;
}

.bg-light {
  background-color: var(--light-color);
}

.bg-dark {
  background-color: var(--dark-color);
  color: var(--white);
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 14px;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--white);
}

.btn-primary:hover {
  background-color: #1e4bbd;
  color: var(--white);
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: var(--white);
}

.btn-secondary:hover {
  background-color: #e05a2b;
  color: var(--white);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 36px;
  position: relative;
  display: inline-block;
  padding-bottom: 15px;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--primary-color);
}

.section-header p {
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto;
}

/* ======================
   Header Styles
   ====================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 15px 0;
  transition: var(--transition);
}

.header.scrolled {
  padding: 10px 0;
}

.logo img {
  height: 40px;
}

.main-nav ul {
  display: flex;
}

.main-nav ul li {
  margin-left: 30px;
}

.main-nav ul li a {
  font-weight: 600;
  color: var(--dark-color);
  font-size: 15px;
  position: relative;
}

.main-nav ul li a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition);
}

.main-nav ul li a:hover::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  font-size: 24px;
  cursor: pointer;
}

/* ======================
   Hero Section
   ====================== */
.hero {
  height: 100vh;
  min-height: 600px;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('hero-bg.jpg') no-repeat center center/cover;
  color: var(--white);
  display: flex;
  align-items: center;
  text-align: center;
  position: relative;
  padding-top: 80px;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero h1 {
  font-size: 48px;
  margin-bottom: 20px;
  animation: fadeInUp 1s ease;
}

.hero p {
  font-size: 20px;
  margin-bottom: 30px;
  animation: fadeInUp 1s ease 0.2s forwards;
  opacity: 0;
}

.hero .btn {
  margin: 10px;
  animation: fadeInUp 1s ease 0.4s forwards;
  opacity: 0;
}

/* ======================
   Services Section
   ====================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.service-card {
  background-color: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.service-img {
  height: 200px;
  overflow: hidden;
}

.service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.service-card:hover .service-img img {
  transform: scale(1.1);
}

.service-card h3 {
  padding: 20px 20px 0;
}

.service-card p {
  padding: 0 20px;
  color: var(--text-light);
}

.service-card .btn {
  margin: 20px;
}

/* ======================
   About Section
   ====================== */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  text-align: center;
}

.stat-item {
  padding: 30px 20px;
  background-color: var(--white);
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.stat-number {
  display: block;
  font-size: 36px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.stat-label {
  font-size: 14px;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ======================
   Team Section
   ====================== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.team-member {
  text-align: center;
  background-color: var(--white);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.team-member:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.team-member img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
  border: 5px solid var(--light-color);
}

.team-member h3 {
  margin-bottom: 5px;
}

.position {
  color: var(--text-light);
  margin-bottom: 15px;
  font-size: 14px;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background-color: var(--light-color);
  color: var(--dark-color);
  transition: var(--transition);
}

.social-links a:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

/* ======================
   Contact Section
   ====================== */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-info h2 {
  color: var(--white);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 25px;
}

.contact-item i {
  font-size: 20px;
  color: var(--secondary-color);
  margin-right: 20px;
  margin-top: 5px;
}

.contact-form .form-group {
  margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 15px;
  border-radius: 4px;
  border: none;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
  transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  background-color: rgba(255, 255, 255, 0.2);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

/* ======================
   Footer
   ====================== */
.footer {
  background-color: #0f0f1a;
  color: var(--white);
  padding: 80px 0 0;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 60px;
}

.footer-col h3 {
  color: var(--white);
  margin-bottom: 25px;
  font-size: 18px;
}

.footer-logo {
  margin-bottom: 20px;
  height: 40px;
}

.footer p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 20px;
}

.footer ul li {
  margin-bottom: 12px;
}

.footer ul li a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
}

.footer ul li a:hover {
  color: var(--white);
  padding-left: 5px;
}

.newsletter-form input {
  width: 100%;
  padding: 12px 15px;
  border-radius: 4px;
  border: none;
  margin-bottom: 10px;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.7);
}

/* ======================
   Animations
   ====================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ======================
   Responsive Styles
   ====================== */
@media (max-width: 992px) {
  .about-content {
    grid-template-columns: 1fr;
  }
  
  .contact-content {
    grid-template-columns: 1fr;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .main-nav {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 80%;
    height: calc(100vh - 80px);
    background-color: var(--white);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    z-index: 999;
  }
  
  .main-nav.active {
    left: 0;
  }
  
  .main-nav ul {
    flex-direction: column;
    padding: 30px;
  }
  
  .main-nav ul li {
    margin: 0 0 20px 0;
  }
  
  .hero h1 {
    font-size: 36px;
  }
  
  .hero p {
    font-size: 18px;
  }
  
  .section-header h2 {
    font-size: 30px;
  }
}

@media (max-width: 768px) {
  .section-padding {
    padding: 60px 0;
  }
  
  .hero {
    min-height: 500px;
  }
  
  .hero h1 {
    font-size: 30px;
  }
  
  .hero p {
    font-size: 16px;
  }
  
  .btn {
    padding: 10px 20px;
    font-size: 13px;
  }
  
  .services-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .hero h1 {
    font-size: 28px;
  }
  
  .hero .btn {
    display: block;
    width: 100%;
    margin: 10px auto;
  }
  
  .contact-form input,
  .contact-form textarea {
    font-size: 16px;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
  .hero-bg {
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), 
              url('images/hero-bg.png') center/cover no-repeat;
}
html[dir="rtl"] .lang-switcher {
  margin-right: 20px;
  margin-left: 0;
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.main-nav {
  flex: 1; /* Allow nav to take available space */
}

.lang-switcher {
  margin-left: 20px;
}

@media (max-width: 768px) {
  .lang-switcher {
    margin-left: 10px;
  }
}
.main-nav ul li.lang-switcher {
  margin-left: auto; /* pushes it to the far right */
}
.main-nav ul {
  display: flex;
  align-items: center;
}

.main-nav ul li {
  margin-left: 20px;
}

.main-nav ul li.lang-switcher {
  margin-left: auto; /* push switcher to far right if desired */
  font-weight: bold;
}

.main-nav ul li.lang-switcher a {
  padding: 5px 10px;
  text-decoration: none;
}

.main-nav ul li.lang-switcher a:hover {
  color: #007BFF; /* adjust to your theme primary color */
}
.main-nav ul li.lang-switcher {
  margin-left: auto; /* pushes language switcher to the far right if needed */
}

.main-nav ul li.lang-switcher a {
  font-weight: 600;
  color: #333;
  padding: 5px;
}

.main-nav ul li.lang-switcher a:hover {
  color: #007bff; /* adjust to your theme color */
}
/* Language Switcher Styles */
.language-switcher-container {
  background-color: #f8f9fa;
  padding: 5px 0;
  border-top: 1px solid #e9ecef;
  border-bottom: 1px solid #e9ecef;
}

.language-switcher {
  display: flex;
  justify-content: flex-end;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.lang-btn {
  background: none;
  border: none;
  padding: 5px 10px;
  margin: 0 5px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: #6c757d;
  transition: all 0.3s ease;
}

.lang-btn.active {
  color: #2a5bd7;
  border-bottom: 2px solid #2a5bd7;
}

.lang-btn:hover {
  color: #2a5bd7;
}

/* RTL adjustments */
html[dir="rtl"] .language-switcher {
  justify-content: flex-start;
}
/* CSS (add to your stylesheet) */
.services {
  padding: 80px 0;
  background: #f9f9f9;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
  font-size: 2.2rem;
  color: #2a5bd7;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: #ff6b35;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.service-card {
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  text-align: center;
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-10px);
}

.service-icon {
  font-size: 2.5rem;
  color: #2a5bd7;
  margin-bottom: 20px;
}

.service-card h3 {
  margin-bottom: 15px;
  color: #333;
}

.service-card p {
  color: #666;
  line-height: 1.6;
}

/* RTL Specific Styles */
html[dir="rtl"] .services-grid {
  direction: rtl;
}

html[dir="rtl"] .service-card {
  text-align: right;
}
}
/* General styling for service detail sections */
.service-detail-section {
    padding: 80px 0;
    background-color: #f9f9f9; /* Light background for contrast */
}

.service-detail-section .container {
    max-width: 1000px; /* Adjust as needed */
    margin: 0 auto;
    padding: 0 20px;
}

.service-detail-section .section-header {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
    color: #333;
}

.service-detail-content {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    gap: 40px; /* Space between image and text */
    align-items: flex-start; /* Align items to the top */
}

.service-detail-image {
    flex: 1; /* Allow image to take available space */
    min-width: 300px; /* Minimum width before wrapping */
    max-width: 400px; /* Max width for the image */
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.service-detail-text {
    flex: 2; /* Allow text to take more space */
    min-width: 300px; /* Minimum width before wrapping */
    line-height: 1.8;
    color: #555;
}

.service-detail-text h3 {
    font-size: 1.8rem;
    color: #007bff; /* Primary color for subheadings */
    margin-top: 30px;
    margin-bottom: 15px;
}

.service-detail-text ul {
    list-style: none; /* Remove default bullet points */
    padding: 0;
    margin-bottom: 20px;
}

.service-detail-text ul li {
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="%23007bff"><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"/></svg>') no-repeat left center; /* Custom checkmark */
    background-size: 18px;
    padding-left: 25px; /* Space for the custom bullet */
    margin-bottom: 10px;
}

.service-detail-text ul li strong {
    color: #333;
}

/* Adjust for Arabic (RTL) layout */
html[dir="rtl"] .service-detail-content {
    flex-direction: row-reverse; /* Reverse order for RTL */
}

html[dir="rtl"] .service-detail-text ul li {
    background-position: right center; /* Move checkmark to the right */
    padding-left: 0;
    padding-right: 25px; /* Space for the custom bullet */
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
    .service-detail-content {
        flex-direction: column; /* Stack elements vertically */
        align-items: center; /* Center items when stacked */
    }

    .service-detail-image {
        max-width: 80%; /* Make image take more width on small screens */
    }

    .service-detail-text {
        text-align: center; /* Center text on small screens */
    }

    .service-detail-text ul {
        text-align: left; /* Align list items to left even if text is centered */
        padding-left: 25px; /* Ensure padding for bullet */
    }

    html[dir="rtl"] .service-detail-text {
        text-align: right; /* Align text to right for Arabic on small screens */
    }

    html[dir="rtl"] .service-detail-text ul {
        text-align: right; /* Align list items to right for Arabic */
        padding-right: 25px; /* Ensure padding for bullet */
        padding-left: 0;
    }
}

/* Ensure header and footer links correctly point to main pages with anchors */
.main-nav ul li a, .footer-col ul li a {
    transition: color 0.3s ease;
}

.main-nav ul li a:hover, .footer-col ul li a:hover {
    color: #007bff; /* Example hover color */
}

/* Language switcher styling (already provided, just ensuring it's in style.css) */
.language-switcher {
    margin-left: 20px;
}

.language-switcher select {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #fff;
    font-size: 1rem;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23000000%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-6.5%200-12.3%203.2-15.9%208.1-3.6%204.9-3.6%2011.6%200%2016.5l133.9%20133.9c3.2%203.2%207.1%204.8%2011%204.8s7.8-1.6%2011-4.8l133.9-133.9c3.6-4.9%203.6-11.6%200-16.5z%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
}

.language-switcher select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Ensure proper alignment in the header */
.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* For mobile menu, adjust positioning if needed */
@media (max-width: 768px) {
    .header .container {
        flex-wrap: wrap;
    }
    .language-switcher {
        width: 100%;
        text-align: center;
        margin-top: 10px;
        margin-left: 0;
    }
    .main-nav {
        order: 3;
        width: 100%;
    }
    .schengen-page .schengen-content {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: flex-start;
}

.schengen-page .schengen-image {
  flex: 1 1 40%;
}

.schengen-page .schengen-image img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.schengen-page .schengen-details {
  flex: 1 1 55%;
}

.schengen-page .schengen-details h3 {
  margin-bottom: 15px;
  font-size: 24px;
}

.schengen-page .schengen-details ul {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.schengen-page .schengen-details ul li {
  margin-bottom: 10px;
  font-size: 18px;
}

.schengen-page .schengen-details ul li strong {
  color: #d9534f;
}

.schengen-page .schengen-details .note {
  font-style: italic;
  margin-bottom: 20px;
}

.schengen-page .btn {
  display: inline-block;
}

}