/* Custom CSS for TerraFeed Website - Dark Gray & Green Theme */

:root {
  --primary-color: #27ae60;
  /* Green */
  --secondary-color: #2ecc71;
  /* Light Green */
  --accent-color: #2c3e50;
  /* Dark Gray */
  --success-color: #34495e;
  /* Medium Gray */
  --text-dark: #2c3e50;
  --text-light: #7f8c8d;
  --bg-light: #f8f9fa;
  --bg-dark: #1a252f;
  /* Very Dark Gray */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Cairo", sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: #fff9ed !important;
}

/* Typography */
.section-title {
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

p {
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

/* Bootstrap overrides */
.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  font-weight: 600;
  padding: 0.75rem 2rem;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  transform: translateY(-2px);
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-success {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
}

.btn-success:hover {
  background-color: var(--success-color);
  border-color: var(--success-color);
  transform: translateY(-2px);
}

.text-primary {
  color: var(--primary-color) !important;
}

.text-success {
  color: var(--accent-color) !important;
}

/* Navigation */
.navbar {
  transition: all 0.3s ease;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
}

.navbar-brand {
  font-size: 1.5rem;
  color: var(--primary-color) !important;
  font-weight: 700;
}

.nav-link {
  font-weight: 500;
  margin: 0 0.5rem;
  transition: color 0.3s ease;
  color: var(--text-dark);
}

.dropdown-item:hover {
  color: var(--primary-color) !important;
}

.nav-link:hover {
  color: var(--primary-color) !important;
}

.language-switcher .btn {
  border-radius: 20px;
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--bg-light);
}

.language-switcher .btn:hover {
  border-radius: 20px;
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: var(--bg-light);
}

/* Hero Section */
.hero-section {
  background-image: url("../img/2148377557-ar.jpg");

  background-size: cover;
  background-position: center;
  color: white;
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

html[dir="rtl"] .hero-section {
  background-image: url("../img/2148377557.jpg");
  /* Image for RTL */
}

.bg-products {
  background-image: url("../img/429.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg,
      rgba(44, 62, 80, 0.9) 0%,
      rgba(26, 37, 47, 0.8) 100%);
  background-image: url(img/2148377558.jpg);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-image img {
  animation: float 6s ease-in-out infinite;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-20px);
  }

  100% {
    transform: translateY(0px);
  }
}

.hero-buttons .btn {
  margin-bottom: 1rem;
  margin-right: 1rem;
}

.btn-check:checked+.btn,
.btn.active,
.btn.show,
.btn:first-child:active,
:not(.btn-check)+.btn:active {
  background-color: var(--accent-color) !important;
  border-color: var(--accent-color) !important;
  /* Add any other styles for the active state */
}

.btn-check:checked+.btn,
.btn.active,
.btn.show,
.btn:first-child:active,
:not(.btn-check)+.btn:active {
  color: white !important;
  text-align: center;
}

.hero-buttons .btn-success {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
}

/* Features Section */
.feature-card {
  background: white;
  border-radius: 15px;
  transition: all 0.3s ease;
  border: 1px solid #e9ecef;
  height: 100%;
  overflow: hidden;
  position: relative;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(44, 62, 80, 0.15);
}

.feature-icon i {
  font-size: 3rem;
  color: var(--accent-color);
  transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon i {
  transform: scale(1.1);
}

/* About Section */
.about-content {
  padding-left: 2rem;
}

.stat-item {
  text-align: center;
  padding: 2rem 1rem;
  background: linear-gradient(135deg,
      var(--primary-color),
      var(--secondary-color));
  border-radius: 15px;
  color: white;
  transition: transform 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-5px);
}

.stat-item h3 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0;
  color: var(--bg-light);
}

/* Products Section */
.product-card {
  border: none;
  transition: all 0.3s ease;
  overflow: hidden;
  border-radius: 15px;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(44, 62, 80, 0.2);
}

