/* ================================================================
   MASIRIFY — Editorial Split-Screen Hero
   Design: Modern Advertising Agency / مسیرفای
   Colors: Navy #07273e | Orange #f57e20 | White #ffffff
================================================================ */

/* ─── Section ─────────────────────────────────────────────────── */
.msr-hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background: #07273e;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    direction: rtl;
}

/* ─── Decorative Background ───────────────────────────────────── */
.msr-hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.msr-bg-circle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.msr-bg-circle-1 {
    width: 700px;
    height: 700px;
    top: -200px;
    right: -100px;
    background: radial-gradient(circle at center,
            rgba(245, 126, 32, 0.12) 0%,
            rgba(245, 126, 32, 0.04) 40%,
            transparent 70%);
    animation: bgPulse1 8s ease-in-out infinite alternate;
}

.msr-bg-circle-2 {
    width: 500px;
    height: 500px;
    bottom: -100px;
    left: 5%;
    background: radial-gradient(circle at center,
            rgba(10, 80, 130, 0.3) 0%,
            transparent 70%);
    animation: bgPulse2 11s ease-in-out infinite alternate;
}

@keyframes bgPulse1 {
    from {
        transform: scale(1) translate(0, 0);
        opacity: 0.7;
    }

    to {
        transform: scale(1.15) translate(30px, 20px);
        opacity: 1;
    }
}

@keyframes bgPulse2 {
    from {
        transform: scale(1) translate(0, 0);
    }

    to {
        transform: scale(1.1) translate(-20px, -30px);
    }
}

/* Vertical grid lines */
.msr-grid-lines {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.msr-grid-lines span {
    display: block;
    width: 1px;
    height: 100%;
    background: rgba(255, 255, 255, 0.04);
}

/* ─── Hero Inner (two-column split) ──────────────────────────── */
.msr-hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    min-height: calc(100vh - 60px);
    /* leave room for marquee */
    padding: 0 60px;
    align-items: center;
}

/* ─── LEFT COLUMN ─────────────────────────────────────────────── */
.msr-hero-left {
    padding: 120px 60px 80px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Top bar */
.msr-top-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 36px;
}

.msr-pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #f57e20;
    flex-shrink: 0;
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(245, 126, 32, 0.5);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(245, 126, 32, 0);
    }
}

.msr-top-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

.msr-top-year {
    font-size: 11px;
    color: rgba(245, 126, 32, 0.7);
    font-weight: 700;
    margin-right: auto;
    border: 1px solid rgba(245, 126, 32, 0.3);
    padding: 3px 10px;
    border-radius: 20px;
}

/* ─── Headline ────────────────────────────────────────────────── */
.msr-headline-wrap {
    overflow: hidden;
    margin-bottom: 28px;
}

.msr-headline {
    font-family: "Ray", sans-serif;
    font-size: clamp(52px, 6.5vw, 96px);
    font-weight: 900;
    line-height: 1.0;
    color: #fff;
    margin: 0;
}

/* Each line clips and reveals */
.msr-line {
    display: block;
    overflow: hidden;
}

.msr-line-inner {
    display: flex;
    align-items: baseline;
    gap: 16px;
    transform: translateY(110%);
    animation: lineReveal 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.msr-line-1 .msr-line-inner {
    animation-delay: 0.55s;
}

.msr-line-2 .msr-line-inner {
    animation-delay: 0.75s;
}

.msr-line-3 .msr-line-inner {
    animation-delay: 0.95s;
}

@keyframes lineReveal {
    from {
        transform: translateY(110%);
    }

    to {
        transform: translateY(0);
    }
}

.msr-accent {
    font-style: italic;
    color: #f57e20;
    position: relative;
}

/* ─── Rotating word inside headline ──────────────────────────── */
.msr-tagline-rotator {
    position: relative;
    display: inline-block;
    height: 1.1em;
    vertical-align: bottom;
}

.msr-rot-word {
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.55s cubic-bezier(0.22, 1, 0.36, 1);
    white-space: nowrap;
    color: #f57e20;
}

.msr-rot-word.msr-rot-active {
    opacity: 1;
    transform: translateY(0);
    position: relative;
}

.msr-rot-word.msr-rot-exit {
    opacity: 0;
    transform: translateY(-40px);
    position: absolute;
}

/* ─── Sub-description ─────────────────────────────────────────── */
.msr-subline {
    font-size: 17px;
    font-weight: 300;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 44px;
    max-width: 440px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.7s ease 1.3s both;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ─── Action Buttons ──────────────────────────────────────────── */
.msr-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 52px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.7s ease 1.5s both;
}

.msr-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: "Ray", sans-serif;
    font-size: 14px;
    font-weight: 700;
    padding: 15px 34px;
    border-radius: 100px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.35s ease,
        color 0.3s ease;
    cursor: pointer;
    border: none;
    outline: none;
}

.msr-btn-fill {
    background: #f57e20;
    color: #fff;
    box-shadow: 0 10px 35px rgba(245, 126, 32, 0.35);
}

.msr-btn-fill:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 18px 45px rgba(245, 126, 32, 0.5);
    color: #fff;
    text-decoration: none;
}

/* Liquid hover bg */
.msr-btn-hover-bg {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.15);
    border-radius: inherit;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease;
}

.msr-btn-fill:hover .msr-btn-hover-bg {
    transform: scaleX(1);
    transform-origin: left;
}

.msr-btn-icon {
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.msr-btn-fill:hover .msr-btn-icon {
    transform: translateX(-4px);
}

.msr-btn-ghost {
    background: transparent;
    color: rgba(255, 255, 255, 0.78);
    border: 1.5px solid #f57e20;
    backdrop-filter: blur(8px);
}

.msr-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
    transform: translateY(-4px);
    text-decoration: none;
}

/* ─── Stats Strip ─────────────────────────────────────────────── */
.msr-stats {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-bottom: 32px;
    opacity: 0;
    animation: fadeUp 0.7s ease 1.7s both;
}

.msr-stat-item {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.msr-stat-num {
    font-family: "Ray", sans-serif;
    font-size: 36px;
    font-weight: 800;
    color: #f57e20;
    line-height: 1;
}

.msr-stat-plus {
    font-size: 20px;
    font-weight: 700;
    color: #f57e20;
}

.msr-stat-label {
    display: block;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.45);
    text-transform: uppercase;
    margin-top: 4px;
    font-weight: 500;
    white-space: nowrap;
    /* break label below num */
}

.msr-stat-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 125px;
}

.msr-stat-item>* {
    display: block;
}

.msr-stat-item:first-child>.msr-stat-num,
.msr-stat-item>.msr-stat-num {
    display: inline;
}

.msr-stat-item>.msr-stat-plus {
    display: inline;
}

.msr-stat-sep {
    width: 1px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
}

/* ─── Service Tags ────────────────────────────────────────────── */
.msr-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    opacity: 0;
    animation: fadeUp 0.7s ease 1.9s both;
}

.msr-tag {
    font-size: 12px;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    cursor: default;
}

.msr-tag:hover {
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.9);
}

.msr-tag.msr-tag-orange {
    background: rgba(245, 126, 32, 0.12);
    border-color: rgba(245, 126, 32, 0.3);
    color: #f57e20;
}

.msr-tag.msr-tag-orange:hover {
    background: rgba(245, 126, 32, 0.22);
}

/* ─── RIGHT COLUMN ────────────────────────────────────────────── */
.msr-hero-right {
    position: relative;
    padding: 100px 30px 80px 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

/* ─── Floating Rotating Badge ─────────────────────────────────── */
.msr-float-badge {
    position: absolute;
    top: 120px;
    left: -30px;
    z-index: 10;
    animation: rotateBadge 14s linear infinite;
}

@keyframes rotateBadge {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.msr-float-badge-inner {
    position: relative;
    width: 120px;
    height: 120px;
}

.msr-circle-svg {
    width: 100%;
    height: 100%;
}

.msr-circle-svg path {
    fill: none;
}

.msr-circle-svg text {
    font-size: 11.5px;
    fill: rgba(255, 255, 255, 0.55);
    font-family: "Ray", sans-serif;
}

.msr-badge-arrow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(0deg);
    animation: rotateBadge 14s linear infinite reverse;
    color: #f57e20;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(245, 126, 32, 0.1);
    border-radius: 50%;
    border: 1px solid rgba(245, 126, 32, 0.3);
}

/* ─── Visual Image Grid ───────────────────────────────────────── */
.msr-visual-grid {
    display: flex;
    gap: 14px;
    height: 580px;
    width: 100%;
    opacity: 0;
    animation: fadeInRight 0.9s ease 1.0s both;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.msr-grid-col {
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: 1;
}

.msr-grid-col-b {
    margin-top: 40px;
}

.msr-grid-card {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
}

.msr-card-tall {
    flex: 1.6;
}

.msr-card-short {
    flex: 1;
}

.msr-grid-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.msr-grid-card:hover img {
    transform: scale(1.08);
}

/* Card overlay */
.msr-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            transparent 40%,
            rgba(7, 39, 62, 0.88) 100%);
    display: flex;
    align-items: flex-end;
    padding: 18px 16px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.msr-grid-card:hover .msr-card-overlay {
    opacity: 1;
}

.msr-card-overlay span {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    transform: translateY(8px);
    transition: transform 0.4s ease 0.05s;
}

.msr-grid-card:hover .msr-card-overlay span {
    transform: translateY(0);
}

/* Orange accent border on first card */
.msr-grid-col-a .msr-card-tall {
    outline: 2px solid transparent;
    outline-offset: 4px;
    transition: outline-color 0.3s ease;
}

.msr-grid-col-a .msr-card-tall:hover {
    outline-color: rgba(245, 126, 32, 0.45);
}

/* ─── Scroll CTA (right column bottom) ───────────────────────── */
.msr-scroll-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    opacity: 0.45;
    transition: opacity 0.3s;
    align-self: center;
}

