@media (min-width: 992px) {
  .dropdown:not(.mega-menu-wrapper):hover > .dropdown-menu {
    display: block;
  }
  .dropdown-menu .dropend:hover > .dropdown-menu {
    display: block;
    position: absolute;
    top: 0;
    left: 100%;
  }
  .mega-menu-wrapper.mega-open > .mega-menu {
    display: block;
  }
}

/* ==========================================================================
   1. LARGE TABLETS / SMALL LAPTOPS  (max-width: 1199px)   — new
   ========================================================================== */
@media (max-width: 1199px) {
  .navbar .container {
    padding: 12px 20px;
  }

  .nav-link {
    padding: 10px 10px;
    font-size: 13px;
  }

  .mega-menu.three-cols {
    width: min(1100px, calc(100vw - 40px));
  }

  .section-heading h2 {
    font-size: 34px;
  }

  .career-left h2 {
    font-size: 36px;
  }

  .career-page-section .career-hero-box h1 {
    font-size: 44px;
  }
}

/* ==========================================================================
   2. TABLETS  (max-width: 991px)
   ========================================================================== */
@media (max-width: 991px) {
  /* ---------- Header / Navbar ---------- */
  .navbar .container {
    border-radius: 30px;
    padding: 10px 16px;
    margin-top: 10px;
  }

  #header.header-fixed .navbar .container {
    padding: 8px 16px;
  }

  .navbar-brand img {
    width: 120px;
  }

  .logo-section h5 {
    font-size: 36px;
  }

  .navbar-nav {
    gap: 0;
  }

  .nav-link {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
  }

  .dropdown-menu {
    box-shadow: none;
  }

  .dropdown-menu .dropdown-menu {
    margin-left: 12px;
    border-left: 3px solid var(--brand);
  }

  /* ---------- Mega menu → stacked dropdown ---------- */
  .mega-menu {
    width: auto;
    position: static;
    transform: none;
    padding: 10px 0;
    border-top: none;
    border-radius: 0;
    box-shadow: none;
  }

  .mega-menu.three-cols {
    width: auto;
  }

  .mega-menu-inner,
  .mega-menu-inner.three-cols {
    grid-template-columns: 1fr;
    flex-direction: column;
    gap: 10px;
    padding: 0;
    max-width: none;
  }

  .mega-grid {
    grid-template-columns: 1fr;
  }

  .mega-promo {
    display: none;
  }

  /* ---------- Hero bottom bar ---------- */
  .hero-bottom-bar {
    flex-direction: column;
    position: relative;
  }

  .counter-side,
  .cert-side {
    width: 100%;
  }

  .counter-side {
    padding: 20px 15px;
  }

  .counter-item h3 {
    font-size: 28px;
  }

  .counter-item p {
    font-size: 12px;
  }

  .cert-side {
    padding: 18px;
    gap: 20px;
    flex-wrap: wrap;
  }

  .cert-side img {
    max-width: 80px;
    max-height: 45px;
  }

  /* ---------- Product About ---------- */
  .producta-of-osin {
    padding: 70px 0;
  }

  .product-content {
    margin-bottom: 44px;
  }

  .product-content h2 {
    font-size: 30px;
  }

  /* ---------- Product sliders (tabs) ---------- */
  .osin_slider_products .nav-link {
    padding: 10px 18px;
    font-size: 13.5px;
  }

  .dual_products_slider .nav-link {
    padding: 10px 18px;
    font-size: 13px;
  }

  .dual-nav-wrap {
    margin: 20px 0px 20px !important;
  }

  /* ---------- Services ---------- */
  .section-heading h2 {
    font-size: 30px;
  }

  .services-wrapper {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: auto;
  }

  /* ---------- Global presence (home) ---------- */
  .global-presence-section {
    padding: 40px 0px 0px;
  }

  .global-title {
    font-size: 38px;
  }

  .global-map-wrapper {
    min-height: 420px;
  }

  /* ---------- About page ---------- */
  .company-abt-pg .row {
    flex-direction: column-reverse;
    margin-bottom: 10px;
  }
  .company-abt-pg {
    padding: 70px 0;
  }

  .company-abt-pg::before {
    font-size: 90px;
  }

  .company-abt-pg .col-lg-6 {
    width: 100%;
    margin-bottom: 40px;
  }

  .company-abt-pg .content-abt-pg-image {
    min-height: 220px;
    order: -1;
  }

  .company-abt-pg .content-abt-pg {
    border-left: none;
    border-top: 4px solid #b61f24;
    padding-left: 0;
    padding-top: 24px;
  }

  .company-vision-mission {
    padding: 60px 0;
  }

  .company-vision-mission .v-box-company {
    flex: 1 1 100%;
    padding: 40px 30px;
  }

  .company-vision-mission .v-box-company:first-child::before {
    display: none;
  }

  .company-vision-mission .v-box-company:first-child {
    box-shadow: inset 0 -4px 0 rgba(255, 255, 255, 0.15);
  }

  /* ---------- OSIN global presence (about) ---------- */
  .osin-gp-section {
    padding: 70px 0;
  }

  .osin-gp-section::before {
    font-size: 80px;
  }

  .osin-gp-col-image,
  .osin-gp-col-text {
    width: 100%;
    margin-bottom: 40px;
  }

  .osin-gp-media {
    min-height: 240px;
  }

  /* ---------- Leadership ---------- */
  .osin-leadership-section {
    padding: 70px 0;
  }

  .osin-leadership-section::before {
    font-size: 80px;
  }

  .osin-leadership-row {
    flex-direction: column;
    gap: 30px;
  }

  .osin-leadership-quote,
  .osin-leadership-body {
    flex: 1 1 100%;
  }

  /* ---------- Tabs section ---------- */
  .osin-top-tabs {
    gap: 10px;
  }

  .osin-top-tabs .nav-link {
    padding: 12px 20px;
    font-size: 14px;
  }

  .osin-content {
    padding: 25px;
  }

  /* ---------- Career ---------- */
  .career-section {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .career-left {
    padding-right: 0;
  }

  /* ---------- CSR ---------- */
  .osin-csr-section {
    padding: 80px 0;
  }

  .osin-csr-content h2 {
    font-size: 36px;
  }

  /* ---------- Contact ---------- */
  .osin-contact .osin-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  /* ---------- Blog list ---------- */
  .blog-section {
    padding: 80px 0;
  }

  .blog-heading h2 {
    font-size: 36px;
  }

  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .blog-card:last-child {
    grid-column: 1 / -1;
    max-width: calc(50% - 14px);
    width: 100%;
    margin: auto;
  }
}

