:root {
  --beige: #f5f5dc;
  --white: #ffffff;
  --primary-blue: #4ab7ff;
  --dark-blue: #152e81;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --active-color: #325ed6;
  --bubble-1: #ff9e7d;
  --bubble-2: #8fd3f4;
  --bubble-3: #a0d6b4;
  --bubble-4: #f5d491;
}

body {
  background-color: var(--beige);
  font-family: "Arial", sans-serif;
  line-height: 1.6;
  color: #333;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

.header {
  background-color: var(--white);
  box-shadow: var(--shadow);
  position: relative;
  z-index: 100;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-title {
  margin: 0;
  color: var(--primary-blue);
  font-size: 1.8rem;
  font-weight: 700;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 1rem;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.nav-list a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.nav-list a:hover {
  color: var(--primary-blue);
}

.nav-list a.active {
  color: var(--white);
  background-color: var(--active-color);
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  box-sizing: border-box;
}

.hero {
  background-image: url("https://deluxeweb.hu/wp-content/uploads/2025/05/Kep3.jpg");
  background-size: cover;
  background-position: center;
  min-height: 500px;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  margin-bottom: 3rem;
  border-radius: 8px;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 8px;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 2rem;
  width: 100%;
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-text {
  font-size: 1rem;
  margin-top: 4rem;
  line-height: 1.8;
  background-color: rgba(255, 255, 255, 0.2);
  padding: 1.5rem;
  border-radius: 8px;
  backdrop-filter: blur(5px);
}

.cta-button {
  display: inline-block;
  background-color: var(--primary-blue);
  color: var(--white);
  padding: 0.8rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s;
  margin-top: 1.5rem;
  font-size: 1.1rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
  background-color: var(--dark-blue);
  transform: translateY(-2px);
}

.benefits-section {
  padding: 4rem 0;
  margin-bottom: 2rem;
}

.benefits-container {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  align-items: center;
  gap: 4rem;
  flex-wrap: wrap;
}

.bubbles-container {
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 3rem;
  position: relative;
}

.image-container {
  flex: 1;
  min-width: 300px;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.benefit-image {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.benefit-image:hover {
  transform: scale(1.02);
}

.bubble {
  border-radius: 50%;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 55%;
  aspect-ratio: 1/1;
  box-shadow: 5px 5px 10px 6px rgba(0, 0, 0, 0.489);
  transition: transform 0.3s ease;
}

.bubble:hover {
  transform: scale(1.05);
}

.bubble-content {
  padding: 1rem;
}

.bubble h3 {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  color: var(--dark-blue);
}

.bubble p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #555;
}

.bubble-1 {
  background-color: white;
  margin-left: -1rem;
}
.bubble-2 {
  background-color: var(--bubble-2);
  margin-left: 5rem;
}
.bubble-3 {
  background-color: var(--bubble-2);
  margin-left: 5rem;
}
.bubble-4 {
  background-color: white;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  padding-top: 50px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 800px;
  max-height: 80vh;
  object-fit: contain;
}

#caption {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: #ccc;
  padding: 10px 0;
  height: 150px;
}

.close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
}

.close:hover {
  color: #bbb;
}

@media (max-width: 992px) {
  .benefits-container {
    gap: 2rem;
  }

  .bubble h3 {
    font-size: 1.2rem;
  }

  .bubble p {
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {
  .benefits-container {
    flex-direction: column;
    gap: 3rem;
  }

  .bubbles-container,
  .image-container {
    width: 100%;
  }

  .bubbles-container {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
  }

  .bubble {
    width: 45%;
    max-width: 200px;
  }

  .hero h2 {
    font-size: 2rem;
  }

  .hero-text {
    margin-top: 2rem;
    padding: 1rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .header-container {
    flex-direction: column;
    gap: 1rem;
  }

  .nav-list {
    justify-content: center;
  }

  .benefits-section {
    padding: 2rem 0;
  }

  .bubbles-container {
    flex-direction: column;
    align-items: center;
  }

  .bubble {
    width: 100%;
    max-width: 250px;
  }

  .modal-content {
    width: 95%;
  }
}

.footer {
  background-color: var(--white);
  padding: 2rem 0;
  margin-top: 3rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.footer-nav {
  display: flex;
  list-style: none;
  gap: 1rem;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-nav a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s;
}

.footer-nav a:hover {
  color: var(--primary-blue);
}

.footer-nav a.active {
  color: var(--active-color);
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links img {
  width: 32px;
  height: 32px;
  transition: opacity 0.3s;
}

.social-links img:hover {
  opacity: 0.8;
}

.copyright {
  color: #666;
  font-size: 0.9rem;
  text-align: center;
}

.intro-text {
  font-size: 1.2rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  text-align: center;
}

.heart {
  color: #ff6b6b;
  font-size: 1.5rem;
}

.experience-section {
  background-color: rgba(255, 255, 255, 0.8);
  padding: 2rem;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.benefits-list {
  list-style-type: none;
  padding-left: 1rem;
}

.benefits-list li {
  margin-bottom: 1rem;
  position: relative;
  padding-left: 2rem;
}

.benefits-list li:before {
  content: "•";
  color: var(--primary-blue);
  font-size: 1.5rem;
  position: absolute;
  left: 0;
  top: -0.3rem;
}

.highlight {
  font-weight: bold;
  font-style: italic;
}

.qualifications {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2rem;
}

.qualification-card {
  background-color: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
  flex: 1;
  min-width: 250px;
}

.skip-link {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  position: static;
  width: auto;
  height: auto;
}

.high-contrast {
  background-color: black !important;
  color: white !important;
}

.high-contrast a {
  color: yellow !important;
}

.high-contrast .bubble {
  background-color: black !important;
  color: white !important;
  border: 2px solid yellow;
}

.video-container {
  margin: 2rem 0;
  text-align: center;
}

video {
  max-width: 100%;
  border-radius: 8px;
}

.schedule-table {
  margin: 2rem auto;
  border-collapse: collapse;
  width: 100%;
  max-width: 600px;
}

.schedule-table caption {
  padding: 0.5rem;
  font-weight: bold;
}

.schedule-table th,
.schedule-table td {
  border: 1px solid #ddd;
  padding: 0.8rem;
  text-align: left;
}

.schedule-table th {
  background-color: var(--primary-blue);
  color: white;
}

.schedule-table tr:nth-child(even) {
  background-color: #f2f2f2;
}

.controls {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-bottom: 1rem;
}

.control-btn {
  background-color: var(--primary-blue);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
}

.profile-image-container {
  margin: 2rem auto;
  text-align: center;
  max-width: 600px;
}

.profile-image {
  max-width: 100%;
  border-radius: 8px;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.3s ease;
}

.profile-image:hover {
  transform: scale(1.02);
}

.schedule-section {
  margin: 2rem 0;
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.9rem;
}

.schedule-table caption {
  padding: 0.5rem;
  font-weight: bold;
  text-align: left;
}

.schedule-table th,
.schedule-table td {
  border: 1px solid #ddd;
  padding: 0.8rem;
  text-align: center;
}

.schedule-table th {
  background-color: var(--primary-blue);
  color: white;
}

.schedule-table tr:nth-child(even) {
  background-color: rgba(255, 255, 255, 0.7);
}

.schedule-table tr:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.locations-section {
  margin: 3rem 0;
}

.location-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 1.5rem;
}

.location-card {
  flex: 1;
  min-width: 300px;
  background-color: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.location-card h4 {
  color: var(--dark-blue);
  margin-top: 0;
}

.class-list {
  padding-left: 1.5rem;
}

.class-list li {
  margin-bottom: 0.5rem;
}

.registration-section {
  margin: 3rem 0;
  background-color: rgba(255, 255, 255, 0.8);
  padding: 2rem;
  border-radius: 8px;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
  width: 100%;
  max-width: 500px;
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: Arial, sans-serif;
}

.form-group textarea {
  resize: vertical;
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.radio-group label {
  display: inline;
  margin-left: 0.5rem;
  font-weight: normal;
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.checkbox-group label {
  display: inline;
  font-weight: normal;
}

.submit-btn {
  background-color: var(--primary-blue);
  color: white;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s;
  font-size: 1rem;
}

.submit-btn:hover {
  background-color: var(--dark-blue);
}

.underlined {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .schedule-table {
    font-size: 0.8rem;
  }

  .schedule-table th,
  .schedule-table td {
    padding: 0.4rem;
  }

  .location-cards {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .schedule-table {
    display: block;
    overflow-x: auto;
  }

  .form-group input[type="text"],
  .form-group input[type="email"],
  .form-group input[type="tel"],
  .form-group select,
  .form-group textarea {
    max-width: 100%;
  }
}
.content a:not(.nav-list a, .footer-nav a, .control-btn) {
  color: var(--dark-blue);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  transition: opacity 0.3s;
}

.content a:not(.nav-list a, .footer-nav a, .control-btn):hover {
  opacity: 0.8;
}

.content a:not(.nav-list a, .footer-nav a, .control-btn).visited,
.content a:not(.nav-list a, .footer-nav a, .control-btn):visited {
  color: #6a5acd;
  opacity: 0.7;
}
