
/* ==========================================
   TRADEEAGLE SERVICES PAGE
========================================== */

.te-services-layout {
    --ts-orange: #FFBA01;
    --ts-navy: #003263;
    --ts-black: #151515;

    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;

    width: 100%;
    min-height: 100vh;

    font-family: 'DM Sans', Arial, sans-serif;
}

.te-services-layout,
.te-services-layout * {
    box-sizing: border-box;
}

.te-services-layout a {
    text-decoration: none;
}

.te-services-layout h1,
.te-services-layout h2,
.te-services-layout h3,
.te-services-layout p {
    overflow-wrap: break-word;
}

/* ==========================================
   LEFT COLUMN
========================================== */

.te-services-layout .ts-left {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: none;

    background: var(--ts-orange);
    overflow: hidden;
}

/* ==========================================
   SHARED TYPOGRAPHY
========================================== */

.te-services-layout .ts-section {
    padding: 85px clamp(24px, 4vw, 70px);
}

.te-services-layout .ts-section-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;

    gap: 12px;
    margin-bottom: 40px;

    color: var(--ts-navy);

    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.4px;
}

.te-services-layout .ts-heading {
    margin: 0 0 28px;

    color: var(--ts-black);

    font-size: 50px;
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -0.055em;
}

.te-services-layout .ts-heading em {
    display: block;
    font-style: normal;
    color: var(--ts-navy);
}

.te-services-layout .ts-section-text {
    margin: 0;

    color: #333333;

    font-size: 15px;
    line-height: 1.85;
}

/* ==========================================
   HERO
========================================== */

.te-services-layout .ts-hero {
    position: relative;
    isolation: isolate;

    display: flex;
    flex-direction: column;
    justify-content: center;

    min-height: 520px;
    padding: 35px clamp(24px, 4vw, 70px);

    background: var(--ts-orange);
    overflow: hidden;
}

.te-services-layout .ts-eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;

    margin-bottom: 38px;

    color: var(--ts-navy);

    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.te-services-layout .ts-line {
    width: 30px;
    height: 2px;
    background: var(--ts-navy);
}

.te-services-layout .ts-hero-title {
    position: relative;
    z-index: 1;

    margin: 0 0 28px;

    color: var(--ts-black);

    font-size: 50px;
    font-weight: 900;
    line-height: 0.98;
    letter-spacing: -0.07em;
}

.te-services-layout .ts-hero-title > span {
    display: block;
    color: var(--ts-navy);
}

.te-services-layout .ts-period {
    color: #ffffff;
}

.te-services-layout .ts-hero-subtitle {
    position: relative;
    z-index: 1;

    margin: 0 0 20px;

    color: var(--ts-navy);

    font-size: clamp(20px, 2.2vw, 30px);
    font-weight: 800;
    line-height: 1.3;
}

.te-services-layout .ts-hero-description {
    position: relative;
    z-index: 1;

    max-width: 520px;
    margin: 0;

    color: #282828;

    font-size: 15px;
    line-height: 1.85;
}

.te-services-layout .ts-hero-actions {
    position: relative;
    z-index: 1;

    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 24px;
    margin-top: 35px;
}

.te-services-layout .ts-primary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;

    gap: 25px;
    padding: 16px 24px;

    border-radius: 40px;

    background: var(--ts-navy);
    color: #ffffff;

    font-size: 11px;
    font-weight: 800;

    transition: 0.3s ease;
}

.te-services-layout .ts-primary-btn:hover {
    background: #111111;
    color: #ffffff;
    transform: translateY(-3px);
}

.te-services-layout .ts-scroll-hint {
    color: var(--ts-navy);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
}

.te-services-layout .ts-hero-watermark {
    position: absolute;
    right: -20px;
    bottom: -70px;

    color: rgba(0, 50, 99, 0.08);

    font-size: clamp(230px, 26vw, 420px);
    font-weight: 900;
    line-height: 1;

    pointer-events: none;
}

