:root {
  --primary-navy: #1e3a8a;
  --secondary-navy: #2d5ba3;
  --light-bg: #f8fafc;
  --light-accent: #ecf0f6;
  --text-dark: #1e293b;
  --text-light: #475569;
  --header-height: 65px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: "Philosopher", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(
    135deg,
    var(--light-bg) 0%,
    var(--light-accent) 50%,
    var(--light-bg) 100%
  );
  color: var(--text-dark);
}

/* Anchor scroll fix for mobile */
.anchor-section {
  scroll-margin-top: var(--header-height);
}

/* Smooth scroll link handler */
.smooth-scroll {
  cursor: pointer;
}

@media (max-width: 768px) {
  :root {
    --header-height: 56px;
  }
  
  html {
    scroll-padding-top: calc(var(--header-height) + 10px);
  }
  
  .anchor-section {
    scroll-margin-top: calc(var(--header-height) + 10px);
  }
}

/* Navigation */
.navbar {
  background: linear-gradient(
    135deg,
    var(--primary-navy) 0%,
    var(--secondary-navy) 100%
  ) !important;
  box-shadow: 0 2px 10px rgba(30, 58, 138, 0.2);
  position: sticky !important;
  top: 0 !important;
  z-index: 1030 !important;
}

.navbar-nav {
  gap: 2rem;
}

.navbar-brand {
  color: #fff !important;
  font-weight: bold;
  font-size: 1.5rem;
  font-family: "Philosopher", sans-serif;
  letter-spacing: 1px;
}

.nav-link {
  color: #e0e7ff !important;
  transition: all 0.3s ease;
  font-family: "Philosopher", sans-serif;
  font-weight: 500;
  position: relative;
  font-size: 1.1rem;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #fff;
  transition: width 0.3s ease;
}

/* Hover state - only for non-active links */
.nav-link:hover:not(.active) {
  color: #fff !important;
}

.nav-link:hover:not(.active)::after {
  width: 100%;
}

/* Active Navigation Link State */
.nav-link.active {
  color: #fff !important;
  border-bottom: 2px solid #fff;
  padding-bottom: 0.5rem;
}

/* Hide the pseudo-element on active links */
.nav-link.active::after {
  display: none;
}

/* Hero Section */
.hero {
  min-height: auto;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 2rem 4rem 2rem;
  background: linear-gradient(135deg, #e8f0f8 0%, #d4e4f7 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(
      circle at 20% 50%,
      rgba(30, 58, 138, 0.03) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(30, 58, 138, 0.02) 0%,
      transparent 50%
    );
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1920px;
}

.hero-paragraphs {
  margin-top: 2rem;
}

/* Floating Hebrew Letters Container */
.floating-letters {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  will-change: transform;
  contain: layout style paint;
}

.hebrew-letter {
  position: absolute;
  font-family: "Arial", serif;
  font-size: 5rem;
  font-weight: bold;
  color: rgba(30, 58, 138, 0.15);
  opacity: 0;
  animation: float-up var(--duration) 1 linear forwards;
  top: 110%;
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}

@keyframes float-up {
  0% {
    opacity: 0;
    transform: translateY(0) translateX(0) rotate(0deg);
  }
  10% {
    opacity: 0.6;
  }
  90% {
    opacity: 0.6;
  }
  100% {
    opacity: 0;
    transform: translateY(-110dvh) translateX(var(--tx)) rotate(360deg);
  }
}

.hebrew-title {
  font-size: 4rem;
  color: var(--primary-gold);
  margin-bottom: 0.5rem;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  font-family: "Arial", serif;
  letter-spacing: 2px;
}

.hebrew-subtitle {
  font-size: 1.2rem;
  color: #a8a8a8;
  margin-bottom: 1.5rem;
  font-family: "Arial", serif;
}

.divider-line {
  width: 300px;
  height: 4px;
  background: linear-gradient(
    to right,
    transparent 0%,
    var(--primary-navy) 20%,
    var(--primary-navy) 80%,
    transparent 100%
  );
  margin: 2rem auto;
  position: relative;
  box-shadow: 0 0 15px rgba(30, 58, 138, 0.2);
}

