/* ==========================================================================
   Inner Service Pages — Award-Winning Premium Design System
   SaeSpartner © 2025
   ========================================================================== */

/* ==========================================================================
   1. PREMIUM HERO SECTION
   ========================================================================== */

.sp-hero {
    position: relative;
    min-height: 520px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 10rem 2rem 5rem;
    overflow: hidden;
    background: linear-gradient(145deg, #011d38 0%, #022B50 35%, #0A4A80 70%, #0e5ea3 100%);
}

/* Animated Aurora Blobs */
.sp-hero::before,
.sp-hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.35;
    animation: heroFloat 12s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 0;
}

.sp-hero::before {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 208, 0, 0.5) 0%, transparent 70%);
    top: -200px;
    right: -150px;
    animation-delay: 0s;
}

.sp-hero::after {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(14, 94, 163, 0.6) 0%, transparent 70%);
    bottom: -180px;
    left: -120px;
    animation-delay: -6s;
}

@keyframes heroFloat {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -20px) scale(1.08); }
    100% { transform: translate(-20px, 15px) scale(0.95); }
}

/* Geometric grid pattern overlay */
.sp-hero-pattern {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.04;
    background-image:
        linear-gradient(rgba(255,255,255,0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

.sp-hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.sp-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 208, 0, 0.15);
    border: 1px solid rgba(255, 208, 0, 0.3);
    color: #FFD000;
    padding: 0.5rem 1.25rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.sp-hero-badge i {
    font-size: 0.9rem;
}

.sp-hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    color: #FFFFFF;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    letter-spacing: -1.5px;
}

.sp-hero-title span {
    color: #FFD000;
    position: relative;
}

.sp-hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
    max-width: 720px;
    margin: 0 auto 2.5rem;
}

/* Hero Section Quick Links (anchor pills) */
.sp-hero-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 1rem;
}

.sp-hero-nav a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 1.1rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.82rem;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    text-decoration: none;
}

.sp-hero-nav a:hover {
    background: rgba(255, 208, 0, 0.2);
    border-color: rgba(255, 208, 0, 0.4);
    color: #FFD000;
    transform: translateY(-2px);
}

.sp-hero-nav a i {
    font-size: 0.75rem;
    opacity: 0.7;
}


/* ==========================================================================
   2. BREADCRUMB NAVIGATION
   ========================================================================== */

.sp-breadcrumb {
    position: relative;
    z-index: 3;
    padding: 0 2rem;
    margin-bottom: 2.5rem;
}

.sp-breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0.6rem 1.2rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: inline-flex;
}

.sp-breadcrumb-list li {
    display: flex;
    align-items: center;
    font-size: 0.82rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.55);
}

.sp-breadcrumb-list li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.sp-breadcrumb-list li a:hover {
    color: #FFD000;
}

.sp-breadcrumb-list li a i {
    font-size: 0.9rem;
}

.sp-breadcrumb-sep {
    margin: 0 0.6rem;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.35);
}

.sp-breadcrumb-list li:last-child {
    color: #FFD000;
    font-weight: 700;
}


/* ==========================================================================
   3. PAGE LAYOUT WITH STICKY TOC
   ========================================================================== */

.sp-page-wrapper {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 0;
    max-width: 100%;
    position: relative;
}

.sp-toc {
    position: sticky;
    top: 90px;
    height: fit-content;
    max-height: calc(100vh - 120px);
    padding: 2rem 1.5rem 2rem 2rem;
    overflow-y: auto;
    z-index: 10;
    border-right: 1px solid var(--border-light);
    background: var(--bg-white);
}

.sp-toc-title {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-light);
}

.sp-toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.sp-toc-list li a {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.6rem 0.85rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.25s ease;
    position: relative;
    border-left: 3px solid transparent;
}

.sp-toc-list li a .sp-toc-num {
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--text-muted);
    min-width: 22px;
    opacity: 0.6;
    font-variant-numeric: tabular-nums;
}

