﻿/* ===== Bradley Hand ITC lokaal inladen ===== */
@font-face {
  font-family: 'Bradley Hand ITC';
  src: url('../images/BRADHITC.TTF') format('truetype');
  font-weight: normal;
  font-style: normal;
}

/* ===== Algemene opmaak ===== */
.custom-section {
  background-color: #ffffff;
  color: #4b1d56;
}

h2 {
  font-size: 1.5rem;
  font-weight: bold;
  font-family: "Segoe UI", Tahoma, Geneva, sans-serif;

}

.custom-section .container {
  max-width: 1000px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* ===== Logo-stapel ===== */
.logo-stack {
  position: relative;
  width: 150px;
  height: 150px;
  flex-shrink: 0;
}

/* Rand om eerste logo */
.logo-border {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 2px solid #fbfafb;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
  background-color: #fff;
}

.stacked-logo {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.overlay-logo {
  z-index: 2;
}

/* ===== Quote ===== */
.quote-box {
  color: #64226b;
  text-align: center;
  position: relative; /* parent voor absolute quote marks */
}

.quote-content {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 40px;
  display: inline-block;
  text-align: center;
  position: relative;
  z-index: 1; /* tekst boven quote marks */
}

.quote-text {
  font-family: 'Bradley Hand ITC', cursive;
  font-weight: bold;
  font-size: 2.6rem;
  color: #802d85;
  margin: 0;
  line-height: 1.4;
  position: relative;
  display: inline-block;
  text-shadow: 2px 2px 6px rgba(100, 34, 107, 0.25);
  transform: rotate(-2.76deg);
  animation: floaty 5s ease-in-out infinite;
}

/* ===== Zwevende animatie ===== */
@keyframes floaty {
  0% { transform: rotate(-2.76deg) translateY(0); }
  50% { transform: rotate(-2.76deg) translateY(-4px); }
  100% { transform: rotate(-2.76deg) translateY(0); }
}

/* ===== Quote Marks ===== */
.quote-mark {
  position: absolute;
  font-size: 7rem;
  color: #e8d4e5;
  font-family: Georgia, serif;
  z-index: 0;
  transform: rotate(-2.76deg);
}

.quote-mark.left {
  top: 1px;
  left: -10px;
}

.quote-mark.right {
  top: 20px;
  right: -20px;
}

/* ===== Responsief ontwerp ===== */
@media screen and (max-width: 992px) {
  .quote-text {
    font-size: 2rem;
  }
  .quote-mark {
    font-size: 4rem;
  }
  .logo-stack {
    width: 150px;
    height: 150px;
  }
}

@media screen and (max-width: 768px) {
  .container.d-flex {
    flex-direction: column;
    align-items: center;
  }

  .quote-content {
    padding: 25px;
    text-align: center;
  }

  .quote-text {
    font-size: 1.8rem;
  }
}

/* ===== Quote aanpassing bij mobiele weergave ===== */
@media screen and (max-width: 768px) {
  .quote-box {
    width: 100%;
    position: relative;
    padding: 20px;
  }

  .quote-content {
    width: 100%;
    padding: 40px 20px;
    display: block; /* geen flex, zodat hoogte correct berekend wordt */
    position: relative;
    z-index: 1;
  }

  .quote-text {
    font-size: 1.4rem; /* groter lettertype op mobiel */
    width: 90%;
    line-height: 1.3;
    text-align: center;
  }

  .quote-mark {
    position: absolute;
    font-size: 5rem; /* grotere aanhalingstekens */
    color: #e8d4e5;
    opacity: 0.6;
    transform: none;
    z-index: 0;
  }

  .quote-mark.left {
    top: 0;
    left: 0;
  }

  .quote-mark.right {
    bottom: 0;  /* correct rechtsonder */
    right: 0;
    transform: translateY(20%); /* optioneel: kleine offset van de onderkant */
  }

  .dansschool-knop {
    display: inline-block;
    background-color: #802d85;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 12px 20px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
    font-size: 16px;
    transition: all 0.3s ease;
    text-decoration: none;
  }

  .dansschool-knop:hover {
    background-color: #7c428f;
  }
}

/* ===== FIX: witruimte boven tekst verwijderen op mobiel ===== */
@media screen and (max-width: 768px) {
  /* Verberg logo's en quote-box zoals eerder */
  .logo-stack,
  .quote-box {
    display: none !important;
  }

  /* Haal padding en margin weg van de lege bovenste container */
  .custom-section > .container.d-flex {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }

  /* Extra strakke versie: alleen als browser :has() ondersteunt */
  .custom-section > .container.d-flex:has(.logo-stack, .quote-box) {
    padding: 0 !important;
    margin: 0 !important;
  }
}


/* ===============================
   Main content Kaarten
   =============================== */

.dansschool-knop {
  display: inline-block;         
  float: right;                  /* rechts uitlijnen */
  background-color: #802d85;
  color: white;
  border: none;
  border-radius: 10px;
  padding: 8px 16px;             /* kleinere knop */
  font-weight: bold;
  cursor: pointer;
  font-size: 10px;               /* kleiner lettertype */
  transition: all 0.3s ease;
  text-decoration: none;
}

.dansschool-knop:hover {
  background-color: #7c428f;
}

.dansschool-container {
    max-width: 100%;
    margin: 20px auto;
   font-family: "Segoe UI", Tahoma, Geneva, sans-serif;

    font-size: 16px;
    color: #761D7B;
    line-height: 1.6;
    text-align: left;
}

.dansschool-card {
    
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-bottom: 20px;
}


.dansschool-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 20px;
}

.dansschool-image-left,
.dansschool-image-right {
    flex: 0 0 250px;
    max-width: 100%;
    width: 100%;     /* Zorgt dat het beeld schaalt */
    height: auto;    /* Behoudt verhoudingen */
    border-radius: 10px;
    margin-bottom: 10px;
}

@media screen and (max-width: 700px) {
    .dansschool-row {
        flex-direction: column;
    }

    .dansschool-image-left,
    .dansschool-image-right {
        flex: unset;     /* voorkomt geforceerde breedte */
        width: 100%;     /* schaalt naar schermbreedte */
        height: auto;    /* behoudt aspect ratio */
        margin: 0 auto 10px auto;
        display: block;
    }
}