/* Imports */
@import url('https://fonts.googleapis.com/css2?family=Assistant:wght@300;400;600;700&family=Rubik:wght@300;400;500;700&display=swap');

:root {
  /* Color Palette - Premium HSL Sage Green & Organic warm tones */
  --primary: hsl(140, 20%, 35%);
  --primary-dark: hsl(140, 24%, 22%);
  --primary-light: hsl(140, 25%, 96%);
  --primary-transparent: rgba(69, 102, 80, 0.08);

  --bg-cream: hsl(35, 30%, 98%);
  --bg-white: hsl(0, 0%, 100%);

  --beige-light: hsl(35, 25%, 96%);
  --beige-dark: hsl(35, 15%, 88%);

  --text-dark: hsl(140, 15%, 12%);
  --text-muted: hsl(140, 8%, 42%);

  --accent-ochre: hsl(35, 60%, 48%);
  --accent-ochre-dark: hsl(35, 60%, 38%);
  --accent-ochre-light: hsl(35, 50%, 93%);

  --shadow-sm: 0 4px 12px rgba(69, 102, 80, 0.03);
  --shadow-md: 0 12px 36px rgba(69, 102, 80, 0.06);
  --shadow-lg: 0 24px 64px rgba(69, 102, 80, 0.1);

  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --border-radius-sm: 12px;
  --border-radius-md: 20px;
  --border-radius-lg: 32px;
}

/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Fix for scroll jumping on refresh while preserving smooth scrolling for anchor links */
html:focus-within {
  scroll-behavior: smooth;
}

body {
  font-family: 'Rubik', 'Assistant', sans-serif;
  direction: rtl;
  text-align: right;
  background-color: var(--bg-cream);
  color: var(--text-dark);
  line-height: 1.7;
  overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Rubik', sans-serif;
  color: var(--primary-dark);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

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

a:hover {
  color: var(--accent-ochre);
}

/* General Layout Elements */
.container {
  width: 92%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-padding {
  padding: 100px 0;
}

.text-center {
  text-align: center;
}

.max-w-700 {
  max-width: 760px;
  margin: 0 auto;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 25px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  right: 50%;
  transform: translateX(50%);
  width: 45px;
  height: 4px;
  background-color: var(--accent-ochre);
  border-radius: 4px;
}

/* Header & Navigation */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(253, 252, 250, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(69, 102, 80, 0.06);
  transition: var(--transition);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  min-height: 90px;
}

.logo a {
  display: flex;
  align-items: center;
}

.logo-img {
  height: auto;
  width: 220px;
  /* Reduced to a clean, readable medium size */
  max-height: 80px;
  /* Safeguard height to fit navbar */
  margin: 0;
  object-fit: contain;
  display: block;
  transition: var(--transition);
}

.logo-img:hover {
  transform: scale(1.02);
}

header nav {
  display: flex;
  justify-content: center;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 24px;
  align-items: center;
  white-space: nowrap;
  /* Prevents text from breaking into multiple lines */
}

@media (min-width: 769px) {
  .nav-container {
    position: relative;
  }

  header nav {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: max-content;
    /* Prevents the absolute nav from shrinking and wrapping items */
  }
}

.nav-links a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-dark);
  padding: 8px 14px;
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a:hover,
.nav-links a:active,
.nav-links a.active {
  color: var(--primary);
  background-color: var(--primary-transparent);
}

/* Dropdown Menu Styles */
.nav-links li {
  position: relative;
  list-style: none;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background-color: var(--bg-cream);
  border: 1px solid var(--beige-dark);
  border-radius: var(--border-radius-sm);
  box-shadow: var(--shadow-md);
  list-style: none;
  min-width: 190px;
  padding: 8px 0;
  z-index: 1001;
}

.dropdown-menu li {
  width: 100%;
  list-style: none;
}

.dropdown-menu a {
  display: block;
  padding: 10px 16px;
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-dark);
  border-radius: 0;
  white-space: nowrap;
}

.dropdown-menu a:hover {
  background-color: var(--primary-light);
  color: var(--primary);
}

/* Show dropdown when .open class is set (click-based, all devices) */
.dropdown.open .dropdown-menu {
  display: block;
}

.dropdown.open .dropdown-toggle .arrow {
  transform: rotate(180deg);
}

.dropdown-toggle .arrow {
  font-size: 0.65rem;
  transition: var(--transition);
  display: inline-block;
}

