
@font-face {
    font-family: 'Readex Pro';
    src: url('/assets/fonts/readexPro/ReadexPro-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Readex Pro';
    src: url('/assets/fonts/readexPro/ReadexPro-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Readex Pro';
    src: url('/assets/fonts/readexPro/ReadexPro-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Readex Pro';
    src: url('/assets/fonts/readexPro/ReadexPro-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Readex Pro';
    src: url('/assets/fonts/readexPro/ReadexPro-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}

:root {
  --primary: #3aa2e8;
  --secondary: #e8ac16;
  --accent: #49b9f5;
  --success: #00de51;
  --dark: #1e293b;
  --light: #f8fafc;
  --radius: 12px;
  --navbar-height: 80px;
}

body {
  font-family: "League Spartan", "Readex Pro", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--dark);
  background: #fff;
  line-height: 1.6;
  overflow-x: hidden;
}

/* --- NAVBAR & BUTTONS --- */
.navbar {
  background: #fff;
  box-shadow: 0 2px 8px rgba(30, 41, 59, 0.06);
}
.navbar-brand img {
  height: 45px;
  width: auto;
  margin-right: 0;
}
.nav-link {
  color: var(--dark);
  border: var(--secondary) 1px solid;
  border-radius: 5px;
  font-weight: 500;
  transition: color 0.2s, background-color 0.2s;
}
.nav-link:hover,
.nav-link.active {
  background-color: var(--secondary);
}
.btn-primary,
.btn-warning {
  border-radius: 2rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: background 0.2s, box-shadow 0.2s;
}
.btn-primary {
  background: var(--secondary);
  border: none;
}
.btn-primary:hover {
  background: var(--dark);
  color: #fff;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.12);
}
.btn-warning {
  background: var(--secondary);
  border: none;
  color: #fff;
}
.btn-warning:hover {
  background: var(--dark);
  color: var(--light);
}

/* --- MAIN PAGE SECTIONS --- */
/* --- HERO SECTION (Arabic mirror of English) --- */
.hero-section {
  padding: 100px 0 80px;
  position: relative;
  background: linear-gradient(90deg, #5de0e6, #004aad);
  color: #fff;
  overflow: hidden;
  min-height: 600px;
}
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}
.hero-content {
  display: flex;
  align-items: center;
  position: relative;
  z-index: 2;
  direction: rtl; /* ensure RTL alignment */
}
.hero-text-wrapper {
  display: flex;
  justify-content: flex-start; /* mirror English but RTL */
  width: 100%;
  position: relative;
  z-index: 3;
}
.hero-text-box {
  padding: 30px;
  max-width: 600px;
  text-align: right; /* Arabic alignment */
}
.hero-text-col {
  padding: 0;
}

/* Hero image styles for Arabic */
.hero-image {
  position: absolute;
  left: -190px; /* Move further away from text */
  top: 50%;
  transform: translateY(-50%) scaleX(-1); /* Flip horizontally */
  max-width: 90%; /* 3x larger than before (40% * 3 = 120%) */
  height: auto;
  z-index: 2;
}
.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 24px;
  line-height: 1.2;
  color: #fff;
  max-width: 500px; /* Smaller width to force text into exactly 2 lines */
  word-wrap: break-word; /* Ensure words break if needed */
}
.hero-subtitle,
.lead {
  font-size: 1.25rem;
  margin-bottom: 40px;
  max-width: 600px;
  opacity: 0.9;
  text-align: right;
}
.list-unstyled li {
  text-align: right;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: flex-end; /* mirror English but RTL */
}
.hero-btn {
  padding: 14px 28px;
  font-weight: 600;
  border-radius: 50px;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
.hero-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}
.hero-btn-outline {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
}
.hero-btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
}
@media (max-width: 992px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
  }
  .hero-text-wrapper {
    justify-content: center;
  }
  .hero-text-box {
    max-width: 90%;
    text-align: center;
  }
}


/* Added: Normalized padding for services section to match English */
.services-section {
  padding: 4rem 0 2rem;
}

.service-card {
  text-align: right;
  background: var(--light);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  box-shadow: 0 2px 8px rgba(30, 41, 59, 0.06);
  border: 1px solid #e5e7eb;
  transition: box-shadow 0.2s, transform 0.2s;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.service-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.service-card .service-icon {
  text-align: center;
  font-size: 2.2rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
}
.service-card .service-title {
  text-align: center;
  font-weight: 700;
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--dark);
}
.service-card p {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.8;
}
/* 2. Style the new "More" button element */
.service-card-cta {
    display: inline-flex;  /* Allows us to align text and icon */
    align-items: center;    /* Vertically centers the text and icon */
    gap: 0.5rem;            /* Creates space between the text and icon */

    background-color: var(--primary); /* Uses your theme's primary blue */
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.5rem 1.25rem;
    border-radius: 2rem;    /* Pill-shaped to match other buttons */

    margin-top: auto;       /* This is the key: it pushes the button to the bottom */
    padding-top: 0.5rem;    /* Ensures consistent top padding */
    align-self: center;     /* Horizontally centers the button within the card */
    text-decoration: none;
}
.service-card-cta:hover {
  box-shadow: 0 8px 32px rgba(30, 41, 59, 0.1);
  transform: translateY(-2px);
}


.how-section {
  background: #fff;
  padding: 48px 0 32px;
}
.how-step {
  text-align: center;
  background: var(--light);
  border-radius: var(--radius);
  padding: 32px 24px;
  box-shadow: 0 2px 8px rgba(30, 41, 59, 0.06);
  border: 1px solid #e5e7eb;
  transition: box-shadow 0.2s, transform 0.2s;
}
.how-step:hover {
  box-shadow: 0 8px 32px rgba(30, 41, 59, 0.1);
}
.how-step .step-icon {
  font-size: 40px;
  color: var(--primary);
  margin-bottom: 16px;
}
.how-step-title {
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--dark);
}



/* --- START: RESOURCES SECTION --- */
.resources-section {
    padding: 4rem 0;
    position: relative; /* This is crucial for positioning the arrow */
    background-color: var(--light); /* A light background to stand out */
}

/* The main carousel container */
#resourcesCarousel {
    max-width: 720px; /* Constrains the width for a focused look */
    margin: 0 auto;   /* Centers the carousel horizontally */
    position: relative; /* Allows absolute positioning of the arrow */
}

