.pricing-section {
  padding: 7em 0;
  background-color: var(--deep-burgundy);
  color: var(--off-white);
  position: relative;
  overflow: hidden;
}

.pricing-section::before {
  content: "";
  position: absolute;
  top: -10%;
  left: -5%;
  width: 110%;
  height: 120%;
  background: rgba(0, 0, 0, 0.1);
  clip-path: polygon(0% 15%, 100% 0%, 100% 85%, 0% 100%);
  z-index: 1;
}

.pricing-section .container {
  position: relative;
  z-index: 2;
}

.pricing-title {
  font-family: var(--font-primary);
  text-align: center;
  font-size: clamp(2.5rem, 6vw, 42px);
  color: var(--golden-yellow);
  margin-bottom: 1rem;
}

.pricing-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3.5rem;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
}

.pricing-note {
  text-align: center;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 2.5rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.pricing-table {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 500px;
  margin: 0 auto;
  font-family: var(--font-secondary);
}

.pricing-header,
.main-category,
.sub-category {
  display: none;
}

.pricing-group {
  background: rgba(0, 0, 0, 0.15);
  padding: 1.5rem 2rem;
  border: none;
  clip-path: polygon(0% 2%, 100% 0%, 99% 98%, 2% 100%);
}

.pricing-group-title {
  display: block;
  font-family: var(--font-primary);
  font-size: 24px;
  color: var(--off-white);
  margin: 0 0 1rem 0;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(251, 217, 90, 0.3);
  text-align: center;
  margin-top: 1rem;
}

.pricing-row {
  padding: 1rem 0;
}

.pricing-row:not(:last-of-type) {
  border-bottom: 1px solid rgba(251, 217, 90, 0.15);
}

.pricing-row::before {
  content: attr(data-type-en);
  display: block;
  font-family: var(--font-secondary);
  font-weight: 700;
  font-size: 18px;
  color: #ddd;
  margin-bottom: 0.75rem;
  text-align: center;
}

html[lang="de"] .pricing-row::before {
  content: attr(data-type-de);
}

.price {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0.5rem;
}

.price-label {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 400;
  font-size: 16px;
}

.price-value {
  color: var(--golden-yellow);
  font-weight: 700;
  font-size: 18px;
}

@media screen and (min-width: 768px) {
  .pricing-table {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 0;
    max-width: 800px;
    border-bottom: 1px solid rgba(251, 217, 90, 0.3);
  }

  .pricing-header {
    display: flex;
    align-items: center;
    font-family: var(--font-primary);
    color: var(--golden-yellow);
    font-size: 20px;
    padding-bottom: 1.25rem;
    text-transform: uppercase;
    font-weight: 700;
    border-bottom: 2px solid rgba(251, 217, 90, 0.5);
  }

  .pricing-group,
  .pricing-row {
    display: contents;
  }

  .pricing-group-title,
  .price .price-label,
  .pricing-row::before {
    display: none !important;
  }

  .main-category,
  .sub-category,
  .price {
    padding: 1.25rem 0.5rem;
    display: flex;
    align-items: center;
    border-top: 1px solid rgba(251, 217, 90, 0.3);
  }

  .main-category {
    display: flex;
    grid-column: 1;
    grid-row: span 2;
    font-weight: 700;
    font-size: 18px;
    color: var(--off-white);
  }

  .sub-category {
    display: flex;
    grid-column: 2;
    color: rgba(255, 255, 255, 0.9);
  }

  .price {
    grid-column: auto;
  }
}

.classes-page #gtco-header h1,
.classes-page .class-card h3,
.classes-page .social-dance-section h2,
.classes-page .faq-section h2 {
  font-family: var(--font-primary);
}

.classes-page .class-card .tagline {
  font-family: var(--font-secondary);
}

.classes-page #gtco-header h1 {
  font-size: clamp(3rem, 10vw, 5.5rem);
  color: var(--primary-color);
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
  margin-bottom: 0;
}

.classes-page #gtco-header h2 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  color: var(--off-white);
  font-weight: 400;
  max-width: 800px;
  margin: 0.2rem auto 1.5rem;
  line-height: 1.4;
}

#class-cards-intro {
  padding: 1em 0 0.5em 0;
  background-color: whitesmoke;
  clear: both;
  position: relative;
  overflow: hidden;
}

#class-cards-intro::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background: rgba(0, 0, 0, 0.04);
  clip-path: polygon(30% 0%, 23% 24%, -20% 0%);
}