.nav-cta {
  background-color: var(--accent-ochre);
  color: var(--bg-white) !important;
  font-weight: 600 !important;
  border-radius: 30px !important;
  padding: 8px 16px !important;
}

.nav-cta:hover {
  background-color: var(--accent-ochre-dark) !important;
  color: var(--bg-white) !important;
}

/* Hamburger menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
  background: transparent;
  border: none;
  z-index: 1005; /* Ensure it is clickable above other elements */
}

.menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--primary-dark);
  border-radius: 3px;
  transition: var(--transition);
}

/* Button UI */
.btn {
  display: inline-block;
  padding: 12px 28px;
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--bg-white);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  color: var(--bg-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-accent {
  background-color: var(--accent-ochre);
  color: var(--bg-white);
}

.btn-accent:hover {
  background-color: var(--accent-ochre-dark);
  color: var(--bg-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

.btn-outline:hover {
  background-color: var(--primary);
  color: var(--bg-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Hero Section */
.hero {
  position: relative;
  padding: 160px 0 180px;
  background-image: linear-gradient(rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.35)), url('../images/warm_meal.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: scroll;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 1;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--primary-light);
  clip-path: ellipse(60% 80% at 50% 100%);
  z-index: 4;
}

.hero-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  z-index: 3;
  position: relative;
}

.hero-content {
  max-width: 820px;
  width: 100%;
  background: rgba(253, 252, 250, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 60px 50px;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: heroFadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 5;
}

@keyframes heroFadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-title {
  font-size: 3.2rem;
  line-height: 1.25;
  margin-bottom: 24px;
  color: var(--primary-dark);
  font-weight: 800;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-dark);
  margin-bottom: 35px;
  font-weight: 400;
  line-height: 1.8;
  max-width: 720px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  width: 100%;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-top: 60px;
}

.feature-card {
  background-color: var(--bg-white);
  padding: 45px 30px;
  border-radius: var(--border-radius-md);
  border: 1px solid rgba(69, 102, 80, 0.04);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(69, 102, 80, 0.1);
}

.feature-icon {
  font-size: 2.8rem;
  margin-bottom: 24px;
  width: 80px;
  height: 80px;
  border-radius: var(--border-radius-sm);
  background-color: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  transition: var(--transition);
}

.feature-card:hover .feature-icon {
  background-color: var(--accent-ochre-light);
  color: var(--accent-ochre);
  transform: scale(1.05) rotate(3deg);
}

.feature-card h3 {
  font-size: 1.45rem;
  margin-bottom: 14px;
  color: var(--primary-dark);
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.98rem;
  margin-bottom: 24px;
  line-height: 1.65;
}

/* Daily Tip Section */
.tip-section {
  background-color: var(--primary-light);
  border-radius: var(--border-radius-lg);
  padding: 50px 40px;
  margin-top: 80px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(69, 102, 80, 0.08);
  position: relative;
  overflow: hidden;
}

.tip-section::before {
  content: '💡';
  position: absolute;
  top: -20px;
  left: 20px;
  font-size: 10rem;
  opacity: 0.05;
}

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

.tip-tag {
  display: inline-block;
  background-color: var(--accent-ochre);
  color: var(--bg-white);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: 0.05em;
}

.tip-text {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--primary-dark);
  margin-bottom: 25px;
  line-height: 1.6;
  transition: opacity 0.3s ease;
}

/* About / Story Styling */
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 60px;
  align-items: center;
}

.about-image {
  width: 100%;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  border: 8px solid var(--bg-white);
}

.about-text h3 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--primary-dark);
}

.about-text p {
  margin-bottom: 20px;
  color: var(--text-muted);
}

.badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
}

.badge-item {
  background-color: var(--beige-light);
  color: var(--primary-dark);
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid var(--beige-dark);
}

/* Detailed Content Layout (Pregnancy, Toddlers, Kids, Nutrition, Blog) */
.page-header {
  padding: 80px 0 50px;
  background: linear-gradient(to bottom, var(--primary-light), var(--bg-cream));
  text-align: center;
}

.page-header h1 {
  font-size: 2.8rem;
  margin-bottom: 15px;
}

.page-header p {
  font-size: 1.15rem;
  color: var(--text-muted);
}

.blog-articles-grid {
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.blog-article-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 180px;
  margin-bottom: 50px;
}

