/* Akkurat LL Web */
@font-face {
  font-family: 'AkkuratLLWeb';
  src: url('./fonts/AkkuratLLWeb-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap; /* Added for performance */
}

@font-face {
  font-family: 'AkkuratLLWeb';
  src: url('./fonts/AkkuratLLWeb-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap; /* Added for performance */
}

@font-face {
  font-family: 'AkkuratLLWeb';
  src: url('./fonts/AkkuratLLWeb-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap; /* Added for performance */
}

/* Avenir Arabic */
@font-face {
  font-family: 'AvenirArabic';
  src: url('./fonts/AvenirArabic-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap; /* Added for performance */
}

@font-face {
  font-family: 'AvenirArabic';
  src: url('./fonts/AvenirArabic-Heavy.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
  font-display: swap; /* Added for performance */
}

:root {
  --primary-color: #481C6B;
  --text-color: #222;
  --light-text-color: #666;
  --background-color: #fff;
  --card-background: #F8F8F8;
  --footer-color: #000;
}

body {
  margin: 0;
  color: var(--text-color);
  background: var(--background-color);
  font-family: 'AkkuratLLWeb', sans-serif;
  line-height: 1.6;
  overflow-x: hidden; /* Prevent horizontal scroll due to animations */
}

/* Base font for Arabic text */
.arabic-text {
  font-family: 'AvenirArabic', sans-serif;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: var(--primary-color);
}

/* Reusable Components */
.container {
  width: 100%;
  max-width: 1200px;
  margin: auto;
  padding: 0 2rem;
}

/* RTL adjustment for container padding */
[dir="rtl"] .container {
    padding: 0 2rem; /* Consistent padding */
}

.cta {
  background: var(--primary-color);
  color: white;
  padding: 1rem 2.5rem;
  text-decoration: none;
  font-weight: 100;
  display: inline-block;
  font-size: 16px;
  letter-spacing: 1px;
  margin-top: 20px;
  /* transition: background-color 0.3s ease, transform 0.3s ease; /* Smooth transition for CTA */
}

.cta:hover {
  background-color: #5a2c8a; /* Darker shade on hover */
  transform: none; /* Slight lift effect */
}

.cta.dark {
  background: var(--primary-color);
}

h1,
h2,
h3,
h4 {
  font-weight: 100;
  margin-top: 0;
}

p.trans,
small.trans,
.project-types p,
.project-types ul,
.trade-row p,
.trade-row ul,
.step p,
.faq-item p {
  color: var(--light-text-color);
  font-size: 16px;
  letter-spacing: 0.25px;
  line-height: 24px;
  font-weight: 100;
}

.step p {
  color: #fff;
}

.trans strong {
  font-weight: bold;
}


/* Header */
.logo-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--background-color);
  padding: 0 2rem;
  height: 10vh;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05); /* Subtle shadow for depth */
}

/* RTL adjustment for logo bar */
[dir="rtl"] .logo-bar {
    flex-direction: row-reverse; /* Flip logo and language switcher */
}

.logo {
  width: 120px;
}

.language-switcher button {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 16px;
  padding: 0.4rem 0.6rem;
  font-weight: 500;
  color: var(--text-color);
  /* transition: color 0.3s ease; /* Smooth transition for language switcher */
}

.language-switcher button:hover {
  color: var(--primary-color); /* Highlight on hover */
}

[dir="ltr"] #languageToggle {
  font-family: 'AvenirArabic', sans-serif;
}

[dir="rtl"] #languageToggle {
  font-family: 'AkkuratLLWeb', sans-serif;
}

.hero {
  width: 100%;
  background-color: rgb(238, 238, 238);
}

.hero img {
  width: 100%;
  height: auto;
  display: block;
}

/* Offers Section */
.offers {
  max-width: 1200px;
  margin: 2rem auto;
  text-align: left;
  padding: 0; /* Adjusted to allow for inner scroll padding */
}