.msr-scroll-cta:hover {
    opacity: 1;
}

.msr-scroll-wheel {
    width: 26px;
    height: 40px;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    border-radius: 14px;
    display: flex;
    justify-content: center;
    padding-top: 6px;
}

.msr-scroll-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #f57e20;
    animation: scrollDrop 2.2s ease-in-out infinite;
}

@keyframes scrollDrop {
    0% {
        transform: translateY(0);
        opacity: 1;
    }

    60% {
        transform: translateY(14px);
        opacity: 0;
    }

    61% {
        transform: translateY(0);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.msr-scroll-cta span {
    font-size: 10px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
}

/* ─── Bottom Marquee Band ─────────────────────────────────────── */
.msr-marquee-band {
    position: relative;
    z-index: 5;
    background: #f57e20;
    overflow: hidden;
    flex-shrink: 0;
}

.msr-marquee-track {
    display: flex;
    align-items: center;
    gap: 28px;
    animation: marqueeScroll 300s linear infinite;
    width: max-content;
}

.msr-mq-item {
    font-size: 13px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.92);
    text-transform: uppercase;
    white-space: nowrap;
}

.msr-mq-dot {
    font-size: 11px;
    color: rgba(7, 39, 62, 0.5);
    flex-shrink: 0;
}

@keyframes marqueeScroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* ─── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1200px) {
    .msr-hero-inner {
        padding: 0 30px;
    }

    .msr-hero-left {
        padding: 120px 40px 60px 20px;
    }

    .msr-hero-right {
        padding: 100px 10px 60px 0;
    }

    .msr-visual-grid {
        height: 480px;
    }
}

@media (max-width: 992px) {
    .msr-hero-inner {
        grid-template-columns: 1fr;
        padding: 0 24px;
        min-height: auto;
    }

    .msr-hero-left {
        padding: 130px 20px 40px;
    }

    .msr-hero-right {
        display: none;
    }

    .msr-headline {
        font-size: clamp(44px, 9vw, 72px);
    }
}

@media (max-width: 576px) {
    .msr-headline {
        font-size: clamp(36px, 11vw, 58px);
    }

    .msr-hero-left {
        padding: 110px 16px 36px;
    }

    .msr-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .msr-btn {
        width: 100%;
        justify-content: center;
    }

    .msr-stats {
        gap: 16px;
    }

    .msr-stat-num {
        font-size: 28px;
    }


    .msr-float-badge {
        display: none;
    }
}


/* ================================================================
   MASIRIFY — Portfolio Section
================================================================ */

/* ─── Section wrapper ─────────────────────────────────────────── */
.msr-portfolio {
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}

/* ─── Background decor ────────────────────────────────────────── */
.msr-pf-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.msr-pf-bg-ring {
    position: absolute;
    top: -160px;
    left: -160px;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    border: 1px solid rgba(245, 126, 32, 0.06);
    animation: pfRingPulse 8s ease-in-out infinite alternate;
}

@keyframes pfRingPulse {
    from {
        transform: scale(1);
        opacity: 0.5;
    }

    to {
        transform: scale(1.08);
        opacity: 1;
    }
}

.msr-pf-bg-grid {
    position: absolute;
    inset: 0;
    opacity: 0.5;
}

.msr-portfolio .container {
    position: relative;
    z-index: 1;
}

/* ─── Section Header ──────────────────────────────────────────── */
.msr-pf-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 56px;
    flex-wrap: wrap;
}

.msr-pf-header-left {
    flex: 1;
    min-width: 260px;
}

.msr-pf-kicker {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #f57e20;
    margin-bottom: 18px;
}

.msr-pf-kicker-line {
    flex: 1;
    height: 1px;
    max-width: 48px;
    background: rgba(245, 126, 32, 0.35);
}

.msr-pf-title {
    font-size: clamp(38px, 5vw, 64px);
    font-weight: 900;
    line-height: 1.1;
    color: #fff;
    margin: 0 0 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.msr-pf-title-accent {
    color: transparent;
    -webkit-text-stroke: 2px #f57e20;
    transition: color 0.4s ease;
}

.msr-portfolio:hover .msr-pf-title-accent {
    color: #f57e20;
    -webkit-text-stroke-color: transparent;
}

.msr-pf-desc {
    font-size: 15px;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.45);
    margin: 0;
    max-width: 480px;
}

/* ─── Filter Tabs ──────────────────────────────────────────────── */
.msr-pf-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: flex-end;
    padding-bottom: 4px;
}

.msr-pf-filter {
    padding: 8px 20px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.55);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.28s ease;
    white-space: nowrap;
}

.msr-pf-filter:hover {
    background: rgba(245, 126, 32, 0.1);
    border-color: rgba(245, 126, 32, 0.25);
    color: #f57e20;
}

.msr-pf-filter.msr-pf-filter-active {
    background: #f57e20;
    border-color: #f57e20;
    color: #fff;
}

/* ─── Portfolio Grid ───────────────────────────────────────────── */
.msr-pf-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
}

/* Size classes */
.msr-pf-item-wide {
    grid-column: span 12;
}

.msr-pf-item-med {
    grid-column: span 6;
}

.msr-pf-item-tall {
    grid-column: span 4;
}

.msr-pf-item-sq {
    grid-column: span 8;
}

/* Hidden state for filter */
.msr-pf-item.msr-pf-hidden {
    display: none;
}

/* ─── Single Portfolio Item ────────────────────────────────────── */
.msr-pf-item {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* ─── Media container ─────────────────────────────────────────── */
.msr-pf-media {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background: #0a1f30;
    cursor: pointer;
}

/* Aspect ratio per size */
.msr-pf-item-wide .msr-pf-media {
    aspect-ratio: 21 / 7;
}

.msr-pf-item-med .msr-pf-media {
    aspect-ratio: 4 / 3;
}

.msr-pf-item-tall .msr-pf-media {
    aspect-ratio: 3 / 4;
}

.msr-pf-item-sq .msr-pf-media {
    aspect-ratio: 16 / 9;
}

/* ─── Image & Video ────────────────────────────────────────────── */
.msr-pf-img,
.msr-pf-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.msr-pf-media:hover .msr-pf-img,
.msr-pf-media:hover .msr-pf-video {
    transform: scale(1.06);
}

/* ─── Media badge (Video tag) ──────────────────────────────────── */
.msr-pf-media-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;

    padding: 5px 12px;
    border-radius: 100px;
    backdrop-filter: blur(8px);
}

.msr-pf-badge-video {
    background: rgba(245, 126, 32, 0.85);
    color: #fff;
}

/* ─── Play Button ─────────────────────────────────────────────── */
.msr-pf-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(245, 126, 32, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    z-index: 5;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
    padding-left: 4px;
    box-shadow: 0 8px 30px rgba(245, 126, 32, 0.4);
}

.msr-pf-has-video .msr-pf-media:hover .msr-pf-play-btn,
.msr-pf-media:hover .msr-pf-play-btn {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: auto;
}

/* Always show play on video items */
.msr-pf-has-video .msr-pf-play-btn {
    opacity: 0.85;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: auto;
}

/* ─── Embed thumb ─────────────────────────────────────────────── */
.msr-pf-embed-thumb {
    position: relative;
    width: 100%;
    height: 100%;
}

.msr-pf-embed-thumb .msr-pf-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.msr-pf-embed-ph {
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(10, 60, 100, 0.5), #03111c);
}

.msr-pf-embed-frame {
    position: absolute;
    inset: 0;
}

.msr-pf-embed-frame iframe {
    width: 100% !important;
    height: 100% !important;
    border: none !important;
    display: block;
}

/* ─── Hover Overlay ───────────────────────────────────────────── */
.msr-pf-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg,
            rgba(7, 39, 62, 0.0) 0%,
            rgba(7, 39, 62, 0.92) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: flex-end;
    z-index: 3;
    border-radius: 20px;
}

.msr-pf-media:hover .msr-pf-overlay {
    opacity: 1;
}

.msr-pf-overlay-inner {
    padding: 28px;
    transform: translateY(12px);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.msr-pf-media:hover .msr-pf-overlay-inner {
    transform: translateY(0);
}

.msr-pf-overlay-cat {
    font-size: 11px;
    font-weight: 700;

    text-transform: uppercase;
    color: #f57e20;
    margin-bottom: 6px;
}

.msr-pf-overlay-title {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 14px;
    line-height: 1.3;
}

.msr-pf-overlay-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.msr-pf-overlay-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 18px;
    border-radius: 100px;
    background: #f57e20;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.25s ease, transform 0.25s ease;
}

.msr-pf-overlay-btn:hover {
    background: #e06f18;
    transform: translateY(-2px);
    color: #fff;
}

/* Diagonal accent */
.msr-pf-overlay-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 120px;
    height: 1px;
    background: linear-gradient(90deg, rgba(245, 126, 32, 0.5), transparent);
    transform: rotate(-45deg) translateX(-40px);
}

/* ─── Corner tag ──────────────────────────────────────────────── */
.msr-pf-corner-tag {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 4;
}