.blog-article-row:nth-child(even) {
  flex-direction: row-reverse;
}

.blog-article-image {
  flex: 1;
  min-width: 400px;
  height: 400px;
  background-size: cover;
  background-position: center;
  border-radius: 0;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.blog-article-image:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
}

.blog-article-content {
  flex: 1.2;
  display: block;
  text-align: right;
  align-self: center;
}

.blog-article-content h2 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: var(--primary-dark);
  line-height: 1.3;
}

.blog-article-content .article-summary {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 25px;
  line-height: 1.6;
  flex-grow: 1;
}

/* Mobile responsiveness for zigzag */
@media (max-width: 768px) {

  .blog-article-row,
  .blog-article-row:nth-child(even) {
    flex-direction: column;
  }

  .blog-article-image {
    min-height: 250px;
    min-width: 100%;
  }
}

.main-content p {
  margin-bottom: 15px;
  color: var(--text-dark);
}

.main-content ul,
.main-content ol {
  margin-right: 25px;
  margin-bottom: 20px;
}

.main-content li {
  margin-bottom: 8px;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.sidebar-widget {
  background-color: var(--bg-white);
  padding: 30px;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--beige-light);
}

.sidebar-widget h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  border-bottom: 2px solid var(--primary-light);
  padding-bottom: 8px;
}


/* Interactive Shopping List */
.shopping-container {
  max-width: 800px;
  margin: 0 auto;
}

.shopping-actions {
  display: flex;
  justify-content: space-between;
  margin-bottom: 30px;
  gap: 15px;
}

.shopping-category {
  background-color: var(--bg-white);
  padding: 30px;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--beige-light);
  margin-bottom: 25px;
}

.shopping-category h3 {
  font-size: 1.4rem;
  margin-bottom: 20px;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.checklist-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 10px;
  border-bottom: 1px dashed var(--beige-light);
  cursor: pointer;
  transition: var(--transition);
}

.checklist-item:last-child {
  border-bottom: none;
}

.checklist-item:hover {
  background-color: var(--primary-light);
  border-radius: var(--border-radius-sm);
}

.checklist-item input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: var(--primary);
}

.checklist-item span {
  font-size: 1.05rem;
  transition: var(--transition);
}

.checklist-item input[type="checkbox"]:checked+span {
  text-decoration: line-through;
  color: var(--text-muted);
}

/* Contact Form CSS */
.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 0;
}

.contact-card {
  background-color: var(--bg-white);
  padding: 40px;
  border-radius: 0;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--beige-light);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--primary-dark);
}

.form-control {
  width: 100%;
  padding: 14px 16px;
  font-size: 1rem;
  border: 1px solid var(--beige-dark);
  background-color: var(--bg-cream);
  border-radius: var(--border-radius-sm);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
  font-family: inherit;
  color: var(--text-dark);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  background-color: var(--bg-white);
  box-shadow: 0 0 0 4px var(--primary-transparent);
}

.form-control::placeholder {
  color: hsl(140, 8%, 65%);
  opacity: 0.85;
}

select.form-control {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23456650' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: left 16px center;
  background-size: 16px;
  padding-left: 45px;
  cursor: pointer;
}

select.form-control:focus {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23456650' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='18 15 12 9 6 15'%3e%3c/polyline%3e%3c/svg%3e");
}

