/* ==========================
   RTL Arabic Layout Overrides
   ========================== */
html[dir="rtl"], body[dir="rtl"] {
  direction: rtl;
  text-align: right;
}

/* Flip layout components */
html[dir="rtl"] header,
html[dir="rtl"] footer,
html[dir="rtl"] nav,
html[dir="rtl"] section,
html[dir="rtl"] article {
  direction: rtl;
}

/* Handle columns / floats */
html[dir="rtl"] [class*="col-"] {
  float: right;
}

/* Flip menus, icons or arrows */
html[dir="rtl"] .menu, html[dir="rtl"] .navbar {
  float: right;
}
html[dir="rtl"] .menu li {
  text-align: right;
}

/* Optional: fix paddings if needed */
html[dir="rtl"] .text-left { text-align: right !important; }
html[dir="rtl"] .text-right { text-align: left !important; }


/* RTL Footer Adjustments */
#footer-section {
  direction: rtl;
  text-align: right;
}

#footer-section .footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: row-reverse;
  padding: 30px 0;
}

#footer-section .footer-heading {
  font-size: 1.8rem;
  color: #fff;
  font-weight: 700;
}

#footer-section .cta-button.primary {
  background: #fff;
  color: #00332E;
  border: none;
  padding: 12px 28px;
  border-radius: 4px;
  font-weight: 600;
  transition: all 0.3s ease;
}

#footer-section .cta-button.primary:hover {
  background: #d4af37;
  color: #fff;
}

#footer-section .divider {
  border-bottom: 1px solid rgba(255,255,255,0.2);
  margin: 15px 0;
}

#footer-section .footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  text-align: right;
  margin-top: 30px;
}

#footer-section .footer-links .grid-item {
  width: 18%;
}

#footer-section h3 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 12px;
  font-weight: 600;
}

#footer-section ul {
  list-style: none;
  padding: 0;
}

#footer-section ul li {
  margin-bottom: 8px;
}

#footer-section ul li a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  transition: color 0.3s ease;
}

#footer-section ul li a:hover {
  color: #d4af37;
}

#footer-section .footer-bottom {
  text-align: center;
  margin-top: 25px;
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
}