.sp-toc-list li a:hover {
    background: var(--bg-light);
    color: var(--primary);
    border-left-color: var(--accent);
}

.sp-toc-list li a:hover .sp-toc-num {
    color: var(--accent);
    opacity: 1;
}

.sp-toc-list li a.active {
    background: rgba(255, 208, 0, 0.1);
    color: var(--primary);
    font-weight: 700;
    border-left-color: var(--accent);
}

.sp-toc-list li a.active .sp-toc-num {
    color: var(--accent);
    opacity: 1;
}

.sp-main-content {
    min-width: 0;
}


/* ==========================================================================
   4. SECTION STYLING — Enhanced
   ========================================================================== */

/* General Content Section */
.content-section {
    padding: 6rem 2rem;
    max-width: 100%;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.content-section.bg-white {
    background-color: var(--bg-white);
}

.content-section.bg-light {
    background: linear-gradient(135deg, #f8f9fa 0%, #eef2f5 100%);
}

.content-section.bg-gradient-primary {
    background: linear-gradient(145deg, var(--primary) 0%, var(--primary-dark) 50%, #0A4A80 100%);
    color: var(--bg-white);
    position: relative;
}

/* Mesh gradient overlay for primary sections */
.content-section.bg-gradient-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 80%, rgba(255, 208, 0, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(14, 94, 163, 0.12) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.content-section.bg-gradient-primary > * {
    position: relative;
    z-index: 1;
}

.content-section > .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

/* --- Section Headers with numbered badge --- */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.sp-section-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(255, 208, 0, 0.12);
    border: 2px solid rgba(255, 208, 0, 0.25);
    color: var(--accent);
    font-size: 1rem;
    font-weight: 900;
    margin-bottom: 1.25rem;
    font-variant-numeric: tabular-nums;
}

.bg-gradient-primary .sp-section-number {
    background: rgba(255, 208, 0, 0.15);
    border-color: rgba(255, 208, 0, 0.3);
}

.section-title {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 1.25rem;
    letter-spacing: -0.5px;
}

.bg-gradient-primary .section-title {
    color: var(--bg-white);
}

.section-title span {
    color: var(--accent);
    position: relative;
    display: inline-block;
}

.section-title span::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background-color: rgba(255, 193, 7, 0.3);
    z-index: -1;
    border-radius: 4px;
}

.section-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.bg-gradient-primary .section-subtitle {
    color: rgba(255, 255, 255, 0.8);
}


/* ==========================================================================
   5. CONTENT BLOCKS — Enhanced
   ========================================================================== */

/* --- Overview & Importance (Premium Text Layout) --- */
.premium-text-block {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.premium-text-block p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.85;
}

.bg-gradient-primary .premium-text-block p {
    color: rgba(255, 255, 255, 0.9);
}

/* Beautiful Highlight Card for Importance */
.importance-card {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 24px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-top: 5px solid var(--accent);
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    transform: translateY(0);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
}

.importance-card:hover {
    transform: translateY(-8px);
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.5) inset;
}

.importance-card p {
    font-size: 1.1rem;
    color: var(--text-primary);
    line-height: 1.85;
    margin: 0;
}

.importance-card .icon-badge {
    position: absolute;
    top: -28px;
    left: 50%;
    transform: translateX(-50%);
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #FFD000 0%, #E6BB00 100%);
    color: var(--primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 12px 30px rgba(255, 193, 7, 0.35);
    transition: transform 0.3s ease;
}

.importance-card:hover .icon-badge {
    transform: translateX(-50%) rotate(10deg) scale(1.1);
}


/* ==========================================================================
   6. AUDIENCE / WHO NEEDS IT — Enhanced Cards
   ========================================================================== */

.audience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.audience-card {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: 24px;
    box-shadow: 0 4px 20px rgba(2, 43, 80, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.04);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.audience-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(255, 208, 0, 0.08) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.audience-card:hover {
    transform: translateY(-10px);
    box-shadow:
        0 20px 50px rgba(2, 43, 80, 0.08),
        0 0 0 1px rgba(255, 208, 0, 0.15);
}

.audience-card:hover::before {
    opacity: 1;
}

.audience-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--bg-light) 0%, #e8edf2 100%);
    color: var(--primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.audience-card:hover .audience-icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, #FFD000 0%, #E6BB00 100%);
    color: var(--primary);
    box-shadow: 0 10px 25px rgba(255, 193, 7, 0.3);
}

.audience-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.audience-card p {
    color: var(--text-secondary);
    line-height: 1.65;
    font-size: 0.95rem;
}


/* ==========================================================================
   7. SERVICE DETAIL CARDS (Types of Services)
   ========================================================================== */

.service-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.service-detail-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 2.25rem;
    box-shadow: 0 4px 20px rgba(2, 43, 80, 0.04);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
}

.service-detail-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--primary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-detail-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(2, 43, 80, 0.1);
    border-color: rgba(255, 208, 0, 0.2);
}

