/* ==========================================================================
   Forge Academy — Components
   ========================================================================== */

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1.5px solid transparent;
  transition: transform 0.15s var(--ease), background 0.15s var(--ease), border-color 0.15s var(--ease), color .15s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

/* exact hero button spec: 278 x 56, radius 50, padding 16 10, gap 10, border 1px */
.btn--hero {
  width: 278px;
  height: 56px;
  padding: 16px 10px;
  gap: 10px;
  border-radius: 50px;
  border: 1px solid;
  max-width: 100%;
}

@media (max-width: 360px) {
  .btn--hero {
    height: auto;
    min-height: 52px;
    padding: 14px 12px;
  }
}

.btn--primary {
  background: var(--color-teal-700);
  color: #fff;
  border-color: var(--color-teal-700);
}

.btn--primary:hover {
  background: var(--color-teal-900);
}

.btn--outline {
  background: transparent;
  border-color: var(--color-orange-600);
  color: var(--color-orange-600);
}

.btn--outline:hover {
  background: var(--color-orange-100);
}

.btn--outline-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.btn--outline-light:hover {
  border-color: #fff;
}

.btn--outline-teal {
  background: transparent;
  border-color: #06534F;
  color: #06534F;
}

.btn--outline-teal:hover {
  border-color: #b4b4b4;
  color: #b4b4b4;
}

.btn--accent {
  background: var(--color-orange-600);
  color: #fff;
  border-color: var(--color-orange-600);
}

.btn--accent:hover {
  background: var(--color-orange-700);
}

.btn--danger {
  background: transparent;
  border-color: #C0392B;
  color: #C0392B;
}

.btn--danger:hover {
  background: #FDE8E8;
}

/* Filled variant of .btn--danger, for the highest-stakes destructive actions
   (e.g. the admin "clear database" button) where an outline reads too mild. */
.btn--danger-solid {
  background: #C0392B;
  border-color: #C0392B;
  color: #fff;
}

.btn--danger-solid:hover {
  background: #A93226;
  border-color: #A93226;
}

.btn--danger-solid:disabled {
  background: #E8B4AE;
  border-color: #E8B4AE;
  color: #fff;
  cursor: not-allowed;
  transform: none;
}

/* ---- Logo ---- */
.logo {
  display: flex;
  align-items: center;
}

.logo__mark {
  flex-shrink: 0;
  object-fit: contain;
  height: 100px;
  width: auto;
  margin-block: -24px;
  /* pulls the box back so it overflows the pill instead of stretching it */

}

@media (max-width: 640px) {
  .logo__mark {
    height: 60px;
    margin-block: -14px;
  }
}

.logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.logo__text strong {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--color-orange-600);
  letter-spacing: 0.02em;
}

.logo__text span {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--color-teal-900);
  letter-spacing: 0.08em;
}


.footer-wordmark {
  display: inline-block;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #fff;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ---- Hero heading highlight ("Create Your Future") ---- */
.highlight {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  white-space: nowrap;
  background: var(--color-teal-50);
  color: var(--color-body);
  padding: 0.12em 0.5em;
  border-radius: 6px;
  margin: 0 0.35em;
  max-width: 100%;
}

.highlight__bar {
  position: absolute;
  top: -0.11em;
  bottom: -0.11em;
  width: 2px;
  background: var(--color-teal-700);
}

.highlight__bar--start {
  left: -0.39em;
}

.highlight__bar--end {
  right: -0.39em;
}

.highlight__bar::before {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-teal-700);
  left: 50%;
  transform: translateX(-50%);
}

/* one dot sits at the top, the other (inverted) sits at the bottom */
.highlight__bar--start::before {
  top: -3px;
}

.highlight__bar--end::before {
  bottom: -3px;
}

.highlight__text {
  display: inline;
}

.typing-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--color-teal-700);
  margin-left: 2px;
  vertical-align: -0.15em;
  animation: typing-blink 0.9s step-end infinite;
}

@keyframes typing-blink {

  0%,
  50% {
    opacity: 1;
  }

  51%,
  100% {
    opacity: 0;
  }
}

/* ---- Badge chips (hero floating cards) ---- */
.floating-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--color-surface);
  padding: 16px;
  border-radius: 12px;
  box-shadow: var(--shadow-float);
  font-size: 0.85rem;
  z-index: 3;
}

.floating-badge__icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-orange-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  color: var(--color-orange-600);
}

