/* ==========================================================================
   Cloud Services page
   Uses common.css (.ui-*) + case-study typography (.page-title, .page-sub-title)
   Scoped under .cs-page so other pages are unaffected.
   ========================================================================== */

.cs-page {
    --cs-purple: var(--ui-purple, #6222cc);
    --cs-text: var(--ui-text, #0f172a);
    --cs-body: var(--ui-body, #4a4f54);
    --cs-border: rgba(74, 79, 84, 0.1);
    background: #fff;
    color: var(--cs-text);
    overflow-x: hidden;
}

.cs-page h1,
.cs-page h2,
.cs-page h3 {
    font-family: "Poppins", sans-serif;
}

.cs-page p,
.cs-page li,
.cs-page span,
.cs-page a,
.cs-page button {
    font-family: "Inter", sans-serif;
}

.cs-container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--site-gutter-x);
    padding-right: var(--site-gutter-x);
}

/* ---------- Hero ---------- */
.cs-hero {
    position: relative;
    z-index: 2;
    padding: 1rem 0 0;
    background: #0a0a0c;
    /* allow stripe to hang over the white section below */
    overflow: visible;
}

.cs-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:url('/images/cloud_services/hero-bg.png');
    pointer-events: none;
    mask-image: linear-gradient(90deg, transparent 35%, #000 55%);
    -webkit-mask-image: linear-gradient(90deg, transparent 35%, #000 55%);
    background-size: cover;
}

.cs-hero-top {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.cs-hero-grid {
    position: relative;
    z-index: 1;
    align-items: center;
    padding-bottom: 5rem;
}


.cs-hero-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0.4rem 0.85rem;
    border-radius: 8px;
    background: transparent;
    border: none;
    font-size: 12px;
    font-weight: 600;
    color: #2563EB;
    margin-bottom: 4px;
}

.cs-hero-badge::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: inherit;

    background: linear-gradient(90.96deg, #2563EB 1.84%, #95B6FD 98.19%);
    border: 1px solid;

    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;

    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask-composite: exclude;

    pointer-events: none;
}

.cs-hero-title {
    font-size: 42px;
    font-weight: 600;
    line-height: 55px;
    color: #fff;
    margin: 0 0 0.625rem;
}

/* Mobile Figma: 3-line title; desktop stays one flowing line */
.cs-hero-title-br {
    display: none;
}

.cs-hero-text {
    font-size: 1rem;
    line-height: 120%;
    color: #fff;
    margin: 0 0 1.75rem;
    font-weight: 500;
}

.cs-hero-media {
    border-radius: 1.5rem;
    overflow: hidden;
    height: 100%;
    min-height: 28rem;
}

.cs-hero-media img {
    width: 100%;
    /* width: 100%;
    height: 100%;
    object-fit: cover;
    display: block; */
}

/* Feature stripe — between sections, overlapping both (Figma) */
.cs-feature-bar-wrap {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    /* pull up into dark hero and down into white section */
    margin-top: -1.75rem;
    margin-bottom: -1.75rem;
    pointer-events: none;
}

.cs-feature-bar-wrap .cs-container {
    display: flex;
    justify-content: center;
    pointer-events: none;
}

.cs-feature-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    width: 100%;
    max-width: 62.5rem;
    padding: 0.75rem 2.5rem;
    border-radius: 0.75rem;
    /* background: linear-gradient(90deg, #db5d2f 0%, #b8326a 45%, #6222cc 100%); */
    background: linear-gradient(90deg, #DB5D2F 0%, #2563EB 100%);
    color: #fff;
    box-shadow: 0 12px 30px rgba(75, 47, 214, 0.18);
    pointer-events: auto;
}

.cs-feature-item {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    flex: 1 1 0;
    justify-content: center;
    color: #fff;
    font-family: "Inter", sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
}

.cs-feature-item img {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
}

/* ---------- Shared section spacing ---------- */
.cs-section {
    padding: 6.25rem 0;
}

.cs-section-platforms {
    position: relative;
    z-index: 1;
    /* half-stripe overlap (~1.75rem) + gap to title */
    padding-top: 128px;
}

.cs-section-subtitle {
    font-size: 1.125rem;
    line-height: 1.55;
    color: var(--cs-body);
    margin: 0 0 3.125rem;
}

.cs-section-header {
    margin-bottom: 2rem;
}

/* ---------- Platform cards ---------- */
.cs-platform-card {
    background: #fff;
    border: 1px solid var(--cs-border);
    border-radius: 0.85rem;
    padding: 1.875rem 1.875rem;
    height: 100%;
    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.02);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.cs-platform-card:hover {
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
    transform: translateY(-2px);
}

.cs-platform-logo {
    /* height: 2.5rem; */
    margin-bottom: 30px;
    display: flex;
    align-items: center;
}

/* .cs-platform-logo img {
    max-height: 2.25rem;
    width: auto;
    max-width: 7rem;
    object-fit: contain;
} */

.cs-platform-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--cs-text);
    margin: 0 0 0.625rem;
}

.cs-platform-text {
    font-size: 1rem;
    line-height: 1.55;
    color: var(--cs-body);
    margin: 0;
}