#class-cards-intro::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background: rgba(0, 0, 0, 0.04);
  clip-path: polygon(100% 5%, 100% 57%, 88% 25%);
}

#class-cards-intro .container {
  position: relative;
  z-index: 1;
}

#class-cards {
  padding: 0.2em 0 1em 0;
  background-color: whitesmoke;
  clear: both;
  position: relative;
  overflow: hidden;
}

#class-cards::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background: rgba(0, 0, 0, 0.04);
  clip-path: polygon(0% 48%, 40% 62%, 50% 72%, 0% 104%);
}

#class-cards::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background: rgba(0, 0, 0, 0.04);
  clip-path: polygon(56% 100%, 58% 86%, 64% 77%, 106% 100%);
}

#class-cards .container {
  position: relative;
  z-index: 1;
}

.class-card {
  color: var(--text-dark);
  padding: 4rem 1.5rem 6rem 1.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  margin-bottom: 4rem;
  margin-top: 30px;
  position: relative;
  overflow: visible;
  z-index: 1;
  width: 100%;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}
@media screen and (min-width: 992px) and (max-width: 1199px) {
  .class-card {
    max-width: 350px;
  }
}

.class-card::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 8px;
  right: -8px;
  bottom: -8px;
  background: #edf0f6;
  clip-path: polygon(
    10% 0%,
    27% 2%,
    92% 0,
    99% 8%,
    96% 42%,
    99% 92%,
    93% 100%,
    70% 99%,
    12% 100%,
    0 87%,
    1% 61%,
    0 12%
  );
  z-index: -1;
}

.class-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #ffffff;
  clip-path: polygon(
    8% 0%,
    25% 2%,
    90% 0,
    97% 8%,
    94% 42%,
    97% 92%,
    91% 100%,
    68% 99%,
    10% 100%,
    0 87%,
    1% 61%,
    0 12%
  );
  z-index: 0;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.class-card > *:not(.class-card-badge) {
  position: relative;
  z-index: 2;
  margin-left: 2rem;
  margin-right: 2rem;
}

@media screen and (max-width: 992px) {
  .class-cards-section {
    padding: 25px 1.5rem 3em;
  }

  .class-card {
    margin-top: 30px;
    padding: 5rem 1.5rem 7rem 1.5rem;
  }

  .class-card > *:not(.class-card-badge) {
    margin-left: 3rem;
    margin-right: 3rem;
  }
}

@media screen and (max-width: 768px) {
  .class-card {
    padding: 4rem 1.2rem 6rem 1.2rem;
  }

  .class-card > *:not(.class-card-badge) {
    margin-left: 2.5rem;
    margin-right: 2.5rem;
  }
}

@media screen and (max-width: 480px) {
  .class-card {
    padding: 4rem 1.2rem 6rem 1.2rem;
  }

  .class-card > *:not(.class-card-badge) {
    margin-left: 1.8rem;
    margin-right: 1.8rem;
  }
}

.class-card:hover {
  transform: translateY(-10px);
}

.class-card h3 {
  font-family: var(--font-primary);
  color: var(--vibrant-orange);
  font-size: 36px;
  margin: 1.5rem 0 0.25rem 0;
  text-align: center;
}

.class-card .tagline {
  font-weight: 600;
  color: var(--royal-blue);
  text-align: center;
  margin-bottom: 0.2rem;
  font-size: 18px;
}

