/* Gephen - Hebrew RTL Styles */

/* CSS Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Root Variables */
:root {
  --primary-color: #0370ba;
  --primary-dark: #025aa3;
  --secondary-color: #64748b;
  --accent-color: #f59e0b;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --error-color: #ef4444;
  
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  
  --border-color: #e2e8f0;
  --border-light: #f1f5f9;
  
  /* Search dropdown z-index management - Maximum priority */
  --search-dropdown-z-index: 2147483647;
  --search-dropdown-z-index-desktop: 2147483647;
  
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  
  --font-family-hebrew: 'fb_hachaluzimmedium', 'Assistant', 'Heebo', 'Arial', sans-serif;
  --font-family-hebrew-bold: 'fb_hachaluzimbold', 'Assistant', 'Heebo', 'Arial', sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  
  --border-radius-sm: 0.25rem;
  --border-radius-md: 0.375rem;
  --border-radius-lg: 0.5rem;
  --border-radius-xl: 0.75rem;
}

/* Base Typography */
body {
  font-family: var(--font-family-hebrew);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  direction: rtl;
  text-align: right;
  width: 100%;
  min-width: 100%;
  overflow-x: hidden;
}

/* Main Content */
.main-content {
  padding-bottom: 0;
}

/* RTL-specific adjustments */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-hebrew-bold);
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: var(--spacing-md);
}

h1 { font-size: var(--font-size-3xl); }
h2 { font-size: var(--font-size-2xl); }
h3 { font-size: var(--font-size-xl); }
h4 { font-size: var(--font-size-lg); }
h5 { font-size: var(--font-size-base); }
h6 { font-size: var(--font-size-sm); }

p {
  margin-bottom: var(--spacing-md);
}

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

a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* ==========================================================================
   CONTAINER SYSTEM - Unified padding and layout structure
   ========================================================================== */

/* Base container - standard content width */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* Full-width containers for city and school pages */
.container--full-width {
  max-width: none;
  padding: 0 var(--spacing-lg);
}

/* Apply full-width to city and school page containers */
.city-header .container,
.schools-section .container,
.school-header .container,
.school-activities-section .container {
  max-width: none;
  padding: 0 var(--spacing-lg);
}

/* Desktop responsive padding */
@media (min-width: 1024px) {
  .container--full-width,
  .city-header .container,
  .school-header .container {
    padding: 0 8%;
  }
  
  .schools-section .container,
  .school-activities-section .container {
    padding: 0 16%;
  }
}

/* Mobile responsive padding */
@media (max-width: 768px) {
  .container {
    padding: 0 var(--spacing-sm);
  }
  
  .container--full-width,
  .city-header .container,
  .schools-section .container,
  .school-header .container,
  .school-activities-section .container {
    padding: 0 var(--spacing-lg);
  }
}

/* Header */
.site-header {
  background-color: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
}

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

.logo {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.logo h1 {
  font-family: var(--font-family-hebrew-bold);
  font-size: var(--font-size-2xl);
  font-weight: normal;
  color: var(--primary-color);
  margin: 0;
}

.tagline {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  margin-top: var(--spacing-xs);
}

.nav-links {
  display: flex;
  gap: var(--spacing-lg);
}

.nav-link {
  font-weight: 500;
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--border-radius-md);
  transition: all 0.2s ease;
}

.nav-link:hover {
  background-color: var(--bg-secondary);
  text-decoration: none;
}

/* Main Content */
.main-content {
  min-height: calc(100vh - 200px);
  padding: 0;
}

/* Search Section */
.search-section {
  text-align: center;
  margin-bottom: 0;
  padding: var(--spacing-2xl) 0;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
  border-radius: var(--border-radius-xl);
}

.search-section h1 {
  font-family: var(--font-family-hebrew-bold);
  font-size: var(--font-size-4xl);
  margin-bottom: var(--spacing-md);
  color: var(--text-primary);
}

.search-section p {
  font-size: var(--font-size-lg);
  color: var(--text-secondary);
  margin-bottom: var(--spacing-xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Search Input */
.search-container {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.search-elements-wrapper {
  margin: 0;
  padding: 0;
  max-width: 600px;
  margin: 0 auto;
}

/* Desktop: Add 12% padding to search elements wrapper */
@media (min-width: 768px) {
  .search-elements-wrapper {
    padding-left: 12%;
    padding-right: 12%;
  }
}

.search-input-wrapper {
  position: relative;
  margin-bottom: 0;
}

.city-search-wrapper {
  margin-top: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
}

/* Hero text moved to search section */
.hero-text-moved {
  margin-top: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.hero-text-moved .hero-text {
  color: var(--primary-color);
  font-weight: normal;
  font-size: var(--font-size-base);
  line-height: 1.6;
  margin-bottom: var(--spacing-md);
}

.hero-text-moved .hero-text-with-squares {
  color: var(--primary-color);
  font-weight: normal;
  font-size: var(--font-size-base);
  line-height: 1.6;
  margin: var(--spacing-md) 0;
  text-align: center;
}

/* Mobile: Each element in its own row with bullets at beginning and end */
@media (max-width: 767px) {
  .hero-text-moved .hero-text-with-squares {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
  }
  
  .hero-text-moved .hero-text-with-squares strong {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
  }
  
  .hero-text-moved .hero-text-with-squares strong::before,
  .hero-text-moved .hero-text-with-squares strong::after {
    content: "■";
    color: var(--primary-color);
    font-weight: normal;
  }
  
  .hero-text-moved .hero-text-with-squares .white-square {
    display: none;
  }
}

.hero-text-moved .white-square {
  color: var(--primary-color);
}

/* Desktop: Add 8% padding to hero text moved section */
@media (min-width: 768px) {
  .hero-text-moved {
    padding-left: 8%;
    padding-right: 8%;
  }
}

/* Desktop positioning for school search label */
@media (min-width: 768px) {
  .school-search-label {
    position: absolute;
    right: -65px;
    top: 7px;
  }
}

.search-label {
  display: block;
  font-family: var(--font-family-hebrew-bold);
  font-weight: 800;
  color: var(--problematic-color);
  margin-bottom: var(--spacing-sm);
  text-align: center;
}

.search-icon {
  margin-left: var(--spacing-xs);
  font-size: 1.1em;
}

.search-button-wrapper {
  margin-top: var(--spacing-lg);
  text-align: center;
}

.search-button {
  padding: var(--spacing-lg) var(--spacing-2xl);
  font-size: var(--font-size-lg);
  font-weight: 600;
  border: none;
  border-radius: var(--border-radius-lg);
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-family-hebrew);
}

.big-red-button {
  background-color: #ed222e;
  color: white;
  font-size: var(--font-size-lg);
  padding: 8px var(--spacing-2xl);
  min-width: 300px;
}

.big-red-button:hover {
  background-color: #d41f2a;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.big-red-button:active {
  transform: translateY(0);
}

/* Hide search button temporarily - not yet implemented */
.search-button-wrapper {
  display: none;
}

.search-input {
  width: 100%;
  padding: var(--spacing-md) var(--spacing-lg);
  padding-left: 3rem;
  padding-right: 4rem;
  font-size: var(--font-size-lg);
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  background-color: var(--bg-primary);
  color: var(--primary-color);
  transition: all 0.2s ease;
  font-family: var(--font-family-hebrew);
  position: relative;
  z-index: 1;
}

/* Search icon for school search */
.search-input-wrapper:first-of-type::before {
  content: "";
  position: absolute;
  left: var(--spacing-md);
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230370ba' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  pointer-events: none;
  z-index: 2;
}

.search-input:focus {
  outline: none;
  border-color: var(--primary-color);
  color: var(--primary-color);
  box-shadow: 0 0 0 3px rgb(37 99 235 / 0.1);
}

.search-input::placeholder {
  color: var(--primary-color);
  opacity: 1;
  text-align: right;
  direction: rtl;
}



/* Search Results - Enhanced Architecture with Maximum Z-Index */
.search-results,
#city-search-results {
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  right: 0 !important;
  background-color: var(--bg-primary) !important;
  border: 1px solid var(--border-color) !important;
  border-top: none !important;
  border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg) !important;
  box-shadow: var(--shadow-lg) !important;
  max-height: 400px !important;
  overflow-y: auto !important;
  z-index: var(--search-dropdown-z-index) !important;
  pointer-events: auto !important;
  display: none !important;
  /* Ensure it creates its own stacking context */
  transform: translateZ(0) !important;
  will-change: transform !important;
}

/* Both search results use full height with maximum z-index */
#search-results,
#city-search-results {
  max-height: 400px !important;
  z-index: var(--search-dropdown-z-index) !important;
}

