/* =====================================================================
   STYLY POUZE PRO HOMEPAGE (templates/home.php)
   Načítá se podmíněně v header.php jen na hlavní stránce.
   ===================================================================== */

/* ---------------------------------------------------------------------
   NABÍDKA KURZŮ - tabulka 8 kurzů
   --------------------------------------------------------------------- */
.section-courses {
  padding: 2rem 1rem 3rem
}

.courses-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  overflow-x: auto
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(8,minmax(150px,1fr));
  gap: 1px;
  background: var(--black-deep);
  border: 1px solid var(--black-deep)
}

.course-cell {
  background: var(--black-deep);
  color: var(--text-light);
  display: flex;
  flex-direction: column;
  position: relative
}

/* Homepage hero – skutečný <img> (ne CSS pozadí) kvůli spolehlivému
   fetchpriority=high a responzivnímu srcset. Leží pod overlayem i textem. */
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0
}

/* Homepage spacing utility (náhrada za inline margin-top) */
.mt-lg { margin-top: 3rem }
.mt-md { margin-top: 1.5rem }

/* FAQ – časté dotazy */
.faq-heading { text-align: center }
.faq-section {
  max-width: 820px;
  margin: 1rem auto 0
}
.faq-item {
  background: #fff;
  border: 1px solid var(--green-pale, #e8f4e3);
  border-radius: var(--radius, 8px);
  box-shadow: var(--shadow-card, 0 1px 3px rgba(0,0,0,0.08));
  margin: 0.6rem 0;
  padding: 0.1rem 1rem
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  color: #111;
  padding: 0.7rem 0
}
.faq-item[open] summary { color: var(--green-dark, #2f4d2a) }
.faq-item p {
  margin: 0 0 0.85rem;
  color: #333
}

.course-cell .course-name {
  text-align: center;
  padding: 1.25rem 0.5rem 0.5rem;
  font-size: 1.4rem;
  font-weight: 500
}

.course-cell .course-loc {
  text-align: center;
  padding: 0 0.5rem 1.25rem;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.85)
}

.course-cell .course-price {
  background: rgba(0,0,0,0.5);
  text-align: center;
  font-size: 1.6rem;
  font-weight: 600;
  padding: 0.85rem 0.5rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05)
}

.course-cell .course-features {
  flex: 1;
  background: var(--green-light);
  color: var(--text-dark);
  padding: 0;
  list-style: none;
  font-size: 0.85rem;
  display: flex;
  flex-direction: column
}

.course-cell .course-features li {
  padding: 0.65rem 0.85rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  background: #fff
}

.course-cell .course-features li:nth-child(even) {
  background: var(--green-pale)
}

.course-cell .course-features li::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--green-mid);
  border-radius: 50%;
  margin-top: 0.4rem;
  flex-shrink: 0
}

.course-cell .course-cta {
  background: var(--green-pale);
  padding: 0.85rem;
  border-top: 1px solid rgba(0,0,0,0.08)
}

.course-cell .course-cta a {
  display: block;
  background: var(--black-deep);
  color: var(--text-light);
  text-align: center;
  padding: 0.65rem;
  font-weight: 500;
  border-radius: var(--radius);
  transition: background 0.15s
}

.course-cell .course-cta a:hover {
  background: var(--green-dark);
  text-decoration: none
}

.course-cell .course-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: #fff;
  color: #111;
  padding: 0.2rem 0.6rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
  z-index: 1
}

@media (max-width:1366px) {
  .courses-grid {
    grid-template-columns: repeat(4,minmax(180px,1fr))
  }
}

@media (max-width:700px) {
  .courses-grid {
    grid-template-columns: repeat(2,minmax(160px,1fr))
  }
  .course-cell .course-name {
    font-size: 1.1rem;
    padding: 0.85rem 0.5rem 0.3rem
  }
  .course-cell .course-price {
    font-size: 1.25rem;
    padding: 0.6rem
  }
}

/* ---------------------------------------------------------------------
   DALŠÍ SLUŽBY - karty pod nabídkou kurzů
   --------------------------------------------------------------------- */
.services-section {
  padding: 2rem 1rem 3rem;
}
.services-wrap {
  max-width: 1100px;
  margin: 0 auto;
}
.services-wrap > h2 {
  text-align: center;
  margin: 0 0 0.5rem;
}
.services-intro {
  text-align: center;
  color: var(--text-muted, #666);
  max-width: 720px;
  margin: 0 auto 1.75rem;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  margin: 0 auto;
}
.service-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  display: flex;
  flex-direction: column;
  transition: transform 0.15s, box-shadow 0.15s;
}
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.18);
}
.service-card .service-head {
  background: var(--black-deep, #1a2818);
  color: #fff;
  padding: 1.25rem 1rem;
  text-align: center;
  min-height: 7rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.service-card .service-name {
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.4rem;
}
.service-card .service-sub {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.35;
}
.service-card .service-features {
  flex: 1;
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--green-light, #c8e6c0);
  color: var(--text-dark, #222);
}
.service-card .service-features li {
  padding: 0.7rem 0.95rem;
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  font-size: 0.9rem;
  line-height: 1.4;
}
.service-card .service-features li:nth-child(even) {
  background: var(--green-pale, #e8f4e3);
}
.service-card .service-features li::before {
  content: '';
  width: 7px;
  height: 7px;
  background: var(--green-mid, #6dbf5c);
  border-radius: 50%;
  margin-top: 0.5rem;
  flex-shrink: 0;
}
.service-card .service-cta {
  background: var(--green-pale, #e8f4e3);
  padding: 0.85rem;
  border-top: 1px solid rgba(0,0,0,0.08);
}
.service-card .service-cta a {
  display: block;
  background: var(--black-deep, #1a2818);
  color: #fff;
  text-align: center;
  padding: 0.65rem;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.15s;
}
.service-card .service-cta a:hover {
  background: var(--green-dark, #2f4d2a);
}
@media (max-width: 900px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .services-grid { grid-template-columns: 1fr; max-width: 320px; }
  .service-card .service-head { min-height: 0; }
}