.service-detail-card:hover::after {
    transform: scaleX(1);
}

.service-detail-icon {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 1.25rem;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 208, 0, 0.1);
    border-radius: 14px;
    transition: all 0.3s ease;
}

.service-detail-card:hover .service-detail-icon {
    background: linear-gradient(135deg, #FFD000, #E6BB00);
    color: var(--primary);
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 20px rgba(255, 193, 7, 0.3);
}

.service-detail-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    color: var(--primary);
}

.service-detail-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.65;
}


/* ==========================================================================
   8. BENEFITS GRID — Enhanced
   ========================================================================== */

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.benefit-card {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: 24px;
    border: 1px solid var(--border-light);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
}

.bg-gradient-primary .benefit-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

.bg-gradient-primary .benefit-card:hover {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.bg-white .benefit-card,
.bg-light .benefit-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.bg-white .benefit-card:hover,
.bg-light .benefit-card:hover {
    background: #fff;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

.benefit-icon-wrapper {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #FFD000 0%, #E6BB00 100%);
    color: var(--primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 10px 25px rgba(255, 193, 7, 0.25);
    transition: transform 0.3s ease;
}

.benefit-card:hover .benefit-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
}

.benefit-content h3 {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: var(--primary);
}

.bg-gradient-primary .benefit-content h3 {
    color: #FFD000;
}

.benefit-content p {
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text-secondary);
}

.bg-gradient-primary .benefit-content p {
    color: rgba(255, 255, 255, 0.8);
}


/* ==========================================================================
   9. WHY SAESPARTNER GRID — Enhanced
   ========================================================================== */

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.why-us-card {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: 24px;
    text-align: left;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--border-light);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.why-us-card:hover {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
    transform: translateY(-8px);
}

.why-us-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.why-us-card:hover::after {
    transform: scaleX(1);
}

.why-us-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.why-us-card:hover .why-us-icon {
    transform: scale(1.15) rotate(5deg);
    color: var(--accent);
}

.why-us-title {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: var(--primary);
}

.why-us-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.65;
}


/* ==========================================================================
   10. PREMIUM CTA SECTION
   ========================================================================== */

.sp-cta {
    position: relative;
    padding: 7rem 2rem;
    background: linear-gradient(145deg, #022B50 0%, #011d38 50%, #0A4A80 100%);
    overflow: hidden;
    text-align: center;
}

.sp-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 50%, rgba(255, 208, 0, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 50%, rgba(14, 94, 163, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

/* Animated dots */
.sp-cta-dots {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.sp-cta-dots span {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 208, 0, 0.3);
    border-radius: 50%;
    animation: ctaDotFloat 8s ease-in-out infinite;
}

.sp-cta-dots span:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; }
.sp-cta-dots span:nth-child(2) { left: 25%; top: 70%; animation-delay: -2s; }
.sp-cta-dots span:nth-child(3) { left: 50%; top: 30%; animation-delay: -4s; }
.sp-cta-dots span:nth-child(4) { left: 75%; top: 60%; animation-delay: -6s; }
.sp-cta-dots span:nth-child(5) { left: 90%; top: 40%; animation-delay: -1s; }
.sp-cta-dots span:nth-child(6) { left: 40%; top: 80%; animation-delay: -3s; }

@keyframes ctaDotFloat {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.3; }
    50% { transform: translateY(-30px) scale(1.5); opacity: 0.8; }
}

.sp-cta-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}