/* ==========================================
   INTRO
========================================== */

.te-services-layout .ts-intro {
    background: #ffffff;
}

.te-services-layout .ts-service-index {
    display: flex;
    justify-content: space-between;
    gap: 15px;

    margin-top: 40px;
    padding: 20px 0;

    border-top: 1px solid #dddddd;
    border-bottom: 1px solid #dddddd;

    color: var(--ts-navy);

    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
}

/* ==========================================
   SERVICE SECTIONS
========================================== */

.te-services-layout .ts-service {
    position: relative;
    padding: 85px clamp(24px, 4vw, 70px);

    overflow: hidden;
}

.te-services-layout .ts-service-light {
    background: #ffffff;
    color: var(--ts-black);
}

.te-services-layout .ts-service-orange {
    background: var(--ts-orange);
    color: var(--ts-black);
}

.te-services-layout .ts-service-navy {
    background: var(--ts-navy);
    color: #ffffff;
}

.te-services-layout .ts-service-top {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;
    margin-bottom: 45px;

    color: var(--ts-navy);

    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.te-services-layout .ts-service-navy .ts-service-top {
    color: var(--ts-orange);
}

.te-services-layout .ts-service-symbol {
    font-size: 30px;
    font-weight: 400;
}

.te-services-layout .ts-service-icon {
    display: grid;
    place-items: center;

    width: 95px;
    height: 95px;
    margin-bottom: 35px;

    border: 1px solid var(--ts-navy);
    border-radius: 50%;

    color: var(--ts-navy);
    font-size: 38px;
}

.te-services-layout .ts-service-navy .ts-service-icon {
    border-color: var(--ts-orange);
    color: var(--ts-orange);
}

.te-services-layout .ts-service-title {
    margin: 0 0 28px;

    font-size: 50px;
    font-weight: 900;
    line-height: 1.07;
    letter-spacing: -0.055em;
}

.te-services-layout .ts-service-title em {
    display: block;
    font-style: normal;
    color: var(--ts-navy);
}

.te-services-layout .ts-service-navy .ts-service-title em {
    color: var(--ts-orange);
}

.te-services-layout .ts-service-description {
    max-width: 530px;
    margin: 0 0 32px;

    color: #444444;

    font-size: 15px;
    line-height: 1.9;
}

.te-services-layout .ts-service-navy .ts-service-description {
    color: rgba(255, 255, 255, 0.8);
}

/* TAGS */

.te-services-layout .ts-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;

    margin-bottom: 35px;
}

.te-services-layout .ts-tags span {
    display: inline-flex;
    align-items: center;

    padding: 9px 14px;

    border: 1px solid rgba(0, 50, 99, 0.3);
    border-radius: 30px;

    color: var(--ts-navy);

    font-size: 11px;
    font-weight: 700;
}

.te-services-layout .ts-service-navy .ts-tags span {
    border-color: rgba(255, 255, 255, 0.35);
    color: #ffffff;
}

/* SERVICE LINKS */

.te-services-layout .ts-service-link {
    display: inline-flex;
    align-items: center;
    gap: 30px;

    padding-bottom: 9px;
    border-bottom: 2px solid currentColor;

    color: var(--ts-navy);

    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.5px;

    transition: gap 0.3s ease;
}

.te-services-layout .ts-service-link:hover {
    gap: 40px;
}

.te-services-layout .ts-service-navy .ts-service-link {
    color: var(--ts-orange);
}

/* ==========================================
   PROCESS
========================================== */

.te-services-layout .ts-process {
    background: var(--ts-orange);
}

.te-services-layout .ts-process-list {
    margin-top: 35px;
    border-top: 1px solid rgba(0, 50, 99, 0.3);
}

.te-services-layout .ts-process-item {
    display: grid;
    grid-template-columns: 50px minmax(0, 1fr) 25px;

    gap: 15px;
    padding: 27px 0;

    border-bottom: 1px solid rgba(0, 50, 99, 0.3);
}