/* RTL adjustments for offers section */
[dir="rtl"] .offers {
    text-align: right;
}

.offers h2 {
  margin-bottom: 2rem;
  font-size: 36px;
  padding: 0 2rem; /* Kept padding for the heading */
}

.offer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--card-background);
  padding: 1.5rem;
  text-align: left;
  border-radius: 8px; /* Rounded corners for cards */
  box-shadow: 0 4px 10px rgba(0,0,0,0.05); /* Soft shadow for cards */
  /* transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth transition for hover */
}

.card:hover {
  transform: none; /* Lift card on hover */
  box-shadow: 0 6px 15px rgba(0,0,0,0.1); /* Enhanced shadow on hover */
}

/* RTL adjustment for card text alignment */
[dir="rtl"] .card {
    text-align: right;
}

/* Tailored Section - Styled as a Component */
.tailored {
  display: flex;
  flex-wrap: wrap;
  padding: 4rem 2rem; /* Consistent section padding */
  align-items: center;
  gap: 2rem;
  max-width: 1200px;
  margin: auto;
  background: var(--background-color); /* Ensure background is defined if it changes */
  justify-content: space-between;
}

/* RTL adjustment for tailored section */
[dir="rtl"] .tailored .text {
    text-align: right;
}

/* Keep row-reverse for RTL on desktop to swap text/image order */
[dir="rtl"] .tailored {
    flex-direction: row-reverse;
}


.tailored .text {
  flex: 0 0 55%; /* Text takes approximately 65% of the width */
  min-width: 280px; /* Ensure text doesn't shrink too much */
}

.tailored .image {
  flex: 0 0 40%; /* Image takes approximately 30% of the width */
  min-width: 280px; /* Ensure image doesn't shrink too much */
}

.tailored .text h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem; /* Adjust spacing */
}
.tailored .text p {
    margin-bottom: 1rem; /* Adjust spacing */
}

.project-types-select {
    width: 100%;
    background: #f7f7f7; /* Changed background for visual distinction */
    padding-bottom: 2rem;
}


/* Project Types Section - Styled as a Component */
.project-types {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
  padding: 4rem 2rem; /* Consistent section padding */
  background: #f7f7f7; /* Changed background for visual distinction */
  max-width: 1200px;
  margin: auto;
}

/* RTL adjustment for project types section */
[dir="rtl"] .project-types {
    flex-direction: row-reverse; /* Swap image and content order for RTL */
}

[dir="rtl"] .project-types .content {
    text-align: right;
}

[dir="rtl"] .project-types ul {
    list-style: disc; /* Keep disc style */
    padding-left: 0; /* Remove left padding */
    padding-right: 1.5rem; /* Add right padding */
}

.project-types .image,
.project-types .content {
  flex: 1;
  min-width: 280px;
  width: 45%;
}


.project-types .image {
  flex: 0 0 40%;
  min-width: 280px;
}

.project-types h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.project-types ul {
  list-style: disc;
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
}

/* Final CTA Section - Parallax */
.final-cta {
  background: #f7f7f7;
  text-align: center;
  padding: 4rem 2rem;
  height: 55vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative; /* For overlay content */
  background-attachment: scroll; /* Parallax effect */
}

.final-cta.with-bg {
  background-image: url('./final_en.jpg');
}

[dir="rtl"] .final-cta.with-bg {
  background-image: url('./final_ar.jpg');
}

.final-cta .overlay-content {
  padding: 2rem;
  max-width: 600px;
  margin: auto;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.final-cta h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.final-cta .cta {
  margin: 1rem 0;
}

/* Trade Program Section - Styled as a Component */
.trade-program {
  max-width: 1200px;
  margin: auto;
  padding: 4rem 2rem; /* Consistent section padding */
  background: var(--background-color);
}

.trade-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 4rem; /* Spacing between rows */
  gap: 2rem;
}

/* For the first trade-row (not having .reverse), make it row-reverse for RTL */
[dir="rtl"] .trade-row:not(.reverse) {
    flex-direction: row-reverse;
}

