/**
 * Alhadil Beauty - Global Styles
 */

:root {
  --primary-color: #3a0d45;
  --secondary-color: #d28599;
  --text-color-light: #ffffff;
  --text-color-dark: #333333;
  --border-color: rgba(255, 255, 255, 0.1);
}

body {
  font-family: "Poppins", sans-serif;
  background-color: var(--primary-color);
  color: var(--text-color-light);
  line-height: 1.6;
  overflow-x: hidden;
  /* Hide default cursor so we can show our custom cursor effect */
  cursor: none;
}

/* When in Arabic language, use Arabic font */
body.rtl-layout {
  font-family: "Noto Kufi Arabic", sans-serif;
}

a {
  text-decoration: none;
  transition: all 0.3s ease;
}

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

/* Background Curves */
.curved-bg {
  position: fixed;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: rgba(210, 133, 153, 0.05);
  z-index: -1;
}

@keyframes float1 {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(60px, -60px) scale(1.05);
  }
  100% {
    transform: translate(0, 0) scale(1);
  }
}

@keyframes float2 {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-60px, 60px) scale(1.06);
  }
  100% {
    transform: translate(0, 0) scale(1);
  }
}

@keyframes float3 {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(50px, 50px) scale(1.04);
  }
  100% {
    transform: translate(0, 0) scale(1);
  }
}

@keyframes float4 {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-50px, -50px) scale(1.07);
  }
  100% {
    transform: translate(0, 0) scale(1);
  }
}

@keyframes float5 {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(60px, -30px) scale(1.06);
  }
  100% {
    transform: translate(0, 0) scale(1);
  }
}

@keyframes float6 {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-60px, 30px) scale(1.05);
  }
  100% {
    transform: translate(0, 0) scale(1);
  }
}

.curved-bg:nth-child(1) {
  top: -400px;
  left: -200px;
  animation: float1 5s ease-in-out infinite;
}

.curved-bg:nth-child(2) {
  top: 30%;
  right: -400px;
  animation: float2 6s ease-in-out infinite;
}

.curved-bg:nth-child(3) {
  bottom: -200px;
  left: 10%;
  animation: float3 5s ease-in-out infinite;
}

.curved-bg:nth-child(4) {
  top: 60%;
  right: 20%;
  animation: float4 6s ease-in-out infinite;
}

.curved-bg:nth-child(5) {
  bottom: 10%;
  left: 40%;
  animation: float5 6s ease-in-out infinite;
}

.curved-bg:nth-child(6) {
  top: 20%;
  left: 30%;
  animation: float6 7s ease-in-out infinite;
}

/* Custom Cursor Elements */
.custom-cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  border: 2px solid var(--secondary-color);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.15s ease, border-color 0.3s ease;
}

.custom-cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  background-color: var(--secondary-color);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 10000;
}

.cursor-trail {
  position: fixed;
  width: 15px;
  height: 15px;
  background: radial-gradient(
    circle at center,
    var(--secondary-color),
    var(--primary-color)
  );
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 9998;
  opacity: 1;
  animation: trailFade 0.6s forwards ease-out;
}

@keyframes trailFade {
  0% {
    opacity: 1;
    transform: scale(1) translate(-50%, -50%);
  }
  100% {
    opacity: 0;
    transform: scale(2.5) translate(-50%, -50%);
  }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 30px;
  font-weight: 500;
  font-size: 0.95rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  outline: none;
}

.btn-primary {
  background-color: var(--secondary-color);
  color: var(--text-color-light);
}

.btn-primary:hover {
  background-color: #c07385;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--secondary-color);
  color: var(--secondary-color);
}

