﻿/* =============================================================
   SHARED CSS — TuyenDung · HoiDap · TaiLieu
   Đồng bộ với design system SG Energy
   ============================================================= */

/* ── Page Hero ─────────────────────────────────────────────── */
.page-hero {
    position: relative;
    background: linear-gradient(135deg, #0d2b5e 0%, #1565c0 55%, #0a9dcc 100%);
    padding: 64px 0 56px;
    overflow: hidden;
    text-align: center;
    color: #fff;
}

    .page-hero::before {
        content: '';
        position: absolute;
        inset: 0;
        background: radial-gradient(ellipse 70% 80% at 15% 50%, rgba(255,255,255,.06) 0%, transparent 60%), radial-gradient(ellipse 50% 60% at 85% 30%, rgba(0,172,193,.18) 0%, transparent 55%);
    }

    .page-hero::after {
        content: '';
        position: absolute;
        bottom: -1px;
        left: 0;
        right: 0;
        height: 40px;
        background: #fff;
        clip-path: ellipse(55% 100% at 50% 100%);
    }

.page-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-hero__breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255,255,255,.7);
    margin-bottom: 16px;
    background: rgba(255,255,255,.1);
    backdrop-filter: blur(8px);
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,.15);
}

    .page-hero__breadcrumb a {
        color: rgba(255,255,255,.7);
    }

        .page-hero__breadcrumb a:hover {
            color: #fff;
        }

    .page-hero__breadcrumb i {
        font-size: 11px;
        color: rgba(255,255,255,.45);
    }

.page-hero__title {
    font-size: 38px;
    font-weight: 900;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 14px;
    text-shadow: 0 4px 20px rgba(0,0,0,.25);
    line-height: 1.15;
}

.page-hero__subtitle {
    font-size: 15.5px;
    color: rgba(255,255,255,.85);
    line-height: 1.75;
    max-width: 620px;
    margin: 0 auto;
}

/* ── Section tokens ─────────────────────────────────────────── */
.section-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--primary-color);
    background: rgba(21,101,192,.08);
    border: 1px solid rgba(21,101,192,.18);
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 14px;
}

.section-title {
    font-size: 30px;
    font-weight: 800;
    color: var(--dark-bg);
    line-height: 1.25;
    margin-bottom: 14px;
}

    .section-title .highlight {
        background:  var(--primary-color);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

.section-description {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.8;
    max-width: 580px;
}

/* ── Service page layout ─────────────────────────────────────── */
.service-page {
    padding: 56px 0 72px;
    background: #f7f9fc;
}

.service-page__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ── Service intro header ────────────────────────────────────── */
.service-intro {
    text-align: center;
    margin-bottom: 48px;
}

    .service-intro .section-description {
        margin: 0 auto;
    }

/* ── Service grid ────────────────────────────────────────────── */
.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 56px;
}

/* ── Service card ────────────────────────────────────────────── */
.service-card {
    background: #fff;
    border-radius: 16px;
    padding: 32px 28px 28px;
    border: 1px solid #e8eef6;
    box-shadow: 0 2px 12px rgba(21,101,192,.05);
    transition: transform .3s cubic-bezier(.4,0,.2,1), box-shadow .3s cubic-bezier(.4,0,.2,1), border-color .3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

    .service-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
        transform: scaleX(0);
        transform-origin: left;
        transition: transform .35s cubic-bezier(.4,0,.2,1);
    }

    .service-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 16px 40px rgba(21,101,192,.12);
        border-color: rgba(21,101,192,.2);
    }

        .service-card:hover::before {
            transform: scaleX(1);
        }

/* Featured variant */
.service-card--featured {
    border-color: rgba(21,101,192,.25);
    background: linear-gradient(160deg, #fff 0%, #f0f6ff 100%);
}

    .service-card--featured::before {
        transform: scaleX(1);
    }

/* Icon */
.service-card__icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    box-shadow: 0 4px 14px rgba(21,101,192,.35);
    transition: transform .3s ease, box-shadow .3s ease;
}

    .service-card__icon i {
        font-size: 22px;
        color: #fff;
        -webkit-text-fill-color: #fff;
    }

.service-card:hover .service-card__icon {
    transform: translateY(-3px) scale(1.08);
    box-shadow: 0 8px 22px rgba(21,101,192,.45);
}