.trade-row.reverse {
  flex-direction: row-reverse; /* Keeps image on right for LTR */
}
/* For the reversed trade-row, make it normal row for RTL */
[dir="rtl"] .trade-row.reverse {
    flex-direction: row; /* Un-reverse for RTL */
}

[dir="rtl"] .trade-row .text {
    text-align: right;
}

[dir="rtl"] .trade-row ul {
    padding-left: 0; /* Remove left padding */
    padding-right: 1.5rem; /* Add right padding */
}


.trade-row .text,
.trade-row .image {
  flex: 1;
  min-width: 280px;
}

.trade-row h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.trade-row .subtitle {
  font-weight: 300;
  color: var(--light-text-color);
  margin-bottom: 1rem;
}

.card p.trans {
  color: #555; 
}

.trade-row p {
    margin-bottom: 1rem; /* Ensure consistent paragraph spacing */
}

.trade-row ul {
  padding-left: 1.5rem;
  color: var(--light-text-color);
  line-height: 1.6;
}

/* How to Apply Section */
.how-to-apply {
  background: url('../assets/21110_7.jpg') center/cover no-repeat scroll; /* Parallax effect */
  color: #fff;
  text-align: center;
  padding: 5rem 2rem;
  position: relative;
}

.how-overlay {
  padding: 3rem 2rem;
  max-width: 1200px;
  margin: auto;
  border-radius: 8px;
  background-color: rgba(0, 0, 0, 0.534);
}

.how-to-apply h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.how-to-apply .intro-text {
  max-width: 700px;
  margin: 0 auto 3rem;
  font-weight: 300;
  color: #fff;
}

.steps {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.step {
  max-width: 300px;
  text-align: center;
  background-color: rgba(255,255,255,0.1); /* Slightly visible background for steps */
  padding: 1.5rem;
  border-radius: 8px;
}

/* RTL adjustments for steps */
[dir="rtl"] .step {
    text-align: right; /* Adjust step text alignment */
}


.step .number {
  font-size: 1.2rem;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.5rem 1rem;
  display: inline-block;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}

.step h3 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

/* FAQ Section */
.faq {
  background-color: #f9f9f9;
  padding: 4rem 2rem;
  color: var(--footer-color);
}

.faq-container {
  max-width: 1200px;
  margin: auto;
}

.faq h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

/* RTL adjustments for FAQ */
[dir="rtl"] .faq h2,
[dir="rtl"] .faq-subtitle,
[dir="rtl"] .faq-block h4,
[dir="rtl"] .faq-item strong,
[dir="rtl"] .faq-item p {
    text-align: right;
}


.faq-subtitle {
  font-size: 1rem;
  color: var(--light-text-color);
  margin-bottom: 2rem;
}

.faq-block {
  margin-bottom: 3rem;
}

.faq-block h4 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  color: var(--primary-color); /* Highlight FAQ block titles */
}

.faq-item {
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #eee; /* Separator for FAQ items */
}

.faq-item:last-child {
    border-bottom: none; /* No border for the last item */
}

.faq-item strong {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 600;
  color: var(--text-color); /* Ensure strong text is clear */
}

/* New styles for Contact Us Section */
.contact-us-section {
  padding: 80px 20px; /* Increased padding for more height */
  text-align: center;
  background-color: #f9f9f9;
  margin-top: 40px;
  border-top: 1px solid #e0e0e0; /* Slight line above */
  border-bottom: 1px solid #e0e0e0; /* Slight line below */
}

.contact-us-section h2 {
  font-size: 2em;
  margin-bottom: 40px;
  color: #000;
}

/* Styles for the contact form */
.contact-form-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
  padding-top: 60px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.contact-form .form-group {
  margin-bottom: 15px;
  text-align: left; /* Align labels and inputs to the left */
}

.contact-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-color);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 16px;
  box-sizing: border-box; /* Ensure padding and border are included in the element's total width and height */
  font-family: 'AkkuratLLWeb', sans-serif; /* Ensure consistent font */
}