.te-services-layout .ts-process-item > span {
    color: var(--ts-navy);
    font-size: 24px;
    font-weight: 900;
}

.te-services-layout .ts-process-item h3 {
    margin: 0 0 8px;

    color: var(--ts-black);
    font-size: 23px;
    font-weight: 900;
}

.te-services-layout .ts-process-item p {
    margin: 0;

    color: #333333;
    font-size: 13px;
    line-height: 1.8;
}

/* ==========================================
   CONTACT CTA
========================================== */

.te-services-layout .ts-contact {
    padding: 90px clamp(24px, 4vw, 70px);

    background: var(--ts-navy);
    color: #ffffff;
}

.te-services-layout .ts-contact .ts-section-label {
    color: var(--ts-orange);
}

.te-services-layout .ts-contact-eyebrow {
    display: block;
    margin-bottom: 25px;

    color: var(--ts-orange);

    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
}

.te-services-layout .ts-contact h2 {
    margin: 0 0 28px;

    color: #ffffff;

    font-size: 50px;
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -0.055em;
}

.te-services-layout .ts-contact h2 em {
    display: block;
    font-style: normal;
    color: var(--ts-orange);
}

.te-services-layout .ts-contact p {
    max-width: 490px;
    margin: 0 0 32px;

    color: rgba(255, 255, 255, 0.8);

    font-size: 14px;
    line-height: 1.9;
}

.te-services-layout .ts-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 35px;

    padding: 17px 25px;

    background: var(--ts-orange);
    color: var(--ts-navy);

    border-radius: 40px;

    font-size: 11px;
    font-weight: 900;

    transition: 0.3s ease;
}

.te-services-layout .ts-contact-btn:hover {
    background: #ffffff;
    color: var(--ts-navy);
    transform: translateY(-4px);
}

/* ==========================================
   RIGHT STICKY PANEL
========================================== */

.te-services-layout .ts-right {
    position: sticky !important;
    top: 0;

    display: flex !important;
    align-items: center;
    justify-content: center;

    align-self: start;

    width: 100%;
    min-width: 0;
    height: 100vh;
    height: 100dvh;

    padding: 35px;

    overflow-x: hidden;
    overflow-y: auto;

    background: var(--ts-orange);
}

.te-services-layout .ts-right-inner {
    width: 100%;
    max-width: 540px;
    margin: auto;
}

/* RIGHT HEADING */

.te-services-layout .ts-right-heading {
    margin-bottom: 30px;
}

.te-services-layout .ts-right-heading > span {
    display: block;
    margin-bottom: 14px;

    color: var(--ts-navy);

    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
}

.te-services-layout .ts-right-heading h2 {
    margin: 0 0 12px;

    color: var(--ts-navy);

    font-size: clamp(32px, 3vw, 49px);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -1.5px;
}

.te-services-layout .ts-right-heading h2 em {
    display: block;
    font-style: normal;
}

.te-services-layout .ts-right-heading p {
    margin: 0;

    color: #263d50;

    font-size: 14px;
    line-height: 1.7;
}

/* QUICK GRID */

.te-services-layout .ts-quick-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.te-services-layout .ts-quick-card {
    position: relative;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    min-width: 0;
    min-height: 195px;

    padding: 22px 12px;

    overflow: hidden;

    background: var(--ts-navy);
    border-radius: 14px;

    text-align: center;

    transition:
        transform 0.35s ease,
        background 0.35s ease,
        box-shadow 0.35s ease;
}

.te-services-layout .ts-quick-card::before {
    content: "";

    position: absolute;
    top: -55px;
    right: -55px;

    width: 130px;
    height: 130px;

    border: 1px solid rgba(249, 175, 0, 0.2);
    border-radius: 50%;

    transition: transform 0.4s ease;
}

.te-services-layout .ts-quick-card i {
    position: relative;
    z-index: 1;

    margin-bottom: 22px;

    color: var(--ts-orange);
    font-size: 55px;

    transition: transform 0.35s ease;
}

