* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Heebo', sans-serif;
  background: #f5f5f5;
  color: #333;
  line-height: 1.6;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Hero */
.hero {
  position: relative;
  background: linear-gradient(135deg, #1a472a 0%, #2d5a3f 50%, #1a472a 100%);
  color: white;
  text-align: center;
  padding: 60px 20px 50px;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-logo {
  width: 90px;
  height: 90px;
  object-fit: contain;
  margin-bottom: 20px;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.hero h1 {
  font-size: 2.2rem;
  font-weight: 900;
  margin-bottom: 10px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 30px;
  font-weight: 300;
}

.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: white;
  padding: 14px 30px;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

.whatsapp-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
}

/* Sections */
.section {
  padding: 50px 0;
}

.section-title {
  text-align: center;
  font-size: 1.8rem;
  color: #1a472a;
  margin-bottom: 35px;
  font-weight: 700;
}

/* Zmanim */
.zmanim-section {
  background: white;
}

.zmanim-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}

.zmanim-card {
  background: #f8f9fa;
  border-radius: 15px;
  padding: 25px;
  border: 2px solid #e8f5e9;
}

.zmanim-card h3 {
  color: #1a472a;
  margin-bottom: 15px;
  font-size: 1.2rem;
  padding-bottom: 10px;
  border-bottom: 2px solid #e8f5e9;
}

.shabbat-card {
  background: linear-gradient(135deg, #f8f9fa, #e8f5e9);
}

.zman-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid #eee;
  font-size: 0.95rem;
}

.zman-row:last-child {
  border-bottom: none;
}

.zman-name {
  color: #555;
}

.zman-time {
  font-weight: 700;
  color: #1a472a;
  direction: ltr;
}

.loading-text {
  text-align: center;
  color: #888;
  padding: 20px 0;
}

.parasha-name {
  text-align: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: #2E7D32;
  margin-bottom: 15px;
}

/* Services Grid */
.pesach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 10px;
}

.pesach-grid .service-card {
  text-align: center;
  border-right: 4px solid #1565c0;
}

.pesach-grid .service-icon {
  font-size: 2.5em;
  margin-bottom: 10px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.service-card {
  background: white;
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  transition: all 0.3s;
  border: 2px solid transparent;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
  border-color: #e8f5e9;
}

.service-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.service-card h3 {
  color: #1a472a;
  margin-bottom: 8px;
  font-size: 1.15rem;
}

.service-card p {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.5;
}

.service-details {
  margin-top: 10px;
  font-size: 0.9rem;
  color: #555;
}

.service-details a {
  color: #2E7D32;
  word-break: break-all;
}

.service-sub-item {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eee;
}

.service-sub-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.service-sub-item strong {
  display: block;
  color: #1a472a;
  margin-bottom: 4px;
}

.service-sub-item p {
  margin: 0;
}

.eruv-link {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 18px;
  background: #2E7D32;
  color: white !important;
  border-radius: 20px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: background 0.3s;
}

.eruv-link:hover {
  background: #1a472a;
}

/* Synagogue Tabs */
.synagogue-tabs {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 25px;
}

.synagogue-tab {
  padding: 10px 24px;
  border: 2px solid #1a472a;
  background: white;
  color: #1a472a;
  cursor: pointer;
  font-weight: 500;
  font-size: 1rem;
  font-family: 'Heebo', sans-serif;
  transition: background 0.2s, color 0.2s;
}

.synagogue-tab:first-child {
  border-radius: 0 8px 8px 0;
}

.synagogue-tab:last-child {
  border-radius: 8px 0 0 8px;
  border-right: none;
}

.synagogue-tab.active {
  background: #1a472a;
  color: white;
}

.synagogue-tab:hover:not(.active) {
  background: #e8f5e9;
}

/* Prayer Tables (by-prayer view) */
.prayer-category {
  margin-bottom: 30px;
}

.prayer-category h4 {
  color: #1a472a;
  border-bottom: 2px solid #e8f5e9;
  padding-bottom: 8px;
  margin-bottom: 12px;
  font-size: 1.15rem;
}

.prayer-table {
  width: 100%;
  border-collapse: collapse;
}

.prayer-table th {
  background: #e8f5e9;
  color: #1a472a;
  text-align: right;
  padding: 10px;
  font-weight: 600;
}

.prayer-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #eee;
  font-size: 0.95rem;
}

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

.prayer-table .prayer-time {
  font-weight: 700;
  color: #1a472a;
  white-space: nowrap;
  direction: ltr;
  text-align: right;
  width: 140px;
}

.prayer-table .prayer-shuls {
  color: #555;
}

/* Synagogues */
.synagogues-section {
  background: white;
}

.synagogues-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.synagogue-card {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 20px;
  border: 2px solid #e8f5e9;
  transition: all 0.3s;
}

