/* Custom CSS Overrides */

/* ============================================================
   GLOBAL MOBILE / DEVICE SAFETY
   Applied site-wide via custom-overrides.css
   ============================================================ */

/* Horizontal overflow only on the document roots (avoid setting overflow-y on
   both html and body — can interact badly with nested overflow in some browsers). */
html,
body {
  overflow-x: hidden;
  max-width: 100%;
}

/* Home hero only (index): Webflow used padding-top for an old fixed header; with
   sticky/in-flow navbar it reads as a white strip above the slider. */
.page-wrapper .div-block-10 {
  padding-top: 0 !important;
}

/* Home hero: prefer vertical scroll gestures to reach the document */
.div-block-10 .main-slider.w-slider {
  touch-action: pan-y pinch-zoom;
}

/* Services (index): two columns sit flush; list scrolls beside the photo on desktop via flex +
   grid stretch. Stacked mobile keeps a viewport-capped list scroll. */
.service-section-area .service-area-content {
  max-height: none !important;
  overflow: visible !important;
  min-height: 0;
  padding-left: clamp(16px, 2.5vw, 36px);
  padding-right: clamp(16px, 2.5vw, 36px);
}

/* Stacked / narrow: scroll only the cards under the heading — taller viewport for list */
.service-section-area .service-list-wrapper {
  max-height: calc(100vh - 7.5rem);
  max-height: calc(100dvh - 7.5rem);
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  scrollbar-gutter: stable;
  padding: 14px 18px 20px;
  box-sizing: border-box;
}

@media (min-width: 992px) {
  /* Side-by-side columns that share one row cleanly; minmax(0,1fr) avoids overflow blowout */
  .service-section-area .service-wrap {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    column-gap: clamp(24px, 4vw, 60px);
  }

  .service-section-area .service-area-image .image-wrapper {
    border-radius: 8px;
    overflow: hidden;
  }

  .service-section-area .service-area-image .service-explaination-image {
    width: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
  }

  /* Heading stays fixed; card list scrolls in the right column beside the photo */
  .service-section-area .service-area-content {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: none;
    min-height: 0;
    padding-top: clamp(40px, 5vw, 100px);
    padding-bottom: clamp(40px, 5vw, 100px);
  }

  .service-section-area .service-area-content .block-header-primary {
    flex: 0 0 auto;
  }

  .service-section-area .service-list-wrapper {
    flex: 1 1 auto;
    min-height: 0;
    max-height: min(92vh, calc(100dvh - 3.5rem)) !important;
    margin-top: 0;
    padding: 16px 20px 22px;
  }
}

/* Remove Webflow 3D / translate3d look in services (flat layout, no preserve-3d) */
.service-section-area .service-explaination-image,
.service-section-area .photo-layer-top,
.service-section-area .service-count,
.service-section-area .service-logo-image,
.service-section-area .service-details {
  transform: none !important;
  transform-style: flat !important;
}

/* Fluid media */
img, video, svg, canvas, iframe {
  max-width: 100%;
  height: auto;
}

/* Scrollable tables on small screens */
.table-wrap, table {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  display: block;
}
/* But keep thead/tbody/tr as block too */
table thead, table tbody, table tr { display: table; width: 100%; }

/* Fluid form inputs */
input, select, textarea, button {
  max-width: 100%;
  box-sizing: border-box;
}

/* Touch-friendly minimum tap target */
.nav-link, .dropdown-link,
.cta-button, .submit-button, .enroll-submit-btn, .ja-submit {
  min-height: 44px;
}
/* Menu button tap target only when the hamburger is shown (≤991px).
   A global display:flex here was overriding navbar-footer.css and kept the
   icon visible beside the full desktop nav. */
