/*!
Theme Name: Rana Bros
Theme URI: http://underscores.me/
Author: Underscores.me
Author URI: http://underscores.me/
Description: Description
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: rana-bros
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

Rana Bros is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Generic
	- Normalize
	- Box sizing
# Base
	- Typography
	- Elements
	- Links
	- Forms
## Layouts
# Components
	- Navigation
	- Posts and pages
	- Comments
	- Widgets
	- Media
	- Captions
	- Galleries
# plugins
	- Jetpack infinite scroll
# Utilities
	- Accessibility
	- Alignments

--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Generic
--------------------------------------------------------------*/

/* Normalize
--------------------------------------------- */

/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

/* Document
	 ========================================================================== */

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */
/* FIRST TEXT ONLY FIX */
/* FIRST TEXT DEFAULT NORMAL */

.color-primary {
    color: #a97e00;
}

.colo-span {
    font-size: 40px;
    font-weight: 400;
    line-height: 50px;
}

.col-mt-5 {
    margin-top: 60px !important;
}

.col-mt-4 {
    margin-top: 40px !important;
}

p {
    font-size: 20px;
}

.mxd-hero-02-image__portrait {
    position: absolute;
    color: #000;
    z-index: 1;
    white-space: nowrap;
    transition: all .8s ease;
    filter: blur(0px);
    opacity: 1;
}

/* WHEN SCROLL START / ACTIVE */
.mxd-hero-02.scrolled .mxd-hero-02-image__portrait {
    filter: blur(8px);
    opacity: .35;
    transform: scale(1.05);
}

.mxd-hero-02-marquee__image {
    z-index: 5;
}

.col-brand-logo {
    width: 65px;
}

.col-bg-white {
    background-color: #f3f3f3;
}

.col-bg-black {
    background-color: #191917;
}

.col-p-small {
    font-size: 18px;
}

.col-font li {
    font-size: 32px;
    color: #000;
}

.col-white {
    border-color: #fff;
    color: #fff;
}

.header-center-text {
    position: absolute;
    left: 52%;
    top: 75%;
    transform: translate(-50%, -50%);

    font-size: 20px;
    font-weight: 600;
    color: #000;
    /* change color if needed */
    white-space: nowrap;
}

/* Wrapper */
.custom-image-box {
    position: fixed;
    display: inline-block;
    border-radius: 30px;
    overflow: visible;
    /* important */
}

.col-width {
    width: 27px;
    color: #fff;
}



/* =========================================
   SIGNS YOU'RE READY
========================================= */

.signs-ready-section {
    position: relative;
    min-height: 750px;
    overflow: hidden;
    /* background: #fff; */
}

.signs-ready-section .mxd-container {
    position: relative;
    min-height: 750px;
}


/* =========================================
   TOP
========================================= */

.signs-ready-top {
    position: absolute;
    top: 28px;
    left: 0;
    right: 0;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-number {
    margin-left: 0;

    font-size: 13px;
    line-height: 1;
    letter-spacing: 1px;
    color: #111;
}

.section-label {
    display: flex;
    align-items: center;
    gap: 8px;

    font-size: 11px;
    line-height: 1;
    color: #111;

    margin-right: 0;
}

.section-label span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #111;
    display: inline-block;
}


/* =========================================
   MAIN HEADING
========================================= */

.signs-ready-heading {
    position: absolute;
    top: 82px;
    left: 4%;
}

.signs-ready-heading h2 {
    margin: 0;

    font-size: clamp(48px, 5vw, 72px);
    line-height: 0.91;
    font-weight: 600;
    letter-spacing: -3px;

    color: #171717;
}


/* =========================================
   STAGGERED LIST
========================================= */

.signs-ready-list {
    position: absolute;

    top: 295px;
    left: 14%;
    right: 17%;

    height: 270px;
}


/* Individual Item */

.ready-item {
    position: absolute;

    display: flex;
    align-items: flex-start;

    gap: 14px;

    color: #111;
}

.ready-item p {
    margin: 0;
    font-size: 15px;
    line-height: 1.15;
    font-weight: 400;
}

.ready-brace {
    font-size: 30px;
    line-height: 35px;
    font-weight: 300;
}


/* First */

.ready-item-1 {
    top: 0;
    left: 0;
}


/* Second */

.ready-item-2 {
    top: 49px;
    left: 14%;
}


/* Third */

.ready-item-3 {
    top: 99px;
    left: 28%;
}


/* Fourth */

