/* Font Face for Richard - V119 */
@font-face {
  font-family: "Richard - V119";
  src: url("/public/fonts/richard-v119.woff2") format("woff2"), url("/public/fonts/richard-v119.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap; /* Ensures text is visible while font is loading */
}

/* General Body and Typography */
body {
  font-family: 'Tajawal', 'Poppins', sans-serif; /* Tajawal for Arabic, Poppins for English */
  background-color: #47005e;
  color: #e0e0e0;
  line-height: 1.6;
  overflow-x: hidden;
  font-weight: 400;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Tajawal', 'Poppins', sans-serif; /* Consistent font stack for headings */
  font-weight: 700; /* Bold weight for headings */
  color: #fff;
  line-height: 1.3;
  margin-bottom: 1rem;
}

/* Language-specific font settings */
[lang="ar"] {
  font-family: 'Tajawal', sans-serif;
}

[lang="en"] {
  font-family: 'Poppins', sans-serif;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("images/hero.png")
    no-repeat center center;
  background-size: cover;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding-top: 56px; /* Adjust for fixed navbar */
}

.hero-section h1 {
  font-size: 3.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  position: relative;
  top: 50px;
}

.hero-section p {
  font-size: 1.5rem;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
  position: relative;
  top: 20px;
}

@media (min-width: 992px) {
  .hero-section h1 {
    font-size: 5rem;
  }
  .hero-section p {
    font-size: 2rem;
  }
}

/* Splash Screen Styles */
#splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #47005e; /* Splash screen background color */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999; /* Ensure it's on top of everything */
  opacity: 1;
  transition: opacity 0.8s ease-out, visibility 0.8s ease-out;
}

#splash-screen.fade-out {
  opacity: 0;
  visibility: hidden;
}

/* Logo Animation */
@keyframes logoFloat {
  0% {
    transform: translateY(0) rotate(0deg) scale(0.3);
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  40% {
    transform: translateY(-30px) rotate(5deg) scale(1.1);
  }
  60% {
    transform: translateY(0) rotate(-3deg) scale(1);
  }
  80% {
    transform: translateY(-15px) rotate(2deg) scale(1.05);
  }
  100% {
    transform: translateY(0) rotate(0deg) scale(1);
    opacity: 1;
  }
}

@keyframes pulse {
  0% {
    filter: drop-shadow(0 0 5px rgba(255, 192, 203, 0.7));
  }
  50% {
    filter: drop-shadow(0 0 20px rgba(255, 105, 180, 0.9));
  }
  100% {
    filter: drop-shadow(0 0 5px rgba(255, 192, 203, 0.7));
  }
}

#splash-logo {
  width: 200px;
  height: auto;
  opacity: 0; /* Start hidden for animation */
  animation: logoFloat 2s ease-out forwards, pulse 3s ease-in-out infinite 2s;
}

@keyframes logo-animation {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  20% {
    opacity: 1;
    transform: scale(1);
  }
  80% {
    opacity: 1;
    transform: scale(1.05);
  }
  100% {
    opacity: 0;
    transform: scale(1.2);
  }
}

/* Fixed Social Media Bar */
.social-fixed-bar {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1060; /* Above most content, below modals */
  display: flex;
  flex-direction: column; /* Stack vertically */
  gap: 15px; /* Space between icons */
  padding: 10px 5px;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 0 10px 10px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.social-fixed-bar.left {
  left: 0;
  border-radius: 0 10px 10px 0;
}

.social-fixed-bar.right {
  right: 0;
  border-radius: 10px 0 0 10px;
}

.social-fixed-bar .social-icon {
  /* This targets the <a> tag */
  display: block; /* Ensure icons take full space for hover */
  padding: 5px;
}

.social-fixed-bar .social-icon i {
  /* This targets the <i> tag inside <a> */
  font-size: 1.8rem;
  transition: transform 0.2s ease, filter 0.2s ease;
}

/* Specific Social Icon Colors for Fixed Bar */
.social-fixed-bar .social-icon i.fa-facebook-f {
  color: #3b5998; /* Facebook Blue */
}
.social-fixed-bar .social-icon i.fa-instagram {
  color: #c13584; /* Instagram Purple/Pink */
}
.social-fixed-bar .social-icon i.fa-tiktok {
  color: #000000; /* TikTok Black */
}

.social-fixed-bar .social-icon i:hover {
  transform: scale(1.1);
  filter: brightness(1.2); /* Slight brightness increase on hover */
}

/* Hero Section */
.hero-section {
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("images/hero.png")
    no-repeat center center;
  background-size: cover;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding-top: 56px; /* Adjust for fixed navbar */
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 0;
  right: 0;
  height: 20px;
  background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0) 100%);
  z-index: -1;
}