.btn-outline:hover {
  background-color: var(--secondary-color);
  color: var(--text-color-light);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-subscribe {
  background-color: var(--secondary-color);
  color: var(--text-color-light);
  border-radius: 0;
  padding: 10px 25px; /* Ensure this matches input padding for height consistency if desired */
  white-space: nowrap;
}

.btn-subscribe:hover {
  background-color: #c07385;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 45px;
  height: 45px;
  background-color: var(--secondary-color);
  color: var(--text-color-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
  border: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.rtl-layout .back-to-top {
  right: auto;
  left: 30px;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: #c07385;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Header Styles */
.main-header {
  position: relative;
  z-index: 100;
}

.header-top {
  background-color: rgba(0, 0, 0, 0.1);
  padding: 10px 0;
}

.header-info span {
  margin-right: 20px;
  font-size: 0.9rem;
}

.rtl-layout .header-info span {
  margin-right: 0;
  margin-left: 20px;
}

.header-info span i {
  color: var(--secondary-color);
  margin-right: 5px;
}

.rtl-layout .header-info span i {
  margin-right: 0;
  margin-left: 5px;
}

.header-links {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.header-links a {
  color: var(--text-color-light);
  font-size: 0.9rem;
  margin-left: 15px;
}

.rtl-layout .header-links a {
  margin-left: 0;
  margin-right: 15px;
}

.header-links a:hover {
  color: var(--secondary-color);
}

.flag-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  padding: 2px;
  margin-right: 8px;
  overflow: hidden;
}

.rtl-layout .flag-icon {
  margin-right: 0;
  margin-left: 8px;
}

.flag-icon svg {
  width: 100%;
  height: auto;
  border-radius: 50%;
  display: block;
}

.language-switcher {
  position: relative;
  margin-right: 20px;
  cursor: pointer;
}

.rtl-layout .language-switcher {
  margin-right: 0;
  margin-left: 20px;
}

.current-language {
  display: flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 20px;
  background-color: rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.current-language:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.current-language span {
  color: var(--text-color-light);
  font-size: 0.9rem;
  margin-right: 5px;
}

.rtl-layout .current-language span {
  margin-right: 0;
  margin-left: 5px;
}

.current-language i {
  font-size: 0.7rem;
  color: var(--secondary-color);
}

.language-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  width: 150px;
  background-color: var(--primary-color);
  border-radius: 5px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  padding: 10px;
  margin-top: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 100;
}

.rtl-layout .language-dropdown {
  right: auto;
  left: 0;
}

.language-switcher:hover .language-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.language-dropdown::before {
  content: "";
  position: absolute;
  top: -5px;
  right: 20px;
  width: 10px;
  height: 10px;
  background-color: var(--primary-color);
  transform: rotate(45deg);
}

.rtl-layout .language-dropdown::before {
  right: auto;
  left: 20px;
}

.language-dropdown a {
  display: flex;
  align-items: center;
  padding: 8px;
  color: var(--text-color-light);
  border-radius: 5px;
  margin-bottom: 5px;
  transition: all 0.3s ease;
}

.language-dropdown a:last-child {
  margin-bottom: 0;
}

.language-dropdown a:hover,
.language-dropdown a.active {
  background-color: rgba(255, 255, 255, 0.1);
}

.mobile-language-switcher {
  display: flex;
  justify-content: space-between;
  margin: 15px 0;
  padding: 0 10px;
}

.mobile-language-switcher a {
  display: flex;
  align-items: center;
  padding: 8px 15px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  color: var(--text-color-light);
  transition: all 0.3s ease;
}

.mobile-language-switcher a:hover,
.mobile-language-switcher a.active {
  background-color: var(--secondary-color);
}

.mobile-language-switcher .flag-icon {
  width: 20px;
  height: 20px;
}

.footer-language-switcher {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-language-switcher a {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 5px;
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-color-light);
  transition: all 0.3s ease;
}

.footer-language-switcher a:hover,
.footer-language-switcher a.active {
  background-color: rgba(255, 255, 255, 0.1);
}

.footer-language-switcher a.active {
  border-left: 2px solid var(--secondary-color);
}

.rtl-layout .footer-language-switcher a.active {
  border-left: none;
  border-right: 2px solid var(--secondary-color);
}

.footer-language-switcher .flag-icon {
  width: 20px;
  height: 20px;
  margin-right: 10px;
}

.rtl-layout .footer-language-switcher .flag-icon {
  margin-right: 0;
  margin-left: 10px;
}

/* Currency Selector */
.currency-selector {
  position: relative;
  display: inline-block;
  margin: 0 15px;
}

.currency-selector .current-currency {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  padding: 5px 10px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  transition: all 0.3s ease;
  font-size: 14px;
  color: var(--text-color-light);
}

.currency-selector .current-currency:hover {
  background: rgba(255, 255, 255, 0.2);
}

.currency-selector .current-currency .currency-symbol {
  font-weight: 600;
  color: var(--secondary-color);
}

.currency-selector .current-currency i {
  font-size: 10px;
  margin-left: 5px;
  transition: transform 0.3s ease;
}

.currency-selector:hover .current-currency i {
  transform: rotate(180deg);
}

.currency-selector .currency-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  min-width: 250px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  margin-top: 10px;
  z-index: 1000;
}

.currency-selector:hover .currency-dropdown {
  opacity: 1;
  visibility: visible;
  margin-top: 5px;
}

.currency-selector .currency-options {
  padding: 10px 0;
}

.currency-selector .currency-group {
  padding: 0 15px;
}

.currency-selector .currency-group-title {
  font-size: 12px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  font-weight: 600;
}

.currency-selector .currency-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 15px;
  color: #333;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 14px;
}

.currency-selector .currency-option:hover {
  background: #f5f5f5;
  color: var(--primary-color);
}

.currency-selector .currency-option.active {
  background: rgba(210, 133, 153, 0.1);
  color: var(--primary-color);
  font-weight: 500;
}

.currency-selector .currency-option .currency-symbol {
  font-weight: 600;
  min-width: 25px;
}

.currency-selector .show-all-currencies {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 15px;
  color: var(--primary-color);
  text-decoration: none;
  border-top: 1px solid #e0e0e0;
  margin-top: 10px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.currency-selector .show-all-currencies:hover {
  background: #f5f5f5;
}

/* RTL Support for Currency Selector */
.rtl-layout .currency-selector {
  margin: 0 15px;
}

.rtl-layout .currency-selector .current-currency {
  flex-direction: row-reverse;
}

.rtl-layout .currency-selector .current-currency i {
  margin-left: 0;
  margin-right: 5px;
}

.rtl-layout .currency-selector .show-all-currencies i {
  transform: rotate(180deg);
}

.header-main {
  padding: 20px 0;
  border-bottom: 1px solid var(--border-color);
}

.logo img {
  max-height: 60px;
}

.search-bar {
  display: flex;
  align-items: center;
}

.search-bar form {
  display: flex;
  width: 100%;
  position: relative;
}

.search-bar input {
  width: 100%;
  padding: 12px 20px;
  padding-right: 60px; /* Space for button */
  border-radius: 30px;
  border: none;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text-color-light);
}

.rtl-layout .search-bar input {
  text-align: right;
  padding-right: 20px;
  padding-left: 60px; /* Space for button */
}

.search-bar input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.search-bar button {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--secondary-color);
  color: var(--text-color-light);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.rtl-layout .search-bar button {
  right: auto;
  left: 5px;
}

.search-bar button:hover {
  background-color: #c07385;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.rtl-layout .header-actions {
  justify-content: flex-end;
}

.header-icon {
  margin-left: 20px;
  position: relative;
}

.rtl-layout .header-icon {
  margin-left: 0;
  margin-right: 20px;
}

.header-icon a {
  color: var(--text-color-light);
  font-size: 1.2rem;
  display: inline-block;
}

.header-icon a:hover {
  color: var(--secondary-color);
}

.header-icon .count {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: var(--secondary-color);
  color: var(--text-color-light);
  font-size: 0.7rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rtl-layout .header-icon .count {
  right: auto;
  left: -8px;
}

.mobile-menu-toggle {
  background-color: transparent;
  color: var(--text-color-light);
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
}

.header-nav {
  background-color: rgba(0, 0, 0, 0.1);
}

.main-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav ul li {
  margin-right: 30px;
}

.rtl-layout .main-nav ul li {
  margin-right: 0;
  margin-left: 30px;
}

.main-nav ul li:last-child {
  margin-right: 0;
}

.rtl-layout .main-nav ul li:last-child {
  margin-left: 0;
}

.main-nav ul li a {
  display: block;
  padding: 15px 0;
  color: var(--text-color-light);
  font-weight: 500;
  position: relative;
}

.main-nav ul li a:after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  background-color: var(--secondary-color);
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  transition: all 0.3s ease;
}

.main-nav ul li a:hover:after,
.main-nav ul li a.active:after {
  width: 100%;
}

.main-nav ul li a:hover,
.main-nav ul li a.active {
  color: var(--secondary-color);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -300px; /* Start off-screen */
  width: 280px;
  height: 100%;
  background-color: var(--primary-color);
  z-index: 999;
  padding: 20px;
  transition: right 0.3s ease, left 0.3s ease; /* Smooth transition for both LTR/RTL */
  overflow-y: auto;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

.rtl-layout .mobile-menu {
  right: auto;
  left: -300px; /* Start off-screen for RTL */
}

.mobile-menu.active {
  right: 0;
}

.rtl-layout .mobile-menu.active {
  right: auto;
  left: 0;
}

.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 998;
  visibility: hidden;
  opacity: 0;
  transition: all 0.3s ease;
}

.menu-overlay.active {
  visibility: visible;
  opacity: 1;
}

.close-menu {
  text-align: right;
  margin-bottom: 20px;
}

.rtl-layout .close-menu {
  text-align: left;
}

.close-menu i {
  font-size: 1.5rem;
  color: var(--text-color-light);
  cursor: pointer;
}

.mobile-search {
  margin-bottom: 20px;
}

.mobile-search form {
  display: flex;
  position: relative;
}

.mobile-search input {
  width: 100%;
  padding: 10px 15px;
  padding-right: 40px; /* Space for button */
  border-radius: 5px;
  border: none;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text-color-light);
}

.rtl-layout .mobile-search input {
  text-align: right;
  padding-right: 15px;
  padding-left: 40px; /* Space for button */
}

.mobile-search input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.mobile-search button {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  background-color: transparent;
  color: var(--secondary-color);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem; /* Ensure icon size is reasonable */
}

.rtl-layout .mobile-search button {
  right: auto;
  left: 5px;
}

.mobile-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-nav ul li {
  margin-bottom: 10px;
}

.mobile-nav ul li a {
  display: block;
  color: var(--text-color-light);
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav ul li a:hover,
.mobile-nav ul li a.active {
  color: var(--secondary-color);
}

/* Mobile Header Search */
.mobile-header-search {
  padding: 10px 0;
  margin-bottom: 10px;
}

.mobile-header-search form {
  display: flex;
  position: relative;
  max-width: 100%;
}

.mobile-header-search input {
  width: 100%;
  padding: 10px 15px;
  padding-right: 45px;
  border-radius: 25px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text-color-light);
  font-size: 14px;
}

.rtl-layout .mobile-header-search input {
  text-align: right;
  padding-right: 15px;
  padding-left: 45px;
}

.mobile-header-search input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.mobile-header-search button {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--secondary-color);
  color: var(--text-color-light);
  border: none;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.rtl-layout .mobile-header-search button {
  right: auto;
  left: 5px;
}

.mobile-header-search button:hover {
  background-color: #c07385;
}

/* Footer Styles */
.main-footer {
  background-color: rgba(0, 0, 0, 0.2);
  padding-top: 70px;
}

.footer-top {
  padding-bottom: 50px;
}

.footer-widget {
  margin-bottom: 30px;
}

.footer-logo {
  margin-bottom: 20px;
}

.footer-logo img {
  max-height: 60px;
}

.footer-widget p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
  margin-bottom: 20px;
}

