/*
Fresh Modern Kalaniyot Website CSS
Clean, professional, modern design inspired by kalaniyot.org
*/

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #2c3e50;
  background-color: #ffffff;
  overflow-x: hidden;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  background: #ffffff;
  padding: 20px 0;
  border-bottom: 1px solid #e8ecef;
  position: relative;
}

.logo img {
  max-width: 250px;
  height: auto;
  display: block;
  margin: 0 auto;
  transition: transform 0.3s ease;
}

.logo img:hover {
  transform: scale(1.02);
}

/* Navigation */
.navbar {
  background: #ffffff;
  border-bottom: 1px solid #e8ecef;
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  padding: 0;
}

.navbar .container {
  display: flex;
  justify-content: center;
  width: 100%;
}

.nav-links {
  display: flex;
  justify-content: center;
  list-style: none;
  margin: 0 auto;
  padding: 0;
  width: 100%;
}

.nav-links li {
  margin: 0;
}

.nav-link {
  display: block;
  color: #2c3e50;
  font-weight: 500;
  font-size: 15px;
  padding: 18px 24px;
  text-decoration: none;
  transition: all 0.3s ease;
  border-bottom: 3px solid transparent;
}

.nav-link:hover,
.nav-link.active {
  color: #00693e;
  border-bottom-color: #00693e;
  background: rgba(0, 105, 62, 0.03);
  text-decoration: none;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #00693e 0%, #0a7d4a 100%);
  color: white;
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('../img/poppies.jpg') center/cover;
  opacity: 0.1;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
}

.hero-icon {
  margin: 0 0 30px 0;
  opacity: 0.9;
}

.hero-icon img {
  width: 100px;
  height: auto;
}

.hero-title {
  font-size: 1.8rem;
  font-weight: 300;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  line-height: 1.4;
}

/* Intro Section */
.intro {
  background: #f8f9fa;
  padding: 60px 0;
}

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

.intro-text {
  font-size: 18px;
  line-height: 1.7;
  color: #495057;
  margin-bottom: 1.5rem;
}

.intro-text a {
  color: #00693e;
  text-decoration: none;
  font-weight: 500;
}

.intro-text a:hover {
  color: #004c2c;
  text-decoration: underline;
}

/* Section Styles */
.section {
  padding: 60px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 600;
  color: #00693e;
  margin: 0;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #00693e, #0a7d4a);
  border-radius: 2px;
}

/* Card Grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin: 40px 0;
}

.card.full-width {
  grid-column: 1 / -1;
  text-align: center;
  max-width: 600px;
  margin: 30px auto 0 auto;
}

/* DKS Program Card Layouts */
.dks-programs-row-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  max-width: 800px;
  margin: 30px auto;
}

.dks-programs-row-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin: 30px 0;
}