.ready-item-4 {
    top: 149px;
    left: 43%;
}


/* Fifth */

.ready-item-5 {
    top: 198px;
    left: 57%;
}


/* =========================================
   VERTICAL "DONE."
========================================= */

.done-text {
    position: absolute;

    right: 9%;
    top: 90px;

    font-size: clamp(70px, 9vw, 125px);
    line-height: 0.75;
    font-weight: 600;
    letter-spacing: -5px;

    color: #171717;

    writing-mode: vertical-rl;
    transform: rotate(180deg);
}


/* =========================================
   GET SHIT
========================================= */

.get-shit-text {
    position: absolute;

    right: 10%;
    bottom: 20px;

    font-size: clamp(60px, 7vw, 80px);
    line-height: 0.95;
    font-weight: 600;
    letter-spacing: -5px;

    color: #171717;
}


/* =========================================
   BOTTOM DOT
========================================= */

.bottom-dot {
    position: absolute;

    left: 0;
    bottom: 58px;

    width: 13px;
    height: 13px;

    border-radius: 50%;
    background: #111;
}


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

@media (max-width: 991px) {

    .signs-ready-section,
    .signs-ready-section .mxd-container {
        min-height: 680px;
    }

    .signs-ready-heading {
        left: 3%;
        top: 90px;
    }

    .signs-ready-heading h2 {
        font-size: 52px;
        letter-spacing: -2px;
    }

    .signs-ready-list {
        left: 8%;
        right: 20%;
        top: 270px;
    }

    .ready-item p {
        font-size: 11px;
    }

    .ready-item-2 {
        left: 12%;
    }

    .ready-item-3 {
        left: 25%;
    }

    .ready-item-4 {
        left: 38%;
    }

    .ready-item-5 {
        left: 50%;
    }

    .done-text {
        right: 4%;
        top: 300px;
        font-size: 80px;
    }

    .get-shit-text {
        right: 4%;
        bottom: 50px;
        font-size: 65px;
    }
}


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

@media (max-width: 767px) {

    .signs-ready-section,
    .signs-ready-section .mxd-container {
        min-height: 900px;
    }

    .signs-ready-top {
        top: 25px;
    }

    .section-label {
        font-size: 9px;
    }

    .signs-ready-heading {
        top: 90px;
        left: 0;
    }

    .signs-ready-heading h2 {
        font-size: 43px;
        line-height: 0.95;
        letter-spacing: -2px;
    }


    /* List becomes vertical */

    .signs-ready-list {
        position: absolute;

        top: 255px;
        left: 0;
        right: 45px;

        height: auto;
    }

    .ready-item {
        position: relative;

        left: auto !important;
        top: auto !important;

        margin-bottom: 32px;

        gap: 10px;
    }

    .ready-item p {
        font-size: 11px;
        line-height: 1.3;
    }

    .ready-brace {
        font-size: 18px;
    }


    /* Done */

    .done-text {
        top: auto;
        right: 0;
        bottom: 190px;

        font-size: 62px;
        letter-spacing: -3px;
    }


    /* Get shit */

    .get-shit-text {
        right: 0;
        bottom: 50px;

        font-size: 52px;
        letter-spacing: -3px;
    }


    .bottom-dot {
        left: 0;
        bottom: 50px;

        width: 10px;
        height: 10px;
    }
}


/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 480px) {

    .signs-ready-section,
    .signs-ready-section .mxd-container {
        min-height: 850px;
    }

    .signs-ready-heading {
        top: 85px;
    }

    .signs-ready-heading h2 {
        font-size: 36px;
    }

    .signs-ready-list {
        top: 225px;
        right: 35px;
    }

    .ready-item {
        margin-bottom: 25px;
    }

    .ready-item p {
        font-size: 10px;
    }

    .done-text {
        font-size: 50px;
        bottom: 165px;
    }

    .get-shit-text {
        font-size: 42px;
        bottom: 45px;
    }
}



/* Doitsection css */
/* ── sticky wrapper — this is what creates scroll room ── */
.hero-wrapper {
    position: relative;
    height: 200vh;
}


/* Sticky image section */
.hero {
    position: sticky;
    top: 0;

    height: 100vh;

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

    overflow: hidden;
    background: #111;
}