.search-results.show,
#city-search-results.show {
  display: block !important;
}

/* Ensure search input wrapper has proper stacking context */
.search-input-wrapper {
  position: relative !important;
  z-index: 1 !important;
  margin-bottom: 0 !important;
  /* Ensure it doesn't create stacking context issues */
  isolation: isolate !important;
}

/* Ensure all search input elements have low z-index */
.search-input,
.search-input-wrapper {
  z-index: 1 !important;
}

/* City search wrapper - will be hidden when school results are shown */
.city-search-wrapper {
  z-index: 1 !important;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

/* Hide city search when school results are visible */
.school-results-visible .city-search-wrapper {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Enhanced result item styling */
.search-result-item {
  padding: var(--spacing-md) !important;
  border-bottom: 1px solid var(--border-light) !important;
  cursor: pointer !important;
  pointer-events: auto !important;
  transition: transform 0.2s ease, background-color 0.2s ease !important;
  position: relative !important;
  z-index: 1 !important;
  /* Ensure items are clickable */
  isolation: isolate !important;
}

.search-result-item:hover,
.search-result-item.selected {
  background-color: var(--bg-secondary);
}

.search-result-item:hover {
  transform: translateX(2px);
}

/* Prevent any parent elements from interfering */
.search-input-wrapper * {
  pointer-events: auto !important;
}

/* Global rule to ensure search dropdown is always on top */
.search-results,
#city-search-results,
.search-results *,
#city-search-results * {
  z-index: var(--search-dropdown-z-index) !important;
  position: relative !important;
}

/* Ensure search dropdown containers are always visible */
.search-results.show,
#city-search-results.show {
  z-index: var(--search-dropdown-z-index) !important;
  position: absolute !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Desktop-specific search enhancements */
@media (min-width: 768px) {
  .search-results,
  #city-search-results {
    /* Ensure dropdown appears above all other content */
    z-index: var(--search-dropdown-z-index-desktop) !important;
    /* Add subtle animation for better UX */
    animation: dropdownFadeIn 0.15s ease-out !important;
    /* Additional desktop-specific stacking context */
    transform: translateZ(0) !important;
  }
  
  
  .search-result-item {
    /* Larger touch targets on desktop */
    min-height: 48px;
    display: flex;
    align-items: center;
  }
  
  .search-result-item:hover {
    /* More pronounced hover effect */
    background-color: var(--bg-secondary);
    transform: translateX(2px);
    transition: all 0.2s ease;
  }
}

@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.city-result {
  border-right: 4px solid var(--primary-blue);
}

.search-result-district {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  font-weight: normal;
  margin-right: var(--spacing-sm);
}

.search-result-budget {
  font-size: var(--font-size-sm);
  color: #ed222e;
  font-weight: 600;
  margin-top: var(--spacing-xs);
}

.city-result:hover {
  background-color: rgba(3, 112, 186, 0.05);
  border-right-color: var(--action-red);
}

.search-result-item {
  padding: var(--spacing-md);
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.search-result-item:hover,
.search-result-item.selected {
  background-color: var(--bg-secondary);
}

.search-result-item.selected {
  border-right: 3px solid var(--primary-color);
}

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

.search-result-title {
  font-weight: 600;
  color: #0370ba;
  margin-bottom: var(--spacing-xs);
}

.search-result-subtitle {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
}

/* Desktop separator between school name and details link */
@media (min-width: 768px) {
  .search-result-item {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .search-result-title {
    margin-bottom: var(--spacing-xs);
  }
  
  .search-result-subtitle {
    position: relative;
    padding-left: var(--spacing-sm);
  }
  
  .search-result-subtitle::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--text-secondary);
    font-weight: bold;
  }
}

/* Back to Home Section */
.back-home-section {
  text-align: center;
  padding: var(--spacing-xl) 0;
  border-top: 1px solid var(--border-light);
}

.back-home-link {
  display: inline-block;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.back-home-link:hover {
  transform: translateY(-2px);
  opacity: 0.8;
}

.back-home-image {
  max-width: 120px;
  height: auto;
  display: block;
}

@media (min-width: 768px) {
  .back-home-image {
    max-width: 150px;
  }
}

.search-result-highlight {
  background-color: #ed222e;
  color: white;
  padding: 0.1em 0.2em;
  border-radius: var(--border-radius-sm);
}

/* Custom scrollbar styling for search results */
.search-results::-webkit-scrollbar,
#city-search-results::-webkit-scrollbar {
  width: 8px;
}

.search-results::-webkit-scrollbar-track,
#city-search-results::-webkit-scrollbar-track {
  background: #0370ba;
  border-radius: 4px;
}

.search-results::-webkit-scrollbar-thumb,
#city-search-results::-webkit-scrollbar-thumb {
  background: white;
  border-radius: 4px;
  border: 1px solid #0370ba;
}

.search-results::-webkit-scrollbar-thumb:hover,
#city-search-results::-webkit-scrollbar-thumb:hover {
  background: #f8fafc;
}

/* School Page */
.school-page {
  max-width: 800px;
  margin: 0 auto;
}

.school-header {
  background-image: url('/assets/images/BLUE_BG1-75.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  text-align: center;
  margin-bottom: 0;
  padding: var(--spacing-md) 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.school-activities-section {
  background-image: url('/assets/images/GREY_BG1-75.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: var(--spacing-2xl) 0 var(--spacing-2xl) 0;
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  overflow-x: hidden; /* Prevent horizontal scrolling from negative margins */
  min-height: 100vh; /* Ensure enough height for fixed background */
  z-index: 10;
}

.school-activities-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.9);
  z-index: -1;
}

.school-activities-section > * {
  position: relative;
}

.school-name {
  font-family: var(--font-family-hebrew-bold);
  font-size: var(--font-size-3xl);
  font-weight: normal;
  color: white;
  margin: 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.school-location {
  font-size: var(--font-size-lg);
  color: var(--text-secondary);
  margin-bottom: var(--spacing-md);
}

.school-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-xl);
}

.info-item {
  background-color: var(--bg-secondary);
  padding: var(--spacing-md);
  border-radius: var(--border-radius-md);
  text-align: center;
}

.info-label {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  margin-bottom: var(--spacing-xs);
}

.info-value {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--text-primary);
}

/* Activities */
.activities-section {
  margin-top: 0;
}

.activities-section h2 {
  font-family: var(--font-family-hebrew-bold);
  font-size: var(--font-size-2xl);
  margin-bottom: 0;
  color: var(--text-primary);
}

.activities-list {
  display: grid;
  gap: var(--spacing-lg);
}

/* ==========================================================================
   ACTIVITY CARDS - Consolidated responsive structure
   ========================================================================== */

.activity-card {
  /* Base styles - only properties that are consistent across all layouts */
  transition: all 0.2s ease;
}

/* Desktop table row styling */
@media (min-width: 768px) {
  .activity-card {
    background-color: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    margin: 0;
    border-bottom: 1px solid var(--problematic-color);
  }
  
  .activity-card.legitimate-card {
    border-bottom-color: var(--primary-color);
  }
}

/* Mobile card styling */
@media (max-width: 767px) {
  .activity-card {
    border: none;
    border-radius: 0;
    margin-bottom: 0;
    overflow: visible;
    background-color: transparent;
    padding: 0;
    border-bottom: 1px solid var(--problematic-color);
  }
  
  .activity-card.legitimate-card {
    border-bottom-color: var(--primary-color);
  }
}

.activity-name {
  font-family: var(--font-family-hebrew-bold);
  font-size: var(--font-size-xl);
  font-weight: normal;
  color: var(--text-primary);
  margin-bottom: var(--spacing-md);
}

