/* WORKIZ mobile / tablet layout overrides */

html {
  overflow-x: clip;
}

body {
  overflow-x: clip;
  max-width: 100vw;
}

img,
video,
iframe,
svg {
  max-width: 100%;
  height: auto;
}

.marquee-section,
.marquee {
  overflow: hidden;
  max-width: 100vw;
}

/* Beat Bootstrap `img { height: auto }` so nav logo stays compact */
.workiz-nav-logo {
  display: block !important;
  width: auto !important;
  height: 40px !important;
  max-height: 40px !important;
  object-fit: contain !important;
}

@media (min-width: 640px) {
  .workiz-nav-logo {
    height: 48px !important;
    max-height: 48px !important;
  }
}

@media (min-width: 768px) {
  .workiz-nav-logo {
    height: 56px !important;
    max-height: 56px !important;
  }
}

@media (max-width: 379px) {
  .workiz-nav-wordmark {
    display: none !important;
  }
}

@media (min-width: 380px) {
  .workiz-nav-wordmark {
    display: inline !important;
  }
}

/* Course cards — all breakpoints: never clip the CTA */
.style-one .case-study-single-box {
  height: auto !important;
  overflow: visible !important;
}

.style-one .course-btn a {
  position: relative !important;
  opacity: 1 !important;
  transform: none !important;
  display: inline-flex !important;
  align-items: center;
  margin-top: 4px;
}

.style-one .case-study-single-box:hover .course-btn a {
  opacity: 1 !important;
  transform: none !important;
}

.style-one .case-study-single-box:hover .course-lesson,
.style-one .case-study-single-box:hover .course-student {
  opacity: 1 !important;
}

