@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

#TeachOnJozuna {
  background-color: var(--color2D2D);
  /* margin-top: 10%; */
}
#bgTeachOnJozuna {
  height: auto;
  max-height: none;
  overflow: visible;
  padding-bottom: 5%;
}
/* #bgTeachOnJozuna,
.bgTeachOnJozuna {
  overflow-x: hidden;
} */
.findCourseText {
  /* width: 50%; */
  text-align: center;
  color: var(--color2D2D);
  margin-bottom: 10px;
  font-size: 20px;
  font-weight: 300;
}

.cardContainer {
  flex: 0 0 30%;
  max-width: 30%;
  box-sizing: border-box;
  padding-left: 15px;
  padding-right: 15px;
  padding-bottom: 15px;
}

/* Margin bottom utility */
.mb-4 {
  margin-bottom: 1.5rem;
}

.custom-row {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem; /* mt-4 = 1.5rem (24px) */
  flex-wrap: wrap; /* Ensures responsive wrapping like Bootstrap row */
}

.custom-card .card-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 15px;
}
.custom-card h3 {
  font-size: 20px;
  margin: 10px 0;
  color: #333;
}
.custom-card p {
  font-size: 16px;
  color: #666;
  line-height: 1.5;
}

.howToBeginText {
  color: var(--white);
}

.custom-card {
  /* width: 100%; Make it fill the column space */
  max-width: 400px !important; /* Fixed visual size */
  background-color: var(--white);
  border-radius: 16px;
  padding: 14px;
  height: 295px;
  box-shadow: 2px 4px 20px rgba(0, 0, 0, 0.333);
  transition: transform 0.3s ease;
}

.howToBeginTabContainer {
  background-color: var(--white);
  height: auto;
  max-height: fit-content;
  justify-items: center;
  border-radius: 15px;
  width: 1285px;
  margin-left: -25%;
  padding: 30px;
  padding-bottom: 0px !important;
}

.howToBegintext {
  color: var(--white);
  margin-top: 40px;
  margin-bottom: 20px;
}

.howToBegintext span {
  color: var(--colorB800);
}

.tabs {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid rgba(0, 0, 0, 0.471); /* black track line */
  width: 1150px;
  margin-bottom: 30px;
}

.tab {
  cursor: pointer;
  padding: 10px 20px;
  font-weight: bold;
  color: var(--color7077);
  font-size: 16px;
  /* border-bottom: 3px solid transparent; */
  text-align: center;
  transition: all 0.3s ease;
}

.tab span {
  font-weight: normal;
  font-size: 18px;
  color: var(--color2D2D);
}

.tab.active span {
  color: var(--color2D2D);
  font-weight: 650;
  font-size: 18px;
}

.tab.active {
  color: var(--color7077);
  border-bottom: 3px solid var(--color7077); /* green underline */
}

/* Content layout: split in two columns */
.tab-content-wrapper {
  display: flex;
  flex-direction: column;
}

.tab-content {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  /* align-items: center; */
  /* padding: 30px; */
  background: var(--white);
  border-radius: 8px;
  /* box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); */
  height: 650px !important;
}

.content-left {
  flex: 1;
}

.content-right {
  flex: 1;
  text-align: right;
}

.content-right img {
  max-width: 100%;
  height: 600px;
  border-radius: 10px;
}

.hidden {
  display: none;
}

.tabHeaderText {
  color: var(--color7077);
  font-size: 26px;
  text-align: start;
  padding-bottom: 20px;
}

.parahTab {
  text-align: start;
  font-size: 16px;
  color: var(--color2D2D);
  line-height: 160%;
}

.howToBeginButton {
  background-color: var(--colorFFC8);
  height: 60px;
  width: 40%;
  border-radius: 10px;
  font-size: 18px;
  border: none;
  color: var(--color2D2D);
}
.howToBeginButton-mob {
  background-color: var(--colorFFC8);
  height: 50px;
  width: 30%;
  border-radius: 10px;
  font-size: 18px;
  border: none;
  color: var(--color2D2D);
}
.card-text {
  font-size: 16px;
  color: var(--color2D2D);
  font-weight: 400;
}