.activity-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

.activity-detail {
  display: flex;
  flex-direction: column;
}

.activity-detail-label {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  margin-bottom: var(--spacing-xs);
  font-weight: 500;
}

.activity-detail-value {
  color: var(--text-primary);
  font-weight: 500;
}

.activity-budget {
  color: var(--primary-color);
  font-weight: 600;
}

.activity-supplier {
  color: var(--warning-color);
  font-weight: 500;
}

.activity-reason {
  grid-column: 1 / -1;
  background-color: var(--bg-secondary);
  padding: var(--spacing-md);
  border-radius: var(--border-radius-md);
  font-size: var(--font-size-sm);
  line-height: 1.6;
  color: var(--text-secondary);
}

/* Footer */
.site-footer {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: var(--spacing-2xl) 0 var(--spacing-lg);
  margin-top: var(--spacing-2xl);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}

.footer-section h3,
.footer-section h4 {
  font-family: var(--font-family-hebrew-bold);
  margin-bottom: var(--spacing-md);
  color: var(--text-primary);
}

.footer-section p {
  color: var(--text-secondary);
  margin-bottom: var(--spacing-md);
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: var(--spacing-sm);
}

.footer-section a {
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.footer-section a:hover {
  color: var(--primary-color);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--spacing-lg);
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: var(--font-size-sm);
}

/* Responsive Design */
@media (max-width: 768px) {
  /* Container responsive styles handled in unified container system above */
  
  .main-nav {
    flex-direction: column;
    gap: var(--spacing-md);
  }
  
  .nav-links {
    gap: var(--spacing-md);
  }
  
  .search-section h1 {
    font-size: var(--font-size-3xl);
  }
  
  .school-info {
    grid-template-columns: 1fr;
  }
  
  .activity-details {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .search-section {
    padding: var(--spacing-lg) 0;
  }
  
  .search-section h1 {
    font-size: var(--font-size-2xl);
  }
  
  .search-label {
    margin-bottom: 0;
  }
  
  .search-input {
    font-size: var(--font-size-base);
    padding: var(--spacing-sm) var(--spacing-md);
    padding-left: 2.5rem;
    padding-right: 3.5rem;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus styles for keyboard navigation */
a:focus,
button:focus,
input:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Home Page Styles */
.home-content {
  margin-top: var(--spacing-2xl);
}

.stats-section {
  margin-bottom: var(--spacing-2xl);
}

.stats-section h2 {
  text-align: center;
  margin-bottom: var(--spacing-xl);
  color: var(--text-primary);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
}

.stat-item {
  background-color: var(--bg-secondary);
  padding: var(--spacing-lg);
  border-radius: var(--border-radius-lg);
  text-align: center;
  border: 1px solid var(--border-color);
  transition: all 0.2s ease;
}

.stat-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.stat-number {
  font-family: var(--font-family-hebrew-bold);
  font-size: var(--font-size-3xl);
  font-weight: normal;
  color: var(--primary-color);
  margin-bottom: var(--spacing-sm);
}

.stat-label {
  font-size: var(--font-size-lg);
  color: var(--text-secondary);
  font-weight: 500;
}

.cities-section {
  margin-top: var(--spacing-2xl);
}

.cities-section h2 {
  text-align: center;
  margin-bottom: var(--spacing-xl);
  color: var(--text-primary);
}

.cities-list {
  text-align: center;
  line-height: 1.8;
  font-size: var(--font-size-lg);
  color: var(--text-secondary);
  max-width: 800px;
  margin: 0 auto;
}

.cities-list .city-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.cities-list .city-link:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.activity-count {
  color: var(--text-secondary);
  font-weight: 500;
}

.budget {
  color: var(--primary-color);
  font-weight: 600;
}

.city-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.city-link:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* City Page Styles */
.city-page {
  max-width: 1000px;
  margin: 0 auto;
}

.city-header {
  background-image: url('/assets/images/BLUE_BG1-75.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  text-align: center;
  margin-bottom: 0;
  padding: var(--spacing-md) 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.city-name {
  font-family: var(--font-family-hebrew-bold);
  font-size: var(--font-size-3xl);
  font-weight: normal;
  color: white;
  margin: 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.city-location {
  font-size: var(--font-size-lg);
  color: var(--text-secondary);
  margin-bottom: var(--spacing-md);
}

.city-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-xl);
}

/* Schools Section */
.schools-section {
  background-image: url('/assets/images/GREY_BG1-75.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: var(--spacing-2xl) 0 var(--spacing-2xl) 0;
  margin-bottom: 0;
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  overflow-x: hidden;
  z-index: 10;
}

.schools-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.9);
  z-index: -1;
}

.schools-section > * {
  position: relative;
}

.schools-section h2 {
  font-family: var(--font-family-hebrew-bold);
  font-size: var(--font-size-2xl);
  margin-bottom: 0;
  color: var(--text-primary);
}

.schools-grid {
  display: grid;
  gap: var(--spacing-lg);
}

.school-card {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
  overflow: hidden;
}

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

.school-card-link {
  display: block;
  padding: var(--spacing-lg);
  color: inherit;
  text-decoration: none;
}

.school-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--spacing-md);
}

.school-card-title {
  font-family: var(--font-family-hebrew-bold);
  font-size: var(--font-size-xl);
  font-weight: normal;
  color: var(--text-primary);
  margin: 0;
  flex: 1;
}

.school-card-badge {
  background-color: var(--primary-color);
  color: white;
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--border-radius-md);
  font-size: var(--font-size-sm);
  font-weight: 500;
  margin-right: var(--spacing-sm);
}

.school-card-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
}

.school-detail {
  display: flex;
  gap: var(--spacing-xs);
}

.detail-label {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  font-weight: 500;
}

.detail-value {
  font-size: calc(var(--font-size-lg) * 0.8); /* Match header font size */
  color: var(--text-primary);
  padding: var(--spacing-sm) var(--spacing-md); /* Match city page .city-school-detail padding */
}

.school-card-stats {
  display: flex;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
  padding: var(--spacing-md);
  background-color: var(--bg-secondary);
  border-radius: var(--border-radius-md);
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.stat-number {
  font-family: var(--font-family-hebrew-bold);
  font-size: var(--font-size-lg);
  font-weight: normal;
  color: var(--primary-color);
  margin-bottom: var(--spacing-xs);
}

.stat-label {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  font-weight: 500;
}

.school-card-activities {
  margin-bottom: var(--spacing-md);
}

.school-card-activities h4 {
  font-family: var(--font-family-hebrew-bold);
  font-size: var(--font-size-base);
  font-weight: normal;
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
}

.activities-preview {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
}

.activity-tag {
  background-color: var(--bg-tertiary);
  color: var(--text-secondary);
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--border-radius-sm);
  font-size: var(--font-size-xs);
  font-weight: 500;
  border: 1px solid var(--border-light);
}

.school-card-supplier {
  display: flex;
  gap: var(--spacing-xs);
  padding-top: var(--spacing-md);
  border-top: 1px solid var(--border-light);
}

.supplier-label {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  font-weight: 500;
}

.supplier-name {
  font-size: var(--font-size-sm);
  color: var(--warning-color);
  font-weight: 600;
}

/* City Summary */
.city-summary {
  margin-top: var(--spacing-2xl);
  padding-top: var(--spacing-xl);
  border-top: 1px solid var(--border-color);
}

.city-summary h2 {
  font-family: var(--font-family-hebrew-bold);
  font-size: var(--font-size-2xl);
  margin-bottom: 0;
  color: var(--text-primary);
  text-align: center;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
}

.summary-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-lg);
}

.summary-card h3 {
  font-family: var(--font-family-hebrew-bold);
  font-size: var(--font-size-lg);
  font-weight: normal;
  color: var(--text-primary);
  margin-bottom: var(--spacing-md);
  text-align: center;
}

.supplier-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.supplier-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-sm);
  background-color: var(--bg-primary);
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-light);
}

.supplier-item .supplier-name {
  color: var(--warning-color);
  font-weight: 600;
  font-size: var(--font-size-sm);
}

.supplier-count {
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
  font-weight: 500;
}