/* The card containing the resource information */
.resource-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    box-shadow: 0 4px 12px rgba(30, 41, 59, 0.08);
    border: 1px solid #e5e7eb;
    text-align: center;
    min-height: 280px; /* Ensures all cards have the same height */

    /* Flexbox helps push the "Visit" link to the bottom */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.resource-logo {
    max-height: 80px; /* Controls the logo size */
    margin-bottom: 1.5rem;
}

.resource-name {
    font-weight: 700;
    color: var(--dark);
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.resource-desc {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* The "Visit" link, styled to look like a button */
.resource-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--primary);
    color: #fff;
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    border-radius: 2rem;
    text-decoration: none;
    transition: background-color 0.2s, transform 0.2s;
    
    margin-top: auto; /* This pushes the link to the bottom of the card */
}

.resource-link:hover {
    background-color: var(--dark);
    transform: translateY(-2px);
    color: #fff;
}

/* The custom navigation arrow, positioned outside the card */
.custom-carousel-control-resources {
    position: absolute;
    top: 50%; /* Aligns with the vertical center of the card area */
    right: -70px; /* Positions it on the right side of the container */
    transform: translateY(-50%);

    width: 45px;
    height: 45px;
    background-color: #fff;
    border-radius: 50%;
    opacity: 1;
    box-shadow: 0 4px 12px rgba(30, 41, 59, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.custom-carousel-control-resources:hover {
    box-shadow: 0 8px 24px rgba(30, 41, 59, 0.15);
    transform: translateY(-50%) scale(1.05);
}

/* Add the arrow icon using Font Awesome */
.custom-carousel-control-resources::after {
    content: "\f054"; /* Font Awesome right arrow unicode */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 1rem;
    color: var(--primary);
}

/* The custom PREVIOUS navigation arrow */
.custom-carousel-control-prev-resources {
    position: absolute;
    top: 50%;
    /* This positions it to the LEFT of the card */
    left: -70px; 
    transform: translateY(-50%);
    
    width: 45px;
    height: 45px;
    background-color: #fff;
    border-radius: 50%;
    opacity: 1;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(30, 41, 59, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.custom-carousel-control-prev-resources:hover {
    box-shadow: 0 8px 24px rgba(30, 41, 59, 0.15);
    transform: translateY(-50%) scale(1.05);
}

/* Use the Font Awesome LEFT arrow icon */
.custom-carousel-control-prev-resources::after {
    content: "\f053"; /* Font Awesome LEFT arrow unicode */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 1rem;
    color: var(--primary);
}

/* --- RESPONSIVENESS FOR BOTH ARROWS --- */

/* Adjust arrow positions on medium screens */
@media (max-width: 1199.98px) {
    .custom-carousel-control-resources {
        right: -60px;
    }
    .custom-carousel-control-prev-resources {
        left: -60px;
    }
}

/* On smaller screens, hide the side arrows... */
@media (max-width: 991.98px) {
    .custom-carousel-control-resources,
    .custom-carousel-control-prev-resources {
        display: none;
    }
    
    /* ...and create a new navigation area below the carousel instead. */
    #resourcesCarousel::after {
        content: ''; /* Required for the nav to appear */
        display: block;
        text-align: center;
        margin-top: 1.5rem;
    }
    
    #resourcesCarousel .carousel-control-prev,
    #resourcesCarousel .carousel-control-next {
        display: inline-flex; /* Make them visible again */
        position: relative;
        transform: none;
        width: 45px;
        height: 45px;
        opacity: 1;
        background-color: #fff;
        box-shadow: 0 4px 12px rgba(30, 41, 59, 0.1);
        margin: 0 0.5rem;
    }
}

/* --- END: RESOURCES SECTION --- */
.contact-section {
  padding: 64px 0 32px;
  background: #fff;
}
.contact-form {
  background: var(--light);
  border-radius: var(--radius);
  padding: 40px 32px;
  box-shadow: 0 2px 8px rgba(30, 41, 59, 0.06);
  border: 1px solid #e5e7eb;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.form-control,
.form-select {
  border-radius: var(--radius);
  border: 1px solid #d1d5db;
  padding: 11.2px 16px;
}
.form-control:focus,
.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.08);
}
/* Styles for Contact Form Feedback Message */
#contactFormMessage {
  padding: 10px;
  border-radius: 5px;
  font-weight: 600;
  margin-bottom: 1rem;
  display: none; /* Initially hidden, JS will show it */
  text-align: center;
  direction: rtl; /* Ensure RTL for the message itself */
}