.msr-pf-corner-tag span {
    font-size: 11px;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.25);

}

/* ─── Info row below card ─────────────────────────────────────── */
.msr-pf-info {
    padding: 0 4px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.msr-pf-info-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.3);

    text-transform: uppercase;
}

.msr-pf-info-cat {
    color: #f57e20;
    font-weight: 600;
}

.msr-pf-info-dot {
    color: rgba(255, 255, 255, 0.2);
}

.msr-pf-info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.msr-pf-info-title {
    font-size: 16px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    line-height: 1.3;
}

.msr-pf-info-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.25s ease;
}

.msr-pf-info-title a:hover {
    color: #f57e20;
}

.msr-pf-type-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.3);
    white-space: nowrap;
    flex-shrink: 0;
}

/* ─── View All CTA ────────────────────────────────────────────── */
.msr-pf-viewall {
    display: flex;
    justify-content: center;
    margin-top: 60px;
}

.msr-pf-viewall-btn {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 16px 40px;
    border-radius: 100px;
    border: 1px solid rgba(245, 126, 32, 0.35);
    background: rgba(245, 126, 32, 0.06);
    color: #f57e20;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.msr-pf-viewall-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: #f57e20;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: inherit;
}

.msr-pf-viewall-btn:hover::before {
    transform: scaleX(1);
}

.msr-pf-viewall-btn:hover {
    color: #fff;
    border-color: #f57e20;
}

.msr-pf-viewall-text,
.msr-pf-viewall-icon,
.msr-pf-viewall-count {
    position: relative;
    z-index: 1;
}

.msr-pf-viewall-count {
    font-size: 13px;
    opacity: 0.65;
}

/* ─── Empty state ─────────────────────────────────────────────── */
.msr-pf-empty {
    text-align: center;
    padding: 80px 24px;
    color: rgba(255, 255, 255, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

/* ─── Responsive ──────────────────────────────────────────────── */
@media (max-width: 992px) {
    .msr-pf-item-wide {
        grid-column: span 12;
    }

    .msr-pf-item-med {
        grid-column: span 12;
    }

    .msr-pf-item-tall {
        grid-column: span 6;
    }

    .msr-pf-item-sq {
        grid-column: span 6;
    }

    .msr-pf-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .msr-pf-title {
        font-size: clamp(32px, 6vw, 48px);
    }
}

@media (max-width: 600px) {
    .msr-portfolio {
        padding: 60px 0 56px;
    }

    .msr-pf-item-wide,
    .msr-pf-item-med,
    .msr-pf-item-tall,
    .msr-pf-item-sq {
        grid-column: span 12;
    }

    .msr-pf-overlay {
        opacity: 1;
    }

    .msr-pf-overlay-inner {
        transform: translateY(0);
    }

    .msr-pf-play-btn {
        opacity: 0.85;
        transform: translate(-50%, -50%) scale(1);
    }
}


/* ================================================================
   MASIRIFY — Testimonial Auto-Slider
================================================================ */


/* ─── Slider Container ──────────────────────────────────────────── */
.msr-testi-slider {
    position: relative;
    padding: 22px 24px 20px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    overflow: hidden;
    transition: border-color 0.35s ease;
}

.msr-testi-slider:hover {
    border-color: rgba(245, 126, 32, 0.18);
}

/* Large decorative quote mark */
.msr-testi-slider::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 16px;
    font-size: 120px;
    line-height: 1;
    color: rgba(245, 126, 32, 0.06);
    font-weight: 900;
    pointer-events: none;
    user-select: none;
}

/* ─── Track (clips slides) ───────────────────────────────────────── */
.msr-testi-track {
    position: relative;
    width: 100%;
    min-height: 160px;
}

/* ─── Individual Slides ──────────────────────────────────────────── */
.msr-testi-slide {
    display: none;
    flex-direction: column;
    gap: 12px;
    animation: testiSlideIn 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

.msr-testi-slide.msr-testi-active {
    display: flex;
}

@keyframes testiSlideIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ─── Stars ─────────────────────────────────────────────────────── */
.msr-testi-stars {
    display: flex;
    gap: 3px;
}

/* ─── Quote text ─────────────────────────────────────────────────── */
.msr-testi-text {
    font-size: 14px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.65);
    margin: 0;
    font-style: italic;
}

/* ─── Author row ─────────────────────────────────────────────────── */
.msr-testi-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 4px;
}

.msr-testi-author>div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

/* ─── Avatar ─────────────────────────────────────────────────────── */
.msr-testi-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
}

.msr-testi-avatar-img {
    object-fit: cover;
    border: 2px solid rgba(245, 126, 32, 0.3);
}

.msr-testi-avatar-placeholder {
    background: linear-gradient(135deg, rgba(245, 126, 32, 0.45), rgba(7, 39, 62, 0.9));
    border: 2px solid rgba(245, 126, 32, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 16px;
}

/* ─── Name / Role ────────────────────────────────────────────────── */
.msr-testi-name {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
}

.msr-testi-role {
    display: block;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.35);

}

/* ─── Controls bar ───────────────────────────────────────────────── */
.msr-testi-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* ─── Dots ───────────────────────────────────────────────────────── */
.msr-testi-dots {
    display: flex;
    gap: 6px;
    align-items: center;
}

.msr-testi-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.3s ease, width 0.3s ease, border-radius 0.3s ease;
}

.msr-testi-dot.msr-dot-active {
    width: 22px;
    border-radius: 4px;
    background: #f57e20;
}

/* ─── Arrow buttons ──────────────────────────────────────────────── */
.msr-testi-arrows {
    display: flex;
    gap: 6px;
}

.msr-testi-arrow {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.msr-testi-arrow:hover {
    background: rgba(245, 126, 32, 0.15);
    border-color: rgba(245, 126, 32, 0.3);
    color: #f57e20;
}

/* ─── Progress bar (auto-play indicator) ────────────────────────── */
.msr-testi-progress {
    position: absolute;
    bottom: 0;
    right: 0;
    height: 2px;
    background: rgba(245, 126, 32, 0.5);
    border-radius: 0 0 16px 16px;
    animation: none;
    width: 0%;
}

.msr-testi-progress.msr-progress-run {
    animation: testiProgress var(--testi-dur, 4s) linear forwards;
}

@keyframes testiProgress {
    from {
        width: 0%;
    }

    to {
        width: 100%;
    }
}

/* ================================================================
   MASIRIFY — About Us Section
   Design: Creative Advertising Agency / داستان‌ساز
   Colors: Navy #07273e | Orange #f57e20 | White #ffffff
================================================================ */

/* ─── Section Wrapper ──────────────────────────────────────────── */
.msr-about {
    position: relative;
    background: #07273e;
    overflow: hidden;
    padding: 120px 0 100px;
    direction: rtl;
}

/* ─── Decorative Layer ─────────────────────────────────────────── */
.msr-about-deco {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.msr-about-deco-grid {
    position: absolute;
    inset: 0;
    opacity: 1;
}

.msr-about-deco-noise {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    background-size: 200px 200px;
    opacity: 0.4;
}

.msr-about-deco-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(245, 126, 32, 0.06);
}

.msr-about-deco-ring-1 {
    width: 600px;
    height: 600px;
    top: -200px;
    left: -150px;
    animation: aboutRing1 18s ease-in-out infinite alternate;
}

.msr-about-deco-ring-2 {
    width: 400px;
    height: 400px;
    bottom: -100px;
    right: -80px;
    border-color: rgba(245, 126, 32, 0.09);
    animation: aboutRing2 22s ease-in-out infinite alternate;
}

@keyframes aboutRing1 {
    from {
        transform: scale(1) rotate(0deg);
        opacity: 0.5;
    }

    to {
        transform: scale(1.1) rotate(15deg);
        opacity: 1;
    }
}

@keyframes aboutRing2 {
    from {
        transform: scale(1) rotate(0deg);
        opacity: 0.4;
    }

    to {
        transform: scale(1.08) rotate(-20deg);
        opacity: 0.8;
    }
}

/* ─── Kicker ───────────────────────────────────────────────────── */
.msr-about-kicker {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 18px;
    justify-content: center;
    margin-bottom: 52px;
}

.msr-about-kicker-line {
    flex: 1;
    max-width: 120px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(245, 126, 32, 0.4), transparent);
}

.msr-about-kicker-text {
    font-size: 12px;
    font-weight: 700;

    text-transform: uppercase;
    color: #f57e20;
    white-space: nowrap;
}

/* ─── Headline ─────────────────────────────────────────────────── */
.msr-about-headline-wrap {
    position: relative;
    z-index: 2;
    text-align: center;
    margin-bottom: 72px;
    overflow: hidden;
}