.budget-breakdown {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.budget-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-sm);
  background-color: var(--bg-primary);
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-light);
}

.budget-activity {
  color: var(--text-primary);
  font-size: var(--font-size-sm);
  font-weight: 500;
}

.budget-amount {
  color: var(--primary-color);
  font-size: var(--font-size-sm);
  font-weight: 600;
}

/* Responsive Design for City Page */
@media (max-width: 768px) {
  .city-info {
    grid-template-columns: 1fr;
  }
  
  .school-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-sm);
  }
  
  .school-card-badge {
    align-self: flex-start;
  }
  
  .school-card-details {
    grid-template-columns: 1fr;
  }
  
  .school-card-stats {
    flex-direction: column;
    gap: var(--spacing-md);
  }
  
  .activities-preview {
    flex-direction: column;
  }
  
  .summary-grid {
    grid-template-columns: 1fr;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --border-color: #000000;
    --text-secondary: #000000;
    --bg-secondary: #ffffff;
  }
}

/* ===== NEW ACTIVITY SECTIONS STYLES ===== */

/* Activity Type Colors */
:root {
  --problematic-color: #dc2626;
  --problematic-bg: #fef2f2;
  --problematic-border: #fecaca;
  --legitimate-color: #0370ba;
  --legitimate-bg: #eff6ff;
  --legitimate-border: #bfdbfe;
}

/* Activity Count Indicators */
.problematic-count {
  color: var(--problematic-color);
  font-weight: 600;
}

.legitimate-count {
  color: var(--legitimate-color);
  font-weight: 600;
}

/* Activity Subsections */
.activities-subsection {
  margin-bottom: var(--spacing-2xl);
}

.activities-subsection:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   SECTION TITLES - Consolidated responsive structure
   ========================================================================== */

/* Base section title styles */
.activities-section .section-title {
  font-size: var(--font-size-lg);
  line-height: 1.6;
  font-weight: 600;
  margin-bottom: var(--spacing-xl);
}

/* Desktop section title adjustments */
@media (min-width: 768px) {
  .activities-section .section-title {
    margin-bottom: 0;
  }
}

/* Mobile section title styling - full width backgrounds */
@media (max-width: 767px) {
  .activities-section .section-title {
    text-align: center;
    background-color: var(--problematic-color);
    color: white;
    margin: 0 calc(-1 * var(--spacing-lg));
    padding: 3% 12%;
    font-size: var(--font-size-lg);
    font-weight: 800;
    border-radius: 0;
  }
  
  .activities-section .legitimate-title {
    background-color: var(--primary-color);
  }
}

/* Small mobile font size adjustment */
@media (max-width: 480px) {
  .activities-section .section-title {
    font-size: var(--font-size-base);
  }
}

/* Desktop-only title colors */
@media (min-width: 768px) {
  .activities-section .problematic-title {
    color: var(--problematic-color);
  }

  .activities-section .legitimate-title {
    color: var(--primary-color);
  }
}

/* Activity instruction text - styled similar to city page mobile-school-details */
.activity-instruction {
  font-family: var(--font-family-hebrew);
  font-size: var(--font-size-sm);
  font-weight: normal;
  text-align: right;
  color: var(--text-secondary);
  /* Mobile defaults */
  margin-top: 0.4em;
  margin-bottom: 0.2em;
}

/* Desktop margin adjustments */
@media (min-width: 768px) {
  .activity-instruction {
    margin-top: -0.2em;
    margin-bottom: 0;
  }
}

.title-icon {
  font-size: var(--font-size-lg);
}

.activity-count {
  font-size: var(--font-size-sm);
  font-weight: 400;
  opacity: 0.8;
}

/* Activity Cards */
.problematic-card {
  background-color: transparent;
}

.legitimate-card {
  background-color: transparent;
}

.problematic-card .activity-details {
  border-color: var(--problematic-border);
}

.legitimate-card .activity-details {
  border-color: var(--legitimate-border);
}

/* Activity Reason Section (for problematic activities) */
.activity-reason {
  margin-top: var(--spacing-md);
  padding-top: var(--spacing-md);
  border-top: 1px solid var(--border-light);
}

.activity-reason .activity-detail {
  display: block;
}

.activity-reason .detail-label {
  font-weight: 600;
  margin-bottom: var(--spacing-xs);
}

.activity-reason .detail-value {
  line-height: 1.5;
}

/* Desktop Table Layout - only show on desktop */
.table-header {
  display: none;
}

@media (min-width: 768px) {
  /* Section title styles handled in consolidated section above */
  
  /* Table Headers */
  .table-header {
    display: flex;
    border-top: 2px solid var(--problematic-color);
    border-bottom: 2px solid var(--problematic-color);
    background-color: rgba(220, 38, 38, 0.3); /* --problematic-color with 30% opacity */
    margin-bottom: 0;
  }
  
  .legitimate-header {
    border-top: 2px solid var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    background-color: rgba(3, 112, 186, 0.3); /* --primary-color with 30% opacity */
  }
  
  .header-cell {
    padding: var(--spacing-sm) var(--spacing-md); /* Match city page header cell padding */
    font-family: var(--font-family-hebrew-bold);
    font-size: calc(var(--font-size-lg) * 0.8); /* Match city page header font size */
    font-weight: 800;
    word-wrap: break-word;
    overflow-wrap: break-word;
    text-align: center;
  }
  
  /* Header text colors */
  .problematic-header .header-cell {
    color: var(--problematic-color);
  }
  
  .legitimate-header .header-cell {
    color: var(--primary-color);
  }
  
  .program-header {
    width: 35%; /* Reduced from 40% */
    text-align: right;
  }
  
  .organization-header {
    width: 25%; /* Increased from 20% */
  }
  
  .activities-header {
    width: 15%; /* Narrower column for פעילויות בשנה */
  }
  
  .budget-header {
    width: 25%; /* Wider column for תקציב (ש"ח) לפעילות אחת */
  }
  
  /* Remove gap from activities list */
  .activities-list {
    gap: 0;
  }
  
  /* Activity card styling handled in consolidated section above */
  
  /* Desktop Activity Cards Layout */
  .activity-details {
    display: flex;
    margin-bottom: 0;
    background-color: transparent !important;
    border: none !important;
    padding: 0 !important;
  }
  
  .activity-detail {
    padding: 0;
    margin: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    text-align: center;
    background-color: transparent !important;
  }
  
  .activity-detail:nth-child(1) { width: 35%; } /* התוכנית - reduced from 40% */
  .activity-detail:nth-child(2) { width: 25%; } /* עמותה מפעילה - increased from 20% */
  .activity-detail:nth-child(3) { width: 15%; } /* פעילויות בשנה - narrower */
  .activity-detail:nth-child(4) { width: 25%; } /* תקציב - wider */
  
  /* Program name (התוכנית) should be right-aligned with proper margin */
  .activity-detail:nth-child(1) {
    text-align: right;
  }
  
  
  /* Hide labels on desktop */
  .activity-detail .detail-label {
    display: none;
  }
  
  /* Color text based on activity type */
  .problematic-card .detail-value {
    color: var(--problematic-color);
    font-weight: normal;
  }
  
  .legitimate-card .detail-value {
    color: var(--primary-color);
    font-weight: normal;
  }
  
  /* הרחבה section takes full width */
  .activity-reason {
    width: 100%;
    margin: 0;
    margin-left: var(--spacing-md);
    padding: 0;
    border-top: none;
    background-color: transparent !important;
  }
  
  /* Make sure activity-reason activity-detail takes full width */
  .activity-reason .activity-detail {
    width: 100% !important;
  }
  
  /* Remove reason label on desktop */
  .activity-reason .detail-label {
    display: none;
  }
  
  .activity-reason .detail-value {
    display: block;
    width: 100%;
    color: var(--problematic-color);
    text-align: right; /* Hebrew text alignment */
    padding-right: var(--spacing-md); /* Match header-cell margin */
    padding-left: var(--spacing-md); /* Symmetric padding */
    margin-right: 0 !important; /* Override nth-child(1) margin */
  }
  
  /* CTA Section updates for desktop */
  .cta-section {
    margin-top: 0 !important;
    padding-top: 0 !important;
    border-top: none !important;
    margin-bottom: var(--spacing-2xl);
  }
  
  /* Hide mobile elements on desktop */
  .mobile-toggle,
  .mobile-layout {
    display: none;
  }
  
  /* Show desktop elements */
  .desktop-layout {
    display: flex;
  }
  
  .activity-reason.desktop-layout {
    display: block;
  }
  
  /* Desktop toggle functionality - only for problematic activities */
  .problematic-card .activity-details {
    cursor: pointer;
  }
  
  .desktop-toggle-icon {
    display: inline-block;
    margin-left: var(--spacing-sm);
    transition: transform 0.2s ease;
    color: var(--problematic-color);
    font-size: 1em;
    font-weight: bold;
  }
  
  .legitimate-card .desktop-toggle-icon {
    color: var(--primary-color);
  }
  
  /* Desktop toggle icon SVG styling */
  .desktop-toggle-icon .toggle-arrow-icon {
    width: 1em;
    height: 1em;
    display: inline-block;
    vertical-align: middle;
  }
  
  /* Desktop toggle icon rotation when expanded (pointing down) */
  .desktop-toggle-icon.rotated {
    transform: rotate(-90deg);
  }
}

