.education-and-resources-section {
  --panel-gap: 80px; /* edit here anytime */
}


.education-and-resources-section .courses {
  width: 100%;
  display: flex;
  color: #333f5b;
  font-family: 'PP Neue Montreal', sans-serif;
  box-sizing: border-box;
  gap: 32px;  
  height: 100%;
}

@media (max-width: 1024px) {
.education-and-resources-section .courses {
    flex-direction: column;
    padding: clamp(16px, 6.1vw, 24px);
  }
}

.education-and-resources-section .tabNavigation {
  width: 310px;
  padding: 80px 0 24px;
}

@media (max-width: 1023px) and (min-width: 768px) {
  .education-and-resources-section .tabNavigation {
    width: clamp(260px, 35vw, 340px);
    margin-left: clamp(24px, 6vw, 80px);
    padding-top: clamp(80px, 14vw, 160px);
  }
}
@media (max-width: 1024px) {
  .education-and-resources-section .tabNavigation { display: none; }
}

.education-and-resources-section .contentArea {
  flex: 1;
  min-width: 0;
  margin-right: clamp(16px, 6vw, 120px);
  gap: 64px;
}

@media (max-width: 1024px) {
  .education-and-resources-section .contentArea { margin-right: 0; }
}

@media (min-width: 1680px) {
  .education-and-resources-section .courses {
    max-width: 1680px;
    margin: 0 auto;
  }
}

/* Wrap we pin (already have .courses) */

.education-and-resources-section .contentArea {
  flex: 1;
  min-width: 0;
  /* margin-right: clamp(16px, 6vw, 120px); */
  display: flex;
  flex-direction: column;
}

.education-and-resources-section .contentViewport {
 height: 60vh
}
.education-and-resources-section .scroller {
  width: 100%;
  height: 100%;
  will-change: transform;
}

.education-and-resources-section .panel {
  display: flex;
  align-items: stretch;
  margin-bottom: var(--panel-gap, 160px);
}

.education-and-resources-section .ellipseDivblue {
  	width: 100%;
  	position: absolute;
  	filter: blur(331.73px);
  	border-radius: 50%;
  	background-color: #3495ff;
  	height: 426.3px;
}

.education-and-resources-section .ellipseDivOrange {
  	width: 100%;
  	position: relative;
  	filter: blur(331.73px);
  	border-radius: 50%;
  	background-color: #f8d194;
  	height: 426.3px;
}


