/* 1. Ensure the section is visible but the elements inside are prepped */
.split-section {
    padding: 100px 0 !important;
    background: linear-gradient(135deg, #f0f4f8 0%, #e8edf5 100%) !important;
    overflow: hidden;
    display: block !important;
    border-bottom: 2px solid #1a2a6c;
    position: relative;
}

/* Decorative Elements */
.split-section::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(26, 42, 108, 0.03) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.split-section::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -5%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(44, 62, 143, 0.03) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* Section Badge */
.split-badge {
    display: inline-block;
    background: rgba(26, 42, 108, 0.1);
    color: #1a2a6c;
    padding: 8px 25px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
    border: 1px solid rgba(26, 42, 108, 0.1);
}

/* 2. Initial Hidden States */
.reveal-left,
.reveal-right,
.reveal-fade-up {
    opacity: 0;
    transition: all 2.5s cubic-bezier(0.2, 1, 0.3, 1) !important;
    will-change: transform, opacity;
}

.reveal-left {
    transform: translateX(-120px);
}

.reveal-right {
    transform: translateX(120px);
}

.reveal-fade-up {
    transform: translateY(50px);
}

/* 3. The "Triggered" state - If this class is added, items MUST show */
.is-visible {
    opacity: 1 !important;
    transform: translate(0, 0) !important;
}

/* 4. Layout Fixes */
.split-img-tall {
    border-radius: 20px;
    width: 100%;
    height: 700px;
    object-fit: cover;
    box-shadow: 0 15px 40px rgba(26, 42, 108, 0.2);
    border: 2px solid rgba(26, 42, 108, 0.1);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.split-img-tall:hover {
    transform: scale(1.02);
    box-shadow: 0 25px 60px rgba(26, 42, 108, 0.3);
}

.split-img-small {
    border-radius: 15px;
    width: 100%;
    height: 300px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(26, 42, 108, 0.15);
    border: 2px solid rgba(26, 42, 108, 0.08);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.split-img-small:hover {
    transform: scale(1.03);
    box-shadow: 0 20px 50px rgba(26, 42, 108, 0.25);
}

.split-title {
    font-family: 'Georgia', serif;
    color: #1a2a6c;
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.split-title span {
    color: #2c3e8f;
    position: relative;
}

.split-title span::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, #1a2a6c, #3b5998);
    border-radius: 10px;
    opacity: 0.3;
}

.split-subtitle {
    color: #4a4a5a;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 25px;
}

/* Split Description */
.split-description {
    color: #4a4a5a;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

/* Feature List */
.split-features {
    list-style: none;
    padding: 0;
    margin: 25px 0;
}

.split-features li {
    padding: 8px 0;
    color: #4a4a5a;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(26, 42, 108, 0.05);
    transition: all 0.3s ease;
}

.split-features li:hover {
    padding-left: 10px;
    color: #1a2a6c;
}

.split-features li:last-child {
    border-bottom: none;
}

.split-features li i {
    color: #1a2a6c;
    font-size: 18px;
    width: 24px;
    text-align: center;
}

/* CTA Button */
.split-cta {
    display: inline-block;
    padding: 14px 40px;
    background: linear-gradient(135deg, #1a2a6c 0%, #2c3e8f 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    box-shadow: 0 10px 30px rgba(26, 42, 108, 0.25);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 10px;
}

.split-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 50px rgba(26, 42, 108, 0.35);
    background: linear-gradient(135deg, #2c3e8f 0%, #3b5998 100%);
    color: white;
}

.split-cta i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.split-cta:hover i {
    transform: translateX(5px);
}

/* Image Container with Overlay */
.split-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
}

.split-image-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 42, 108, 0.05), rgba(44, 62, 143, 0.02));
    z-index: 1;
    pointer-events: none;
    border-radius: 20px;
}

/* Image Badge */
.split-image-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, #1a2a6c, #2c3e8f);
    color: white;
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    z-index: 2;
    box-shadow: 0 10px 30px rgba(26, 42, 108, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
}

.split-image-badge i {
    font-size: 20px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .split-section {
        padding: 80px 0 !important;
    }

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

    .split-img-tall {
        height: 550px;
    }

    .split-img-small {
        height: 250px;
    }
}

@media (max-width: 768px) {
    .split-section {
        padding: 60px 0 !important;
    }

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

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

    .split-description {
        font-size: 0.95rem;
    }

    .split-img-tall {
        height: 400px;
        margin-bottom: 20px;
    }

    .split-img-small {
        height: 200px;
    }

    .split-features li {
        font-size: 0.9rem;
    }

    .split-cta {
        padding: 12px 30px;
        font-size: 0.9rem;
    }

    .split-image-badge {
        padding: 8px 15px;
        font-size: 12px;
        bottom: 15px;
        right: 15px;
    }

    .split-badge {
        font-size: 11px;
        padding: 6px 18px;
    }
}

@media (max-width: 576px) {
    .split-section {
        padding: 40px 0 !important;
    }

    .split-title {
        font-size: 1.6rem;
    }

    .split-subtitle {
        font-size: 0.9rem;
    }

    .split-description {
        font-size: 0.85rem;
    }

    .split-img-tall {
        height: 300px;
    }

    .split-img-small {
        height: 180px;
    }

    .split-features li {
        font-size: 0.85rem;
        padding: 6px 0;
    }

    .split-features li i {
        font-size: 16px;
        width: 20px;
    }

    .split-cta {
        padding: 10px 25px;
        font-size: 0.8rem;
        width: 100%;
        text-align: center;
    }

    .split-image-badge {
        padding: 6px 12px;
        font-size: 10px;
        bottom: 10px;
        right: 10px;
        gap: 5px;
    }

    .split-image-badge i {
        font-size: 14px;
    }
}

/* Stagger Animation Delays */
.reveal-left {
    transition-delay: 0.1s;
}

.reveal-right {
    transition-delay: 0.2s;
}

.reveal-fade-up {
    transition-delay: 0.3s;
}

/* Deep Blue Theme Variables */
:root {
    --split-deep-blue: #1a2a6c;
    --split-deep-blue-light: #2c3e8f;
    --split-deep-blue-lighter: #3b5998;
    --split-deep-blue-dark: #0d1a4a;
    --split-bg: #f0f4f8;
}

/* Alternative Layout - Image Left */
.split-image-left .split-img-tall {
    box-shadow: -15px 15px 40px rgba(26, 42, 108, 0.2);
}

.split-image-left .split-img-small {
    box-shadow: -10px 10px 30px rgba(26, 42, 108, 0.15);
}

/* Hover Animation for Images */
.split-img-tall,
.split-img-small {
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275),
        box-shadow 0.6s ease;
}