.divider-line::before,
.divider-line::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  background: var(--primary-navy);
  clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
  top: 50%;
  transform: translateY(-50%);
  box-shadow: 0 0 15px rgba(30, 58, 138, 0.4);
}

.divider-line::before {
  left: -40px;
}

.divider-line::after {
  right: -40px;
}

.section-header {
  margin-bottom: 1rem;
  margin-top: 0;
}

.author-byline {
  font-size: 1.2rem;
  color: var(--primary-navy);
  margin: 0.8rem 0 0.5rem;
  font-weight: 500;
  text-align: justify;
}

.revava-icon {
  width: 200px;
  height: auto;
  margin: 0 auto 1rem;
  display: block;
  animation: float 3s ease-in-out infinite;
}

.section-title {
  color: var(--primary-navy);
  font-weight: bold;
  margin-bottom: 0.5rem;
  font-family: "Philosopher", sans-serif;
  letter-spacing: 2px;
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--secondary-navy);
  margin-bottom: 1rem;
  font-family: "Philosopher", sans-serif;
  font-weight: 300;
}

.welcome-title {
  font-size: 1.8rem;
  color: var(--primary-navy);
  margin-bottom: 2rem;
  font-weight: 300;
  line-height: 1.6;
}

.welcome-title strong {
  color: var(--primary-navy);
  font-weight: bold;
}

.content-text {
  font-size: 1.1rem;
  color: var(--text-dark);
  margin-bottom: 0.8rem;
  line-height: 1.8;
  text-align: justify;
  margin-top: 0.3rem;
}

.content-text strong {
  color: var(--primary-navy);
  font-weight: 600;
}