.social-links {
  display: flex;
}

.rtl-layout .social-links {
  justify-content: flex-start; /* This is fine as items themselves have margin */
}

.social-links a {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary-color);
  margin-right: 10px;
  transition: all 0.3s ease;
}

.rtl-layout .social-links a {
  margin-right: 0;
  margin-left: 10px;
}

.social-links a:hover {
  background-color: var(--secondary-color);
  color: var(--text-color-light);
  transform: translateY(-3px);
}

.widget-title {
  color: var(--text-color-light);
  font-size: 1.3rem;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}

.widget-title:after {
  content: "";
  position: absolute;
  width: 50px;
  height: 2px;
  background-color: var(--secondary-color);
  bottom: 0;
  left: 0;
}

.rtl-layout .widget-title:after {
  left: auto;
  right: 0;
}

.footer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-menu li {
  margin-bottom: 10px;
}

.footer-menu li a {
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
}

.footer-menu li a:hover {
  color: var(--secondary-color);
  padding-left: 5px;
}

.rtl-layout .footer-menu li a:hover {
  padding-left: 0;
  padding-right: 5px;
}

.contact-info {
  margin-top: 20px; /* This applies within .contact-widget, may not be needed if .contact-item has enough spacing */
}

.contact-item {
  display: flex;
  margin-bottom: 15px;
}