.msr-about-headline {
    font-size: clamp(48px, 7vw, 110px);
    font-weight: 900;
    line-height: 1.0;
    color: #fff;
    margin: 0;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.msr-about-hl-line {
    display: block;
    position: relative;
}

.msr-about-hl-line em {
    font-style: italic;
    color: #f57e20;
}
.main_color{
    color: #f57e20;
}
.msr-about-hl-accent {
    -webkit-text-stroke: 2px rgba(245, 126, 32, 0.6);
    color: transparent;
    transition: color 0.5s ease, -webkit-text-stroke 0.5s ease;
}

.msr-about-headline-wrap:hover .msr-about-hl-accent {
    color: #f57e20;
    -webkit-text-stroke: 0px transparent;
}

/* ─── Body Grid ────────────────────────────────────────────────── */
.msr-about-body {
    position: relative;
    z-index: 2;
    align-items: start;
    margin-bottom: 80px;
}

/* ─── LEFT: Narrative ──────────────────────────────────────────── */
.msr-about-left {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.msr-about-lead {
    font-size: 20px;
    font-weight: 400;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 24px;
    border-right: 3px solid #f57e20;
    padding-right: 20px;
}

.msr-about-lead strong {
    color: #f57e20;
    font-weight: 700;
}

.msr-about-body-text {
    font-size: 16px;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 36px;
}

/* Pills */
.msr-about-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 44px;
}

.msr-about-pill {
    font-size: 12px;
    font-weight: 600;

    padding: 7px 18px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    cursor: default;
}

.msr-about-pill:hover {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.85);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.msr-about-pill.msr-pill-accent {
    background: rgba(245, 126, 32, 0.1);
    border-color: rgba(245, 126, 32, 0.28);
    color: #f57e20;
}

.msr-about-pill.msr-pill-accent:hover {
    background: rgba(245, 126, 32, 0.2);
}

/* CTA Link */
.msr-about-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 700;

    text-transform: uppercase;
    color: #fff;
    text-decoration: none;
    position: relative;
    width: fit-content;
    padding-bottom: 8px;
    transition: color 0.3s ease;
}

.msr-about-cta::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    height: 1.5px;
    width: 100%;
    background: linear-gradient(90deg, transparent, #f57e20);
    transform: scaleX(1);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.msr-about-cta:hover {
    color: #f57e20;
    text-decoration: none;
}

.msr-about-cta:hover::after {
    transform: scaleX(0);
    transform-origin: left;
}

.msr-about-cta:hover .msr-about-cta-icon {
    transform: translateX(-6px);
}

.msr-about-cta-icon {
    display: flex;
    align-items: center;
    color: #f57e20;
    transition: transform 0.3s ease;
}

/* ─── RIGHT: Visual Pillars ─────────────────────────────────────── */
.msr-about-right {
    display: flex;
    flex-direction: column;
    gap: 36px;
}

/* Big Stat */
.msr-about-big-stat {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 28px 32px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 20px;
    backdrop-filter: blur(8px);
    position: relative;
    overflow: hidden;
}

.msr-about-big-stat::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #f57e20);
}

.msr-about-big-num {
    font-size: 72px;
    font-weight: 900;
    color: #f57e20;
    line-height: 1;
    flex-shrink: 0;

}

.msr-about-big-label {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.msr-about-big-label span:first-child {
    font-size: 18px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.2;
}

.msr-about-big-sub {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.35);

}

/* Pillar Cards */
.msr-about-pillars {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 20px;
    overflow: hidden;
}

.msr-about-pillar {
    padding: 22px 28px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
    transition: background 0.35s ease;
    cursor: default;
}

.msr-about-pillar:last-child {
    border-bottom: none;
}

.msr-about-pillar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(245, 126, 32, 0.04);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.msr-about-pillar:hover::before {
    opacity: 1;
}

.msr-about-pillar-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 4px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.msr-about-pillar:hover .msr-about-pillar-icon {
    background: rgba(245, 126, 32, 0.1);
    border-color: rgba(245, 126, 32, 0.3);
    color: #f57e20;
}

.msr-pillar-icon-accent {
    background: rgba(245, 126, 32, 0.08) !important;
    border-color: rgba(245, 126, 32, 0.2) !important;
    color: #f57e20 !important;
}

.msr-about-pillar-title {
    font-size: 15px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

.msr-about-pillar-text {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.38);
    line-height: 1.6;
    margin: 0;
}

.msr-about-pillar-bar {
    height: 2px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 2px;
    margin-top: 10px;
    overflow: hidden;
}

.msr-about-pillar-bar span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #f57e20, rgba(245, 126, 32, 0.3));
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.3s;
}

.msr-about-pillar:hover .msr-about-pillar-bar span,
.msr-about[data-animated] .msr-about-pillar-bar span {
    transform: scaleX(1);
}

/* Highlight middle pillar */
.msr-pillar-mid {
    background: rgba(245, 126, 32, 0.03);
}

/* ─── Manifesto Strip ──────────────────────────────────────────── */
.msr-about-manifesto {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 60px;
    align-items: center;
    padding: 60px 64px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 28px;
    overflow: hidden;
    transition: border-color 0.4s ease;
}

.msr-about-manifesto:hover {
    border-color: rgba(245, 126, 32, 0.2);
}

.msr-about-manifesto::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(245, 126, 32, 0.6));
}

.msr-about-manifesto-inner {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.msr-about-quote {
    font-size: clamp(22px, 2.5vw, 36px);
    font-weight: 700;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.5;
    margin: 0;
    padding: 0;
    border: none;
}

.msr-about-quote-mark {
    color: #f57e20;
    font-size: 1.4em;
    line-height: 0;
    vertical-align: -0.25em;
    font-style: normal;
}

.msr-about-manifesto-meta {
    display: flex;
    align-items: center;
    gap: 14px;
}

.msr-about-manifesto-line {
    width: 40px;
    height: 1px;
    background: rgba(245, 126, 32, 0.5);
    flex-shrink: 0;
}

.msr-about-manifesto-sig {
    font-size: 12px;
    font-weight: 700;

    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
}

/* Accent Shape */
.msr-about-manifesto-shape {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    position: relative;
}

.msr-about-shape-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1.5px solid rgba(245, 126, 32, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: aboutShapeSpin 20s linear infinite;
    position: relative;
}

.msr-about-shape-inner::before {
    content: '';
    position: absolute;
    width: 80%;
    height: 80%;
    border-radius: 50%;
    border: 1px solid rgba(245, 126, 32, 0.12);
}

.msr-about-shape-txt {
    font-size: 9px;
    font-weight: 800;

    text-transform: uppercase;
    color: rgba(245, 126, 32, 0.4);
    writing-mode: vertical-rl;
    text-orientation: mixed;
    animation: aboutShapeSpin 20s linear infinite reverse;
}

@keyframes aboutShapeSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ─── Responsive ────────────────────────────────────────────────── */
@media (max-width: 1100px) {
    .msr-about-body {
        gap: 50px;
    }

    .msr-about-manifesto {
        padding: 48px 48px;
        gap: 40px;
    }
}

@media (max-width: 900px) {
    .msr-about {
        padding: 80px 0 70px;
    }

    .msr-about-body {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .msr-about-headline {
        font-size: clamp(42px, 9vw, 80px);
    }

    .msr-about-manifesto {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 40px 32px;
    }

    .msr-about-manifesto-shape {
        width: 80px;
        height: 80px;
        margin: 0 auto;
    }
}

@media (max-width: 576px) {
    .msr-about {
        padding: 60px 0 56px;
    }

    .msr-about-headline {
        font-size: clamp(36px, 12vw, 60px);
    }

    .msr-about-big-stat {
        padding: 20px 20px;
    }

    .msr-about-big-num {
        font-size: 52px;
    }

    .msr-about-manifesto {
        padding: 32px 24px;
    }

    .msr-about-quote {
        font-size: 20px;
    }
}

/* ================================================================
   MASIRIFY — About Video Block
================================================================ */

/* ─── Video Wrapper ────────────────────────────────────────────── */
.msr-about-video-wrap {
    margin-top: 36px;
}

/* ─── Video Box ─────────────────────────────────────────────────── */
.msr-about-video-box {
    position: relative;
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: border-color 0.4s ease;
}

.msr-about-video-box:hover {
    border-color: rgba(245, 126, 32, 0.25);
}

/* ─── Native video player ────────────────────────────────────────── */
.msr-about-video-player {
    width: 100%;
    display: block;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: #03111c;
}

/* ─── Play button (shared for file & embed) ──────────────────────── */
.msr-about-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: rgba(245, 126, 32, 0.92);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    z-index: 5;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
        background 0.3s ease,
        box-shadow 0.3s ease;
    box-shadow: 0 8px 30px rgba(245, 126, 32, 0.4);
    padding-left: 4px;
    /* optically center play icon */
}

.msr-about-play-btn:hover {
    transform: translate(-50%, -50%) scale(1.12);
    background: #f57e20;
    box-shadow: 0 14px 40px rgba(245, 126, 32, 0.55);
}

.msr-about-play-btn:active {
    transform: translate(-50%, -50%) scale(0.96);
}

/* hidden when video is playing */
.msr-about-play-btn.msr-hidden {
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0.7);
}

.msr-play-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

/* Ripple ring */
.msr-play-ripple {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(245, 126, 32, 0.5);
    animation: playRipple 2.2s ease-out infinite;
    pointer-events: none;
}

@keyframes playRipple {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    80% {
        transform: scale(1.7);
        opacity: 0;
    }

    100% {
        transform: scale(1.7);
        opacity: 0;
    }
}

/* ─── Video label badge ──────────────────────────────────────────── */
.msr-video-label {
    position: absolute;
    bottom: 14px;
    right: 16px;
    background: rgba(7, 39, 62, 0.75);
    backdrop-filter: blur(8px);
    color: rgba(255, 255, 255, 0.8);
    font-size: 11px;
    font-weight: 600;

    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    pointer-events: none;
    z-index: 4;
}

/* ─── Embed mode (Aparat / YouTube) ─────────────────────────────── */
.msr-embed-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    cursor: pointer;
}

.msr-embed-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.msr-embed-thumb-placeholder {
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center,
            rgba(10, 60, 100, 0.6) 0%,
            #03111c 80%);
}