select.form-control option {
  background-color: var(--bg-white);
  color: var(--text-dark);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.contact-info-icon {
  font-size: 1.5rem;
  color: var(--accent-ochre);
  background-color: var(--accent-ochre-light);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-text h4 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.contact-info-text p,
.contact-info-text a {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.hover-underline-link {
  text-decoration: none !important;
  color: inherit;
}

.hover-underline-link:hover {
  text-decoration: underline !important;
}

.form-feedback {
  padding: 15px;
  border-radius: var(--border-radius-sm);
  margin-bottom: 20px;
  display: none;
  font-weight: 500;
  text-align: center;
}

.form-feedback.success {
  display: block;
  background-color: var(--primary-light);
  color: var(--primary-dark);
  border: 1px solid var(--primary);
}

.form-feedback.error {
  display: block;
  background-color: hsl(0, 100%, 97%);
  color: hsl(0, 75%, 35%);
  border: 1px solid hsl(0, 70%, 80%);
}

/* Meal Ideas Section styling */
.meal-type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
  margin-top: 30px;
  margin-bottom: 50px;
}

.meal-card {
  background-color: var(--bg-white);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--beige-light);
  transition: var(--transition);
}

.meal-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.meal-image-placeholder {
  height: 180px;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--beige-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.meal-info {
  padding: 20px;
}

.meal-info h4 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.meal-info p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Workshops Cards */
.workshops-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 35px;
  margin-top: 40px;
}

.workshop-card {
  background-color: var(--bg-white);
  border-radius: var(--border-radius-md);
  border: 1px solid var(--beige-light);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.workshop-badge {
  background-color: var(--primary);
  color: var(--bg-white);
  padding: 10px 20px;
  font-weight: 700;
  text-align: center;
}

.workshop-card.accented {
  border: 2px solid var(--accent-ochre);
}

.workshop-card.accented .workshop-badge {
  background-color: var(--accent-ochre);
}

.workshop-details {
  padding: 35px 30px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.workshop-details h3 {
  font-size: 1.6rem;
  margin-bottom: 15px;
}

.workshop-price {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 20px;
}

.workshop-details ul {
  list-style: none;
  margin-bottom: 30px;
}

.workshop-details li {
  margin-bottom: 12px;
  padding-right: 25px;
  position: relative;
}

.workshop-details li::before {
  content: '✓';
  position: absolute;
  right: 0;
  color: var(--primary);
  font-weight: bold;
}

.workshop-card.accented .workshop-details li::before {
  color: var(--accent-ochre);
}

.workshop-btn {
  margin-top: auto;
}

/* Footer Section */
footer {
  background-color: #718d7b;
  /* Softer, gentler green */
  color: var(--bg-cream);
  padding: 60px 0 30px;
  margin-top: 100px;
  border-top: 5px solid var(--accent-ochre);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 30px;
  margin-bottom: 50px;
}

.footer-brand h3 {
  color: var(--bg-cream);
  font-size: 1.6rem;
  margin-bottom: 15px;
  text-align: right;
}

.footer-brand p {
  font-size: 0.95rem;
  color: var(--beige-light);
  opacity: 0.8;
  max-width: 380px;
  line-height: 1.6;
  text-align: right;
}

/* Social Icons */
.social-icons {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
  justify-content: center;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--bg-cream);
  transition: all 0.3s ease;
}

.social-icon:hover {
  background-color: var(--accent-ochre);
  color: var(--primary-dark);
  transform: translateY(-3px);
}

.social-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.footer-links h4,
.footer-contact h4 {
  color: var(--accent-ochre);
  font-size: 1.15rem;
  margin-bottom: 20px;
  font-weight: 600;
  text-align: right;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  text-align: right;
}

.footer-links a {
  color: var(--bg-cream);
  opacity: 0.85;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--accent-ochre);
  padding-right: 5px;
}

.footer-contact p {
  margin-bottom: 10px;
  font-size: 0.95rem;
  opacity: 0.85;
  text-align: right;
  direction: rtl;
  display: block;
}

.footer-bottom {
  border-top: 1px solid rgba(250, 248, 245, 0.1);
  padding-top: 30px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--beige-light);
  opacity: 0.7;
}