/* ==========================================================================
   3. TABLETS – BOOTSTRAP LG EDGE  (max-width: 991.98px)
   ========================================================================== */
@media (max-width: 991.98px) {
  /* ---------- Talk OSIN ---------- */
  .talk-osin {
    padding: 0px 0;
  }

  .talk-osin h3 {
    font-size: 1.65rem;
    margin-top: 32px;
  }

  .talk-osin .two-logos {
    justify-content: center;
    margin-top: 30px;
  }

  .talk-osin .row + .row {
    margin-top: 30px;
  }

  .talk-osin .image-box {
    position: static;
    margin-top: 20px;
    min-width: 0;
    width: 100%;
  }

  /* ---------- Footer ---------- */
  .footer-sec {
    padding-top: 55px;
  }

  .footer-sec .footer-contact-top {
    justify-content: flex-start;
    margin-top: 25px;
    flex-wrap: wrap;
  }

  .footer-sec .footer-main-links > .row > .col-lg-6:first-child,
  .footer-sec .footer-secondary > .row > .col-lg-8 {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 40px;
    margin-bottom: 40px;
  }

  .footer-sec .footer-link-section,
  .footer-sec .footer-social-box {
    padding-left: 0;
    padding-right: 0;
  }

  .footer-sec .footer-social-box {
    padding-top: 5px;
  }

  .footer-sec .footer-location {
    margin-bottom: 20px;
  }
}