.te-services-layout .ts-quick-card h3 {
    position: relative;
    z-index: 1;

    margin: 0;

    color: #ffffff;

    font-size: clamp(15px, 1.4vw, 19px);
    font-weight: 800;
    line-height: 1.35;
}

.te-services-layout .ts-quick-card:hover {
    background: #001f40;
    transform: translateY(-7px);

    box-shadow: 0 15px 30px rgba(0, 50, 99, 0.2);
}

.te-services-layout .ts-quick-card:hover i {
    transform: scale(1.1);
}

.te-services-layout .ts-quick-card:hover::before {
    transform: scale(1.5);
}

/* RIGHT CTA */

.te-services-layout .ts-right-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;
    margin-top: 25px;
    padding: 16px 20px;

    background: #ffffff;
    color: var(--ts-navy);

    border-radius: 35px;

    font-size: 11px;
    font-weight: 900;

    transition: 0.3s ease;
}

.te-services-layout .ts-right-cta:hover {
    background: var(--ts-navy);
    color: #ffffff;
}

.te-services-layout .ts-right-bottom {
    display: flex;
    justify-content: space-between;

    gap: 15px;
    margin-top: 30px;
    padding-top: 18px;

    border-top: 1px solid rgba(0, 50, 99, 0.3);

    color: var(--ts-navy);

    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
}

/* ==========================================
   RESPONSIVE
========================================== */

@media (max-width: 1100px) and (min-width: 901px) {

    .te-services-layout .ts-right {
        padding: 20px;
    }

    .te-services-layout .ts-quick-grid {
        gap: 12px;
    }

    .te-services-layout .ts-quick-card {
        min-height: 155px;
    }

    .te-services-layout .ts-quick-card i {
        font-size: 42px;
    }

    .te-services-layout .ts-quick-card h3 {
        font-size: 15px;
    }
}

@media (max-width: 900px) {

    .te-services-layout {
        display: block !important;
    }

    .te-services-layout .ts-left {
        width: 100% !important;
        max-width: 100%;
    }

    .te-services-layout .ts-right {
        position: relative !important;
        top: auto;

        display: flex !important;

        width: 100%;
        height: auto;
        min-height: 0;

        padding: 55px 20px;
        overflow: visible;
    }

    .te-services-layout .ts-right-inner {
        max-width: 600px;
    }

    .te-services-layout .ts-hero {
        min-height: 590px;
    }

    .te-services-layout .ts-heading {
        font-size: clamp(36px, 6vw, 58px);
    }
}

@media (max-width: 600px) {

    .te-services-layout .ts-hero {
        min-height: 550px;
        padding: 65px 22px;
    }

    .te-services-layout .ts-hero-title {
        font-size: clamp(52px, 12vw, 75px);
    }

    .te-services-layout .ts-hero-subtitle {
        font-size: 21px;
    }

    .te-services-layout .ts-scroll-hint {
        display: none;
    }

    .te-services-layout .ts-section,
    .te-services-layout .ts-service {
        padding: 65px 22px;
    }

    .te-services-layout .ts-heading,
    .te-services-layout .ts-service-title {
        font-size: 30px;
    }

    .te-services-layout .ts-service-icon {
        width: 75px;
        height: 75px;
        font-size: 30px;
    }

    .te-services-layout .ts-contact {
        padding: 75px 22px;
    }

    .te-services-layout .ts-contact h2 {
        font-size: clamp(38px, 10vw, 55px);
    }

    .te-services-layout .ts-quick-card {
        min-height: 165px;
    }
}

@media (max-width: 480px) {

    .te-services-layout .ts-quick-grid {
        gap: 12px;
    }

    .te-services-layout .ts-quick-card {
        min-height: 145px;
        padding: 18px 8px;
    }

    .te-services-layout .ts-quick-card i {
        margin-bottom: 16px;
        font-size: 40px;
    }

    .te-services-layout .ts-quick-card h3 {
        font-size: 14px;
    }

    .te-services-layout .ts-process-item {
        grid-template-columns: 40px minmax(0, 1fr) 20px;
        gap: 10px;
    }

    .te-services-layout .ts-right-heading h2 {
        font-size: 34px;
    }
}

