/**
 * Microsoft AI-inspired section layout (LIMATS brand colors)
 */

.ms-page {
    background: var(--limats-bg);
}

/* Hero full-bleed like Microsoft AI landing */
.ms-hero {
    position: relative;
    min-height: clamp(300px, 38vh, 460px);
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #0a0a0a;
    color: var(--limats-text-light);
}

.ms-hero__media {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center 35%;
    background-repeat: no-repeat;
    opacity: 0.55;
}

.ms-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.45) 55%, rgba(214,125,19,0.25) 100%);
}

.ms-hero__content {
    position: relative;
    z-index: 2;
    max-width: 720px;
    padding: 1.75rem 0;
}

.ms-hero__eyebrow {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--limats-primary);
    margin-bottom: 0.65rem;
}

.ms-hero h1 {
    font-family: var(--limats-font-title);
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 700;
    line-height: 1.15;
    color: #fff;
    margin-bottom: 0.85rem;
}

.ms-hero__lead {
    font-size: 1.05rem;
    line-height: 1.55;
    color: rgba(255,255,255,0.88);
    margin-bottom: 1.35rem;
}

.ms-hero--glass {
    min-height: clamp(320px, 42vh, 520px);
}

.ms-hero--glass .ms-hero__stack {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ms-hero--glass .ms-hero__card {
    padding: 1rem 1.2rem;
    border-radius: calc(var(--limats-radius) + 6px);
    background: linear-gradient(
        145deg,
        rgba(255, 245, 233, 0.62) 0%,
        rgba(255, 255, 255, 0.18) 52%,
        rgba(239, 163, 73, 0.12) 100%
    );
    border: 1px solid rgba(239, 163, 73, 0.28);
    box-shadow:
        0 14px 36px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.ms-hero--glass h1 {
    margin-bottom: 0;
}

.ms-hero--glass .ms-hero__lead {
    margin-bottom: 0;
}

.ms-hero--glass .ms-hero__card--actions {
    padding: 1rem 1.2rem;
}

.ms-hero--glass .ms-hero__card--actions .ms-hero__actions {
    margin-bottom: 0;
}

@media (max-width: 767px) {
    .ms-hero {
        min-height: auto;
    }

    .ms-hero__content {
        padding: 1.75rem 1.15rem;
    }

    .ms-hero--glass .ms-hero__stack {
        gap: 0.85rem;
    }

    .ms-hero--glass .ms-hero__card {
        padding: 1.25rem 1.35rem;
    }

    .ms-hero--glass .ms-hero__card--actions {
        padding: 1.15rem 1.3rem;
    }

    .ms-hero--glass h1 {
        font-size: clamp(1.65rem, 6vw, 2.15rem);
    }
}

@media (max-width: 575px) {
    .ms-hero__content {
        padding: 1.5rem 1rem;
    }

    .ms-hero--glass .ms-hero__card {
        padding: 1.35rem 1.4rem;
    }

    .ms-hero--glass .ms-hero__card--actions {
        padding: 1.2rem 1.35rem;
    }

    .ms-hero--glass .ms-hero__lead {
        font-size: 0.98rem;
    }
}

.ms-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.ms-hero .btn-limats-outline.text-white {
    border-color: rgba(255,255,255,0.85);
    color: #fff;
}

.ms-hero .btn-limats-outline.text-white:hover {
    background: rgba(255,255,255,0.12);
    border-color: #fff;
    color: #fff;
}

/* Section shell */
.ms-section {
    padding: 4.5rem 0;
}

.ms-section--alt {
    background: var(--limats-secondary);
}

.ms-section--light {
    background: var(--limats-primary-light);
}

.ms-section--dark {
    background: #1a1a1a;
    color: #fff;
}

.ms-section__eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--limats-primary-dark);
    margin-bottom: 0.75rem;
}

.ms-section--dark .ms-section__eyebrow {
    color: var(--limats-primary);
}

.ms-section--dark h2 {
    color: #fff;
}

.ms-section h2 {
    font-family: var(--limats-font-title);
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.ms-section__lead {
    font-size: 1.1rem;
    color: var(--limats-text-secondary);
    max-width: 640px;
    line-height: 1.65;
}

/* Inner page header (copy left, image right) */
.ms-page-header {
    padding-top: 5rem;
    padding-bottom: 3rem;
}

.ms-page-header__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 3rem;
    align-items: center;
}

.ms-page-header__title {
    font-family: var(--limats-font-title);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1rem;
    color: var(--limats-text);
}

.ms-page-header__copy .ms-section__lead {
    max-width: 520px;
}

.ms-page-header__actions {
    margin-top: 1.5rem;
}

.ms-page-header__media {
    position: relative;
    border-radius: calc(var(--limats-radius) + 4px);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    box-shadow:
        0 24px 48px rgba(214, 125, 19, 0.16),
        0 8px 24px var(--limats-shadow);
    border: 1px solid rgba(239, 163, 73, 0.25);
}

.ms-page-header__media::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, rgba(239, 163, 73, 0.12) 0%, transparent 55%);
    pointer-events: none;
    z-index: 1;
}

.ms-page-header__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ms-page-header__media-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 1.25rem 1.35rem;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.82) 100%);
    color: #fff;
}

.ms-page-header__media-badge {
    display: inline-block;
    margin-bottom: 0.5rem;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: var(--limats-primary);
    color: #fff;
}

.ms-page-header__media-title {
    font-family: var(--limats-font-title);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 0.35rem;
    color: #fff;
}

.ms-page-header__media-date {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.88);
}

@media (max-width: 991px) {
    .ms-page-header {
        padding-top: 4rem;
        padding-bottom: 2.5rem;
    }

    .ms-page-header__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .ms-page-header__media {
        max-width: 560px;
    }
}

.ms-section--dark .ms-section__lead {
    color: rgba(255,255,255,0.75);
}

/* Split feature (image + copy) */
.ms-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

@media (max-width: 991px) {
    .ms-split {
        grid-template-columns: 1fr;
    }
}

.ms-split__media {
    border-radius: var(--limats-radius);
    overflow: hidden;
    aspect-ratio: 4/3;
    box-shadow: 0 24px 48px var(--limats-shadow);
}

.ms-split__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ms-split--reverse .ms-split__media {
    order: 2;
}

@media (max-width: 991px) {
    .ms-split--reverse .ms-split__media {
        order: 0;
    }
}