/* Mobile Layout Styles */
@media (max-width: 767px) {
  /* Hide desktop elements on mobile */
  .table-header,
  .desktop-layout {
    display: none;
  }
  
  /* Show mobile elements */
  .mobile-toggle,
  .mobile-layout {
    display: block;
  }
  
  /* Mobile toggle styling - table-like rows */
  .mobile-toggle {
    background-color: transparent;
    border: none;
    border-bottom: 1px solid var(--border-color);
    padding: 0 var(--spacing-md);
    font-family: var(--font-family-hebrew-bold);
    font-size: calc(var(--font-size-lg) * 1.1);
    font-weight: 800;
    color: var(--problematic-color);
    cursor: pointer;
    word-wrap: break-word;
    overflow-wrap: break-word;
    min-height: 48px; /* Touch-friendly height */
    position: relative;
    display: flex;
    align-items: center;
    padding-right: calc(var(--spacing-md) + 24px); /* Space for triangle */
  }
  
  /* Legitimate activities toggle styling */
  .legitimate-card .mobile-toggle {
    color: var(--primary-color);
  }
  
  /* Toggle icon positioning */
  .toggle-icon {
    position: absolute;
    right: var(--spacing-md);
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.2s ease;
    display: inline-block;
    /* Removed font-size - no longer needed for SVG, was causing oversized icons */
    text-align: center;
    color: inherit;
  }
  
  /* Toggle icon SVG styling - sized directly relative to parent text */
  .toggle-icon .toggle-arrow-icon {
    width: 0.9em; /* Proportional to toggle text size, smaller than previous 1.2em */
    height: 0.9em;
    display: block;
  }
  
  /* Rotate toggle icon when expanded (pointing down) */
  .toggle-icon.rotated {
    transform: translateY(-50%) rotate(-90deg);
  }
  
  /* Activity card styling handled in consolidated section above */
  
  /* Card content - initially hidden, card-like when expanded */
  .card-content {
    display: none;
  }
  
  .card-content.expanded {
    display: block;
    border: 1px solid var(--problematic-color);
    border-radius: 12px;
    margin: var(--spacing-sm) 0 var(--spacing-md) 0;
    overflow: hidden;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }
  
  .legitimate-card .card-content.expanded {
    border-color: var(--primary-color);
  }
  
  /* Mobile field styling */
  .mobile-field {
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid rgba(220, 38, 38, 0.6); /* Site red 60% opacity */
  }
  
  .legitimate-card .mobile-field {
    border-bottom-color: rgba(3, 112, 186, 0.6); /* Site blue 60% opacity */
  }
  
  .mobile-field:last-child {
    border-bottom: none;
  }
  
  /* Mobile labels - red/blue background with 40% opacity */
  .mobile-label {
    background-color: rgba(220, 38, 38, 0.4); /* Site red with 40% opacity */
    padding: var(--spacing-sm) var(--spacing-md);
    font-family: var(--font-family-hebrew);
    font-size: var(--font-size-base);
    font-weight: normal;
    color: var(--problematic-color);
  }
  
  .legitimate-card .mobile-label {
    background-color: rgba(3, 112, 186, 0.4); /* Site blue with 40% opacity */
    color: var(--primary-color);
  }
  
  /* Mobile values - transparent background, bold text in site colors */
  .mobile-value {
    background-color: transparent;
    padding: var(--spacing-md);
    font-family: var(--font-family-hebrew-bold);
    font-size: var(--font-size-base);
    font-weight: 800;
    color: var(--problematic-color);
    text-align: right;
  }
  
  .legitimate-card .mobile-value {
    color: var(--primary-color);
  }
  
  /* Reason field - value only, no label */
  .reason-field .mobile-value {
    padding: var(--spacing-md);
    font-weight: normal;
    line-height: 1.5;
    color: var(--problematic-color);
  }
  
  .legitimate-card .reason-field .mobile-value {
    color: var(--primary-color);
  }
}

/* No Activities Message */
.no-activities-message {
  text-align: center;
  padding: var(--spacing-2xl);
  color: var(--text-secondary);
  font-style: italic;
}

/* No Problematic Activities Success Message */
.no-problematic-activities-success {
  background-color: var(--error-color); /* Site red with 100% opacity */
  margin: 0;
  padding: var(--spacing-lg);
  border-radius: var(--border-radius-md);
}

.success-message-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-md);
  text-align: center;
}

.success-message-text {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--bg-primary); /* White text for contrast */
  line-height: 1.6;
}

.success-checkmark {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.success-checkmark-left {
  order: 1;
}

.success-message-text {
  order: 2;
}

.success-checkmark-right {
  order: 3;
}

/* No Problematic Activities Message */
.no-problematic-activities-message {
  text-align: center;
  padding: var(--spacing-2xl);
  color: var(--text-secondary);
  font-style: italic;
}

.no-problematic-text {
  padding-bottom: 10px;
}

/* Activity Breakdown on Home Page */
.activity-breakdown {
  margin-top: var(--spacing-2xl);
  padding-top: var(--spacing-xl);
  border-top: 1px solid var(--border-color);
}

.breakdown-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-lg);
}

.breakdown-item {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-md);
  padding: var(--spacing-lg);
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--border-color);
  background-color: var(--bg-secondary);
}

.problematic-breakdown {
  border-color: var(--problematic-border);
  background-color: var(--problematic-bg);
}

.legitimate-breakdown {
  border-color: var(--legitimate-border);
  background-color: var(--legitimate-bg);
}

.breakdown-icon {
  font-size: var(--font-size-2xl);
  flex-shrink: 0;
}

.breakdown-content {
  flex: 1;
}

.breakdown-label {
  font-weight: 600;
  margin-bottom: var(--spacing-xs);
}

.problematic-breakdown .breakdown-label {
  color: var(--problematic-color);
}

.legitimate-breakdown .breakdown-label {
  color: var(--legitimate-color);
}

.breakdown-description {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Enhanced Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
}

/* City Page Styles */
.intro-paragraph {
  font-size: var(--font-size-lg);
  color: var(--primary-color);
  margin-bottom: 0;
  line-height: 1.6;
  text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
  font-weight: 600;
}

.intro-paragraph-red {
  font-size: var(--font-size-lg);
  color: var(--error-color);
  margin-bottom: 0;
  line-height: 1.6;
  text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
  font-weight: 600;
}

.schools-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.school-item {
  padding: 8px;
  border: 2px solid rgba(237, 34, 46, 0.5);
  border-radius: var(--border-radius-md);
  background-color: transparent;
  transition: all 0.2s ease;
}