/* ==========================================
   ACCESSIBILITY
========================================== */

.te-services-layout a:focus-visible {
    outline: 3px solid var(--ts-navy);
    outline-offset: 4px;
}

.te-services-layout .ts-service-navy a:focus-visible,
.te-services-layout .ts-contact a:focus-visible {
    outline-color: var(--ts-orange);
}

@media (prefers-reduced-motion: reduce) {

    .te-services-layout *,
    .te-services-layout *::before,
    .te-services-layout *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}


/* ==========================================
   SERVICES RIGHT PANEL - NO OVERFLOW
========================================== */

@media (min-width: 901px) {

    .te-services-layout .ts-right {
        position: sticky !important;
        top: 0 !important;

        display: flex !important;
        align-items: center;
        justify-content: center;

        width: 100%;
        height: 100vh;
        height: 100dvh;

        min-height: 0;
        padding: 20px 28px;

        overflow: hidden !important;
        overscroll-behavior: none;
    }

    .te-services-layout .ts-right-inner {
        width: 100%;
        max-width: 520px;
        max-height: 100%;

        margin: 0 auto;
    }

    /* HEADING */

    .te-services-layout .ts-right-heading {
        margin-bottom: 18px;
    }

    .te-services-layout .ts-right-heading h2 {
        font-size: clamp(26px, 2.6vw, 42px);
        line-height: 1.08;
    }

    .te-services-layout .ts-right-heading p {
        font-size: 13px;
        line-height: 1.5;
    }

    /* FOUR CARDS */

    .te-services-layout .ts-quick-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .te-services-layout .ts-quick-card {
        min-height: 0;
        height: clamp(110px, 19vh, 170px);

        padding: 14px 10px;
    }

    .te-services-layout .ts-quick-card i {
        margin-bottom: 12px;
        font-size: clamp(30px, 3vw, 48px);
    }

    .te-services-layout .ts-quick-card h3 {
        font-size: clamp(13px, 1.2vw, 17px);
    }

    /* CTA */

    .te-services-layout .ts-right-cta {
        margin-top: 16px;
        padding: 13px 18px;
    }

    /* BOTTOM */

    .te-services-layout .ts-right-bottom {
        margin-top: 16px;
        padding-top: 12px;
    }
}

/* SHORT DESKTOP SCREENS */

@media (min-width: 901px) and (max-height: 700px) {

    .te-services-layout .ts-right {
        padding: 12px 24px;
    }

    .te-services-layout .ts-right-heading {
        margin-bottom: 10px;
    }

    .te-services-layout .ts-right-heading h2 {
        font-size: 28px;
    }

    .te-services-layout .ts-right-heading p {
        display: none;
    }

    .te-services-layout .ts-quick-card {
        height: clamp(85px, 16vh, 120px);
    }

    .te-services-layout .ts-quick-card i {
        margin-bottom: 8px;
        font-size: 30px;
    }

    .te-services-layout .ts-right-cta {
        margin-top: 10px;
        padding: 10px 15px;
    }

    .te-services-layout .ts-right-bottom {
        margin-top: 10px;
        padding-top: 8px;
    }
}

/* MOBILE - NORMAL PAGE FLOW */

@media (max-width: 900px) {

    .te-services-layout .ts-right {
        position: relative !important;
        height: auto !important;
        overflow: visible !important;
    }

    .te-services-layout .ts-right-inner {
        max-height: none;
    }
}

/* ==========================================
   ALL 7 SERVICES - RIGHT STICKY PANEL
========================================== */