.msr-embed-frame {
    width: 100%;
    aspect-ratio: 16 / 9;
}

.msr-embed-frame iframe {
    width: 100% !important;
    height: 100% !important;
    border: none;
    display: block;
}

/* ─── Placeholder (no video yet) ────────────────────────────────── */
.msr-video-placeholder {
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse at 30% 50%,
            rgba(10, 60, 100, 0.35) 0%,
            rgba(7, 39, 62, 0.6) 60%,
            #03111c 100%);
    position: relative;
    overflow: hidden;
}

.msr-video-ph-inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 24px;
    text-align: center;
}

.msr-video-ph-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(245, 126, 32, 0.07);
    border: 1px solid rgba(245, 126, 32, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.msr-video-ph-text {
    font-size: 16px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.msr-video-ph-sub {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.28);
    margin: 0;
    max-width: 260px;
    line-height: 1.6;
}

/* Scan lines decoration */
.msr-video-ph-lines {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    pointer-events: none;
}

.msr-video-ph-lines span {
    display: block;
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.025);
}

/* ================================================================
   MASIRIFY — About Testimonial Mini Card
================================================================ */

.msr-about-testi {
    padding: 22px 24px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    transition: border-color 0.35s ease;
}

.msr-about-testi:hover {
    border-color: rgba(245, 126, 32, 0.18);
}

.msr-about-testi::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 16px;
    font-size: 120px;
    line-height: 1;
    color: rgba(245, 126, 32, 0.06);
    font-weight: 900;
    pointer-events: none;
    user-select: none;
}

.msr-about-testi-stars {
    display: flex;
    gap: 3px;
    margin-bottom: 12px;
}

.msr-about-testi-text {
    font-size: 14px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.65);
    margin: 0 0 16px;
    font-style: italic;
}

.msr-about-testi-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.msr-about-testi-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(245, 126, 32, 0.4), rgba(7, 39, 62, 0.8));
    border: 2px solid rgba(245, 126, 32, 0.25);
    flex-shrink: 0;
}

.msr-about-testi-author>div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.msr-about-testi-name {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.8);
}

.msr-about-testi-role {
    display: block;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.35);

}

/* Responsive for video */
@media (max-width: 576px) {
    .msr-about-play-btn {
        width: 54px;
        height: 54px;
    }

    .msr-video-label {
        font-size: 10px;
        padding: 4px 10px;
    }
}


/* ================================================================
   MASIRIFY — Portfolio Page (portfolios.index)
================================================================ */

/* ─── Hero Section ────────────────────────────────────────────── */
.msr-pf-page-hero {
    background: #03111c;
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}

.msr-pf-page-hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.msr-pf-page-hero-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(245, 126, 32, 0.07);
}

.msr-pf-page-ring-1 {
    width: 480px;
    height: 480px;
    top: -180px;
    right: -120px;
    animation: pfPageRing 9s ease-in-out infinite alternate;
}

.msr-pf-page-ring-2 {
    width: 300px;
    height: 300px;
    bottom: -80px;
    left: -60px;
    animation: pfPageRing 12s ease-in-out infinite alternate-reverse;
}

@keyframes pfPageRing {
    from {
        transform: scale(1) rotate(0deg);
    }

    to {
        transform: scale(1.1) rotate(12deg);
    }
}

.msr-pf-page-hero-dots {
    position: absolute;
    inset: 0;
    opacity: 0.6;
}

.msr-pf-page-hero .container,
.msr-pf-page-section .container {
    position: relative;
    z-index: 1;
}

.msr-pf-page-hero-inner {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 760px;
}

/* ─── Breadcrumb ──────────────────────────────────────────────── */
.msr-pf-page-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.35);
}

.msr-pf-page-breadcrumb a {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    transition: color 0.25s ease;
}

.msr-pf-page-breadcrumb a:hover {
    color: #f57e20;
}

.msr-pf-page-breadcrumb>span {
    color: #f57e20;
    font-weight: 600;
}

.msr-pf-page-breadcrumb svg {
    opacity: 0.3;
}

/* ─── Headline ────────────────────────────────────────────────── */
.msr-pf-page-headline {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.msr-pf-page-kicker {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    font-weight: 700;

    text-transform: uppercase;
    color: #f57e20;
}

.msr-pf-page-kicker-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #f57e20;
    animation: pfKickerPulse 2s ease-in-out infinite;
}

@keyframes pfKickerPulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(245, 126, 32, 0.5);
    }

    50% {
        box-shadow: 0 0 0 6px rgba(245, 126, 32, 0);
    }
}

.msr-pf-page-title {
    font-size: clamp(44px, 7vw, 80px);
    font-weight: 900;
    line-height: 1.05;
    color: #fff;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.msr-pf-page-title-stroke {
    color: transparent;
    -webkit-text-stroke: 2px rgba(245, 126, 32, 0.7);
    transition: color 0.4s ease, -webkit-text-stroke-color 0.4s ease;
}

.msr-pf-page-hero:hover .msr-pf-page-title-stroke {
    color: #f57e20;
    -webkit-text-stroke-color: transparent;
}

.msr-pf-page-sub {
    font-size: 16px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.45);
    margin: 0;
    max-width: 560px;
}

/* ─── Stats ───────────────────────────────────────────────────── */
.msr-pf-page-stats {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
}

.msr-pf-page-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.msr-pf-page-stat-num {
    font-size: 28px;
    font-weight: 900;
    color: #f57e20;
    line-height: 1;
}

.msr-pf-page-stat-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.35);

    text-transform: uppercase;
}

.msr-pf-page-stat-sep {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
}

/* ─── Grid Section ────────────────────────────────────────────── */
.msr-pf-page-section {
    background: #03111c;
    padding: 0 0 100px;
}

/* ─── Filters ─────────────────────────────────────────────────── */
.msr-pf-page-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 48px;
}

.msr-pf-page-filter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.28s ease;
}

.msr-pf-page-filter:hover {
    background: rgba(245, 126, 32, 0.1);
    border-color: rgba(245, 126, 32, 0.3);
    color: #f57e20;
}

.msr-pf-page-filter.msr-pf-page-filter-active {
    background: #f57e20;
    border-color: #f57e20;
    color: #fff;
}

.msr-pf-page-filter-count {
    font-size: 11px;
    opacity: 0.7;
    background: rgba(0, 0, 0, 0.15);
    padding: 2px 7px;
    border-radius: 100px;
}

.msr-pf-page-filter-active .msr-pf-page-filter-count {
    background: rgba(255, 255, 255, 0.2);
    opacity: 1;
}

/* ─── Grid ────────────────────────────────────────────────────── */
.msr-pf-page-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
}

.pf-pg-w12 {
    grid-column: span 12;
}

.pf-pg-w8 {
    grid-column: span 8;
}

.pf-pg-w6 {
    grid-column: span 6;
}

.pf-pg-w4 {
    grid-column: span 4;
}

.msr-pf-page-item.pf-pg-hide {
    display: none;
}

.msr-pf-page-item {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

@keyframes pfPageFadeIn {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ─── Media ───────────────────────────────────────────────────── */
.msr-pf-page-media {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #0a1f30;
    cursor: pointer;
}

.pf-pg-w12 .msr-pf-page-media {
    aspect-ratio: 21 / 8;
}

.pf-pg-w8 .msr-pf-page-media {
    aspect-ratio: 16 / 10;
}

.pf-pg-w6 .msr-pf-page-media {
    aspect-ratio: 4 / 3;
}

.pf-pg-w4 .msr-pf-page-media {
    aspect-ratio: 3 / 4;
}

/* ─── Image & Video ────────────────────────────────────────────── */
.msr-pf-page-img,
.msr-pf-page-vid {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.msr-pf-page-media:hover .msr-pf-page-img,
.msr-pf-page-media:hover .msr-pf-page-vid {
    transform: scale(1.05);
}

/* ─── Badge ───────────────────────────────────────────────────── */
.msr-pf-page-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;

    padding: 5px 12px;
    border-radius: 100px;
    background: rgba(245, 126, 32, 0.88);
    color: #fff;
    backdrop-filter: blur(8px);
}

/* ─── Play ────────────────────────────────────────────────────── */
.msr-pf-page-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: rgba(245, 126, 32, 0.88);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    z-index: 5;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    padding-left: 5px;
    box-shadow: 0 12px 40px rgba(245, 126, 32, 0.35);
}

.msr-pf-page-play-ring {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 1px solid rgba(245, 126, 32, 0.35);
    animation: pfPlayRing 2.5s ease-in-out infinite;
}

@keyframes pfPlayRing {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

.msr-pf-page-media:hover .msr-pf-page-play {
    transform: translate(-50%, -50%) scale(1.1);
}

/* ─── Embed ───────────────────────────────────────────────────── */
.msr-pf-page-embed-thumb {
    position: relative;
    width: 100%;
    height: 100%;
}

.msr-pf-page-embed-thumb .msr-pf-page-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.msr-pf-page-embed-ph {
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(12, 60, 100, 0.5), #03111c);
}

.msr-pf-page-embed-frame {
    position: absolute;
    inset: 0;
}

.msr-pf-page-embed-frame iframe {
    width: 100% !important;
    height: 100% !important;
    border: none !important;
    display: block;
}

/* ─── Overlay ─────────────────────────────────────────────────── */
.msr-pf-page-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(155deg, rgba(7, 39, 62, 0) 30%, rgba(7, 39, 62, 0.94) 100%);
    opacity: 0;
    transition: opacity 0.45s ease;
    display: flex;
    align-items: flex-end;
    z-index: 3;
    border-radius: 24px;
}

.msr-pf-page-media:hover .msr-pf-page-overlay {
    opacity: 1;
}

.msr-pf-page-overlay-body {
    padding: 32px;
    transform: translateY(16px);
    transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.msr-pf-page-media:hover .msr-pf-page-overlay-body {
    transform: translateY(0);
}

.msr-pf-page-overlay-cat {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: #f57e20;
}

.msr-pf-page-overlay-title {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    margin: 0;
    line-height: 1.25;
}

.msr-pf-page-overlay-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
    margin: 0;
    line-height: 1.6;
}

.msr-pf-page-overlay-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid rgba(245, 126, 32, 0.5);
    padding-bottom: 2px;
    width: fit-content;
    margin-top: 4px;
    transition: color 0.25s ease, border-color 0.25s ease;
}