.hero-section h1 {
  font-size: 3.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  margin-top: 400px;
}

.hero-section p {
  font-size: 1.5rem;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

@media (min-width: 992px) {
  .hero-section h1 {
    font-size: 5rem;
  }
  .hero-section p {
    font-size: 2rem;
  }
}

/* Navbar Customization */
.navbar {
  background-color: transparent !important; /* Make navbar transparent */
  box-shadow: none !important; /* Remove shadow */
  background-color: rgba(255, 255, 255, 0.2); /* أبيض شفاف */
  backdrop-filter: blur(10px); /* تأثير ضبابي ناعم */
  -webkit-backdrop-filter: blur(10px); /* دعم Safari */
}

.navbar-logo {
  height: 40px; /* Adjust as needed */
  width: auto;
  /* If the logo is an SVG or text, you might need to change its color here */
  /* filter: brightness(0) invert(1); /* Example for white logo if it's black by default */
}

.navbar-nav .nav-link {
  color: #fff !important; /* Changed to white */
  font-weight: 500;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: rgba(255, 255, 255, 0.7) !important; /* Lighter white on hover */
}

/* New Navbar Toggler (Grid Design) */
.menu-toggle {
  width: 30px;
  height: 30px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5px;
  cursor: pointer;
  border: none; /* Ensure no default button border */
  background: transparent; /* Ensure no default button background */
  padding: 0; /* Remove default padding */
  align-items: center; /* Center grid items vertically */
  justify-content: center; /* Center grid items horizontally */
}

.menu-toggle:focus {
  box-shadow: none; /* Remove focus outline */
}

.menu-toggle span {
  width: 12px;
  height: 12px;
  background: #fff; /* Changed to white for visibility on dark hero */
  transition: 0.3s;
  border-radius: 2px; /* Slightly rounded corners for the squares */
}

/* Animation for the open state (when navbar is NOT collapsed) */
.menu-toggle:not(.collapsed) span {
  opacity: 0; /* Hide all spans by default when open */
}

.menu-toggle:not(.collapsed) span:nth-child(1) {
  /* Top-left square: moves to center, rotates, scales, and turns black */
  transform: translate(8.5px, 8.5px) rotate(45deg) scale(1.2);
  background: #fff; /* Black for the 'X' */
  opacity: 1; /* Make it visible */
}

.menu-toggle:not(.collapsed) span:nth-child(4) {
  /* Bottom-right square: moves to center and rotates */
  transform: translate(-8.5px, -8.5px) rotate(-45deg);
  background: #fff; /* Black for the 'X' */
  opacity: 1; /* Make it visible */
}

/* Language Switcher Buttons (inside collapsed navbar and desktop) */
.language-switcher-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 15px; /* For mobile */
  margin-bottom: 15px; /* For mobile */
}

/* Adjust for desktop view */
@media (min-width: 992px) {
  .language-switcher-buttons {
    margin-top: 0;
    margin-bottom: 0;
  }
}

.language-switcher-buttons .btn {
  border-color: #fff; /* Changed to white */
  color: #fff; /* Changed to white */
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 0.3rem 0.8rem;
  font-size: 0.9rem;
  border-radius: 20px;
}

