/**
 * SAET public site — mobile / tablet overrides
 * Loaded after responsive.css so these rules win.
 */

/* ── Base overflow safety ── */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

img, video, iframe, svg {
  max-width: 100%;
  height: auto;
}

/* ── Tablet & below (≤991px) ── */
@media screen and (max-width: 991px) {
  .ft-header-section.header-style-one {
    position: relative;
    z-index: 999;
  }

  .ft-header-section.header-style-one .ft-header-content {
    padding: 12px 0 !important;
    padding-left: 0 !important;
    min-height: 72px;
    background-color: #fff;
  }

  .ft-header-section.header-style-one.sticky-on .ft-header-content,
  .sticky-on.ft-header-section.header-style-one .ft-header-content {
    padding: 10px 0 !important;
    padding-left: 0 !important;
  }

  .ft-header-section.header-style-one .ft-header-top {
    display: none !important;
  }

  .ft-main-navigation {
    display: none !important;
  }

  .ft-header-section.header-style-one .container-fluid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-left: 16px !important;
    padding-right: 16px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100%;
    max-width: 100%;
    position: relative;
  }

  .ft-header-section.header-style-one .ft-brand-logo {
    position: static !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    width: auto !important;
    max-width: calc(100% - 170px);
    margin: 0 !important;
    padding: 4px 8px 4px 4px !important;
    float: none !important;
    flex: 1 1 auto;
    min-width: 0;
  }

  .ft-header-section.header-style-one .ft-brand-logo a {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding: 0;
  }

  .ft-header-section.header-style-one .ft-brand-logo a img {
    width: auto !important;
    max-width: 100%;
    max-height: 48px;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    object-fit: contain;
    object-position: left center;
  }

  .ft-header-section.header-style-one .ft-header-menu-top-cta {
    width: auto;
    margin-left: auto;
    flex: 0 0 auto;
  }

  .ft-header-section.header-style-one .ft-header-main-menu {
    padding: 0 !important;
    background: transparent !important;
    gap: 10px;
  }

  .ft-header-section.header-style-one .ft-header-cta-btn {
    margin: 0 44px 0 0 !important;
  }

  .ft-header-section.header-style-one .ft-header-cta-btn a {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    height: 40px !important;
    width: auto !important;
    min-width: 0;
    padding: 0 14px !important;
    font-size: 13px !important;
    white-space: nowrap;
    border-radius: 6px;
  }

  .mobile_menu {
    position: static;
  }

  .mobile_menu_button {
    display: flex !important;
    align-items: center;
    justify-content: center;
    position: absolute !important;
    top: 50% !important;
    right: 12px !important;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    margin: 0;
    color: #1e3a8a !important;
    font-size: 22px;
    line-height: 1;
    z-index: 20;
  }

  .sticky-on .mobile_menu_button,
  .ft-header-section.sticky-on.header-style-one .mobile_menu_button {
    top: 50% !important;
    color: #1e3a8a !important;
  }

  /* Drawer polish */
  .mobile_menu_content {
    width: min(320px, 86vw) !important;
    padding: 24px 18px 28px !important;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .mobile_menu .m-brand-logo {
    margin-bottom: 18px;
    padding-right: 36px;
  }

  .mobile_menu .m-brand-logo img {
    max-width: 180px;
    max-height: 56px;
    width: auto;
    height: auto;
  }

  .mobile_menu .mobile-main-navigation .navbar-nav > li > a {
    padding: 12px 8px;
    font-size: 15px;
    font-weight: 600;
  }

  .mobile_menu .mobile-main-navigation .dropdown-menu {
    padding-left: 10px;
  }

  .mobile-apply-item {
    margin-top: 10px;
  }

  .mobile-apply-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px 16px !important;
    border-radius: 8px;
    background: #2563eb !important;
    color: #fff !important;
    font-weight: 700 !important;
    text-align: center;
  }

  .mobile-contact-meta {
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .mobile-contact-meta a {
    color: #475569;
    font-size: 13px;
    word-break: break-word;
  }

  .mobile-contact-meta i {
    margin-right: 6px;
    color: #2563eb;
  }

  /* Hero */
  .hero-slider {
    height: clamp(280px, 52vw, 420px) !important;
    min-height: 280px;
  }

  .hero-slider .slide-inner {
    background-size: cover !important;
    background-position: center right !important;
  }

  .hero-slider .slide-inner:after {
    height: 100% !important;
  }

  .bnnr-content {
    margin-top: 0 !important;
    padding: 24px 0 !important;
    max-width: 100%;
  }

  .hero-style .slide-title h2 {
    font-size: clamp(22px, 5.5vw, 36px) !important;
    line-height: 1.25 !important;
    margin-bottom: 10px !important;
  }

  .hero-style .slide-text p {
    font-size: 14px !important;
    line-height: 1.5 !important;
    max-width: 36ch;
  }

  .hero-shape2-1,
  .hero-shape.shape3 {
    display: none;
  }

  /* Sections */
  .ft-about-section-2,
  .ft-about-section,
  section[class*="ft-"] {
    overflow-x: hidden;
  }

  .ft-about-img-2-wrapper {
    margin-top: 24px;
  }

  .ft-about-img-2 img {
    width: 100%;
    height: auto;
  }

  .ft-section-title-2 h2,
  .ft-section-title h2 {
    font-size: clamp(22px, 5vw, 34px) !important;
    line-height: 1.3 !important;
  }

  .tab-buttons {
    flex-wrap: wrap;
    gap: 8px;
  }

  .tab-buttons .tab-btn {
    flex: 1 1 auto;
    min-width: 140px;
  }

  .news-box,
  .calendar-box,
  .blog-box,
  .ft-blog-news-feed-innerbox {
    margin-bottom: 20px;
  }

  /* Forms / modals */
  .modal-dialog {
    margin: 0.75rem;
    max-width: calc(100% - 1.5rem);
  }

  .modal-content {
    border-radius: 12px;
  }

  /* Footer */
  .ft-footer-widget {
    margin-bottom: 28px;
  }

  .ft-footer-copyright {
    text-align: center;
  }
}