.ms-split__copy-card--styled {
    padding: 1.85rem 1.9rem;
    border-radius: calc(var(--limats-radius) + 8px);
    background: linear-gradient(
        160deg,
        #fff 0%,
        rgba(255, 245, 233, 0.55) 55%,
        rgba(245, 242, 221, 0.75) 100%
    );
    border: 1px solid rgba(214, 125, 19, 0.16);
    box-shadow:
        0 16px 40px rgba(214, 125, 19, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.ms-split__copy-card--styled h2 {
    font-size: clamp(1.55rem, 2.5vw, 2rem);
    margin-bottom: 0.75rem;
    line-height: 1.25;
}

.ms-split__copy-card--styled .ms-section__lead {
    margin-bottom: 1.15rem !important;
    font-size: 1.02rem;
    line-height: 1.65;
    max-width: none;
}

.ms-split__highlights {
    list-style: none;
    margin: 0 0 1.15rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.ms-split__highlights li {
    position: relative;
    padding-left: 1.45rem;
    font-size: 0.94rem;
    line-height: 1.5;
    color: var(--limats-text-secondary);
}

.ms-split__highlights li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 0.15rem;
    font-size: 0.72rem;
    color: var(--limats-primary-dark);
}

.ms-split__callout {
    margin: 0 0 1.35rem;
    padding: 0.85rem 1rem;
    border-radius: var(--limats-radius);
    font-size: 0.92rem;
    line-height: 1.55;
    font-weight: 600;
    color: var(--limats-primary-dark);
    background: rgba(239, 163, 73, 0.12);
    border: 1px solid rgba(214, 125, 19, 0.2);
}

@media (max-width: 767px) {
    .ms-split__copy-card--styled {
        padding: 1.35rem 1.4rem;
    }

    .ms-split__highlights li {
        font-size: 0.9rem;
    }

    .ms-split__callout {
        font-size: 0.88rem;
    }
}

/* Carousel panel sections (projects, insights) */
.ms-section--projects,
.ms-section--insights {
    position: relative;
    overflow: hidden;
}

.ms-section--projects {
    background: linear-gradient(180deg, #fff 0%, rgba(255, 245, 233, 0.55) 48%, var(--limats-secondary) 100%);
}

.ms-section--insights {
    background: linear-gradient(180deg, var(--limats-secondary) 0%, #fff 42%, rgba(255, 245, 233, 0.4) 100%);
}

.ms-carousel-panel__glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 12% 20%, rgba(239, 163, 73, 0.16) 0%, transparent 50%),
        radial-gradient(ellipse at 88% 75%, rgba(214, 125, 19, 0.1) 0%, transparent 45%);
    pointer-events: none;
}

.ms-carousel-panel__intro {
    max-width: 720px;
    margin-bottom: 2rem;
}

.ms-carousel-panel__intro h2 {
    margin-bottom: 0.75rem;
}

.ms-carousel-panel__intro .ms-section__lead {
    margin-bottom: 0;
}

.ms-carousel-panel__intro--card {
    max-width: none;
    margin-bottom: 1.5rem;
    padding: 1.75rem 1.9rem;
    border-radius: calc(var(--limats-radius) + 8px);
    background: linear-gradient(
        160deg,
        #fff 0%,
        rgba(255, 245, 233, 0.6) 100%
    );
    border: 1px solid rgba(214, 125, 19, 0.16);
    box-shadow: 0 12px 32px rgba(214, 125, 19, 0.08);
}

.ms-carousel-panel__panel {
    padding: 1.75rem;
    border-radius: calc(var(--limats-radius) + 10px);
    background: linear-gradient(
        155deg,
        rgba(255, 255, 255, 0.92) 0%,
        rgba(255, 245, 233, 0.45) 100%
    );
    border: 1px solid rgba(214, 125, 19, 0.18);
    box-shadow:
        0 20px 48px rgba(214, 125, 19, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.ms-section--projects .ms-card,
.ms-section--insights .ms-card {
    border-color: rgba(214, 125, 19, 0.16);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

/* Projects carousel cards */
.ms-card--project {
    position: relative;
    border-radius: calc(var(--limats-radius) + 8px);
    border: 1px solid rgba(214, 125, 19, 0.16);
    background: #fff;
    box-shadow:
        0 14px 36px rgba(42, 38, 34, 0.06),
        0 4px 14px rgba(214, 125, 19, 0.06);
    isolation: isolate;
}

.ms-card--project::after {
    content: '';
    position: absolute;
    inset: auto 0 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--limats-primary), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.ms-card--project:hover {
    transform: translateY(-6px);
    border-color: rgba(214, 125, 19, 0.32);
    box-shadow:
        0 24px 52px rgba(214, 125, 19, 0.14),
        0 8px 20px rgba(42, 38, 34, 0.08);
}

.ms-card--project:hover::after {
    opacity: 1;
}

.ms-card--project .ms-card__img {
    position: relative;
    aspect-ratio: 16 / 10;
}

.ms-card--project .ms-card__img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0) 35%,
        rgba(20, 14, 8, 0.55) 100%
    );
    pointer-events: none;
}

.ms-card--project .ms-card__tag--overlay {
    position: absolute;
    left: 0.9rem;
    bottom: 0.9rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    width: fit-content;
    max-width: calc(100% - 1.8rem);
    padding: 0.36rem 0.75rem;
    border-radius: var(--limats-radius-pill);
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--limats-primary-dark);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    margin: 0;
}

.ms-card--project .ms-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 11.5rem;
    padding: 0;
    background: #fff;
}

.ms-card--project .ms-card__content {
    flex: 1;
    padding: 1.35rem 1.4rem 1rem;
}

.ms-card--project h3 {
    position: relative;
    font-size: 1.12rem;
    line-height: 1.35;
    margin: 0 0 0.65rem;
    padding-bottom: 0.65rem;
    color: var(--limats-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ms-card--project h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 2.5rem;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--limats-primary), rgba(239, 163, 73, 0.35));
}

.ms-card--project p {
    font-size: 0.9rem;
    line-height: 1.65;
    margin: 0;
    color: var(--limats-text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ms-card--project .ms-card__footer {
    margin-top: auto;
    padding: 0.95rem 1.4rem 1.25rem;
    border-top: 1px solid rgba(214, 125, 19, 0.12);
    background: linear-gradient(
        180deg,
        rgba(255, 245, 233, 0.35) 0%,
        rgba(255, 245, 233, 0.65) 100%
    );
}

.ms-card--project .ms-card__btn {
    margin: 0;
    width: 100%;
    justify-content: center;
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
    font-weight: 700;
    border-radius: calc(var(--limats-radius) + 2px);
    background: #fff;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.ms-card--project:hover .ms-card__btn {
    background: var(--limats-primary-light);
    border-color: rgba(214, 125, 19, 0.45);
}

@media (max-width: 767px) {
    .ms-card--project .ms-card__body {
        min-height: 10.5rem;
    }

    .ms-card--project .ms-card__content {
        padding: 1.15rem 1.2rem 0.85rem;
    }

    .ms-card--project .ms-card__footer {
        padding: 0.85rem 1.2rem 1.1rem;
    }

    .ms-card--project h3 {
        font-size: 1.02rem;
    }
}

.ms-section--insights .ms-card__tag {
    display: inline-flex;
    align-self: flex-start;
    width: fit-content;
    max-width: 100%;
    padding: 0.28rem 0.6rem;
    border-radius: var(--limats-radius-pill);
    background: rgba(239, 163, 73, 0.14);
    border: 1px solid rgba(214, 125, 19, 0.18);
}

.ms-section--insights .ms-card__img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.1) 100%);
    pointer-events: none;
}

.ms-section--insights .ms-card__img {
    position: relative;
}

.ms-section--projects .ms-carousel-btn,
.ms-section--insights .ms-carousel-btn {
    border-color: rgba(214, 125, 19, 0.28);
    background: #fff;
    color: var(--limats-primary-dark);
}

.ms-section--projects .ms-carousel-btn:hover,
.ms-section--insights .ms-carousel-btn:hover {
    background: var(--limats-primary-light);
    border-color: rgba(214, 125, 19, 0.45);
}

@media (max-width: 767px) {
    .ms-carousel-panel__panel,
    .ms-carousel-panel__intro--card {
        padding: 1.15rem;
    }
}

/* Insight / product cards carousel */
.ms-carousel-wrap {
    position: relative;
    margin-top: 2.5rem;
}

.ms-carousel-wrap--panel {
    margin-top: 0;
}

.ms-card {
    background: #fff;
    border: 1px solid var(--limats-border);
    border-radius: var(--limats-radius);
    overflow: hidden;
    height: 100%;
    transition: transform 0.25s, box-shadow 0.25s;
    display: flex;
    flex-direction: column;
}

.ms-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(214, 125, 19, 0.15);
}

.ms-card__img {
    aspect-ratio: 16/10;
    overflow: hidden;
}

.ms-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.ms-card:hover .ms-card__img img {
    transform: scale(1.04);
}

.ms-card__body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ms-card__tag {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--limats-primary-dark);
    margin-bottom: 0.5rem;
}

.ms-card h3 {
    font-family: var(--limats-font-title);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.35;
}

.ms-card p {
    color: var(--limats-text-secondary);
    font-size: 0.95rem;
    flex: 1;
    margin-bottom: 1rem;
}

.ms-card__btn {
    align-self: flex-start;
    margin-top: auto;
}

.ms-carousel-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.25rem;
}

.ms-carousel-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    gap: 0.45rem;
    flex-wrap: wrap;
    min-height: 44px;
}

.ms-carousel-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: rgba(214, 125, 19, 0.28);
    cursor: pointer;
    transition: width 0.25s ease, background 0.25s ease, transform 0.2s ease;
}

.ms-carousel-dot:hover {
    background: rgba(214, 125, 19, 0.55);
    transform: scale(1.1);
}

.ms-carousel-dot.active {
    width: 28px;
    background: var(--limats-primary);
    transform: none;
}