/* ---------- Offer / why cards ---------- */
.cs-offer-card {
    background: #fff;
    border: 1px solid var(--cs-border);
    border-radius: 0.85rem;
    padding: 1.875rem;
    height: 100%;
    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.02);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.cs-offer-card:hover {
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
    transform: translateY(-2px);
}

.cs-offer-icon {
    margin-bottom: 2rem;
}


.cs-offer-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--cs-text);
    margin: 0 0 0.625rem;
}

.cs-offer-text {
    font-size: 1rem;
    line-height: 24px;
    color: var(--cs-body);
    margin: 0;
}

.cs-offer-section {
    background: #f8fafc;
    padding-top: 80px;
    padding-bottom: 68px;
}

/* ---------- Why Choose (Figma) ---------- */
.cs-why {
    background: #fff;
}

.cs-why-header {
    margin-bottom: 2.75rem;
    text-align: left;
}

/* Title + subtitle share the same left edge (Figma) */
.cs-why-header .page-title {
    text-align: left;
    margin-left: 0;
    padding-left: 0;
    margin-bottom: 0.625rem;
}

.cs-why-intro {
    display: block;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    text-align: left;
    font-size: 1.125rem;
    line-height: 1.55;
    color: var(--cs-body);
}

.cs-why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 4rem;
    row-gap: 2.75rem;
}

.cs-why-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.cs-why-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: "Poppins", sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.35;
    color: #111827;
    margin: 0 0 0.625rem;
}

.cs-why-icon {
    width: 1.5rem;
    height: 1.5rem;
    flex-shrink: 0;
    object-fit: contain;
}

.cs-why-text {
    font-family: "Inter", sans-serif;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.55;
    color: #4a4f54;
    margin: 0;
    text-align: left;
}

/* ---------- Platform-specific tabs ---------- */
.cs-platform-tabs {
    display: inline-flex;
    align-items: center;
    gap: 10PX;
    padding: 4px;
    background: #f1f5f9;
    border-radius: 12PX;
    margin: 0 0 1.875rem;
    border: 1px solid #4A4F541A;
    background: #F8FAFC;
}