@media (min-width: 901px) {

    .te-services-layout .ts-right {
        position: sticky !important;
        top: 0 !important;

        display: flex !important;
        align-items: center;
        justify-content: center;

        width: 100%;
        height: 100vh;
        height: 100dvh;

        padding: 18px 25px;

        overflow: hidden !important;

        background: #FFBA01;
    }

    .te-services-layout .ts-right-inner {
        display: flex;
        flex-direction: column;
        justify-content: center;

        width: 100%;
        max-width: 520px;
        max-height: 100%;

        margin: 0 auto;
    }

    /* HEADING */

    .te-services-layout .ts-right-heading {
        flex-shrink: 0;
        margin-bottom: 16px;
    }

    .te-services-layout .ts-right-heading > span {
        margin-bottom: 7px;
        font-size: 10px;
    }

    .te-services-layout .ts-right-heading h2 {
        margin-bottom: 5px;
        font-size: clamp(27px, 2.5vw, 40px);
        line-height: 1.05;
    }

    .te-services-layout .ts-right-heading h2 em {
        display: inline;
    }

    .te-services-layout .ts-right-heading p {
        font-size: 12px;
        line-height: 1.5;
    }

    /* 7 CARDS GRID */

    .te-services-layout .ts-quick-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: repeat(4, minmax(0, 1fr));

        gap: 10px;

        height: min(65vh, 560px);
        min-height: 0;
    }

    /* CARDS */

    .te-services-layout .ts-quick-card {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;

        min-width: 0;
        min-height: 0;
        height: 100%;

        padding: 10px 8px;

        background: #003263;
        border-radius: 12px;

        overflow: hidden;

        text-align: center;

        transition:
            background 0.3s ease,
            transform 0.3s ease,
            box-shadow 0.3s ease;
    }

    /* LAST CARD CENTER */

    .te-services-layout .ts-quick-card:last-child {
        grid-column: 1 / -1;
    }

    /* ICON */

    .te-services-layout .ts-quick-card i {
        margin-bottom: 9px;

        color: #FFBA01;

        font-size: clamp(25px, 2.5vw, 37px);

        transition: transform 0.3s ease;
    }

    /* TEXT */

    .te-services-layout .ts-quick-card h3 {
        margin: 0;

        color: #ffffff;

        font-size: clamp(12px, 1.05vw, 16px);
        font-weight: 800;
        line-height: 1.25;
    }

    /* HOVER */

    .te-services-layout .ts-quick-card:hover {
        background: #001f40;

        transform: translateY(-3px);

        box-shadow: 0 8px 18px rgba(0, 50, 99, 0.2);
    }

    .te-services-layout .ts-quick-card:hover i {
        transform: scale(1.12);
    }

    /* FOOTER */

    .te-services-layout .ts-right-bottom {
        flex-shrink: 0;

        margin-top: 13px;
        padding-top: 10px;

        font-size: 9px;
    }
}

/* ==========================================
   SHORT HEIGHT DESKTOP
========================================== */

@media (min-width: 901px) and (max-height: 750px) {

    .te-services-layout .ts-right {
        padding: 10px 20px;
    }

    .te-services-layout .ts-right-heading {
        margin-bottom: 9px;
    }

    .te-services-layout .ts-right-heading h2 {
        font-size: 27px;
    }

    .te-services-layout .ts-right-heading p {
        display: none;
    }

    .te-services-layout .ts-quick-grid {
        height: 69vh;
        gap: 7px;
    }

    .te-services-layout .ts-quick-card {
        padding: 7px;
        border-radius: 9px;
    }

    .te-services-layout .ts-quick-card i {
        margin-bottom: 5px;
        font-size: 25px;
    }

    .te-services-layout .ts-quick-card h3 {
        font-size: 12px;
    }

    .te-services-layout .ts-right-bottom {
        margin-top: 8px;
        padding-top: 7px;
    }
}

/* ==========================================
   MOBILE / TABLET
========================================== */