/* Optional: Add specific colors for success/error if you plan to use classes for that */

#contactFormMessage.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}
#contactFormMessage.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* --- START: STYLES FOR SUBPAGES (AR) --- */
/* ADD THESE NEW RULES FOR THE CATEGORY BOXES */
.category-title {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--primary);
  margin-bottom: 0.75rem;
  /* text-align: right; is inherited from .feature-card */
}

.category-items {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.8;
  /* text-align: right; is inherited from .feature-card */
}
.page-header {
  padding: 4rem 0;
  background-color: var(--light);
  text-align: center;
  border-bottom: 1px solid #e5e7eb;
}

.page-title {
  font-weight: 800;
  color: var(--dark);
  font-size: 2.8rem;
  margin-bottom: 0.5rem;
}

.page-subtitle {
  font-size: 1.2rem;
  color: #64748b;
  max-width: 650px;
  margin: 0 auto;
}

.service-detail-section {
  padding: 4rem 0;
}

.service-detail-section:not(:last-child) {
  border-bottom: 1px solid #e5e7eb;
}

.service-detail-section h2 {
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
}

.service-detail-section p, .service-detail-section ul {
  color: #475569;
  line-height: 1.8;
}

.feature-card {
  background: var(--light);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid #e5e7eb;
  height: 100%;
}