.school-item:hover {
  background-color: rgba(255, 255, 255, 0.95);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.school-link {
  color: #ed222e;
  text-decoration: none;
  font-weight: 600;
  display: block;
}

.school-link:hover {
  color: #c11e28;
  text-decoration: none;
}

/* Call to Action Section */
.cta-section {
  margin-top: 0;
  padding-top: var(--spacing-sm);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.cta-item {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-sm);
  background-color: transparent;
  gap: var(--spacing-sm);
  cursor: default;
}

.cta-item:hover {
  background-color: transparent;
}

.cta-text {
  color: var(--primary-color);
  font-weight: 600;
  font-size: var(--font-size-base);
  text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
  cursor: default;
}

.cta-button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: var(--spacing-xs) var(--spacing-md);
  border-radius: 50px;
  font-family: var(--font-family-hebrew);
  font-size: var(--font-size-sm);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.cta-button:hover {
  background-color: #025a8a;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(3, 112, 186, 0.3);
}

.cta-button:visited {
  color: white;
}

.cta-button:visited:hover {
  color: white;
}

/* WhatsApp Icon before CTA Text */
.whatsapp-icon-before {
  width: 20px;
  height: 20px;
  margin-left: 8px;
  vertical-align: middle;
  display: inline-block;
}

/* Copy feedback animations */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideOut {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(100%);
  }
}

/* City Page Responsive Design */
@media (max-width: 768px) {
  .city-header,
  .school-header {
    padding: var(--spacing-lg) 0;
  }
  
  .city-name,
  .school-name {
    font-size: var(--font-size-2xl);
  }
  
  .schools-section,
  .school-activities-section {
    padding: var(--spacing-lg) 0;
  }
}

@media (max-width: 480px) {
  .city-header,
  .school-header {
    padding: var(--spacing-md) 0;
  }
  
  .city-name,
  .school-name {
    font-size: var(--font-size-xl);
  }
  
  .schools-section,
  .school-activities-section {
    padding: var(--spacing-md) 0;
  }
  
  .school-item {
    padding: 8px;
  }
  
  /* Center text on mobile */
  .intro-paragraph,
  .intro-paragraph-red {
    text-align: center;
  }
  
  /* Section title mobile styles handled in consolidated section above */
  
/* Activity count styling */
.activity-count {
  color: white !important;
}

/* Currency display for RTL layout - currency symbol on right side */
.detail-value,
.mobile-value,
.search-result-budget {
  direction: rtl;
  text-align: right;
}

  
  /* Remove gap from activities list on mobile */
  .activities-list {
    gap: 0;
  }
  
  /* Remove margin bottom from activities section and subsection on mobile */
  .activities-section {
    margin-bottom: 0 !important;
  }
  
  .activities-subsection {
    margin-bottom: 0 !important;
  }
  
  .cta-section {
    max-width: 90%;
    margin-top: 0 !important;
    padding-top: 0 !important;
    border-top: none !important;
  }
  
  .cta-item {
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xs);
  }
  
  .cta-text {
    text-align: center;
    font-size: var(--font-size-sm);
  }
  
  .cta-button {
    font-size: var(--font-size-xs);
    padding: var(--spacing-xs) var(--spacing-sm);
  }
}

/* Responsive Design for New Elements */
@media (max-width: 768px) {
  .breakdown-grid {
    grid-template-columns: 1fr;
  }
  
  .breakdown-item {
    flex-direction: column;
    text-align: center;
  }
  
  /* Section title small mobile styles handled in consolidated section above */
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .intro-paragraph,
  .intro-paragraph-red {
    font-size: var(--font-size-base);
  }
  
  /* No Problematic Activities Success Message - Mobile */
  .no-problematic-activities-success {
    text-align: center;
    background-color: var(--error-color);
    color: white;
    margin: 0 calc(-1 * var(--spacing-lg));
    padding: 3% 12%;
    font-size: var(--font-size-lg);
    font-weight: 800;
    border-radius: 0;
  }
  
  .success-message-container {
    flex-direction: row;
    gap: var(--spacing-sm);
    align-items: center;
    justify-content: center;
  }
  
  .success-message-text {
    font-size: var(--font-size-lg);
    font-weight: 800;
    color: white;
    order: 2;
  }
  
  .success-checkmark {
    width: 20px;
    height: 20px;
  }
  
  .success-checkmark-left {
    order: 1;
  }
  
  .success-checkmark-right {
    order: 3;
  }
}

/* Desktop styles for No Problematic Activities Success Message */
@media (min-width: 769px) {
  .activities-section {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  
  .no-problematic-activities-success {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    align-self: stretch;
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md); /* Match header cell padding */
  }
  
  .success-message-container {
    flex-direction: row;
    gap: var(--spacing-md);
  }
  
  .success-message-text {
    font-size: var(--font-size-lg);
  }
  
  .success-checkmark {
    width: 24px;
    height: 24px;
  }
}

/* City Page No Schools Success Message - inherits base styles with context-specific adjustments */
.city-no-schools-success {
  margin-top: var(--spacing-lg); /* Ensure proper spacing from city header */
  margin-bottom: 1em; /* Spacing to CTA section below */
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  /* Small mobile font size adjustment for success message */
  .no-problematic-activities-success {
    font-size: var(--font-size-base);
  }
  
  .success-message-text {
    font-size: var(--font-size-base);
  }
  
  .breakdown-item {
    padding: var(--spacing-md);
  }
  
  .school-item {
    padding: var(--spacing-sm);
  }
}

/* Call to Action and Social Sharing Styles */
.cta-section {
  margin-top: var(--spacing-2xl);
  padding-top: var(--spacing-xl);
  border-top: 1px solid var(--border-color);
}

.cta-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.cta-item {
  border-radius: var(--border-radius-md);
  color: var(--text-primary);
  font-weight: 500;
  transition: all 0.2s ease;
}

.social-section {
  margin-top: var(--spacing-xl);
  padding-top: var(--spacing-lg);
  border-top: 1px solid var(--border-color);
}

.social-icons {
  display: flex;
  gap: var(--spacing-md);
  margin-top: var(--spacing-md);
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.2s ease;
}

.social-icon:hover {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  text-decoration: none;
}

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

/* School Page City Link */
.school-name .city-link {
  color: white;
  text-decoration: none;
  transition: color 0.2s ease;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.school-name .city-link:hover,
.school-name .city-link:visited,
.school-name .city-link:active,
.school-name .city-link:focus {
  color: white;
  text-decoration: underline;
}

/* Responsive adjustments for CTA and Social */
@media (max-width: 768px) {
  .social-icons {
    justify-content: center;
  }
  
  .cta-item {
    padding: var(--spacing-sm);
    font-size: var(--font-size-sm);
  }
}

/* ===== NEW HEADER AND FOOTER STYLES ===== */

/* Header Styles */
.header-content {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 8px 0 0 0;
  line-height: 1;
}

.logo-link {
  text-decoration: none;
  display: block;
}

.site-logo {
  height: 24px;
  width: auto;
  max-width: 100%;
}

/* Footer Styles */
.site-footer {
  background-color: #0171bb;
  color: white;
  padding: var(--spacing-xl) 0;
  margin-top: var(--spacing-2xl);
  border-top: 1px solid var(--border-color);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-lg);
}

.social-row {
  display: flex;
  gap: var(--spacing-lg);
  justify-content: center;
}

.social-footer-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background-color: transparent;
  border: 1px solid white;
  border-radius: 50%;
  color: white;
  text-decoration: none;
  transition: all 0.2s ease;
}

.social-footer-icon:hover {
  background-color: white;
  border-color: white;
  color: #0171bb;
  text-decoration: none;
}

.footer-logo-row {
  display: flex;
  justify-content: center;
}

.footer-logo {
  height: 52px;
  width: auto;
}

/* ===== HOMEPAGE SECTIONS ===== */