/* Responsive Styles */
@media (max-width: 991px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 30px;
  }

  .hero-buttons {
    justify-content: center;
  }

  .about-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-image {
    max-width: 500px;
    margin: 0 auto;
  }

  .content-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .section-padding {
    padding: 60px 0;
  }

  .hero-title {
    font-size: 2.3rem;
  }

  .menu-toggle {
    display: flex;
  }

  .logo-img {
    width: 135px;
    margin-right: -5px;
  }

  header nav {
    margin-right: 0;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--bg-cream);
    flex-direction: column;
    padding: 20px;
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid var(--beige-dark);
    gap: 12px;
    max-height: 80vh;
    overflow-y: auto;
    align-items: stretch;
    z-index: 1000;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    width: 100%;
    justify-content: space-between;
  }

  .dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    background-color: rgba(77, 128, 96, 0.05);
    padding: 5px 0;
    min-width: 100%;
    border-radius: var(--border-radius-sm);
    margin-top: 5px;
    list-style: none;
  }

  .dropdown-menu li {
    width: 100%;
    list-style: none;
  }

  .dropdown-menu a {
    padding: 8px 20px;
    font-size: 0.88rem;
  }

  .dropdown-toggle .arrow {
    display: inline-block;
    transition: var(--transition);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* Printing styles for shopping checklist */
@media print {
  body {
    background-color: white;
    color: black;
    direction: rtl;
  }

  header,
  footer,
  .shopping-actions,
  .btn,
  .nav-container,
  .page-header p {
    display: none !important;
  }

  .page-header {
    padding: 20px 0;
    background: none;
    text-align: center;
  }

  .shopping-container {
    width: 100%;
    max-width: 100%;
  }

  .shopping-category {
    box-shadow: none;
    border: 1px solid #ccc;
    padding: 15px;
    page-break-inside: avoid;
  }

  .checklist-item {
    border-bottom: 1px solid #eee;
  }

  .checklist-item input[type="checkbox"] {
    border: 1px solid black;
  }
}

/* Floating AI Chat Widget */
.ai-chat-widget {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
}

.ai-chat-toggle-btn {
  width: 90px;
  height: 90px;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  outline: none;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: aiFloat 4s ease-in-out infinite;
  /* Floating vertical movement */
  z-index: 1001;
}

.ai-chat-logo-img {
  width: 100%;
  height: auto;
  border-radius: 0;
  filter: drop-shadow(0 4px 10px rgba(69, 102, 80, 0.45)) drop-shadow(0 0 12px rgba(69, 102, 80, 0.25));
  /* Base glowing light aura */
  transition: var(--transition);
}

.ai-chat-toggle-btn:hover .ai-chat-logo-img {
  transform: scale(1.1) rotate(5deg);
  filter: drop-shadow(0 8px 18px rgba(69, 102, 80, 0.6)) drop-shadow(0 0 25px rgba(69, 102, 80, 0.75));
  /* Expanded glow glow on hover */
}

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

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

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

.ai-chat-tooltip {
  position: absolute;
  bottom: 105px;
  right: 0;
  background-color: var(--primary-dark);
  color: white;
  padding: 8px 16px;
  border-radius: 12px;
  font-size: 0.85rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  transform: translateY(10px);
  box-shadow: var(--shadow-md);
  direction: rtl;
}

.ai-chat-tooltip::after {
  content: '';
  position: absolute;
  bottom: -6px;
  right: 25px;
  border-width: 6px 6px 0;
  border-style: solid;
  border-color: var(--primary-dark) transparent;
  display: block;
  width: 0;
}

.ai-chat-toggle-btn:hover .ai-chat-tooltip {
  opacity: 1;
  transform: translateY(0);
}

/* Chat Window */
.ai-chat-window {
  position: absolute;
  bottom: 100px;
  right: 0;
  width: calc(100vw - 40px);
  max-width: 380px;
  height: 520px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(69, 102, 80, 0.12);
  border-radius: var(--border-radius-lg);
  box-shadow: 0 10px 40px rgba(69, 102, 80, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px) scale(0.95);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: bottom right;
}

/* Active Open State */
.ai-chat-widget.chat-open .ai-chat-window {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

/* Header */
.ai-chat-header {
  background: var(--primary);
  color: white;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ai-chat-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ai-chat-avatar-wrapper {
  position: relative;
  width: 40px;
  height: 40px;
}

.ai-chat-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.8);
}

.ai-chat-status-dot {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 10px;
  height: 10px;
  background-color: #25d366;
  border: 2px solid var(--primary);
  border-radius: 50%;
}

.ai-chat-title-wrapper {
  text-align: right;
}

.ai-chat-title-wrapper h4 {
  font-size: 1rem;
  font-weight: 600;
  color: white;
  margin: 0;
}

.ai-chat-title-wrapper span {
  font-size: 0.75rem;
  opacity: 0.8;
}

.ai-chat-close-btn {
  background: none;
  border: none;
  color: white;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.7;
  transition: var(--transition);
  padding: 0;
}

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

/* Messages Area */
.ai-chat-messages {
  flex-grow: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
  background: rgba(255, 255, 255, 0.3);
}

.ai-message {
  display: flex;
  flex-direction: column;
  max-width: 80%;
}

.ai-message-content {
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 0.95rem;
  line-height: 1.5;
  text-align: right;
  word-wrap: break-word;
}

.ai-message-bot {
  align-self: flex-start;
}

.ai-message-bot .ai-message-content {
  background: var(--bg-white);
  color: var(--text-dark);
  border: 1px solid rgba(69, 102, 80, 0.06);
  border-top-right-radius: 4px;
}

.ai-message-user {
  align-self: flex-end;
}

.ai-message-user .ai-message-content {
  background: var(--primary);
  color: white;
  border-top-left-radius: 4px;
}

/* Suggestions Chips */
.ai-chat-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 20px;
  border-top: 1px solid rgba(69, 102, 80, 0.05);
  background: rgba(255, 255, 255, 0.5);
  direction: rtl;
}

