/* RESET A ZÁKLADNÍ NASTAVENÍ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  color: #111;
  line-height: 1.6;
  background: url('/img/pozadi_sal_svetly.png') no-repeat center center fixed;
  background-size: cover;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
}

/* HLAVIČKA */
.main-header {
  background: #fff;
  border-bottom: 1px solid #ccc;
  position: relative;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo h1 {
  font-size: 1.5rem;
  color: #111;
}

.main-nav {
  display: flex;
}

/* NAVIGACE */
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
}

.main-nav ul li {
  position: relative;
  padding: 0.5rem 1rem;
  transition: background 0.2s;
}

.main-nav ul li:hover {
  background-color: rgb(240, 218, 185);
}

.main-nav a {
  text-decoration: none;
  color: #111;
  font-weight: bold;
  display: block;
  width: 100%;
}

/* HAMBURGER */
.hamburger {
  display: none;
  font-size: 2rem;
  cursor: pointer;
}

#nav-container .divider-horiz {
    border-top-width: 1px;
    margin: 5px 5px;
    border-color: #C16100;
}
.nav-container .divider {
    display: block;
    font-size: 1px;
    border-width: 0px;
    border-style: solid;
}

/* HERO SEKCE */
.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 3rem 1rem;
  background: #fdfdfd;
}

.hero-text {
  flex: 1 1 300px;
}

.hero-text h2 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.hero-text p {
  font-size: 1.2rem;
}

.hero-image {
  flex: 1 1 300px;
  text-align: right;
}

.hero-image img {
  max-width: 100%;
  height: auto;
}

.btn-primary {
  display: inline-block;
  margin-top: 1rem;
  background-color#F59500;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  text-decoration: none;
  transition: background 0.3s;
}

.btn-primary:hover {
  background-color: #c62828;
  color: #fff;

}

/* ÚVODNÍ KARTY */
.course-offer {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  padding: 2rem 1rem;
}

.course-box {
  background: #fafafa;
  padding: 1.5rem;
  border-radius: 10px;
  text-align: center;
}

/* SLUŽBY */
.services-section {
  background-color:rgb(239, 145, 37);
  color: #fff;
  text-align: center;
  padding: 2rem 1rem;
}

/* PATIČKA */
.main-footer {
  text-align: center;
  padding: 0.2rem 0;
  background: #eee;
  font-size: 0.9rem;
  position: absolute;
  width: 100%;
  z-index: 10;
}

/* MEDIA QUERIES */
@media screen and (max-width: 768px) {
  .hamburger {
    display: block;
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
  }

  .main-nav {
    display: block;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
  }

  .main-nav ul {
    flex-direction: column;
    padding: 1rem;
  }

  .main-nav.show {
    max-height: 500px;
    transition: max-height 0.5s ease-in;
  }

  .hero {
    flex-direction: column-reverse;
    text-align: center;
  }

  .hero-text h2 {
    font-size: 2rem;
  }

  .hero-image {
    text-align: center;
    margin-bottom: 1rem;
  }

  .header-content {
    flex-direction: column;
    align-items: flex-start;
  }
    .course-card-inrow {
    flex-direction: column;
  }
  .course-card-inrow-right,
  .course-card-inrow-actions {
    text-align: left;
    align-items: flex-start;
  }
  .course-card-inrow-actions {
    flex-direction: row;
    gap: 1.5rem;
  }

}

@media screen and (max-width: 480px) {
  .hero-text h2 {
    font-size: 1.7rem;
  }

  .btn-primary {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }

  .course-box h3 {
    font-size: 1.1rem;
  }

  .course-box p {
    font-size: 0.95rem;
  }
}
/*

/* DROPDOWN MENU – ZÁKLAD */
.main-nav .submenu {
  display: none;
  position: absolute;
  background: #fff;
  list-style: none;
  padding: 0;
  margin: 0;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  z-index: 1000;
  width: max-content;
  max-width: 200px;
  min-width: 100%;
}

.main-nav .submenu li a {
  display: block;
  padding: 0.5rem 1rem;
  color: #111;
  text-decoration: none;
  white-space: nowrap;
}

/* VZHLED POLOŽKY PŘI NAJETÍ */
.main-nav ul li a:hover {
  /* background-color: #f3f3f3; */
  background-color:rgb(240, 218, 185);
}

/* POZICE PARENT ITEMU */
.main-nav .has-submenu {
  position: relative;
}

