/*
Theme Name: unOrtho
Theme URI: https://unortho.com
Template: generatepress
Author: NJTECHNOS
Description: unOrtho is a modern and performance-focused WordPress child theme designed for orthopedic clinics, hospitals, physiotherapy centers, healthcare professionals, and wellness institutions. Built on GeneratePress, the theme provides a clean responsive layout, fast loading experience, WooCommerce support, Elementor compatibility, and a professional design tailored for healthcare services and patient engagement.
Tags: healthcare, orthopedics, clinic, hospital, physiotherapy, doctor, responsive, generatepress-child, elementor, woocommerce, appointment-booking, healthcare-theme
Version: 1.0.0
Updated: 2026-05-15
*/

    /* ===== PRELOADER ===== */
    .site-preloader {
        position: fixed;
        inset: 0;
        z-index: 999999;
        background-color: #000;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }

    .site-preloader.preloader-hidden {
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.6s ease, visibility 0s linear 0.6s;
    }

    .preloader-stage {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        display: block;
    }

    .preloader-frame {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        opacity: 0;
        will-change: opacity;
    }

    .preloader-frame.is-active {
        opacity: 1;
    }

    body.preloader-active {
        overflow: hidden;
        height: 100vh;
    }

/* ===== HERO INTRO - FULLY RESPONSIVE ===== */

/* ============================================
   HERO INTRO — Desktop (Default 1200px+)
   ============================================ */
.hero-intro {
    position: relative;
    width: 100%;
    height: 130vh;
    min-height: 700px;
    background-color: #000;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.intro-boxes {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 0;
    padding: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
}

.intro-box {
    position: relative;
    overflow: hidden;
    background: #111;
    transform-origin: center center;
    width: 100%;
    height: 100%;
    will-change: transform, opacity, width, height;
    opacity: 0;
    width: 150px;
    height: 150px;
    justify-self: center;
    align-self: center;
}

.intro-box video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: relative;
    z-index: 1;
}

.intro-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 2;
}

.intro-box.animation-complete {
    width: 100%;
    height: 100%;
}

.intro-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border: none;
}

/* Caption overlay (text) */
.intro-box-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: #fff;
    font-family: 'League Spartan', sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 40px 12px 12px 12px;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none;
    z-index: 2;
}

.intro-box.animation-complete .intro-box-caption {
    opacity: 1;
    transform: translateY(0);
}

/* Center content */
.intro-content {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    pointer-events: none;
    text-align: center;
    padding: 20px;
}

.intro-logo {
    opacity: 0;
    transform: translateY(60px);
    will-change: transform, opacity;
}

.intro-logo img {
    height: 200px;
    width: auto;
}

.intro-tagline {
    font-family: 'League Spartan', sans-serif;
    font-size: clamp(28px, 5vw, 64px);
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 0.95;
    opacity: 0;
    transform: translateY(60px);
    margin: 0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    padding-top: 0px;
}

/* tagline ki do lines ka gap kam — sab device par */
.intro-tagline + .intro-tagline {
    margin-top: 2px;
}

.intro-sub {
    font-family: 'League Spartan', sans-serif;
    font-size: 22px;
    font-weight: 400;
    color: #f0f0f0;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0;
    transform: translateY(60px);
        margin-top: -15px !important;
        padding-top: 0 !important;
		margin-bottom: 25px !important;
    }

.intro-btn {
    margin: -30px;
    font-family: 'League Spartan', sans-serif;
    font-size: 16px;
    font-weight: 400;
    text-transform: uppercase;
    text-decoration: none;
    color: #fff;
    background: #FF5A32;
    padding: 12px 30px;
    display: inline-block;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: color 0.35s ease;
    opacity: 0;
    transform: translateY(60px);
    pointer-events: auto;
    letter-spacing: 0.05em;
    border-radius: 2px;
}

.intro-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: -1;
    transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.intro-btn:hover::before {
    left: 0;
}

.intro-btn:hover {
    color: #fff !important;
}

/* ============================================
   TABLET (768px – 1199px)
   ============================================ */
@media (max-width: 1199px) {
    .hero-intro {
        height: 100vh;
        min-height: 640px;
    }
    .intro-content { gap: 25px; }
    .intro-logo img { height: clamp(140px, 16vw, 180px); }
    .intro-tagline { font-size: clamp(46px, 7vw, 60px); line-height: 0.95; }
    .intro-sub { font-size: clamp(18px, 2.4vw, 22px); }
    .intro-btn { margin: 0; font-size: 16px; padding: 12px 30px; }
}