/* Badge */
.service-card__badge {
    position: absolute;
    top: 18px;
    right: 18px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .8px;
    text-transform: uppercase;
    background: linear-gradient(135deg, #ff6b35, #ffa726);
    color: #fff;
    padding: 4px 10px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(255,107,53,.35);
}

/* Title */
.service-card__title {
    font-size: 18px;
    font-weight: 800;
    color: var(--dark-bg);
    margin-bottom: 10px;
    line-height: 1.3;
}

/* Description */
.service-card__description {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 18px;
    flex-grow: 1;
}

/* Feature list */
.service-card__features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

    .service-card__features li {
        font-size: 13.5px;
        color: var(--text-dark);
        display: flex;
        align-items: center;
        gap: 9px;
    }

        .service-card__features li i {
            font-size: 13px;
            color: #22c55e;
            flex-shrink: 0;
        }

/* CTA button */
.service-card__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    transition: all .25s ease;
    align-self: flex-start;
    background: transparent;
}

    .service-card__btn:hover {
        background: var(--primary-color);
        color: #fff;
        transform: translateX(3px);
    }

    .service-card__btn i {
        font-size: 12px;
    }

/* ── Process timeline ────────────────────────────────────────── */
.service-process {
    background: #fff;
    border-radius: 20px;
    padding: 48px 40px;
    border: 1px solid #e8eef6;
    box-shadow: 0 4px 24px rgba(21,101,192,.06);
    margin-bottom: 48px;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

    .section-header .section-description {
        margin: 0 auto;
    }

.process-timeline {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    position: relative;
}

    .process-timeline::before {
        content: '';
        position: absolute;
        top: 36px;
        left: calc(16.67% + 16px);
        right: calc(16.67% + 16px);
        height: 2px;
        background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--primary-color) 100%);
        opacity: .25;
        z-index: 0;
    }

.process-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 1;
    padding: 0 12px;
}

.process-step__number {
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1px;
    color: #fff;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 20px;
    padding: 4px 12px;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(21,101,192,.35);
}

.process-step__icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    box-shadow: 0 6px 20px rgba(21,101,192,.3);
    transition: transform .3s ease, box-shadow .3s ease;
}

.process-step:hover .process-step__icon {
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 12px 30px rgba(21,101,192,.4);
}

.process-step__icon i {
    font-size: 22px;
    color: #fff;
}

.process-step__title {
    font-size: 16px;
    font-weight: 800;
    color: var(--dark-bg);
    margin-bottom: 6px;
}

.process-step__desc {
    font-size: 13.5px;
    color: var(--text-light);
    line-height: 1.6;
}

/* ── Why choose us (CTA block) ───────────────────────────────── */
.service-why {
    background: linear-gradient(135deg, #0d2b5e 0%, #1565c0 60%, #0a9dcc 100%);
    border-radius: 20px;
    padding: 52px 48px;
    position: relative;
    overflow: hidden;
}

    .service-why::before {
        content: '';
        position: absolute;
        top: -40%;
        right: -8%;
        width: 420px;
        height: 420px;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(255,255,255,.08) 0%, transparent 65%);
    }

    .service-why::after {
        content: '';
        position: absolute;
        bottom: -30%;
        left: -5%;
        width: 300px;
        height: 300px;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(0,172,193,.2) 0%, transparent 65%);
    }

.service-why__content {
    position: relative;
    z-index: 1;
    max-width: 560px;
}

.service-why .section-badge {
    color: rgba(255,255,255,.9);
    background: rgba(255,255,255,.12);
    border-color: rgba(255,255,255,.2);
}