/* DESKTOP: ROZBALENÍ PŘI NAJETÍ */
@media screen and (min-width: 481px) {
  .main-nav .has-submenu:hover > .submenu {
    display: block;
  }
}

/* MOBIL: ROZBALENÍ KLIKNUTÍM */
@media screen and (max-width: 480px) {
  .main-nav {
    display: block;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
  }
  .main-nav.show {
    max-height: 1000px;
  }
  .main-nav ul {
    flex-direction: column;
    padding: 0;
  }
  .main-nav .has-submenu.open > .submenu {
    display: block;
    position: static;
    box-shadow: none;
    background: #fff;
  }
  .main-nav .has-submenu > a::after {
    content: " ▼";
    font-size: 0.8rem;

    margin-left: 4px;
  }
  .main-nav .submenu {
    display: none;
  }
}

/* Kurzy */
.page-header {
  background-color: #f8f8f8;
  padding: 2rem 1rem;
  text-align: center;
  opacity: 0.85;
}

.page-header h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.page-header p {
  font-size: 1.1rem;
  color: #666;
  text-indent: 30px;
}
@media screen and (max-width: 480px) {
  .page-header {
    padding: 0;
  }
  .page-header p {
    text-indent: 20px;
  }
}



.course-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
  justify-content: center; /* přidat */
}

.course-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 1.5rem;
    /*width: 280px; */ /* pevná šířka */
    min-height: 220px; /* zajištění stejné výšky */
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    opacity: 0.85;
}

.course-card h2 {
  color: #F59500;
  margin-bottom: 0.5rem;
}

.course-card p {
  margin-bottom: 1rem;
  color: #333;
}

.btn-secondary {
  display: inline-block;
  padding: 0.5rem 1.2rem;
  background-color: #F59500;
  color: #fff;
  text-decoration: none;
  border-radius: 25px;
  transition: background 0.3s ease;
}

.btn-secondary:hover {
  background-color: #c62828;
  color: #fff;
}

.text-center {
  text-align: center;
}

.filter-form {
  margin-top: 1rem;
  margin-bottom: 2rem;
}

.filter-form select {
  padding: 0.5rem;
  font-size: 1rem;
  border-radius: 5px;
  border: 1px solid #ccc;
}

/* Zarovnání kurzů na střed */
.course-overview.centered {
  justify-content: center;
  text-align: center;
}

/* === VÝPIS KURZŮ – KARTY === */
.course-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
}

.course-card {
  background: #fff;
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid #ddd;
  opacity: 0.85;
}

.course-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: #F59500;
}

.course-card p {
  margin: 0.3rem 0;
  font-size: 0.95rem;
  color: #333;
}

.course-card .course-meta {
  margin: 0.8rem 0;
  font-size: 0.9rem;
  color: #555;
}

.course-card .course-meta strong {
  display: inline-block;
  min-width: 100px;
  color: #111;
}

.course-card .course-description {
  margin: 0.8rem 0;
  font-size: 0.95rem;
  color: #444;
}

.course-card .course-footer {
  margin-top: auto;
  text-align: right;
}

.course-card .course-footer .tag {
  display: inline-block;
  background-color: #eee;
  color: #444;
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
  margin-top: 1rem;
}

/* Pro formátování dvojic např. "Den: Pondělí", "Čas: 16:00–17:00" */
.course-meta-pair {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  padding: 0.2rem 0;
}

.course-meta-pair span:first-child {
  font-weight: bold;
  color: #555;
}

.course-meta-pair span:last-child {
  text-align: right;
}

