/* --- Educational Section Layout (moved from inline in ai-annotation.html) --- */
.educational-section {
    width: 100%;
    background-color: #fff;
    margin-top: 4rem;
    margin-bottom: 0;
    min-height: 60vh;
    padding: 0.3rem 0.25rem 2.5rem 0.25rem;
    box-sizing: border-box;
}
.educational-section .section-content {
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}
.educational-section .two-column-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}
.educational-section .text-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 95vw;
    max-width: 700px;
    margin: 0 auto 2rem auto;
    box-sizing: border-box;
    text-align: left;
}
.educational-section .section-headline {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2D2D62;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}
.educational-section .paragraph-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}
.educational-section .paragraph {
    font-size: 1.125rem;
    color: #4A4A4A;
    line-height: 1.7;
    text-align: left;
    width: 100%;
}
.educational-section .closing-line {
    padding-top: 0.5rem;
}
.educational-section .emphasis-text {
    font-size: 1rem;
    font-style: italic;
    color: #FFD700;
    line-height: 1.6;
}
.educational-section .visual-column {
    width: 95vw;
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}
.educational-section .image-wrapper {
    width: 100%;
    max-width: 700px;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 0;
}
.educational-section .section-image {
    width: 100%;
    height: auto;
    border-radius: 0.75rem;
    display: block;
}
@media (min-width: 768px) {
    .educational-section {
        padding: 0.3rem 0.75rem 2.5rem 0.75rem;
    }
    .educational-section .section-headline {
        font-size: 3rem;
    }
}
@media (min-width: 1024px) {
    .educational-section {
        padding: 0.3rem 2rem 2.5rem 2rem;
    }
    .educational-section .two-column-layout {
        flex-direction: row;
        align-items: flex-start;
        gap: 2rem;
    }
    .educational-section .text-column {
        width: 50%;
        max-width: 600px;
        margin: 0;
    }
    .educational-section .visual-column {
        width: 50%;
        max-width: 600px;
        margin: 0;
    }
}
@media (max-width: 700px) {
    .educational-section {
        margin-top: 2rem;
        padding: 0.3rem 0.25rem 1.5rem 0.25rem;
    }
    .educational-section .section-headline {
        font-size: 2rem;
    }
    .educational-section .text-column,
    .educational-section .visual-column {
        width: 100vw;
        max-width: 100vw;
        padding-left: 2vw;
        padding-right: 2vw;
    }
}
/* FINAL FIX: Prevent overlap by overriding negative margin and forcing persistent gap */
@media (max-width: 1200px) {
    .educational-section {
        margin-top: 48px !important;
    }
    .educational-section .section-content {
        margin-top: 0 !important;
    }
}
@media (max-width: 900px) {
    .educational-section {
        margin-top: 40px !important;
    }
    .educational-section .section-content {
        margin-top: 0 !important;
    }
}
@media (max-width: 700px) {
    .educational-section {
        margin-top: 32px !important;
    }
    .educational-section .section-content {
        margin-top: 0 !important;
    }
}
@media (max-width: 600px) {
    .educational-section {
        margin-top: 28px !important;
    }
    .educational-section .section-content {
        margin-top: 0 !important;
    }
}
/* CRITICAL: Guarantee persistent gap between CTA and Human-in-the-Loop section, just like hero/carousel fix */
@media (max-width: 1200px) {
    .modern-services-cta + .section-separator + .educational-section,
    .modern-services-cta + .educational-section {
        margin-top: 48px !important;
    }
}
@media (max-width: 900px) {
    .modern-services-cta + .section-separator + .educational-section,
    .modern-services-cta + .educational-section {
        margin-top: 40px !important;
    }
}
@media (max-width: 700px) {
    .modern-services-cta + .section-separator + .educational-section,
    .modern-services-cta + .educational-section {
        margin-top: 32px !important;
    }
}
@media (max-width: 600px) {
    .modern-services-cta + .section-separator + .educational-section,
    .modern-services-cta + .educational-section {
        margin-top: 28px !important;
    }
}
/* CRITICAL: Persistent gap above Human-in-the-Loop section to prevent overlap on mobile/tablet */
@media (max-width: 1200px) {
    .section-separator + .educational-section {
        margin-top: 48px !important;
    }
}
@media (max-width: 900px) {
    .section-separator + .educational-section {
        margin-top: 40px !important;
    }
}
@media (max-width: 700px) {
    .section-separator + .educational-section {
        margin-top: 32px !important;
    }
}
@media (max-width: 600px) {
    .section-separator + .educational-section {
        margin-top: 28px !important;
    }
}
/* CRITICAL: Persistent gap below CTA to prevent overlap with next section on mobile/tablet */
@media (max-width: 1200px) {
    .modern-services-cta {
        margin-bottom: 48px !important;
    }
}
@media (max-width: 900px) {
    .modern-services-cta {
        margin-bottom: 40px !important;
    }
}
@media (max-width: 700px) {
    .modern-services-cta {
        margin-bottom: 32px !important;
    }
}
@media (max-width: 600px) {
    .modern-services-cta {
        margin-bottom: 28px !important;
    }
}
/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* Brand Colors */
:root {
    --navy: #3B3D6B;
    --navy-dark: #2B2D5B;
    --gold: #D4C054;
    --gold-light: #E4D064;
    --light-yellow: #FEF9E7;
}