.feature-card .icon {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.cta-section {
  background: var(--dark);
  color: #fff;
  padding: 4rem 0;
  text-align: center;
}

.cta-section h2 {
  font-weight: 700;
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.cta-section p {
  max-width: 500px;
  margin: 0 auto 1.5rem auto;
  color: #cbd5e1;
}
/* --- END: STYLES FOR SUBPAGES (AR) --- */

/* --- START: ABOUT US PAGE STYLES --- */
.team-section {
    padding: 4rem 0;
    background-color: var(--light); /* A light background to stand out */
}

.team-card {
    text-align: center;
    background-color: #fff;
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    box-shadow: 0 4px 12px rgba(30, 41, 59, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(30, 41, 59, 0.12);
}

.team-card-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.5rem;
    border: 4px solid var(--secondary); /* Uses your theme's gold color */
}

.team-card-name {
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.25rem;
}

.team-card-role {
    color: #64748b; /* Muted secondary text color */
    font-size: 0.95rem;
}
/* --- END: ABOUT US PAGE STYLES --- */


/* --- SHARED COMPONENTS (Footer, Modals, etc.) --- */
.user-avatar-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--dark);
  color: #fff;
  font-weight: 600;
  font-size: 1.1rem;
  user-select: none;
}
.user-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  background-color: #fff;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  min-width: 240px;
  z-index: 1100;
  padding: 0.75rem;
}
.user-dropdown.show-dropdown {
  display: block;
}
.dropdown-email {
  padding-bottom: 0.75rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid #e5e7eb;
  font-size: 0.9rem;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.quote-slide-btn {
  position: fixed;
  top: calc(var(--navbar-height) + 18px);
  left: -220px;
  z-index: 1050;
  transition: left 0.6s cubic-bezier(0.77, 0, 0.18, 1);
  box-shadow: 0 4px 16px rgba(30, 41, 59, 0.13);
  border-radius: 2rem;
  opacity: 0.98;
}
.quote-slide-btn.show {
  left: 32px;
}
@media (max-width: 991px) {
  .quote-slide-btn {
    display: none !important;
  }
}

.footer {
  background: var(--dark);
  color: #fff;
  padding: 2.5rem 0 1.5rem;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.2rem;
}
.footer-link {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.2s;
}
.footer-link:hover {
  color: var(--accent);
}
.social-icons {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  margin-bottom: 1.2rem;
}
.social-icon {
  color: #fff;
  font-size: 1.4rem;
  transition: color 0.2s, transform 0.2s;
}
.social-icon:hover {
  color: var(--success);
  transform: translateY(-2px) scale(1.1);
}
.footer small,
.footer p {
  color: #cbd5e1;
}

#auth-toggle {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  font-size: 1rem;
  line-height: 1.5;
}

#auth-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1050;
  justify-content: center;
  align-items: center;
}

#auth-modal .modal-content {
  background: #f8f9fa;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 30px;
  max-width: 400px;
  width: 90%;
  position: relative;
}

#auth-modal h2 {
  margin-top: 0;
  text-align: center;
  color: var(--primary);
}

#auth-modal hr {
  margin: 20px 0;
  border: none;
  border-top: 1px solid #ddd;
}

#auth-modal .or-text {
  text-align: center;
  margin: 10px 0 20px;
  color: #666;
  font-weight: 500;
}

.google-btn {
  background-color: #fff;
  color: #333;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin: 15px 0;
  font-weight: 500;
  transition: background-color 0.2s;
}

.google-btn:hover {
  background-color: #f1f1f1;
}

.google-btn i {
  margin-left: 10px;
  margin-right: 0;
  color: #4285f4;
  font-size: 1.2rem;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 1049;
  backdrop-filter: blur(5px);
  display: none;
}