/* Hero Section */
.hero-section {
  background-image: url('/assets/images/BLUE_BG1-75.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
  padding: calc(var(--spacing-md) + 20px) 0 var(--spacing-lg) 0;
  text-align: center;
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  margin-top: calc(-1 * var(--spacing-md));
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(3, 112, 186, 0.8);
  z-index: 1;
}

/* Spotlight image for desktop only - positioned independently */
@media (min-width: 1024px) and (pointer: fine) and (hover: hover) {
  .hero-section::after {
    content: '';
    position: absolute;
    left: 5%;
    top: 0;
    bottom: 0;
    width: 40%;
    background-image: url('/assets/images/SPOTLIGHT-328x240.png');
    background-repeat: no-repeat;
    background-position-y: bottom;
    z-index: 2;
    pointer-events: none;
  }
  
  /* Reset hero-content to normal layout */
  .hero-content {
    display: block;
  }
  
  .hero-text-content {
    text-align: center;
  }
  
  /* Hide mobile spotlight on desktop only */
  .mobile-spotlight {
    display: none;
  }
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 15%;
}

.hero-content {
  max-width: 1000px;
  margin: 0 auto;
}

.hero-text {
  font-size: var(--font-size-lg);
  line-height: 1.2;
  margin-bottom: var(--spacing-xs);
  font-weight: normal;
}

.hero-title {
  font-family: var(--font-family-hebrew-bold);
  font-size: calc(var(--font-size-4xl) * 1.1);
  font-weight: 800;
  margin-bottom: 0;
  color: white;
  white-space: nowrap;
}

/* Desktop: Make hero title occupy full width with responsive font size */
@media (min-width: 768px) {
  .hero-title {
    width: 100%;
    font-size: calc(var(--font-size-4xl) * 1.0);
    text-align: center;
  }
}

.hero-list {
  list-style: none;
  margin: var(--spacing-lg) 0;
  text-align: right;
}

.hero-list.no-bullets {
  list-style: none;
}

.hero-list.no-bullets li {
  margin-bottom: var(--spacing-sm);
  font-size: var(--font-size-lg);
  font-weight: 600;
  text-align: center;
}

.hero-subtitle {
  font-family: var(--font-family-hebrew-bold);
  font-size: var(--font-size-2xl);
  font-weight: 800;
  margin-bottom: var(--spacing-md);
  color: white;
}

.hero-text-with-squares {
  font-size: var(--font-size-lg);
  line-height: 1.2;
  margin: var(--spacing-lg) 0;
  color: white;
  font-weight: normal;
  text-align: center;
}

.white-square {
  color: white;
  margin: 0 var(--spacing-sm);
  font-size: var(--font-size-sm);
}

/* Search Section */
.search-section {
  background-image: url('/assets/images/GREY_BG1-75.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--primary-color);
  padding: var(--spacing-lg) 0 var(--spacing-lg) 0;
  text-align: center;
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  z-index: 10;
}

.search-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.9);
  z-index: -1;
}

.search-section > * {
  position: relative;
}

.search-title {
  font-family: var(--font-family-hebrew-bold);
  font-size: var(--font-size-3xl);
  font-weight: 800;
  margin-bottom: var(--spacing-md);
  color: var(--primary-color);
}

.search-subtitle {
  font-family: var(--font-family-hebrew-bold);
  font-size: var(--font-size-2xl);
  font-weight: 800;
  margin-bottom: 0;
  color: white;
  background-color: var(--problematic-color);
  padding: 0;
  text-align: center;
  border-radius: var(--border-radius-md);
}

.search-container {
  max-width: 800px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .search-container {
    max-width: 800px;
  }
  
  .search-subtitle {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-sm);
  }
  
  .search-input {
    padding: var(--spacing-sm) var(--spacing-md);
    padding-left: 2.5rem;
    font-size: var(--font-size-base);
  }
}

.search-input-wrapper {
  position: relative;
  margin-bottom: 0;
}

.search-input {
  width: 100%;
  padding: var(--spacing-sm) var(--spacing-md);
  font-size: var(--font-size-lg);
  border: 2px solid var(--primary-color);
  border-radius: var(--border-radius-lg);
  background-color: white;
  color: var(--text-primary);
  text-align: right;
  direction: rtl;
}

.search-input:focus {
  outline: none;
  border-color: var(--primary-dark);
  box-shadow: 0 0 0 3px rgba(3, 112, 186, 0.1);
}



/* Issue Section */
.issue-section {
  background-image: url('/assets/images/BLUE_BG2-75.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
  padding: var(--spacing-lg) 0;
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
}

.issue-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(3, 112, 186, 0.8);
  z-index: 1;
}

.issue-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.issue-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.issue-content h2 {
  font-family: var(--font-family-hebrew-bold);
  font-size: var(--font-size-2xl);
  font-weight: 800;
  margin-bottom: var(--spacing-md);
  color: white;
}

/* Additional Section */
.additional-section {
  background-image: url('/assets/images/GREY_BG2-75.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--text-primary);
  padding: var(--spacing-lg) 0;
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
}

.additional-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.9);
  z-index: 1;
}

.additional-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.additional-content h2 {
  font-family: var(--font-family-hebrew-bold);
  font-size: var(--font-size-2xl);
  font-weight: 800;
  margin-bottom: var(--spacing-md);
  color: var(--primary-color);
}

.additional-content p {
  font-size: var(--font-size-lg);
  line-height: 1.6;
  margin-bottom: var(--spacing-md);
  text-align: justify;
  color: var(--primary-color);
}

.additional-content a {
  color: var(--primary-color);
  text-decoration: underline;
}

.additional-content a:hover {
  text-decoration: underline;
  opacity: 0.8;
}

.issue-content p {
  font-size: var(--font-size-lg);
  line-height: 1.6;
  margin-bottom: var(--spacing-md);
  text-align: justify;
}

/* Responsive Design for New Layout - All non-desktop devices */
@media not all and (min-width: 1024px) and (pointer: fine) and (hover: hover) {
  .site-logo {
    height: 24px;
  }
  
  .hero-section {
    padding: var(--spacing-md) 0;
  }
  
  .search-section {
    padding: var(--spacing-md) 0 var(--spacing-md) 0;
  }
  
  .issue-section {
    padding: 0 0 var(--spacing-md) 0 !important;
  }
  
  .hero-text {
    font-size: var(--font-size-base);
    margin-bottom: var(--spacing-xs);
  }
  
  .search-title {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--spacing-sm);
  }
  
  .search-subtitle {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-md);
    padding: var(--spacing-sm) var(--spacing-md);
  }
  
  .search-input {
    font-size: var(--font-size-base);
    padding: var(--spacing-md);
  }
  
  .issue-content h2 {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-sm);
  }
  
  .issue-content p {
    font-size: var(--font-size-base);
    margin-bottom: var(--spacing-sm);
  }
  
  .additional-content p {
    font-size: var(--font-size-base);
    margin-bottom: var(--spacing-sm);
  }
  
  .social-row {
    gap: var(--spacing-md);
  }
  
  .social-footer-icon {
    width: 40px;
    height: 40px;
  }
  
  .footer-logo {
    height: 46px;
  }

  /* Mobile spotlight styling - takes up space above text */
  .mobile-spotlight {
    display: block;
    text-align: center;
    margin-bottom: 0;
  }
  
  .spotlight-image {
    width: 50%;
    height: auto;
    max-width: 280px;
    object-fit: contain;
    object-position: center;
  }
  
  /* Add 5% padding on each side for mobile sections */
  .search-section > *,
  .issue-section > *,
  .additional-section > * {
    padding-left: 5%;
    padding-right: 5%;
  }
  
}

@media (max-width: 480px) {
  .site-logo {
    height: 24px;
  }
  
  .hero-section {
    padding: var(--spacing-sm) 0;
  }
  
  .search-section {
    padding: var(--spacing-sm) 0 var(--spacing-sm) 0;
    margin-top: var(--spacing-md);
  }
  
  .issue-section {
    padding: 0 0 var(--spacing-sm) 0 !important;
  }
  
  .hero-title {
    font-size: var(--font-size-2xl);
    line-height: 1.1;
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-xs);
    white-space: normal;
  }
  
  .hero-subtitle {
    font-size: var(--font-size-lg);
    line-height: 1.2;
    margin-bottom: var(--spacing-xs);
  }
  
  .hero-text {
    font-size: var(--font-size-sm);
    margin-bottom: var(--spacing-xs);
  }
  
  .hero-text-with-squares {
    margin: var(--spacing-xs) 0;
    line-height: 1.1;
  }
  
  .search-title {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-sm);
  }
  
  .search-subtitle {
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-sm);
    padding: var(--spacing-xs) var(--spacing-sm);
  }
  
  .search-input {
    padding: var(--spacing-sm);
    padding-left: 2.5rem;
  }
  
  .issue-content h2 {
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-sm);
  }
  
  .issue-content p {
    font-size: var(--font-size-sm);
    margin-bottom: var(--spacing-sm);
  }
  
  .additional-content p {
    font-size: var(--font-size-sm);
    margin-bottom: var(--spacing-sm);
  }
  
  .social-row {
    gap: var(--spacing-sm);
  }
  
  .social-footer-icon {
    width: 36px;
    height: 36px;
  }
}

