/* Navigation Styles */
.site-nav {
  background-color: transparent;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  border: none;
  transition: all 0.4s ease;
  padding: 1.5rem 0;
}

/* Scrolled State */
.site-nav.scrolled {
  background-color: rgba(255, 255, 255, 0.98) !important;
  padding: 0.8rem 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.site-logo-img {
  transition: all 0.4s ease !important;
}

.site-nav.scrolled .site-logo-img {
  width: 60px !important;
  height: 60px !important;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: #ffffff;
  /* Default for dark hero background */
  font-weight: 600;
  transition: all 0.3s ease;
}

/* Link color in scrolled state */
.site-nav.scrolled .nav-links a {
  color: var(--primary);
}

/* Link color in scrolled state for the logo text if it's there */
.site-nav.scrolled .logo h1 {
  color: var(--primary);
}

.nav-links a:hover,
.nav-links a.active {
  border-bottom: blue 2px solid;
}

.site-nav.scrolled .nav-links a:hover {
  color: var(--primary-hover);
}

.nav-item-dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: var(--card-bg);
  min-width: 250px;
  box-shadow: var(--shadow-lg);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  z-index: 1000;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  text-align: left;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  color: var(--text-main);
}

.hours-table tr {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.hours-table tr:last-child {
  border-bottom: none;
}

.hours-table td {
  padding: 0.5rem 0;
}

.hours-table td:first-child {
  font-weight: 600;
  color: var(--primary);
  padding: 0.5rem 0;
  min-width: 100px;
  /* Ensure enough space for longer day names */
}

.hours-table td:last-child {
  text-align: right;
  color: var(--text-muted);
  padding: 0.5rem 0;
  white-space: nowrap;
  /* Prevent time from wrapping */
}

/* RTL Specific Adjustments for the table */
[dir="rtl"] .hours-table td:first-child {
  padding-right: 0;
  padding-left: 1rem;
  text-align: right;
}

[dir="rtl"] .hours-table td:last-child {
  text-align: left;
}


.highlight-link {
  color: var(--primary) !important;
  font-weight: 700 !important;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #ffffff;
  /* Default for dark hero background */
  transition: color 0.3s ease;
}

.site-nav.scrolled .mobile-toggle {
  color: var(--primary);
}

.logo h1 {
  color: #ffffff;
  transition: color 0.3s ease;
}

/* Desktop Hover */
@media (min-width: 769px) {
  .nav-item-dropdown:hover .dropdown-content {
    display: block;
  }

  .nav-item-dropdown:hover .fa-angle-down {
    transform: rotate(180deg);
  }
}

/* Mobile/Click Toggle */
.nav-item-dropdown.open .dropdown-content {
  display: block;
}

.nav-item-dropdown.open .fa-angle-down {
  transform: rotate(180deg);
}

.nav-item-dropdown .fa-angle-down {
  transition: transform 0.3s ease;
  display: inline-block;
}

@media (max-width: 768px) {
  .dropdown-content {
    position: static;
    transform: none;
    box-shadow: none;
    background: var(--bg-color);
    border: 1px solid var(--input-border);
    margin-top: 0.5rem;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--primary-dark);
    padding: 8rem 2rem 2rem;
    /* More top padding for the menu icons */
    z-index: 999;
    text-align: center;
    overflow-y: auto;
  }

  .site-nav.scrolled .nav-links {
    background-color: #ffffff;
  }

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

  .nav-links li {
    margin-bottom: 1.5rem;
  }

  .nav-links a {
    color: #ffffff !important;
    font-size: 1.5rem;
    font-weight: 700;
    display: block;
  }

  .nav-links a:hover,
  .nav-links a.active {
    border-bottom: blue 2px solid;
  }

  .site-nav.scrolled .nav-links a {
    color: var(--primary) !important;
  }

  .mobile-toggle {
    display: block;
    position: relative;
    z-index: 1001;
    background: rgba(0, 0, 0, 0.2);
    /* Slight background for better visibility on images */
    border: none;
    color: #ffffff !important;
    padding: 0.5rem 0.8rem;
    border-radius: 8px;
  }

  .site-nav.scrolled .mobile-toggle {
    color: var(--primary) !important;
    background: rgba(16, 38, 148, 0.05);
  }
}

/* Language Dropdown Specifics */
.lang-dropdown-content {
  min-width: 140px;
  padding: 0.5rem;
  border: 1px solid rgba(16, 38, 148, 0.1);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.lang-option {
  display: block;
  padding: 0.7rem 1rem;
  color: var(--text-main) !important;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.2s ease;
  margin-bottom: 2px;
  text-align: center;
}

.lang-option:last-child {
  margin-bottom: 0;
}

.lang-option:hover {
  border-bottom: var(--primary) 2px solid;
  color: var(--primary) !important;
  transform: translateX(5px);
}

[dir="rtl"] .lang-option:hover {
  transform: translateX(-5px);
}

/* Fix for dark background in nav */
.nav-links .lang-switcher>a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.site-nav.scrolled .nav-links .lang-switcher>a {
  background: rgba(16, 38, 148, 0.05);
  border: 1px solid rgba(16, 38, 148, 0.1);
  color: var(--primary);
}

@media (max-width: 768px) {
  .lang-dropdown-content {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    min-width: auto;
  }

  .lang-option {
    color: #ffffff !important;
    font-size: 1.2rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    margin: 0.5rem 0;
  }

  .site-nav.scrolled .lang-option {
    color: var(--primary) !important;
    background: rgba(16, 38, 148, 0.05);
  }
}