@media (max-width: 1024px) {
  .education-and-resources-section .contentViewport {
    height: auto;
    overflow: hidden;
  }
  .education-and-resources-section .scroller { height: auto; }
  .education-and-resources-section .panel {
    display: none;
    min-height: auto !important;
  }
  .education-and-resources-section .panel[data-active="true"] {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  .education-and-resources-section .courseColorBand { display: none; }
  .education-and-resources-section .courseColorOrange { display: none; }

}

/* vertical decorative color band on the left - non-interactive and behind content */
.education-and-resources-section .courseColorBand {
  width: 130px;
  height: 380px;
  position: absolute;
  top: clamp(80px, 40vw, 480px);
  bottom: clamp(80px, -8vw, 50px);
  left: -120px;
  filter: blur(clamp(50px, 7vw, 80px));
  border-radius: 50%;
  background: radial-gradient(ellipse, #3495ff 0%, #3495ff 25%, rgba(52, 149, 255, 0.7) 50%, rgba(52, 149, 255, 0.3) 100%);
  opacity: 0.8;
  z-index: 0; /* Behind image */
  pointer-events: none;
}

.education-and-resources-section .courseColorOrange {
  width: clamp(100px, 22vw, 380px);
  height: 480px;
  position: absolute;
  top: 650px;
  left: -80px;
  filter: blur(clamp(50px, 10vw, 380px));
  border-radius: 50%;
  background: radial-gradient(ellipse, #f8d194 0%, #f8d194 30%, rgba(248, 209, 148, 0.8) 60%, rgba(248, 209, 148, 0.3) 100%);
  opacity: 0.9;
  z-index: 0; /* Behind image */
  pointer-events: none;
}



@media (max-width: 767px) {
  .education-and-resources-section .courseColorBand { display: none; }
  .education-and-resources-section .courseColorOrange { display: none; }
}


/* courses tab */


.courses-tab .tabStack {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.courses-tab .tabBlock {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.courses-tab .tab {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
}
.courses-tab .activeTab {
  color: #3495ff;
}
.courses-tab .inactiveTab {
  color: #333f5b;
  opacity: 0.35;
}
.courses-tab .tab:hover {
  opacity: 1;
}

/* hide icon by default */
.education-and-resources-section .tabIcon {
 display: none;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

/* show icon only on active desktop tab */
.education-and-resources-section .activeTab .tabIcon {
  display: flex;
  opacity: 1;
  transform: translateX(0);
}

.courses-tab .tabIcon {
  width: 20px;
  height: 20px;
}
.courses-tab .tabTitle {
  letter-spacing: -0.01em;
  line-height: 150%;
  font-weight: 500;
  font-size: 16px;
}

.courses-tab .tabDivider {
  height: 1px;
  border-top: 1px solid #e3e3e5;
}

/* Mobile variant */
.courses-tab.mobileTabContainer {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 450px;
  border-radius: 20px;
  background: #f2f2f3;
  border: 1px solid #e3e3e5;
  padding: 8px;
  margin: 0 auto;
}
.courses-tab .activeMobileTab {
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 16px;
  height: 48px;
  background: #3495ff;
  color: #fff;
}
.courses-tab .inactiveMobileTab {
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 16px;
  height: 48px;
  background: transparent;
  color: #333f5b;
}
.courses-tab .mobileTabText {
  letter-spacing: -0.02em;
  line-height: 150%;
  font-weight: 500;
  font-size: 15px;
  font-family: "Avenir Next", sans-serif;
}




@media (max-width: 1024px) {
 .courses-tab.mobileTabContainer{
  margin-bottom: 32px;
 }
 
}

@media (max-width: 768px) {
 .courses-tab.mobileTabContainer{
  margin-bottom: 20px;
  width: 100%;
 }
}

@media (max-width: 640px) {
 .courses-tab.mobileTabContainer{
  margin-bottom: 0px;
 }
 
}


/* courses tab */


/* single course */

.single-course-section .section {
  /* configurable values: change these to adjust panel height and spacing */
  --panel-height: 600px; /* height of the whole section (both panels) */
  --panel-gap: 32px; /* gap between left and right panels and between stacked sections */
  --panel-inner-gap: 48px; /* gap used inside the right panel */

  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  min-height: var(--panel-height);
  align-items: center;
}
/* mobile overrides consolidated further down */

.single-course-section .left {
  display: flex;
  justify-content: center;
  /* ensure the left column stretches to match section height */
  min-height: 100%;
}
.single-course-section .imageWrap {
  width: 100%;
  max-width: 600px;
}
.single-course-section .image {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 16px;
}

.single-course-section .right {
  display: flex;
  flex-direction: column;
  gap: var(--panel-inner-gap);
  /* ensure the right column stretches to match section height */
  min-height: 100%;
}

/* Add vertical spacing between consecutive sections when used one after another */
.single-course-section .section + .single-course-section  .section {
  margin-top: var(--panel-gap);
}

.single-course-section .heading {
  letter-spacing: -0.03em;
  line-height: 110%;
  text-transform: capitalize;
  font-weight: 500;
  margin: 0;
  font-size: 64px;
  font-family: "P22 Mackinac Pro", serif;
  color: #333f5b;
}

.single-course-section .desc {
  font-size: 20px;
  letter-spacing: -0.03em;
  line-height: 150%;
  font-weight: 500;
  font-family: "Avenir Next", sans-serif;
  color: #6d717b;
  margin: 0;
  max-width: 520px;
}

.single-course-section .actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.single-course-section .cta {
  border-radius: 24px;
  background: #3495ff;
  height: 64px;
  display: flex;
  align-items: center;
  padding: 24px 48px;
  gap: 10px;
  font-size: 16px;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  font-family: "PP Neue Montreal", sans-serif;
}
.single-course-section .cta:hover {
  background: #e97c4a;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(233, 124, 74, 0.25);
}
.single-course-section .ctaIcon {
  width: 20px;
  height: 20px;
}

@media (max-width: 1024px) {
  /* Consolidated mobile breakpoint: section layout, right column, headings, description and mobile visuals */
  .single-course-section .section {
    grid-template-columns: 1fr;
    /* on mobile we let the section height collapse naturally */
    min-height: auto;
    --panel-gap: 24px;
    --panel-inner-gap: 24px;
  }

  .single-course-section .right {
    gap: var(--panel-inner-gap);
    align-items: center;
    text-align: center;
  }

  .single-course-section .heading {
    font-size: clamp(32px, 8vw, 48px);
  }

  .single-course-section .desc {
    font-size: 16px;
  }


  .single-course-section .mobileImage {
    max-width: 100%;
    height: auto;
    object-fit: contain;
  }
}

/* single course */



.education-and-resources-section .mobileTabContainer {
  display: none;
}
@media (max-width: 1024px) {
  .education-and-resources-section .mobileTabContainer {
    order: -1;
    display: flex;
  }
}