/* Divider Line */
.split-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, #1a2a6c, #3b5998);
    border-radius: 10px;
    margin: 15px 0 25px 0;
}

/* Number Counter in Split Section */
.split-number {
    font-size: 3rem;
    font-weight: 900;
    color: rgba(26, 42, 108, 0.05);
    position: absolute;
    top: -20px;
    right: 20px;
    z-index: 0;
    font-family: 'Georgia', serif;
}

/* Dark Mode Support - Optional */
@media (prefers-color-scheme: dark) {
    .split-section {
        background: linear-gradient(135deg, #0d1a4a, #1a2a6c) !important;
    }

    .split-title {
        color: #e8edf5;
    }

    .split-title span {
        color: #3b5998;
    }

    .split-subtitle {
        color: #a0a0b0;
    }

    .split-description {
        color: #a0a0b0;
    }

    .split-features li {
        color: #a0a0b0;
        border-bottom-color: rgba(255, 255, 255, 0.05);
    }

    .split-features li:hover {
        color: #e8edf5;
    }

    .split-features li i {
        color: #3b5998;
    }

    .split-badge {
        background: rgba(44, 62, 143, 0.2);
        color: #e8edf5;
        border-color: rgba(44, 62, 143, 0.2);
    }

    .split-divider {
        background: linear-gradient(to right, #2c3e8f, #3b5998);
    }
}