/* ── photo ── */
.photo-wrap {
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

.photo-wrap img {
    display: block;
    width: 460px;
    max-width: 46vw;
    height: auto;
    filter: grayscale(1);
}

/* ── text block overlapping right side of photo ── */
.text-block {
    position: absolute;
    right: calc(50% - 460px);
    display: flex;
    flex-direction: column;
    line-height: 0.88;
    z-index: 3;
    pointer-events: none;
    transform: translateX(30%);
}

@media (max-width: 900px) {
    .text-block {
        right: 0;
        transform: translateX(0);
    }

    .photo-wrap img {
        max-width: 54vw;
    }
}

.text-block span {
    font-size: clamp(80px, 12vw, 160px);
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.02em;
    white-space: nowrap;
    display: inline-block;
    filter: blur(0px);
    transition: filter 0.05s linear;
}

.row1 {
    display: flex;
}

.row2 {
    display: flex;
}

.caption {
    position: absolute;
    bottom: 8vh;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 4;
    width: 100%;
    max-width: 90vw;
}

.caption h2 {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.caption p {
    font-size: 18px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.85);
    max-width: 700px;
    margin: 0 auto;
}

.fs-17 {
    font-size: 17px;
}

.pb-3rem {
    padding-bottom: 3rem;
}



/* =========================================================
   DIAGNOSIS / CONSULTATION PROCESS
   Everything is scoped to #diagnosis
   ========================================================= */

#diagnosis {
    padding-top: 80px;
    padding-bottom: 100px;
    /* background: #f5f5f3; */
    overflow: hidden;
}

#diagnosis .diagnosis-process {
    width: 100%;
}

/* =========================
   TOP AREA
   ========================= */

#diagnosis .diagnosis-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    min-height: 150px;
}

#diagnosis .diagnosis-note {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 7px;
    padding-top: 8px;
}

#diagnosis .diagnosis-note span {
    line-height: 1;
    color: #111;
}

#diagnosis .diagnosis-note p {
    margin: 0;
    line-height: 1.4;
    color: #222;
}

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

#diagnosis .diagnosis-intro {
    width: 440px;
    margin-left: 38%;
    margin-top: 50px;
    margin-bottom: 70px;
}

#diagnosis .diagnosis-intro p {
    margin: 0 0 18px;
    font-size: 17px;
    line-height: 1.25;
    color: #333;
}

#diagnosis .diagnosis-intro p:last-child {
    margin-bottom: 0;
}

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

#diagnosis .diagnosis-process-grid {
    display: grid;
    grid-template-columns: 38% 62%;
    align-items: start;
}

#diagnosis .diagnosis-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding-top: 5px;
    line-height: 1.3;
    color: #333;
}

#diagnosis .diagnosis-label span:first-child {
    color: #111;
}

/* =========================
   STEPS
   ========================= */

#diagnosis .diagnosis-steps {
    width: 100%;
}

#diagnosis .diagnosis-step {
    position: relative;
    display: grid;
    grid-template-columns: 190px 1fr;
    min-height: 100px;
    border-top: 1px solid #cfcfcf;
    overflow: hidden;
}

#diagnosis .diagnosis-step:last-child {
    border-bottom: 1px solid #cfcfcf;
}

/* =========================
   NUMBERS
   ========================= */

#diagnosis .diagnosis-number {
    align-self: end;
    margin-bottom: -4px;

    font-size: 72px;
    line-height: 0.8;
    font-weight: 600;
    letter-spacing: -0.06em;

    color: #a97e006b;
}

/* =========================
   CONTENT
   ========================= */

#diagnosis .diagnosis-content {
    padding: 20px 40px 20px 10px;
}

#diagnosis .diagnosis-content h3 {
    margin: 0 0 8px;

    font-size: 30px;
    line-height: 1.1;
    font-weight: 500;
    letter-spacing: -0.03em;
    text-transform: uppercase;

    color: #222;
}

#diagnosis .diagnosis-content p {
    /* max-width: 400px; */
    margin: 0;

    font-size: 17px;
    line-height: 1.35;
    color: #444;
}

/* =========================
   DESKTOP SIZE MATCH
   ========================= */

@media (min-width: 1200px) {

    #diagnosis {
        padding-left: 32px;
        padding-right: 32px;
    }

    #diagnosis .diagnosis-top {
        min-height: 155px;
    }

    #diagnosis .diagnosis-intro {
        margin-top: 55px;
        margin-bottom: 75px;
    }

    #diagnosis .diagnosis-step {
        min-height: 100px;
        overflow: hidden;
    }

    #diagnosis .diagnosis-number {
        font-size: 105px;
        /* margin-bottom: -20px; */
    }
}

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