/* Desktop-only padding for sections */
@media (min-width: 1024px) {
  .hero-content {
    padding-left: 12%;
    padding-right: 12%;
  }
  
  .hero-subtitle {
    margin-bottom: var(--spacing-sm);
    padding: 0 20%;
  }
  
  .hero-text {
    padding: 0 8%;
  }
  
  .hero-text,
  .hero-text-with-squares {
    max-width: 85%;
    margin-left: auto;
    margin-right: auto;
  }
  
  .search-section > *,
  .issue-content,
  .additional-content {
    padding-left: 8%;
    padding-right: 8%;
  }
}

/* Footer Styles */
.site-footer {
  background-color: var(--primary-color);
  border-top: 1px solid var(--border-color);
  width: 100%;
  margin-top: 0;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-lg);
  padding: var(--spacing-xl) 0;
}

.social-row {
  display: flex;
  gap: var(--spacing-lg);
  justify-content: center;
}

.social-footer-icon {
  color: white;
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-footer-icon:hover {
  color: #4a90e2;
}

.footer-logo-row {
  display: flex;
  justify-content: center;
}

.footer-logo {
  height: 52px;
  width: auto;
}

@media (max-width: 480px) {
  .footer-logo {
    height: 46px;
  }
  
  .social-row {
    gap: var(--spacing-md);
  }
}

/* ==========================================================================
   CITY SCHOOLS SECTION - Scoped styling for city page schools list
   ========================================================================== */

/* City Schools Section Container */
.city-schools-section {
  margin-top: var(--spacing-lg);
  margin-bottom: var(--spacing-2xl);
}

/* Desktop Table Header - matches school page table headers */
.city-table-header {
  display: none; /* Hidden on mobile by default */
}

@media (min-width: 768px) {
  .city-table-header {
    display: flex;
    border-top: 2px solid var(--problematic-color);
    border-bottom: 2px solid var(--problematic-color);
    background-color: rgba(220, 38, 38, 0.3); /* --problematic-color with 30% opacity */
    margin-bottom: 0;
  }
}

/* Header Cells - matches school page header-cell styling */
.city-header-cell {
  padding: var(--spacing-sm) var(--spacing-md);
  font-family: var(--font-family-hebrew-bold);
  font-size: calc(var(--font-size-lg) * 0.8); /* Match school page header font size */
  font-weight: 800; /* Match school page header font weight */
  color: var(--problematic-color);
}

.city-header-cell.school-name-header {
  flex: 0 0 60%; /* 60% width, right-aligned */
  text-align: right;
}

.city-header-cell.activities-count-header,
.city-header-cell.total-budget-header {
  flex: 0 0 20%; /* 20% width each, center-aligned */
  text-align: center;
}

/* City Schools List Container */
.city-schools-list {
  display: flex;
  flex-direction: column;
}

/* City School Card - container for both mobile and desktop layouts */
.city-school-card {
  border-bottom: 1px solid var(--problematic-color);
  background-color: transparent;
}

.city-school-card:hover {
  background-color: rgba(220, 38, 38, 0.1); /* Light hover effect */
}

/* Mobile Row Link - two-row layout with centered school name and right-aligned details */
.city-mobile-row-link {
  display: flex;
  flex-direction: column;
  background-color: transparent;
  border: none;
  padding: 0;
  text-decoration: none;
  width: 100%;
  border-bottom: 1px solid var(--border-color);
  transition: all 0.2s ease;
  min-height: 48px; /* Touch-friendly height */
  gap: 0;
}

/* Mobile School Name - top row, right-aligned with '>' indicator (appears as '<' in RTL) */
.mobile-school-name {
  font-family: var(--font-family-hebrew-bold);
  font-size: calc(var(--font-size-lg) * 1.1);
  font-weight: 800;
  text-align: right;
  color: var(--problematic-color);
  margin-bottom: calc(-1 * var(--spacing-sm)); /* Reduced spacing to bring details closer */
  position: relative;
  padding-right: var(--spacing-lg);
}

/* City page arrow icon - smaller than school page toggle icons */
.mobile-school-name .city-arrow-icon {
  position: absolute;
  right: 0.3em; /* Closer to text - relative to school name font size */
  top: 50%; /* Center vertically */
  transform: translateY(-50%); /* Perfect vertical alignment */
  width: 0.7em; /* Smaller arrow size relative to school name text */
  height: 0.7em;
  display: inline-block;
  color: var(--problematic-color);
}

.mobile-school-name .city-arrow-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Mobile School Details - bottom row, smaller font, right-aligned to match school name */
.mobile-school-details {
  font-family: var(--font-family-hebrew);
  font-size: var(--font-size-sm);
  font-weight: normal;
  text-align: right;
  color: var(--text-secondary);
  padding-right: var(--spacing-lg);
}

.city-mobile-row-link:hover {
  background-color: rgba(220, 38, 38, 0.1);
}

.city-mobile-row-link:hover .mobile-school-name {
  color: var(--problematic-color);
}

.city-mobile-row-link:hover .mobile-school-details {
  color: var(--text-secondary);
}

/* Desktop Row Link - matches school page desktop layout */
.city-desktop-row-link {
  display: none; /* Hidden on mobile by default */
  text-decoration: none;
  color: inherit;
}

@media (min-width: 768px) {
  /* Hide mobile layout on desktop */
  .city-mobile-row-link {
    display: none;
  }
  
  /* Show desktop layout */
  .city-desktop-row-link {
    display: flex;
    padding: 0;
    transition: all 0.2s ease;
    color: var(--text-primary);
  }
  
  .city-desktop-row-link:hover {
    color: var(--text-primary);
    text-decoration: none;
  }
}

/* Desktop School Detail Cells - matches school page activity-detail styling */
.city-school-detail {
  padding: var(--spacing-sm) var(--spacing-md);
  display: flex;
  align-items: center;
}

.city-school-detail.school-name-detail {
  flex: 0 0 60%; /* 60% width, right-aligned */
}

.city-school-detail.activities-count-detail,
.city-school-detail.total-budget-detail {
  flex: 0 0 20%; /* 20% width each, center-aligned */
  justify-content: center;
}

/* Detail Values - matches school page detail-value styling */
.city-detail-value {
  font-family: var(--font-family-hebrew);
  font-size: calc(var(--font-size-lg) * 0.8); /* Match header font size */
  font-weight: normal;
  color: var(--text-primary);
  line-height: 1.5; /* Match school page detail-value line height */
}

.city-school-detail.school-name-detail .city-detail-value {
  font-family: var(--font-family-hebrew);
  font-weight: normal;
  text-align: right;
  color: var(--problematic-color);
}

.city-school-detail.activities-count-detail .city-detail-value,
.city-school-detail.total-budget-detail .city-detail-value {
  text-align: center;
  color: var(--problematic-color);
  font-weight: normal;
}

/* Mobile Layout Adjustments */
@media (max-width: 767px) {
  .city-schools-section {
    margin-top: var(--spacing-md);
  }
  
  .city-school-card {
    border-bottom: 1px solid var(--problematic-color);
  }
  
  .city-school-card:first-child {
    border-top: 1px solid var(--problematic-color);
  }
  
  .city-mobile-row-link {
    border-bottom: none; /* Remove duplicate border */
  }
}

/* ==========================================================================
   ULTRA-WIDE DESKTOP RESPONSIVE DESIGN (2560px+)
   ========================================================================== */

/* Ultra-wide desktop breakpoint for 2560px and above */
@media (min-width: 2560px) {
  .hero-content {
    padding-left: 8%;
    padding-right: 8%;
  }
  
  .search-container {
    max-width: 800px;
  }
}