.language-switcher-buttons .btn.active {
  background-color: #fff; /* Changed to white */
  color: #47005e; /* New primary color for text on active white button */
}

.language-switcher-buttons .btn:hover:not(.active) {
  background-color: rgba(255, 255, 255, 0.1); /* Subtle white tint on hover */
}

/* Section Padding */
section {
  padding: 80px 0;
}

@media (min-width: 992px) {
  section {
    padding: 120px 0;
  }
}

/* Buttons */
.btn-light {
  background-color: #fff;
  color: #47005e; /* Changed to match the new primary color */
  border: none;
  transition: all 0.3s ease;
}

.btn-light:hover {
  background-color: #f0f0f0;
  color: #330044; /* Darker shade of the new primary color */
  transform: translateY(-2px);
}

.btn-dark {
  background-color: #47005e; /* Keeping brand color for dark button */
  color: #fff;
  border: none;
  transition: all 0.3s ease;
}

.btn-dark:hover {
  background-color: #47005e;
  transform: translateY(-2px);
}

/* About Us Section - 3 Images */


.about-image-item {
  flex: 0 0 auto;
  width: 100%;
  max-width: 500px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}



.about-image-item img {
  width: 120%; /* Make image smaller to show outline */
  height: auto;
  object-fit: contain; /* Ensure image fits without cropping */
  filter: grayscale(100%) brightness(0.8) sepia(1) hue-rotate(300deg) saturate(2); /* Artistic filter */
  
}

@media (max-width: 767px) {
  .about-image-item {
    width: 250px;
    height: 250px;
  }
}


/* Products Section - Unique Design (Always visible info) */
.product-carousel-container {
  overflow: hidden; /* Hide scrollbar but allow scrolling */
  padding-bottom: 20px; /* Space for potential scrollbar on some systems */
  position: relative;
}

.product-carousel {
  display: flex;
  flex-wrap: nowrap; /* Keep items in a single row */
  gap: 30px; /* Space between products */
  padding: 10px 0; /* Vertical padding */
  /* Animation will be handled by JS for seamless loop */
}

.product-item {
  flex: 0 0 auto; /* Don't grow, don't shrink, base on content */
  width: 280px; /* Fixed width for each product */
  height: 450px; /* Increased height to accommodate visible info */
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  /* Keep white background for product cards */
  display: flex;
  flex-direction: column; /* Stack image and info vertically */
  overflow: hidden; /* Ensure rounded corners apply */
}

.product-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.product-item img {
  width: 100%;
  height: 70%; /* Image takes 70% of card height */
  object-fit: cover;
  border-radius: 15px 15px 0 0; /* Rounded top corners */
  transition: transform 0.5s ease;
}

.product-item:hover img {
  transform: scale(1.05);
}

.product-details-bottom {
  height: 30%; /* Info takes 30% of card height */
/* Light background for info */
  color: #fff; /* Keep dark text on light background */
  padding: 15px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-around; /* Distribute content vertically */
  border-radius: 0 0 15px 15px; /* Rounded bottom corners */
}

.product-details-bottom h3 {
  font-size: 1rem;
  margin-bottom: 7px;
  color: #fff; /* Keep dark text on light background */
}

.product-details-bottom .btn {
  background-color: #47005ea1; /* Brand color for button */
  color: #ccc;
  border: none;
  padding: 8px 20px;
  font-weight: bold;
  transition: background-color 0.3s ease;
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.product-details-bottom .btn:hover {
  background-color: #fff;
  color: #47005ea1;
}

/* About Section */
#about {
  background-color: #47005e;
  position: relative;
  overflow: hidden;
  padding: 100px 0;
}

.about-content {
  position: relative;
  z-index: 2;
  padding: 40px;
  
}

.about-image-container {
  position: relative;
  margin: 0 auto 40px;
  max-width: 80%;
  z-index: 3;
}