.msr-pf-page-overlay-link:hover {
    color: #f57e20;
    border-color: #f57e20;
}

.msr-pf-page-overlay-border {
    position: absolute;
    inset: 0;
    border-radius: 24px;
    border: 1px solid rgba(245, 126, 32, 0);
    transition: border-color 0.45s ease;
}

.msr-pf-page-media:hover .msr-pf-page-overlay-border {
    border-color: rgba(245, 126, 32, 0.25);
}

/* ─── Number & type ───────────────────────────────────────────── */
.msr-pf-page-num {
    position: absolute;
    top: 14px;
    left: 16px;
    font-size: 11px;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.2);
    z-index: 4;
}

.msr-pf-page-type-indicator {
    position: absolute;
    bottom: 14px;
    left: 16px;
    z-index: 4;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
}

.pf-type-vid {
    background: rgba(245, 126, 32, 0.2);
    color: #f57e20;
}

.pf-type-img {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.5);
}

/* ─── Info bar ────────────────────────────────────────────────── */
.msr-pf-page-info {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 0 4px;
}

.msr-pf-page-info-left {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.msr-pf-page-info-cat {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: #f57e20;
}

.msr-pf-page-info-name {
    font-size: 17px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    line-height: 1.3;
}

.msr-pf-page-info-name a {
    color: inherit;
    text-decoration: none;
    transition: color 0.25s ease;
}

.msr-pf-page-info-name a:hover {
    color: #f57e20;
}

.msr-pf-page-info-year {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.25);
    font-weight: 600;
    white-space: nowrap;
    padding-top: 4px;
}

/* ─── Empty ───────────────────────────────────────────────────── */
.msr-pf-page-empty {
    text-align: center;
    padding: 100px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    color: rgba(255, 255, 255, 0.3);
}

.msr-pf-page-empty h3 {
    font-size: 22px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

.msr-pf-page-empty p {
    font-size: 14px;
    margin: 0;
}

/* ─── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1100px) {
    .pf-pg-w8 {
        grid-column: span 12;
    }

    .pf-pg-w4 {
        grid-column: span 6;
    }
}

@media (max-width: 768px) {
    .msr-pf-page-hero {
        padding: 70px 0 56px;
    }

    .msr-pf-page-title {
        font-size: clamp(36px, 9vw, 56px);
    }

    .pf-pg-w12,
    .pf-pg-w8,
    .pf-pg-w6,
    .pf-pg-w4 {
        grid-column: span 12;
    }

    .msr-pf-page-overlay {
        opacity: 1;
    }

    .msr-pf-page-overlay-body {
        transform: translateY(0);
    }
}


/* ── نقطه نارنجی (در RTL سمت راست = ابتدای خواندن) ────────────── */
.msr-badge-dot {
    width: 5px;
    height: 5px;
    min-width: 5px;
    border-radius: 50%;
    background: rgba(245, 126, 32, 0.38);
    position: relative;
    transition: background 0.28s ease, transform 0.28s ease;
    order: -1;
    /* در RTL flex این رو کنار متن سمت راست نگه می‌داره */
}

.msr-badge-dot::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 1px solid rgba(245, 126, 32, 0);
    transition: border-color 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.msr-serv-item:hover .msr-badge-dot {
    background: #f57e20;
    transform: scale(1.25);
}

.msr-serv-item:hover .msr-badge-dot::after {
    border-color: rgba(245, 126, 32, 0.45);
    transform: scale(1.9);
}

/* ── Badge Text ───────────────────────────────────────────────── */
.msr-badge-text {
    flex: 1;
    min-width: 0;
    line-height: 1.5;
    word-break: keep-all;
}

/* ── Entrance animation (RTL: از چپ وارد میشه) ───────────────── */
@keyframes msrBadgeIn {
    from {
        opacity: 0;
        transform: translateX(-8px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ── Plain description (no sub-branches) ─────────────────────── */
.msr-serv-desc {
    font-size: 13px;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.4);
    margin: 12px 0 0;
    direction: rtl;
    text-align: right;
}

/* ── Light mode ───────────────────────────────────────────────── */
body.light .msr-badge {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.08);
    color: rgba(20, 20, 20, 0.55);
}

body.light .msr-badge-strip::before {
    background: linear-gradient(to bottom,
            transparent,
            rgba(245, 126, 32, 0.45) 25%,
            rgba(245, 126, 32, 0.45) 75%,
            transparent);
}

body.light .msr-serv-item:hover .msr-badge {
    background: rgba(245, 126, 32, 0.06);
    border-color: rgba(245, 126, 32, 0.22);
    color: rgba(20, 20, 20, 0.82);
}

body.light .msr-serv-item:hover .msr-badge:first-child {
    background: rgba(245, 126, 32, 0.1);
    border-color: rgba(245, 126, 32, 0.35);
    color: #111;
}

body.light .msr-badge-dot {
    background: rgba(245, 126, 32, 0.4);
}

body.light .msr-serv-item:hover .msr-badge-dot {
    background: #e06a10;
}

body.light .msr-serv-desc {
    color: rgba(20, 20, 20, 0.45);
}

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 768px) {
    .msr-badge {
        font-size: 11px;
        padding: 5px 9px;
    }

    .msr-serv-title {
        font-size: 18px;
    }

    .msr-badge-strip {
        gap: 5px;
        margin-top: 12px;
        padding-left: 10px;
    }
}

@media (max-width: 576px) {
    .msr-badge {
        font-size: 10.5px;
        padding: 4px 8px;
    }

    .msr-serv-title {
        font-size: 16px;
    }
}


/* ================================================================
   MASIRIFY — Creative Footer Redesign
   ایده: CTA zone + brand strip + minimal bottom bar
   Colors: Navy #07273e | Deep #061c2e | Orange #f57e20
================================================================ */

/* ── Reset & Base ─────────────────────────────────────────────── */
.msr-footer {
    position: relative;
    background: #061c2e;
    direction: rtl;
    text-align: right;
    font-family: inherit;
    overflow: hidden;
}

/* ── CTA Zone ─────────────────────────────────────────────────── */
.msr-footer-cta {
    position: relative;
    padding: 90px 0 80px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    overflow: hidden;
}

/* Decorative glow orb */
.msr-footer-orb {
    position: absolute;
    top: -120px;
    left: -60px;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle,
        rgba(245, 126, 32, 0.18) 0%,
        rgba(245, 126, 32, 0.05) 45%,
        transparent 70%
    );
    pointer-events: none;
    animation: msrOrbPulse 6s ease-in-out infinite;
}

@keyframes msrOrbPulse {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50%       { transform: scale(1.12); opacity: 1; }
}

.msr-footer-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.msr-footer-cta-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: #f57e20;
    margin-bottom: 14px;
}

.msr-footer-cta-title {
    font-size: clamp(30px, 4vw, 52px);
    font-weight: 800;
    line-height: 1.25;
    color: #ffffff;
    margin: 0;
}

.msr-footer-cta-highlight {
    color: #f57e20;
    position: relative;
    display: inline-block;
}

/* underline swipe */
.msr-footer-cta-highlight::after {
    content: '';
    position: absolute;
    bottom: -4px;
    right: 0;
    left: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #f57e20);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.msr-footer-cta:hover .msr-footer-cta-highlight::after {
    transform: scaleX(1);
}

.msr-footer-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    background: #f57e20;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    border-radius: 100px;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1),
                box-shadow 0.3s ease;
    box-shadow: 0 8px 28px rgba(245, 126, 32, 0.35);
}

.msr-footer-cta-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.msr-footer-cta-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 14px 36px rgba(245, 126, 32, 0.45);
    color: #fff;
    text-decoration: none;
}

.msr-footer-cta-btn:hover::before {
    opacity: 1;
}

.msr-footer-cta-btn svg {
    transition: transform 0.3s ease;
}

.msr-footer-cta-btn:hover svg {
    transform: translateX(-4px);
}

/* ── Mid Section ─────────────────────────────────────────────── */
.msr-footer-mid {
    padding: 60px 0 56px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.msr-footer-mid-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1.4fr;
    gap: 48px 40px;
    align-items: start;
}

/* ── Brand Column ─────────────────────────────────────────────── */
.msr-footer-logo {
    display: inline-block;
    margin-bottom: 18px;
}

.msr-footer-logo img {
    height: 46px;
    width: auto;
    object-fit: contain;
}

.msr-footer-tagline {
    font-size: 14px;
    line-height: 1.85;
    color: rgba(255,255,255,0.42);
    margin: 0 0 28px;
    max-width: 340px;
}