.class-card .description {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.info-block {
  background-color: #f0f0f0;
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 2rem;
}

.info-block p {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  margin-bottom: 0.75rem;
}

.info-block p:last-child {
  margin-bottom: 0;
}

.info-block .fas {
  color: var(--deep-burgundy);
  width: 20px;
  text-align: center;
}

.cta-button-paper {
  display: inline-block;
  background-color: var(--vibrant-orange);
  color: white !important;
  padding: 1.1rem 2.8rem;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
  font-size: 2rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
  text-align: center;
  clip-path: polygon(9% 2%, 94% 3%, 100% 69%, 92% 100%, 4% 98%, 0 46%, 2% 23%);
}

.class-card .cta-button-paper {
  align-self: center;
  width: 80%;
  text-align: center;
  padding: 10px 20px;
  font-size: 16px;
  max-width: 300px;
}

.social-dance-section,
.faq-section {
  padding: 7em 1rem;
  text-align: center;
}

@media screen and (max-width: 768px) {
  .social-dance-section,
  .faq-section {
    padding: 3em 1rem;
  }
}

.social-dance-section {
  background-color: var(--royal-blue);
  color: var(--off-white);
}

.social-dance-section h2,
.faq-section h2 {
  color: var(--golden-yellow);
  font-family: var(--font-primary);
  margin-bottom: 2rem;
  font-size: 36px;
}

.social-dance-section p,
.faq-section p {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  font-size: 18px;
  color: #fff;
}

.social-dance-details {
  margin-top: 2rem;
  display: inline-block;
  padding: 1rem 2rem;
  border: 2px solid var(--golden-yellow);
  border-radius: 10px;
}

.faq-section {
  background-color: var(--deep-burgundy);
}

.faq-section .panel-group {
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

.faq-section .panel {
  background-color: transparent;
  border: none;
  box-shadow: none;
  margin-bottom: 1rem;
  border-radius: 5px;
  overflow: hidden;
}

.faq-section .panel-heading {
  background-color: var(--off-white);
  color: var(--deep-burgundy);
  padding: 0;
  border-radius: 5px;
  border: none;
}

.faq-section .panel-title > a {
  display: block;
  padding: 15px;
  font-weight: 600;
  color: var(--deep-burgundy);
  text-decoration: none;
  position: relative;
}

.faq-section .panel-title > a:hover {
  text-decoration: none;
}

.faq-section .panel-title > a[aria-expanded="true"] {
  background-color: var(--golden-yellow);
}

.faq-section .panel-title > a::after {
  content: "+";
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 300;
  transition: transform 0.3s ease;
}

.faq-section .panel-title > a[aria-expanded="true"]::after {
  content: "−";
}

.faq-section .panel-body {
  background-color: white;
  color: var(--text-dark);
  border-top: 1px solid #ddd;
}

.faq-section .contact-prompt {
  margin-top: 3rem;
  color: var(--off-white);
}

.faq-section .contact-prompt a {
  color: var(--golden-yellow);
  font-weight: 600;
}

.classes-page .gtco-cover a.cta-button-paper:hover {
  border-bottom: none !important;
  text-decoration: none !important;
}

.classes-page .lang-de {
  display: none;
}

.lang-en,
.lang-de {
  display: inline-block;
  opacity: 0;
}

@keyframes polygonalConceal {
  from {
    opacity: 1;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }
  to {
    opacity: 0;
    clip-path: polygon(50% 50%, 50% 50%, 50% 50%, 50% 50%);
  }
}

.lang-en,
.lang-de {
  display: inline-block;
  vertical-align: bottom;
}

.lang-reveal {
  animation: polygonalReveal 0.4s ease-out forwards;
}

.lang-conceal {
  animation: polygonalConceal 0.4s ease-in forwards;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  margin-left: 20px;
  padding: 0;
  background: transparent;
  height: 40px;
  position: relative;
  transform: translateY(2px);
}

.language-switcher a.lang-toggle {
  color: rgba(255, 255, 255, 0.9) !important;
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  position: relative;
  padding: 8px 20px;
  margin: 0 2px;
  z-index: 1;
  overflow: hidden;
  text-align: center;
  min-width: 50px;
}

.language-switcher a.lang-toggle::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.1);
  clip-path: polygon(10% 0%, 90% 5%, 95% 95%, 5% 90%);
  z-index: -1;
  transition: all 0.3s ease;
}

.language-switcher a.lang-toggle.active {
  color: #000 !important;
  font-weight: 600;
}

.language-switcher a.lang-toggle.active::before {
  background: #fbd95a;
  clip-path: polygon(0% 10%, 100% 0%, 95% 90%, 5% 100%);
}

.language-switcher a.lang-toggle:hover::before {
  background: rgba(255, 217, 89, 0.3);
  clip-path: polygon(0% 5%, 100% 0%, 95% 95%, 5% 100%);
}

.language-switcher a.lang-toggle.active:hover::before {
  background: #ffea9e;
}

.language-switcher .lang-separator {
  color: rgba(255, 255, 255, 0.5);
  margin: 0 5px;
  font-size: 14px;
  font-weight: 300;
  position: relative;
  top: -1px;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.lang-en,
.lang-de {
  display: inline-block;
  animation: fadeInUp 0.3s ease-out forwards;
}

.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1;
}

.hero-background::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.pricing-note-card {
  text-align: center;
  font-size: 14px;
  color: rgba(0, 0, 0, 0.7);
  margin-top: 1rem;
}

.pricing-note-card a {
  color: var(--royal-blue);
  text-decoration: underline;
}

.community-class-card {
  background: rgba(0, 0, 0, 0.15);
  border: 2px dashed var(--golden-yellow);
  border-radius: 8px;
  padding: 2.5rem 2rem;
  margin-top: 3.5rem;
  text-align: center;
  max-width: 750px;
  margin: 3.5rem auto 0 auto;
}

