/* Base styles for all screen sizes */
:root {
  --bw-purple: #7b1fa2;
  --bw-blue: #4a148c;
  --bw-light-purple: #f3e5f5;
  --bw-dark: #333;
  --bw-light: #f5f5f5;
}

.logo img {
  height: 180px; /* Enlarged logo size as requested */
  width: auto;
}

/* Hero Section - Base styles */
.hero {
  background: linear-gradient(135deg, var(--bw-purple) 0%, var(--bw-blue) 100%) !important;
  color: white !important;
  text-align: center;
  padding: 60px 20px; /* Increased padding */
}

.hero-logo {
  margin: 0 auto 20px; /* Increased bottom margin */
  max-width: 300px;
  display: block !important;
}

.hero-logo img {
  width: 100%;
  height: auto;
  display: block !important;
  margin: 0 auto;
}

.hero h2 {
  font-size: 2.5rem;
  margin: 15px 0; /* Increased margin */
  color: white !important;
  display: block !important;
}

.hero h3 {
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 25px; /* Increased margin */
  color: white !important;
  display: block !important;
}

.hero p, .hero a {
  color: white !important;
  display: block !important;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .section {
    padding: 40px 0; /* Reduced padding */
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .hero h2 {
    font-size: 2rem;
  }
  
  .hero h3 {
    font-size: 1.3rem;
  }
  
  .logo img {
    height: 150px; /* Slightly reduced for medium screens but still larger than before */
  }
}

/* Mobile styles - Main mobile breakpoint */
@media (max-width: 768px) {
  /* Header and navigation fixes */
  .header-container {
    padding: 10px;
    position: relative;
    display: flex;
    flex-direction: column; /* Stack elements vertically */
    justify-content: center;
    align-items: center;
    height: auto; /* Auto height */
    min-height: 100px; /* Minimum height */
  }
  
  /* Hide mobile menu toggle as requested by user */
  .mobile-menu-toggle {
    display: none;
  }
  
  /* Logo positioning - separate from menu */
  .logo {
    position: relative; /* Not absolute */
    display: block;
    margin: 10px auto;
    text-align: center;
    transform: none;
    left: auto;
    top: auto;
    z-index: 1;
  }
  
  .logo img {
    height: 100px; /* Increased size for mobile as requested */
    display: block;
    margin: 0 auto;
  }
  
  /* Show navigation menu horizontally below logo */
  nav {
    width: 100%;
    margin-top: 10px;
  }
  
  nav ul {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    position: relative;
    background-color: transparent;
    box-shadow: none;
    padding: 0;
    flex-wrap: wrap;
    margin: 5px 0;
    width: 100%;
  }
  
  nav ul li {
    margin: 5px;
    font-size: 14px;
  }
  
  nav ul li a {
    font-size: 16px; /* Increased font size */
    white-space: nowrap;
    padding: 8px 12px; /* Increased padding */
    border-radius: 5px;
    background-color: #f5f5f5;
    display: block;
    font-weight: 600; /* Make it bolder */
  }
  
  /* Hero section adjustments - ensure visibility */
  .hero {
    padding: 30px 15px; /* Increased padding */
    background: linear-gradient(135deg, var(--bw-purple) 0%, var(--bw-blue) 100%) !important;
    color: white !important;
    margin-top: 10px;
    display: block !important;
    position: relative;
    z-index: 1;
  }
  
  .hero-logo {
    max-width: 200px; /* Reduced size */
    margin: 0 auto 20px; /* Centered with margin */
    display: block !important;
  }
  
  .hero-logo img {
    width: 100%;
    height: auto;
    display: block !important;
    margin: 0 auto;
  }
  
  .hero h2 {
    font-size: 1.8rem;
    margin: 15px 0;
    color: white !important;
    display: block !important;
  }
  
  .hero h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: white !important;
    display: block !important;
  }
  
  .hero p, .hero a {
    color: white !important;
    display: block !important;
    margin: 10px 0;
  }
  
  /* Fixed button styling to match main styles */
  .cta-button {
    display: inline-block !important;
    padding: 12px 25px;
    margin: 15px auto;
    font-size: 16px;
    background-color: #6a11cb !important; /* Purple background to match main styles */
    color: white !important; /* White text for contrast */
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    border: 2px solid white !important; /* White border for visibility */
  }
  
  .cta-button:hover {
    background-color: white !important; /* White on hover */
    color: #6a11cb !important; /* Purple text on hover */
  }
  
  /* Mobile-optimized comparison table - Enhanced clarity */
  .comparison-table-wrapper {
    overflow-x: visible;
    margin: 15px 0;
    padding: 0;
    width: 100%;
    border: 4px solid var(--bw-purple);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  }
  
  .comparison-table {
    width: 100%;
    border-collapse: collapse;
    border: none;
    table-layout: fixed;
  }
  
  .comparison-table th {
    display: none;
  }
  
  .comparison-table tr {
    margin-bottom: 0;
    display: block;
    border-bottom: 2px solid var(--bw-purple);
  }
  
  .comparison-table tr:last-child {
    border-bottom: none;
  }
  
  /* Category headers - make them stand out */
  .comparison-table td:first-child {
    background-color: #f0f4f8;
    font-weight: bold;
    font-size: 20px;
    padding: 15px;
    text-align: center;
    border-bottom: 2px solid var(--bw-purple);
  }
  
  .comparison-table td {
    display: block;
    text-align: center;
    font-size: 18px;
    padding: 18px 12px;
    border-bottom: 1px solid #ddd;
    position: relative;
    font-weight: 600;
  }
  
  /* Special styling for "פתרונות אוטומטיים בלבד" cells as highlighted in screenshots */
  .comparison-table td:nth-child(2) {
    background-color: #f8fff8;
    border-bottom: 2px solid #4CAF50;
    color: #333;
    font-weight: bold;
    text-decoration: underline #4CAF50;
    text-underline-offset: 5px;
  }
  
  /* Fix for duplicate content - hide the data-label content */
  .comparison-table td:before {
    display: none;
  }
  
  .comparison-table td:last-child {
    border-bottom: 0;
  }
  
  /* Clearly mark BetterWeb column */
  .comparison-table td:nth-child(4) {
    background-color: var(--bw-light-purple);
    color: var(--bw-purple);
    font-weight: bold;
    font-size: 19px;
    border: 3px solid var(--bw-purple);
    border-radius: 6px;
    margin: 8px 0;
    padding: 18px 12px;
    position: relative;
  }
  
  .comparison-table td:nth-child(4):before {
    content: "BetterWeb ✓";
    position: absolute;
    top: -10px;
    right: 10px;
    background-color: var(--bw-purple);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 14px;
    z-index: 10; /* Added to ensure visibility */
    width: auto; /* Ensure width is based on content */
    white-space: nowrap; /* Prevent text wrapping */
  }
}

/* Extra small devices */
@media (max-width: 576px) {
  .logo img {
    height: 80px; /* Adjusted size for very small screens */
  }
  
  .hero-logo {
    max-width: 180px; /* Smaller for very small screens */
  }
  
  .hero h2 {
    font-size: 1.6rem;
  }
  
  .hero h3 {
    font-size: 1.1rem;
  }
  
  nav ul li a {
    font-size: 14px;
    padding: 6px 10px;
  }
}