/* Hero Section */
.hero-section {
    min-height: 0;
    background: none !important;
    position: relative;
    overflow: visible;
}

/* Background Elements */
.gradient-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.decorative-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.1;
}

.blob-1 {
    top: 80px;
    left: 40px;
    width: 288px;
    height: 288px;
    background-color: var(--navy);
}

.blob-2 {
    bottom: 80px;
    right: 40px;
    width: 384px;
    height: 384px;
    background-color: var(--gold);
}

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 80px 24px;
    position: relative;
    z-index: 10;
}

/* Grid Layout */
.grid-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

/* Left Content */
.content-left {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.badge {
    display: inline-block;
    padding: 8px 16px;
    background-color: var(--light-yellow);
    color: var(--navy);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    align-self: flex-start;
}

.main-title {
    font-size: 3.5rem;
    font-weight: bold;
    line-height: 1.2;
    color: var(--navy);
    margin: 0;
}

.gradient-text {
    background: linear-gradient(to right, var(--navy), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.description {
    font-size: 1.125rem;
    color: #6b7280;
    line-height: 1.8;
    margin: 0;
}

/* Buttons */
.button-group {
    display: flex;
    gap: 16px;
}

.btn-primary {
    padding: 16px 32px;
    background: linear-gradient(to right, var(--navy), #4B4D7B);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: box-shadow 0.3s;
}

.btn-primary:hover {
    box-shadow: 0 10px 40px rgba(59, 61, 107, 0.3);
}

.btn-secondary {
    padding: 16px 32px;
    background: white;
    color: var(--navy);
    border: 2px solid var(--navy);
    border-radius: 12px;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: border-color 0.3s;
}

.btn-secondary:hover {
    border-color: #6b7280;
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding-top: 32px;
    border-top: 1px solid #e5e7eb;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
}

.stat-value.navy {
    color: var(--navy);
}

.stat-value.gold {
    color: var(--gold);
}

.stat-label {
    font-size: 0.875rem;
    color: #6b7280;
}

/* Video Section */
.video-wrapper {
    position: relative;
}

.video-glow {
    position: absolute;
    inset: -16px;
    background: linear-gradient(to right, var(--navy), var(--gold));
    border-radius: 24px;
    filter: blur(40px);
    opacity: 0.2;
    pointer-events: none;
}

.video-container {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    background: linear-gradient(to bottom right, var(--navy), var(--navy-dark));
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-caption {
    position: absolute;
    bottom: 24px;
    left: 24px;
    right: 24px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    color: white;
    padding: 16px;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 500;
    z-index: 5;
}

/* Quick Links Buttons */
.quicklinks-grid .quicklink-btn:hover {
    color: #ffd700 !important;
}

/* Responsive Design */
@media (max-width: 1024px) {

    .grid-two-col {
        display: flex;
        flex-direction: column-reverse;
        gap: 48px;
    }

    .main-title {
        font-size: 2.5rem;
    }

    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 640px) {
    .container {
        padding: 48px 16px;
    }

    .main-title {
    .ai-annotation-hero .content-left {
        margin-top: 32px !important;
    }
        font-size: 2rem;
    }

    .description {
        font-size: 1rem;
    }

    .button-group {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .video-caption {
        font-size: 0.75rem;
        padding: 12px;
        bottom: 12px;
        left: 12px;
        right: 12px;
    }
}

/* Responsive grid for AI Data Services section */
.modern-services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 32px;
    justify-content: center;
    align-items: stretch;
    margin-bottom: 48px;
    margin-top: 0 !important;
}

@media (max-width: 1200px) and (min-width: 601px) {
    .modern-services-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 600px) {
    .modern-services-grid {
        grid-template-columns: 1fr !important;
    }
}

    .ai-annotation-hero .grid-two-col > .content-left {
        margin-top: 48px !important;
        position: static !important;
        float: none !important;
        z-index: 1 !important;
        clear: both !important;
    }
.modern-services-grid {
@media (min-width: 1025px) {
    .ai-annotation-hero .grid-two-col > .content-left {
        margin-top: 0 !important;
    }
}
  margin-top: 0 !important;
}
.modern-services-cta {
  margin-top: 18px !important;
}
.modern-services-desc {
  margin-bottom: 0 !important;
}