.ai-suggestion-chip {
  background: var(--bg-white);
  border: 1px solid rgba(69, 102, 80, 0.1);
  color: var(--primary-dark);
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 30px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: var(--transition);
}

.ai-suggestion-chip:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}

/* Typing Indicator */
.ai-typing-indicator {
  display: flex;
  gap: 4px;
  padding: 12px 16px;
  background: var(--bg-white);
  border: 1px solid rgba(69, 102, 80, 0.06);
  border-radius: 18px;
  border-top-right-radius: 4px;
  width: fit-content;
}

.ai-typing-dot {
  width: 6px;
  height: 6px;
  background-color: var(--text-muted);
  border-radius: 50%;
  animation: aiTyping 1.4s infinite ease-in-out both;
}

.ai-typing-dot:nth-child(1) {
  animation-delay: -0.32s;
}

.ai-typing-dot:nth-child(2) {
  animation-delay: -0.16s;
}

@keyframes aiTyping {

  0%,
  80%,
  100% {
    transform: scale(0);
  }

  40% {
    transform: scale(1);
  }
}

/* Input Area */
.ai-chat-input-area {
  display: flex;
  padding: 12px 15px;
  background: var(--bg-white);
  border-top: 1px solid rgba(69, 102, 80, 0.08);
  gap: 10px;
  align-items: center;
}

.ai-chat-input-area input {
  flex-grow: 1;
  border: 1px solid rgba(69, 102, 80, 0.12);
  border-radius: 30px;
  padding: 10px 18px;
  font-size: 0.95rem;
  outline: none;
  font-family: 'Rubik', sans-serif;
  text-align: right;
  transition: var(--transition);
}

.ai-chat-input-area input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(69, 102, 80, 0.05);
}

.ai-chat-send-btn {
  background: var(--primary);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.ai-chat-send-btn:hover {
  background: var(--primary-dark);
  transform: scale(1.05);
}

.ai-chat-send-btn svg {
  width: 18px;
  height: 18px;
  transform: scaleX(-1);
  /* Flips icon for RTL text send direction */
}

@media (max-width: 480px) {
  .ai-chat-window {
    width: calc(100vw - 40px);
    height: 450px;
    right: -10px;
  }
}

/* Info Icon on Shopping Page */
.info-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background-color: var(--primary-transparent);
  color: var(--primary);
  border-radius: 50%;
  font-size: 0.75rem;
  margin-right: 8px;
  cursor: pointer;
  border: 1px solid var(--primary);
  font-weight: bold;
  transition: var(--transition);
}

.info-badge:hover {
  background-color: var(--primary);
  color: white;
  transform: scale(1.15);
}

.checklist-item {
  display: flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
  padding: 12px 16px;
  border-radius: var(--border-radius-sm);
  transition: var(--transition);
}

.checklist-item:hover {
  background-color: var(--primary-transparent);
}

/* Glassmorphic Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(69, 102, 80, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.active {
  display: flex;
  opacity: 1;
}

.modal-content {
  background-color: var(--bg-white);
  padding: 40px;
  border-radius: var(--border-radius-lg);
  max-width: 550px;
  width: 90%;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.8);
  position: relative;
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: right;
  direction: rtl;
}

.modal.active .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 20px;
  left: 20px;
  font-size: 1.5rem;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.modal-close:hover {
  color: var(--accent-ochre);
  transform: rotate(90deg);
}

.modal-title {
  font-size: 1.8rem;
  color: var(--primary-dark);
  margin-bottom: 20px;
  border-bottom: 2px solid var(--primary-transparent);
  padding-bottom: 10px;
}

.modal-body {
  font-size: 1rem;
}

.modal-section {
  margin-bottom: 18px;
}

.modal-section-title {
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-recipe-btn {
  margin-top: 15px;
  width: 100%;
  text-align: center;
}

/* Admin Dashboard Styles */
.admin-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 30px;
  border-radius: var(--border-radius-md);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.6);
  margin-bottom: 30px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--primary-dark);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--beige-dark);
  border-radius: var(--border-radius-sm);
  background-color: var(--bg-cream);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  background-color: var(--bg-white);
  box-shadow: 0 0 0 4px var(--primary-transparent);
}