/* Social icons */
.msr-footer-social {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.msr-footer-soc {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255,255,255,0.055);
    border: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.55);
    font-size: 14px;
    text-decoration: none;
    transition: background  0.28s ease,
                border-color 0.28s ease,
                color        0.28s ease,
                transform    0.28s cubic-bezier(0.34,1.56,0.64,1);
}

.msr-footer-soc:hover {
    background: rgba(245, 126, 32, 0.15);
    border-color: rgba(245, 126, 32, 0.35);
    color: #f57e20;
    transform: translateY(-3px);
}

/* ── Column heading ───────────────────────────────────────────── */
.msr-footer-col-title {
    display: block;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    color: rgba(255,255,255,0.28);
    margin-bottom: 20px;
}

/* ── Nav Links ────────────────────────────────────────────────── */
.msr-footer-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.msr-footer-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14.5px;
    font-weight: 500;
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    padding: 6px 0;
    position: relative;
    transition: color 0.25s ease, gap 0.25s ease;
}

.msr-footer-nav-dot {
    width: 4px;
    height: 4px;
    min-width: 4px;
    border-radius: 50%;
    background: rgba(245, 126, 32, 0.3);
    transition: background 0.25s ease, transform 0.25s ease;
}

.msr-footer-nav-link:hover {
    color: rgba(255,255,255,0.92);
    text-decoration: none;
    gap: 14px;
}

.msr-footer-nav-link:hover .msr-footer-nav-dot {
    background: #f57e20;
    transform: scale(1.4);
}

/* ── Contact items ────────────────────────────────────────────── */
.msr-footer-contact-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.msr-footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    line-height: 1.6;
    transition: color 0.25s ease;
}

a.msr-footer-contact-item:hover {
    color: rgba(255,255,255,0.88);
    text-decoration: none;
}

a.msr-footer-contact-item:hover .msr-footer-contact-icon {
    background: rgba(245, 126, 32, 0.2);
    border-color: rgba(245, 126, 32, 0.4);
    color: #f57e20;
}

.msr-footer-contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 8px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.4);
    font-size: 12px;
    margin-top: 1px;
    transition: background 0.28s ease,
                border-color 0.28s ease,
                color 0.28s ease;
}

/* ── Bottom Bar ───────────────────────────────────────────────── */
.msr-footer-bottom {
    padding: 20px 0;
}

.msr-footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.msr-footer-copy,
.msr-footer-craft {
    font-size: 12.5px;
    color: rgba(255,255,255,0.28);
}

.msr-footer-heart {
    color: #f57e20;
    display: inline-block;
    animation: msrHeartbeat 2.2s ease-in-out infinite;
}

@keyframes msrHeartbeat {
    0%, 100% { transform: scale(1); }
    14%       { transform: scale(1.3); }
    28%       { transform: scale(1); }
    42%       { transform: scale(1.15); }
    70%       { transform: scale(1); }
}

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 992px) {
    .msr-footer-mid-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px 32px;
    }

    .msr-footer-brand {
        grid-column: 1 / -1;
    }

    .msr-footer-tagline {
        max-width: 100%;
    }

    .msr-footer-cta-title {
        font-size: clamp(26px, 5vw, 42px);
    }
}

@media (max-width: 640px) {
    .msr-footer-cta {
        padding: 60px 0 50px;
    }

    .msr-footer-cta-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 28px;
    }

    .msr-footer-mid-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .msr-footer-mid {
        padding: 44px 0 40px;
    }

    .msr-footer-bottom-inner {
        flex-direction: column;
        text-align: center;
    }
}


/* ================================================================
   MASIRIFY — Courses Section
   ایده: card grid با accent رنگ پویا، image-top، progress bar
   Dark navy + accent per-card — Fully RTL
================================================================ */

/* ── Section wrapper ───────────────────────────────────────────── */
.msr-courses {
    position: relative;
    background: #07273e;
    padding: 100px 0 110px;
    overflow: hidden;
    direction: rtl;
}

/* ── Background decoration ─────────────────────────────────────── */
.msr-courses-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.msr-courses-glow {
    position: absolute;
    top: -200px;
    right: -150px;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle,
        rgba(245,126,32,0.12) 0%,
        rgba(245,126,32,0.03) 50%,
        transparent 70%
    );
    animation: crsGlowPulse 7s ease-in-out infinite;
}

@keyframes crsGlowPulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50%       { transform: scale(1.15); opacity: 1; }
}

.msr-courses-grid-svg {
    position: absolute;
    inset: 0;
    opacity: 0.5;
}

/* ── Section header ────────────────────────────────────────────── */
.msr-courses-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 56px;
}

.msr-courses-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: #f57e20;
    margin-bottom: 14px;
}

.msr-courses-kicker-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(245,126,32,0.15);
    font-size: 14px;
}

.msr-courses-title {
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin: 0 0 12px;
}

.msr-courses-title-accent {
    color: #f57e20;
    position: relative;
}

.msr-courses-subtitle {
    font-size: 15px;
    color: rgba(255,255,255,0.45);
    line-height: 1.7;
    margin: 0;
    max-width: 480px;
}

/* ── Grid ──────────────────────────────────────────────────────── */
.msr-courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

/* ── Card ──────────────────────────────────────────────────────── */
.msr-course-card {
    position: relative;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1),
                border-color 0.3s ease,
                box-shadow 0.35s ease;
}

.msr-course-card:hover {
    transform: translateY(-6px);
    border-color: rgba(var(--crs-accent-rgb, 245,126,32), 0.3);
    box-shadow: 0 20px 50px rgba(0,0,0,0.35),
                0 0 0 1px rgba(255,255,255,0.05);
}

/* Accent line at top */
.msr-course-accent-line {
    display: block;
    height: 3px;
    background: var(--crs-accent, #f57e20);
    width: 0;
    transition: width 0.4s ease;
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    border-radius: 3px 3px 0 0;
}

.msr-course-card:hover .msr-course-accent-line {
    width: 100%;
}

/* ── Top section: image / icon ─────────────────────────────────── */
.msr-course-top {
    position: relative;
    width: 100%;
    height: 190px;
    overflow: hidden;
    flex-shrink: 0;
    background: #061c2e;
}

.msr-course-img {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.msr-course-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s cubic-bezier(0.25,0.46,0.45,0.94);
}

.msr-course-card:hover .msr-course-img img {
    transform: scale(1.06);
}

.msr-course-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(6,28,46,0.7) 0%, transparent 60%);
}

/* Icon fallback */
.msr-course-icon-wrap {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #07273e 0%, #0b3352 100%);
    font-size: 52px;
    color: var(--crs-accent, #f57e20);
    opacity: 0.7;
    transition: opacity 0.3s ease, transform 0.4s ease;
}

.msr-course-card:hover .msr-course-icon-wrap {
    opacity: 1;
    transform: scale(1.05);
}

/* Status badge */
.msr-course-status {
    position: absolute;
    top: 14px;
    right: 14px;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 100px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2;
}

.msr-course-status--open {
    background: rgba(16,185,129,0.2);
    border: 1px solid rgba(16,185,129,0.4);
    color: #34d399;
}

.msr-course-status--full {
    background: rgba(239,68,68,0.18);
    border: 1px solid rgba(239,68,68,0.35);
    color: #f87171;
}

/* ── Body ──────────────────────────────────────────────────────── */
.msr-course-body {
    padding: 22px 22px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.msr-course-title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.4;
}

.msr-course-desc {
    font-size: 13.5px;
    line-height: 1.75;
    color: rgba(255,255,255,0.45);
    margin: 0;
    flex: 1;
}

/* Meta */
.msr-course-meta {
    list-style: none;
    padding: 0;
    margin: 6px 0 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.msr-course-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: rgba(255,255,255,0.45);
}

.msr-course-meta-item i {
    color: var(--crs-accent, #f57e20);
    width: 14px;
    text-align: center;
    font-size: 12px;
}

/* Capacity bar */
.msr-course-bar-wrap {
    height: 4px;
    background: rgba(255,255,255,0.08);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 4px;
}

.msr-course-bar {
    height: 100%;
    width: var(--bar-pct, 0%);
    background: var(--crs-accent, #f57e20);
    border-radius: 4px;
    transition: width 1s ease;
}

/* ── Footer / CTA ──────────────────────────────────────────────── */
.msr-course-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 22px 20px;
    border-top: 1px solid rgba(255,255,255,0.06);
    gap: 12px;
}

/* Enroll button */
.msr-course-enroll-form {
    margin: 0;
    padding: 0;
}

.msr-course-enroll-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 20px;
    background: var(--crs-accent, #f57e20);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    border: none;
    border-radius: 100px;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1),
                box-shadow 0.3s ease,
                filter 0.3s ease;
    box-shadow: 0 4px 14px rgba(0,0,0,0.25);
    white-space: nowrap;
}

.msr-course-enroll-btn:hover {
    transform: scale(1.05);
    filter: brightness(1.08);
    box-shadow: 0 8px 22px rgba(0,0,0,0.3);
}

.msr-course-enroll-btn i {
    font-size: 11px;
    transition: transform 0.3s ease;
}

.msr-course-enroll-btn:hover i {
    transform: translateX(-3px);
}

/* Tag states */
.msr-course-enrolled-tag,
.msr-course-full-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 100px;
}

.msr-course-enrolled-tag {
    background: rgba(16,185,129,0.12);
    border: 1px solid rgba(16,185,129,0.3);
    color: #34d399;
}