.contact-item i {
  color: var(--secondary-color);
  font-size: 1.2rem;
  margin-right: 15px;
  margin-top: 5px; /* Align icon nicely with multi-line text */
  flex-shrink: 0; /* Prevent icon from shrinking if text is long */
}

.rtl-layout .contact-item i {
  margin-right: 0;
  margin-left: 15px;
}

.contact-item p {
  margin-bottom: 0;
}

.footer-bottom {
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.copyright {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0;
  font-size: 0.9rem;
}

/* Newsletter Section */
.newsletter-section {
  padding: 50px 0;
}

.newsletter-box {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 40px;
  border: 1px solid var(--border-color);
}

.newsletter-content h3 {
  color: var(--text-color-light);
  margin-bottom: 10px;
  font-size: 1.5rem;
}

.newsletter-content p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0;
}

/* Newsletter Form */
.newsletter-form {
  margin-top: 20px; /* Spacing for mobile when content is above */
}

@media (min-width: 992px) {
  /* Apply margin-top only on larger screens where form is beside content */
  .newsletter-form {
    margin-top: 0;
  }
}

.newsletter-form .input-group {
  display: flex;
  width: 100%;
  /* box-sizing: border-box; Bootstrap normally handles this for input-group */
}

.newsletter-form input {
  flex: 1;
  padding: 15px 20px; /* Consistent padding */
  border: none;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text-color-light);
  border-radius: 0; /* Square corners */
  /* box-sizing: border-box; Bootstrap normally handles this for form-control */
  min-width: 0; /* Helps flex item shrink properly if needed */
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.rtl-layout .newsletter-form .input-group {
  flex-direction: row-reverse; /* Input on right, button on left for LTR */
}