@media (max-width: 991px) {

    #diagnosis {
        padding-top: 60px;
        padding-bottom: 70px;
    }

    #diagnosis .diagnosis-top {
        grid-template-columns: 1fr;
    }

    #diagnosis .diagnosis-note {
        justify-content: flex-start;
        margin-top: 25px;
    }

    #diagnosis .diagnosis-intro {
        margin-left: 30%;
        margin-top: 60px;
        margin-bottom: 60px;
    }

    #diagnosis .diagnosis-process-grid {
        grid-template-columns: 25% 75%;
    }

    #diagnosis .diagnosis-step {
        grid-template-columns: 120px 1fr;
        overflow: hidden;
    }

    #diagnosis .diagnosis-number {
        font-size: 60px;
    }

    #diagnosis .diagnosis-content {
        padding-right: 20px;
    }
}

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

@media (max-width: 767px) {

    #diagnosis {
        padding-top: 50px;
        padding-bottom: 60px;
    }

    #diagnosis .diagnosis-top {
        display: block;
    }

    #diagnosis .diagnosis-title h2 {
        font-size: clamp(48px, 14vw, 70px);
        line-height: 0.9;
    }

    #diagnosis .diagnosis-note {
        margin-top: 25px;
        justify-content: flex-start;
    }

    #diagnosis .diagnosis-intro {
        width: 55%;
        margin-left: 35%;
        margin-top: 55px;
        margin-bottom: 55px;
    }

    #diagnosis .diagnosis-process-grid {
        display: block;
    }

    #diagnosis .diagnosis-label {
        margin-bottom: 25px;
    }

    #diagnosis .diagnosis-step {
        grid-template-columns: 90px 1fr;
        min-height: 115px;
        overflow: hidden;
    }

    #diagnosis .diagnosis-number {
        font-size: 50px;
    }

    #diagnosis .diagnosis-content {
        padding: 18px 10px 18px 10px;
    }

    #diagnosis .diagnosis-content h3 {
        font-size: 20px;
        margin-bottom: 7px;
    }

    #diagnosis .diagnosis-content p {
        font-size: 16px;
        line-height: 1.4;
    }
}

/* =========================
   SMALL MOBILE
   ========================= */

@media (max-width: 480px) {

    #diagnosis .diagnosis-title h2 {
        font-size: 46px;
    }

    #diagnosis .diagnosis-intro {
        width: 65%;
        margin-left: 30%;
    }

    #diagnosis .diagnosis-step {
        grid-template-columns: 70px 1fr;
        overflow: hidden;
    }

    #diagnosis .diagnosis-number {
        font-size: 37px;
    }

    #diagnosis .diagnosis-content {
        padding-left: 8px;
        padding-right: 0;
    }
}


/* Popup Css */
/* =========================
   Image Lightbox
========================= */

.image-lightbox {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    z-index: 99999;

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

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.image-lightbox.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.lightbox-content {
    width: 90%;
    height: 90%;

    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;

    object-fit: contain;

    border-radius: 5px;

    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.image-lightbox.active .lightbox-content img {
    transform: scale(1);
}


/* Close button */
.lightbox-close {
    position: absolute;
    top: 25px;
    right: 35px;

    width: 45px;
    height: 45px;

    border: 0;
    background: transparent;

    color: #fff;
    font-size: 40px;
    line-height: 1;

    cursor: pointer;

    z-index: 10;
}


/* Previous / Next buttons */
.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);

    width: 55px;
    height: 55px;

    border: 0;
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.15);
    color: #fff;

    font-size: 30px;

    cursor: pointer;

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

    transition: background 0.3s ease;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}


/* Mobile */
@media (max-width: 767px) {

    .lightbox-content {
        width: 90%;
        height: 80%;
    }

    .lightbox-prev,
    .lightbox-next {
        width: 45px;
        height: 45px;
        font-size: 24px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .lightbox-close {
        top: 15px;
        right: 15px;
        font-size: 35px;
    }
}





/* =========================================================
   RANA BROS - SECTION 02
   BUSINESS DIAGNOSIS
   ========================================================= */

.rb-diagnosis-section {
    background: #f7f6f2;
    color: #171717;
    overflow: hidden;
}

/* ---------------------------------------------------------
   TOP BAR
   --------------------------------------------------------- */

.rb-diagnosis__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0 0 55px;
}

