/* ─────────────────────────────────────────────
   FMS SOP Workshop page
   Uses the global CATKing theme (variables from cat-exam-landing.css)
───────────────────────────────────────────── */

.fmsw-page {
    font-family: 'DM Sans', sans-serif;
    background: var(--bg, #f5f7fa);
    color: var(--text, #1a1a2e);
    -webkit-font-smoothing: antialiased;
}

.fmsw-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 28px;
    width: 100%;
}

.fmsw-title {
    font-size: 34px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 12px;
}

.fmsw-title em {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-weight: 700;
    color: var(--orange, #FEA82F);
}

/* ── Buttons ── */
.fmsw-btn {
    display: inline-block;
    background: var(--orange, #FEA82F);
    color: var(--ink, #0f0f1c);
    font-weight: 700;
    font-size: 16px;
    padding: 14px 32px;
    border-radius: 10px;
    text-decoration: none;
    transition: background .2s, transform .2s;
}

.fmsw-btn:hover {
    background: var(--orange-d, #E8951F);
    color: var(--ink, #0f0f1c);
    transform: translateY(-2px);
}

/* ══════════════ HERO ══════════════ */
.fmsw-hero {
    background: var(--ink, #0f0f1c);
    color: #fff;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

/* grayscale photo background; the filter only touches this layer, not the hero content */
.fmsw-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        linear-gradient(rgba(15, 15, 28, .72), rgba(15, 15, 28, .88)),
        url('https://catking.in/storage/media_manager/Whatsapp%20results/catrox%202%20reviews/6ae30ea238b5f.jpeg') center / cover no-repeat;
    filter: grayscale(1);
}

.fmsw-hero::before {
    z-index: 1;
    content: '';
    position: absolute;
    left: -180px;
    top: 50%;
    transform: translateY(-50%);
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(254, 168, 47, .25) 0%, transparent 70%);
    border-radius: 50%;
}

.fmsw-hero .fmsw-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 48px;
    align-items: center;
}

.fmsw-hero h1 {
    font-size: 44px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 16px;
}

.fmsw-hero h1 em {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    color: var(--orange, #FEA82F);
}

.fmsw-hero p {
    font-size: 17px;
    line-height: 1.6;
    color: rgba(255, 255, 255, .8);
    max-width: 620px;
}

.fmsw-hero h2 {
    font-size: 20px;
    font-weight: 700;
    margin: 28px 0 14px;
}

.fmsw-slot {
    display: inline-flex;
    flex-direction: column;
    gap: 2px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 10px;
    padding: 14px 20px;
    margin-bottom: 24px;
}

.fmsw-slot span {
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .6);
}

.fmsw-slot strong {
    font-size: 18px;
}

.fmsw-note {
    margin-top: 14px;
    font-style: italic;
    color: rgba(255, 255, 255, .65);
}

.fmsw-hero-img a {
    display: block;
}

.fmsw-hero-img img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .45);
}

/* ══════════════ SOP BAND ══════════════ */
.fmsw-band {
    background: var(--orange-l, #FFF4E0);
    padding: 56px 0;
}

.fmsw-band .fmsw-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 32px;
    align-items: center;
}

.fmsw-band h2 {
    font-size: 30px;
    font-weight: 800;
    margin-bottom: 10px;
}

.fmsw-band h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.fmsw-band h3 b {
    color: var(--orange-d, #E8951F);
}

.fmsw-band p {
    color: var(--muted, #6b6b7d);
    margin: 0;
}

/* ══════════════ CONVERTS ══════════════ */
.fmsw-section {
    padding: 72px 0;
}

.fmsw-section--white {
    background: #fff;
}

.fmsw-center {
    text-align: center;
    margin-bottom: 36px;
}

.fmsw-converts {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.fmsw-convert {
    flex: 0 0 200px;
    max-width: 200px;
    background: #fff;
    border: 1px solid var(--border, #e6e6ec);
    border-radius: 14px;
    padding: 20px 14px;
    text-align: center;
    transition: box-shadow .2s, transform .2s;
}

.fmsw-convert:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(15, 15, 28, .1);
}

.fmsw-convert img,
.fmsw-initials {
    display: block;
    width: 110px;
    height: 110px;
    margin: 0 auto 12px;
    border-radius: 50%;
    border: 3px solid var(--orange, #FEA82F);
}

.fmsw-convert img {
    object-fit: cover;
    object-position: center;
}

.fmsw-initials {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--navy, #1a1a2e);
    color: var(--orange, #FEA82F);
    font-size: 34px;
    font-weight: 800;
    letter-spacing: 1px;
}

.fmsw-convert h4 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 4px;
}

.fmsw-convert span {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: var(--blue-d, #1A6FCC);
    background: var(--blue-l, #EAF3FE);
    padding: 3px 12px;
    border-radius: 20px;
}

/* ══════════════ VIDEOS ══════════════ */
.fmsw-videos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.fmsw-video {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    background: var(--ink, #0f0f1c);
    aspect-ratio: 16 / 9;
}

.fmsw-video img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .85;
    transition: opacity .2s, transform .3s;
}

.fmsw-video:hover img {
    opacity: 1;
    transform: scale(1.04);
}

.fmsw-video::after {
    content: '\25B6';
    position: absolute;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    line-height: 56px;
    text-align: center;
    border-radius: 50%;
    background: var(--orange, #FEA82F);
    color: var(--ink, #0f0f1c);
    font-size: 20px;
    padding-left: 3px;
}

.fmsw-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, .8);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.fmsw-modal.is-open {
    display: flex;
}

.fmsw-modal-box {
    position: relative;
    width: 100%;
    max-width: 900px;
    aspect-ratio: 16 / 9;
}

.fmsw-modal-box iframe {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 12px;
}

.fmsw-modal-close {
    position: absolute;
    top: -44px;
    right: 0;
    background: none;
    border: 0;
    color: #fff;
    font-size: 36px;
    line-height: 1;
    cursor: pointer;
}

/* ══════════════ RESPONSIVE ══════════════ */
@media (max-width: 991px) {
    .fmsw-hero .fmsw-inner,
    .fmsw-band .fmsw-inner {
        grid-template-columns: 1fr;
    }

    .fmsw-hero-img {
        max-width: 380px;
    }

    .fmsw-hero h1 {
        font-size: 34px;
    }
}

@media (max-width: 575px) {
    .fmsw-inner {
        padding: 0 18px;
    }

    .fmsw-hero {
        padding: 56px 0;
    }

    .fmsw-hero h1 {
        font-size: 28px;
    }

    .fmsw-title {
        font-size: 26px;
    }

    .fmsw-section {
        padding: 52px 0;
    }
}
