/* ===== SHARED STYLES — IT Wall Capacitaciones ===== */

/* ---- Brand logo image ---- */
.brand__img {
  height: 42px;
  width: auto;
  display: block;
  object-fit: contain;
}

/* Footer logo: invert to white on dark background */
.brand__img--footer {
  height: 36px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
  margin-bottom: 0.5rem;
}

/* ===== ORANGE ACCENT OVERRIDES ===== */

/* Eyebrow pill → orange */
.eyebrow {
  background: #fff3e8 !important;
  color: #c2520c !important;
  border: 1px solid rgba(249, 115, 22, 0.18) !important;
}

/* Course badge → orange */
.course-badge {
  background: linear-gradient(135deg, #fff3e8, #ffebd6) !important;
  color: #c2520c !important;
  border: 1px solid rgba(249, 115, 22, 0.25) !important;
}

/* Program level badge → orange */
.program-level {
  background: #fff3e8 !important;
  color: #c2520c !important;
  border: 1px solid rgba(249, 115, 22, 0.18) !important;
}

/* Learn cards → orange top accent bar */
.learn-card {
  border-top: 3px solid #f97316 !important;
}

/* Section heading → orange underline bar */
.section-heading h2::after {
  content: '';
  display: block;
  width: 52px;
  height: 3px;
  background: linear-gradient(90deg, #f97316, #fb923c);
  border-radius: 2px;
  margin: 0.7rem auto 0;
}

/* Hamburger bars → navy, orange on active */
.nav-toggle span {
  background: #10233e;
}
.nav-toggle.is-active span {
  background: #f97316;
}

/* Mobile dropdown accent border */
.nav.is-open {
  border-top: 3px solid #f97316 !important;
}

/* ===== HAMBURGER BUTTON (hidden on desktop) ===== */

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: 1px solid #e2ebf5;
  cursor: pointer;
  padding: 9px;
  border-radius: 10px;
  transition: background 0.2s, border-color 0.2s;
  flex-shrink: 0;
}

.nav-toggle:hover {
  background: rgba(249, 115, 22, 0.06);
  border-color: rgba(249, 115, 22, 0.3);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease, background 0.2s;
  transform-origin: center;
}

/* X animation when open */
.nav-toggle.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.is-active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-toggle.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== MOBILE BREAKPOINT (≤ 768px) ===== */

@media (max-width: 768px) {

  /* Show hamburger */
  .nav-toggle {
    display: flex;
    order: -1; /* hamburger always on the LEFT */
  }

  /* Logo image smaller on mobile */
  .brand__img {
    height: 34px;
  }

  /* Topbar: hide on mobile */
  .topbar {
    display: none;
  }

  /* Header: compact row — hamburger | logo centered | (no actions) */
  .header__inner {
    position: relative;
    flex-wrap: nowrap !important;
    min-height: 64px;
    padding: 0 1rem !important;
    gap: 0;
  }

  /* Logo centered */
  .brand {
    flex: 1 !important;
    display: flex !important;
    justify-content: center !important;
    padding: 0 !important;
  }

  /* Hide desktop actions */
  .header__actions {
    display: none !important;
  }

  /* Hide nav by default on mobile */
  .nav {
    display: none !important;
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 3px solid #e2ebf5;
    padding: 0.5rem 1rem 1rem;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0 !important;
    width: 100% !important;
    order: unset !important;
    justify-content: flex-start !important;
    z-index: 200;
    box-shadow: 0 12px 32px rgba(11, 19, 43, 0.12);
  }

  /* Show nav when open */
  .nav.is-open {
    display: flex !important;
  }

  /* Nav links on mobile */
  .nav a {
    padding: 0.85rem 0.5rem;
    width: 100%;
    font-size: 1rem;
    border-bottom: 1px solid #f0f4f8;
    color: #10233e !important;
  }

  .nav a:last-child {
    border-bottom: none;
  }

  /* ---- Hero fixes ---- */
  .course-hero__grid {
    grid-template-columns: 1fr !important;
  }

  .course-hero h1 {
    font-size: clamp(2rem, 8vw, 2.8rem) !important;
    max-width: none !important;
  }

  .course-hero__lead {
    font-size: 1rem !important;
  }

  /* ---- Hero Card ---- */
  .course-hero__card {
    border-radius: 20px;
    padding: 1.2rem;
  }

  /* ---- CTA section ---- */
  .cta-section h2 {
    font-size: clamp(1.6rem, 6vw, 2.2rem) !important;
  }

  /* ---- Contact section ---- */
  .contact {
    grid-template-columns: 1fr !important;
  }

  .contact__content h2 {
    font-size: clamp(1.6rem, 6vw, 2rem) !important;
  }

  /* ---- Form ---- */
  .form-row {
    grid-template-columns: 1fr !important;
  }

  /* ---- Grids ---- */
  .learn-grid,
  .program-grid {
    grid-template-columns: 1fr !important;
  }

  /* ---- Section spacing ---- */
  .section {
    padding: 52px 0 !important;
  }

  .course-hero {
    padding: 48px 0 36px !important;
  }

  /* ---- Course hero actions ---- */
  .course-hero__actions {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.7rem !important;
  }

  .course-hero__actions .btn,
  .cta-section .btn {
    width: 100%;
    justify-content: center;
  }

  /* ---- Testimonials ---- */
  .testimonial-grid {
    grid-template-columns: 1fr !important;
  }

  .company__grid,
  .process__grid,
  .course-grid {
    grid-template-columns: 1fr !important;
  }

  /* ---- Hero index ---- */
  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__actions .btn {
    width: 100%;
    justify-content: center;
  }

  /* ---- Section heading bar stays centered ---- */
  .section-heading h2::after {
    margin: 0.7rem auto 0;
  }
}

/* ===== COURSE IMAGE SECTION ===== */

.course-img-section {
  padding: 2.5rem 0;
}

.course-img-banner {
  width: 82%;
  height: auto;
  border-radius: 20px;
  display: block;
  object-fit: contain;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.1);
  margin-inline: auto;
}

/* ---- Tablet (769px – 1100px): 2-column grids ---- */
@media (min-width: 769px) and (max-width: 1100px) {
  .learn-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .company__grid,
  .process__grid,
  .course-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