.arabic-text .contact-form input,
.arabic-text .contact-form textarea {
  font-family: 'AvenirArabic', sans-serif;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(72, 28, 107, 0.2); /* Light primary color glow on focus */
}

.contact-form textarea {
  resize: vertical; /* Allow vertical resizing */
}

.contact-form button.cta {
  width: auto; /* Adjust button width */
  min-width: 300px;
  margin-top: 20px;
  cursor: pointer;
  border: none; /* Remove default button border */
}

.contact-form button.cta:hover {
  background-color: #5a2c8a; /* Darker shade on hover */
}

.form-message {
  margin-top: 20px;
  padding: 10px;
  border-radius: 5px;
  font-weight: 500;
}

.form-message.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.form-message.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.contact-direct {
  margin-top: 20px;
  font-size: 1em;
  color: var(--light-text-color);
}

.contact-direct a {
  color: var(--primary-color);
  text-decoration: underline;
}

/* RTL adjustments for contact form */
[dir="rtl"] .contact-form .form-group {
    text-align: right;
}
[dir="rtl"] .contact-form input,
[dir="rtl"] .contact-form textarea {
    direction: rtl; /* Ensure text input direction is right-to-left */
}
[dir="rtl"] .contact-form button.cta {
    /* No specific RTL adjustment needed if it's display: inline-block and centered by parent */
}

/* Footer */
.site-footer {
  padding: 2.5rem 1.5rem;
  font-size: 0.95rem;
  color: var(--footer-color);
  background-color: #eee; /* Light background for footer */
}

.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 960px;
  margin: 0 auto;
}

/* RTL adjustments for footer */
[dir="rtl"] .footer-container {
    flex-direction: row-reverse; /* Flip order of columns */
}

[dir="rtl"] .footer-column h4 {
    text-align: right;
}

[dir="rtl"] .footer-column ul {
    list-style: none; /* Remove default list style to re-add manually if needed */
    padding-left: 0; /* Remove default left padding */
    text-align: right; /* Align list items to the right */
}
/* Social icons specifically, margin-right should become margin-left */
[dir="rtl"] .social-icons a {
    margin-right: 0;
    margin-left: 0.75rem;
}
/* Last social icon should not have margin-left */
[dir="rtl"] .social-icons a:last-child {
    margin-left: 0;
}


.footer-column {
  min-width: 200px;
  margin-bottom: 2rem;
}

.footer-column h4 {
  font-weight: 500;
  color: #555;
  margin-bottom: 1rem;
}

.faq-block h3 { /* Changed from h4 to h3 */
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  color: var(--primary-color); /* Highlight FAQ block titles */
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-weight: 100;
}

.footer-column li {
  margin-bottom: 0.75rem;
}

.footer-column a {
  color: var(--footer-color);
  /* transition: color 0.3s ease; */
}

.footer-column a:hover {
    color: var(--primary-color); /* Highlight footer links on hover */
}

.social-icons {
  padding-top: 30px;
}

.social-icons a {
  display: inline-block;
  margin-right: 0.75rem;
}

.social-icons img,
.social-icons svg {
  width: 20px;
  height: 20px;
  /* transition: transform 0.3s ease; /* Smooth transition for social icons */
}

.social-icons a:hover svg {
    transform: none; /* Lift social icon on hover */
}

/* --- Scroll-based Animations --- */

/* Initial state for elements that will animate */
.animate-on-scroll {
  /* opacity: 0; */
  /* transform: translateY(40px); */
  /* transition: opacity 0.8s ease-out, transform 0.8s ease-out; */
  /* will-change: opacity, transform; /* Optimize for animation */
}

/* Specific initial states based on animation type */
.fade-in-left {
  /* transform: translateX(-40px); */
}

.fade-in-right {
  /* transform: translateX(40px); */
}

/* RTL adjustments for horizontal animations */
[dir="rtl"] .fade-in-left {
    /* transform: translateX(40px); /* Moves from right to left */
}