.admin-container.container {
  max-width: 1600px;
  width: 96%;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 20px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.admin-table th,
.admin-table td {
  padding: 12px 16px;
  text-align: right;
  border-bottom: 1px solid var(--beige-dark);
}

.admin-table th {
  background-color: var(--primary-light);
  color: var(--primary-dark);
  font-weight: 700;
}

.admin-actions {
  display: flex;
  gap: 10px;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.85rem;
  border-radius: 8px;
}

.btn-danger {
  background-color: #d9534f;
  color: white;
  border: none;
}

.btn-danger:hover {
  background-color: #c9302c;
}

/* Hero section layout on desktop: Centered layout with full-bleed background */
@media (min-width: 992px) {
  .hero {
    min-height: calc(100vh - 100px);
    padding: 180px 0;
  }

  .hero-title {
    font-size: 4rem;
  }
}

/* Mobile-specific adjustments for logo position, hamburger placement, and hero layout */
@media (max-width: 768px) {
  .logo-img {
    height: 100px;
    /* Larger logo for mobile so it is highly visible */
    margin-top: -25px;
    /* Shift up to crop transparent space */
    margin-bottom: -30px;
    max-width: 220px;
    /* Limit width to fit mobile screen gracefully */
  }

  .nav-container {
    padding: 8px 16px;
    /* Push logo and hamburger to the screen corners (standard padding) */
  }

  header nav {
    position: absolute;
    width: 100%;
    top: 100%;
    left: 0;
    margin-right: 0;
  }

  .hero {
    padding: 120px 0 100px;
    min-height: auto;
  }

  .hero-content {
    padding: 40px 20px;
    border-radius: var(--border-radius-md);
  }

  .hero-title {
    font-size: 2.2rem;
    line-height: 1.3;
    margin-bottom: 16px;
  }

  .hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 25px;
    line-height: 1.7;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 320px;
    margin: 20px auto 0;
    gap: 12px;
  }

  .hero-buttons .btn {
    width: 100%;
    white-space: nowrap;
    padding: 12px 16px;
    font-size: 1rem;
  }
}

/* Marquee Section */
.marquee-section {
  padding: 40px 0;
  background-color: var(--primary-light);
  border-top: 1px solid var(--beige-dark);
  border-bottom: 1px solid var(--beige-dark);
  overflow: hidden;
  position: relative;
  width: 100%;
}

.marquee-title-container {
  margin-bottom: 25px;
  text-align: center;
}

.marquee-title-text {
  font-size: 0.95rem;
  color: var(--primary-dark);
  opacity: 0.85;
  font-weight: 600;
  letter-spacing: 0.03em;
  font-family: 'Rubik', sans-serif;
}

/* Gradient Fade Overlay on Left & Right Edges */
.marquee-section::before,
.marquee-section::after {
  content: '';
  position: absolute;
  top: 0;
  width: 15%;
  height: 100%;
  z-index: 10;
  pointer-events: none;
}

.marquee-section::before {
  left: 0;
  background: linear-gradient(to right, var(--primary-light) 0%, transparent 100%);
}

.marquee-section::after {
  right: 0;
  background: linear-gradient(to left, var(--primary-light) 0%, transparent 100%);
}

.marquee-container {
  display: flex;
  overflow: hidden;
  width: 100%;
  direction: ltr;
  /* LTR container is bulletproof for sliding animations */
}

.marquee-track {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: marqueeScroll 28s linear infinite;
  padding: 5px 0;
}

/* Pause scroll when user hovers to allow readable interaction */
.marquee-container:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1.5px solid rgba(69, 102, 80, 0.16);
  color: var(--primary-dark);
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 1.05rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(69, 102, 80, 0.03);
  transition: var(--transition);
  direction: rtl;
  text-decoration: none;
  /* Prevent default anchor underline */
  /* RTL content direction keeps Hebrew text layout correct */
}

.marquee-item:hover {
  background: rgba(255, 255, 255, 0.75);
  border-color: rgba(69, 102, 80, 0.35);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(69, 102, 80, 0.08);
}