.rb-brand,
.rb-category {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.rb-category {
    color: #777;
}


/* ---------------------------------------------------------
   LEFT COLUMN
   --------------------------------------------------------- */

.rb-diagnosis__left {
    position: relative;
    padding: 15px 40px 0 0;
    min-height: 750px;
}

.rb-vertical-line {
    width: 1px;
    height: 70px;
    background: #b08b3c;
    margin-left: 40px;
    margin-bottom: 28px;
}

.rb-vertical-line--bottom {
    margin-top: 30px;
    margin-bottom: 0;
}

.rb-section-number {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11px;
    letter-spacing: 3px;
    color: #777;
    margin-bottom: 35px;
}

.rb-diagnosis__left h2 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(28px, 3vw, 44px);
    line-height: 1.05;
    font-weight: 400;
    letter-spacing: -1px;
    color: #6e5a2c;
}

.rb-big-number {
    margin-top: 5px;
    font-size: clamp(180px, 17vw, 280px);
    line-height: 0.75;
    font-weight: 400;
    letter-spacing: -18px;
    color: #9a7b35;
}

.rb-big-number span {
    font-size: 0.48em;
    letter-spacing: -12px;
    vertical-align: top;
    position: relative;
    top: 10px;
}

.rb-diagnosis__left h3 {
    margin: 45px 0 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(23px, 2.2vw, 34px);
    line-height: 1.08;
    font-weight: 400;
    letter-spacing: -0.5px;
    color: #242424;
}


/* ---------------------------------------------------------
   RIGHT COLUMN
   --------------------------------------------------------- */

.rb-diagnosis__right {
    position: relative;
    min-height: 750px;
    padding: 20px 0 0 80px;
}


/* Intro */

.rb-diagnosis__intro {
    max-width: 480px;
}


/* ---------------------------------------------------------
   SIDE STATEMENT
   --------------------------------------------------------- */

.rb-side-statement {
    position: absolute;
    top: 55px;
    right: 0;

    display: flex;
    align-items: flex-start;
    gap: 14px;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    line-height: 1.25;
    color: #333;

    max-width: 180px;
}

.rb-dot {
    width: 9px;
    height: 9px;
    min-width: 9px;
    margin-top: 4px;
    border-radius: 50%;
    background: #b08b3c;
}


/* ---------------------------------------------------------
   MAIN STATEMENT
   --------------------------------------------------------- */

.rb-diagnosis__statement {
    margin-top: 205px;
    max-width: 900px;
}

.rb-small-line {
    display: block;
    margin-bottom: 18px;
    font-size: 20px;
    color: #000;
}

.rb-diagnosis__statement h3 {
    margin: 0 0 12px;

    font-family: Arial, Helvetica, sans-serif;
    font-size: clamp(38px, 4vw, 62px);
    line-height: 1.05;
    font-weight: 400;
    letter-spacing: -2px;
    color: #171717;
}

/* ---------------------------------------------------------
   CTA
   --------------------------------------------------------- */

.rb-diagnosis__cta {
    display: flex;
    justify-content: flex-end;
    margin-top: 55px;
    padding-right: 20px;
}

.rb-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 30px;

    min-width: 300px;
    padding: 19px 25px;

    background: #171717;
    border: 1px solid #b08b3c;

    color: #c9a85d;
    text-decoration: none;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;

    transition:
        background 0.3s ease,
        color 0.3s ease;
}

.rb-button span {
    font-size: 18px;
    line-height: 1;
    transition: transform 0.3s ease;
}

.rb-button:hover {
    background: #b08b3c;
    color: #171717;
}

.rb-button:hover span {
    transform: translateX(5px);
}


/* ---------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------- */

@media (max-width: 1199px) {

    .rb-diagnosis {
        min-height: auto;
    }

    .rb-diagnosis__left {
        min-height: auto;
        padding-right: 0;
        padding-bottom: 80px;
    }

    .rb-diagnosis__right {
        min-height: auto;
        padding-left: 0;
    }

    .rb-side-statement {
        right: 0;
    }

    .rb-diagnosis__statement {
        margin-top: 160px;
    }
}