/* ============================================
   TABLET MID (up to 991px) — bada text/logo
   ============================================ */
@media (max-width: 991px) {
    .hero-intro {
        height: 100vh;
        min-height: 620px;
    }
    .intro-content { gap: 25px; }
    .intro-logo img { height: clamp(130px, 20vw, 165px); }
    .intro-tagline { font-size: clamp(42px, 8vw, 54px); line-height: 0.95; }
    .intro-sub { font-size: clamp(17px, 3vw, 20px); }
    .intro-btn { margin: 0; font-size: 16px; padding: 12px 30px; }
}

/* ============================================
   MOBILE (up to 767px)
   ============================================ */
@media (max-width: 767px) {
    .hero-intro {
        height: 100vh;
        min-height: 580px;
    }
    .intro-boxes {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr 1fr;
    }
    .intro-overlay { background: rgba(0, 0, 0, 0.8); }

    .intro-content {
        gap: 25px;
        padding: 20px;
    }
    .intro-logo img { height: clamp(106px, 28vw, 146px); }
    .intro-tagline { font-size: clamp(34px, 9.5vw, 48px); line-height: 0.95; }
    .intro-sub { font-size: clamp(15px, 4vw, 18px); }
    .intro-btn { margin: -10px; font-size: 15px; padding: 12px 28px; }

    .intro-box-caption {
        font-size: 12px;
        padding: 30px 10px 10px 10px;
    }
}

/* Small phones (up to 480px) */
@media (max-width: 480px) {
    .hero-intro { min-height: 540px; }
    .intro-logo img { height: clamp(120px, 40vw, 145px); }
    .intro-tagline { font-size: clamp(30px, 10vw, 40px); }
    .intro-sub { font-size: 15px; letter-spacing: 0.06em; 
    margin-top: -5px !important;
    padding-top: 0 !important;
    margin-bottom: 20px !important;
}
    .intro-content { gap: 25px; }
    .intro-btn { margin: -18px; }
}

/* Extra small (up to 360px) */
@media (max-width: 360px) {
    .intro-tagline { font-size: 28px; }
    .intro-logo img { height: 90px; }
    .intro-sub { font-size: 14px; }
}

/* Landscape phones */
@media (max-width: 991px) and (orientation: landscape) {
    .hero-intro {
        height: 100vh;
        min-height: auto;
    }
    .intro-content { gap: 14px; }
    .intro-logo img { height: clamp(70px, 16vh, 100px); }
    .intro-tagline { font-size: clamp(28px, 8vh, 44px); }
    .intro-sub { font-size: 14px; }
    .intro-btn { margin: 0; }
}

 /* ===== SECTIONS 2-7: FULLY RESPONSIVE CSS ===== */

/* ── Wrapper common ── */
.programs-wrapper, .arthro-wrapper, .gym-wrapper,
.injury-wrapper, .trauma-wrapper, .success-wrapper {
    font-family: 'League Spartan', sans-serif;
    width: 100%;
    background-color: #ffffff;
    overflow: hidden;
}

