/* ==========================================================================
   OTHER SERVICES (Wider, more dimensional glass layout)
   ========================================================================== */

.subpage-hero {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    position: relative !important;

    background: linear-gradient(135deg, rgba(26, 54, 93, 0.9), rgba(32, 57, 150, 0.8)),
                url('https://images.unsplash.com/photo-1511578314322-379afb476865?q=80&w=2070') no-repeat center center/cover !important;

    color: var(--white);
    padding: 160px 20px 110px !important;
    margin-top: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden;
}

.subpage-hero::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 90px;
    background: linear-gradient(to bottom, rgba(237, 242, 247, 0), #edf2f7);
    pointer-events: none;
}

.subpage-hero .hero-content {
    max-width: 800px !important;
    margin: 0 auto !important;
    position: relative;
    z-index: 2;
}

.subpage-hero h1 {
    font-size: 40px !important;
    font-weight: 700 !important;
    margin-bottom: 12px !important;
    letter-spacing: -0.5px;
}

.subpage-hero p {
    font-size: 18px !important;
    color: #e2e8f0 !important;
    max-width: 650px !important;
    margin: 0 auto !important;
}

/* ==========================================================================
   FULL-PAGE BACKDROP
   ========================================================================== */
body {
    background-color: #edf2f7;
    background-image:
        radial-gradient(circle at 88% 10%, rgba(43, 108, 176, 0.10), transparent 40%),
        radial-gradient(circle at 8% 30%, rgba(32, 57, 221, 0.08), transparent 38%),
        radial-gradient(circle at 85% 88%, rgba(26, 54, 93, 0.08), transparent 42%),
        linear-gradient(rgba(237, 242, 247, 0.94), rgba(237, 242, 247, 0.94)),
        url('https://images.unsplash.com/photo-1511578314322-379afb476865?q=80&w=2070');
    background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, no-repeat;
    background-position: center, center, center, center, top center;
    background-size: auto, auto, auto, auto, cover;
    background-attachment: scroll, scroll, scroll, scroll, fixed;
}

@media (max-width: 900px) {
    body {
        background-attachment: scroll, scroll, scroll, scroll, scroll;
    }
}

/* Unified Glass Container (wider, layered depth) */
.page-container {
    position: relative;
    max-width: 1080px;
    margin: 70px auto;
    padding: 70px 80px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    box-shadow:
        0 2px 4px rgba(26, 54, 93, 0.04),
        0 12px 30px rgba(26, 54, 93, 0.08),
        0 40px 70px -20px rgba(26, 54, 93, 0.18);
    overflow: visible;
    z-index: 1;
}

.page-container::before,
.page-container::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(50px);
    z-index: -1;
    pointer-events: none;
    animation: osBlobDrift 12s ease-in-out infinite;
}

.page-container::before {
    width: 260px;
    height: 260px;
    top: -80px;
    left: -60px;
    background: radial-gradient(circle, rgba(43, 108, 176, 0.26), transparent 70%);
}

.page-container::after {
    width: 320px;
    height: 320px;
    bottom: -100px;
    right: -80px;
    background: radial-gradient(circle, rgba(32, 57, 221, 0.18), transparent 70%);
    animation-delay: -6s;
}

@keyframes osBlobDrift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(16px, -18px) scale(1.08); }
}

@media (prefers-reduced-motion: reduce) {
    .page-container::before,
    .page-container::after {
        animation: none;
    }
}

.service-section-block {
    margin-bottom: 50px;
    padding-bottom: 40px;
    border-bottom: 1px solid #e2e8f0;
    scroll-margin-top: 110px;
}

.service-section-block:last-of-type {
    border-bottom: none;
    margin-bottom: 30px;
    padding-bottom: 0;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.category-header h2 {
    color: var(--primary);
    font-size: 23px;
    margin-bottom: 0;
    font-weight: 700;
}

.cat-icon {
    font-size: 26px;
    display: inline-block;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.service-section-block:hover .cat-icon {
    transform: scale(1.15) rotate(-6deg);
}

.section-desc {
    color: var(--gray);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 18px;
}

.context-quote {
    font-style: italic;
    background: rgba(248, 250, 252, 0.7);
    padding: 16px 20px;
    border-left: 3px solid var(--accent);
    border-radius: 0 6px 6px 0;
    margin-top: 20px;
    color: var(--dark);
    font-size: 14px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.context-quote:hover {
    transform: translateX(4px);
    box-shadow: 0 10px 24px rgba(26, 54, 93, 0.08);
}

.bullet-list {
    list-style: none;
    padding-left: 0;
}

.bullet-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--dark);
    font-weight: 500;
    transition: transform 0.25s ease;
}

.bullet-list li:hover {
    transform: translateX(3px);
}

.bullet-list li::before {
    content: "•";
    position: absolute;
    left: 2px;
    color: var(--accent);
    font-weight: bold;
    font-size: 18px;
    line-height: 1;
    top: -1px;
}

.page-container .btn {
    display: inline-block;
    padding: 14px 32px;
    background: var(--primary);
    color: var(--white) !important;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(26, 54, 93, 0.15);
    transition: all 0.3s ease;
}

.page-container .btn:hover {
    background: var(--primary-dark, #1a365d) !important;
    box-shadow: 0 10px 24px rgba(26, 54, 93, 0.28);
    transform: translateY(-3px);
}

/* ==========================================================================
   SCROLL-TRIGGERED STAGGERED REVEAL
   ========================================================================== */
.service-section-block {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.165, 0.84, 0.44, 1),
                transform 0.7s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.page-container.is-visible .service-section-block:nth-of-type(1) { opacity: 1; transform: translateY(0); transition-delay: 0.05s; }
.page-container.is-visible .service-section-block:nth-of-type(2) { opacity: 1; transform: translateY(0); transition-delay: 0.2s; }
.page-container.is-visible .service-section-block:nth-of-type(3) { opacity: 1; transform: translateY(0); transition-delay: 0.35s; }

@media (max-width: 1200px) {
    .page-container {
        max-width: 92%;
    }
}

@media (max-width: 768px) {
    .subpage-hero h1 {
        font-size: 28px !important;
    }
    .subpage-hero p {
        font-size: 15px !important;
    }
    .page-container {
        padding: 40px 24px;
        margin: 40px 15px;
        border-radius: 16px;
    }
}