.sp-cta-content h2 {
    font-size: 3rem;
    font-weight: 900;
    color: #FFFFFF;
    margin-bottom: 1.25rem;
    letter-spacing: -1px;
    line-height: 1.2;
}

.sp-cta-content p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.sp-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.25rem;
    background: linear-gradient(135deg, #FFD000 0%, #E6BB00 100%);
    color: var(--primary);
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 800;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 8px 30px rgba(255, 208, 0, 0.3);
    border: none;
    cursor: pointer;
}

.sp-cta-btn:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 16px 50px rgba(255, 208, 0, 0.45);
}

.sp-cta-btn svg {
    width: 20px;
    height: 20px;
    stroke-width: 2.5;
    transition: transform 0.3s ease;
}

.sp-cta-btn:hover svg {
    transform: translateX(4px);
}

/* Legacy CTA (hide if still present) */
.cta-section {
    display: none;
}


/* ==========================================================================
   11. SCROLL-REVEAL ANIMATIONS
   ========================================================================== */

.sp-reveal {
    opacity: 0;
    transform: translateY(30px);
    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);
}

.sp-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delays for grid children */
.sp-reveal-stagger > *:nth-child(1) { transition-delay: 0s; }
.sp-reveal-stagger > *:nth-child(2) { transition-delay: 0.1s; }
.sp-reveal-stagger > *:nth-child(3) { transition-delay: 0.2s; }
.sp-reveal-stagger > *:nth-child(4) { transition-delay: 0.3s; }
.sp-reveal-stagger > *:nth-child(5) { transition-delay: 0.4s; }
.sp-reveal-stagger > *:nth-child(6) { transition-delay: 0.5s; }

/* Slide-in-left variant */
.sp-reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    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);
}

.sp-reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

/* Scale-up variant */
.sp-reveal-scale {
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.sp-reveal-scale.revealed {
    opacity: 1;
    transform: scale(1);
}


/* ==========================================================================
   12. RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 1024px) {
    .sp-page-wrapper {
        grid-template-columns: 1fr;
    }

    .sp-toc {
        position: relative;
        top: 0;
        max-height: none;
        border-right: none;
        border-bottom: 1px solid var(--border-light);
        padding: 1rem 1.5rem;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
    }

    .sp-toc-title {
        display: none;
    }

    .sp-toc-list {
        flex-direction: row;
        gap: 0.4rem;
        white-space: nowrap;
    }

    .sp-toc-list li a {
        padding: 0.5rem 1rem;
        border-radius: 999px;
        border-left: none;
        border: 1px solid var(--border-light);
        font-size: 0.8rem;
    }

    .sp-toc-list li a .sp-toc-num {
        display: none;
    }

    .sp-toc-list li a:hover,
    .sp-toc-list li a.active {
        background: rgba(255, 208, 0, 0.15);
        border-color: rgba(255, 208, 0, 0.4);
        color: var(--primary);
    }
}

@media (max-width: 768px) {
    .sp-hero {
        min-height: 440px;
        padding: 8rem 1.5rem 3.5rem;
    }

    .sp-hero-title {
        font-size: 2.25rem;
        letter-spacing: -0.5px;
    }

    .sp-hero-subtitle {
        font-size: 1.05rem;
    }

    .sp-hero-nav {
        gap: 0.4rem;
    }

    .sp-hero-nav a {
        font-size: 0.75rem;
        padding: 0.4rem 0.85rem;
    }

    .sp-breadcrumb-list {
        padding: 0.5rem 0.9rem;
    }

    .sp-breadcrumb-list li {
        font-size: 0.75rem;
    }

    .content-section {
        padding: 4rem 1.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .section-header {
        margin-bottom: 2.5rem;
    }

    .audience-grid,
    .benefits-grid,
    .why-us-grid,
    .service-detail-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .importance-card {
        padding: 2rem 1.5rem;
    }

    .sp-cta {
        padding: 5rem 1.5rem;
    }

    .sp-cta-content h2 {
        font-size: 2.25rem;
    }
}

@media (max-width: 480px) {
    .sp-hero-title {
        font-size: 1.85rem;
    }

    .sp-hero-nav {
        display: none;
    }

    .section-title {
        font-size: 1.7rem;
    }

    .sp-cta-content h2 {
        font-size: 1.85rem;
    }
}

/* ==========================================================================
   Professional service page refresh
   ========================================================================== */

.sp-scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1200;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), #f2b705);
    box-shadow: 0 0 18px rgba(255, 208, 0, 0.35);
    transform-origin: left center;
}