.product-card img {
  /* height: 250px; */
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.product-card .card-body {
  padding: 0 0 1.5rem;
}

.product-card .card-title {
  font-weight: 600;
  font-size: larger;
  color: var(--dark-color);
  margin: 0.75rem;
  padding-top: 25px;

}

/* Contact Section */
.contact-form-wrapper {
  background: white;
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(44, 62, 80, 0.1);
  border: 1px solid rgba(39, 174, 96, 0.1);
}

.contact-info i {
  font-size: 2.5rem;
  display: block;
  margin: 0 auto 1rem;
  color: var(--accent-color);
}

.contact-info h5 {
  color: var(--primary-color);
  font-weight: 600;
}

.form-control {
  border: 2px solid #e9ecef;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 0.2rem rgba(39, 174, 96, 0.25);
}

/* Footer */
footer {
  background: var(--bg-dark) !important;
  color: #ecf0f1;
}

.footer-brand {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-color);
}

.social-links a {
  font-size: 1.25rem;
  transition: all 0.3s ease;
  color: #bdc3c7;
}

.social-links a:hover {
  transform: scale(1.2);
  color: var(--primary-color) !important;
}

/* RTL Support for Arabic */
[dir="rtl"] {
  text-align: right;
}

[dir="rtl"] .navbar-nav {
  margin-right: 0;
  margin-left: auto;
}

[dir="rtl"] .about-content {
  padding-right: 2rem;
  padding-left: 0;
}

[dir="rtl"] .text-md-end {
  text-align: right !important;
}

[dir="rtl"] .hero-buttons .btn {
  margin-left: 1rem;
  margin-right: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-section {
    text-align: center;
    min-height: 70vh;
  }

  .hero-buttons .btn {
    display: block;
    width: 100%;
    margin-bottom: 1rem;
    margin-right: 0;
  }

  .about-content {
    padding-left: 0;
    margin-top: 2rem;
  }

  [dir="rtl"] .about-content {
    padding-right: 0;
  }

  .feature-icon i {
    font-size: 2.5rem;
  }

  .contact-form-wrapper {
    padding: 2rem;
  }

  .stat-item {
    margin-bottom: 1rem;
  }
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Loading animation */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Custom scrollbar */

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-dark);
  /* Use a darker background for the track */
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  /* Set the thumb to the primary color */
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-color);
}

/* Page Header Styles */
.page-header {
  background: linear-gradient(135deg,
      var(--bg-dark) 0%,
      var(--primary-color) 100%);
  padding: 120px 0 80px;
  color: white;
  position: relative;
}

.page-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

/* Spices Page Styles */
.spice-filters .filter-btn {
  transition: all 0.3s ease;
  border-radius: 25px;
}

.spice-filters .filter-btn.active {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: white;
}

.spice-card {
  transition: all 0.3s ease;
  border-radius: 15px;
  overflow: hidden;
}

.spice-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(44, 62, 80, 0.15);
}

.spice-origin {
  color: var(--text-light);
  font-size: 0.9rem;
}

.spice-details h6 {
  color: var(--accent-color);
  font-weight: 600;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.spice-details ul {
  margin-bottom: 0.5rem;
}

.care-tip {
  background: white;
  border-radius: 15px;
  transition: all 0.3s ease;
  height: 100%;
  border-left: 4px solid var(--accent-color);
}

.care-tip:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(44, 62, 80, 0.1);
}

/* Recipe Page Styles */
.recipe-filters .filter-btn {
  transition: all 0.3s ease;
  border-radius: 25px;
}

.recipe-filters .filter-btn.active {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: white;
}

.recipe-card {
  transition: all 0.3s ease;
  border-radius: 15px;
}

.recipe-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(44, 62, 80, 0.15);
}

.recipe-meta .badge {
  font-size: 0.8rem;
  background-color: var(--primary-color);
}

.recipe-spices .badge {
  font-size: 0.75rem;
  margin-bottom: 0.25rem;
  background-color: var(--accent-color);
}

.recipe-rating {
  color: #f39c12;
  font-size: 1.1rem;
}

.favorite-btn {
  border: none;
  background: transparent;
  color: #e74c3c;
  transition: all 0.3s ease;
}

.favorite-btn:hover,
.favorite-btn.active {
  background-color: #e74c3c;
  color: white;
  transform: scale(1.1);
}

/* Blog Page Styles */
.featured-post {
  border: 2px solid var(--accent-color);
  border-radius: 15px;
}

.blog-card {
  transition: all 0.3s ease;
  border-radius: 15px;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(44, 62, 80, 0.1);
}

.blog-meta {
  border-top: 1px solid #e9ecef;
  padding-top: 1rem;
}