@media (max-width: 991px) {
  /* Hero: stop forcing rigid desktop viewport height */
  section.hero_area.style-one {
    height: auto !important;
    min-height: 100svh !important;
    max-height: none !important;
    padding: 108px 0 56px !important;
  }

  section.hero_area.style-one .hero_content {
    padding-top: 12px !important;
  }

  section.hero_area.style-one .hero_content h1 {
    font-size: clamp(2rem, 8vw, 2.75rem) !important;
    line-height: 1.15 !important;
  }

  section.hero_area.style-one .hero_content h5 {
    font-size: 12px !important;
    padding: 8px 12px !important;
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    white-space: normal;
    line-height: 1.35;
  }

  /* Prevent hero decorative/rating blocks from colliding with copy */
  section.hero_area.style-one .hero-rating-box {
    margin-top: 24px;
    position: relative !important;
  }

  section.hero_area.style-one .hero-tagline {
    margin-top: 16px !important;
    font-size: 14px !important;
  }

  section.hero_area.style-one .hero-rating-box.workiz-hero-stats {
    margin-top: 24px !important;
    gap: 20px 28px !important;
  }

  section.hero_area.style-one .workiz-hero-stat strong {
    font-size: 28px;
  }

  section.hero_area.style-one .workiz-hero-stat > span {
    font-size: 22px;
  }

  section.hero_area.style-one .hero-button {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
  }

  section.hero_area.style-one .hero-btn,
  section.hero_area.style-one .hero-course-btn {
    width: 100%;
  }

  section.hero_area.style-one .hero-btn a,
  section.hero_area.style-one .hero-course-btn a {
    display: inline-flex !important;
    width: 100% !important;
    justify-content: center !important;
    align-items: center !important;
    box-sizing: border-box;
  }

  section.hero_area.style-one .hero-thumb-wrapper {
    margin-top: 36px;
  }

  section.hero_area.style-one .workiz-hero-media .hero-thumb img {
    width: min(100%, 420px);
    margin-inline: auto;
    display: block;
  }

  section.hero_area.style-one .hero-shape1,
  section.hero_area.style-one .hero-arrow-shape,
  section.hero_area.style-one .hero-dot-shape,
  section.hero_area.style-one .hero-shape3 {
    display: none !important;
  }

  /* Titles */
  .section_title h1 {
    font-size: clamp(1.55rem, 6.2vw, 2.1rem) !important;
    line-height: 1.25 !important;
  }

  section.about-area.style-one {
    padding-bottom: 48px !important;
  }

  .course-design-offer-area.style-one .row {
    display: block;
  }

  .course-design-offer-area.style-one .row > [class*="col-"] {
    display: block;
  }

  .course-design-offer-area.style-one .course-design-thumb {
    height: auto;
    min-height: 0;
    margin-bottom: 20px;
  }

  .course-design-offer-area.style-one .course-design-thumb img {
    height: auto !important;
    object-fit: cover;
  }

  .course-design-offer-area.style-one .single-course-offer-box {
    height: auto;
    min-height: 0;
    padding: 36px 24px 44px 24px !important;
  }

  .course-design-offer-area.style-one .course-offer-content {
    max-width: 100%;
  }

  .section-title-space {
    margin-bottom: 28px !important;
  }

  /* Decorative underline bars overflow on phones */
  .section-sub-title h6::after,
  section.feature-area.style-one .section-sub-title h6::after,
  .case-study-area.style-one .section-sub-title h6::after,
  .team-area.style-one .section-sub-title h6::after,
  .testimonial-area.style-one .section-sub-title h6::after,
  .blog-area.style-one .section-sub-title h6::after,
  .why-choose-area.style-one .section-sub-title h6::after,
  .faq-area.style-one .section-sub-title h6::after {
    width: min(28vw, 120px) !important;
    max-width: 120px !important;
  }

  /* Cards / columns — stacked flush on mobile */
  .feature-area.style-one .row[data-reveal-stagger] > [class*="col-"],
  .feature-area.style-one .row > [class*="col-"] {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  .feature-area.style-one .row[data-reveal-stagger],
  .feature-area.style-one .row {
    --bs-gutter-y: 0 !important;
    row-gap: 0 !important;
  }

  .feature-area.style-one .style-one .single-feature-box,
  .feature-area.style-one .single-feature-box,
  .style-one .single-feature-box,
  .style-two .single-feature-box {
    margin-bottom: 0 !important;
    margin-top: 0 !important;
    padding: 28px 20px !important;
    overflow: hidden;
    min-width: 0;
    border-radius: 0 !important;
  }

  .feature-area.style-one .row[data-reveal-stagger] > [class*="col-"]:first-child .single-feature-box,
  .feature-area.style-one .row > [class*="col-"]:first-child .single-feature-box {
    border-radius: 20px 20px 0 0 !important;
  }

  .feature-area.style-one .row[data-reveal-stagger] > [class*="col-"]:last-child .single-feature-box,
  .feature-area.style-one .row > [class*="col-"]:last-child .single-feature-box {
    border-radius: 0 0 20px 20px !important;
  }

  /* Hover wipe overlays break on touch — disable on tablet/phone */
  .style-one .single-feature-box .educate-hover-box {
    display: none !important;
  }

  .feature-area.style-one .single-feature-box:hover .feature-title,
  .feature-area.style-one .single-feature-box:hover .feature-desc,
  .style-one .single-feature-box:hover h4.feature-title,
  .style-one .single-feature-box:hover p.feature-desc {
    color: inherit !important;
  }

  .feature-area.style-one .single-feature-box:hover .feature-title,
  .style-one .single-feature-box:hover h4.feature-title {
    color: #102846 !important;
  }

  .feature-area.style-one .single-feature-box:hover .feature-desc,
  .style-one .single-feature-box:hover p.feature-desc {
    color: #3f4a57 !important;
  }

  .feature-area.style-one .single-feature-box:hover .feature-icon {
    filter: none !important;
    animation: none !important;
  }

  .style-one h4.feature-title {
    font-size: clamp(1.15rem, 4.5vw, 1.35rem) !important;
    line-height: 1.3 !important;
  }

  .style-one p.feature-desc {
    font-size: 15px !important;
    line-height: 1.6 !important;
  }

  .case-study-single-box,
  .single-team-box,
  .single-blog-box,
  .single-pricing-box {
    margin-bottom: 20px;
  }

  /* Course cards: fixed height + overflow was clipping Enroll button */
  .style-one .case-study-single-box {
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
    padding-bottom: 28px !important;
  }

  .style-one .course-btn {
    margin-top: 18px;
  }

  .style-one .course-btn a {
    position: relative !important;
    opacity: 1 !important;
    transform: none !important;
    display: inline-flex !important;
    align-items: center;
  }

  .style-one .case-study-single-box:hover .course-btn a {
    opacity: 1 !important;
    transform: none !important;
  }

  .style-one .case-study-single-box:hover .course-lesson,
  .style-one .case-study-single-box:hover .course-student {
    opacity: 1 !important;
  }

  /* Floating shapes that spill off-screen */
  .feature-shape1,
  .feature-shape2,
  .about-shape5,
  .about-shape31,
  .choose-shape1,
  .choose-shape2,
  .team-shape1,
  .case-shape1,
  .call-to-shape31 {
    display: none !important;
  }

  /* Breadcrumb */
  .breadcumb-area,
  .breadcumb-area.workiz-breadcrumb {
    padding: 108px 16px 44px !important;
  }

  .breadcumb-area .breadcumb-title h4 {
    font-size: clamp(1.75rem, 7vw, 2.25rem) !important;
    line-height: 1.2 !important;
  }

  /* About */
  .about-thumb-wrapper,
  .about-thumb,
  .about-thumb img,
  .style-three .about-thumb img {
    width: 100% !important;
    max-width: 100% !important;
  }

  .about-education-box {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    margin-top: 20px;
    max-width: 100%;
  }

  /* Why choose */
  .choose-item-menu ul li {
    font-size: 15px;
  }

  /* Footer newsletter */
  .footer-area .row.subscribe {
    margin-left: 12px !important;
    margin-right: 12px !important;
    padding: 22px 16px !important;
  }

  .footer-area .row.subscribe > [class*="col-"] {
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
    margin-bottom: 14px;
  }

  .subscribe-box {
    width: 100% !important;
    max-width: 100% !important;
  }

  .footer-widget-content {
    margin-bottom: 28px;
  }

  /* Pricing / contact forms */
  .pricing-area .form-control,
  .course-sign-form-area .form-control,
  .sign-form-wrapper .form-control {
    width: 100%;
    max-width: 100%;
  }

  .workiz-contact.inner_section {
    padding: 56px 0 64px !important;
  }

  .workiz-contact__row {
    --bs-gutter-y: 0 !important;
    row-gap: 0 !important;
  }

  .workiz-contact__row > [class*="col-"] + [class*="col-"] {
    margin-top: 28px !important;
  }

  .workiz-contact.inner_section .contact_main_info,
  .workiz-contact__info {
    margin-bottom: 0 !important;
    min-height: 0 !important;
    height: auto !important;
  }

  .workiz-contact.inner_section .contact-form-box.style_two,
  .workiz-contact__form {
    margin-top: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 28px 20px 32px !important;
  }

  .workiz-contact.inner_section .contact_main_info {
    padding: 24px 20px !important;
  }

  .workiz-contact.inner_section .contact_main_info .call-do-social_icon i {
    height: 54px !important;
    width: 54px !important;
    line-height: 54px !important;
    font-size: 18px;
  }

  .workiz-contact.inner_section .contact_main_info .call_info h3 {
    font-size: 17px !important;
    line-height: 1.35 !important;
  }

  .workiz-contact__map {
    padding-bottom: 48px;
  }

  .workiz-contact__map-head {
    padding: 22px 18px 16px;
  }

  .workiz-contact__map-frame {
    height: 300px;
    margin: 0 18px 18px;
    width: calc(100% - 36px);
    border-radius: 14px;
  }

  .workiz-contact__map-frame .maplibregl-map,
  .workiz-contact__map-frame > div {
    border-radius: 14px;
  }

  .single-pricing-box {
    height: auto !important;
  }

  /* Back to top */
  .workiz-scroll-top {
    right: max(12px, env(safe-area-inset-right));
    left: auto;
    bottom: max(16px, env(safe-area-inset-bottom));
    width: 46px;
    height: 46px;
  }

  /* Container breathing room */
  .container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}

@media (max-width: 575px) {
  section.hero_area.style-one {
    padding: 96px 0 48px !important;
  }

  section.hero_area.style-one .hero-rating-box {
    flex-wrap: wrap;
    gap: 12px;
  }

  .style-one .single-feature-box {
    padding: 28px 20px !important;
  }

  .hero-autor-box {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    margin-top: 16px;
    display: inline-flex;
  }

  .workiz-loader__logo {
    height: clamp(88px, 22vw, 120px);
  }

  .workiz-loader__mark {
    font-size: clamp(36px, 11vw, 56px);
    letter-spacing: 0.14em;
  }

  .workiz-loader__tag {
    font-size: clamp(16px, 4.2vw, 20px);
  }

  /* Mobile nav denser */
  .workiz-rnav .fixed,
  body > .fixed {
    padding-top: 6px !important;
  }

  .workiz-courses-page {
    padding: 40px 0 56px;
  }

  .workiz-courses__toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .workiz-courses__search {
    max-width: none;
  }

  .workiz-courses__filters {
    width: 100%;
  }

  .workiz-courses__filter {
    flex: 1 1 auto;
    min-height: 40px;
  }

  .workiz-courses__cta {
    padding: 22px 18px;
  }

  .workiz-courses__cta-btn {
    width: 100%;
    justify-content: center;
  }

  .workiz-course-card__body {
    padding: 18px 18px 16px;
    gap: 14px;
  }

  .workiz-course-card__title {
    font-size: 19px;
    min-height: 0;
  }

  .workiz-course-card__price {
    font-size: 20px;
  }

  .workiz-course-detail {
    padding: 32px 0 64px;
  }

  .workiz-course-detail__main {
    padding-right: 0;
    margin-bottom: 28px;
  }

  .workiz-course-detail__title {
    font-size: 30px;
  }

  .workiz-course-detail__lede {
    font-size: 16px;
  }

  .workiz-course-detail__hero-media {
    border-radius: 16px;
    margin-bottom: 28px;
  }

  .workiz-course-detail__block {
    margin-bottom: 28px;
    padding-bottom: 28px;
  }

  .workiz-course-detail__block h2 {
    font-size: 21px;
  }

  .workiz-course-detail__aside {
    position: static;
  }

  .workiz-course-detail__price {
    font-size: 28px;
  }

  .workiz-about-theme__media .about-thumb img {
    min-height: 280px;
  }
}

/* —— Cart, checkout, buy actions, help, pricing —— */
@media (max-width: 991px) {
  .workiz-cart {
    padding: 28px 0 56px;
  }

  .workiz-cart__intro {
    margin-bottom: 24px;
  }

  .workiz-cart__layout {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }

  .workiz-cart__summary {
    position: static;
  }

  .workiz-cart__auth-tabs {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .workiz-cart__auth-tabs button {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .workiz-cart__checkout,
  .workiz-cart__primary {
    width: 100%;
  }

  .workiz-buy-actions {
    width: 100%;
  }

  /* Pricing section: beat Bootstrap column resets */
  .workiz-pricing-section .grid {
    display: grid !important;
    width: 100%;
  }

  .workiz-pricing-section .container {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .workiz-cart__title {
    font-size: 28px !important;
    line-height: 1.15;
  }

  .workiz-cart__lede {
    font-size: 15px;
  }

  .workiz-cart__empty {
    justify-items: center;
    padding: 28px 18px;
    text-align: center;
  }

  .workiz-cart__empty h2 {
    font-size: 20px;
  }

  .workiz-cart__row {
    grid-template-columns: 72px minmax(0, 1fr) !important;
    gap: 12px;
    padding: 14px;
    align-items: start;
  }

  .workiz-cart__thumb img {
    height: 64px;
  }

  .workiz-cart__copy h2 {
    font-size: 16px !important;
    line-height: 1.3;
  }

  .workiz-cart__copy p {
    font-size: 13px;
    margin-bottom: 8px;
  }

  .workiz-cart__price {
    grid-column: 2;
    justify-self: start;
    margin-top: 2px;
    font-size: 16px;
  }

  .workiz-cart__summary {
    padding: 18px 16px;
  }

  .workiz-cart__summary h2 {
    font-size: 18px;
  }

  .workiz-cart__auth-form input {
    min-height: 44px;
    font-size: 16px; /* avoid iOS zoom */
  }

  .workiz-cart__continue,
  .workiz-cart__company {
    display: block;
    text-align: center;
  }

  .workiz-cart__auth-alt {
    text-align: center;
  }

  /* Nav cart badge stays readable */
  .workiz-cart-nav {
    min-width: 40px;
    min-height: 40px;
  }

  /* Help widget — clear of scroll-top on the right */
  .workiz-help {
    left: auto !important;
    right: max(12px, env(safe-area-inset-right)) !important;
    bottom: max(84px, calc(env(safe-area-inset-bottom) + 68px)) !important;
    max-width: calc(100vw - 88px);
  }

  .workiz-help__panel {
    width: min(300px, calc(100vw - 28px)) !important;
    padding: 20px !important;
  }

  .workiz-help__pill {
    padding: 10px 14px !important;
    min-height: 48px;
  }

  .scroll-up {
    right: max(12px, env(safe-area-inset-right)) !important;
    bottom: max(16px, env(safe-area-inset-bottom)) !important;
  }
}

@media (max-width: 480px) {
  .workiz-help__pill-label {
    display: none;
  }

  .workiz-help__pill {
    width: 56px !important;
    height: 56px !important;
    padding: 6px !important;
    border-radius: 999px !important;
    justify-content: center;
  }

  .workiz-help__panel {
    border-radius: 24px !important;
  }

  .workiz-course-detail__title {
    font-size: 26px !important;
  }

  .workiz-cart__row {
    gap: 10px;
    padding: 12px;
  }
}

/* —— Marketing pages: tablet / mobile hardening —— */
@media (max-width: 1199px) {
  .workiz-objective__title,
  .workiz-faq__title {
    white-space: normal !important;
    overflow-wrap: anywhere;
  }

  .workiz-portfolio-card__body h3 {
    white-space: normal !important;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .workiz-objective-pillars,
  .workiz-company-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workiz-objective-pillars > :last-child,
  .workiz-company-grid > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

@media (max-width: 575px) {
  .workiz-legal__title,
  .workiz-faq__title,
  .workiz-objective__title,
  .workiz-about-intro__copy .section_title h1 {
    font-size: clamp(1.45rem, 7vw, 1.9rem) !important;
    line-height: 1.2 !important;
    white-space: normal !important;
  }

  .workiz-about-cta,
  .workiz-faq-cta__secondary,
  .workiz-faq-cta__actions .workiz-about-cta {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
  }

  .workiz-legal__contact-list a,
  .workiz-legal__contact-list strong {
    overflow-wrap: anywhere;
  }

  .workiz-faq__question-text {
    font-size: 15px;
  }

  .workiz-portfolio-card__body,
  .workiz-company-card,
  .workiz-pillar-card {
    padding-left: 18px;
    padding-right: 18px;
  }

  /* Newsletter on white card — keep navy body text readable */
  .workiz-footer__subscribe .workiz-newsletter-lede,
  .footer-area .row.subscribe .workiz-newsletter-lede {
    color: #3f4a57 !important;
    opacity: 1 !important;
  }

  .workiz-footer__subscribe {
    padding: 22px 18px !important;
  }

  .workiz-footer__subscribe-form {
    max-width: 100%;
    width: 100%;
  }

  /* Room for help pill + back-to-top so they don't cover copy */
  body {
    padding-bottom: 88px;
  }

  .prgoress_indicator {
    right: 14px !important;
    bottom: 78px !important;
  }

  .workiz-help {
    bottom: max(14px, env(safe-area-inset-bottom)) !important;
  }

  /* Generic card/text safety on phones */
  .workiz-quote-card,
  .workiz-pillar-card,
  .workiz-company-card,
  .workiz-portfolio-card,
  .workiz-faq__item,
  .workiz-legal__section,
  .single-pricing-box {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .section_title h1,
  .workiz-about-intro-section__title,
  .workiz-testimonials__title {
    white-space: normal !important;
    text-wrap: balance;
  }
}

/* Mobile hero: show a compact image instead of an empty full-height block,
   and give "Company seats" an outlined pill (the theme's fixed 125px underline drifts when centred). */
@media (max-width: 991px) {
  section.hero_area.style-one {
    min-height: 0 !important;
  }

  section.hero_area.style-one .workiz-hero-media {
    padding-top: 0 !important;
    margin-top: 24px !important;
  }

  section.hero_area.style-one .workiz-hero-media .hero-thumb {
    display: block !important;
  }

  section.hero_area.style-one .workiz-hero-media .hero-thumb img {
    width: min(100%, 320px) !important;
    height: auto !important;
  }

  section.hero_area.style-one .hero-course-btn a {
    padding: 14px 24px !important;
    border: 1px solid rgba(16, 40, 70, 0.35);
    border-radius: 999px;
  }

  section.hero_area.style-one .hero-course-btn a::before {
    display: none;
  }
}