@media (max-width: 900px) {

    .te-services-layout .ts-right {
        position: relative !important;

        display: flex !important;

        width: 100%;
        height: auto !important;

        padding: 45px 20px;

        overflow: visible !important;
    }

    .te-services-layout .ts-right-inner {
        width: 100%;
        max-width: 600px;
        max-height: none;
    }

    .te-services-layout .ts-quick-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        height: auto;
    }

    .te-services-layout .ts-quick-card {
        min-height: 140px;
        height: auto;
        padding: 18px 10px;
    }

    .te-services-layout .ts-quick-card:last-child {
        grid-column: 1 / -1;
    }

    .te-services-layout .ts-quick-card i {
        font-size: 38px;
        margin-bottom: 12px;
    }

    .te-services-layout .ts-quick-card h3 {
        font-size: 14px;
    }
}

@media (max-width: 480px) {

    .te-services-layout .ts-quick-grid {
        gap: 10px;
    }

    .te-services-layout .ts-quick-card {
        min-height: 125px;
        padding: 14px 8px;
    }

    .te-services-layout .ts-quick-card i {
        font-size: 32px;
        margin-bottom: 10px;
    }

    .te-services-layout .ts-quick-card h3 {
        font-size: 13px;
    }
}

/* ==========================================
   RIGHT PANEL - 6 EQUAL SIZE CARDS
========================================== */

@media (min-width: 901px) {

    .te-services-layout .ts-right {
        position: sticky !important;
        top: 0 !important;

        display: flex !important;
        align-items: center;
        justify-content: center;

        height: 100vh;
        height: 100dvh;

        padding: 20px 25px;

        overflow: hidden !important;
    }

    .te-services-layout .ts-right-inner {
        width: 100%;
        max-width: 520px;
        max-height: 100%;
        margin: auto;
    }

    /* 2 COLUMNS X 3 ROWS */

    .te-services-layout .ts-quick-grid {
        display: grid !important;

        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: repeat(3, minmax(0, 1fr));

        gap: 12px;

        height: min(62vh, 480px);
        min-height: 0;
    }

    /* ALL CARDS SAME SIZE */

    .te-services-layout .ts-quick-card {
        grid-column: auto !important;
        grid-row: auto !important;

        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;

        width: 100%;
        height: 100%;
        min-width: 0;
        min-height: 0;

        padding: 12px 10px;

        background: #003263;
        border-radius: 12px;

        text-align: center;
        overflow: hidden;
    }

    /* ICON */

    .te-services-layout .ts-quick-card i {
        margin-bottom: 10px;
        color: #FFBA01;
        font-size: clamp(28px, 2.5vw, 40px);
    }

    /* TITLE */

    .te-services-layout .ts-quick-card h3 {
        margin: 0;
        color: #ffffff;

        font-size: clamp(12px, 1.1vw, 16px);
        font-weight: 800;
        line-height: 1.3;
    }
}

/* SHORT DESKTOP SCREENS */

@media (min-width: 901px) and (max-height: 700px) {

    .te-services-layout .ts-quick-grid {
        height: 60vh;
        gap: 8px;
    }

    .te-services-layout .ts-quick-card i {
        font-size: 27px;
        margin-bottom: 6px;
    }
}

/* MOBILE */

@media (max-width: 900px) {

    .te-services-layout .ts-quick-grid {
        display: grid !important;

        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: repeat(3, auto);

        gap: 12px;
        height: auto !important;
    }

    .te-services-layout .ts-quick-card {
        grid-column: auto !important;
        grid-row: auto !important;

        width: 100%;
        height: 145px;
        min-height: 145px;

        padding: 15px 10px;
    }
}

@media (max-width: 480px) {

    .te-services-layout .ts-quick-card {
        height: 125px;
        min-height: 125px;
    }

    .te-services-layout .ts-quick-card i {
        font-size: 32px;
        margin-bottom: 10px;
    }

    .te-services-layout .ts-quick-card h3 {
        font-size: 13px;
    }
}



