/* Left Image Column */
.memory-image {
  flex: 0 0 auto;
  position: relative;
}

.top-left-floating {
  width: 20vw;
  height: auto;
  margin-top: -80%; /* Makes image half outside the section */
}

@media (max-width: 768px) {
  .top-left-floating {
    display: none;
  }
}

.coding-programs {
  padding: 20px 0px;
}

.coding-programs h2 {
  text-align: center;
  margin-top: 20px;
  font-weight: 700;
  color: var(--purple-color);
  font-size: 36px;
}
/* Tabs container */
.coding-programs .tabs {
  max-width: 800px;
  margin: 20px auto 40px auto;
  display: flex;
  border-radius: 6px;
  overflow: hidden;
  flex-wrap: nowrap;
}

.coding-programs .tab {
  font-size: large;
  flex: 1;
  text-align: center;
  padding: 12px 0;
  cursor: pointer;
  font-weight: 600;
  background-color: var(--purple-color);
  color: white;
  transition: background-color 0.3s, color 0.3s;
  user-select: none;
  border: none;
  border-bottom: solid 10px var(--purple-color);
}

.coding-programs .tab.active {
  color: white;
  border-bottom: solid 10px var(--orange-color);
}

/* Program content wrapper */
.program-wrapper {
  max-width: 1400px;
  margin: 0 auto 20px;
  padding: 0px 16px;
}

.program-title {
  text-align: center;
  font-weight: 600;
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.program-desc {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 40px;
  font-weight: 300;
  line-height: 1.5;
  color: var(--text-grey);
}

/* coding-program-cards container */
.coding-program-cards {
  display: flex;
  gap: 30px;
  flex-wrap: nowrap;
  justify-content: center;
}

/* Single coding-program-card style */
.coding-program-card {
  border-radius: 12px;
  flex: 1 1 300px;
  max-width: 300px;
  padding: 24px 20px 40px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--purple-color);
  /* background-color: var(--purple-color); */
  border: 1px solid var(--purple-color);
  box-shadow: 0 4px 10px rgba(128, 0, 128, 0.1);
}

.coding-program-card:hover {
  transform: translateY(-4px);
}

.coding-program-card h3 {
  margin-top: 0;
  margin-bottom: 6px;
  font-weight: 700;
}

.coding-program-card .duration {
  background-color: #f9f6fb;
  color: var(--purple-color);
  padding: 2px 8px;
  font-size: 0.85rem;
  border-radius: 12px;
  display: inline-block;
  margin-bottom: 16px;
}

/* Section headings inside coding-program-cards */
.coding-program-card-section-title {
  font-weight: 600;
  margin-top: 16px;
  margin-bottom: 8px;
}

/* Lists */
.coding-program-card ul {
  margin: 0 0 12px 16px;
  padding: 0;
  list-style: none;
}

.coding-program-card ul li {
  margin-bottom: 6px;
  position: relative;
  padding-left: 20px;
}

.coding-program-card ul li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: green;
  font-weight: bold;
}

/* Link styling */
a.detailed-link {
  display: inline-block;
  margin: auto;
  margin-bottom: 16px;
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--orange-color);
  cursor: pointer;
}
a.detailed-link:hover {
  color: white;
}

/* Icon bar */
.icon-bar {
  display: flex;
  justify-content: space-around;
  margin-top: 30px;
  gap: 8px;
}
.icon-bar .icon-item {
  text-align: center;
  font-size: 0.8rem;
  color: var(--purple-color);
  flex: 1;
}
.icon-bar img {
  width: 60px;
  height: 60px;
  margin-bottom: 4px;
  object-fit: contain;
}

/* Book button */
.btn-book {
  background-color: var(--purple-color);
  border: none;
  border-radius: 6px;
  color: white;
  padding: 12px 0;
  font-weight: 600;
  font-size: 1rem;
  margin-top: 20px;
  cursor: pointer;
  transition: background-color 0.3s;
  width: 100%;
}
.btn-book:hover {
  background-color: var(--orange-color);
}

/* Responsive */
@media (max-width: 1200px) {
  .coding-program-cards {
    display: grid;
    max-width: 700px;
    margin: auto;
    grid-template-columns: repeat(2, 1fr);
  }
  .coding-program-card {
    margin: auto;
    width: 300px;
    flex: 1 1 300px;
  }
}

@media (max-width: 800px) {
  .coding-program-cards {
    grid-template-columns: 1fr;
  }

  .coding-programs .tabs {
    max-width: 80%;
  }
}
@media (max-width: 520px) {
  .coding-programs .tab {
    padding: 12px 10px;
    font-size: medium;
  }
}