.about-main-image {
 

  max-height: 500px;
  width: auto;
  height: auto;
  object-fit: cover;
}


.about-text-content {
  position: relative;
  z-index: 3;
  margin-top: 40px;
}

.about-description p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #fff;
  margin-bottom: 1.5rem;
}

.about-description p.lead {
  font-size: 1.2rem;
  font-weight: 400;
}

/* Animated Text Background */
.animated-text {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: visible; /* Changed from hidden to visible */
  z-index: 1;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: center; /* Center vertically */
  align-items: center; /* Center horizontally */
}

.animated-text span {
  color: #ffffff !important; /* Slightly transparent white */
  font-size: 3.5rem;
  font-weight: 800;
  font-family: 'Playfair Display', serif;
  white-space: nowrap;
  position: absolute;
  width: 100%;
  text-align: center;
  line-height: 1.5;
  animation: slideRightToLeft 20s linear infinite; /* Faster animation for mobile */
  transform: translateX(100%);
  will-change: transform; /* Improves animation performance */
}

/* Single line animation */
.animated-text span {
  animation: slideRightToLeft 15s linear infinite; /* Single line animation */
  top: 30%;
  transform: translateY(-50%) translateX(100%);
}

/* Make sure the text is visible on all devices */
@media (max-width: 768px) {
 
  
  .animated-text span {
    font-size: 2.5rem; /* Slightly smaller on mobile */
    white-space: nowrap; /* Prevent text wrapping */
    width: auto; /* Allow text to extend beyond viewport */
    padding: 0 20px; /* Add some padding */
  }
  .animated-text span{
    top: 100px;
  }
}

/* For very small devices */
@media (max-width: 480px) {
  .animated-text span {
    font-size: 2rem;
  }
}

@keyframes slideRightToLeft {
  0% {
    transform: translateX(100%);
    opacity: 0.8;
  }
  5% {
    opacity: 0.8;
  }
  90% {
    opacity: 0.8;
  }
  100% {
    transform: translateX(-100%);
    opacity: 0;
  }
}

/* Responsive Adjustments */
@media (max-width: 992px) {
  .about-content {
    padding: 30px 20px;
  }
  
  .about-image-container {
    max-width: 100%;
  }
  
  .about-main-image {
    max-height: 400px;
  }
  
  .animated-text span {
    font-size: 4rem;
  }
}

@media (max-width: 768px) {
  .about-content {
    padding: 20px 15px;
  }
  
  .about-main-image {
    max-height: 350px;
  }
  
  .about-text-content h2 {
    font-size: 2rem;
  }
  
  .about-description p {
    font-size: 1rem;
      line-height: 1.5;
            text-align: justify;
  }
  
  .about-description p.lead {
    font-size: 1.1rem;
  }
  
  .animated-text span {
    font-size: 3rem;
  }
}

@media (max-width: 576px) {
  .about-main-image {
    max-height: 250px;
  }
  
  .animated-text span {
    font-size: 2rem;
  }
}

/* Articles/Blog Section */
#blog-posts {
  background-color: #47005e;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.blog-card {
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(145deg, #5a007a, #4a0066);
  color: #fff;
}

.blog-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.blog-img-container {
  overflow: hidden;
  height: 220px;
  position: relative;
}

.blog-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

.blog-card:hover .blog-img {
  transform: scale(1.1);
}

.blog-content {
  padding: 25px;
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

.blog-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
  z-index: 0;
  opacity: 0.2;
  transition: opacity 0.3s ease;
}

.blog-card:hover::before {
  opacity: 0.4;
}

.blog-title {
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 15px;
  font-weight: 700;
  transition: color 0.3s ease;
  position: relative;
  line-height: 1.4;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* FAQ Section */
.accordion-item {
  border: none;
  margin-bottom: 10px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  

}

.accordion-button {
  background-color:#47005ed5; /* Slightly transparent white on dark background */
  color: #fff; /* White text on dark background */
  font-weight: bold;
  padding: 15px 20px;
    text-align: start;
}

.accordion-button:not(.collapsed) {
  background-color: #47005e; /* Slightly darker transparent white when open */
  color: #fff; /* White text when open */
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.125);
}