.service-why .section-title {
    color: #fff;
    font-size: 34px;
}

    .service-why .section-title .highlight {
        background: linear-gradient(135deg, #ffd54f, #ffb74d);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

.service-why .section-description {
    color: rgba(255,255,255,.8);
}

/* CTA Buttons */
.service-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.btn-primary.btn-large {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 700;
    background: #fff;
    color: var(--primary-color);
    border: 2px solid transparent;
    box-shadow: 0 4px 16px rgba(0,0,0,.15);
    transition: all .3s ease;
    text-decoration: none;
}

    .btn-primary.btn-large:hover {
        background: var(--primary-color);
        color: #fff;
        transform: translateY(-3px);
        box-shadow: 0 8px 24px rgba(0,0,0,.2);
    }

.btn-secondary.btn-large {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 700;
    background: rgba(255,255,255,.12);
    color: #fff;
    border: 2px solid rgba(255,255,255,.35);
    backdrop-filter: blur(8px);
    transition: all .3s ease;
    text-decoration: none;
}

    .btn-secondary.btn-large:hover {
        background: rgba(255,255,255,.22);
        border-color: rgba(255,255,255,.6);
        transform: translateY(-3px);
    }

/* ═══════════════════════════════════════════════════════════════
   HỎI ĐÁP — FAQ
   ═══════════════════════════════════════════════════════════════ */
.solutions-benefits {
    padding: 56px 0 72px;
    background: #f7f9fc;
}

    .solutions-benefits .container {
        max-width: 880px;
    }

/* Section head */
.section-head {
    text-align: center;
    margin-bottom: 48px;
}

.section-head__kicker {
    display: inline-block;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary-color);
    background: rgba(21,101,192,.08);
    border: 1px solid rgba(21,101,192,.18);
    padding: 5px 16px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.section-head__title {
    font-size: 32px;
    font-weight: 900;
    color: var(--dark-bg);
    line-height: 1.25;
    margin-bottom: 14px;
}

.section-head__desc {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.8;
    max-width: 560px;
    margin: 0 auto;
}

/* FAQ accordion */
.sol-faq {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sol-faq__item {
    background: #fff;
    border-radius: 14px;
    border: 1px solid #e8eef6;
    box-shadow: 0 2px 8px rgba(21,101,192,.04);
    overflow: hidden;
    transition: box-shadow .3s ease, border-color .3s ease;
}

    .sol-faq__item[open] {
        border-color: rgba(21,101,192,.3);
        box-shadow: 0 6px 24px rgba(21,101,192,.1);
    }

.sol-faq__q {
    padding: 20px 24px;
    font-size: 15.5px;
    font-weight: 700;
    color: var(--dark-bg);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 14px;
    list-style: none;
    transition: color .2s ease, background .2s ease;
    position: relative;
}

    .sol-faq__q::-webkit-details-marker {
        display: none;
    }

    .sol-faq__q::after {
        content: '\f078';
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        font-size: 13px;
        color: var(--primary-color);
        margin-left: auto;
        transition: transform .3s cubic-bezier(.4,0,.2,1);
        flex-shrink: 0;
    }

.sol-faq__item[open] .sol-faq__q::after {
    transform: rotate(-180deg);
}

.sol-faq__q:hover {
    color: var(--primary-color);
    background: rgba(21,101,192,.03);
}

.sol-faq__q i {
    font-size: 17px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.sol-faq__a {
    padding: 0 24px 22px 52px;
    font-size: 14.5px;
    color: var(--text-light);
    line-height: 1.8;
    border-top: 1px solid #f0f4fb;
    animation: faqOpen .25s ease;
}

@keyframes faqOpen {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ═══════════════════════════════════════════════════════════════
   GRID VARIANTS (4 cards for TaiLieu)
   ═══════════════════════════════════════════════════════════════ */
.service-grid--four {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1100px) {
    .service-grid--four {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 992px) {
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-timeline {
        grid-template-columns: 1fr;
        gap: 20px;
    }

        .process-timeline::before {
            display: none;
        }

    .service-why {
        padding: 40px 32px;
    }

    .section-title {
        font-size: 26px;
    }

    .page-hero__title {
        font-size: 30px;
    }

    .service-process {
        padding: 36px 28px;
    }
}

@media (max-width: 768px) {
    .service-page {
        padding: 40px 0 56px;
    }

    .service-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .service-why {
        padding: 36px 24px;
    }

        .service-why .section-title {
            font-size: 24px;
        }

    .service-cta {
        flex-direction: column;
    }

    .btn-primary.btn-large,
    .btn-secondary.btn-large {
        justify-content: center;
    }

    .page-hero {
        padding: 48px 0 44px;
    }

    .page-hero__title {
        font-size: 26px;
        letter-spacing: 2px;
    }

    .page-hero__subtitle {
        font-size: 14px;
    }

    .service-process {
        padding: 28px 20px;
    }

    .sol-faq__q {
        padding: 16px 18px;
        font-size: 14.5px;
    }

    .sol-faq__a {
        padding: 0 18px 18px 44px;
    }

    .section-head__title {
        font-size: 26px;
    }
}

@media (max-width: 480px) {
    .page-hero__title {
        font-size: 22px;
        letter-spacing: 1.5px;
    }

    .section-title {
        font-size: 22px;
    }

    .service-card {
        padding: 24px 20px 20px;
    }

    .service-why {
        padding: 28px 18px;
        border-radius: 14px;
    }

        .service-why .section-title {
            font-size: 21px;
        }
}