@media (max-width: 767px) {

    .rb-diagnosis__top {
        padding-bottom: 40px;
    }

    .rb-brand,
    .rb-category {
        font-size: 9px;
        letter-spacing: 2.5px;
    }

    .rb-category {
        display: none;
    }

    .rb-diagnosis__left {
        padding-top: 0;
        padding-bottom: 70px;
    }

    .rb-vertical-line {
        margin-left: 10px;
        height: 45px;
    }

    .rb-diagnosis__left h2 {
        font-size: 29px;
    }

    .rb-big-number {
        font-size: 150px;
        letter-spacing: -10px;
    }

    .rb-diagnosis__left h3 {
        font-size: 24px;
        margin-top: 35px;
    }

    .rb-diagnosis__right {
        padding: 0;
    }

    .rb-diagnosis__intro {
        max-width: 100%;
        padding-right: 45px;
    }

    .rb-side-statement {
        position: static;
        margin-top: 45px;
        max-width: 100%;
    }

    .rb-diagnosis__statement {
        margin-top: 100px;
    }

    .rb-small-line {
        font-size: 16px;
    }

    .rb-diagnosis__statement h3 {
        font-size: 36px;
        letter-spacing: -1.5px;
    }

    .desktop-only {
        display: none;
    }

    .rb-diagnosis__cta {
        justify-content: flex-start;
        margin-top: 40px;
        padding-right: 0;
    }

    .rb-button {
        width: 100%;
        min-width: 0;
    }
}

.col-fs-bold span {
    font-weight: 700;
    font-style: italic !important;
}

.mxd-links-lines__title {
    position: relative;
    padding-left: 28px;
}

.mxd-links-lines__title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 8px;
    height: 8px;
    background: #000;
    border-radius: 50%;
    transform: translateY(-50%);
}

.mxd-links-lines__item p {
    padding-left: 28px;
}

.mxd-block__name {
    position: relative;
}

.rules-subtitle {
    display: block;
    font-size: 20px;
    line-height: 1;
    margin-top: 5px;
    margin-left: 210px;
    color: #111;
}

.rules-card {
    position: relative;
}

.rules-number {
    display: block;
    font-size: 16px;
    line-height: 1;
    margin-bottom: 18px;
    color: #111;
}

.rules-card .mxd-counter h5 {
    margin: 0;
    font-size: 42px;
    line-height: 1;
    font-weight: 500;
    text-transform: uppercase;
}

.col-rules-subtitle {
    font-size: 20px;
    line-height: 1.3;
    margin-top: 8px;
    color: #222;
}

.rules-divider {
    width: 100%;
    height: 1px;
    background: #bdbdbd;
    margin: 20px 0 30px;
}

.rules-card .mxd-stats-simple__descr {
    font-size: 17px;
    line-height: 1.45;
    margin: 0;
    color: #222;
}

.rules-card .mxd-stats-simple__descr strong {
    font-weight: 700;
}


/* Tablet */
@media (max-width: 991px) {
    .rules-card .mxd-counter h5 {
        font-size: 36px;
    }

    .col-rules-subtitle {
        font-size: 18px;
    }
}


/* Mobile */
@media (max-width: 767px) {
    .rules-card {
        margin-bottom: 30px;
    }

    .rules-card .mxd-counter h5 {
        font-size: 32px;
    }

    .col-rules-subtitle {
        font-size: 17px;
    }

    .rules-divider {
        margin: 15px 0 25px;
    }
}


/* ========================================
   AGAIN SECTION
======================================== */

.again-test {
    --again-bg: #191917;
    --again-blur: clamp(3px, 0.5vw, 7px);
    --again-title-font: "Times New Roman", Times, serif;

    /* Fixed fade: bright center, fading upper/lower lines */
    --again-fade: linear-gradient(to bottom,
            transparent 0%,
            rgb(0 0 0 / 3%) 12%,
            rgb(0 0 0 / 45%) 30%,
            #000 46%,
            #000 54%,
            rgb(0 0 0 / 28%) 70%,
            rgb(0 0 0 / 1.5%) 88%,
            transparent 100%);

    position: relative;
    padding-block: 0;
    background: var(--again-bg);
    color: #fff;
    isolation: isolate;
}

.again-test,
.again-test * {
    box-sizing: border-box;
}

/* Uses your existing mxd-container */
.again-test .again-test__stage {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-block: 40px 70px;
    text-align: center;
}

/* ========================================
   AGAIN HEADING
======================================== */

.again-test .again-test__title {
    display: inline-flex;
    justify-content: center;

    margin: 0 0 100px;
    padding: 0;

    color: #fff;
    font-family: var(--again-title-font);
    font-size: clamp(90px, min(16vw, 28svh), 230px);
    font-weight: 400;
    font-style: normal;

    line-height: 0.95;
    letter-spacing: -0.055em;
    white-space: nowrap;
}

.again-test__letter {
    display: inline-block;
}