.ms-carousel-controls {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    flex-shrink: 0;
}

.ms-carousel-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--limats-border);
    background: #fff;
    color: var(--limats-text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.ms-carousel-btn:hover {
    background: var(--limats-primary);
    border-color: var(--limats-primary);
    color: #fff;
}

/* Industry / gallery grid (legacy) */
.ms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-top: 2rem;
}

/* Gallery page content (below image header) */
.ms-gallery-section {
    padding-top: 2.5rem;
    padding-bottom: 4.5rem;
    background: var(--limats-bg);
}

/* Gallery tabs + lightbox */
.ms-gallery {
    margin-top: 0;
}

.ms-gallery-tabs-wrap {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
}

.ms-gallery-tabs {
    position: relative;
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem;
    padding: 0.4rem;
    background: linear-gradient(145deg, var(--limats-primary-light) 0%, #fff 100%);
    border: 1px solid rgba(239, 163, 73, 0.28);
    border-radius: 999px;
    box-shadow:
        0 4px 24px rgba(214, 125, 19, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.ms-gallery-tabs__indicator {
    position: absolute;
    top: 0.4rem;
    left: 0.4rem;
    height: calc(100% - 0.8rem);
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(214, 125, 19, 0.35);
    box-shadow: 0 4px 16px rgba(214, 125, 19, 0.18);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
    pointer-events: none;
}

.ms-gallery-tab {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: none;
    border-radius: 999px;
    padding: 0.7rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--limats-text-secondary);
    cursor: pointer;
    transition: color 0.25s ease, transform 0.2s ease;
    white-space: nowrap;
}

.ms-gallery-tab__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.5rem;
    height: 1.5rem;
    padding: 0 0.4rem;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 999px;
    background: rgba(239, 163, 73, 0.15);
    color: var(--limats-primary-dark);
    transition: background 0.25s ease, color 0.25s ease;
}

.ms-gallery-tab:hover {
    color: var(--limats-primary-dark);
    transform: translateY(-1px);
}

.ms-gallery-tab.active {
    color: var(--limats-text);
    font-weight: 700;
}

.ms-gallery-tab.active .ms-gallery-tab__label {
    color: var(--limats-text);
    font-weight: 700;
}

.ms-gallery-tab.active .ms-gallery-tab__count {
    background: var(--limats-primary);
    color: #fff;
}

.ms-gallery-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: var(--limats-text-secondary);
}

.ms-gallery-status__label {
    font-weight: 600;
    color: var(--limats-text);
}

.ms-gallery-status__count {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    background: var(--limats-primary-light);
    color: var(--limats-primary-dark);
}

.ms-gallery-grid-wrap {
    position: relative;
}

.ms-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.15rem;
}

.ms-gallery-card.is-hidden {
    display: none;
}

.ms-gallery-grid.is-updating .ms-gallery-card:not(.is-hidden) {
    animation: ms-gallery-card-in 0.35s ease;
}

@keyframes ms-gallery-card-in {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.ms-gallery-card {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 1px solid var(--limats-border);
    border-radius: calc(var(--limats-radius) + 2px);
    overflow: hidden;
    background: #fff;
    cursor: zoom-in;
    text-align: left;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.07);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.ms-gallery-card:hover {
    transform: translateY(-4px);
    border-color: rgba(239, 163, 73, 0.45);
    box-shadow: 0 14px 36px rgba(214, 125, 19, 0.16);
}

.ms-gallery-card__media {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--limats-secondary);
}

.ms-gallery-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.45s ease;
}

.ms-gallery-card:hover .ms-gallery-card__media img {
    transform: scale(1.05);
}

.ms-gallery-card__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1rem 0.9rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.15) 55%, transparent 100%);
    color: #fff;
    pointer-events: none;
}

.ms-gallery-card__title {
    font-family: var(--limats-font-title);
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.35;
}

.ms-gallery-card__zoom {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--limats-primary-dark);
    flex-shrink: 0;
    font-size: 0.85rem;
}

.ms-gallery-lightbox .modal-dialog {
    max-width: min(960px, calc(100vw - 2rem));
    margin: 1rem auto;
}

.ms-gallery-lightbox .modal-content {
    border: 1px solid rgba(239, 163, 73, 0.35);
    border-radius: var(--limats-radius);
    overflow: hidden;
    background: var(--limats-bg);
    box-shadow: 0 24px 48px rgba(214, 125, 19, 0.2);
    max-height: calc(100vh - 2rem);
    display: flex;
    flex-direction: column;
}

.ms-gallery-lightbox .modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--limats-primary-light) 0%, var(--limats-secondary) 100%);
    border-bottom: 3px solid var(--limats-primary);
    color: var(--limats-text);
    padding: 0.75rem 1.15rem;
}

.ms-gallery-lightbox__header-text {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.65rem;
    min-width: 0;
}

.ms-gallery-lightbox .modal-title {
    font-family: var(--limats-font-title);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--limats-primary-dark);
    margin: 0;
}

.ms-gallery-lightbox__counter {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--limats-primary-dark);
    background: rgba(239, 163, 73, 0.2);
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
}

.ms-gallery-lightbox .btn-close {
    opacity: 0.65;
}

.ms-gallery-lightbox .btn-close:hover {
    opacity: 1;
}

.ms-gallery-lightbox__body {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-height: 0;
    max-height: min(68vh, 620px);
    padding: 0.5rem;
    background: #1a1a1a;
}

.ms-gallery-lightbox__img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: min(68vh, 620px);
    margin: 0 auto;
    object-fit: contain;
    background: transparent;
}

.ms-gallery-lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--limats-primary-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.ms-gallery-lightbox__nav:hover:not(:disabled) {
    background: var(--limats-primary);
    color: #fff;
    transform: translateY(-50%) scale(1.05);
}

.ms-gallery-lightbox__nav:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.ms-gallery-lightbox__nav--prev {
    left: 1rem;
}

.ms-gallery-lightbox__nav--next {
    right: 1rem;
}

@media (max-width: 991px) {
    .ms-gallery-lightbox__body,
    .ms-gallery-lightbox__img {
        max-height: min(58vh, 520px);
    }
}

@media (max-width: 575px) {
    .ms-gallery-lightbox .modal-dialog {
        margin: 0.5rem auto;
    }

    .ms-gallery-lightbox .modal-content {
        max-height: calc(100vh - 1rem);
    }

    .ms-gallery-lightbox__body,
    .ms-gallery-lightbox__img {
        max-height: min(52vh, 420px);
    }

    .ms-gallery-lightbox__nav {
        width: 40px;
        height: 40px;
    }

    .ms-gallery-lightbox__nav--prev {
        left: 0.5rem;
    }

    .ms-gallery-lightbox__nav--next {
        right: 0.5rem;
    }
}

@media (max-width: 575px) {
    .ms-gallery-grid {
        grid-template-columns: 1fr;
    }

    .ms-gallery-tabs {
        width: 100%;
        justify-content: center;
        border-radius: var(--limats-radius);
    }

    .ms-gallery-tabs__indicator {
        display: none;
    }

    .ms-gallery-tab {
        flex: 1 1 auto;
        justify-content: center;
        padding: 0.65rem 0.85rem;
        font-size: 0.82rem;
    }

    .ms-gallery-tab.active {
        background: #fff;
        border: 1px solid rgba(214, 125, 19, 0.35);
        box-shadow: 0 2px 10px rgba(214, 125, 19, 0.12);
    }
}

/* Trust pillars */
.ms-trust-section {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse 70% 55% at 0% 0%, rgba(239, 163, 73, 0.14) 0%, transparent 58%),
        radial-gradient(ellipse 60% 45% at 100% 100%, rgba(245, 242, 221, 0.9) 0%, transparent 55%),
        linear-gradient(180deg, #fff 0%, var(--limats-primary-light) 100%);
}

.ms-trust-section__header {
    max-width: 720px;
    margin-bottom: 2.5rem;
}

.ms-pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.35rem;
}