.sp-hero {
    min-height: 620px;
    align-items: stretch;
    justify-content: center;
    text-align: left;
    padding: 9.5rem 2rem 5.75rem;
    background:
        linear-gradient(135deg, rgba(1, 29, 56, 0.98) 0%, rgba(2, 43, 80, 0.98) 52%, rgba(10, 74, 128, 0.94) 100%);
}

.sp-hero::before {
    inset: 0;
    width: auto;
    height: auto;
    border-radius: 0;
    filter: none;
    opacity: 1;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(135deg, rgba(255, 208, 0, 0.08), transparent 36%);
    background-size: 84px 84px, 84px 84px, auto;
    animation: spGridDrift 22s linear infinite;
}

.sp-hero::after {
    content: '';
    position: absolute;
    top: 10.25rem;
    right: max(2rem, calc((100vw - 1280px) / 2 + 2rem));
    z-index: 1;
    width: 360px;
    height: 390px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background:
        linear-gradient(90deg, rgba(255, 208, 0, 0.95) 0 28%, rgba(255, 255, 255, 0.26) 28% 100%) 32px 42px / 270px 8px no-repeat,
        linear-gradient(90deg, rgba(255, 255, 255, 0.55) 0 64%, rgba(255, 255, 255, 0.14) 64% 100%) 32px 80px / 235px 7px no-repeat,
        linear-gradient(90deg, rgba(255, 255, 255, 0.4) 0 48%, rgba(255, 255, 255, 0.12) 48% 100%) 32px 106px / 205px 7px no-repeat,
        linear-gradient(135deg, rgba(255, 208, 0, 0.28), rgba(255, 255, 255, 0.08)) 32px 155px / 130px 96px no-repeat,
        linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.06)) 185px 155px / 130px 96px no-repeat,
        linear-gradient(90deg, rgba(255, 208, 0, 0.9) 0 72%, rgba(255, 255, 255, 0.16) 72% 100%) 32px 302px / 280px 10px no-repeat,
        linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.05));
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    animation: spPanelIn 900ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes spGridDrift {
    from { background-position: 0 0, 0 0, 0 0; }
    to { background-position: 84px 84px, 84px 84px, 0 0; }
}