.accordion-body {
  padding: 20px;
  background-color: #47005e; /* Even lighter transparent white for body */
  color: #e0e0e0; /* Light gray text for body */

}

/* Contact Us Section */
#contactForm {
  background-color: rgba(255, 255, 255, 0.1); /* Transparent white background for contact form */
  border-radius: 15px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

#contactForm .form-label {
  font-weight: 500;
  color: #fff; /* White labels on dark background */
}

#contactForm .form-control {
  border-radius: 8px;
  padding: 12px 15px;
  border: 1px solid rgba(255, 255, 255, 0.3); /* Lighter border for dark background */
  background-color: rgba(255, 255, 255, 0.05); /* Slightly transparent input background */
  color: #fff; /* White text in inputs */
}

#contactForm .form-control::placeholder {
  color: rgba(255, 255, 255, 0.7); /* Lighter placeholder text */
}

#contactForm .form-control:focus {
  border-color: #47005e;
  box-shadow: 0 0 0 0.25rem rgba(139, 69, 19, 0.25);
}

/* Bootstrap Validation Feedback */
.form-control.is-invalid {
  border-color: #47005e; /* Lighter red for dark background */
}
.invalid-feedback {
  display: none; /* Hidden by default */
  width: 100%;
  margin-top: 0.25rem;
  font-size: 0.875em;
  color: #47005e; /* Lighter red for dark background */
}
.form-control.is-invalid ~ .invalid-feedback {
  display: block; /* Show when invalid */
}

/* Footer */
footer {
  background-color: transparent !important;
  color: #eee;
  padding: 30px 0;
}

/* Removed social-links from footer as per user request */
/* .social-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 15px;
}

.social-links a {
  display: block;
  margin-bottom: 10px;
  font-size: 1.5rem;
  transition: filter 0.3s ease;
}

.social-links a:last-child {
  margin-bottom: 0;
} */

.modal-content {
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  border: none;
}

.modal-header {
  background: linear-gradient(135deg, #47005e, #6a0dad);
  color: white;
  border-bottom: none;
  padding: 20px 25px;
  position: relative;
}

.modal-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #ff6b6b, #4ecdc4, #45b7d1);
}