/* ==========================================================================
   4. SMALL TABLETS / LARGE PHONES  (max-width: 768px / 767px / 767.98px)
   ========================================================================== */
@media (max-width: 768px) {
  /* ---------- Hero text ---------- */
  .text-wrap {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .text-wrap h1 {
    max-width: 100%;
    font-size: 30px;
    border-right: none;
    padding-right: 0;
  }

  .changing-text-box {
    text-align: center;
    padding-left: 0;
    min-width: unset;
    max-width: 100%;
  }

  .text-wrap span {
    font-size: 20px;
  }

  .ban-five h5 {
    font-size: 15px;
  }

  .banner-btn {
    margin-right: 12px;
    padding: 11px 24px;
    font-size: 14px;
  }

  /* ---------- Inner page banner ---------- */
  .bg-banner-inside {
    min-height: 180px;
  }

  .banner-content {
    padding-bottom: 18px;
  }

  .breadcrumb-jsvm li,
  .breadcrumb-jsvm li a {
    font-size: 13px;
  }
}

@media (max-width: 767px) {
  /* ---------- Feature grid / product about ---------- */
  .parent {
    grid-template-columns: 1fr;
  }

  .product-content h2 {
    font-size: 26px;
  }

  .feature-card {
    padding: 28px 20px;
  }

  /* ---------- Dual slider ---------- */
  .dual_products_slider .dual-section-head {
    margin-bottom: 35px;
  }

  .dual_products_slider .dual-product-name {
    font-size: 15px;
  }

  /* ---------- Global presence (home) ---------- */
  .global-title {
    font-size: 30px;
  }

  .global-description {
    line-height: 28px;
  }

  .country-list li {
    margin-bottom: 14px;
  }

  .global-map-wrapper {
    min-height: 320px;
  }

  .map-glow {
    border-radius: 25px;
  }

  /* ---------- Clients ---------- */
  .rs-clients__item {
    flex: 0 0 calc(33.333% - 20px); /* 3 per row */
  }

  /* ---------- Tabs section: desktop → mobile cards ---------- */
  .osin-desktop {
    display: none;
  }

  .osin-mobile {
    display: block;
  }

  .osin-wrap .nav.nav-pills {
    display: none;
  }

  .osin-wrap {
    padding: 10px 0 60px;
    background: #fff;
  }

  /* ---------- Career ---------- */
  .career-page-section .career-hero-box {
    padding: 50px 20px;
  }

  .career-page-section .career-hero-box h1 {
    font-size: 34px;
  }

  .career-page-section .career-process-box {
    padding: 25px;
  }

  .career-page-section .career-process-box h2 {
    font-size: 28px;
  }

  .career-section {
    padding: 40px 0;
    gap: 25px;
  }

  .career-left h2 {
    font-size: 30px;
  }

  .career-left > p {
    font-size: 14px;
  }

  .resume-box {
    padding: 30px 25px;
    border-radius: 18px;
  }

  .resume-box h3 {
    font-size: 25px;
  }

  /* ---------- Contact ---------- */
  .osin-contact {
    padding: 40px 0;
  }

  .osin-contact .osin-head h2 {
    font-size: 26px;
  }

  .osin-contact .osin-head p {
    font-size: 15px;
  }

  .osin-contact .osin-bar {
    padding: 25px 22px;
  }

  .osin-map-wrap iframe {
    height: 380px;
  }

  /* ---------- CSR ---------- */
  .osin-csr-section {
    padding: 60px 0;
  }

  .osin-csr-content h2 {
    font-size: 30px;
  }

  .osin-csr-card {
    padding: 20px;
  }

  .osin-csr-note {
    padding: 20px;
  }

  /* ---------- Blog list ---------- */
  .blog-section {
    padding: 65px 0;
  }

  .blog-heading {
    margin-bottom: 38px;
  }

  .blog-heading h2 {
    font-size: 30px;
  }

  .blog-heading p {
    font-size: 14px;
    line-height: 1.7;
  }

  .blog-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .blog-card:last-child {
    grid-column: auto;
    max-width: none;
  }

  .blog-image {
    height: 220px;
  }

  .blog-content {
    padding: 25px 22px 27px;
  }

  .blog-content h3 {
    font-size: 19px;
  }

  .blog-content p {
    font-size: 13px;
  }

  /* ---------- Blog detail ---------- */
  .blog-detail {
    padding: 50px 0;
  }

  .blog-detail .container {
    padding: 0 15px;
  }

  .blog-detail-header {
    margin-bottom: 25px;
  }

  .blog-detail-header h1 {
    font-size: 28px;
  }

  .blog-detail-image {
    height: 230px;
    border-radius: 15px;
    margin-bottom: 30px;
  }

  .blog-detail-content p {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 20px;
  }

  .blog-inline-image {
    height: 210px;
    border-radius: 15px;
    margin: 28px 0;
  }

  .blog-highlight {
    padding: 16px;
  }

  .blog-highlight p {
    font-size: 13px;
  }

  .blog-highlight-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
  }
}