.cs-platform-tab {
    border: none;
    background: transparent;
    color: var(--cs-text);
    font-size: 14px;
    font-weight: 600;
    padding: 7px 24px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.cs-platform-tab:hover {
    color: var(--cs-purple);
}

.cs-platform-tab.is-active {
    background: #2563EB;
    color: #F8FAFC;
}

.cs-platform-panel {
    display: none;
    background: #f8fafc;
    border-radius: 1.25rem;
    overflow: hidden;
}

.cs-platform-panel.is-active {
    display: block;
}

.cs-platform-panel-media {
    height: 100%;
    min-height: 22rem;
}

.cs-platform-panel-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cs-platform-panel-body {
    padding: 40px;
}

.cs-platform-panel-title {
    font-size: 30px;
    font-weight: 600;
    color: var(--cs-text);
    margin: 0 0 0.625rem;
}
.ui-check-list {
    margin-bottom: 26px;
}
.cs-discuss-btn {
    font-size: 16px;
    font-weight: 700;
    color: #2563EB;
}
.cs-platform-panel-text {
    font-size: 18px;
    line-height: 1.65;
    color: var(--cs-body);
    margin-bottom: 20px;
}

/* ---------- Process (same carousel style as AI customer support) ---------- */
.cs-process {
    padding: 4.5rem 0 5.5rem;
    background-color: #1a0a2e;
    background-image: url("../images/cloud_services/cloud-management-bg.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}



.cs-services-section .cs-section-subtitle {
    margin-bottom: 30px;
}

.cs-services-section {
    padding-bottom: 0;
}



/* ---------- FAQ (same style as virtual-assistance) ---------- */
.cs-faq {
    padding: 6.25rem 0 6.25rem;
}

.cs-faq-list {
    margin-top: 50px;
}

.cs-faq-item {
    border-bottom: 1px solid #e5e7eb;
}

.cs-faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.35rem 0;
    background: transparent;
    border: none;
    text-align: left;
    cursor: pointer;
    font-family: "Poppins", sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--cs-text);
}

.cs-faq-list .cs-faq-item:nth-child(1) .cs-faq-question {
    padding-top: 0;
}

.cs-faq-question[aria-expanded="true"] {
    padding-bottom: 10px;
}

.cs-faq-arrow {
    flex-shrink: 0;
    transition: transform 0.2s ease;
    color: var(--cs-text);
}

.cs-faq-item.open .cs-faq-arrow {
    transform: rotate(180deg);
}

.cs-faq-answer {
    display: none;
    padding: 0 0 1.875rem 0;
    font-size: 1.125rem;
    line-height: 26px;
    color: var(--cs-body);
    font-family: "Inter", sans-serif;
}

.cs-faq-item.open .cs-faq-answer {
    display: block;
}

.cs-faq .cs-section-subtitle {
    margin-bottom: 0;
    font-size: 1rem;
    line-height: 28px;
    font-weight: 400;
}

/* ---------- CTA (same style as virtual-assistance) ---------- */
.cs-page .careers-cta-wrap.careers-shell {
    padding-bottom: 100px;
}

.cs-page .careers-cta-banner {
    border-radius: 1.25rem;
    padding: 44px 90px;
    text-align: center;
    color: #fff;
    background-color: #0b0f1a;
    background-image: url("/images/career/role-bg.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.cs-page .careers-cta-banner h2 {
    font-family: "Poppins", sans-serif;
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #fff;
}

.cs-page .careers-cta-banner p {
    font-size: 18px;
    color: #ffffff;
    margin: 0 auto 35px;
    font-weight: 400;
    font-family: "Inter", sans-serif;
}

.cs-page .careers-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 47px;
    min-width: 10rem;
    padding: 15px 24px;
    border-radius: 8px;
    background: #f8fafc;
    color: #0f172a;
    font-weight: 600;
    font-size: 14px;
    border: none;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    font-family: "Inter", sans-serif;
    cursor: pointer;
}

.cs-page .careers-cta-btn:hover {
    color: #0f172a;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* ---------- Check list (match AI support page) ---------- */
.cs-page .ui-check-list li {
    gap: 11px;
}

.cs-page .ui-check-list li img {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    .cs-section,
    .cs-faq {
        padding: 45px 0;
    }

    section {
        margin: 0;
    }

    .cs-page .careers-cta-wrap.careers-shell {
        padding-bottom: 50px;
    }

    .cs-section-platforms {
        padding-top: 4.5rem;
    }

    .cs-section-header {
        margin-bottom: 20px;
    }

    .cs-page .page-sub-title {
        font-size: 16px;
    }

    .cs-hero {
        margin: 0;
        margin-bottom: 0;
    }

    .cs-hero-text {
        margin-bottom: 15px;
    }

    .cs-hero-media {
        margin-top: 15px;
    }

    .cs-hero-grid {
        padding-bottom: 34px !important;
    }

    .cs-hero-title {
        font-size: 1.875rem;
        line-height: 42px;
    }

    .cs-hero-title-br {
        display: block;
    }

    .cs-offer-icon {
        margin-bottom: 20px;
    }

    .cs-platform-logo {
        margin-bottom: 20px;
    }

    .cs-offer-title,
    .cs-platform-title {
        font-size: 18px;
    }

    .cs-feature-bar-wrap {
        margin-top: -1.5rem;
        margin-bottom: -1.5rem;
    }

    .cs-feature-bar {
        flex-wrap: wrap;
        width: 100%;
        max-width: none;
        padding: 1rem 1.25rem;
        gap: 0.875rem 1rem;
    }

    .cs-feature-item {
        flex: 1 1 45%;
        justify-content: flex-start;
        white-space: normal;
    }

    .cs-platform-tabs {
        width: 100%;
    }

    .cs-platform-tab {
        flex: 1;
        text-align: center;
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .cs-platform-panel-body {
        padding: 1.5rem;
    }

    .cs-platform-panel-title {
        font-size: 24px;
    }

    .cs-platform-panel-text {
        font-size: 16px;
    }



    .cs-why-grid {
        column-gap: 2rem;
        row-gap: 2rem;
    }

    .cs-why-header {
        margin-bottom: 20px;
    }

    .cs-feature-bar-wrap .cs-container {
        padding: 0;
        margin: 0;
    }
    .cs-platform-panel-body {
        padding-bottom: 44px !important;
    }
    .cs-services-section {
        padding-bottom: 0 !important;
    }
}

@media (max-width: 767.98px) {
    .cs-hero-media {
        min-height: 16rem;
        margin-top: 1.5rem;
        border-radius: 1rem;
    }

    .cs-feature-bar-wrap {
        margin-top: -1.25rem;
        margin-bottom: -0.5rem;
    }

    .cs-section-platforms {
        padding-top: 3.5rem;
    }

    .cs-feature-bar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem 0.75rem;
        padding: 1.125rem 1rem;
        border-radius: 0;
    }

    .cs-feature-item {
        flex: unset;
        justify-content: flex-start;
        font-size: 0.8125rem;
        white-space: normal;
    }

    .cs-why-grid {
        grid-template-columns: 1fr;
        row-gap: 1.75rem;
    }

    .cs-why-title {
        font-size: 1.125rem;
    }

    .cs-why-icon {
        width: 24px;
        height: 24px;
    }

    .cs-platform-panel-media {
        min-height: 14rem;
    }

    .cs-platform-panel-body {
        padding: 1.25rem;
    }

    .cs-offer-card,
    .cs-platform-card {
        padding: 1.25rem;
    }

    .cs-process {
        padding: 3rem 0 3.5rem;
    }



    .cs-faq-question {
        font-size: 1rem;
    }

    .cs-faq-answer {
        font-size: 1rem;
    }

    .cs-faq-list {
        margin-top: 30px;
    }

    .cs-page .careers-cta-banner {
        padding: 44px 20px;
        background-image: url("/images/career/bg-mobile.png");
    }

    .cs-page .careers-cta-banner h2 {
        font-size: 24px;
    }

    .cs-page .careers-cta-banner p {
        font-size: 16px;
        margin-bottom: 24px;
    }
}