.floating-badge strong {
  display: block;
  color: var(--color-orange-600);
  font-size: 0.9rem;
}

.floating-badge span {
  color: var(--color-ink);
  font-size: 0.78rem;
}

/* positions relative to .hero__stage using the Figma frame:
   collage box = top 496 / left 285 / w 870.44 / h 425.11 */
.floating-badge--curriculum {
  top: -3.5%;
  left: 87.2%;
  width: 30.5%;
  min-width: 210px;
}

.floating-badge--duration {
  top: 76.7%;
  left: -11.4%;
  width: 18.3%;
  min-width: 150px;
}

@media (max-width: 640px) {
  .floating-badge {
    position: static;
    margin-top: var(--space-2);
    width: auto !important;
    min-width: 0 !important;
    padding: 12px 14px;
  }
}

/* ---- Skill cards ---- */
.skill-card {
  position: relative;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: var(--space-3);
  box-shadow: var(--shadow-card);
}

.skill-card--upcoming {
  opacity: 0.55;
}

.skill-card--upcoming .skill-card__link {
  pointer-events: none;
  cursor: default;
}

.skill-card__art {
  position: relative;
  height: 200px;
  border-radius: var(--radius-md);
  background: var(--color-surface);
  margin-bottom: var(--space-3);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 10px;
}

/* Software Engineering & Data Analytics — zoomed screenshot effect */
.skills-grid .skill-card:nth-child(2) .skill-card__art img,
.skills-grid .skill-card:nth-child(3) .skill-card__art img {
  object-fit: cover;
  transform: scale(1);
  object-position: center top;
}

.skill-card__art svg,
.skill-card__art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

/* floating rotated icon chip — nests inside the art's top-right corner */
.skill-card__chip {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  background: var(--color-ink);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: var(--shadow-float);
  transform: rotate(12deg);
}

.skill-card h3 {
  margin-bottom: 0.5rem;
}

.skill-card p {
  font-size: 0.92rem;
}

.skill-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: var(--space-2);
  font-weight: 600;
  color: var(--color-teal-700);
  font-size: 0.9rem;
}

.skill-card__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.skill-card__actions .skill-card__link {
  margin-top: var(--space-2);
}

.skill-card__link--btn {
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-base);
  cursor: pointer;
}

/* ---- Curriculum modal ---- */
.curriculum-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3);
}

/* Author rules always beat the UA stylesheet's [hidden]{display:none}, even
   with equal specificity — so `display: flex` above wins and the modal shows
   on load. This raises specificity to force it hidden when the attribute is
   set, and JS toggles the attribute (not a class) to open/close it. */
.curriculum-modal[hidden] {
  display: none;
}

.curriculum-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 26, 25, 0.55);
}

.curriculum-modal__dialog {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-float);
  width: min(560px, 100%);
  max-height: min(80vh, 720px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: curriculum-in 0.25s var(--ease);
}