.marquee-icon {
  width: 22px;
  height: 22px;
  color: var(--primary);
  flex-shrink: 0;
  transition: var(--transition);
}

.marquee-item:hover .marquee-icon {
  color: var(--accent-ochre-dark);
  transform: scale(1.15) rotate(5deg);
}

@keyframes marqueeScroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
    /* slides to the left seamlessly */
  }
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .marquee-section {
    padding: 20px 0;
  }

  .marquee-item {
    padding: 8px 16px;
    font-size: 0.95rem;
  }

  .marquee-track {
    gap: 16px;
    animation-duration: 20s;
    /* slightly faster for smaller viewport width */
  }
}

/* FAQ Accordion Section */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
}

.faq-item {
  background: var(--bg-white);
  border: 1px solid var(--beige-dark);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.faq-item:hover {
  border-color: var(--primary-light);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

.faq-question {
  width: 100%;
  padding: 25px 35px;
  background: none;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  cursor: pointer;
  text-align: right;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary-dark);
  font-family: 'Rubik', sans-serif;
  transition: var(--transition);
}

.faq-chevron {
  width: 22px;
  height: 22px;
  color: var(--primary);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-answer p {
  padding: 0 35px 25px 35px;
  color: var(--text-dark);
  font-size: 1.05rem;
  line-height: 1.8;
  margin: 0;
}

/* Active State Styles */
.faq-item.active {
  border-color: var(--primary-transparent);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
  color: var(--accent-ochre-dark);
}

/* Video Guide Section */
.video-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.video-card {
  background: var(--bg-white);
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--beige-dark);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.video-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.video-wrapper {
  position: relative;
  width: 100%;
  padding-top: 65%; /* Taller aspect ratio (roughly 3:2) instead of 16:9 */
  background-color: #000;
}

.tsofia-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: none;
}

.video-info {
  padding: 25px;
  text-align: right;
}

.video-info h3 {
  font-size: 1.35rem;
  color: var(--primary-dark);
  margin-bottom: 12px;
  font-weight: 700;
  line-height: 1.3;
}

.video-info p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 768px) {
  .video-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .video-info h3 {
    font-size: 1.2rem;
  }
}

/* Compact Feature Grid (Unified Section) */
.features-grid-compact {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  width: 100%;
}

.feature-card-compact {
  background: var(--bg-white);
  border: 1px solid rgba(69, 102, 80, 0.08);
  border-radius: var(--border-radius-md);
  padding: 30px 20px 25px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 4px 15px rgba(69, 102, 80, 0.02);
  transition: var(--transition);
  text-decoration: none;
  height: 100%;
}

.feature-card-compact:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.feature-icon-compact {
  font-size: 2.2rem;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background-color: var(--primary-light);
  border-radius: 50%;
  transition: var(--transition);
}

.feature-card-compact:hover .feature-icon-compact {
  background-color: var(--primary);
  transform: scale(1.1) rotate(5deg);
}

.feature-card-compact h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 10px;
}

.feature-card-compact p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 15px;
  flex-grow: 1;
  /* Pushes the "read more" link to the bottom */
}

.read-more-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-ochre-dark);
  transition: var(--transition);
}

.feature-card-compact:hover .read-more-link {
  color: var(--primary);
  transform: translateX(-3px);
}

@media (max-width: 992px) {
  .features-grid-compact {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
}

@media (max-width: 576px) {
  .features-grid-compact {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}

/* Blog Read More Button Hover Effect */
.blog-preview-card:hover .blog-read-more,
.blog-read-more:hover {
  background-color: var(--accent-ochre-dark) !important;
  color: #fff !important;
}

/* Mobile Contact Card Centering Fix */
@media (max-width: 768px) {
  .contact-grid .contact-card {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto;
    text-align: center;
    padding: 35px 20px;
    box-sizing: border-box;
  }
  
  .contact-card h3 {
    text-align: center !important;
  }

  .contact-info-list {
    align-items: center;
    width: 100%;
  }

  .contact-info-item {
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    gap: 10px;
    width: 100%;
  }

  .contact-info-text {
    text-align: center;
  }
  
  .contact-info-icon {
    margin: 0 auto;
  }
  
  .contact-card form .form-group label,
  .contact-card form .form-control {
    text-align: right;
  }
}