.rtl-layout .newsletter-form input {
  text-align: right;
}

/* Mobile layout fixes for newsletter form */
@media (max-width: 575px) {
  .newsletter-form .input-group,
  .rtl-layout .newsletter-form .input-group {
    flex-direction: column; /* Stack input and button */
  }

  .newsletter-form input,
  .rtl-layout .newsletter-form input {
    margin-bottom: 15px; /* Space between input and button when stacked */
    width: 100%; /* MODIFIED: Ensure input takes full width */
    /* flex: 1 is not needed here as width: 100% defines its size in column layout */
  }

  .btn-subscribe,
  .rtl-layout .btn-subscribe {
    width: 100%; /* Button takes full width */
    padding: 15px 25px; /* Adjust padding to match input's vertical padding for visual consistency */
  }

  .newsletter-box {
    padding: 30px 20px; /* Reduce padding on smaller screens */
  }
}

/* Page Title */
.page-title {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 30px 0;
  margin-bottom: 30px;
  text-align: center;
}

.page-title h1 {
  color: var(--text-color-light);
  font-size: 2.2rem;
  margin-bottom: 10px;
}

.breadcrumb {
  background: transparent;
  justify-content: center;
  margin-bottom: 0;
  padding: 0;
}

.breadcrumb-item {
  font-size: 0.9rem;
}

.breadcrumb-item a {
  color: var(--secondary-color);
}