.card {
  background: white;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
  transition: all 0.3s ease;
  border: 1px solid #e8ecef;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #00693e, #0a7d4a);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover::before {
  opacity: 1;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.card h3,
.card h4 {
  color: #00693e;
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 15px;
  line-height: 1.3;
}

.card p {
  color: #6c757d;
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.card p:last-child {
  margin-bottom: 0;
}

.card ul {
  padding-left: 0;
  list-style: none;
}

.card li {
  color: #6c757d;
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 8px;
  padding-left: 20px;
  position: relative;
}

.card li::before {
  content: '•';
  color: #00693e;
  font-weight: bold;
  position: absolute;
  left: 0;
}

.card a {
  color: #00693e;
  text-decoration: none;
}

.card a:hover {
  color: #004c2c;
  text-decoration: underline;
}

/* Clickable Program Cards */
.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

.card-link:hover {
  text-decoration: none;
  color: inherit;
}

.program-card {
  cursor: pointer;
  position: relative;
  padding-bottom: 60px;
  min-height: 450px;
}

.program-card p {
  margin-bottom: 50px;
}

.card-footer {
  position: absolute;
  bottom: 20px;
  right: 30px;
}

.learn-more {
  color: #00693e;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.card-link:hover .learn-more {
  color: #004c2c;
  transform: translateX(5px);
}

/* Program Categories */
.program-category {
  margin-bottom: 60px;
}

.program-category h3 {
  color: #2c3e50;
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 30px;
  text-align: center;
}

/* DKS Section */
.dks-section {
  background: #f8f9fa;
  padding: 50px 0;
  margin: 60px 0;
  border-radius: 12px;
}

.dks-header {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.dks-header h3 {
  color: #00693e;
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 25px;
}

.dks-header p {
  font-size: 16px;
  line-height: 1.6;
  color: #6c757d;
  margin-bottom: 1.5rem;
}

.dks-header a {
  color: #00693e;
  text-decoration: none;
  font-weight: 500;
}

.dks-header a:hover {
  color: #004c2c;
  text-decoration: underline;
}

/* Bylaws Section */
.bylaws-content {
  max-width: 900px;
  margin: 0 auto;
}

.bylaws-list {
  padding: 0;
  list-style: none;
  counter-reset: bylaw-counter;
}

.bylaws-list li {
  background: white;
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
  border: 1px solid #e8ecef;
  position: relative;
  padding-left: 60px;
  counter-increment: bylaw-counter;
}

.bylaws-list li::before {
  content: counter(bylaw-counter);
  position: absolute;
  left: 20px;
  top: 25px;
  background: #00693e;
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 12px;
}

.bylaws-list li strong {
  color: #00693e;
  font-weight: 600;
}

/* Board Section */
.board-content {
  max-width: 1000px;
  margin: 0 auto;
}

.board-content > p {
  text-align: center;
  font-size: 16px;
  color: #6c757d;
  margin-bottom: 30px;
}

.board-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.board-member {
  background: white;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #e8ecef;
  transition: all 0.3s ease;
  text-align: center;
}

.board-member:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.board-member a {
  color: #00693e;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  display: block;
  margin-bottom: 5px;
}

.board-member a:hover {
  color: #004c2c;
  text-decoration: underline;
}

.board-member .title {
  color: #6c757d;
  font-size: 14px;
  display: block;
  line-height: 1.4;
}

.board-note {
  text-align: center;
  font-style: italic;
  color: #6c757d;
  margin: 20px 0 10px 0;
}

.dks-board {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 2px solid #e8ecef;
}

.dks-board h3 {
  color: #00693e;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 20px;
  text-align: center;
}

.dks-board > p {
  text-align: center;
  color: #6c757d;
  margin-bottom: 30px;
}

/* Donate Section */
.donate-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.donate-content p {
  font-size: 16px;
  line-height: 1.6;
  color: #6c757d;
  margin-bottom: 30px;
}

.donate-content a {
  color: #00693e;
  text-decoration: none;
  font-weight: 500;
}

.donate-content a:hover {
  color: #004c2c;
  text-decoration: underline;
}

.address-box {
  background: #f8f9fa;
  padding: 30px;
  border-radius: 8px;
  margin: 20px 0;
  border: 1px solid #e8ecef;
}

.address {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: #2c3e50;
}

/* Contact Section */
.contact-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.contact-content p {
  font-size: 18px;
  color: #6c757d;
}

.contact-content a {
  color: #00693e;
  text-decoration: none;
  font-weight: 600;
}

.contact-content a:hover {
  color: #004c2c;
  text-decoration: underline;
}

/* Footer */
.footer {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  color: white;
  padding: 40px 0;
  margin-top: 80px;
  position: relative;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.footer-content p {
  margin: 0;
  font-size: 14px;
}

.footer a {
  color: white;
  text-decoration: none;
  opacity: 0.9;
}

.footer a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* Scroll to Top */
.scroll-to-top {
  background: #00693e;
  color: white;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
}

.scroll-to-top:hover {
  background: #004c2c;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  color: white;
  text-decoration: none;
}

.scroll-to-top i {
  font-size: 18px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 1.4rem;
  }
  
  .section-header h2 {
    font-size: 2rem;
  }
  
  .card-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .dks-programs-row-2,
  .dks-programs-row-3 {
    grid-template-columns: 1fr;
    max-width: none;
    margin: 20px 0;
  }
  
  .card {
    padding: 25px;
  }
  
  .nav-links {
    flex-direction: column;
    padding: 10px 0;
  }
  
  .nav-link {
    padding: 12px 20px;
    font-size: 14px;
    text-align: center;
  }
  
  .container {
    padding: 0 15px;
  }
  
  .intro-text {
    font-size: 16px;
  }
  
  .board-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .bylaws-list li {
    padding: 20px;
    padding-left: 50px;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
  
  .program-card {
    padding-bottom: 45px;
  }
  
  .card-footer {
    bottom: 15px;
    right: 25px;
  }
}

@media (max-width: 480px) {
  .logo img {
    max-width: 200px;
  }
  
  .hero {
    padding: 60px 0;
  }
  
  .hero-title {
    font-size: 1.2rem;
  }
  
  .hero-icon img {
    width: 80px;
  }
  
  .card {
    padding: 20px;
  }
  
  .section {
    padding: 40px 0;
  }
  
  .section-header {
    margin-bottom: 30px;
  }
  
  .section-header h2 {
    font-size: 1.6rem;
  }
  
  .dks-section {
    padding: 40px 0;
    margin: 40px 0;
  }
  
  .program-card {
    padding-bottom: 40px;
  }
  
  .card-footer {
    bottom: 12px;
    right: 20px;
  }
  
  .learn-more {
    font-size: 12px;
  }
}

/* Modern smooth animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-on-scroll {
  animation: fadeInUp 0.8s ease-out;
}

/* Focus states for accessibility */
.nav-link:focus,
.card-link:focus,
.scroll-to-top:focus {
  outline: 2px solid #00693e;
  outline-offset: 2px;
}

/* Print styles */
@media print {
  .navbar,
  .hero,
  .footer,
  .scroll-to-top {
    display: none;
  }
  
  .section {
    padding: 20px 0;
  }
  
  .card {
    box-shadow: none;
    border: 1px solid #ccc;
    page-break-inside: avoid;
  }
}