/* === RESPONSIVITA === */
@media screen and (max-width: 600px) {
  .course-meta-pair {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* NOVÝ VÝPIS KURZŮ */
.course-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.course-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem;
  border: 1px solid #ddd;
  border-radius: 10px;
  background-color: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.course-card-left,
.course-card-right {
  margin-bottom: 1rem;
}

.course-card-left strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
  color: #F59500;
}

.course-card-right {
  text-align: right;
  font-size: 0.95rem;
}

.course-card-actions {
  margin-top: 1rem;
  text-align: right;
}

.course-card-actions a {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.4rem 0.8rem;
  background-color: #F59500;
  color: #fff;
  border-radius: 20px;
  text-decoration: none;
  font-size: 0.9rem;
}

.course-card-actions a:hover {
  /* background-color: #F59500; */
  background-color: #c62828;
  color: #fff;
}

/* FILTR */
.filter-form {
  margin-top: 1rem;
  margin-bottom: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.filter-form label {
  display: flex;
  flex-direction: column;
  font-size: 0.95rem;
}
.filter-form input,
.filter-form select {
  padding: 0.5rem;
  font-size: 1rem;
  border-radius: 5px;
  border: 1px solid #ccc;
}
.filter-form button,
.filter-form .reset-button {
  padding: 0.5rem 1rem;
  background-color: #F59500;
  color: white;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  text-decoration: none;
  align-self: flex-end;
}
.filter-form .reset-button {
  background-color: #ccc;
  color: #111;
}
.filter-form button:hover {
  background-color: #c62828;
  color: #fff;
}
.filter-form .reset-button:hover {
  background-color: #aaa;
}


/* VÝPIS KURZŮ PO ŘÁDCÍCH */
.course-cards-inrow {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 2rem 0;
}
.course-card-inrow {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1.5rem;
  border: 1px solid #aaa;
  border-radius: 10px;
  background-color: #fff;
  width: 100%;
  gap: 2rem;
  flex-wrap: wrap;
  opacity: 0.85;
}
.course-card-inrow-left {
  flex: 2;
  font-size: 0.95rem;
}
.course-card-inrow-left div:first-child {
  font-weight: bold;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}
.course-card-inrow-left strong {
  font-weight: 700;
}
.course-card-inrow-right {
  flex: 1;
  text-align: right;
  font-size: 0.95rem;
  line-height: 1.5;
}
.course-card-inrow-right div:first-child {
  font-weight: bold;
  font-size: 1.1rem;
}
.course-card-inrow-actions {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: flex-end;
  font-size: 0.9rem;
  text-align: right;
}
.course-card-inrow-actions a {
  text-decoration: none;
  color: #000;
  font-weight: bold;
}
.course-card-inrow-actions a:hover {
/*  color: #0066cc;
  text-decoration: underline; */
  color: #fff;
}


.main-image {
    flex: 1 1 40%;
    max-width: 40%;
    width: 100%;
    height: auto;
    border-radius: 10px;
    float: left;
    padding-right: 1rem;
}

.main-image-right {
    flex: 1 1 30%;
    max-width: 30%;
    width: 100%;
    height: auto;
    border-radius: 10px;
    float: right;
    padding-left: 1rem;
}

.main-text {
    flex: 1 1 50%;
    text-align: justify;
    flex-wrap: wrap;
 }
.main-text p {
    text-align: justify;
    padding-left: 1rem;
    text-indent: 30px;
}
@media screen and (max-width: 480px) {
  .main-image {
    flex: 1 1 50%;
    max-width: 50%;
    width: 100%;
    height: auto;
    border-radius: 10px;
    float: left;
    padding-right: 0.5rem;
  }

  .main-image-right {
    flex: 1 1 50%;
    max-width: 50%;
    width: 100%;
    height: auto;
    border-radius: 10px;
    float: right;
    padding-left: 0.5rem;
  }

  .main-text {
    flex: 1 1 50%;
    text-align: justify;
    flex-wrap: wrap;
  }
  .main-text p {
    text-align: justify;
    padding-left: 0.5rem;
    text-indent: 20px;
  }

}

/* Lektroeské medailonky */
.instructor-profile {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.instructor-header {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
}
.instructor-header .photo img {
  max-width: 250px;
  border-radius: 12px;
}
.basic-info h1 {
  margin: 0;
  font-size: 2rem;
}
.basic-info .title {
  font-weight: bold;
  color: #666;
}
.basic-info .experience {
  color: #888;
}
.instructor-profile section,
.instructor-profile div {
  margin-bottom: 1.5rem;
}
.instructor-profile ul {
  padding-left: 1.2rem;
}


/* Letkorský team */
.team-overview {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}
.team-overview h1 {
  text-align: center;
  margin-bottom: 2rem;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}
.instructor-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.2s ease;
}
.instructor-card:hover {
  transform: scale(1.03);
}
.instructor-card img {
  width: 100%;
  height: auto;
}
.instructor-card h2 {
  margin: 1rem 0 0.5rem;
}
.instructor-card p {
  color: #666;
  margin-bottom: 1rem;
}
.instructor-card a {
  display: block;
  text-decoration: none;
  color: inherit;
}