@media (max-width: 767.98px) {
  /* ---------- Footer ---------- */
  .footer-sec .footer-main-links,
  .footer-sec .footer-secondary,
  .footer-sec .footer-offices {
    padding: 40px 0;
  }

  .footer-offices .col-lg-4 {
    margin-bottom: 20px;
  }

  .footer-sec .footer-main-links .footer-box,
  .footer-sec .footer-secondary .footer-box {
    margin-bottom: 28px;
  }

  .footer-sec
    .footer-main-links
    > .row
    > .col-lg-6:first-child
    .footer-link-section {
    padding-bottom: 10px;
  }

  .footer-sec .footer-location {
    margin-bottom: 15px;
  }

  .footer-sec .footer-bottom {
    text-align: center;
  }

  .footer-sec .footer-bottom-right {
    justify-content: center;
    margin-top: 15px;
    flex-wrap: wrap;
  }
}

/* ==========================================================================
   5. PHONES  (max-width: 640px / 576px / 575px / 575.98px)
   ========================================================================== */
@media (max-width: 640px) {
  /* Logo marquee tokens */
  :root {
    --marquee-fade-width: 64px;
    --marquee-gap: 40px;
  }

  .logo-marquee__item {
    width: 96px;
  }
}

@media (max-width: 576px) {
  /* ---------- Hero counters ---------- */
  .counter-side {
    flex-wrap: wrap;
    gap: 25px;
  }

  .counter-item {
    flex: 0 0 calc(50% - 15px);
  }

  .counter-item:last-child {
    flex: 0 0 100%;
  }

  .counter-item::after {
    display: none;
  }

  .counter-item h3 {
    font-size: 24px;
  }

  .cert-side img {
    max-width: 70px;
  }

  /* ---------- About page ---------- */
  .company-abt-pg .content-abt-pg h3 {
    font-size: 24px;
  }

  .company-vision-mission .v-box-company {
    padding: 34px 24px;
  }

  /* ---------- OSIN global presence / leadership ---------- */
  .osin-gp-badge-label {
    font-size: 19px;
    padding: 8px 20px;
  }

  .osin-leadership-badge {
    font-size: 19px;
    padding: 8px 20px;
  }

  .osin-leadership-quote {
    padding: 34px 28px;
  }

  .osin-leadership-intro {
    font-size: 16.5px;
  }
}