.ms-pillar {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 1.65rem 1.55rem 1.5rem;
    border-radius: calc(var(--limats-radius) + 6px);
    background: linear-gradient(
        165deg,
        rgba(255, 255, 255, 0.98) 0%,
        rgba(255, 245, 233, 0.72) 100%
    );
    border: 1px solid rgba(214, 125, 19, 0.14);
    box-shadow:
        0 14px 36px rgba(214, 125, 19, 0.07),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
    overflow: hidden;
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.ms-pillar::before {
    content: '';
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--limats-primary), var(--limats-primary-dark));
    opacity: 0.85;
    transition: opacity 0.28s ease;
}

.ms-pillar:hover {
    transform: translateY(-6px);
    border-color: rgba(214, 125, 19, 0.32);
    box-shadow:
        0 22px 48px rgba(214, 125, 19, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 1);
}

.ms-pillar__index {
    position: absolute;
    top: 0.85rem;
    right: 1rem;
    font-family: var(--limats-font-title);
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1;
    color: rgba(214, 125, 19, 0.1);
    pointer-events: none;
    transition: color 0.28s ease;
}

.ms-pillar:hover .ms-pillar__index {
    color: rgba(214, 125, 19, 0.18);
}

.ms-pillar__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    margin-bottom: 1.1rem;
    border-radius: 0.85rem;
    background: rgba(239, 163, 73, 0.14);
    border: 1px solid rgba(214, 125, 19, 0.2);
    color: var(--limats-primary-dark);
    font-size: 1.15rem;
    transition: background 0.28s ease, color 0.28s ease, transform 0.28s ease, border-color 0.28s ease;
}

.ms-pillar:hover .ms-pillar__icon {
    background: var(--limats-primary);
    border-color: var(--limats-primary);
    color: #fff;
    transform: translateY(-2px);
}

.ms-pillar__title {
    font-family: var(--limats-font-title);
    font-size: 1.2rem;
    line-height: 1.3;
    margin: 0 0 0.65rem;
    color: var(--limats-text);
}

.ms-pillar__text {
    flex: 1;
    margin: 0 0 1.25rem;
    font-size: 0.94rem;
    line-height: 1.6;
    color: var(--limats-text-secondary);
}

.ms-pillar__link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--limats-primary-dark);
    text-decoration: none;
    transition: color 0.2s ease, gap 0.2s ease;
}

.ms-pillar__link i {
    font-size: 0.78rem;
    transition: transform 0.2s ease;
}

.ms-pillar__link:hover {
    color: var(--limats-primary);
}

.ms-pillar__link:hover i {
    transform: translateX(3px);
}

@media (max-width: 991px) {
    .ms-pillars {
        grid-template-columns: 1fr;
        max-width: 520px;
        margin-inline: auto;
    }
}

@media (max-width: 575px) {
    .ms-trust-section__header {
        margin-bottom: 2rem;
    }

    .ms-pillar {
        padding: 1.4rem 1.3rem 1.25rem;
    }

    .ms-pillar__index {
        font-size: 2rem;
    }
}

/* Testimonial quote block */
.ms-quote {
    background: #fff;
    border-radius: var(--limats-radius);
    padding: 2.5rem;
    border-left: 4px solid var(--limats-primary);
    box-shadow: 0 8px 32px var(--limats-shadow);
}

.ms-quote blockquote {
    font-family: var(--limats-font-title);
    font-size: 1.35rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    color: var(--limats-text);
}

.ms-quote cite {
    font-style: normal;
    font-weight: 600;
    color: var(--limats-primary-dark);
}

.ms-quote span {
    display: block;
    font-size: 0.9rem;
    color: var(--limats-text-muted);
    font-weight: 400;
}

/* FAQ accordion */
.ms-faq .accordion-item {
    border: none;
    border-bottom: 1px solid var(--limats-border);
    background: transparent;
}

.ms-faq .accordion-button {
    font-weight: 600;
    font-size: 1.05rem;
    padding: 1.25rem 0;
    background: transparent;
    box-shadow: none;
    color: var(--limats-text);
}

.ms-faq .accordion-button:not(.collapsed) {
    color: var(--limats-primary-dark);
    background: transparent;
}

.ms-faq .accordion-button::after {
    filter: none;
}

.ms-faq .accordion-body {
    padding: 0 0 1.25rem;
    color: var(--limats-text-secondary);
    line-height: 1.65;
}

/* CTA band */
.ms-cta {
    position: relative;
    overflow: hidden;
    background: linear-gradient(
        135deg,
        var(--limats-primary-light) 0%,
        #d9cfc0 38%,
        #6f655c 100%
    );
    color: var(--limats-text);
    padding: 3.5rem 0;
    text-align: center;
    border-top: 1px solid rgba(214, 125, 19, 0.16);
    border-bottom: 1px solid rgba(42, 38, 34, 0.12);
}

.ms-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 15% 45%, rgba(239, 163, 73, 0.16) 0%, transparent 52%),
        radial-gradient(ellipse at 85% 35%, rgba(255, 245, 233, 0.12) 0%, transparent 48%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(42, 38, 34, 0.14) 100%);
    pointer-events: none;
}

.ms-cta .container {
    position: relative;
    z-index: 1;
    max-width: 720px;
    padding: 2rem 2.25rem;
    border-radius: calc(var(--limats-radius) + 8px);
    background: linear-gradient(
        155deg,
        rgba(255, 255, 255, 0.9) 0%,
        rgba(255, 245, 233, 0.82) 55%,
        rgba(58, 52, 46, 0.08) 100%
    );
    border: 1px solid rgba(214, 125, 19, 0.24);
    box-shadow:
        0 18px 42px rgba(42, 38, 34, 0.12),
        0 8px 24px rgba(214, 125, 19, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.ms-cta h2 {
    color: var(--limats-text);
    margin-bottom: 0.85rem;
}

.ms-cta p {
    color: var(--limats-text-secondary);
    max-width: 520px;
    margin: 0 auto 1.5rem;
    font-size: 1.02rem;
    line-height: 1.6;
}

@media (max-width: 575px) {
    .ms-cta .container {
        padding: 1.5rem 1.25rem;
    }
}

/* Newsletter signup (after CTA) */
.ms-newsletter {
    position: relative;
    overflow: hidden;
    padding: 3rem 0 3.25rem;
    background: linear-gradient(
        180deg,
        rgba(255, 245, 233, 0.55) 0%,
        #fff 42%,
        var(--limats-secondary) 100%
    );
    border-bottom: 1px solid rgba(214, 125, 19, 0.12);
}

.ms-newsletter__glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 12% 40%, rgba(239, 163, 73, 0.14) 0%, transparent 55%),
        radial-gradient(ellipse at 88% 60%, rgba(214, 125, 19, 0.1) 0%, transparent 50%);
}

.ms-newsletter__panel {
    max-width: 700px;
    margin: 0 auto;
    padding: 2rem 2rem 2.1rem;
    text-align: center;
    border-radius: calc(var(--limats-radius) + 10px);
    background: linear-gradient(
        160deg,
        rgba(255, 255, 255, 0.98) 0%,
        rgba(255, 245, 233, 0.88) 100%
    );
    border: 1px solid rgba(214, 125, 19, 0.2);
    box-shadow:
        0 16px 40px rgba(214, 125, 19, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.ms-newsletter__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.8rem;
    margin-bottom: 0.85rem;
    border-radius: var(--limats-radius-pill);
    background: rgba(239, 163, 73, 0.14);
    border: 1px solid rgba(214, 125, 19, 0.28);
    color: var(--limats-primary-dark);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.ms-newsletter__title {
    font-family: var(--limats-font-title);
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    font-weight: 700;
    color: var(--limats-text);
    margin-bottom: 0.55rem;
}

.ms-newsletter__lead {
    margin: 0 auto 1.4rem;
    max-width: 34rem;
    font-size: 0.98rem;
    line-height: 1.55;
    color: var(--limats-text-secondary);
}

.ms-newsletter__form {
    max-width: 520px;
    margin: 0 auto;
}

.ms-newsletter__field {
    display: flex;
    align-items: stretch;
    gap: 0.35rem;
    margin: 0;
    padding: 0.35rem;
    border-radius: var(--limats-radius-pill);
    background: #fff;
    border: 1px solid rgba(214, 125, 19, 0.28);
    box-shadow: 0 8px 22px rgba(214, 125, 19, 0.08);
}

.ms-newsletter__field:focus-within {
    border-color: rgba(214, 125, 19, 0.5);
    box-shadow: 0 0 0 3px rgba(239, 163, 73, 0.15), 0 10px 26px rgba(214, 125, 19, 0.1);
}

.ms-newsletter__input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    color: var(--limats-text);
    padding: 0.8rem 1rem;
    font-size: 0.95rem;
    outline: none;
}

.ms-newsletter__input::placeholder {
    color: var(--limats-text-muted);
}

.ms-newsletter__submit {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: var(--limats-radius-pill);
    padding: 0.8rem 1.25rem;
    background: linear-gradient(135deg, var(--limats-primary-dark) 0%, var(--limats-primary) 100%);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    box-shadow: 0 8px 20px rgba(214, 125, 19, 0.28);
}

.ms-newsletter__submit:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(214, 125, 19, 0.38);
}