.breadcrumb-item.active {
  color: rgba(255, 255, 255, 0.7);
}

.breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.5);
}

.rtl-layout .breadcrumb-item + .breadcrumb-item {
  padding-left: 0;
  padding-right: 0.5rem;
}

.rtl-layout .breadcrumb-item + .breadcrumb-item::before {
  padding-left: 0.5rem;
  padding-right: 0;
  float: right;
}

/* Notification System */
.notification {
  position: fixed;
  top: 30px;
  right: 30px;
  width: 320px;
  padding: 15px;
  border-radius: 5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 9999;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transform: translateX(400px);
  opacity: 0;
  transition: all 0.3s ease;
}

.rtl-layout .notification {
  right: auto;
  left: 30px;
  transform: translateX(-400px);
  text-align: right;
}

.notification.show {
  transform: translateX(0);
  opacity: 1;
}

.notification-content {
  display: flex;
  align-items: center;
}

.notification-content i {
  margin-right: 10px;
  font-size: 1.2rem;
}

.rtl-layout .notification-content i {
  margin-right: 0;
  margin-left: 10px;
}

.notification-close {
  cursor: pointer;
}

.notification.success {
  background-color: #4caf50;
  color: white;
}

.notification.error {
  background-color: #f44336;
  color: white;
}

.notification.warning {
  background-color: #ff9800;
  color: white;
}

.notification.info {
  background-color: #2196f3;
  color: white;
}

/* Section Header */
.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-color-light);
  position: relative;
  display: inline-block;
}

.section-header h2:after {
  content: "";
  position: absolute;
  width: 80px;
  height: 3px;
  background-color: var(--secondary-color);
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
}

.section-header p {
  font-size: 1.1rem;
  color: var(--text-color-light);
  margin-top: 20px;
  opacity: 0.8;
}

.section-header.text-start {
  text-align: left;
}

.section-header.text-start h2:after {
  left: 0;
  transform: none;
}

.rtl-layout .section-header.text-start {
  text-align: right;
}

.rtl-layout .section-header.text-start h2:after {
  left: auto;
  right: 0;
}

/* Animation Classes */
@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-left {
  animation: fadeInLeft 1s ease forwards;
}

.fade-in-right {
  animation: fadeInRight 1s ease forwards;
}

.fade-in-up {
  animation: fadeInUp 1s ease forwards;
}

/* Responsive Styles */
@media (max-width: 1199px) {
  .main-nav ul li {
    margin-right: 20px;
  }

  .rtl-layout .main-nav ul li {
    margin-right: 0;
    margin-left: 20px;
  }
}

@media (max-width: 991px) {
  .header-main {
    padding: 15px 0;
  }

  .newsletter-content {
    text-align: center;
    margin-bottom: 20px; /* Add margin when content stacks above form */
  }
  .newsletter-form {
    margin-top: 0; /* Remove top margin for form if content is already spaced */
  }
  
  /* Keep header nav visible on mobile */
  .header-nav {
    display: block !important;
  }
  
  /* Adjust main nav for mobile */
  .main-nav ul {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .main-nav ul li {
    margin-right: 15px;
    margin-bottom: 5px;
  }
  
  .rtl-layout .main-nav ul li {
    margin-left: 15px;
    margin-right: 0;
  }
  
  .main-nav ul li a {
    padding: 10px 0;
    font-size: 14px;
  }
}

@media (max-width: 767px) {
  .logo img {
    max-height: 50px;
  }

  .section-header h2 {
    font-size: 1.8rem;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
  }

  .rtl-layout .back-to-top {
    right: auto;
    left: 20px;
  }

  .notification {
    width: calc(
      100% - 40px
    ); /* Make notification more responsive on small screens */
    max-width: 290px;
    top: 20px;
    right: 20px;
  }

  .rtl-layout .notification {
    right: auto;
    left: 20px;
  }
}

@media (max-width: 575px) {
  .header-icon {
    margin-left: 15px;
  }

  .rtl-layout .header-icon {
    margin-left: 0;
    margin-right: 15px;
  }
}