/* ── Phones (≤767px) ── */
@media screen and (max-width: 767px) {
  .ft-header-section.header-style-one .container-fluid {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  .ft-header-section.header-style-one .ft-brand-logo {
    max-width: calc(100% - 155px);
    padding: 2px 6px 2px 2px !important;
  }

  .ft-header-section.header-style-one .ft-brand-logo a img {
    max-width: 100%;
    max-height: 42px;
  }

  .ft-header-section.header-style-one .ft-header-cta-btn {
    margin-right: 42px !important;
  }

  .ft-header-section.header-style-one .ft-header-cta-btn a {
    padding: 0 12px !important;
    font-size: 12px !important;
    height: 36px !important;
  }

  .hero-slider {
    height: clamp(240px, 68vw, 340px) !important;
    min-height: 240px;
  }

  .bnnr-content {
    padding: 18px 0 !important;
  }

  .hero-style .slide-text p {
    max-width: 100%;
  }

  .container,
  .container-fluid {
    padding-left: 15px;
    padding-right: 15px;
  }

  .row > [class*="col-"] {
    margin-bottom: 8px;
  }

  .ft-about-feature-list-item {
    margin-bottom: 16px;
  }

  table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* ── Small phones (≤480px) ── */
@media screen and (max-width: 480px) {
  /* Keep Apply Now visible (overrides old display:none) */
  .ft-header-section.header-style-one .ft-header-cta-btn a {
    display: inline-flex !important;
    padding: 0 10px !important;
    font-size: 11px !important;
    height: 34px !important;
  }

  .ft-header-section.header-style-one .container-fluid {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .ft-header-section.header-style-one .ft-brand-logo {
    max-width: calc(100% - 140px);
    padding: 2px 4px 2px 0 !important;
  }

  .ft-header-section.header-style-one .ft-brand-logo a img {
    max-width: 100%;
    max-height: 38px;
  }

  .hero-slider {
    height: 260px !important;
  }

  .hero-style .slide-title h2 {
    font-size: 22px !important;
  }

  .hero-style .slide-text p {
    font-size: 13px !important;
  }

  .swiper-pagination {
    bottom: 10px !important;
  }
}

/* ── Very small (≤360px) ── */
@media screen and (max-width: 360px) {
  .ft-header-section.header-style-one .ft-header-cta-btn {
    display: none !important;
  }

  .ft-header-section.header-style-one .ft-brand-logo {
    max-width: calc(100% - 56px);
  }

  .ft-header-section.header-style-one .ft-brand-logo a img {
    max-height: 36px;
  }

  .mobile_menu_button {
    right: 10px !important;
  }
}