/* Small center label */
.again-test .again-test__label {
    margin: 0 0 50px;
    color: #fff;
    font: 400 clamp(15px, 1.4vw, 19px) / 1.4 Arial, sans-serif;
    letter-spacing: -0.025em;
}

/* ========================================
   QUESTION TRACK
======================================== */

.again-test__window {
    position: relative;
    width: 100%;
}

.again-test .again-test__track {
    position: relative;
    z-index: 1;

    width: 100%;
    margin: 0;
    padding: 0;

    list-style: none;
}

.again-test .again-test__track li {
    margin: 0;
    padding: 0;

    color: #e0e0e0;
    font: 400 clamp(18px, 3.03vw, 38px) / 1.8 Arial, sans-serif;

    text-align: center;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

/* ========================================
   SCROLL SCENE
   Enabled by JavaScript.
   Without JS, all questions remain readable.
======================================== */

.again-test.is-ready {
    overflow-anchor: none;
}

.again-test.is-ready .again-test__stage {
    height: 100vh;
    height: 100svh;

    display: grid;
    grid-template-rows: 43% 12% 36% 9%;
    justify-items: center;
    align-items: center;

    padding-block: 0;
    will-change: transform;
}

.again-test.is-ready .again-test__title {
    align-self: start;
    margin: clamp(20px, 3.8svh, 60px) 0 0;
}

.again-test.is-ready .again-test__label {
    margin: 0;
}

/* The mask stays fixed while its text moves */
.again-test.is-ready .again-test__window {
    height: 100%;
    overflow: hidden;
    -webkit-mask-image: var(--again-fade);
    mask-image: var(--again-fade);
}

/* Stationary soft glow behind the active question */
.again-test.is-ready .again-test__window::before {
    content: "";
    position: absolute;
    z-index: 0;
    inset: calc(50% - 12px) 0 auto;
    height: 78px;
    transform: translateY(-50%);
    background: linear-gradient(to right,
            transparent,
            rgb(176 139 60 / 15%) 15%,
            rgb(176 139 60 / 15%) 85%,
            transparent);

    filter: blur(20px);
    pointer-events: none;
}

.again-test.is-ready .again-test__track {
    will-change: transform;
}

/* ========================================
   FIRST A: SHARP → BLUR → SHARP
======================================== */

.again-test.is-ready .again-test__letter {
    animation: again-test-focus 5s ease-in-out infinite;
    animation-play-state: paused;
    will-change: filter;
}

.again-test.is-ready.is-visible .again-test__letter {
    animation-play-state: running;
}

@keyframes again-test-focus {

    0%,
    15%,
    100% {
        filter: blur(0);
        opacity: 1;
    }

    45%,
    65% {
        filter: blur(var(--again-blur));
        opacity: 0.85;
    }
}

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

@media (max-width: 767px) {
    .again-test .again-test__track li {
        padding-block: 7px;
        font-size: clamp(18px, 4.5vw, 27px);
        line-height: 1.35;
        letter-spacing: -0.025em;
    }
}

/* Reduced-motion users receive the static layout */
@media (prefers-reduced-motion: reduce) {
    .again-test .again-test__letter {
        animation: none !important;
        filter: none !important;
    }
}

.img-fluid1 {
    height: 290px;
    object-fit: cover;
}

.testimonial-list {
    width: 100%;
}

.testimonial-item {
    width: 100%;
    margin-bottom: 40px;
}

.testimonial-item:last-child {
    margin-bottom: 0;
}

.testimonial-item h3 {
    margin: 0 0 17px;
    font-size: 29px;
    line-height: 1.25;
    font-weight: 600;
    color: #111;
}

.testimonial-line {
    width: 100%;
    border-top: 2px dashed #d6d6d6;
    margin-bottom: 31px;
}

.testimonial-item p {
    margin: 0 0 20px;
    font-size: 20px;
    line-height: 1.38;
}

.testimonial-author {
    margin-left: 9px;
    font-size: 21px;
    line-height: 1.4;
    font-weight: 400;
    text-transform: uppercase;
}


/* Responsive */
@media (max-width: 1199px) {
    .testimonial-item {
        margin-bottom: 70px;
    }

    .testimonial-item h3 {
        font-size: 27px;
    }

    .testimonial-item p {
        font-size: 21px;
    }

    .testimonial-author {
        font-size: 19px;
    }
}


@media (max-width: 767px) {
    .testimonial-item {
        margin-bottom: 55px;
    }

    .testimonial-item h3 {
        font-size: 24px;
        margin-bottom: 14px;
    }

    .testimonial-line {
        margin-bottom: 24px;
    }

    .testimonial-item p {
        font-size: 18px;
        line-height: 1.5;
    }

    .testimonial-author {
        margin-left: 0;
        font-size: 16px;
        line-height: 1.5;
    }
}

/* =========================================
   PRESS / LOGO GRID
========================================= */

.rb-logo-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 8%;
    row-gap: clamp(90px, 10vw, 100px);
    align-items: center;
    padding: clamp(40px, 5vw, 10px) 0;
}