/* ======================================================
   RIGHT SECTION OVERLAP FIX
   Left content and its styling remain unchanged.
   Force a consistent 2-column x 3-row card layout.
====================================================== */

@media (min-width: 901px) {
    .te-services-layout .ts-right {
        position: sticky !important;
        top: 0 !important;
        align-self: start !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        height: 100vh !important;
        height: 100dvh !important;
        min-height: 0 !important;
        padding: 28px 25px !important;
        overflow: hidden !important;
    }

    .te-services-layout .ts-right-inner {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        width: 100% !important;
        max-width: 540px !important;
        max-height: 100% !important;
        min-width: 0 !important;
        margin: 0 auto !important;
    }

    .te-services-layout .ts-right-heading {
        flex: 0 0 auto !important;
        margin: 0 0 16px !important;
    }

    .te-services-layout .ts-quick-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        grid-template-rows: repeat(3, minmax(0, 1fr)) !important;
        grid-auto-flow: row !important;
        align-content: stretch !important;
        align-items: stretch !important;
        justify-items: stretch !important;
        gap: 16px !important;
        width: 100% !important;
        height: min(64vh, 425px) !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .te-services-layout .ts-quick-card,
    .te-services-layout .ts-quick-card:nth-child(n) {
        position: relative !important;
        grid-column: auto !important;
        grid-row: auto !important;
        align-self: stretch !important;
        justify-self: stretch !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        height: 100% !important;
        min-width: 0 !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 12px 10px !important;
        transform: none !important;
        box-sizing: border-box !important;
    }

    .te-services-layout .ts-quick-card i {
        flex: 0 0 auto !important;
        margin: 0 0 10px !important;
        font-size: clamp(27px, 2.5vw, 40px) !important;
    }

    .te-services-layout .ts-quick-card h3 {
        margin: 0 !important;
        font-size: clamp(12px, 1.1vw, 16px) !important;
        line-height: 1.3 !important;
        overflow-wrap: anywhere !important;
    }

    .te-services-layout .ts-quick-card:hover {
        transform: none !important;
    }
}

@media (min-width: 901px) and (max-height: 700px) {
    .te-services-layout .ts-right {
        padding-top: 14px !important;
        padding-bottom: 14px !important;
    }

    .te-services-layout .ts-right-heading {
        margin-bottom: 10px !important;
    }

    .te-services-layout .ts-right-heading p {
        display: none !important;
    }

    .te-services-layout .ts-quick-grid {
        height: min(66vh, 390px) !important;
        gap: 10px !important;
    }
}

@media (max-width: 900px) {
    .te-services-layout .ts-right {
        position: relative !important;
        top: auto !important;
        display: block !important;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        padding: 45px 20px !important;
        overflow: visible !important;
    }

    .te-services-layout .ts-right-inner {
        display: block !important;
        width: 100% !important;
        max-width: 600px !important;
        max-height: none !important;
        margin: 0 auto !important;
    }

    .te-services-layout .ts-quick-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        grid-template-rows: none !important;
        grid-auto-rows: minmax(125px, auto) !important;
        gap: 12px !important;
        width: 100% !important;
        height: auto !important;
        margin: 0 !important;
    }

    .te-services-layout .ts-quick-card,
    .te-services-layout .ts-quick-card:nth-child(n) {
        grid-column: auto !important;
        grid-row: auto !important;
        width: 100% !important;
        height: auto !important;
        min-height: 125px !important;
        margin: 0 !important;
        transform: none !important;
    }
}

@media (max-width: 480px) {
    .te-services-layout .ts-quick-grid {
        gap: 10px !important;
    }

    .te-services-layout .ts-quick-card,
    .te-services-layout .ts-quick-card:nth-child(n) {
        min-height: 115px !important;
        padding: 12px 7px !important;
    }

    .te-services-layout .ts-quick-card i {
        font-size: 30px !important;
        margin-bottom: 8px !important;
    }

    .te-services-layout .ts-quick-card h3 {
        font-size: 12px !important;
    }
}
