/* -------------------------------------------------------
   בסיס: טיפוגרפיה + רכיבי Bootstrap עדינים
   ------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@300;400;500;700&display=swap');

body {
  font-family: 'Rubik', sans-serif;
  background-color: #f8f9fa;
  color: #333;
}

h1, h2, h3 { font-weight: 700; }

.card {
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0,0,0,.1);
  border: none;
  transition: transform .3s;
  margin-bottom: 20px;
}
.card:hover { transform: translateY(-5px); }
.card-header { border-radius: 15px 15px 0 0 !important; }

.btn-primary {
  background-color: #6a5acd;
  border-color: #6a5acd;
  padding: 10px 20px;
  font-weight: 500;
}
.btn-primary:hover {
  background-color: #5a4abf;
  border-color: #5a4abf;
}

header h1 { color: #3f51b5; margin-bottom: 20px; }
footer { color: #6c757d; font-size: 14px; }

.form-control:focus {
  border-color: #3f51b5;
  box-shadow: 0 0 0 .25rem rgba(63,81,181,.25);
}
.form-check-input:checked {
  background-color: #3f51b5;
  border-color: #3f51b5;
}

/* כפתורים בתוך טבלאות בלבד */
.table .btn {
  padding: .25rem .5rem;
  font-size: .875rem;
  line-height: 1.5;
  border-radius: .2rem;
  margin-inline-start: .5rem;
  font-weight: 500;
}
.table .btn-primary { background-color: #3f51b5; border-color: #3f51b5; }
.table .btn-primary:hover { background-color: #303f9f; border-color: #303f9f; }
.table .btn-danger { background-color: #dc3545; border-color: #dc3545; }
.table .btn-danger:hover { background-color: #c82333; border-color: #bd2130; }

/* -------------------------------------------------------
   HERO (דף הבית): קומפקטי + לא "מסך שלם"
   ------------------------------------------------------- */
.hero-section {
  /* אם אין תמונת רקע ב-inline style, נשתמש בגרדיאנט */
  background: linear-gradient(135deg, #6a5acd 0%, #4a3aad 100%);
  color: #fff;
  padding: 18px 0 14px;   /* צמצום ריווח כמבוקש */
  margin-bottom: 1.25rem; /* מרווח עד התוכן הבא */
  border-radius: 0 0 50px 50px;
  text-shadow: 2px 2px 4px rgba(0,0,0,.25);
}
.hero-section .site-logo { filter: drop-shadow(2px 2px 4px rgba(0,0,0,.5)); }
.hero-section .btn-light {
  background-color: rgba(255,255,255,.9);
  border-color: rgba(255,255,255,.9);
  color: #333;
  font-weight: 600;
}
.hero-section .btn-light:hover {
  background-color: #fff;
  border-color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,.3);
}

/* -------------------------------------------------------
   קרוסלת המלצות ב-Hero (Bootstrap 5)
   * שמות ממוקדים שלא ישפיעו מחוץ ל-Hero
   ------------------------------------------------------- */
.hero-testimonials { max-width: 980px; margin: 10px auto 0; }

.t-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 14px;
  box-shadow: 0 6px 16px rgba(0,0,0,.06);
  padding: 14px;
  min-height: 140px;
}
.t-body { font-size: .98rem; color: #333; }
.t-meta { margin-top: 8px; font-size: .85rem; color: #666; display: flex; flex-wrap: wrap; gap: 6px; }
.t-read { margin-top: 10px; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }

/* נקודות הקרוסלה */
.hero-testimonials .carousel-indicators [data-bs-target] { background-color: #555; }
/* חיצי ניווט - הפיכה ללבן כדי שיבלוט על רקעים כהים */
.hero-testimonials .carousel-control-prev-icon,
.hero-testimonials .carousel-control-next-icon { filter: invert(1) grayscale(100%); }

/* עצירה במעבר עכבר נעשית ב-HTML עם data-bs-pause="hover" שכבר הוספנו */

/* -------------------------------------------------------
   כרטיסי סדנאות
   ------------------------------------------------------- */
.workshop-card {
  position: relative;
  overflow: hidden;
  height: 100%;
  border-radius: 15px;
  transition: all .3s ease;
  box-shadow: 0 4px 8px rgba(0,0,0,.1);
  margin-bottom: 30px;
}
.workshop-card:hover { transform: translateY(-8px); box-shadow: 0 8px 25px rgba(0,0,0,.15); }
.workshop-card .card-header {
  background: linear-gradient(135deg, #6a5acd 0%, #4a3aad 100%);
  border: none;
  padding: 1.5rem;
  border-radius: 0 0 15px 15px;
}

/* סטטוסים */
.workshop-card.past-workshop { opacity: .7; border: 2px solid #6c757d; }
.workshop-card.past-workshop .card-header { background-color: #6c757d !important; }
.workshop-card.inactive-workshop { opacity: .6; border: 2px solid #dc3545; }
.workshop-card.inactive-workshop .card-header { background-color: #dc3545 !important; }

.workshop-status { position: absolute; top: 15px; right: 15px; z-index: 10; }
.status-badge {
  font-size: .8rem;
  padding: .4rem .8rem;
  border-radius: 20px;
  font-weight: bold;
}
.status-past { background-color: #6c757d; color: #fff; }
.status-inactive { background-color: #dc3545; color: #fff; }
.status-active { background-color: #28a745; color: #fff; }

/* תמונות */
.workshop-image-container { position: relative; height: 180px; overflow: hidden; border-radius: 15px 15px 0 0; }
.workshop-image { width: 100%; height: 100%; object-fit: cover; }
.workshop-image-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  display: flex; align-items: center; justify-content: center; color: #6c757d;
}
.placeholder-logo { max-width: 120px; max-height: 120px; opacity: .6; filter: grayscale(50%); }
.placeholder-logo.grayscale { filter: grayscale(100%); opacity: .4; }

/* פרטי סדנה */
.workshop-details { font-size: .9rem; }
.workshop-details i { margin-inline-start: 0; margin-inline-end: 8px; width: 16px; }

/* מקומות פנויים */
.remaining-spots {
  background-color: #e8f5e8; color: #155724;
  padding: .75rem; border-radius: 8px; font-weight: 600; display: inline-block; min-width: 200px;
}
.remaining-spots.full { background-color: #f8d7da; color: #721c24; }

/* כפתור רישום */
.register-btn {
  display: inline-block;
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: #fff; padding: 12px 24px; border-radius: 25px;
  text-decoration: none; font-weight: 600; transition: all .3s ease; border: none; cursor: pointer; min-width: 200px;
}
.register-btn:hover {
  background: linear-gradient(135deg, #218838 0%, #1ea085 100%);
  color: #fff; transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(40,167,69,.3);
}
.register-btn:disabled { background: #6c757d; cursor: not-allowed; transform: none; box-shadow: none; }
.register-btn:disabled:hover { background: #6c757d; transform: none; }

/* קו הפרדה + כותרת עבר */
.workshops-divider {
  border: none; height: 3px;
  background: linear-gradient(90deg, transparent 0%, #6a5acd 50%, transparent 100%);
  margin: 3rem 0;
}
.past-workshops-title { color: #6c757d; }
.past-workshops-title:after { content: ''; display: block; width: 70px; height: 3px; margin: .5rem auto 0; background-color: #6c757d; }

/* -------------------------------------------------------
   אייקונים/קישורים חברתיים (בשימוש באתר)
   ------------------------------------------------------- */
.icon-feature { font-size: 2rem; color: #6a5acd; margin-bottom: 15px; }

.section-title {
  position: relative; padding-bottom: 15px; margin-bottom: 30px; text-align: center;
}
.section-title:after {
  content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 70px; height: 3px; background-color: #6a5acd;
}

.social-icon {
  font-size: 1.5rem; margin: 0 10px; color: #6a5acd; transition: color .3s;
}
.social-icon:hover { color: #5a4abf; }

/* כפתור וייז שכיח באתר */
.waze-btn {
  display: inline-flex; align-items: center;
  background-color: #33ccff; border-color: #33ccff; color: #fff;
  padding: .5rem 1rem; border-radius: 50px; transition: all .3s;
}
.waze-btn:hover { background-color: #00aaff; border-color: #00aaff; color: #fff; }
.waze-logo { height: 24px; margin-inline-start: 8px; }

/* -------------------------------------------------------
   רספונסיביות
   ------------------------------------------------------- */
@media (max-width: 768px) {
  .hero-section { padding: 14px 0 12px; border-radius: 0 0 32px 32px; }
  .workshop-card { margin-bottom: 20px; }
  .workshop-status { top: 10px; right: 10px; }
  .status-badge { font-size: .7rem; padding: .3rem .6rem; }

  .workshop-image-container { height: 150px; }
  .placeholder-logo { max-width: 80px; max-height: 80px; }

  .remaining-spots, .register-btn { min-width: auto; width: 100%; }
}


/* --- מעטפת זכוכית רכה לקרוסלה --- */
.hero-glass {
  background: rgba(255,255,255,.92);
  box-shadow: 0 8px 18px rgba(0,0,0,.10);
  border-radius: 16px;
}
@media (max-width: 576px){
  .hero-glass { border-radius: 12px; }
}

/* --- קרוסלת המלצות: חיצים/נקודות/קלפים --- */
.hero-testimonials .carousel-control-prev,
.hero-testimonials .carousel-control-next { width: 46px; }

.hero-testimonials .carousel-control-prev-icon,
.hero-testimonials .carousel-control-next-icon {
  background-color: rgba(0,0,0,.45);
  border-radius: 50%;
  background-size: 60% 60%;
  filter: none !important;
}

.hero-testimonials .carousel-indicators { bottom: -6px; }
.hero-testimonials .carousel-indicators [data-bs-target] {
  background-color: #666;
  width: 8px; height: 8px; border-radius: 50%;
}

/* קלף המלצה */
.t-card {
  background:#fff; border:1px solid #eee; border-radius:14px;
  box-shadow:0 6px 16px rgba(0,0,0,.06); padding:14px; min-height:140px;
}
.t-body { font-size:.98rem; color:#333; }
.t-meta { margin-top:8px; font-size:.85rem; color:#666; display:flex; flex-wrap:wrap; gap:6px; }
.t-read { margin-top:10px; display:inline-flex; align-items:center; gap:6px; font-weight:600; text-decoration:none; }

@media (max-width: 768px) {
  .hero-testimonials .carousel-control-prev,
  .hero-testimonials .carousel-control-next { width: 40px; }
}

/* מסגור קל לאיזור ההמלצות/מודל במובייל */
@media (max-width: 576px) {
  #orderWorkshopModal .modal-content {
    border: 2px solid rgba(0,0,0,.06);
    box-shadow: 0 8px 24px rgba(0,0,0,.15);
  }
}