.rb-logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
}
.col-stacy{right: 4rem;bottom: 4rem;position: fixed;z-index: 999;}
.rb-logo-item img {
    display: block;
    filter: grayscale(1);
    width: auto;
    height: auto;
    max-width: 60%;
    max-height: 105px;

    object-fit: contain;
}
.rb-logo-item img:hover {
    filter: grayscale(0);
}

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

@media (max-width: 991px) {

    .rb-logo-grid {
        grid-template-columns: repeat(3, 1fr);
        column-gap: 6%;
        row-gap: 80px;
        padding: 50px 0;
    }

    .rb-logo-item img {
        max-width: 78%;
        max-height: 80px;
    }
}


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

@media (max-width: 767px) {

    .rb-logo-grid {
        grid-template-columns: repeat(2, 1fr);
        column-gap: 30px;
        row-gap: 60px;
        padding: 40px 0;
    }

    .rb-logo-item img {
        max-width: 82%;
        max-height: 65px;
    }
}


/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 480px) {

    .rb-logo-grid {
        column-gap: 20px;
        row-gap: 50px;
    }

    .rb-logo-item img {
        max-width: 88%;
        max-height: 55px;
    }
}

@media only screen and (min-width: 1600px) {
    .col-mx-c {
        padding: 0 36.5rem !important;
    }
}

/* @media only screen and (min-width: 768px) {
    .col-mx-c {
        padding: 0 0.5rem !important;
    }
} */
@media (max-width: 640px) {
    .col-mx-c {
        padding: 0 0.5rem !important;
    }
}


/* Keep the logo and social icons stacked at every screen size. */
#mxd-footer .rb-footer-brand {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 24px;
}

#mxd-footer .rb-footer-brand .footer-logo {
    max-width: 100%;
    height: auto;
}

/* Social icons */
#mxd-footer .rb-footer-icons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

#mxd-footer .rb-footer-icons li {
    margin: 0;
    padding: 0;
}

#mxd-footer .rb-footer-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    background: transparent;
    color: #fff;
    text-decoration: none;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

#mxd-footer .rb-footer-icons a i {
    font-size: 22px;
    line-height: 1;
}

#mxd-footer .rb-footer-icons a:hover,
#mxd-footer .rb-footer-icons a:focus-visible {
    background-color: var(--accent, #fff);
    border-color: var(--accent, #fff);
    color: var(--t-opp-bright, #111);
    transform: translateY(-3px);
}

/* Policy links */
#mxd-footer .rb-footer-policies {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    list-style: none;
}

#mxd-footer .rb-footer-policies li {
    margin: 0;
    padding: 0;
}

#mxd-footer .rb-footer-policies a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 0;
    color: #fff;
    font-size: 18px;
    line-height: 1.5;
    text-decoration: none;
}

#mxd-footer .rb-footer-policies a i {
    flex-shrink: 0;
    font-size: 20px;
    transition: transform 0.2s ease;
}

#mxd-footer .rb-footer-policies a:hover span,
#mxd-footer .rb-footer-policies a:focus-visible span {
    text-decoration: underline;
    text-underline-offset: 5px;
}

#mxd-footer .rb-footer-policies a:hover i {
    transform: translate(2px, -2px);
}

/* Keyboard accessibility */
#mxd-footer .rb-footer-icons a:focus-visible,
#mxd-footer .rb-footer-policies a:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 5px;
}

/* Prevent contact text from overflowing narrow cards. */
#mxd-footer .footer-blocks__column {
    min-width: 0;
}

#mxd-footer .mxd-point-subtitle a {
    min-width: 0;
    overflow-wrap: anywhere;
}

#mxd-footer .mxd-point-subtitle svg {
    flex-shrink: 0;
}

@media (prefers-reduced-motion: reduce) {
    #mxd-footer .rb-footer-icons a,
    #mxd-footer .rb-footer-policies a i {
        transition: none;
        transform: none;
    }
}