[dir="rtl"] .fade-in-right {
    /* transform: translateX(-40px); /* Moves from left to right */
}

/* Target elements inside .offer-grid for staggered effect */
.offer-grid .card.animate-on-scroll {
  /* transition-delay: var(--delay); /* Use CSS variable for delay */
}

/* Target elements inside .steps for staggered effect */
.steps .step.animate-on-scroll {
  /* transition-delay: var(--delay); */
}

/* Target elements inside .faq-block for staggered effect */
.faq-block .faq-item.animate-on-scroll,
.faq-block h4.animate-on-scroll {
  /* transition-delay: var(--delay); */
}

/* Visible state (when the 'visible' class is added by JS) */
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateX(0) translateY(0);
}


/* Responsive */
@media (max-width: 768px) {
  body {
    font-size: 16px;
  }

  .logo-bar {
    padding: 0 1rem;
  }

  /* RTL logo bar for mobile */
  [dir="rtl"] .logo-bar {
      flex-direction: row-reverse;
  }

  .cta {
    font-size: 14px;
    padding: 0.8rem 2rem; /* Adjusted padding for mobile CTA */
  }


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


.offer-grid {
  display: flex;
  overflow-x: auto; /* Enable horizontal scrolling */
  -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
  scroll-snap-type: x mandatory; /* Snap to card boundaries */
  padding: 0 2rem; /* Maintain padding from original .offers */
  box-sizing: border-box; /* Include padding in element's total width */
  scrollbar-width: none; /* Hide scrollbar for Firefox */
  -ms-overflow-style: none;  /* Hide scrollbar for IE and Edge */
  gap: 2rem; /* Gap between cards */
}

.offer-grid::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome, Safari, Opera */
}

.offer-grid .card {
  flex: 0 0 auto; /* Allow content to dictate size initially */
  width: calc(100% / 1.5 - 1.333rem); /* Show 1.5 cards, accounting for gap (2rem / 3 partial cards) */
  scroll-snap-align: start; /* Snap to the start of each card */
  box-sizing: border-box; /* Include padding and border in the element's total width and height */
  /* margin-right is now handled by gap on the container */
}