/* Wholesale Page Styles */
.wholesale-benefit {
  background: white;
  border-radius: 15px;
  transition: all 0.3s ease;
  height: 100%;
  border-left: 4px solid var(--accent-color);
}

.wholesale-benefit:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(44, 62, 80, 0.1);
}

.wholesale-category {
  transition: all 0.3s ease;
  border-radius: 15px;
}

.wholesale-category:hover {
  transform: translateY(-5px);
}

.pricing-card {
  transition: all 0.3s ease;
  border-radius: 15px;
  border: 2px solid transparent;
}

.pricing-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(44, 62, 80, 0.15);
  border-color: var(--accent-color);
}

.pricing-card.featured {
  border-color: var(--accent-color);
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.pricing-discount {
  padding: 1rem;
  background: linear-gradient(135deg,
      var(--accent-color),
      var(--success-color));
  color: white;
  border-radius: 10px;
  margin: 1rem 0;
}

.wholesale-contact-form {
  background: white;
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(44, 62, 80, 0.1);
  border: 1px solid rgba(39, 174, 96, 0.1);
}

.volume-calculator {
  border: 1px solid #dee2e6;
  border-radius: 15px;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

/* Map Styles */
.map-container {
  background: white;
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(44, 62, 80, 0.1);
  border: 1px solid rgba(39, 174, 96, 0.1);
}

#map {
  min-height: 400px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  border-radius: 15px;
}

/* Responsive Design Enhancements */
@media (max-width: 768px) {
  .page-header {
    padding: 100px 0 60px;
  }

  .page-header h1 {
    font-size: 2.5rem;
  }

  .spice-filters .filter-btn,
  .recipe-filters .filter-btn {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    margin-bottom: 0.5rem;
  }

  .wholesale-contact-form,
  .map-container {
    padding: 2rem;
  }

  .volume-calculator {
    padding: 1rem;
  }

  .pricing-card .card-body {
    padding: 1.5rem;
  }

  .contact-form-wrapper {
    padding: 2rem;
  }
}

/* Animation Classes */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.scale-in {
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.4s ease;
}

.scale-in.visible {
  opacity: 1;
  transform: scale(1);
}

/* Accent Elements */
.accent-border {
  border-left: 4px solid var(--accent-color);
  padding-left: 1rem;
}

.accent-bg {
  background: linear-gradient(135deg,
      var(--accent-color),
      var(--success-color));
  color: white;
}

.accent-text {
  color: var(--accent-color);
}

.primary-bg {
  background: linear-gradient(135deg,
      var(--primary-color),
      var(--secondary-color));
  color: white;
}

.text-center {
  text-align: center !important;
  color: var(--primary-color);
}

/* Print Styles */
@media print {

  .navbar,
  .footer,
  .btn,
  .modal-footer {
    display: none !important;
  }

  .modal-body {
    padding: 0;
  }

  .page-header {
    background: none;
    color: black;
    padding: 20px 0;
  }
}

@media (min-width: 768px) {
  .flex-md-row {
    flex-direction: row !important;
    margin-bottom: 39px;
  }
}

@media (max-width: 440px) {
  .img-fluid {
    margin-top: 25%;
  }

  footer p {
    text-align: center !important;
  }
}

@media (max-width: 990px) {
  .img-fluid {
    margin-top: 20%;
  }
}

/* Base responsive text alignment */
.responsive-text {
  text-align: center;
}

/* Desktop: Respect dir attribute */
@media (min-width: 992px) {

  /* LTR (Left to Right) - Default */
  [dir="ltr"] .responsive-text,
  .responsive-text {
    text-align: left;
  }

  /* RTL (Right to Left) - Arabic */
  [dir="rtl"] .responsive-text {
    text-align: right;
  }
}

/* Navigation responsive alignment */
.navbar-nav {
  text-align: center;
}

@media (min-width: 992px) {
  [dir="ltr"] .navbar-nav {
    margin-left: auto;
    margin-right: 1rem;
  }

  [dir="rtl"] .navbar-nav {
    margin-right: auto;
    margin-left: 1rem;
  }
}

/* Hero section responsive alignment */
.hero-content {
  text-align: center;
}

@media (min-width: 992px) {
  [dir="ltr"] .hero-content {
    text-align: left;
  }

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

/* Hero buttons responsive alignment */
.hero-buttons {
  justify-content: center;
}

@media (min-width: 992px) {
  [dir="ltr"] .hero-buttons {
    justify-content: flex-start;
  }

  [dir="rtl"] .hero-buttons {
    justify-content: flex-end;
  }
}

/* About section responsive alignment */
.about-content {
  text-align: center;
}

@media (min-width: 992px) {
  [dir="ltr"] .about-content {
    text-align: left;
  }

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

/* Contact info responsive alignment */
.contact-info {
  text-align: center;
}

@media (min-width: 992px) {
  [dir="ltr"] .contact-info {
    text-align: left;
  }

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

/* Footer responsive alignment */
.footer-brand {
  text-align: center;
}

.social-links {
  text-align: center;
  margin-top: 1rem;
}

@media (min-width: 768px) {
  [dir="ltr"] .footer-brand {
    text-align: left;
  }

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

  [dir="ltr"] .social-links {
    text-align: right;
    margin-top: 0;
  }

  [dir="rtl"] .social-links {
    text-align: left;
    margin-top: 0;
  }
}

/* Language switcher responsive positioning */
.language-switcher {
  margin-top: 1rem;
  text-align: center;
}

@media (min-width: 992px) {
  .language-switcher {
    margin-top: 0;
  }
}

/* Form responsive alignment */
.contact-form-wrapper {
  text-align: center;
}

@media (min-width: 992px) {
  [dir="ltr"] .contact-form-wrapper {
    text-align: left;
  }

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

/* Feature cards - always centered */
.feature-card {
  text-align: center;
}

/* Product cards - always centered */
.product-card {
  text-align: center;
}

/* Utility classes for manual control */
.text-center-mobile {
  text-align: center;
}

@media (min-width: 992px) {
  .text-center-mobile {
    text-align: inherit;
  }

  [dir="ltr"] .text-start-desktop {
    text-align: left;
  }

  [dir="rtl"] .text-end-desktop {
    text-align: right;
  }
}

/* RTL specific adjustments */
[dir="rtl"] .fa-seedling:before,
.fa-sprout:before {
  flex-direction: row-reverse;
  margin: 0 6px !important;
}

[dir="rtl"] .hero-buttons .btn {
  margin-left: 1rem;
  margin-right: 0;
}

[dir="rtl"] .social-links a {
  margin-left: 1rem;
  margin-right: 0;
}

[dir="rtl"] .social-links a:last-child {
  margin-left: 0;
}

/* [lang="ar"] .hero-section {
  background-image: url("../img/2148377557-ar.jpg");
    background-size: cover;
  background-position: center;
  color: white;
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
} */
.active {
  color: var(--primary-color) !important;
}

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

footer p a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

.ltr-number {
  direction: ltr;
  unicode-bidi: plaintext;
  font-family: Arial, Helvetica, sans-serif;
}



.radius {
  border-radius: 50px 0 50px 0;

}

.t {
  background: transparent;
  background-color: #fecf07;
  padding: 12px 24px;
  border-radius: 12px 0 12px 0;
  display: inline-block;
  text-decoration: none;
  box-sizing: border-box;
  font-family: 'Lexend', Helvetica, Arial, Lucida, sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  color: #000000;
  letter-spacing: 1px;
  line-height: 12px;
  font-size: 12px;

}

.t:hover {
  background-color: #e4ab11;
}


/* Category Filter Buttons */
.category-btn {
  border-radius: 12px;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.category-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.category-btn.active {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  color: white !important;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.subcategory-btn {
  border-radius: 8px;
  font-size: 0.85rem;
  transition: all 0.3s ease;
}

.subcategory-btn:hover {
  transform: translateX(5px);
}

.subcategory-btn.active {
  background-color: var(--secondary-color) !important;
  border-color: var(--secondary-color) !important;
  color: white !important;
}


/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
.h {
  margin-top: 69px;
  width: 100%;
  min-height: 100vh;
  position: relative;
  /* padding: 120px 0 60px 0; */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Background video */
.h video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

@media (max-width=370) {
  .h video {
    object-fit: contain;
  }
}

/* Loading Circle Styles */
.loading-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top-color: var(--secondary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  z-index: 10;
}

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

/* Utility classes to manage visibility */
.hidden {
  display: none !important;
}

.visible {
  display: block !important;
}