@media (max-width: 991px) {
  /* Scope to shared navbar template only (see templates/navbar*.html). */
  #Navbar .menu-button {
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* Unlock Webflow animation-locked elements globally */
[data-w-id] {
  opacity: 1 !important;
  transform: none !important;
  -webkit-transform: none !important;
}

/* Hide Webflow floating back-to-top (shown via footer template) */
.bottom-to-top { display: none !important; }

/* Responsive font scaling for common headings */
@media (max-width: 991px) {
  h1 { font-size: clamp(24px, 5vw, 48px); }
  h2 { font-size: clamp(20px, 4vw, 36px); }
  h3 { font-size: clamp(18px, 3.5vw, 28px); }
}

@media (max-width: 767px) {
  /* Stack any two-column flex/grid layouts */
  .form-row,
  .ci-form-row {
    grid-template-columns: 1fr !important;
  }
  /* Reduce hero padding site-wide */
  .hero-section,
  .ci-hero,
  .enroll-hero,
  .lms-hero,
  .page-hero-section,
  .contact-hero-section {
    padding-top: 72px !important;
    padding-bottom: 48px !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  /* Prevent oversized images breaking layout */
  .about-page-image,
  .graph-image,
  .hero-image-two {
    width: 100% !important;
    height: auto !important;
  }
  /* Collapse any fixed-width wrappers */
  .enroll-form-body,
  .enroll-form-header,
  .ci-form-card,
  .contact-form-area {
    padding: 20px 16px !important;
  }
  /* Stack CTA sections */
  .smda-cta-inner,
  .ci-body,
  .contact-section-wrap {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }
}

@media (max-width: 480px) {
  /* Partner sliders: single item on very small screens */
  .partner-slider .partner-logos {
    flex-wrap: wrap;
    justify-content: center;
  }
  /* Job cards full width */
  .job-card, .employer-card, .about-service-item {
    width: 100% !important;
  }
}
/* ============================================================ */

/* Slider Improvements */
.slide-1.w-slider {
    height: 600px;
    background-color: rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.mask-3.w-slider-mask {
    height: 100%;
}

.slide-4.w-slide,
.slide-5.w-slide,
.slide-6.w-slide {
    background-size: cover;
    background-position: center;
    position: relative;
}

.slide-4.w-slide::before,
.slide-5.w-slide::before,
.slide-6.w-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.div-block-11 {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 20px;
}

/* Slider Navigation Improvements */
.w-slider-dot {
    width: 12px;
    height: 12px;
    margin: 0 8px;
    background-color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.w-slider-dot.w-active {
    background-color: #fff;
    transform: scale(1.2);
}

/* Header Centralization */
.section-header-primary {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    text-align: center;
}

.section-header-title {
    font-size: 2.5em;
    line-height: 1.4;
    margin-bottom: 20px;
}

.section-header-details {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Mobile Responsiveness */
@media screen and (max-width: 991px) {
    .slide-1.w-slider {
        height: 500px;
    }

    .section-header-title {
        font-size: 2em;
    }
}

@media screen and (max-width: 767px) {
    .slide-1.w-slider {
        height: 400px;
    }

    .section-header-primary {
        padding: 40px 15px;
    }

    .section-header-title {
        font-size: 1.8em;
    }

    .text-block-8 {
        font-size: 1.5em;
    }
}

@media screen and (max-width: 479px) {
    .slide-1.w-slider {
        height: 300px;
    }

    .section-header-title {
        font-size: 1.5em;
    }

    .text-block-8 {
        font-size: 1.2em;
    }

    .section-header-details {
        font-size: 0.9em;
    }
}

/* Service Section Improvements (flat — no hover lift / 3D motion) */
.service-section-area .service-single-item {
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.06);
    padding: 4px 6px;
}

.service-section-area .service-single-item:hover {
    transform: none;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 153, 172, 0.2);
}

.service-title {
    color: #000;
    transition: color 0.3s ease;
}

.service-single-item:hover .service-title {
    color: #0099ac;
}

/* Text Visibility Improvements */
.text-block-8,
.service-details-text,
.section-header-details {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.service-details-text {
    color: #666;
    line-height: 1.6;
}

/* Button Styling Improvements */
.servicdetails-button {
    transition: all 0.3s ease;
    border-radius: 4px;
    overflow: hidden;
}

.servicdetails-button:hover {
    background-color: rgba(0, 153, 172, 0.1);
}

.service-button-text {
    font-weight: 500;
    transition: color 0.3s ease;
}

.servicdetails-button:hover .service-button-text {
    color: #0099ac !important;
}

/* Navigation Menu Improvements */
.nav-menu {
    transition: all 0.3s ease;
}

.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: #0099ac;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 100%;
}

/* Dropdown Menu Improvements */
.dropdown-list {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 8px 0;
}

.dropdown-link {
    transition: all 0.3s ease;
    padding: 8px 16px;
}

.dropdown-link:hover {
    background-color: rgba(0, 153, 172, 0.1);
    color: #0099ac;
} 