/* css/clases.css */

/* Header Styling */
header.masthead.clases-header {
  background: linear-gradient(135deg, var(--color-3) 0%, var(--color-2) 100%);
  min-height: 50vh;
  height: auto;
  padding-top: 180px;
  padding-bottom: 120px;
  margin-bottom: 0;
  clip-path: polygon(
    0 0,
    100% 0,
    100% 85%,
    0 100%
  ); /* Angled cut instead of ellipse */
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

header.masthead.clases-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.05;
  pointer-events: none;
}

header.masthead.clases-header .intro-text {
  padding-top: 0;
  padding-bottom: 0;
  z-index: 1;
}

header.masthead.clases-header .intro-heading {
  font-family: var(--heading-font);
  font-size: 5rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--white);
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  margin-bottom: 10px;
  letter-spacing: -1px;
}

/* Clases Section Styling - Alternating Layout */
#clases {
  padding-top: 80px;
  padding-bottom: 100px;
  background-color: var(--bg-light);
}

.class-row {
  margin-bottom: 100px;
}

.class-row:last-child {
  margin-bottom: 0;
}

.class-image-container {
  position: relative;
  padding: 20px;
  display: flex;
  justify-content: center;
}

.class-image-container img {
  width: 300px;
  height: 300px;
  object-fit: cover;
  border: 8px solid #fff;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  transition: transform 0.5s ease;
}

.class-row:hover .class-image-container img {
  transform: scale(1.05) rotate(2deg);
}

/* Decorative circle behind image */
.class-image-container::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 320px;
  height: 320px;
  border-radius: 50%;
  border: 2px dashed var(--color-3);
  opacity: 0.3;
  z-index: -1;
  transition: all 0.5s ease;
}

.class-row:hover .class-image-container::before {
  width: 340px;
  height: 340px;
  opacity: 0.6;
  transform: translate(-50%, -50%) rotate(180deg);
}

.class-content {
  padding: 20px;
}

.class-heading {
  font-family: var(--heading-font);
  font-size: 2.5rem;
  color: var(--color-3);
  margin-bottom: 20px;
  font-weight: 700;
  position: relative;
  display: inline-block;
}

/* Underline effect for headings */
.class-heading::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: var(--color-2);
  transition: width 0.3s ease;
}

.text-right .class-heading::after {
  left: auto;
  right: 0;
}

.class-row:hover .class-heading::after {
  width: 100%;
}

.class-content p {
  font-family: var(--body-font);
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-main);
  margin-bottom: 25px;
}

.class-features {
  margin-top: 20px;
}

.badge {
  padding: 8px 15px;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 20px;
  margin-right: 5px;
  letter-spacing: 0.5px;
}

.badge-primary {
  background-color: var(--color-3);
  color: #fff;
}

.badge-secondary {
  background-color: var(--bg-dark);
  color: var(--text-heading);
  border: 1px solid var(--color-4);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .class-row {
    margin-bottom: 60px;
    text-align: center !important;
  }

  .class-content.text-right,
  .class-content.text-left {
    text-align: center !important;
  }

  .text-right .class-heading::after,
  .class-heading::after {
    left: 50%;
    transform: translateX(-50%);
    right: auto;
  }

  .order-md-2 {
    order: 1; /* Image first on mobile */
  }
  .order-md-1 {
    order: 2; /* Content second on mobile */
  }

  .class-image-container img {
    width: 250px;
    height: 250px;
  }

  .class-image-container::before {
    width: 270px;
    height: 270px;
  }
}