@media (max-width: 575px) {
    .ms-newsletter {
        padding: 2.25rem 0 2.5rem;
    }

    .ms-newsletter__panel {
        padding: 1.65rem 1.25rem;
    }

    .ms-newsletter__field {
        flex-direction: column;
        border-radius: calc(var(--limats-radius) + 4px);
        padding: 0.5rem;
    }

    .ms-newsletter__submit {
        width: 100%;
        border-radius: calc(var(--limats-radius) + 2px);
    }
}

/* Contact form */
.navbar-limats .nav-link.active {
    color: var(--limats-primary-dark) !important;
    font-weight: 700;
}

/* Service catalog grid panel */
.ms-services-grid-panel {
    position: relative;
    margin-top: 0.5rem;
    padding: 1.75rem;
    border-radius: calc(var(--limats-radius) + 10px);
    background: linear-gradient(
        160deg,
        rgba(255, 255, 255, 0.95) 0%,
        rgba(255, 245, 233, 0.5) 48%,
        rgba(245, 242, 221, 0.65) 100%
    );
    border: 1px solid rgba(214, 125, 19, 0.16);
    box-shadow:
        0 18px 44px rgba(214, 125, 19, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.85);
    overflow: hidden;
}

.ms-services-grid-panel::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -15%;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(239, 163, 73, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.ms-services-grid-panel::after {
    content: '';
    position: absolute;
    bottom: -35%;
    left: -10%;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(214, 125, 19, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.ms-services-grid-panel > .row {
    position: relative;
    z-index: 1;
}

@media (max-width: 767px) {
    .ms-services-grid-panel {
        padding: 1.15rem;
    }
}

/* Service catalog cards */
#servicesCatalog .ms-card {
    background: #fff;
    border-color: rgba(214, 125, 19, 0.14);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}

#servicesCatalog .ms-card:hover {
    transform: translateY(-3px);
    border-color: rgba(214, 125, 19, 0.28);
    box-shadow: 0 14px 32px rgba(214, 125, 19, 0.1);
}

#servicesCatalog .ms-card__img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.12) 100%);
    pointer-events: none;
}

#servicesCatalog .ms-card__img {
    position: relative;
}

#servicesCatalog .ms-card__body {
    padding: 1.35rem 1.4rem 1.5rem;
}

#servicesCatalog .ms-card__tag {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    width: fit-content;
    max-width: 100%;
    padding: 0.28rem 0.6rem;
    margin-bottom: 0.65rem;
    border-radius: var(--limats-radius-pill);
    background: rgba(239, 163, 73, 0.14);
    border: 1px solid rgba(214, 125, 19, 0.18);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
}

#servicesCatalog .ms-card h3 {
    font-size: 1.15rem;
}

#servicesCatalog .ms-card p {
    font-size: 0.92rem;
    line-height: 1.55;
}

/* Service category filter cards */
.ms-service-filters {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.ms-service-filter-card {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    width: 100%;
    padding: 1.15rem 1.25rem;
    background: #fff;
    border: 1px solid var(--limats-border);
    border-radius: var(--limats-radius);
    text-align: left;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
    position: relative;
    overflow: hidden;
}

.ms-service-filter-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: transparent;
    transition: background 0.25s ease;
}

.ms-service-filter-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(214, 125, 19, 0.12);
    border-color: rgba(214, 125, 19, 0.35);
}

.ms-service-filter-card.active {
    border-color: var(--limats-primary);
    background: linear-gradient(145deg, rgba(239, 163, 73, 0.1) 0%, #fff 70%);
    box-shadow: 0 8px 28px rgba(214, 125, 19, 0.15);
}

.ms-service-filter-card.active::before {
    background: var(--limats-primary);
}

.ms-service-filter-card__icon {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.65rem;
    background: var(--limats-primary-light);
    color: var(--limats-primary-dark);
    font-size: 1rem;
    transition: background 0.25s ease, color 0.25s ease;
}

.ms-service-filter-card.active .ms-service-filter-card__icon {
    background: var(--limats-primary);
    color: #fff;
}

.ms-service-filter-card__body {
    flex: 1;
    min-width: 0;
}

.ms-service-filter-card__title {
    display: block;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--limats-text);
    margin-bottom: 0.2rem;
}

.ms-service-filter-card__hint {
    display: block;
    font-size: 0.8rem;
    color: var(--limats-text-secondary);
    line-height: 1.4;
}

.ms-service-filter-card__count {
    flex-shrink: 0;
    min-width: 1.75rem;
    height: 1.75rem;
    padding: 0 0.45rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 999px;
    background: rgba(239, 163, 73, 0.15);
    color: var(--limats-primary-dark);
    transition: background 0.25s ease, color 0.25s ease;
}

.ms-service-filter-card.active .ms-service-filter-card__count {
    background: var(--limats-primary);
    color: #fff;
}

.ms-service-filter-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    margin-bottom: 1.75rem;
    font-size: 0.9rem;
    color: var(--limats-text-secondary);
}

.ms-service-filter-status__count {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    background: rgba(239, 163, 73, 0.12);
    color: var(--limats-primary-dark);
    font-weight: 600;
    font-size: 0.8rem;
}

@media (max-width: 991px) {
    .ms-service-filters {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .ms-service-filters {
        grid-template-columns: 1fr;
    }

    .ms-service-filter-card {
        padding: 1rem 1.1rem;
    }
}

/* Events & insights (Microsoft AI-style section) */
.ms-events-section {
    background: var(--limats-bg);
}

.ms-events-section--compact {
    padding-top: 2.5rem;
}

.ms-events-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.ms-events-header__btn {
    white-space: nowrap;
    flex-shrink: 0;
}

.ms-events-tabs-wrap {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
}

.ms-events-filter-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: var(--limats-text-secondary);
    transition: opacity 0.25s ease;
}

.ms-events-filter-status__label {
    font-weight: 600;
    color: var(--limats-text);
}

.ms-events-filter-status__count {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    background: var(--limats-primary-light);
    color: var(--limats-primary-dark);
}