@keyframes curriculum-in {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes curriculum-in-mobile {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.curriculum-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: var(--color-teal-50);
  color: var(--color-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background 0.15s var(--ease);
}

.curriculum-modal__close:hover {
  background: var(--color-teal-100);
}

.curriculum-modal__head {
  padding: var(--space-3) var(--space-4) var(--space-2) var(--space-3);
  border-bottom: 1px solid var(--color-line);
}

.curriculum-modal__head h2 {
  font-size: 1.3rem;
}

.curriculum-modal__head p {
  margin-top: 0.3rem;
  font-size: 0.85rem;
  color: var(--color-muted);
}

.curriculum-modal__body {
  padding: var(--space-3);
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.curriculum-week {
  display: flex;
  gap: var(--space-2);
  padding: 0.85rem;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
}

.curriculum-week__index {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-orange-100);
  color: var(--color-orange-600);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.curriculum-week__content h4 {
  font-size: 0.95rem;
  color: var(--color-ink);
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.curriculum-week__content ul {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.curriculum-week__content li {
  font-size: 0.85rem;
  color: var(--color-muted);
  padding-left: 1rem;
  position: relative;
}

.curriculum-week__content li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--color-teal-700);
}

.curriculum-modal__coming-soon {
  text-align: center;
  padding: var(--space-4) var(--space-2);
  color: var(--color-muted);
}

.curriculum-modal__footer {
  padding: var(--space-2) var(--space-3) var(--space-3);
  border-top: 1px solid var(--color-line);
}

.curriculum-modal__footer .btn {
  width: 100%;
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 600px) {
  .curriculum-modal {
    align-items: flex-end;
    padding: 0;
  }

  .curriculum-modal__dialog {
    width: 100%;
    max-height: 85vh;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    animation: curriculum-in-mobile 0.25s var(--ease);
  }
}

/* ---- Bento cards ---- */
.bento-card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

.bento-card--h-lg {
  min-height: 260px;
}

.bento-card--h-sm {
  min-height: 180px;
}

.bento-card h3 {
  margin-bottom: 0.4rem;
  position: relative;
  z-index: 1;
}

.bento-card p {
  font-size: 0.9rem;
  position: relative;
  z-index: 1;
}

.bento-card--mint {
  background: var(--color-teal-100);
}

.bento-card--dark {
  background: var(--color-teal-900);
  color: rgba(255, 255, 255, 0.85);
}

.bento-card--dark h3 {
  color: #fff;
}

.bento-card--orange {
  background: var(--color-orange-600);
  color: rgba(255, 255, 255, 0.9);
}

.bento-card--orange h3 {
  color: #fff;
}

.bento-card--mint-fade {
  background: linear-gradient(135deg, var(--color-teal-500), var(--color-teal-100));
  color: var(--color-ink);
}

.bento-card__avatars {
  display: flex;
  margin-bottom: var(--space-3);
  position: relative;
  z-index: 1;
}

.bento-card__avatars img {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  border: 3px solid var(--color-teal-100);
  margin-left: -17px;
  object-fit: cover;
}

.bento-card__avatars img:first-child {
  margin-left: 0;
}

/* single, consistent image treatment: rotated photo peeking top-right */
.bento-card__art {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 46%;
  max-width: 160px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 14px;
  border: 4px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-float);
  transform: rotate(9deg);
  z-index: 0;
}

/* ---- Process steps ---- */
.process-badge {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 2px solid var(--color-orange-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--color-bg);
  -webkit-text-stroke: 1.5px var(--color-orange-600);
  paint-order: stroke fill;
  background: var(--color-bg);
  margin-inline: auto;
  margin-bottom: var(--space-2);
}

.process-badge--filled {
  width: 120px;
  height: 120px;
  background: var(--color-orange-600);
  color: var(--color-orange-600);
  -webkit-text-stroke: 1.5px #fff;
  font-size: 2rem;
  border-color: var(--color-orange-600);
}

.process__step h3 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.process__step p {
  font-size: 0.88rem;
  max-width: 200px;
  margin-inline: auto;
}

/* ---- Testimonials ---- */
.testimonial-card {
  border-radius: var(--radius-lg);
  padding: var(--space-3);
  width: 340px;
  height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s var(--ease);
}

.testimonial-card--active {
  background: var(--color-teal-700);
  color: #fff;
  transform: scale(1.05);
  box-shadow: var(--shadow-float);
}

.testimonial-card--side {
  background: #fff;
  color: var(--color-muted);
  opacity: 0.6;
  font-size: 0.9rem;
}

.testimonial-card__quote {
  font-size: 0.95rem;
  line-height: 1.6;
  display: -webkit-box;
  line-clamp: 4;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.testimonial-card__person {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: var(--space-3);
}

.testimonial-card__person img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-card__person strong {
  display: block;
  font-size: 0.88rem;
}

.testimonial-card__person span {
  font-size: 0.78rem;
  opacity: 0.75;
}

.testimonial-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--color-line);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--color-ink);
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}

.testimonial-arrow:hover {
  background: var(--color-teal-700);
  color: #fff;
  border-color: var(--color-teal-700);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-line);
  border: none;
  padding: 0;
}

.dot[aria-current="true"] {
  background: var(--color-teal-700);
  width: 22px;
  border-radius: var(--radius-pill);
  transition: width .2s var(--ease);
}

/* ---- FAQ accordion ---- */
.faq-item {
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-item__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  background: none;
  border: none;
  text-align: left;
  padding: 1.15rem 1.4rem;
  font-weight: 600;
  color: var(--color-ink);
  font-size: 0.98rem;
}

.faq-item__icon {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--color-teal-100);
  color: var(--color-teal-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: transform 0.2s var(--ease);
}

.faq-item[data-open="true"] .faq-item__icon {
  transform: rotate(45deg);
}

.faq-item__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s var(--ease);
}

.faq-item__panel p {
  padding: 0 1.4rem 1.15rem;
  font-size: 0.92rem;
  color: var(--color-muted);
}