@media (max-width: 575px) {
  /* ---------- Product slider 1 ---------- */

  .nav-pills-wrap {
    margin-bottom: 0.25rem !important;
  }

  .osin_slider_products .nav-pills {
    gap: 10px;
    background: unset;
    padding: 6px;
  }

  .osin_slider_products .nav-link {
    padding: 9px 14px;
    font-size: 12.5px;
  }

  /* .osin_slider_products .swiper-button-next,
  .osin_slider_products .swiper-button-prev {
    display: none;
  } */

  .osin_slider_products .swiper {
    padding: 0px 4px 10px;
  }

  /* ---------- Product slider 2 ---------- */
  .text_of_dual_products h3 {
    font-size: 25px;
  }

  .dual_products_slider .nav-pills {
    gap: 4px;
    padding: 5px;
  }

  .dual_products_slider .nav-link {
    padding: 10px 14px;
    font-size: 12px;
  }

  .dual_products_slider .swiper-button-next,
  .dual_products_slider .swiper-button-prev {
    display: none;
  }

  .dual_products_slider .dual-product-media img {
    padding: 18px;
  }

  /* ---------- Tabs section (mobile cards) ---------- */
  .osin-mobile > h2 {
    font-size: 21px;
    margin: 24px 0 14px !important;
    padding: 9px 13px;
  }

  .osin-mobile .service-card {
    padding: 18px 17px;
    margin-bottom: 14px;
    border-radius: 12px;
  }

  .osin-mobile .service-card h4 {
    font-size: 17px;
  }

  .osin-mobile .service-card p {
    font-size: 13.5px;
    line-height: 1.7;
  }

  /* ---------- Services CTA buttons ---------- */
  .services-cta-actions {
    gap: 8px;
  }

  .services-cta-btn {
    min-width: 0;
    flex: 1;
    padding: 12px 10px;
    font-size: 12px;
  }

  .services-cta-btn i {
    font-size: 14px;
  }

  /* ---------- Talk OSIN ---------- */
  .talk-osin .two-logos {
    gap: 24px;
  }

  .talk-osin .two-logos img {
    max-height: 42px;
  }

  /* ---------- Team ---------- */
  .team-mem img {
    width: 130px;
    height: 130px;
  }
}

@media (max-width: 575.98px) {
  /* ---------- Footer ---------- */
  .footer-sec {
    padding-top: 40px;
  }

  .footer-sec .footer-logo img {
    max-width: 150px;
  }

  .footer-sec .footer-contact-top {
    display: flex;
    flex-direction: column;
  }

  .footer-sec .footer-contact-top a {
    justify-content: center;
  }

  .footer-sec .footer-heading h5 {
    font-size: 19px;
  }

  .footer-sec .footer-heading {
    margin-bottom: 23px;
  }
}

/* ==========================================================================
   6. SMALL PHONES  (max-width: 480px)
   ========================================================================== */
@media (max-width: 480px) {
  /* ---------- Clients ---------- */
  .rs-clients__item {
    flex: 0 0 calc(50% - 15px); /* 2 per row */
  }

  /* ---------- Blog list ---------- */
  .blog-section .container {
    padding: 0 15px;
  }

  .blog-heading h2 {
    font-size: 27px;
  }

  .blog-eyebrow {
    font-size: 11px;
    letter-spacing: 1.5px;
  }

  .blog-eyebrow:before,
  .blog-eyebrow:after {
    width: 18px;
  }

  .blog-image {
    height: 200px;
  }

  .blog-number {
    width: 42px;
    height: 42px;
    font-size: 13px;
    top: 14px;
    right: 14px;
  }

  .blog-shape {
    width: 62px;
    height: 62px;
  }

  /* ---------- Extra small-phone tuning (new) ---------- */
  .text-wrap h1 {
    font-size: 24px;
  }

  .text-wrap span {
    font-size: 18px;
  }

  .banner-btn,
  .vp-btn {
    margin-right: 0;
    font-size: 12px;
  }

  .section-heading h2 {
    font-size: 24px;
  }

  .service-card {
    padding: 28px 22px;
  }

  .global-title,
  .product-content h2,
  .talk-osin h3,
  .osin-gp-badge-label,
  .osin-leadership-badge {
    font-size: 24px;
  }

  .certification-logo {
    width: 72px;
    height: 80px;
  }

  .career-page-section .career-hero-box h1 {
    font-size: 28px;
  }

  .career-left h2 {
    font-size: 26px;
  }
}

/* ==========================================================================
   7. ACCESSIBILITY — REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .logo-marquee__track {
    animation: none;
  }

  .logo-marquee__viewport {
    overflow-x: auto;
  }
}



@media (max-width: 767px) {
    .slide-3 {
        background-image: url('../images/home/banners/slide-3-mobile.webp') !important;
    }
}