/*--------------------------------------------------------------
# Courses Hero Section
--------------------------------------------------------------*/
.courses-hero {
  --hero-blend-bg: #fff4e6;
  --hero-height: max(640px, calc(100vh - 168px));
  --hero-height: max(640px, calc(100svh - 139px));
  position: relative;
  min-height: var(--hero-height);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 0; /* removed top-bottom padding */
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.04) 35%, rgba(255, 255, 255, 0) 100%), var(--hero-blend-bg);
}

.courses-hero .hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
}

.courses-hero .hero-content .container,
.courses-hero .hero-content .container .row {
  height: 100%;
}

.courses-hero .hero-content .container .row {
  min-height: var(--hero-height);
  align-items: stretch !important;
}

.courses-hero .hero-content .container .row > [class*="col-"] {
  display: flex;
  align-items: stretch;
}

.courses-hero .hero-text {
  width: 100%;
  padding: 92px 0 42px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.courses-hero .hero-text h1 {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--heading-color);
}

@media (max-width: 768px) {
  .courses-hero .hero-text h1 {
    font-size: 2.5rem;
  }
}

.courses-hero .hero-text p {
  font-size: 1.25rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
}

.courses-hero .hero-stats {
  display: flex;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

@media (max-width: 576px) {
  .courses-hero .hero-stats {
    flex-direction: column;
    gap: 1rem;
  }
}

.courses-hero .hero-stats .stat-item {
  text-align: center;
}

.courses-hero .hero-stats .stat-item .number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent-color);
  line-height: 1;
}

.courses-hero .hero-stats .stat-item .label {
  font-size: 0.9rem;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  font-weight: 500;
}

.courses-hero .hero-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

@media (max-width: 576px) {
  .courses-hero .hero-buttons {
    flex-direction: column;
  }
}

.courses-hero .hero-buttons .btn {
  padding: 15px 30px;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.courses-hero .hero-buttons .btn.btn-primary {
  border: 0px solid transparent;
  background: linear-gradient(120deg, #ff6a00 0%, #ff9933 52%, #ffd84d 100%);
  color: #fff9ef;
  box-shadow: 0 12px 24px rgba(255, 128, 12, 0.28);
}

.courses-hero .hero-buttons .btn.btn-primary:hover {
  background: linear-gradient(120deg, #ff5f00 0%, #ff9021 52%, #ffd23e 100%);
  box-shadow: 0 16px 30px rgba(255, 128, 12, 0.34);
  transform: translateY(-2px);
  color: #fffdf8;
}

.courses-hero .hero-buttons .btn.btn-outline {
  background: rgba(255, 249, 239, 0.92);
  border: 2px solid #ff9a2f;
  color: #8a4300;
  box-shadow: 0 10px 20px rgba(90, 42, 2, 0.1);
}

.courses-hero .hero-buttons .btn.btn-outline:hover {
  background: linear-gradient(120deg, #ff6a00 0%, #ff9933 52%, #ffd84d 100%);
  border-color: transparent;
  color: #fffaf1;
  box-shadow: 0 16px 30px rgba(255, 128, 12, 0.28);
  transform: translateY(-2px);
}

.courses-hero .hero-features {
  display: flex;
  gap: 2rem;
}

@media (max-width: 768px) {
  .courses-hero .hero-features {
    flex-wrap: wrap;
    gap: 1rem;
  }
}

.courses-hero .hero-features .feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.courses-hero .hero-features .feature i {
  font-size: 1.25rem;
  color: var(--accent-color);
}

.courses-hero .hero-features .feature span {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--default-color);
}


/* -------------------------------
   FIXED FULL HEIGHT IMAGE SECTION
--------------------------------*/

.courses-hero .hero-image {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: 100%;
  min-height: 100%;
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.courses-hero .hero-image::before,
.courses-hero .hero-image::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.courses-hero .hero-image::before {
  width: 320px;
  height: 320px;
  top: 8%;
  right: -6%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 189, 84, 0.52) 0%, rgba(255, 189, 84, 0.22) 45%, rgba(255, 189, 84, 0) 72%);
  animation: none;
}

.courses-hero .hero-image::after {
  width: 210px;
  height: 210px;
  bottom: 10%;
  left: -4%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 155, 48, 0.42) 0%, rgba(255, 155, 48, 0.15) 46%, rgba(255, 155, 48, 0) 72%);
  animation: none;
}