.secondBeginTabHeader {
  text-align: start;
  font-size: 26px;
  padding-bottom: 20px;
  padding-top: 10px;
}
/* 1. Hide mobile cards by default, and desktop tabs on mobile */

/* 2. On small screens: swap them */
@media screen and (max-width: 768px) {
  .tabs,
  .tab-content-wrapper {
    display: none !important;
  }
}

/* 3. Mobile card styling */
.begincr-card {
  background: var(--color7077);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  margin-left: 10px;
  margin-right: 10px;
  overflow: hidden;
}

.begincr-title {
  font-family: "Poppins", sans-serif;
  font-size: 20px;
  color: var(--color2D2D);
  font-weight: 600;
  margin: 16px;
}

.begincr-image {
  width: 100%;
  height: auto;
  display: block;
}

.begincr-body {
  padding: 16px;
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  font-weight: 300;
  color: var(--color2D2D);
}

.begincr-body p {
  margin-bottom: 12px;
}

.mobileBeginButton {
  background-color: var(--colorFFC8);
  align-items: center;
  margin: 25%;
  margin-bottom: 5%;
  margin-top: 5%;
  border: none;
  border-radius: 4px;
}
.accordion-heading {
  text-align: center;
  font-size: 22px;
  font-weight: bold;
  margin: 20px 0;
}

.accordion-item {
  border-bottom: 1px solid #ccc;
  margin-bottom: 10px;
}

.accordion-toggle {
  background-color: #fff;
  border-radius: 0px;
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 15px;
  text-align: left;
  border: none;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  outline: none;
  color: #6c6c6c;
}

.toggle-text {
  display: flex;
  flex-direction: column; /* Ensures line break between Step 3 and subtitle */
  text-align: left;
}

.step-title {
  font-weight: 600;
}

.step-subtitle {
  font-size: 14px;
  font-weight: 400;
  color: #333;
}

.arrow-icon {
  font-size: 18px;
  transition: transform 0.3s ease;
}

.accordion-toggle.active .arrow-icon {
  transform: rotate(180deg);
}
.accordion-toggle span {
  font-weight: 500;
  font-size: 18px;
  color: #2d2d2d;
}

.accordion-content {
  display: none;
  padding: 0 15px 15px;
  font-size: 14px;
  color: #333;
  background-color: #fff;
}

.accordion-content img.accordion-image {
  width: 100%;
  margin-top: 10px;
  border-radius: 8px;
}

.howToBeginButton-mob {
  width: 90%;
  margin: 20px auto;
  display: block;
  padding: 12px;
  background-color: #f8b400;
  border: none;
  border-radius: 5px;
  color: white;
  font-weight: 600;
  cursor: pointer;
}
.accordion-content h4 {
  color: #0b7077;
}
@media (max-width: 768px) {
  /* Hide desktop grid */
  #dynamicCardsContainer {
    display: none;
  }
  .custom-card {
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  /* Tab layout */
  .teach-tabs {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    background-color: transparent;
    margin-bottom: 16px;
  }

  .teach-tab {
    padding: 10px 12px;
    background: transparent;
    border: none;
    font-weight: 500;
    cursor: pointer;
    color: #333;
    background-color: #fff;
    white-space: nowrap;
    border-radius: 8px;
    box-shadow: 0px 0px 15px 0px #00000033;
    margin: 10px;
  }

  .teach-tab.active {
    background-color: #2f327d;
    color: #fff;
  }

  .teach-content {
    padding: 1rem;
    border-radius: 10px;
    background: transparent;
    text-align: center;
  }

  .custom-card img.card-icon {
    width: 100px !important;
    height: 100px !important;
    display: block;
    margin: 0 auto 0px auto; /* centers horizontally + some spacing below */
    align-items: center;
    justify-content: center;
    text-align: center;
  }
}