.ms-events-tabs {
    position: relative;
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem;
    padding: 0.4rem;
    background: linear-gradient(145deg, var(--limats-primary-light) 0%, #fff 100%);
    border: 1px solid rgba(239, 163, 73, 0.28);
    border-radius: 999px;
    box-shadow:
        0 4px 24px rgba(214, 125, 19, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.ms-events-tabs__indicator {
    position: absolute;
    top: 0.4rem;
    left: 0.4rem;
    height: calc(100% - 0.8rem);
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(214, 125, 19, 0.35);
    box-shadow: 0 4px 16px rgba(214, 125, 19, 0.18);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
    pointer-events: none;
}

.ms-events-tab {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: none;
    border-radius: 999px;
    padding: 0.7rem 1.35rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--limats-text-secondary);
    cursor: pointer;
    transition: color 0.25s ease, transform 0.2s ease;
    white-space: nowrap;
}

.ms-events-tab__icon {
    font-size: 0.85rem;
    opacity: 0.85;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.ms-events-tab__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.5rem;
    height: 1.5rem;
    padding: 0 0.4rem;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 999px;
    background: rgba(239, 163, 73, 0.15);
    color: var(--limats-primary-dark);
    transition: background 0.25s ease, color 0.25s ease;
}

.ms-events-tab:hover {
    color: var(--limats-primary-dark);
    transform: translateY(-1px);
}

.ms-events-tab:hover .ms-events-tab__icon {
    opacity: 1;
    transform: scale(1.08);
}

.ms-events-tab.active {
    color: var(--limats-text);
    font-weight: 700;
}

.ms-events-tab.active .ms-events-tab__label {
    color: var(--limats-text);
    font-weight: 700;
    letter-spacing: 0.02em;
}

.ms-events-tab.active .ms-events-tab__icon {
    opacity: 1;
    color: var(--limats-primary-dark);
}

.ms-events-tab.active .ms-events-tab__count {
    background: var(--limats-primary);
    color: #fff;
    font-weight: 800;
    box-shadow: 0 1px 4px rgba(214, 125, 19, 0.25);
}

.ms-events-track-wrap {
    position: relative;
}

.ms-events-track {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-bottom: 0.5rem;
    -ms-overflow-style: none;
    scrollbar-width: none;
    transition: justify-content 0.3s ease;
}

.ms-events-track.is-filtered {
    justify-content: center;
}

.ms-events-track::-webkit-scrollbar {
    display: none;
}

.ms-events-card {
    flex: 0 0 calc(33.333% - 0.85rem);
    min-width: 280px;
    scroll-snap-align: start;
    background: #fff;
    border: 1px solid var(--limats-border);
    border-radius: var(--limats-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s, box-shadow 0.25s, opacity 0.25s;
}

.ms-events-card.is-hidden {
    display: none;
}

.ms-events-track.is-updating .ms-events-card:not(.is-hidden) {
    animation: ms-events-card-in 0.4s ease;
}

@keyframes ms-events-card-in {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.ms-events-card--news .ms-events-card__category {
    color: #1a6b4a;
}

.ms-events-card--news {
    border-top: 3px solid #2d9f6f;
}

.ms-events-card--insights .ms-events-card__category {
    color: #5a3d8a;
}

.ms-events-card--insights {
    border-top: 3px solid #7c5cbf;
}

.ms-events-card--events .ms-events-card__category {
    color: var(--limats-primary-dark);
}

.ms-events-card--events {
    border-top: 3px solid var(--limats-primary);
}

.ms-events-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(214, 125, 19, 0.12);
}

.ms-events-card__img {
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.ms-events-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.ms-events-card:hover .ms-events-card__img img {
    transform: scale(1.04);
}

.ms-events-card__body {
    padding: 1.35rem 1.5rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ms-events-card__category {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--limats-primary-dark);
    margin-bottom: 0.5rem;
}

.ms-events-card h3 {
    font-family: var(--limats-font-title);
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 0.65rem;
}

.ms-events-card p {
    color: var(--limats-text-secondary);
    font-size: 0.92rem;
    line-height: 1.55;
    flex: 1;
    margin-bottom: 1rem;
}

.ms-events-card__btn {
    align-self: flex-start;
    margin-top: auto;
}

@media (max-width: 991px) {
    .ms-events-card {
        flex: 0 0 calc(50% - 0.65rem);
    }
}

@media (max-width: 575px) {
    .ms-events-card {
        flex: 0 0 85%;
    }

    .ms-events-tabs-wrap {
        justify-content: stretch;
    }

    .ms-events-tabs {
        width: 100%;
        justify-content: space-between;
        border-radius: 1rem;
        padding: 0.35rem;
    }

    .ms-events-tabs__indicator {
        border-radius: 0.75rem;
    }

    .ms-events-tab {
        flex: 1;
        justify-content: center;
        padding: 0.65rem 0.5rem;
        font-size: 0.78rem;
        gap: 0.3rem;
    }

    .ms-events-tab__label {
        display: none;
    }

    .ms-events-tab__icon {
        font-size: 1rem;
    }

    .ms-events-tab__count {
        min-width: 1.25rem;
        height: 1.25rem;
        font-size: 0.65rem;
    }
}

/* Testimonials horizontal scroll */
.ms-testimonials-section {
    background: var(--limats-secondary);
}

.ms-testimonials-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.ms-testimonials-header__btn {
    white-space: nowrap;
    flex-shrink: 0;
}

.ms-testimonials-track-wrap {
    position: relative;
}

.ms-testimonials-track {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-bottom: 0.5rem;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.ms-testimonials-track::-webkit-scrollbar {
    display: none;
}

.ms-testimonial-card {
    flex: 0 0 calc(33.333% - 0.85rem);
    min-width: 300px;
    scroll-snap-align: start;
    background: #fff;
    border: 1px solid var(--limats-border);
    border-radius: var(--limats-radius);
    border-top: 4px solid var(--limats-primary);
    padding: 1.75rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 28px rgba(214, 125, 19, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ms-testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(214, 125, 19, 0.14);
}

.ms-testimonial-card__icon {
    color: var(--limats-primary);
    font-size: 1.25rem;
    margin-bottom: 0.65rem;
    opacity: 0.85;
}

.ms-testimonial-card__stars,
.ms-quote__stars {
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
    margin-bottom: 0.85rem;
    color: var(--limats-primary);
    font-size: 0.9rem;
}

.ms-testimonial-card__stars .is-dim,
.ms-quote__stars .is-dim {
    color: color-mix(in srgb, var(--limats-text-muted) 55%, transparent);
}

.ms-testimonial-card__quote {
    font-family: var(--limats-font-title);
    font-size: 1.05rem;
    line-height: 1.55;
    color: var(--limats-text);
    margin: 0 0 1.25rem;
    flex: 1;
}

.ms-testimonial-card__author cite {
    display: block;
    font-style: normal;
    font-weight: 700;
    color: var(--limats-primary-dark);
    margin-bottom: 0.2rem;
}

.ms-testimonial-card__author span {
    display: block;
    font-size: 0.88rem;
    color: var(--limats-text-muted);
}

@media (max-width: 991px) {
    .ms-testimonial-card {
        flex: 0 0 calc(50% - 0.65rem);
    }
}

@media (max-width: 575px) {
    .ms-testimonial-card {
        flex: 0 0 88%;
        min-width: 260px;
    }
}

/* Leadership team grid */
.ms-team-section {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse 80% 60% at 10% 0%, rgba(214, 125, 19, 0.22) 0%, transparent 55%),
        radial-gradient(ellipse 70% 50% at 95% 100%, rgba(239, 163, 73, 0.14) 0%, transparent 50%),
        linear-gradient(165deg, #141414 0%, #1a1a1a 45%, #121212 100%);
}

.ms-team-section__glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, transparent 85%);
}

.ms-team-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem 2rem;
    margin-bottom: 2.75rem;
}

.ms-team-header__copy {
    max-width: 640px;
}

.ms-team-header__badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 7.5rem;
    padding: 1rem 1.35rem;
    border-radius: calc(var(--limats-radius) + 2px);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(239, 163, 73, 0.28);
    box-shadow:
        0 12px 32px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.ms-team-header__badge-num {
    font-family: var(--limats-font-title);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    color: var(--limats-primary);
}

.ms-team-header__badge-label {
    margin-top: 0.35rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
    text-align: center;
}

.ms-team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.35rem;
}

.ms-team-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: calc(var(--limats-radius) + 4px);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.ms-team-card::after {
    content: '';
    position: absolute;
    inset: auto 0 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--limats-primary), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ms-team-card:hover {
    transform: translateY(-6px);
    border-color: rgba(239, 163, 73, 0.45);
    box-shadow:
        0 20px 48px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(239, 163, 73, 0.12);
}

.ms-team-card:hover::after {
    opacity: 1;
}

.ms-team-card__media {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
}

.ms-team-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.45s ease;
}

.ms-team-card:hover .ms-team-card__media img {
    transform: scale(1.06);
}

.ms-team-card__media::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.75) 100%);
    z-index: 1;
    pointer-events: none;
}

.ms-team-card__index {
    position: absolute;
    top: 0.85rem;
    left: 0.85rem;
    z-index: 2;
    padding: 0.3rem 0.55rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #fff;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(6px);
}

