/* ==========================================================================
   BizonTop Institute - Responsive rules
   ========================================================================== */

/* Large laptops / small desktops */
@media (max-width: 1180px) {
  .desktop-nav {
    gap: 14px;
  }

  .desktop-nav a {
    font-size: 0.83rem;
  }

  .header-wa {
    padding-inline: 14px;
  }

  .float-card--seo { left: -3%; }
  .float-card--ads { right: -3%; }
  .float-card--meta { left: -4%; }
  .float-card--ai { right: 0; }
}

/* Tablets and small laptops */
@media (max-width: 980px) {
  :root {
    --sp-10: 80px;
    --sp-9: 68px;
  }

  .desktop-nav {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .mobile-nav {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 0;
    overflow: hidden;
    background: var(--white);
    border-top: 1px solid transparent;
    box-shadow: 0 20px 40px rgba(33, 16, 68, 0.12);
    transition: max-height 0.35s ease, border-color 0.3s ease;
  }

  .mobile-nav.is-open {
    max-height: 620px;
    border-top-color: var(--line);
  }

  .mobile-nav nav {
    display: flex;
    flex-direction: column;
    padding: var(--sp-4) var(--sp-5) var(--sp-2);
  }

  .mobile-nav nav a {
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
    font-family: var(--font-head);
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--purple-dark);
  }

  .mobile-nav .btn {
    width: calc(100% - 48px);
    margin: var(--sp-4) var(--sp-5) var(--sp-5);
  }

  .hero-grid,
  .split,
  .cta-layout,
  .support-panel {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 460px;
    max-width: 620px;
    margin-inline: auto;
    width: 100%;
  }

  .hero-photo img {
    height: 430px;
  }

  .support-visual {
    min-height: auto;
  }

  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .session-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .roadmap {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: var(--sp-7);
  }

  .roadmap::before {
    display: none;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Phones */
@media (max-width: 680px) {
  :root {
    --sp-10: 64px;
    --sp-9: 56px;
    --sp-8: 44px;
    --sp-7: 36px;
    --sp-5: 20px;
    --container: 100%;
  }

  html {
    scroll-padding-top: 82px;
  }

  h1 {
    font-size: clamp(2.15rem, 9.5vw, 3rem);
  }

  h2 {
    font-size: clamp(1.8rem, 8vw, 2.4rem);
  }

  .header-inner {
    min-height: 70px;
    gap: 12px;
  }

  .brand img {
    width: 48px;
    height: 48px;
  }

  .header-wa {
    display: none;
  }

  .nav-toggle {
    width: 42px;
    height: 42px;
  }

  .hero {
    padding-block: 60px 96px;
  }

  .hero-visual {
    min-height: 380px;
  }

  .hero-photo {
    transform: none;
  }

  .hero-photo img {
    height: 360px;
    object-position: 72% 35%;
  }

  .float-card {
    padding: 9px 11px;
    font-size: 0.75rem;
    gap: 8px;
    border-radius: 12px;
  }

  .float-card small {
    display: none;
  }

  .float-icon {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
    border-radius: 9px;
  }

  .float-icon svg {
    width: 16px;
    height: 16px;
  }

  .float-card--seo { top: 5%; left: 0; }
  .float-card--ads { top: 38%; right: 0; }
  .float-card--meta { bottom: 18%; left: 0; }
  .float-card--ai { bottom: 2%; right: 0; }

  .hero-wave {
    height: 50px;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .grid-auto,
  .session-grid,
  .roadmap,
  .form-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .image-note {
    position: static;
    max-width: none;
    margin-top: -28px;
    margin-inline: 16px;
  }

  .support-visual,
  .support-content,
  .info-card {
    padding: var(--sp-5);
  }

  .section-head {
    margin-bottom: var(--sp-6);
  }

  .faq-question {
    padding: 16px;
    font-size: 0.92rem;
  }

  .faq-answer div {
    padding: 0 16px 18px;
  }

  .enquiry-form {
    padding: var(--sp-5);
    border-radius: var(--r-lg);
  }

  .audience-grid {
    grid-template-columns: 1fr;
  }

  .audience-grid > .audience-card,
  .audience-grid > .audience-card:nth-child(4),
  .audience-grid > .audience-card:nth-child(5) {
    grid-column: auto;
  }

  .footer-grid {
    gap: var(--sp-6);
  }

  .footer-bottom {
    justify-content: flex-start;
  }

  .wa-float {
    right: 16px;
    bottom: 16px;
    width: 54px;
    height: 54px;
  }

  .wa-float img {
    width: 28px;
    height: 28px;
  }

  .wa-tooltip {
    display: none;
  }

  .card-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .card-actions .btn,
  .card-actions .text-link {
    width: 100%;
    justify-content: center;
  }
}

/* Very small phones */
@media (max-width: 380px) {
  .hero-highlights {
    flex-direction: column;
    gap: 8px;
  }

  .float-card--ads,
  .float-card--ai {
    display: none;
  }

  .footer-brand > img {
    width: 76px;
    height: 76px;
  }
}

/* Inner page components */
@media (max-width: 980px) {
  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-aside {
    position: static;
  }

  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .breadcrumb {
    font-size: 0.76rem;
    gap: 6px;
  }

  .filter-btn {
    padding: 8px 14px;
    font-size: 0.8rem;
  }

  .cta-band__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-band__actions {
    width: 100%;
  }

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

  .related-grid {
    grid-template-columns: 1fr;
  }

  .article-hero-img {
    border-radius: var(--r-md);
  }

  .detail-panel {
    padding: var(--sp-5);
    border-radius: var(--r-lg);
  }
}