/* ══════════════════════════════════════════
   SECTION 2 — KNEE PRESERVATION
══════════════════════════════════════════ */
.programs-container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0;
    box-sizing: border-box;
}
.text-content {
    flex: 1;
    width: 50%;
    padding-right: 40px;
    z-index: 2;
    padding-top: 20px;
    padding-bottom: 20px;
}
.image-content {
    flex: 1;
    width: 50%;
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}
.sec-thin-heading {
    font-weight: 300;
    font-size: clamp(34px, 5.5vw, 68px);
    color: #111;
    text-transform: uppercase;
    margin: 0 0 5px 0;
    line-height: 1.1;
    letter-spacing: -0.01em;
}
.sec-bold-heading {
    font-weight: 700;
    font-size: clamp(24px, 3.5vw, 48px);
    color: #000;
    text-transform: uppercase;
    margin: 0 0 25px 0;
    line-height: 1.1;
}
.sec-para-regular {
    font-weight: 400;
    font-size: clamp(15px, 2vw, 24px);
    color: #111;
    line-height: 1.55;
    margin: 0 0 12px 0;
    max-width: 600px;
}
.sec-btn-wrap {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 10px;
}
.sec-btn {
    font-family: 'League Spartan', sans-serif;
    font-weight: 400;
    font-size: 16px;
    text-transform: uppercase;
    text-decoration: none;
    padding: 12px 28px;
    display: inline-block;
    letter-spacing: 0.05em;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: color 0.35s ease;
}
.sec-btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    z-index: -1;
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.sec-btn:hover::before { left: 0; }
.sec-btn-black  { background-color: #000; color: #fff; }
.sec-btn-black::before  { background-color: #FF5A32; }
.sec-btn-orange { background-color: #FF5A32; color: #fff; }
.sec-btn-orange::before { background-color: #000; }

.section-preserve {
    position: relative;
    background-color: #fff;
    padding: 60px 0;
}
.section-preserve::before {
    content: '';
    position: absolute;
    inset: 0;
    background:url('https://njtechnos.online/unortho/wp-content/uploads/2026/06/knee_programme-1-1.webp');
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
    z-index: 0;
}
.cyclist-img {
    width: 100%;
    max-width: 300px;
    display: block;
    transform: translateY(50px);
}

/* ══════════════════════════════════════════
   SECTION 3 — ARTHROPLASTY
══════════════════════════════════════════ */
.section-arthro {
    position: relative;
    background-color: #fff;
    padding: 0;
    display: flex;
    align-items: center;
    min-height: 780px;
}
.arthro-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image: url('https://njtechnos.online/unortho/wp-content/uploads/2026/05/Group-64.jpg');
    background-size: cover;
    background-position: bottom;
    background-repeat: no-repeat;
    z-index: 1;
}
.arthro-fade-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(255,255,255,0) 35%, #FFFFFF 70%);
    pointer-events: none;
}
.arthro-container {
    width: 100%;
    max-width: none;
    margin: 0; padding: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    box-sizing: border-box;
    position: relative;
    z-index: 2;
}
.arthro-text {
    width: 46%;
    padding: 50px 80px 100px 40px;
    box-sizing: border-box;
}
.arthro-thin-heading {
    font-weight: 300;
    font-size: clamp(34px, 5.5vw, 68px);
    color: #111;
    text-transform: uppercase;
    margin: 0 0 5px 0;
    line-height: 1.1;
    letter-spacing: -0.01em;
}
.arthro-bold-heading {
    font-weight: 700;
    font-size: clamp(24px, 3.5vw, 48px);
    color: #000;
    text-transform: uppercase;
    margin: 0 0 25px 0;
    line-height: 1.1;
}
.arthro-para-bold {
    font-weight: 400;
    font-size: clamp(15px, 2vw, 24px);
    color: #111;
    line-height: 1.55;
    margin: 0 0 15px 0;
    max-width: 550px;
}
.arthro-para-small {
    font-weight: 300;
    font-size: clamp(14px, 1.3vw, 20px);
    color: #333;
    line-height: 1.5;
    margin: 0 0 35px 0;
    max-width: 550px;
}
.arthro-btn-wrap {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}
.arthro-btn {
    font-family: 'League Spartan', sans-serif;
    font-weight: 400;
    font-size: 16px;
    text-transform: uppercase;
    text-decoration: none;
    padding: 12px 28px;
    display: inline-block;
    letter-spacing: 0.05em;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: color 0.35s ease;
}
.arthro-btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    z-index: -1;
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.arthro-btn:hover::before { left: 0; }
.arthro-btn-black  { background-color: #000; color: #fff; }
.arthro-btn-black::before  { background-color: #FF5A32; }
.arthro-btn-orange { background-color: #FF5A32; color: #fff; }
.arthro-btn-orange::before { background-color: #000; }

/* ══════════════════════════════════════════
   SECTION 4 — RETURN TO GYM
══════════════════════════════════════════ */
.section-gym {
    position: relative;
    background-color: #fff;
    padding: 0;
    display: flex;
    align-items: center;
    min-height: 750px;
    overflow: hidden;
}
.gym-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image: url('https://njtechnos.online/unortho/wp-content/uploads/2026/05/section4-bcakground.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}
.gym-container {
    width: 100%;
    max-width: none;
    margin: 0; padding: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
    position: relative;
    z-index: 2;
}
.gym-text {
    width: 50%;
    padding: 100px 40px 100px 80px;
    box-sizing: border-box;
}
.gym-image {
    width: 50%;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    position: relative;
}
.gym-image img {
    width: 100%;
    max-width: 750px;
    height: auto;
    display: block;
}
.gym-thin-heading {
    font-weight: 300;
    font-size: clamp(34px, 5.5vw, 68px);
    color: #111;
    text-transform: uppercase;
    margin: 0 0 5px 0;
    line-height: 1.1;
    letter-spacing: -0.01em;
}
.gym-bold-heading {
    font-weight: 700;
    font-size: clamp(24px, 3.5vw, 48px);
    color: #000;
    text-transform: uppercase;
    margin: 0 0 25px 0;
    line-height: 1.1;
}
.gym-para-regular {
    font-weight: 400;
    font-size: clamp(15px, 2vw, 24px);
    color: #111;
    line-height: 1.55;
    margin: 0 0 15px 0;
    max-width: 550px;
}
.gym-btn-wrap {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 30px;
}
.gym-btn {
    font-family: 'League Spartan', sans-serif;
    font-weight: 400;
    font-size: 16px;
    text-transform: uppercase;
    text-decoration: none;
    padding: 12px 28px;
    display: inline-block;
    letter-spacing: 0.05em;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: color 0.35s ease;
}
.gym-btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    z-index: -1;
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.gym-btn:hover::before { left: 0; }
.gym-btn-black  { background-color: #000; color: #fff; }
.gym-btn-black::before  { background-color: #FF5A32; }
.gym-btn-orange { background-color: #FF5A32; color: #fff; }
.gym-btn-orange::before { background-color: #000; color: #fff; }

a:hover, a:focus, a:active { color: white; }

/* ══════════════════════════════════════════
   SECTION 5 — SPORTS INJURIES
══════════════════════════════════════════ */
.section-injury {
    position: relative;
    background-color: #fff;
    padding: 0;
    display: flex;
    align-items: center;
    min-height: 800px;
    overflow: hidden;
}
.injury-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background:
        linear-gradient(270deg, #FFFFFF 35%, rgba(255,255,255,0) 90%),
        url('https://njtechnos.online/unortho/wp-content/uploads/2026/05/section5-back-image.jpg');
    background-size: cover;
    background-position: left center;
    background-repeat: no-repeat;
    z-index: 1;
}
.injury-container {
    width: 100%;
    max-width: none;
    margin: 0; padding: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    box-sizing: border-box;
    position: relative;
    z-index: 2;
}
.injury-text {
    width: 50%;
    padding: 50px 80px 100px 55px;
    box-sizing: border-box;
    text-align: left;
}
.injury-thin-heading {
    font-weight: 300;
    font-size: clamp(34px, 5.5vw, 68px);
    color: #111;
    text-transform: uppercase;
    margin: 0 0 5px 0;
    line-height: 1.1;
    letter-spacing: -0.01em;
}
.injury-bold-heading {
    font-weight: 700;
    font-size: clamp(24px, 3vw, 45px);
    color: #000;
    text-transform: uppercase;
    margin: 0 0 15px 0;
    line-height: 1.1;
}
.injury-para-bold {
    font-weight: 400;
    font-size: clamp(15px, 2vw, 24px);
    color: #111;
    line-height: 1.55;
    margin: 0 0 15px 0;
    max-width: 550px;
}
.injury-para-small {
    font-weight: 300;
    font-size: clamp(14px, 1.3vw, 20px);
    color: #333;
    line-height: 1.5;
    margin: 0 0 35px 0;
    max-width: 550px;
}
.injury-btn-wrap {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 30px;
}
.injury-btn {
    font-family: 'League Spartan', sans-serif;
    font-weight: 400;
    font-size: 16px;
    text-transform: uppercase;
    text-decoration: none;
    padding: 12px 28px;
    display: inline-block;
    letter-spacing: 0.05em;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: color 0.35s ease;
}
.injury-btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    z-index: -1;
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.injury-btn:hover::before { left: 0; }
.injury-btn-black  { background-color: #000; color: #fff; }
.injury-btn-black::before  { background-color: #FF5A32; }
.injury-btn-orange { background-color: #FF5A32; color: #fff; }
.injury-btn-orange::before { background-color: #000; }

/* ══════════════════════════════════════════
   SECTION 6 — TRAUMA CARE
══════════════════════════════════════════ */
.section-trauma {
    position: relative;
    background-color: #fff;
    padding: 0;
    display: flex;
    align-items: center;
    min-height: 800px;
    overflow: hidden;
}
.trauma-bg-pattern {
    position: absolute;
    top: 0; right: 0;
    width: 100%; height: 100%;
    background-image: url('https://njtechnos.online/unortho/wp-content/uploads/2026/05/section4-bcakground.png');
    background-size: cover;
    background-position: center right;
    opacity: 0.5;
    z-index: 1;
    pointer-events: none;
}
.trauma-container {
    width: 100%;
    max-width: none;
    margin: 0; padding: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
    position: relative;
    z-index: 2;
}
.trauma-text {
    width: 46%;
    padding: 50px 40px 100px 80px;
    box-sizing: border-box;
    z-index: 3;
}
.trauma-image {
    width: 50%;
    height: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.trauma-image-inner {
    width: 115%;
    height: 800px;
    background-image: url('https://njtechnos.online/unortho/wp-content/uploads/2026/05/trauma.webp');
    background-size: cover;
    background-position: center left;
    position: relative;
    margin-right: -20%;
}
.trauma-thin-heading {
    font-weight: 300;
    font-size: clamp(34px, 5.5vw, 68px);
    color: #111;
    text-transform: uppercase;
    margin: 0 0 5px 0;
    line-height: 1.1;
    letter-spacing: -0.01em;
}
.trauma-bold-heading {
    font-weight: 700;
    font-size: clamp(24px, 3.5vw, 48px);
    color: #000;
    text-transform: uppercase;
    margin: 0 0 25px 0;
    line-height: 1.1;
}
.trauma-para-regular {
    font-weight: 400;
    font-size: clamp(15px, 2vw, 24px);
    color: #111;
    line-height: 1.4;
    margin: 0 0 35px 0;
    max-width: 550px;
}
.trauma-btn-wrap {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 30px;
}
.trauma-btn {
    font-family: 'League Spartan', sans-serif;
    font-weight: 400;
    font-size: 16px;
    text-transform: uppercase;
    text-decoration: none;
    padding: 12px 28px;
    display: inline-block;
    letter-spacing: 0.05em;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: color 0.35s ease;
}
.trauma-btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    z-index: -1;
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.trauma-btn:hover::before { left: 0; }
.trauma-btn-black  { background-color: #000; color: #fff; }
.trauma-btn-black::before  { background-color: #FF5A32; }
.trauma-btn-orange { background-color: #FF5A32; color: #fff; }
.trauma-btn-orange::before { background-color: #000; }

/* ══════════════════════════════════════════
   SECTION 7 — SUCCESS STORIES
══════════════════════════════════════════ */
.section-success {
    padding: 100px 0 0 0;
    background-color: #fff;
}
.success-container {
    width: 100%;
    max-width: none;
    margin: 0; padding: 0;
    box-sizing: border-box;
}
.success-header {
    text-align: center;
    margin-bottom: 60px;
    padding: 0 20px;
}
.success-title {
    font-weight: 300;
    font-size: clamp(28px, 5vw, 60px);
    color: #111;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
}
.success-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    width: 100%;
}
.success-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    background-color: #f5f5f5;
}
.success-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}
.success-item:hover img { transform: scale(1.05); }

/* ══════════════════════════════════════════
   TABLET — max-width: 991px
══════════════════════════════════════════ */
@media (max-width: 991px) {

    /* Sec 2 */
    .programs-container {
        flex-direction: column;
        padding: 50px 40px;
        gap: 30px;
    }
    .text-content, .image-content {
        width: 100%;
        padding-right: 0;
    }
    .section-preserve { padding: 0px 0; }
    .section-preserve::before {
        transform: scaleX(1);
        background:
            linear-gradient(180deg, #FFFFFF 0%, rgba(255,255,255,0.85) 45%, rgba(255,255,255,0) 100%),
            url('https://njtechnos.online/unortho/wp-content/uploads/2026/05/section-2back.jpg');
        background-size: cover;
        background-position: center bottom;
    }
    .cyclist-img { max-width: 220px; }

    /* Sec 3 */
    .section-arthro { min-height: auto; flex-direction: column; }
    .arthro-bg {
        position: relative;
        width: 100%;
        height: 420px;
        flex-shrink: 0;
    }
    .arthro-fade-overlay {
        background: linear-gradient(to bottom, rgba(255,255,255,0) 55%, #FFFFFF 95%);
    }
    .arthro-container { flex-direction: column; }
    .arthro-text { width: 100%; padding: 40px 30px 50px; }

    /* Sec 4 */
    .section-gym { min-height: auto; }
    .gym-container { flex-direction: column; }
    .gym-text { width: 100%; padding: 50px 30px 30px; }
    .gym-image { width: 100%; justify-content: center; }
    .gym-image img { max-width: 100%; }

    /* Sec 5 */
    .section-injury { min-height: auto; flex-direction: column; }
    .injury-bg {
        position: relative;
        width: 100%;
        height: 420px;
        background:
            linear-gradient(0deg, #FFFFFF 0%, rgba(255,255,255,0) 60%),
            url('https://njtechnos.online/unortho/wp-content/uploads/2026/05/section5-back-image.jpg');
        background-size: cover;
        background-position: left center;
        flex-shrink: 0;
    }
    .injury-container { flex-direction: column; justify-content: center; }
    .injury-text { width: 100%; padding: 40px 30px 50px; }

    /* Sec 6 */
    .section-trauma { min-height: auto; }
    .trauma-container { flex-direction: column; }
    .trauma-text { width: 100%; padding: 50px 30px 30px; }
    .trauma-image {
        width: 100%;
        height: 420px;
        justify-content: center;
    }
    .trauma-image-inner {
        width: 88%;
        height: 380px;
        border-radius: 380px 380px 0 0;
        margin-right: 0;
        margin-bottom: -10px;
        background-position: center;
    }

    /* Sec 7 */
    .section-success { padding: 70px 0 0; }
    .success-header { margin-bottom: 40px; }
    .success-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ══════════════════════════════════════════
   MOBILE — max-width: 600px
══════════════════════════════════════════ */
@media (max-width: 600px) {

    /* Sec 2 */
    .programs-container { padding: 36px 20px; gap: 24px; }
    .cyclist-img { max-width: 180px; }
    .section-preserve::before {
        background:
            linear-gradient(180deg, #FFFFFF 0%, rgba(255,255,255,0.9) 50%, rgba(255,255,255,0) 100%),
            url('https://njtechnos.online/unortho/wp-content/uploads/2026/05/section-2back.jpg');
        background-size: cover;
        background-position: center bottom;
    }

    /* ── Para +2px, Heading +4px (mobile only) ── */
    .sec-thin-heading, .arthro-thin-heading, .gym-thin-heading,
    .injury-thin-heading, .trauma-thin-heading {
        font-size: clamp(38px, 5.5vw, 68px);
    }
    .sec-bold-heading, .arthro-bold-heading, .gym-bold-heading,
    .injury-bold-heading, .trauma-bold-heading {
        font-size: clamp(28px, 3.5vw, 48px);
    }
    .sec-para-regular, .arthro-para-bold, .gym-para-regular,
    .injury-para-bold, .trauma-para-regular {
        font-size: clamp(17px, 2vw, 24px);
    }
    .arthro-para-small, .injury-para-small {
        font-size: clamp(16px, 1.3vw, 20px);
    }
    .success-title { font-size: clamp(32px, 5vw, 60px); }

    /* Sec 3 — image left, fade hatao */
    .arthro-bg {
        height: 360px;
        background-position: left center;
    }
    .arthro-fade-overlay { background: none; }
    .arthro-text { padding: 30px 20px 40px; }

    /* Sec 4 */
    .gym-text { padding: 36px 20px 28px; }

    /* Sec 5 */
    .injury-bg { height: 320px; }
    .injury-text { padding: 30px 20px 40px; }

    /* Sec 6 */
    .trauma-text { padding: 36px 20px 28px; }
    .trauma-image { height: 340px; }
    .trauma-image-inner {
        width: 92%;
        height: 300px;
        border-radius: 280px 280px 0 0;
    }

    /* Sec 7 */
    .section-success { padding: 50px 0 0; }
    .success-grid { grid-template-columns: 1fr; }

    /* All button rows → full width stacked */
    .sec-btn-wrap,
    .arthro-btn-wrap,
    .gym-btn-wrap,
    .injury-btn-wrap,
    .trauma-btn-wrap {
        flex-direction: column;
        width: 100%;
    }
    .sec-btn,
    .arthro-btn,
    .gym-btn,
    .injury-btn,
    .trauma-btn {
        text-align: center;
        width: 100%;
        font-size: 15px;
        padding: 13px 20px;
    }
}