@keyframes spPanelIn {
    from { opacity: 0; transform: translateY(22px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes spFadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes spFadeDown {
    from { opacity: 0; transform: translateY(-12px); }
    to { opacity: 1; transform: translateY(0); }
}

.sp-hero-pattern {
    opacity: 0.14;
    background-size: 96px 96px;
}

.sp-hero-content {
    width: 100%;
    max-width: 1280px;
    padding-right: 440px;
}

.sp-hero-content > * {
    animation: spFadeUp 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.sp-hero-content > *:nth-child(1) { animation-name: spFadeDown; animation-delay: 80ms; }
.sp-hero-content > *:nth-child(2) { animation-delay: 180ms; }
.sp-hero-content > *:nth-child(3) { animation-delay: 270ms; }
.sp-hero-content > *:nth-child(4) { animation-delay: 360ms; }
.sp-hero-content > *:nth-child(5) { animation-delay: 450ms; }

.sp-breadcrumb {
    padding: 0;
    margin-bottom: 2rem;
}

.sp-breadcrumb-list {
    border-radius: 8px;
    padding: 0.55rem 0.9rem;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.16);
}

.sp-hero-badge {
    border-radius: 8px;
    padding: 0.6rem 0.95rem;
    margin-bottom: 1.5rem;
    background: rgba(255, 208, 0, 0.14);
    border-color: rgba(255, 208, 0, 0.35);
    letter-spacing: 0;
}

.sp-hero-title {
    max-width: 780px;
    font-size: 4rem;
    line-height: 1.08;
    letter-spacing: 0;
    margin-bottom: 1.35rem;
}

.sp-hero-subtitle {
    max-width: 720px;
    margin: 0 0 2.2rem;
    color: rgba(255, 255, 255, 0.82);
}

.sp-hero-nav {
    justify-content: flex-start;
    gap: 0.7rem;
}

.sp-hero-nav a {
    border-radius: 8px;
    padding: 0.62rem 0.95rem;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.18);
}

.sp-hero-nav a:hover,
.sp-hero-nav a:focus-visible {
    background: #ffffff;
    border-color: #ffffff;
    color: var(--primary);
    transform: translateY(-2px);
    outline: none;
}

.sp-page-wrapper {
    grid-template-columns: 286px minmax(0, 1fr);
    background: var(--bg-white);
}

.sp-toc {
    top: 72px;
    padding: 2rem 1.25rem 2rem 1.5rem;
    background: #fbfcfe;
    border-right: 1px solid #e6ebf1;
}

.sp-toc-title {
    letter-spacing: 0;
    color: #667085;
}

.sp-toc-list li a {
    border-radius: 8px;
    padding: 0.68rem 0.8rem;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.sp-toc-list li a:hover,
.sp-toc-list li a.active {
    transform: translateX(3px);
    background: #fff8d6;
    border-left-color: var(--accent);
}

.content-section {
    padding: 5.75rem 2rem;
}

.content-section.bg-light {
    background: #f6f8fb;
}

.content-section.bg-gradient-primary {
    background: linear-gradient(135deg, #022b50 0%, #063861 100%);
}

.content-section.bg-gradient-primary::before {
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px),
        linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px);
    background-size: 72px 72px;
}

.section-header {
    max-width: 820px;
    margin: 0 auto 3.25rem;
}

.sp-section-number {
    width: auto;
    height: auto;
    min-width: 44px;
    padding: 0.45rem 0.75rem;
    border-radius: 8px;
    font-size: 0.82rem;
}

.section-title {
    font-size: 2.55rem;
    line-height: 1.16;
    letter-spacing: 0;
}

.section-title span::after {
    bottom: 2px;
    height: 7px;
}

.premium-text-block {
    max-width: 920px;
    text-align: left;
    padding: 0 0 0 2rem;
    border-left: 4px solid var(--accent);
}

.premium-text-block p {
    font-size: 1.12rem;
    line-height: 1.85;
}

.importance-card {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 1.4rem;
    max-width: 980px;
    padding: 2.5rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-left: 4px solid var(--accent);
    border-top: 1px solid rgba(255, 255, 255, 0.72);
    text-align: left;
}

.importance-card .icon-badge {
    position: static;
    width: 56px;
    height: 56px;
    border-radius: 8px;
    transform: none;
}

.importance-card:hover .icon-badge {
    transform: translateY(-2px);
}

.importance-card p {
    font-size: 1.06rem;
}

.audience-grid,
.service-detail-grid,
.benefits-grid,
.why-us-grid {
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
}

.audience-card,
.service-detail-card,
.benefit-card,
.why-us-card {
    border-radius: 8px;
    border: 1px solid #e7edf4;
    box-shadow: 0 12px 34px rgba(2, 43, 80, 0.055);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease,
        background 0.25s ease;
}

.audience-card::before,
.service-detail-card::before,
.benefit-card::before,
.why-us-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    border-radius: 8px 8px 0 0;
    background: linear-gradient(90deg, var(--accent), rgba(10, 74, 128, 0.4));
    opacity: 0;
    z-index: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.audience-card:hover,
.service-detail-card:hover,
.benefit-card:hover,
.why-us-card:hover {
    transform: translateY(-5px);
    border-color: rgba(10, 74, 128, 0.18);
    box-shadow: 0 20px 48px rgba(2, 43, 80, 0.1);
}

.audience-card:hover::before,
.service-detail-card:hover::before,
.benefit-card:hover::before,
.why-us-card:hover::before {
    opacity: 1;
}

.audience-icon,
.service-detail-icon,
.benefit-icon-wrapper {
    border-radius: 8px;
}

.audience-card:hover .audience-icon,
.service-detail-card:hover .service-detail-icon,
.benefit-card:hover .benefit-icon-wrapper,
.why-us-card:hover .why-us-icon {
    transform: translateY(-2px);
}

.benefit-card {
    flex-direction: row;
    align-items: flex-start;
}

.why-us-card {
    padding: 2rem;
}

.why-us-icon {
    width: 54px;
    height: 54px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    background: rgba(255, 208, 0, 0.12);
    font-size: 1.65rem;
}

.service-detail-card::after,
.why-us-card::after {
    display: none;
}

.sp-reveal,
.sp-reveal-left,
.sp-reveal-scale {
    transition-duration: 720ms;
}

.sp-reveal-stagger > * {
    transition-delay: calc(var(--sp-stagger-index, 0) * 80ms);
}

.sp-cta {
    padding: 6.5rem 2rem;
    background: linear-gradient(135deg, #011d38 0%, #022b50 60%, #073f6f 100%);
}

.sp-cta-content h2 {
    letter-spacing: 0;
}

.sp-cta-btn {
    border-radius: 8px;
}

@media (max-width: 1100px) {
    .sp-hero {
        min-height: 540px;
    }

    .sp-hero::after {
        display: none;
    }

    .sp-hero-content {
        padding-right: 0;
        max-width: 880px;
    }
}

@media (max-width: 1024px) {
    .sp-page-wrapper {
        grid-template-columns: 1fr;
    }

    .sp-toc {
        top: 0;
        background: #ffffff;
    }

    .sp-toc-list li a:hover,
    .sp-toc-list li a.active {
        transform: none;
        border-left: 1px solid rgba(255, 208, 0, 0.4);
    }
}

@media (max-width: 768px) {
    .sp-hero {
        min-height: 500px;
        padding: 8.5rem 1.25rem 4rem;
    }

    .sp-hero-title {
        font-size: 2.45rem;
        line-height: 1.14;
    }

    .sp-hero-subtitle {
        font-size: 1rem;
        line-height: 1.65;
    }

    .sp-breadcrumb-list {
        max-width: 100%;
        overflow-x: auto;
    }

    .content-section {
        padding: 4.25rem 1.25rem;
    }

    .content-section > .container {
        padding: 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .premium-text-block {
        padding-left: 1.25rem;
    }

    .importance-card {
        grid-template-columns: 1fr;
        padding: 2rem 1.5rem;
    }

    .benefit-card {
        flex-direction: column;
    }

    .service-detail-grid {
        padding: 0;
    }
}

@media (max-width: 480px) {
    .sp-hero-title {
        font-size: 2rem;
    }

    .sp-hero-badge {
        font-size: 0.74rem;
    }

    .sp-breadcrumb {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sp-scroll-progress,
    .sp-hero::before,
    .sp-hero::after,
    .sp-hero-content > *,
    .sp-reveal,
    .sp-reveal-left,
    .sp-reveal-scale,
    .sp-cta-dots span {
        animation: none !important;
        transition: none !important;
    }

    .sp-reveal,
    .sp-reveal-left,
    .sp-reveal-scale {
        opacity: 1;
        transform: none;
    }
}

/* Final palette pass */
.sp-scroll-progress {
    background: linear-gradient(90deg, var(--sky-blue), #ffffff);
    box-shadow: 0 0 18px rgba(116, 180, 217, 0.35);
}

.sp-hero,
.content-section.bg-gradient-primary,
.sp-cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 58%, #164994 100%);
}

.sp-hero::before {
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(135deg, rgba(116, 180, 217, 0.18), transparent 36%);
}

.sp-hero::after {
    background:
        linear-gradient(90deg, rgba(116, 180, 217, 0.95) 0 28%, rgba(255, 255, 255, 0.26) 28% 100%) 32px 42px / 270px 8px no-repeat,
        linear-gradient(90deg, rgba(255, 255, 255, 0.55) 0 64%, rgba(255, 255, 255, 0.14) 64% 100%) 32px 80px / 235px 7px no-repeat,
        linear-gradient(90deg, rgba(255, 255, 255, 0.4) 0 48%, rgba(255, 255, 255, 0.12) 48% 100%) 32px 106px / 205px 7px no-repeat,
        linear-gradient(135deg, rgba(116, 180, 217, 0.28), rgba(255, 255, 255, 0.08)) 32px 155px / 130px 96px no-repeat,
        linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.06)) 185px 155px / 130px 96px no-repeat,
        linear-gradient(90deg, rgba(116, 180, 217, 0.9) 0 72%, rgba(255, 255, 255, 0.16) 72% 100%) 32px 302px / 280px 10px no-repeat,
        linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.05));
}

.sp-hero-badge,
.sp-breadcrumb-list li:last-child,
.sp-breadcrumb-list li a:hover,
.sp-hero-title span,
.sp-hero-nav a:hover,
.sp-hero-nav a:focus-visible,
.bg-gradient-primary .benefit-content h3 {
    color: var(--sky-blue);
}

.sp-hero-badge {
    background: rgba(116, 180, 217, 0.16);
    border-color: rgba(116, 180, 217, 0.36);
}

.sp-hero-nav a:hover,
.sp-hero-nav a:focus-visible {
    color: var(--primary);
}

.sp-section-number,
.service-detail-icon,
.why-us-icon,
.audience-card:hover .audience-icon,
.service-detail-card:hover .service-detail-icon,
.benefit-icon-wrapper,
.importance-card .icon-badge,
.sp-cta-btn {
    background: var(--accent-light);
    color: var(--primary);
    border-color: rgba(116, 180, 217, 0.35);
}

.importance-card .icon-badge,
.benefit-icon-wrapper,
.sp-cta-btn {
    background: linear-gradient(135deg, var(--sky-blue) 0%, #ffffff 160%);
    box-shadow: 0 10px 25px rgba(116, 180, 217, 0.28);
}

.section-title span,
.service-detail-icon,
.why-us-card:hover .why-us-icon,
.sp-toc-list li a:hover .sp-toc-num,
.sp-toc-list li a.active .sp-toc-num {
    color: var(--sky-blue);
}

.section-title span::after {
    background-color: rgba(116, 180, 217, 0.28);
}

.premium-text-block,
.importance-card {
    border-left-color: var(--sky-blue);
}

.sp-toc-list li a:hover,
.sp-toc-list li a.active {
    background: var(--accent-light);
    border-left-color: var(--sky-blue);
}

.audience-card::before,
.service-detail-card::before,
.benefit-card::before,
.why-us-card::before,
.service-detail-card::after,
.why-us-card::after {
    background: linear-gradient(90deg, var(--sky-blue), var(--primary));
}
