/* --- CSS from index.html --- */

:root {
  --main-color: #8B5E3C;
  --secondary-color: #F4E3D3;
}
body {
  background-color: var(--secondary-color);
  padding-top: 70px; /* hogy a fix navbar ne takarja ki a tartalmat */
}
.navbar, footer {
  background-color: var(--main-color) !important;
}
.navbar-brand, .nav-link, footer p {
  color: white !important;
}
h2 {
  color: var(--main-color);
}

/* Telefonszám és email linkek */
a[href^="tel:"],
a[href^="mailto:"] {
  color: inherit;
  text-decoration: none;
}
a[href^="tel:"]:hover,
a[href^="mailto:"]:hover {
  color: inherit;
  text-decoration: underline;
}

.custom-gallery-btn {
  background-color: #5a3e1e;
  color: white;
  border: none;
  padding: 0.5rem 1.5rem;
  font-size: 1.25rem;
  border-radius: 0.375rem;
  transition: background-color 0.3s ease;
  display: inline-block;
  text-decoration: none;
}
.custom-gallery-btn:hover {
  background-color: #8B5E3C;
  color: white;
  text-decoration: none;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-image: none;
  border: solid 3px #5a3e1e;
  border-width: 0 3px 3px 0;
  display: inline-block;
  padding: 10px;
  width: 20px;
  height: 20px;
  transform-origin: center;
}
.carousel-control-prev-icon {
  transform: rotate(135deg);
}
.carousel-control-next-icon {
  transform: rotate(-45deg);
}
.alert-success {
  background-color: #d4edda;
  color: #155724;
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 5px;
}
.alert-error {
  background-color: #f8d7da;
  color: #721c24;
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 5px;
}


/* --- CSS from adatvedelem.html --- */

:root {
  --main-color: #8B5E3C;
  --secondary-color: #F4E3D3;
}
body {
  background-color: var(--secondary-color);
  padding-top: 70px; /* kell, mert fixed-top menü van */
}
h1, h2, h3 {
  color: var(--main-color);
}
a {
  color: var(--main-color);
}
.navbar, footer {
  background-color: var(--main-color) !important;
}
.navbar-brand, .nav-link, footer p {
  color: white !important;
}
footer {
  padding: 15px 0;
  text-align: center;
}
footer a {
  color: white !important;
  text-decoration: none;
}
footer a:hover {
  text-decoration: underline;
}


/* --- CSS from galeria.html --- */

html, body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  background-color: var(--secondary-color); 
}
h1, h2 {
  color: var(--main-color);
  text-align: center;
  margin-bottom: 2rem;
}
.gallery-folder {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  border-radius: 10px;
  overflow: hidden;
}
.gallery-folder:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}
.gallery-folder img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.folder-title {
  background-color: white;
  padding: 0.75rem;
  text-align: center;
  font-weight: bold;
  color: var(--main-color);
}
:root {
  --main-color: #8B5E3C;
  --secondary-color: #F4E3D3;
}
.navbar, footer {
  background-color: var(--main-color) !important;
}
.navbar-brand, .nav-link, footer p {
  color: white !important;
}
a[href^="tel:"] {
  color: inherit;
  text-decoration: none;
}
a[href^="tel:"]:hover {
  color: var(--main-color);
  text-decoration: underline;
}

/* MODAL GALÉRIA - csak a gallery-modal osztályra */
.gallery-modal {
  display: none;
  position: fixed;
  z-index: 1050;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
}
.gallery-modal.show {
  display: flex;
}
.gallery-modal .modal-content {
  position: relative;
  max-width: 900px;
  max-height: 90vh;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0,0,0,0.7);
  width: 90%;
}
.gallery-modal .modal-content img {
  width: 100%;
  height: auto;
  display: block;
}
.gallery-modal .close {
  color: #8B5E3C;
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
  user-select: none;
  transition: color 0.3s ease;
  z-index: 1100;
}
.gallery-modal .close:hover {
  color: #5a3e1e;
}
.gallery-modal .prev, 
.gallery-modal .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background-color: rgba(139, 94, 60, 0.7);
  color: white;
  font-weight: bold;
  font-size: 30px;
  border-radius: 50%;
  line-height: 50px;
  text-align: center;
  user-select: none;
  transition: background-color 0.3s ease;
  z-index: 1100;
}
.gallery-modal .prev:hover, 
.gallery-modal .next:hover {
  background-color: rgba(139, 94, 60, 1);
}
.gallery-modal .prev { left: 10px; }
.gallery-modal .next { right: 10px; }
.gallery-modal .caption-container {
  text-align: center;
  background-color: #8B5E3C;
  padding: 10px 0;
  color: white;
  font-size: 16px;
  border-radius: 0 0 8px 8px;
}