.msr-course-full-tag {
    background: rgba(239,68,68,0.1);
    border: 1px solid rgba(239,68,68,0.25);
    color: #f87171;
}

/* Detail link */
.msr-course-detail-link {
    font-size: 12.5px;
    font-weight: 600;
    color: rgba(255,255,255,0.35);
    text-decoration: none;
    transition: color 0.25s ease;
    white-space: nowrap;
}

.msr-course-detail-link:hover {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
}

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .msr-courses {
        padding: 70px 0 80px;
    }

    .msr-courses-header {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 36px;
    }

    .msr-courses-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .msr-courses-title {
        font-size: 30px;
    }
}


/* ================================================================
   MASIRIFY — Articles / Blog Section Redesign
   ایده: magazine editorial — hero card + side stack + ticker
   Dark navy #07273e | Orange #f57e20 — Fully RTL
================================================================ */

/* ── Section wrapper ───────────────────────────────────────────── */
.msr-blog {
    position: relative;
    background: #07273e;
    padding: 100px 0 110px;
    overflow: hidden;
    direction: rtl;
}

/* ── Background ────────────────────────────────────────────────── */
.msr-blog-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.msr-blog-bg-glow {
    position: absolute;
    bottom: -180px;
    left: -120px;
    width: 550px;
    height: 550px;
    border-radius: 50%;
    background: radial-gradient(circle,
        rgba(245,126,32,0.1) 0%,
        rgba(245,126,32,0.02) 50%,
        transparent 70%
    );
    animation: blogGlow 8s ease-in-out infinite;
}

@keyframes blogGlow {
    0%, 100% { transform: scale(1) translateY(0); opacity: 0.6; }
    50%       { transform: scale(1.1) translateY(-20px); opacity: 1; }
}

.msr-blog-bg-noise {
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 80px,
            rgba(255,255,255,0.015) 80px,
            rgba(255,255,255,0.015) 81px
        );
}

/* ── Section head ──────────────────────────────────────────────── */
.msr-blog-head {
    margin-bottom: 52px;
}

/* Eyebrow */
.msr-blog-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #f57e20;
    margin-bottom: 20px;
}

.msr-blog-eyebrow-dash {
    display: block;
    width: 32px;
    height: 1px;
    background: #f57e20;
    opacity: 0.5;
}

/* Title row */
.msr-blog-title-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.msr-blog-title {
    font-size: clamp(36px, 5vw, 68px);
    font-weight: 900;
    color: #ffffff;
    line-height: 1.05;
    margin: 0;
}

/* Outlined text style */
.msr-blog-title-outline {
    display: block;
    color: transparent;
    -webkit-text-stroke: 2px #f57e20;
    text-stroke: 2px #f57e20;
}

/* "All articles" button */
.msr-blog-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 11px 24px;
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 100px;
    color: rgba(255,255,255,0.65);
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: border-color 0.28s ease,
                color         0.28s ease,
                background    0.28s ease,
                transform     0.28s cubic-bezier(0.34,1.56,0.64,1);
}

.msr-blog-all-btn:hover {
    border-color: #f57e20;
    color: #f57e20;
    background: rgba(245,126,32,0.07);
    transform: translateY(-2px);
    text-decoration: none;
}

.msr-blog-all-icon {
    display: inline-flex;
    transition: transform 0.28s ease;
}

.msr-blog-all-btn:hover .msr-blog-all-icon {
    transform: translateX(-4px);
}

/* ── Ticker ────────────────────────────────────────────────────── */
.msr-blog-ticker {
    overflow: hidden;
    border-top: 1px solid rgba(255,255,255,0.07);
    border-bottom: 1px solid rgba(255,255,255,0.07);
    padding: 10px 0;
}

.msr-blog-ticker-track {
    display: flex;
    gap: 0;
    white-space: nowrap;
    animation: blogTicker 28s linear infinite;
    width: max-content;
}

@keyframes blogTicker {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.msr-blog-ticker:hover .msr-blog-ticker-track {
    animation-play-state: paused;
}

.msr-blog-ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 12.5px;
    color: rgba(255,255,255,0.3);
    padding: 0 28px;
    font-weight: 500;
}

.msr-blog-ticker-dot {
    color: #f57e20;
    font-size: 7px;
    opacity: 0.7;
}

/* ── Main grid ─────────────────────────────────────────────────── */
.msr-blog-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 20px;
    align-items: start;
}

/* ── Hero card ─────────────────────────────────────────────────── */
.msr-blog-hero-card {
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1),
                box-shadow 0.35s ease;
    height: 100%;
}

.msr-blog-hero-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 60px rgba(0,0,0,0.4);
    text-decoration: none;
}

/* Hero image */
.msr-blog-hero-media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #061c2e;
    flex-shrink: 0;
}

.msr-blog-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25,0.46,0.45,0.94);
}

.msr-blog-hero-card:hover .msr-blog-hero-img {
    transform: scale(1.05);
}

.msr-blog-hero-ph {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0b3352 0%, #07273e 100%);
}

.msr-blog-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
        rgba(6,28,46,0.55) 0%,
        rgba(6,28,46,0.1) 50%,
        transparent 100%
    );
    transition: opacity 0.3s ease;
}

/* Number watermark */
.msr-blog-card-num {
    position: absolute;
    bottom: 14px;
    left: 16px;
    font-size: 72px;
    font-weight: 900;
    line-height: 1;
    color: rgba(255,255,255,0.06);
    pointer-events: none;
    user-select: none;
    font-variant-numeric: tabular-nums;
}

.msr-blog-card-num--sm {
    font-size: 36px;
    bottom: 8px;
    left: 10px;
}

/* Hero content */
.msr-blog-hero-content {
    padding: 24px 26px 26px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.msr-blog-hero-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.msr-blog-hero-title {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    line-height: 1.4;
    margin: 0;
    transition: color 0.25s ease;
}

.msr-blog-hero-card:hover .msr-blog-hero-title {
    color: #f57e20;
}

.msr-blog-hero-excerpt {
    font-size: 14px;
    line-height: 1.75;
    color: rgba(255,255,255,0.45);
    margin: 0;
    flex: 1;
}

.msr-blog-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #f57e20;
    margin-top: 4px;
    transition: gap 0.25s ease;
}

.msr-blog-hero-card:hover .msr-blog-hero-cta {
    gap: 12px;
}

/* ── Category tag ──────────────────────────────────────────────── */
.msr-blog-cat-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 100px;
    background: rgba(245,126,32,0.15);
    border: 1px solid rgba(245,126,32,0.3);
    color: #f57e20;
    white-space: nowrap;
}

.msr-blog-cat-tag--sm {
    font-size: 10px;
    padding: 3px 8px;
}

/* Read time */
.msr-blog-read-time {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: rgba(255,255,255,0.4);
}

.msr-blog-read-time--sm {
    font-size: 11px;
}

/* ── Side column ───────────────────────────────────────────────── */
.msr-blog-side {
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: 100%;
}

/* ── Side card ─────────────────────────────────────────────────── */
.msr-blog-side-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-radius: 14px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: background    0.28s ease,
                border-color  0.28s ease,
                transform     0.3s cubic-bezier(0.34,1.56,0.64,1);
}

/* Sweep hover effect */
.msr-blog-side-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(245,126,32,0.06), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.msr-blog-side-card:hover {
    background: rgba(255,255,255,0.055);
    border-color: rgba(245,126,32,0.22);
    transform: translateX(-3px);
    text-decoration: none;
}

.msr-blog-side-card:hover::before {
    opacity: 1;
}

/* Thumb */
.msr-blog-side-thumb {
    position: relative;
    width: 86px;
    min-width: 86px;
    height: 72px;
    border-radius: 10px;
    overflow: hidden;
    background: #061c2e;
    flex-shrink: 0;
}

.msr-blog-side-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}

.msr-blog-side-card:hover .msr-blog-side-img {
    transform: scale(1.08);
}

.msr-blog-side-ph {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0b3352 0%, #07273e 100%);
}

/* Side body */
.msr-blog-side-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.msr-blog-side-top {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.msr-blog-side-title {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255,255,255,0.82);
    line-height: 1.45;
    margin: 0;
    transition: color 0.25s ease;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.msr-blog-side-card:hover .msr-blog-side-title {
    color: #fff;
}

.msr-blog-side-date {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    color: rgba(255,255,255,0.3);
}

/* Hover arrow */
.msr-blog-side-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    min-width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(245,126,32,0.1);
    border: 1px solid rgba(245,126,32,0.2);
    color: #f57e20;
    opacity: 0;
    transform: translateX(6px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.msr-blog-side-card:hover .msr-blog-side-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* ── Empty state ───────────────────────────────────────────────── */
.msr-blog-empty {
    padding: 60px 20px;
    text-align: center;
    color: rgba(255,255,255,0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.msr-blog-empty p {
    margin: 0;
    font-size: 15px;
}

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 992px) {
    .msr-blog-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .msr-blog-hero-media {
        aspect-ratio: 16 / 9;
    }

    .msr-blog {
        padding: 70px 0 80px;
    }

    .msr-blog-title {
        font-size: clamp(32px, 6vw, 52px);
    }
}

@media (max-width: 576px) {
    .msr-blog-title-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .msr-blog-side-thumb {
        width: 72px;
        min-width: 72px;
        height: 60px;
    }

    .msr-blog-side-card {
        gap: 12px;
    }

    .msr-blog-title {
        font-size: 30px;
    }
}