.ms-team-card__shine {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(125deg, rgba(255, 255, 255, 0.18) 0%, transparent 42%);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.ms-team-card:hover .ms-team-card__shine {
    opacity: 1;
}

.ms-team-card__body {
    padding: 1.15rem 1.2rem 1.35rem;
    text-align: center;
}

.ms-team-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    margin-bottom: 0.65rem;
    border-radius: 0.6rem;
    background: rgba(239, 163, 73, 0.15);
    color: var(--limats-primary);
    font-size: 0.9rem;
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.ms-team-card:hover .ms-team-card__icon {
    background: var(--limats-primary);
    color: #fff;
    transform: translateY(-2px);
}

.ms-team-card h3 {
    font-family: var(--limats-font-title);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
    color: #fff;
    margin: 0 0 0.45rem;
}

.ms-team-card__focus {
    margin: 0 0 1rem;
    font-size: 0.82rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.62);
}

.ms-team-card__contact {
    list-style: none;
    margin: 0;
    padding: 0.85rem 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    text-align: left;
}

.ms-team-card__contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.78rem;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
    word-break: break-word;
}

.ms-team-card__contact-link i {
    flex-shrink: 0;
    width: 1.65rem;
    height: 1.65rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.45rem;
    background: rgba(255, 255, 255, 0.06);
    color: var(--limats-primary);
    font-size: 0.72rem;
    transition: background 0.2s ease, color 0.2s ease;
}

.ms-team-card__contact-link:hover {
    color: #fff;
    transform: translateX(2px);
}

.ms-team-card__contact-link:hover i {
    background: var(--limats-primary);
    color: #fff;
}

@media (max-width: 991px) {
    .ms-team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Team carousel (when member count exceeds threshold) */
.ms-team-section--carousel .ms-team-carousel-wrap {
    position: relative;
}

.ms-team-track {
    display: flex;
    gap: 1.35rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-bottom: 0.5rem;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.ms-team-track::-webkit-scrollbar {
    display: none;
}

.ms-team-section--carousel .ms-team-card {
    flex: 0 0 calc(25% - 1.02rem);
    min-width: 240px;
    max-width: 280px;
    scroll-snap-align: start;
}

.ms-team-section--carousel .ms-team-card__media {
    aspect-ratio: 4 / 3;
}

.ms-team-section--carousel .ms-team-card__body {
    padding: 0.9rem 1rem 1.05rem;
}

.ms-team-section--carousel .ms-team-card__icon {
    width: 1.9rem;
    height: 1.9rem;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
}

.ms-team-section--carousel .ms-team-card h3 {
    font-size: 0.92rem;
    margin-bottom: 0.35rem;
}

.ms-team-section--carousel .ms-team-card__focus {
    margin-bottom: 0.75rem;
    font-size: 0.78rem;
    line-height: 1.4;
}

.ms-team-section--carousel .ms-team-card__contact {
    padding-top: 0.65rem;
    gap: 0.4rem;
}

.ms-team-section--carousel .ms-team-card__contact-link {
    font-size: 0.72rem;
    gap: 0.45rem;
}

.ms-team-section--carousel .ms-team-card__contact-link i {
    width: 1.45rem;
    height: 1.45rem;
    font-size: 0.65rem;
}

.ms-team-carousel-nav {
    margin-top: 1.5rem;
}

.ms-team-section--carousel .ms-carousel-dot {
    background: rgba(255, 255, 255, 0.22);
}

.ms-team-section--carousel .ms-carousel-dot:hover {
    background: rgba(239, 163, 73, 0.55);
}

.ms-team-section--carousel .ms-carousel-dot.active {
    background: var(--limats-primary);
}

.ms-team-section--carousel .ms-carousel-btn {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.ms-team-section--carousel .ms-carousel-btn:hover {
    background: var(--limats-primary);
    border-color: var(--limats-primary);
    color: #fff;
}

@media (max-width: 991px) {
    .ms-team-section--carousel .ms-team-card {
        flex: 0 0 calc(42% - 0.68rem);
        min-width: 220px;
        max-width: 260px;
    }
}

@media (max-width: 575px) {
    .ms-team-header {
        margin-bottom: 2rem;
    }

    .ms-team-header__badge {
        width: 100%;
        flex-direction: row;
        gap: 0.75rem;
        justify-content: center;
    }

    .ms-team-header__badge-num {
        font-size: 1.5rem;
    }

    .ms-team-header__badge-label {
        margin-top: 0;
        text-align: left;
    }

    .ms-team-grid {
        grid-template-columns: 1fr;
        max-width: 360px;
        margin-inline: auto;
    }

    .ms-team-section--carousel .ms-team-card {
        flex: 0 0 min(68%, 240px);
        min-width: 200px;
        max-width: 240px;
    }

    .ms-team-section--carousel .ms-team-card__media {
        aspect-ratio: 1 / 1;
    }

    .ms-team-section--carousel .ms-team-card__body {
        padding: 0.75rem 0.85rem 0.9rem;
    }

    .ms-team-section--carousel .ms-team-card__index {
        top: 0.6rem;
        left: 0.6rem;
        padding: 0.22rem 0.45rem;
        font-size: 0.62rem;
    }
}

/* Blog listing & article */
.ms-blog-featured-wrap {
    margin-bottom: 2.5rem;
}

.ms-blog-filters {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.ms-blog-filter-card {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    width: 100%;
    padding: 1rem 1.1rem;
    background: #fff;
    border: 1px solid var(--limats-border);
    border-radius: var(--limats-radius);
    text-align: left;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.ms-blog-filter-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(214, 125, 19, 0.12);
    border-color: rgba(214, 125, 19, 0.35);
}

.ms-blog-filter-card.active {
    border-color: var(--limats-primary);
    background: linear-gradient(145deg, rgba(239, 163, 73, 0.1) 0%, #fff 70%);
    box-shadow: 0 8px 28px rgba(214, 125, 19, 0.15);
}

.ms-blog-filter-card__icon {
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.6rem;
    background: var(--limats-primary-light);
    color: var(--limats-primary-dark);
    font-size: 0.9rem;
}

.ms-blog-filter-card.active .ms-blog-filter-card__icon {
    background: var(--limats-primary);
    color: #fff;
}

.ms-blog-filter-card__body {
    flex: 1;
    min-width: 0;
}

.ms-blog-filter-card__title {
    display: block;
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--limats-text);
    margin-bottom: 0.15rem;
}

.ms-blog-filter-card__hint {
    display: block;
    font-size: 0.75rem;
    color: var(--limats-text-secondary);
}

.ms-blog-filter-card__count {
    flex-shrink: 0;
    min-width: 1.6rem;
    height: 1.6rem;
    padding: 0 0.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: 999px;
    background: rgba(239, 163, 73, 0.15);
    color: var(--limats-primary-dark);
}

.ms-blog-filter-card.active .ms-blog-filter-card__count {
    background: var(--limats-primary);
    color: #fff;
}

.ms-blog-filter-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    margin-bottom: 1.75rem;
    font-size: 0.9rem;
    color: var(--limats-text-secondary);
}

.ms-blog-filter-status__count {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    background: rgba(239, 163, 73, 0.12);
    color: var(--limats-primary-dark);
    font-weight: 600;
    font-size: 0.8rem;
}

.ms-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.ms-blog-card {
    background: #fff;
    border: 1px solid var(--limats-border);
    border-radius: calc(var(--limats-radius) + 2px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ms-blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(214, 125, 19, 0.14);
}

.ms-blog-card--featured {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    min-height: 320px;
}

.ms-blog-card__media {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    text-decoration: none;
}

.ms-blog-card--featured .ms-blog-card__media {
    aspect-ratio: auto;
    min-height: 100%;
}

.ms-blog-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.ms-blog-card:hover .ms-blog-card__media img {
    transform: scale(1.04);
}

.ms-blog-card__category {
    position: absolute;
    top: 0.85rem;
    left: 0.85rem;
    z-index: 1;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: var(--limats-primary);
    color: #fff;
}

.ms-blog-card__body {
    padding: 1.35rem 1.4rem 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.ms-blog-card--featured .ms-blog-card__body {
    justify-content: center;
    padding: 2rem 2.25rem;
}

.ms-blog-card__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--limats-text-muted);
    margin-bottom: 0.75rem;
}

.ms-blog-card__dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--limats-border);
}

.ms-blog-card h3 {
    font-family: var(--limats-font-title);
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 0.65rem;
}

.ms-blog-card--featured h3 {
    font-size: clamp(1.35rem, 2.5vw, 1.85rem);
}

.ms-blog-card h3 a {
    color: var(--limats-text);
    text-decoration: none;
    transition: color 0.2s ease;
}

.ms-blog-card h3 a:hover {
    color: var(--limats-primary-dark);
}

.ms-blog-card p {
    color: var(--limats-text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    flex: 1;
    margin-bottom: 1rem;
}

.ms-blog-card__btn {
    align-self: flex-start;
    margin-top: auto;
}

/* Blog article hero */
.ms-blog-hero {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: #0a0a0a;
    color: #fff;
}

.ms-blog-hero__media {
    position: absolute;
    inset: 0;
}

.ms-blog-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ms-blog-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.88) 100%);
}