.close-btn {
  position: absolute;
  top: 15px;
  left: 15px;
  right: auto;
  background: transparent;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: #64748b;
  transition: color 0.2s;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.close-btn:hover {
  color: #1e293b;
  background-color: rgba(0, 0, 0, 0.05);
}

/* --- START: FONT & TYPOGRAPHY FIXES --- */
body, h1, h2, h3, h4, h5, h6, .btn, .nav-link {
    font-family: 'Readex Pro', "Cairo", "Inter", -apple-system, BlinkMacSystemFont, sans-serif !important;
}
/* --- END: FONT & TYPOGRAPHY FIXES --- */

/* --- RESPONSIVE STYLES --- */
@media (max-width: 991px) {
  .navbar {
    padding: 0.75rem 15px !important;
  }
  .navbar-brand img {
    margin-right: 5px !important;
  }
  .navbar-toggler {
    margin-left: 5px;
  }

  .nav-link {
    margin-left: 0.5rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
  }

  .hero-section .row {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center; /* Ensure alignment on smaller screens too */
  }
  .hero-text-col,
  .hero-section .col-lg-6.text-center {
    border-radius: var(--radius);
    min-height: auto;
    height: auto;
    padding: 1.5rem;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
  }
  .hero-title {
    font-size: 2.2rem;
  }
  .hero-subtitle {
    font-size: 1.1rem;
  }
  .hero-image {
    width: 100%;
    min-height: 350px;
    object-position: center;
  }

  .testimonial-card,
  .contact-form {
    max-width: 100%;
    padding: 1.5rem;
  }
  .testimonial-card {
    padding-bottom: 4rem;
    min-height: auto;
  }
  .custom-carousel-control {
    position: relative;
    top: auto;
    right: auto;
    margin: 1.5rem auto 0;
    display: block;
  }

  .navbar-nav {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
  }
  .nav-link {
    margin-left: 0;
    padding: 0.5rem 0.75rem !important;
  }
}

@media (max-width: 576px) {
  .navbar-brand img {
    height: calc(65px * 0.65);
    width: auto;
  }

  html,
  body {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
  }

  body {
    padding-left: 0;
    padding-right: 0;
  }

  .navbar {
    padding: 0.75rem 0 !important;
    margin-left: 0;
    margin-right: 0;
    width: 100vw;
    left: 0;
    right: 0;
    position: fixed;
    top: 0;
    z-index: 1020;
  }
  .navbar > .container {
    max-width: 100vw;
    padding-left: 15px;
    padding-right: 15px;
    margin: 0;
    width: 100%;
  }
  .navbar-brand img {
    margin-right: 10px;
  }
  .navbar-toggler {
    margin-left: 10px;
  }

  .hero-section .col-lg-6.text-center {
    display: none !important;
  }
  .hero-section .hero-text-col {
    border-radius: 0 !important;
    min-height: auto;
    width: 100vw;
    margin-left: 0;
    margin-right: 0;
    padding: 2rem 15px;
    background: var(--primary);
  }
  .hero-section {
    padding: 0;
    margin: 0;
    width: 100%;
  }

  .footer {
    margin-left: 0;
    margin-right: 0;
    padding-left: 15px;
    padding-right: 15px;
    width: 100vw;
  }

  .testimonial-card {
    padding-bottom: 2rem;
  }
  .custom-carousel-control {
    bottom: 1rem;
  }
}

/* Using a more specific selector to override Bootstrap's default styles */
.navbar .navbar-nav .nav-link {
    color: var(--dark);
    border: 1px solid var(--secondary); /* Add border */
    border-radius: 5px; /* Rounded corners */
    font-weight: 500;
    transition: color 0.2s, background-color 0.2s;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    background-color: var(--secondary); /* Highlight on hover/active */
    color: #fff; /* Change text color */
}

/* Styles for Modal (RTL adjustments) */
.modal-content {
  direction: rtl; /* Ensure modal content is RTL */
  text-align: right; /* Ensure text is right-aligned */
}

/* Specific override for email input for LTR text */
.modal-content input[type="email"] {
    direction: ltr;
    text-align: left;
}

.modal-content .close-button {
  float: left; /* Adjusted for RTL to be on the left */
}

/* Progress bar in modal for RTL page should still be LTR for percentages */
.modal-content .progress {
    direction: ltr;
}
.modal-content .progress-bar {
    direction: ltr;
}

/* Modal form messages RTL alignment */
#quoteModalFormMessage {
    text-align: right;
    direction: rtl;
}

/* Ensure validation error messages are RTL */
.error-message {
  text-align: right;
  direction: rtl;
}

/* Upload status messages RTL alignment */
.upload-status-message {
  text-align: right;
  direction: rtl;
}

/* Uploaded file list RTL alignment */
.uploaded-files-list {
  text-align: right;
  direction: rtl;
}
/* File links within the list should remain LTR for the URL itself */
.uploaded-files-list a {
  direction: ltr;
  unicode-bidi: embed; /* Ensures LTR embedding for URLs in RTL context */
}

/* General form control RTL adjustments */
.form-control, .form-select, textarea {
    direction: rtl;
    text-align: right;
}
/* Override for specific LTR fields like email */
input[type="email"] {
    direction: ltr;
    text-align: left;
}

/* Radio button group adjustments for RTL */
.radio-group {
    display: flex; /* Keeping flex for horizontal layout */
    justify-content: flex-end; /* Align radios to the right */
    padding-right: 0; /* Adjust as needed */
}
.radio-group label {
    margin-right: 0; /* Remove default margin-right */
    margin-left: 10px; /* Add margin to the left for spacing in RTL */
}

/* Buttons in forms (if not globally handled by Bootstrap RTL) */
.continue-btn, .goback-btn, .modal-content .btn-primary {
    direction: rtl;
}