/* Blog kártyák */
.card {
  border: none;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: #fff;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}
.card img {
  height: 220px;
  object-fit: cover;
}
.card-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Blog gomb */
.btn-blog {
  display: inline-block;
  background-color: var(--main-color);
  color: #fff;
  font-weight: 600;
  padding: 0.6rem 1.2rem;
  border-radius: 30px;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.btn-blog:hover {
  background-color: #5a3e1e;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}


/* ==== MODERN NAVBAR ==== */
.navbar {
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: background-color 0.3s ease;
}
.navbar-brand {
  transition: transform 0.3s ease;
}
.navbar-brand:hover {
  transform: scale(1.05);
}
.nav-link {
  position: relative;
  transition: color 0.3s, background-color 0.3s;
  border-radius: 5px;
  padding: 8px 12px;
}
.nav-link:hover {
  background-color: rgba(255, 255, 255, 0.15);
  color: #fff !important;
}
.nav-link.active {
  background-color: #fff;
  color: var(--main-color) !important;
  border-radius: 5px;
  font-weight: 600;
}

/* SWEETALERT2 TESTRESZABÁS */
.swal2-popup {
  background: #fff !important;
  color: #333 !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25) !important;
  font-family: inherit;
}
.swal2-title {
  color: var(--main-color) !important;
  font-weight: 600;
}
.swal2-html-container {
  font-size: 1rem;
}
.swal2-icon.swal2-success {
  border-color: #28a745 !important; 
  color: #28a745 !important;
}
.swal2-confirm.btn,
.swal2-styled.swal2-confirm {
  background-color: var(--main-color) !important;
  border-radius: 8px;
  padding: 0.5rem 1.5rem;
  font-weight: 600;
}
.swal2-confirm.btn:hover,
.swal2-styled.swal2-confirm:hover {
  background-color: #5a3e1e !important;
}

footer {
  margin-top: auto; 
}

.mySlides { display: none; }

.blog-post img.blog-img {
  max-width: 600px !important;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 1.5rem;
}

/* --- TANFOLYAMOK OLDAL ) --- */

#tanfolyamok-szekcio {
  padding: 50px 20px;
  text-align: center;
}

#tanfolyamok-szekcio h2 {
  font-size: 2em;
  margin-bottom: 30px;
  color: #333;
}

#tanfolyamok-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* kisebb minimum, max 1fr */
  gap: 30px; /* kisebb gap, hogy 3 férjen el szépen */
  max-width: 1400px;
  margin: 0 auto;
  justify-items: center;
}

.tanfolyam-kartya {
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  max-width: 500px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tanfolyam-kartya:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

.tanfolyam-kartya img {
  width: 100%;
  height: auto;
  border-radius: 20px;
}

.tanfolyam-leiras {
  padding: 15px;
}

#behivo-tanfolyam h3 {
  color: #2b7a0b;
}

#kezdo-engedelmes-tanfolyam h3 {
  color: #004aad;
}

#porazkezelo-tanfolyam h3 {
  color: #d94f04;
}

/* Mobil nézet */
@media (max-width: 768px) {
  #tanfolyamok-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 10px;
  }

  .tanfolyam-kartya {
    max-width: 100%;
  }

  .tanfolyam-leiras p {
    font-size: 0.95rem;
  }
}

#popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

#popup-overlay.show {
  display: flex;
}

#popup-box {
  background: white;
  padding: 20px;
  border-radius: 10px;
  max-width: 500px;
  text-align: center;
  position: relative;
}

#popup-close {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

.navbar-toggler {
  border-color: white;
}
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 30 30'%3E%3Cpath stroke='rgba%28255,255,255,0.9%29' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* GRID ALAPOK */
#tanfolyamok-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
}

/* KÁRTYÁK */
.tanfolyam-kartya {
  width: 100%;
  margin: 0;
  box-sizing: border-box;
}

.tanfolyam-kartya img {
  width: 100%;
  height: auto;
  display: block;
}

/* LEÍRÁS */
.tanfolyam-leiras h3 {
  font-size: 1.2rem;
}

.tanfolyam-leiras p {
  font-size: 1rem;
}

/* MOBIL NÉZET */
@media (max-width: 768px) {
  #tanfolyamok-grid {
    grid-template-columns: 1fr; /* kártyák egymás alatt */
    gap: 15px;
    padding: 0 10px;
  }

  .tanfolyam-leiras h3 {
    font-size: 1.1rem;
  }

  .tanfolyam-leiras p {
    font-size: 0.95rem;
  }
}

/* NAVBAR ÉS SECTION */
body {
  padding-top: 70px; /* navbar miatt */
}

section.py-5 {
  padding-left: 10px;
  padding-right: 10px;
  box-sizing: border-box;
}

/* Footer – középre igazítás, ne törjön el */
@media (max-width: 768px) {
  footer .container {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
  footer a {
    display: block;
    font-size: 0.95rem;
  }
}

/* Navbar – logó és márkanév ne törjön meg */
@media (max-width: 576px) {
  .navbar-brand span {
    font-size: 1rem;
  }
  .navbar-brand img {
    height: 35px;
    margin-right: 8px;
  }
}

/* Fejléc és főcímek margói mobilon */
@media (max-width: 576px) {
  section.py-5 {
    padding: 2rem 1rem !important;
  }
  h2 {
    font-size: 1.6rem;
  }
}