.ms-blog-hero__content {
    position: relative;
    z-index: 2;
    max-width: 820px;
    padding: 3rem 0 3.5rem;
}

.ms-blog-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.82rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.7);
}

.ms-blog-breadcrumb a {
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
}

.ms-blog-breadcrumb a:hover {
    color: var(--limats-primary);
}

.ms-blog-hero__category {
    display: inline-block;
    margin-bottom: 0.85rem;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: var(--limats-primary);
    color: #fff;
}

.ms-blog-hero h1 {
    font-family: var(--limats-font-title);
    font-size: clamp(2rem, 4vw, 2.85rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1rem;
    color: #fff;
}

.ms-blog-hero__excerpt {
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 1.25rem;
    max-width: 680px;
}

.ms-blog-hero__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.65rem;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.75);
}

.ms-blog-hero__author {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.ms-blog-hero__meta-sep {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
}

.ms-blog-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.75rem;
    padding: 0.55rem 1.1rem;
    border-radius: var(--limats-radius-pill);
    border: 1px solid var(--limats-border);
    background: #fff;
    color: var(--limats-text-secondary);
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.ms-blog-back-btn:hover {
    color: var(--limats-primary-dark);
    border-color: rgba(214, 125, 19, 0.45);
    background: var(--limats-primary-light);
    transform: translateX(-2px);
}

.ms-blog-back-btn i {
    font-size: 0.8rem;
    transition: transform 0.2s ease;
}

.ms-blog-back-btn:hover i {
    transform: translateX(-2px);
}

/* Blog article layout */
.ms-blog-article__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 2.5rem;
    align-items: start;
}

.ms-blog-article__content {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--limats-text-secondary);
}

.ms-blog-article__content p {
    margin-bottom: 1.25rem;
}

.ms-blog-article__content h2 {
    font-family: var(--limats-font-title);
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--limats-text);
    margin: 2rem 0 0.85rem;
    line-height: 1.3;
}

.ms-blog-article__content ul {
    margin: 0 0 1.25rem;
    padding-left: 1.25rem;
}

.ms-blog-article__content li {
    margin-bottom: 0.5rem;
}

.ms-blog-article__quote {
    margin: 1.75rem 0;
    padding: 1.5rem 1.5rem 1.5rem 1.35rem;
    border-left: 4px solid var(--limats-primary);
    background: var(--limats-primary-light);
    border-radius: 0 var(--limats-radius) var(--limats-radius) 0;
}

.ms-blog-article__quote p {
    font-family: var(--limats-font-title);
    font-size: 1.2rem;
    line-height: 1.55;
    color: var(--limats-text);
    margin: 0;
}

.ms-blog-article__tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--limats-border);
}

.ms-blog-article__tags-label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--limats-text-muted);
    margin-right: 0.25rem;
}

.ms-blog-article__tag {
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    background: var(--limats-primary-light);
    color: var(--limats-primary-dark);
}

.ms-blog-article__share {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-top: 1.5rem;
}

.ms-blog-article__share-label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--limats-text-muted);
}

.ms-blog-article__share-btn {
    width: 2.25rem;
    height: 2.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--limats-border);
    color: var(--limats-text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
}

.ms-blog-article__share-btn:hover {
    background: var(--limats-primary);
    border-color: var(--limats-primary);
    color: #fff;
}

.ms-blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    position: sticky;
    top: 6.5rem;
}

.ms-blog-sidebar__card {
    padding: 1.35rem;
    background: #fff;
    border: 1px solid var(--limats-border);
    border-radius: var(--limats-radius);
    box-shadow: 0 8px 24px rgba(214, 125, 19, 0.06);
}

.ms-blog-sidebar__eyebrow {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--limats-primary-dark);
    margin-bottom: 0.65rem;
}

.ms-blog-sidebar__card h3 {
    font-family: var(--limats-font-title);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.ms-blog-sidebar__card p {
    font-size: 0.9rem;
    color: var(--limats-text-secondary);
    margin: 0;
}

.ms-blog-sidebar__meta-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.ms-blog-sidebar__meta-list li {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.88rem;
    color: var(--limats-text-secondary);
}

.ms-blog-sidebar__meta-list i {
    width: 1.25rem;
    color: var(--limats-primary);
    text-align: center;
}

.ms-blog-sidebar__card--related {
    padding: 1.15rem;
}

.ms-blog-related-carousel {
    margin-top: 0.25rem;
}

.ms-blog-related-track {
    display: flex;
    gap: 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.ms-blog-related-track::-webkit-scrollbar {
    display: none;
}

.ms-blog-related-slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
    min-width: 0;
}

.ms-blog-related-carousel__nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--limats-border);
}

.ms-blog-related-carousel__nav .ms-carousel-dots {
    min-height: auto;
    flex: 1;
    justify-content: flex-start;
}

.ms-blog-related-carousel__nav .ms-carousel-controls {
    flex-shrink: 0;
}

.ms-blog-related-carousel__nav .ms-carousel-btn {
    width: 36px;
    height: 36px;
    font-size: 0.8rem;
}

.ms-blog-related-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    border: 1px solid var(--limats-border);
    border-radius: var(--limats-radius);
    overflow: hidden;
    background: #fff;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.ms-blog-related-card:hover {
    border-color: rgba(214, 125, 19, 0.4);
    box-shadow: 0 10px 24px rgba(214, 125, 19, 0.12);
}

.ms-blog-related-card__media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.ms-blog-related-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.ms-blog-related-card:hover .ms-blog-related-card__media img {
    transform: scale(1.05);
}

.ms-blog-related-card__media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.35) 100%);
    pointer-events: none;
}

.ms-blog-related-card__category {
    position: absolute;
    left: 0.55rem;
    bottom: 0.55rem;
    z-index: 1;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: var(--limats-primary);
    color: #fff;
}

.ms-blog-related-card__body {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 0.75rem 0.85rem 0.9rem;
}

.ms-blog-related-card__title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-family: var(--limats-font-title);
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--limats-text);
    transition: color 0.2s ease;
}

.ms-blog-related-card:hover .ms-blog-related-card__title {
    color: var(--limats-primary-dark);
}

.ms-blog-related-card__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    font-size: 0.72rem;
    color: var(--limats-text-muted);
}

.ms-blog-related-card__dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--limats-border);
}

.ms-blog-related h2 {
    margin-bottom: 1.75rem;
}

.ms-blog-grid--related {
    margin-top: 0;
}

@media (max-width: 1199px) {
    .ms-blog-filters {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 991px) {
    .ms-blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ms-blog-card--featured {
        grid-template-columns: 1fr;
    }

    .ms-blog-article__layout {
        grid-template-columns: 1fr;
    }

    .ms-blog-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .ms-blog-filters {
        grid-template-columns: repeat(2, 1fr);
    }

    .ms-blog-hero {
        min-height: 360px;
    }

    .ms-blog-hero__content {
        padding: 2rem 0 2.5rem;
    }

    .ms-blog-sidebar {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575px) {
    .ms-blog-filters {
        grid-template-columns: 1fr;
    }

    .ms-blog-grid,
    .ms-blog-grid--related {
        grid-template-columns: 1fr;
    }
}