.courses-hero .hero-image .main-image {
  position: relative;
  z-index: 1;
  width: 124%;
  height: 100%;
  border-radius: 0;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  overflow: visible;
  box-shadow: none;
  animation: none;
}

.courses-hero .hero-image .main-image img {
  display: block;
  width: 124%;
  height: 100%;
  object-fit: cover;
  object-position: left top;
  transform: scale(1.12) translateX(-10%);
  transform-origin: left top;
  border-radius: 0;
  margin-right: -70px;
}


/* Floating Cards */

.courses-hero .hero-image .floating-cards {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  pointer-events: none;
}

.courses-hero .hero-image .floating-cards .course-card {
  position: absolute;
  background: var(--surface-color);
  border-radius: 15px;
  padding: 1rem 1.25rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 200px;
}

.courses-hero .hero-image .floating-cards .course-card:nth-child(1) {
  top: 20%;
  left: -10%;
}

.courses-hero .hero-image .floating-cards .course-card:nth-child(2) {
  top: 50%;
  right: -15%;
}

.courses-hero .hero-image .floating-cards .course-card:nth-child(3) {
  bottom: 20%;
  left: -5%;
}

.courses-hero .hero-image .floating-cards .course-card .card-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent-color), transparent 90%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.courses-hero .hero-image .floating-cards .course-card .card-icon i {
  font-size: 1.5rem;
  color: var(--accent-color);
}

.courses-hero .hero-image .floating-cards .course-card .card-content h6 {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--heading-color);
  line-height: 1.2;
}

.courses-hero .hero-image .floating-cards .course-card .card-content span {
  font-size: 0.8rem;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
}

@media (max-width: 992px) {
  .courses-hero .hero-image {
    min-height: 0;
    height: clamp(260px, 42vh, 360px);
    justify-content: center;
  }

  .courses-hero .hero-image .main-image {
    width: 100%;
    align-items: center;
    justify-content: center;
  }

  .courses-hero .hero-image .main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transform: scale(1.08);
    transform-origin: center top;
    margin-right: 0;
  }

  .courses-hero .hero-image .floating-cards .course-card {
    display: none;
  }
}


/* Background Shapes */

.courses-hero .hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  overflow: hidden;
}

.courses-hero .hero-background .bg-shapes {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.courses-hero .hero-background .bg-shapes .shape {
  position: absolute;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent-color), transparent 95%);
}

.courses-hero .hero-background .bg-shapes .shape.shape-1 {
  width: 300px;
  height: 300px;
  top: 10%;
  right: 10%;
  animation: float 6s ease-in-out infinite;
}

.courses-hero .hero-background .bg-shapes .shape.shape-2 {
  width: 200px;
  height: 200px;
  bottom: 20%;
  left: 5%;
  animation: float 8s ease-in-out infinite reverse;
}

.courses-hero .hero-background .bg-shapes .shape.shape-3 {
  width: 150px;
  height: 150px;
  top: 60%;
  right: 30%;
  animation: float 7s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

@media (max-width: 992px) {
  .courses-hero {
    --hero-height: max(620px, calc(100vh - 148px));
    --hero-height: max(620px, calc(100svh - 148px));
    min-height: var(--hero-height);
  }

  .courses-hero .hero-text {
    padding: 76px 0 26px;
    margin-bottom: 1.5rem;
  }

  .courses-hero .hero-image::before {
    width: 220px;
    height: 220px;
    right: -10%;
  }

  .courses-hero .hero-image::after {
    width: 150px;
    height: 150px;
    left: -8%;
  }
}

@media (max-width: 768px) {
  .courses-hero {
    --hero-height: max(700px, calc(100vh - 122px));
    --hero-height: max(700px, calc(100svh - 122px));
    min-height: var(--hero-height);
    text-align: center;
  }

  .courses-hero .hero-image {
    height: clamp(300px, 56vh, 430px);
    justify-content: center;
  }

  .courses-hero .hero-image .main-image {
    width: 100%;
    align-items: center;
    justify-content: center;
  }

  .courses-hero .hero-image .main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    transform: none;
    margin-right: 0;
  }

  .courses-hero .hero-stats {
    justify-content: center;
  }

  .courses-hero .hero-features {
    justify-content: center;
  }
}

@keyframes heroBlobDrift {
  0%, 100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-18px) scale(1.06);
  }
}

@keyframes heroImageLift {
  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-14px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .courses-hero .hero-image .main-image {
    animation: none !important;
  }
}
