/* =========================================================
   SHARED SUBPAGE STYLES
   Used by: solutions, seo, webdev, ai, privacy, terms, carrear
   ========================================================= */

/* ---- Hero ---- */
.sub-hero-modern {
    position: relative;
    background:
        radial-gradient(ellipse 75% 90% at 50% 35%, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.82) 40%, rgba(255,255,255,0.55) 70%, rgba(255,255,255,0.25) 100%),
        url('assets/images/subpage-hero-bg.jpg') center/cover no-repeat;
    min-height: 52vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding: 130px 20px 80px;
}

.sub-hero-bg-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(29, 78, 216, 0.06) 1px, transparent 1px);
    background-size: 26px 26px;
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
    pointer-events: none;
}

.sub-hero-blob {
    position: absolute;
    width: 32rem;
    height: 32rem;
    top: -8rem;
    right: -6rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(29, 78, 216, 0.10), transparent 70%);
    filter: blur(70px);
    pointer-events: none;
}

.sub-hero-content {
    position: relative;
    z-index: 10;
    max-width: 680px;
}

.hero-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--dw-primary, #1d4ed8);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    margin-bottom: 18px;
}

.sub-hero-modern h1 {
    font-size: clamp(2.2rem, 4.5vw, 3.4rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    color: #0f172a;
    margin-bottom: 18px;
    line-height: 1.1;
    text-shadow: none;
}

.sub-hero-modern > .sub-hero-content p,
.sub-hero-modern p {
    font-size: 1.15rem;
    color: #64748b;
    line-height: 1.7;
    max-width: 540px;
    margin: 0 auto;
}

/* ---- Content section ---- */
.page-detail-section {
    padding: 90px 0 80px;
    background: #ffffff;
}

.page-split-layout {
    display: flex;
    align-items: center;
    gap: 64px;
    margin-bottom: 80px;
}

.page-text-side { flex: 1; }
.page-img-side  { flex: 1; }

.page-img-side img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 16px 48px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(15, 23, 42, 0.05);
}

.page-text-eyebrow {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--dw-primary, #1d4ed8);
    margin-bottom: 12px;
    display: block;
}

.page-text-side h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    color: #0f172a;
    margin-bottom: 18px;
    line-height: 1.15;
}

.page-text-side p {
    color: #64748b;
    line-height: 1.75;
    margin-bottom: 24px;
    font-size: 1.05rem;
}

.check-list {
    list-style: none;
    padding: 0;
    margin-bottom: 0;
}

.check-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 1rem;
    color: #1e293b;
}

.check-list li i {
    color: var(--dw-primary, #1d4ed8);
    margin-top: 3px;
    font-size: 1rem;
    flex-shrink: 0;
}

/* ---- Feature cards ---- */
.sub-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}

.sub-feature-box {
    padding: 36px 32px;
    background: #ffffff;
    border-radius: 14px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border: 1px solid rgba(15, 23, 42, 0.07);
    border-top: 3px solid var(--dw-primary, #1d4ed8);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
}

.sub-feature-box:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.10);
}

.sub-feature-icon {
    width: 48px;
    height: 48px;
    background: rgba(29, 78, 216, 0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
}

.sub-feature-icon i {
    font-size: 1.3rem;
    color: var(--dw-primary, #1d4ed8);
}

.sub-feature-box h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.sub-feature-box p {
    color: #64748b;
    line-height: 1.65;
    font-size: 0.97rem;
    margin: 0;
}

/* ---- CTA bar ---- */
.sub-cta-bar {
    background: #0f172a;
    padding: 80px 20px;
    text-align: center;
    color: white;
}

.sub-cta-bar h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    color: #ffffff;
    margin-bottom: 12px;
}

.sub-cta-bar p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 1.1rem;
    margin-bottom: 32px;
}

.btn-cta-white {
    display: inline-block;
    background: #ffffff;
    color: var(--dw-primary, #1d4ed8);
    padding: 14px 36px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.btn-cta-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25);
    color: #1e40af;
}

/* ---- Careers extras ---- */
.subpage-section {
    padding: 80px 0;
    background: #ffffff;
}

.subpage-section.bg-light {
    background: var(--background-gray, #f8fafc);
}

.subpage-section-header {
    text-align: center;
    margin-bottom: 50px;
}

.subpage-section-header h2 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    color: #0f172a;
    margin-bottom: 14px;
}

.subpage-section-header p {
    font-size: 1.05rem;
    color: #64748b;
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Offer grid (careers) */
.offer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
    text-align: center;
}

.offer-card {
    background: #ffffff;
    padding: 40px 28px;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
    border: 1px solid rgba(15, 23, 42, 0.07);
    border-top: 3px solid var(--dw-primary, #1d4ed8);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.offer-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.10);
}

.offer-card .icon-container {
    font-size: 2.2rem;
    margin-bottom: 16px;
    display: block;
}

.offer-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 10px;
}

.offer-card p {
    color: #64748b;
    font-size: 0.97rem;
    line-height: 1.6;
    margin: 0;
}

/* Role pills */
.role-list {
    list-style: none;
    padding: 0;
    max-width: 860px;
    margin: 0 auto 48px auto;
    text-align: center;
}

.role-list li {
    display: inline-block;
    background: rgba(29, 78, 216, 0.07);
    color: var(--dw-primary, #1d4ed8);
    border: 1px solid rgba(29, 78, 216, 0.15);
    padding: 10px 22px;
    margin: 6px;
    border-radius: 9999px;
    font-size: 0.97rem;
    font-weight: 600;
    transition: background 0.2s ease;
}

.role-list li:hover {
    background: rgba(29, 78, 216, 0.12);
}

/* Alert / note boxes */
.alert-box {
    background: rgba(29, 78, 216, 0.05);
    color: #1e293b;
    padding: 28px 32px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(29, 78, 216, 0.14);
    max-width: 760px;
    margin: 0 auto;
}

.alert-box p {
    font-size: 1rem;
    color: #475569;
    margin: 0;
    line-height: 1.6;
}

.alert-box strong {
    font-weight: 700;
    font-size: 1.05rem;
    color: #0f172a;
    display: block;
    margin-bottom: 8px;
}

.note-box {
    border-left: 4px solid #ef4444;
    padding: 24px 28px;
    background: #fff5f5;
    border-radius: 0 10px 10px 0;
    max-width: 760px;
    margin: 0 auto;
}

.note-box h3 {
    color: #dc2626;
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.note-box p {
    color: #64748b;
    font-size: 0.97rem;
    line-height: 1.6;
    margin: 0;
}

.btn-apply {
    display: inline-block;
    margin-top: 28px;
    background: var(--dw-primary, #1d4ed8);
    color: #ffffff;
    padding: 16px 36px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(29, 78, 216, 0.22);
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-apply:hover {
    background: #1e40af;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(29, 78, 216, 0.28);
}

.small-note {
    font-size: 0.88rem;
    color: #94a3b8;
    margin-top: 16px;
    line-height: 1.5;
}

/* ---- Mobile ---- */
@media (max-width: 992px) {
    .page-split-layout {
        flex-direction: column;
        gap: 36px;
    }

    .page-img-side img {
        max-height: 300px;
        object-fit: cover;
    }
}