.community-class-card .icon {
  font-size: 40px;
  color: var(--golden-yellow);
  margin-bottom: 1rem;
  display: block;
}

.community-class-card h4 {
  font-family: var(--font-primary);
  color: var(--off-white);
  font-size: 28px;
  margin-bottom: 1rem;
}

.community-class-card p {
  color: rgba(255, 255, 255, 0.8);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.community-class-card p strong {
  color: var(--golden-yellow);
}

.class-cards-section .container .class-section-intro:first-child {
  padding-top: 4em;
}

@media screen and (max-width: 768px) {
  .class-cards-section .container .class-section-intro:first-child {
    padding-top: 5em;
  }
}

.class-cards-section {
  padding-top: 1em;
  padding-bottom: 0px;
}

.class-section-intro {
  text-align: center;
  max-width: 650px;
  margin: 0 auto;
}

.class-section-intro h2 {
  font-family: var(--font-primary);
  color: var(--vibrant-orange);
  font-size: clamp(2.5rem, 6vw, 42px);
  margin-bottom: 1rem;
}

.class-section-intro p {
  font-size: 18px;
  color: var(--text-dark);
  line-height: 1.7;
}

.class-cards-section .row {
  margin-top: 0;
  margin-bottom: 3rem;
}

.cta-button-paper.disabled {
  background-color: #bdbdbd;
  cursor: not-allowed;
  pointer-events: none;
  color: #757575 !important;
}

.cta-button-paper.disabled:hover {
  background-color: #bdbdbd;
  transform: none;
  box-shadow: none;
}

.class-card .cta-button-paper {
  min-width: 180px;
  padding: 10px 15px;
  box-sizing: border-box;
}

.class-card__note {
  text-align: center;
  margin-top: 0.5rem;
  padding: 0 1rem;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-dark);
}

.class-card__note a {
  color: var(--primary-dark);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--golden-yellow);
  transition: color 0.3s ease;
}

.class-card__note a:hover {
  color: var(--vibrant-orange);
}

.class-card__note .fa-heart {
  color: var(--golden-yellow);
  margin-right: 8px;
  font-size: 16px;
  vertical-align: -1px;
}

@media screen and (max-width: 768px) {
  .class-cards-section {
    padding-top: 0;
  }

  .class-cards-section .row {
    margin-top: 0;
    margin-bottom: 5rem;
  }

  .class-section-intro h2 {
    font-size: clamp(2rem, 8vw, 36px);
  }

  .class-card .cta-button-paper {
    min-width: unset;
    width: 100%;
  }

  .cta-button-paper {
    padding: 1rem 2.3rem;
    font-size: 1.7rem;
  }
}

@media screen and (max-width: 480px) {
  .class-card__note {
    font-size: 14px;
  }
}

/*
 * Clean Beginner Intro Paragraph
 * -------------------------------------------
 */
.beginner-intro {
  font-size: 18px;
  color: var(--text-dark);
  line-height: 1.7;
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.beginner-intro .fas {
  color: var(--golden-yellow);
  margin-right: 8px;
  font-size: 1.1em;
  vertical-align: -1px;
}

.beginner-intro a {
  color: var(--primary-dark);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--golden-yellow);
  transition: color 0.3s ease;
}

.beginner-intro a:hover {
  color: var(--vibrant-orange);
}

.class-card-badge {
  font-size: 1rem;
  text-transform: uppercase;
  font-weight: bold;
  background-color: var(--golden-yellow);
  color: var(--text-dark);
  padding: 0.5rem 1rem;
  display: inline-block;
  margin: 0;
  align-self: center;
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%) rotate(-2deg);
  z-index: 10;
  clip-path: polygon(
    12% 0,
    29% 13%,
    65% 1%,
    95% 21%,
    100% 51%,
    91% 81%,
    81% 100%,
    58% 86%,
    19% 100%,
    4% 88%,
    2% 61%,
    4% 9%
  );
}

.requirement-memo {
  margin-top: 1.5rem;
  order: 10;
  border: 2px dashed var(--vibrant-orange);
  background-color: rgba(232, 89, 35, 0.08);
  padding: 1.2rem 1.2rem 0.5rem 1.2rem;
  border-radius: 8px;
  font-size: 1.2rem;
  line-height: 1.4;
  color: var(--text-dark);
}

.requirement-memo strong {
  font-weight: 700;
  color: var(--vibrant-orange);
}