.modal-title {
  font-family: "Playfair Display", "Noto Sans Arabic", serif; /* Added Arabic font */
  font-size: 1.8rem;
  color: white; /* White text for modal titles on gradient background */
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.modal-body {
  padding: 25px;
  color: #333; /* Dark text for modal body content on white background */
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.modal-footer {
  border-top: none;
  padding: 15px 25px;
}

/* RTL specific modal close button position */
.modal-header .btn-close {
  margin-left:10px !important; /* Pushes the button to the far left in RTL */
  filter: invert(1);
  opacity: 0.8;
  transition: all 0.3s ease;
}

.modal-header .btn-close:hover {
  opacity: 1;
  transform: scale(1.1);
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mb-5 {
  margin-bottom: 3rem !important;
}

.shadow-lg {
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}

/* Fixed Blog Button */
.fixed-blog-btn {
  position: fixed;
  bottom: 30px;
  left: 30px;
  display: inline-flex;
  align-items: center;
  padding: 12px 20px;
  background-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  color: #fff;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.3s ease;
  z-index: 1000;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.fixed-blog-btn:hover {
  background-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  color: #fff;
  text-decoration: none;
}

/* RTL Support */
[dir="rtl"] .fixed-blog-btn {
  left: auto;
  right: 30px;
}

[dir="rtl"] .fixed-blog-btn i {
  margin-right: 8px;
  margin-left: 0;
}

.fixed-blog-btn i {
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.fixed-blog-btn:hover i {
  transform: translateX(3px);
}

[dir="rtl"] .fixed-blog-btn:hover i {
  transform: translateX(-3px);
}

/* Back to Blog Button */
.back-to-blog {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background-color: #9c27b0;
  color: white;
  padding: 12px 24px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.back-to-blog.show {
  opacity: 0;
  transform: translateY(0);
}

.back-to-blog.scrolled-down {
  opacity: 1;
}

.back-to-blog.visible {
  bottom: 30px;
  opacity: 1;
}

.back-to-blog:hover {
  background-color: #7b1fa2;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* RTL Support */
[dir='rtl'] .back-to-blog {
  right: auto;
  left: 20px;
}

/* Floating Blog Button */
#blogButton {
  display: block !important; /* Force display */
  opacity: 1 !important; /* Force visibility */
  transform: none !important; /* Remove any transforms */
  right: 20px !important;
  bottom: 20px !important;
  background: #8e2de2 !important;
  color: white !important;
  border: none !important;
  border-radius: 50px !important;
  padding: 12px 25px !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
  z-index: 99999 !important;
  position: fixed !important;
  font-family: 'Tajawal', sans-serif !important;
  position: fixed;
  right: 30px;
  bottom: 30px;
  background: #8e2de2;
  color: white;
  border: none;
  border-radius: 50px;
  padding: 12px 25px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  opacity: 0;
  transform: translateY(100px);
  transition: all 0.5s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Tajawal', sans-serif;
  pointer-events: none;
}

#blogButton.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

#blogButton:hover {
  background: #7b1fa2;
  transform: translateY(-5px);
}

.blog-floating-btn:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.blog-floating-btn i {
  font-size: 18px;
}

/* Footer Styles */
.footer-section {
  background-color: #1a1a1a;
  padding: 40px 0 20px;
  color: #ffffff;
  font-family: 'Tajawal', 'Poppins', sans-serif;
  direction: rtl;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.footer-logo {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-logo-img {
  width: 100px;
  height: auto;
  margin-bottom: 15px;
}

.footer-brand {
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 20px;
  font-family: 'Tajawal', 'Poppins', sans-serif;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 25px;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: #fff;
  color: #47005e;
  border-radius: 50%;
  font-size: 18px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-icon:hover {
  background-color: #47005e;
  transform: translateY(-3px);
  color: #ffffff;
}

.copyright {
  font-size: 14px;
  color: #999999;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #333333;
  width: 100%;
  max-width: 500px;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .footer-section {
    padding: 30px 0 15px;
  }
  
  .footer-logo-img {
    width: 80px;
  }
  
  .footer-brand {
    font-size: 20px;
  }
  
  .social-icons {
    gap: 15px;
  }
  
  .social-icon {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
  
  .copyright {
    font-size: 12px;
  }
}

/* FAQ Accordion - Hide arrow icon */
.accordion-button::after {
  display: none !important;
}

/* Responsive adjustments for general layout */
@media (max-width: 767px) {
  .display-3 {
    font-size: 2.5rem;
  }
  .display-5 {
    font-size: 2rem;
  }
  .lead {
    font-size: 1rem;
  }
  .btn-lg {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
  }
  .navbar-brand {
    font-size: 1.5rem !important;
  }
  .product-item {
    width: 220px; /* Smaller width for mobile */
    height: 380px; /* Adjusted height for mobile */
  }
}

/* RTL Specific Styles */
body[dir="rtl"] {
  direction: rtl;
  text-align: right;
}

body[dir="rtl"] .navbar-nav .nav-link {
  text-align: right;
}

body[dir="rtl"] .navbar-nav {
  margin-left: auto; /* Reset for LTR */
  margin-right: 0 !important; /* Push to right for RTL */
}

body[dir="rtl"] .text-lg-start {
  text-align: right !important;
}

body[dir="rtl"] .text-lg-end {
  text-align: left !important;
}

body[dir="rtl"] .product-info {
  text-align: right;
}

body[dir="rtl"] .accordion-button {
  text-align: right;
}

body[dir="rtl"] .form-label {
  text-align: right;
}

/* Adjust article read more button for RTL */
body[dir="rtl"] .article-card .btn-link {
  flex-direction: row-reverse; /* Reverse order for RTL */
  justify-content: flex-start; /* Align to right for RTL */
}

/* Form Controls Enhancement */
.form-control, .form-select {
  border: 2px solid #e9ecef;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.9);
}

.form-control:focus, .form-select:focus {
  border-color: #6a0dad;
  box-shadow: 0 0 0 0.2rem rgba(106, 13, 173, 0.25);
  background: rgba(255, 255, 255, 1);
  transform: translateY(-2px);
}

.form-control::placeholder {
  color: #6c757d;
  opacity: 0.7;
}

.form-label {
  font-weight: 600;
  color: #495057;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
}

.form-label i {
  color: #6a0dad;
  margin-left: 8px;
}

/* Button Enhancements */
.btn-dark {
  background: linear-gradient(135deg, #47005e, #6a0dad);
  border: none;
  border-radius: 25px;
  padding: 12px 24px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(106, 13, 173, 0.3);
}

.btn-dark:hover {
  background: linear-gradient(135deg, #6a0dad, #47005e);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(106, 13, 173, 0.4);
}

.btn-dark:active {
  transform: translateY(-1px);
}

/* Alert Enhancements */
.alert {
  border: none;
  border-radius: 12px;
  padding: 16px 20px;
  font-weight: 500;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.alert-info {
  background: linear-gradient(135deg, #d1ecf1, #bee5eb);
  color: #0c5460;
  border-left: 4px solid #17a2b8;
}

.alert-success {
  background: linear-gradient(135deg, #d4edda, #c3e6cb);
  color: #155724;
  border-left: 4px solid #28a745;
}

.alert-warning {
  background: linear-gradient(135deg, #fff3cd, #ffeaa7);
  color: #856404;
  border-left: 4px solid #ffc107;
}

.alert-danger {
  background: linear-gradient(135deg, #f8d7da, #f5c6cb);
  color: #721c24;
  border-left: 4px solid #dc3545;
}

/* Invalid Feedback Enhancement */
.invalid-feedback {
  display: flex;
  align-items: center;
  font-size: 0.875rem;
  margin-top: 6px;
  color: #dc3545;
}

.invalid-feedback i {
  margin-left: 4px;
  font-size: 0.75rem;
}

/* Form Validation States */
.form-control.is-invalid,
.form-select.is-invalid {
  border-color: #dc3545;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.form-control.is-invalid:focus,
.form-select.is-invalid:focus {
  border-color: #dc3545;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Country Selection Enhancement */
#countrySelection {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  padding: 20px;
  border-radius: 15px;
  border: 2px dashed #dee2e6;
  text-align: center;
}

#countrySelection:hover {
  border-color: #6a0dad;
  background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
}

/* WhatsApp Button - Same as site colors */
.btn-dark[data-i18n="placeOrderWhatsApp"] {
  background: linear-gradient(135deg, #47005e, #6a0dad);
  box-shadow: 0 4px 15px rgba(106, 13, 173, 0.3);
}

.btn-dark[data-i18n="placeOrderWhatsApp"]:hover {
  background: linear-gradient(135deg, #6a0dad, #47005e);
  box-shadow: 0 8px 25px rgba(106, 13, 173, 0.4);
}

/* Loading Spinner */
.fa-spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Modal Animation */
.modal.fade .modal-dialog {
  transition: transform 0.3s ease-out;
  transform: translate(0, -50px);
}

.modal.show .modal-dialog {
  transform: none;
}

/* Responsive Form */
@media (max-width: 768px) {
  .modal-body {
    padding: 20px;
  }
  
  .form-control, .form-select {
    padding: 10px 14px;
    font-size: 0.95rem;
  }
  
  .btn-dark {
    padding: 10px 20px;
    font-size: 1rem;
  }
}