.crown-icon {
  font-size: 2.5rem;
  margin: 2.5rem 0;
  opacity: 0.8;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

.bottom-text {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  margin-top: 2rem;
  font-family: "Arial", serif;
}
ul li::marker,
ol li::marker {
  content: "";
}
/* Search Section */
.search-section {
  padding: 4rem 2rem;
  min-height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: visible;
  background: linear-gradient(135deg, #e8f0f8 0%, #d4e4f7 100%);
  z-index: 100;
}

.search-section .container {
  position: relative;
  z-index: 1;
}

.search-form-container {
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid var(--primary-navy);
  border-radius: 15px;
  padding: 2rem;
  backdrop-filter: blur(10px);
  position: relative;
  z-index: 10;
  overflow: visible;
}

.search-form-container .search-form {
  position: relative;
  overflow: visible;
}

.search-select {
  background: #fff
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="%231e3a8a"><path fill-rule="evenodd" d="M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z" clip-rule="evenodd" /></svg>')
    no-repeat right 0.75rem center;
  background-size: 1.5rem;
  border: 2px solid var(--primary-navy);
  border-radius: 8px;
  font-family: "Philosopher", sans-serif;
  padding: 0 2.5rem 0 1rem;
  color: var(--text-dark);
  appearance: none;
  cursor: pointer;
}

.search-select:focus {
  border-color: var(--primary-navy);
  box-shadow: 0 0 8px rgba(30, 58, 138, 0.3);
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input {
  background: #fff;
  border: 2px solid var(--primary-navy);
  border-radius: 8px;
  font-family: "Philosopher", sans-serif;
  color: var(--text-dark);
  padding: 0 55px 0 55px !important;
}

.search-input:focus {
  border-color: var(--primary-navy);
  box-shadow: 0 0 8px rgba(30, 58, 138, 0.3);
  background: #fff;
}

.search-input::placeholder {
  color: #999;
}

.search-icon {
  position: absolute;
  left: 15px;
  right: auto;
  font-size: 1.3rem;
  opacity: 0.6;
}

/* RTL Support for search icon - only when search section has dir="rtl" */
.search-section[dir="rtl"] .search-icon {
  right: 15px;
  left: auto;
}

.btn-search {
  background: var(--primary-navy);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  font-family: "Philosopher", sans-serif;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.btn-search:hover {
  background: var(--secondary-navy);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(30, 58, 138, 0.3);
}

.popular-keywords-container {
  margin-top: 2rem;
}

.keywords-title {
  color: var(--primary-navy);
  font-family: "Philosopher", sans-serif;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.keywords-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.keyword-badge {
  background: var(--primary-navy);
  color: #fff;
  padding: 0.6rem 1.2rem;
  border: 2px solid var(--primary-navy);
  border-radius: 20px;
  font-family: "Philosopher", sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  display: inline-block;
  font-weight: 600;
}

.keyword-badge:hover {
  background: var(--primary-navy);
  color: #fff;
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(30, 58, 138, 0.3);
}

/* Expressions Section */
.expressions-section {
  background: #e0f2fe;
  padding: 5rem 2rem;
  color: var(--text-dark);
  overflow: visible;
  min-height: 100dvh;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.expressions-section::before {
  content: "";
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(
      circle at 20% 50%,
      rgba(30, 58, 138, 0.05) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(30, 58, 138, 0.03) 0%,
      transparent 50%
    );
  z-index: 0;
}

.expressions-section .container {
  position: relative;
  z-index: 1;
}

.expressions-instruction {
  font-size: 1.1rem;
  color: var(--text-light);
  font-family: "Philosopher", sans-serif;
  margin-bottom: 2rem;
}

.alphabet-nav {
  background: rgba(255, 255, 255, 0.8);
  border: 2px solid var(--primary-navy);
  border-radius: 15px;
  padding: 2.5rem;
  backdrop-filter: blur(10px);
}

.btn-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: var(--primary-navy);
  color: #fff;
  border: 2px solid var(--primary-navy);
  border-radius: 8px;
  font-weight: bold;
  font-size: 1.1rem;
  font-family: "Philosopher", sans-serif;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-letter:hover {
  background: var(--primary-navy);
  color: #fff;
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(30, 58, 138, 0.3);
}

@media (max-width: 768px) {
  .btn-letter {
    width: 45px;
    height: 45px;
    font-size: 1rem;
  }

  .alphabet-nav {
    padding: 2rem;
  }

  .expressions-instruction {
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .btn-letter {
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
  }

  .alphabet-nav {
    padding: 1.5rem;
  }

  .expressions-section {
    padding: 3rem 1rem;
  }
}

@media (max-width: 768px) {
  .search-form-container {
    padding: 2rem;
  }

  .search-select,
  .search-input,
  .btn-search {
    font-size: 0.95rem;
  }
}

/* About Books Section */
.about-books {
  background: #e0f2fe;
  color: var(--text-dark);
  padding: 4rem 2rem;
  position: relative;
  overflow: hidden;
  min-height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-books .container {
  position: relative;
  z-index: 1;
}

/* Ads Website Section */
.ads-website {
  background-image: url(/assets/images/svg/background-home-ads.jpg);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-color: #e0f2fe;
  color: var(--text-dark);
  position: relative;
  overflow: hidden;
  will-change: transform;
}

/* Lazy load SVG backgrounds */
.ads-website.lazy-bg {
  background-image: none;
}

.ads-website.lazy-bg.loaded {
  background-image: url(/assets/images/svg/background-home-ads.jpg);
}

.book-card {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  min-height: auto;
  display: block;
  gap: 0;
  backdrop-filter: none;
}

.book-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 0;
}

.book-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid var(--primary-navy);
  margin-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.book-image img {
  width: 100%;
  height: auto;
  object-fit: contain;
  padding: 1rem;
  background: white;
}

.book-badge {
  display: inline-block;
  background: var(--primary-navy);
  color: #fff;
  padding: 0.7rem 1.8rem;
  border-radius: 20px;
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  width: fit-content;
  font-family: "Philosopher", sans-serif;
}

.book-headline {
  font-size: 2.3rem;
  color: var(--primary-navy);
  margin-bottom: 1.5rem;
  font-family: "Philosopher", sans-serif;
  font-weight: bold;
  line-height: 1.4;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.book-description {
  font-size: 1.3rem;
  color: var(--text-light);
  margin-bottom: 2rem;
  line-height: 1.8;
  flex-grow: 1;
  font-family: "Philosopher", sans-serif;
}

.btn-read-more {
  display: none;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  filter: invert(1) brightness(200%);
}

.carousel-control-prev,
.carousel-control-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: rgba(30, 58, 138, 0.7);
  border: none;
  opacity: 0.7;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 100;
}

.carousel-control-prev {
  left: -60px;
}

.carousel-control-next {
  right: -60px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  opacity: 1;
  background: rgba(30, 58, 138, 0.9);
  transform: translateY(-50%) scale(1.1);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
}

.carousel-indicators [data-bs-target] {
  background-color: var(--primary-navy);
  opacity: 0.5;
  border-radius: 50%;
}

.carousel-indicators .active {
  background-color: var(--primary-navy);
  opacity: 1;
}

.carousel-indicators {
  position: static !important;
  margin-top: 2rem !important;
  bottom: auto !important;
}

@media (max-width: 1024px) {
  .book-image {
    height: auto;
  }

  .book-headline {
    font-size: 2rem !important;
  }

  .book-description {
    font-size: 1.2rem !important;
  }
}

@media (max-width: 768px) {
  .carousel-item {
    padding: 0 1rem;
  }

  .carousel-item .row {
    gap: 1rem !important;
  }

  .carousel-control-prev {
    left: 10px;
  }

  .carousel-control-next {
    right: 10px;
  }

  .carousel-item .col-lg-6 {
    width: 100%;
    max-width: 100%;
  }

  .book-image {
    width: 100%;
    height: auto;
    margin-bottom: 0;
    order: 1;
  }

  .book-content {
    order: 2;
    padding: 1.5rem 0;
  }

  .book-headline {
    font-size: 1.8rem !important;
    margin-bottom: 1rem;
    line-height: 1.5;
  }

  .book-description {
    font-size: 1.1rem !important;
    margin-bottom: 1rem;
    line-height: 1.7;
  }

  .book-badge {
    margin-bottom: 1rem;
    font-size: 1rem !important;
  }

  .carousel-control-prev,
  .carousel-control-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(30, 58, 138, 0.7);
    border: none;
    opacity: 0.8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
  }

  .carousel-control-prev {
    left: -50px;
  }

  .carousel-control-next {
    right: -50px;
  }

  .carousel-control-prev:hover,
  .carousel-control-next:hover {
    opacity: 1;
    background: rgba(30, 58, 138, 0.9);
  }

  .carousel-control-prev-icon,
  .carousel-control-next-icon {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
  }
}

@media (max-width: 576px) {
  .carousel-item {
    padding: 0 0.75rem;
  }

  .carousel-item .row {
    gap: 0.75rem !important;
  }

  .book-image {
    height: auto;
  }

  .book-headline {
    font-size: 1.5rem !important;
    margin-bottom: 0.8rem;
  }

  .book-description {
    font-size: 1.05rem !important;
    line-height: 1.6;
  }

  .book-badge {
    font-size: 1rem !important;
    padding: 0.5rem 1rem;
  }

  .carousel-control-prev {
    left: -40px;
  }

  .carousel-control-next {
    right: -40px;
  }

  .carousel-control-prev,
  .carousel-control-next {
    width: 35px;
    height: 35px;
  }
}

/* Read Books Section */
.read-books {
  background: #ecf1fe;
  color: var(--text-dark);
  padding: 5rem 2rem;
  position: relative;
  overflow: hidden;
  min-height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.read-books .book-button:hover img {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(30, 58, 138, 0.4) !important;
}

.read-books img {
  width: 446px;
  height: 550px;
  border: 2px solid var(--primary-navy);
  transition: all 0.3s ease;
  cursor: pointer;
  object-fit: cover;
}

@media (max-width: 768px) {
  .read-books img {
    width: 100%;
    max-width: 350px;
    height: auto;
    aspect-ratio: 446 / 550;
  }

  .read-books {
    padding: 3rem 1.5rem;
  }
}

@media (max-width: 576px) {
  .read-books img {
    max-width: 100%;
    width: 100%;
    height: auto;
    aspect-ratio: 446 / 550;
  }

  .read-books {
    padding: 2rem 1rem;
  }

  .read-books .section-title {
    font-size: 2rem;
  }

  .read-books .section-subtitle {
    font-size: 1rem;
  }
}

/* Feather Icons */
svg.feather {
  width: 24px;
  height: 24px;
  stroke: var(--primary-navy);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

/* Social Icon Buttons */
.social-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 8px;
  background: var(--primary-navy);
  border: none;
  transition: all 0.3s ease;
  text-decoration: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.social-icon-btn:hover {
  background: var(--secondary-navy);
  border: none;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(30, 58, 138, 0.3);
}

.social-icon-btn svg {
  width: 20px;
  height: 20px;
  stroke: #fff;
  color: #fff;
  stroke-width: 2;
  fill: #fff;
}

.social-icon-btn-lg {
  width: 40px;
  height: 40px;
}

.social-icon-btn-lg svg {
  width: 18px;
  height: 18px;
}

/* Search Icon Styling */
.search-icon[data-feather="search"],
.search-icon[data-feather="loader"] {
  width: 20px;
  height: 20px;
  stroke: var(--primary-navy);
  color: var(--primary-navy);
}

#spinner[data-feather="loader"] {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: translateY(-50%) rotate(0deg);
  }
  to {
    transform: translateY(-50%) rotate(360deg);
  }
}

/* Contact Section Styling */
.contact-form-box,
.contact-info-box {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.contact-form-box form {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.contact-form-box .btn-search {
  margin-top: auto;
}

/* Contact Form Icons */
.contact-icon {
  position: absolute;
  top: 50%;
  left: 15px;
  right: auto;
  transform: translateY(-50%);
  font-size: 1.3rem;
  opacity: 0.6;
  width: 20px;
  height: 20px;
  color: var(--primary-navy);
  stroke-width: 2;
  pointer-events: none;
}

.contact-icon-top {
  top: 1rem;
  transform: none;
}

/* RTL Support for contact icons - English (default) */
#contact .search-input-wrapper .contact-icon {
  left: 15px;
  right: auto;
}

/* RTL Support for contact icons - Hebrew */
#contact[dir="rtl"] .search-input-wrapper .contact-icon {
  right: 15px;
  left: auto;
}

@media (max-width: 768px) {
  .divider-line {
    width: 200px;
    height: 3px;
  }

  .divider-line::before,
  .divider-line::after {
    width: 14px;
    height: 14px;
  }

  .divider-line::before {
    left: -28px;
  }

  .divider-line::after {
    right: -28px;
  }

  .hebrew-title {
    font-size: 2.5rem;
  }

  .hebrew-subtitle {
    font-size: 1rem;
  }

  .welcome-title {
    font-size: 1.8rem;
  }

  .section-title {
    font-size: 2.5rem;
  }

  .section-subtitle {
    font-size: 1.2rem;
  }

  .hero {
    min-height: auto;
    padding: 2rem 1rem;
  }

  .content-text {
    font-size: 0.95rem;
  }

  .navbar-nav {
    gap: 1rem;
  }
}

@media (max-width: 576px) {
  .divider-line {
    width: 150px;
    height: 2px;
    margin: 1.5rem auto;
  }

  .divider-line::before,
  .divider-line::after {
    width: 12px;
    height: 12px;
  }

  .divider-line::before {
    left: -22px;
  }

  .divider-line::after {
    right: -22px;
  }

  .hebrew-title {
    font-size: 2rem;
  }

  .welcome-title {
    font-size: 1.4rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .section-subtitle {
    font-size: 1rem;
  }

  .content-text {
    font-size: 0.9rem;
    text-align: left;
  }

  .nav-link {
    font-size: 0.85rem;
  }

  .keywords-list {
    gap: 0.5rem;
  }

  .keyword-badge {
    padding: 0.5rem 0.9rem;
    font-size: 0.85rem;
  }
}

/* Expression Page - List Items and Sidebar */
.list-group-item {
  border: 1px solid var(--primary-navy);
  border-radius: 12px;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.9);
  padding: 1.25rem;
  margin-bottom: 1rem;
  box-shadow: none;
}

.list-group-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(30, 58, 138, 0.15);
  background: rgba(255, 255, 255, 0.95);
  border-color: var(--secondary-navy);
}

.list-group-item a {
  color: inherit;
  text-decoration: none;
}

.list-group-item a:hover {
  color: var(--primary-navy);
}

.list-group-item h5 {
  color: var(--primary-navy);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.list-group-item p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.list-group-item small {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.8rem;
  background: rgba(30, 58, 138, 0.05);
  border-radius: 20px;
  font-size: 0.85rem;
}

.list-group-item img {
  transition: all 0.3s ease;
}

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

.keyword-item a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(30, 58, 138, 0.1);
  text-decoration: none;
  color: var(--text-dark);
  transition: all 0.3s ease;
}

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

.keyword-item a:hover {
  color: var(--primary-navy);
  padding-left: 0.5rem;
}

.pagination {
  gap: 0.5rem;
}

.pagination-wrapper {
  display: flex;
  justify-content: center;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.page-link {
  color: var(--primary-navy);
  border: 2px solid var(--primary-navy);
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  font-family: "Philosopher", sans-serif;
  transition: all 0.3s ease;
  padding: 0.6rem 0.85rem;
  min-width: 45px;
  text-align: center;
  line-height: 1.2;
}

.page-link:hover:not(.disabled .page-link) {
  color: #fff !important;
  background-color: var(--primary-navy);
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(30, 58, 138, 0.4);
}

.page-link:hover:not(.disabled .page-link) span {
  color: #fff !important;
}

.page-item.active .page-link {
  background-color: var(--primary-navy);
  border-color: var(--primary-navy);
  color: #fff;
}

.page-item.disabled .page-link {
  color: var(--text-light);
  border-color: var(--text-light);
  opacity: 0.5;
  cursor: not-allowed;
}

/* Suggestion List */
.suggestion-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 10000 !important;
  margin-top: 0.5rem;
  max-height: 400px;
  overflow-y: auto;
  display: none;
  background: rgba(255, 255, 255, 0.98);
  border-radius: 8px;
  border: 2px solid var(--primary-navy);
  box-shadow: 0 4px 20px rgba(30, 58, 138, 0.3);
  list-style: none;
  padding: 0;
  backdrop-filter: blur(10px);
  min-width: 100%;
  width: calc(100% + 0px);
}

/* Ensure suggestion list parent has proper positioning */
.search-form {
  position: relative;
}

.search-form .row {
  position: relative;
  z-index: 5;
}

.search-form .row .col-12:nth-child(2) {
  position: relative;
  z-index: 50;
}

/* Custom scrollbar */
.suggestion-list::-webkit-scrollbar {
  width: 8px;
}

.suggestion-list::-webkit-scrollbar-track {
  background: transparent;
}

.suggestion-list::-webkit-scrollbar-thumb {
  background: var(--primary-navy);
  border-radius: 4px;
  opacity: 0.5;
}

.suggestion-list::-webkit-scrollbar-thumb:hover {
  opacity: 0.8;
}

.suggestion-list.show {
  display: block;
}

.suggestion-list li {
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
}

.suggestion-list li a {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--text-dark);
  text-decoration: none;
  font-family: "Philosopher", sans-serif;
  font-size: 1.05rem;
  transition: all 0.2s ease;
}

.suggestion-list li a:hover {
  background: rgba(30, 58, 138, 0.08);
  color: var(--primary-navy);
  font-weight: 500;
  padding-left: 1.25rem;
}

.suggestion-list li:first-child a {
  border-radius: 6px 6px 0 0;
}

.suggestion-list li:last-child a {
  border-radius: 0 0 6px 6px;
}

/* Responsive Pagination */
@media (max-width: 768px) {
  .pagination {
    gap: 0.5rem;
  }

  .page-link {
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    min-width: 42px;
  }

  .list-group-item {
    padding: 1rem;
    margin-bottom: 0.75rem;
  }

  .list-group-item h5 {
    font-size: 1rem;
  }

  .list-group-item p {
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .pagination-wrapper {
    margin: 1.5rem 0;
  }

  .pagination {
    gap: 0.3rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .page-link {
    padding: 0.4rem 0.5rem;
    font-size: 0.75rem;
    min-width: auto;
    width: auto;
    flex-shrink: 1;
  }

  /* Hide ellipsis on very small screens */
  .page-item.disabled span {
    display: none;
  }

  .list-group-item {
    padding: 0.85rem;
    margin-bottom: 0.6rem;
  }

  .list-group-item h5 {
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
  }

  .list-group-item p {
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
  }

  .list-group-item small {
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
  }
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablet Devices (768px - 1024px) */
@media (max-width: 1024px) {
  .hero {
    padding: 2.5rem 2rem 3.5rem 2rem;
  }

  .section-title {
    font-size: 2.5rem;
  }

  .section-subtitle {
    font-size: 1.5rem;
  }

  .welcome-title {
    font-size: 1.6rem;
  }

  .content-text {
    font-size: 1rem;
  }

  .revava-icon {
    width: 120px;
  }

  .author-byline {
    font-size: 1.1rem;
  }

  .divider-line {
    width: 250px;
  }

  .divider-line::before,
  .divider-line::after {
    width: 14px;
    height: 14px;
  }

  .divider-line::before {
    left: -30px;
  }

  .divider-line::after {
    right: -30px;
  }
}

/* Mobile Devices (480px - 767px) */
@media (max-width: 767px) {
  .hero {
    padding: 2rem 1.5rem 2.5rem 1.5rem;
  }

  .section-title {
    font-size: 2rem;
    letter-spacing: 1px;
  }

  .section-subtitle {
    font-size: 0.95rem;
  }

  .welcome-title {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
  }

  .content-text {
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.7;
  }

  .content-text.fw-bold {
    font-size: 0.95rem !important;
  }

  .revava-icon {
    width: 100px;
    margin-bottom: 0.5rem;
  }

  .author-byline {
    font-size: 1rem;
    margin: 0.5rem 0 0.3rem;
  }

  .section-header {
    margin-bottom: 0.5rem;
  }

  .divider-line {
    width: 200px;
    height: 3px;
    margin: 1.5rem auto;
  }

  .divider-line::before,
  .divider-line::after {
    width: 12px;
    height: 12px;
  }

  .divider-line::before {
    left: -25px;
  }

  .divider-line::after {
    right: -25px;
  }
}

/* Small Mobile Devices (< 480px) */
@media (max-width: 480px) {
  .hero {
    padding: 1.5rem 1rem 2rem 1rem;
  }

  .hero-content {
    width: 100%;
  }

  .section-title {
    font-size: 1.7rem;
    letter-spacing: 0.5px;
  }

  .section-subtitle {
    font-size: 0.85rem;
    margin-bottom: 0.8rem;
  }

  .welcome-title {
    font-size: 1.1rem;
    margin-bottom: 1rem;
  }

  .content-text {
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
  }

  .content-text.fw-bold {
    font-size: 0.9rem !important;
  }

  .revava-icon {
    width: 80px;
    margin-bottom: 0.3rem;
  }

  .author-byline {
    font-size: 0.9rem;
    margin: 0.3rem 0;
  }

  .divider-line {
    width: 150px;
    height: 2px;
    margin: 1rem auto;
  }

  .divider-line::before,
  .divider-line::after {
    width: 10px;
    height: 10px;
  }

  .divider-line::before {
    left: -20px;
  }

  .divider-line::after {
    right: -20px;
  }

  .navbar-brand {
    font-size: 1.2rem;
  }

  .nav-link {
    font-size: 0.9rem;
  }

  .navbar-nav {
    gap: 1.5rem;
  }
}

/* Ultra-small devices (360px - 479px) */
@media (max-width: 360px) {
  .navbar-brand {
    font-size: 1rem;
    gap: 0.5rem !important;
  }

  .navbar-brand img {
    width: 32px !important;
    height: 32px !important;
  }

  .nav-link {
    font-size: 0.8rem;
    padding: 0.5rem 0 !important;
    padding-bottom: 0.3rem !important;
  }

  .navbar-nav {
    gap: 1rem;
  }

  .navbar-collapse {
    padding-top: 0.5rem;
  }

  .nav-item {
    padding: 0.3rem 0;
  }

  /* Hide flag icons on ultra-small screens */
  .fi {
    display: none;
  }

  .container-fluid.px-4 {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }
}

/* ===== HEBREW LANGUAGE SPECIFIC STYLES ===== */
[dir="rtl"] .hero-paragraphs {
  text-align: right;
}

[dir="rtl"] .author-byline {
  text-align: right;
  letter-spacing: 0.05em;
}

@media (max-width: 767px) {
  [dir="rtl"] .author-byline {
    font-size: 0.95rem;
  }

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