[dir="rtl"] .offer-grid .card {
  /* For RTL, card order and snap direction will be handled by dir="rtl" on html */
  /* No specific margin adjustment here if gap is used on container */
}



  .offers,
  .project-types,
  .trade-program,
  .how-to-apply,
  .faq {
    padding: 2rem 1rem;
    margin: 0;
    margin-bottom: 2rem;
  }

  .tailored,
  .project-types{
      padding: 0;
      margin: 0;
    margin-bottom: 2rem;
  }

  .tailored .text, .project-types .content {
      padding: 2rem 1rem;
  }

  /* RTL text alignment for mobile */
  [dir="rtl"] .offers,
  [dir="rtl"] .tailored .text,
  [dir="rtl"] .project-types .content,
  [dir="rtl"] .trade-row .text,
  [dir="rtl"] .step,
  [dir="rtl"] .faq h2,
  [dir="rtl"] .faq-subtitle,
  [dir="rtl"] .faq-block h4,
  [dir="rtl"] .faq-item strong,
  [dir="rtl"] .faq-item p,
  [dir="rtl"] .footer-column h4,
  [dir="rtl"] .footer-column ul,
  [dir="rtl"] .contact-form-container,
  [dir="rtl"] .contact-form .form-group,
  [dir="rtl"] .contact-direct {
      text-align: right;
  }

  /* Offer grid for mobile */
  .offers h2 {
      padding: 0 1rem;
  }
  .offer-grid {
      padding: 0 1rem; /* Adjust scrollable area padding for mobile */
  }
  .offer-grid .card {
      width: calc(100% - 2rem); /* Show one full card, still swipeable */
      padding: 20px;
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* horizontal-offset vertical-offset blur-radius spread-radius color */
  }
  [dir="rtl"] .offer-grid .card {
      width: calc(100% - 2rem); /* Same for RTL mobile */
  }


  .tailored,
  .project-types,
  .trade-row {
    flex-direction: column;
  }

  /* Mobile specific flex-basis for tailored section */
  .tailored .text,
  .tailored .image {
    flex: 1 1 100%; /* On mobile, both take full width */
    min-width: auto; /* Reset min-width for mobile */
  }

  /* RTL specific order on mobile when flex-direction: column */
  [dir="rtl"] .tailored {
      flex-direction: column; /* Keep column for mobile */
  }
  [dir="rtl"] .project-types {
      flex-direction: column; /* Keep column for mobile */
  }
  [dir="rtl"] .trade-row:not(.reverse) {
      flex-direction: column; /* Keep column for mobile */
  }

  .project-types ul {
    padding-left: 1rem;
    text-align: left;
  }

  /* RTL specific list padding for mobile */
  [dir="rtl"] .project-types ul {
      padding-left: 0;
      padding-right: 1rem;
      text-align: right;
  }


  .project-types .image,
  .tailored .image {
    order: -1;
    text-align: center;
    width: auto;
  }

  /* RTL image order on mobile */
  [dir="rtl"] .project-types .image,
  [dir="rtl"] .tailored .image {
      order: -1; /* Keep order consistent */
  }


  .how-to-apply h2 {
    font-size: 2rem;
  }

  .how-to-apply .intro-text {
    font-size: 0.95rem;
  }

  .steps {
    flex-direction: column;
    align-items: center;
  }

  .faq h2 {
    font-size: 2rem;
  }

  .faq-subtitle {
    font-size: 0.95rem;
  }

  .footer-container {
    flex-direction: column;
    align-items: flex-start;
    padding: 0 1rem;
  }

  /* RTL footer on mobile */
  [dir="rtl"] .footer-container {
      flex-direction: column; /* Keep column for mobile */
      align-items: flex-end; /* Align footer content to the right */
  }

  .footer-column {
    width: 100%;
  }

  /* Mobile specific adjustment for "Why Join..." heading */
  .trade-row.reverse .text h2 {
    word-break: break-word; /* Ensures text wraps within its container */
  }

  /* Disable parallax on mobile for performance */
  .final-cta.with-bg,
  .how-to-apply {
    background-attachment: scroll;
  }

  /* Adjust initial animation positions for mobile if needed, or keep them consistent */
  /* For mobile, typically we revert horizontal slides to vertical for better flow */
  [dir="ltr"] .fade-in-left,
  [dir="ltr"] .fade-in-right {
      transform: translateY(40px);
  }
  [dir="rtl"] .fade-in-left,
  [dir="rtl"] .fade-in-right {
      transform: translateY(40px); /* Both slide up on mobile for RTL */
  }

  /* Contact form mobile adjustments */
  .contact-form-container {
      padding: 15px;
      padding-top: 60px;
  }

  .contact-form label {
      font-size: 0.9em;
  }

  .contact-form input[type="text"],
  .contact-form input[type="email"],
  .contact-form input[type="tel"],
  .contact-form textarea {
      padding: 10px;
      font-size: 16px;
  }

  .contact-form button.cta {
      width: 100%; /* Full width button on mobile */
  }
}
/* Spinner Container */
.spinner {
  display: none;
  align-items: center;
  justify-content: center;
  margin-left: 10px;
}

.spinner.active {
  display: flex;
}

.spinner__progress {
  display: flex
;
  flex-wrap: wrap;
  height: 1.5625rem;
  justify-content: space-around;
  width: 1.5625rem;
}

.spinner__line {
  animation: spin 1s linear infinite;
  background: #939598;
  border-radius: 0.5px;
  flex-basis: 1px;
  height: 10px;
  margin: 0 5px;
  width: 1px;
}

/* Keyframes for the spin animation */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
/* Hide text when spinner is active */
.button-text.hidden {
  display: none;
}