.synagogue-card:hover {
  border-color: #a5d6a7;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.synagogue-card h4 {
  color: #1a472a;
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.synagogue-times {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.7;
}

.synagogue-phone {
  margin-top: 8px;
}

.synagogue-tags {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.synagogue-tag {
  display: inline-block;
  background: #e8f5e9;
  color: #1a472a;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
}

.synagogue-gabai {
  margin-top: 8px;
  font-size: 0.9rem;
  color: #555;
}

.synagogue-gabai a {
  color: #2E7D32;
  text-decoration: none;
  font-weight: 500;
}

.synagogue-gabai a:hover {
  text-decoration: underline;
}

.synagogue-events {
  margin-top: 6px;
  font-size: 0.85rem;
  color: #777;
  font-style: italic;
}

.synagogue-phone a {
  color: #2E7D32;
  text-decoration: none;
  font-weight: 500;
}

.synagogue-phone a:hover {
  text-decoration: underline;
}

/* Gemachim */
.gemachim-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.gemach-card {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 20px;
  border: 2px solid #e8f5e9;
  transition: all 0.3s;
}

.gemach-card:hover {
  border-color: #a5d6a7;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.gemach-card h4 {
  color: #1a472a;
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.gemach-card p {
  color: #555;
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 8px 0;
}

.gemach-notes {
  color: #888 !important;
  font-style: italic;
}

/* Shiurim & Events */
.events-section {
  background: white;
}

.shiurim-grid,
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.shiur-card,
.event-card {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 20px;
  border: 2px solid #e8f5e9;
  transition: all 0.3s;
}

.shiur-card:hover,
.event-card:hover {
  border-color: #a5d6a7;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.shiur-card h4,
.event-card h4 {
  color: #1a472a;
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.shiur-card p,
.event-card p {
  color: #555;
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 8px 0;
}

.shiur-meta {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.shiur-meta a {
  color: #2E7D32;
  text-decoration: none;
}

.shiur-meta a:hover {
  text-decoration: underline;
}

.shiur-tag {
  display: inline-block;
  background: #e8f5e9;
  color: #1a472a;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 500;
}

.event-image {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 12px;
  object-fit: cover;
  max-height: 200px;
}

.shiur-link {
  display: inline-block;
  margin-top: 10px;
  padding: 6px 16px;
  background: #2E7D32;
  color: white !important;
  border-radius: 20px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.85rem;
  transition: background 0.3s;
}

.shiur-link:hover {
  background: #1a472a;
}

/* Grave Search */
.grave-search-section {
  background: white;
}

.grave-search-box {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.grave-search-box > p {
  color: #555;
  font-size: 1rem;
  margin-bottom: 20px;
}

.grave-search-input-row {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.grave-search-input {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-family: 'Heebo', sans-serif;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s;
}

.grave-search-input:focus {
  border-color: #2E7D32;
}

.grave-search-btn {
  padding: 12px 28px;
  background: #2E7D32;
  color: white;
  border: none;
  border-radius: 10px;
  font-family: 'Heebo', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s;
}

.grave-search-btn:hover {
  background: #1a472a;
}

.grave-search-btn:disabled {
  background: #aaa;
  cursor: not-allowed;
}

.grave-search-results {
  text-align: right;
  margin: 15px 0;
}

.grave-result-card {
  background: #f8f9fa;
  border: 2px solid #e8f5e9;
  border-radius: 12px;
  padding: 15px 20px;
  margin-bottom: 12px;
  transition: all 0.3s;
}

.grave-result-card:hover {
  border-color: #a5d6a7;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.grave-result-card h4 {
  color: #1a472a;
  margin-bottom: 6px;
}

.grave-result-card p {
  color: #555;
  font-size: 0.9rem;
  margin: 4px 0;
}

.grave-result-card .grave-map-link {
  display: inline-block;
  margin-top: 8px;
  color: #2E7D32;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}

.grave-result-card .grave-map-link:hover {
  text-decoration: underline;
}

.grave-map-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.85);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.grave-map-modal img {
  max-width: 95%;
  max-height: 90vh;
  border-radius: 8px;
}

.grave-search-hint {
  color: #888 !important;
  font-size: 0.85rem !important;
  font-style: italic;
  margin-top: 15px;
}

.grave-no-results {
  color: #888;
  font-style: italic;
  padding: 15px;
}

/* Contact */
.contact-section {
  background: white;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.contact-card {
  text-align: center;
  background: #f8f9fa;
  padding: 25px;
  border-radius: 15px;
  border: 2px solid #e8f5e9;
}

.contact-icon {
  font-size: 2rem;
  margin-bottom: 10px;
}

.contact-card h3 {
  color: #1a472a;
  margin-bottom: 8px;
}

.contact-card a {
  color: #2E7D32;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.05rem;
}

.contact-card a:hover {
  text-decoration: underline;
}

.contact-card p {
  color: #555;
  line-height: 1.6;
}

/* Footer */
footer {
  background: #1a472a;
  color: white;
  text-align: center;
  padding: 25px 20px;
}

footer p {
  font-size: 0.95rem;
}

.footer-sub {
  opacity: 0.7;
  font-size: 0.85rem;
  margin-top: 5px;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 1.7rem;
  }

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

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

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

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

  .shiurim-grid,
  .events-grid,
  .gemachim-grid {
    grid-template-columns: 1fr;
  }

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

  .section {
    padding: 35px 0;
  }

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

@media (max-width: 480px) {
  .hero {
    padding: 40px 15px 35px;
  }

  .whatsapp-btn {
    padding: 12px 24px;
    font-size: 1rem;
  }

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