/* =========================================================================
   CODEORBITZ — HERO SECTION (FIGMA DESIGN)
   ========================================================================= */

.co-hero-section {
    position: relative;
    width: 100%;
    box-sizing: border-box;
    background: transparent;
    padding: 35px 0 45px 0;
}

/* ─────────────────────────────────────────────────────────────────────────
   1. FULL-WIDTH SINGLE IMAGE BANNER
   ───────────────────────────────────────────────────────────────────────── */
.co-hero-fullwidth-banner {
    width: 100%;
}

.co-hero-fw-wrapper,
.co-hero-fw-link {
    display: block;
    width: 100%;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
    background: #f8fafc;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.co-hero-fw-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 50px rgba(15, 23, 42, 0.12);
}

.co-hero-fw-img {
    width: 100%;
    height: auto;
    max-height: 560px;
    display: block;
    object-fit: cover;
}

/* ─────────────────────────────────────────────────────────────────────────
   2. TWO-COLUMN LAYOUT (LEFT CONTENT + RIGHT IMAGES)
   ───────────────────────────────────────────────────────────────────────── */
.co-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.18fr);
    gap: 40px 48px;
    align-items: center;
}

/* ── Left Content Section ── */
.co-hero-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 0;
}

.co-hero-eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2.2px;
    color: #94a3b8;
    text-transform: uppercase;
    margin-bottom: 18px;
    font-family: var(--serif, 'Plus Jakarta Sans', sans-serif);
}

.co-hero-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(38px, 4.4vw, 62px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.8px;
    color: #111827;
    margin: 0 0 22px 0;
}

.co-hero-title span,
.co-hero-script {
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-weight: 700;
    color: #5ba6dc;
    display: inline-block;
}

.co-hero-desc {
    font-family: var(--serif, 'Plus Jakarta Sans', sans-serif);
    font-size: 16px;
    line-height: 1.72;
    color: #4b5563;
    max-width: 485px;
    margin: 0 0 32px 0;
}

/* Action Buttons */
.co-hero-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 46px;
}

.co-hero-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    background: #5ba6dc;
    color: #ffffff !important;
    font-family: var(--serif, 'Plus Jakarta Sans', sans-serif);
    font-size: 15px;
    font-weight: 600;
    border-radius: 9999px;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(91, 166, 220, 0.35);
    transition: all 0.25s ease;
}

.co-hero-btn-primary:hover {
    background: #4696cf;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(91, 166, 220, 0.45);
    color: #ffffff !important;
}

.co-hero-btn-primary svg {
    transition: transform 0.25s ease;
}

.co-hero-btn-primary:hover svg {
    transform: translateX(3px);
}

.co-hero-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 30px;
    background: transparent;
    color: #1e293b !important;
    border: 1.6px solid #1e293b;
    font-family: var(--serif, 'Plus Jakarta Sans', sans-serif);
    font-size: 15px;
    font-weight: 600;
    border-radius: 9999px;
    text-decoration: none;
    transition: all 0.25s ease;
}

.co-hero-btn-secondary:hover {
    background: #1e293b;
    color: #ffffff !important;
    transform: translateY(-2px);
}

/* Statistics Row */
.co-hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.co-hero-stat-item {
    display: flex;
    flex-direction: column;
}

.co-stat-val {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 30px;
    font-weight: 800;
    color: #111827;
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.co-stat-lbl {
    font-family: var(--serif, 'Plus Jakarta Sans', sans-serif);
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
    margin-top: 4px;
}

.co-stat-divider {
    width: 1px;
    height: 38px;
    background: #e2e8f0;
}

.co-hero-stat-with-icon {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 14px;
}

.co-stat-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.co-stat-custom-icon {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.co-stat-circles-icon {
    display: block;
}

.co-stat-text-wrap {
    display: flex;
    flex-direction: column;
}

/* ── Right Content Section ── */
.co-hero-right {
    position: relative;
    width: 100%;
}

/* Option 2: Single Image */
.co-hero-right-single {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.co-hero-single-wrapper,
.co-hero-single-link {
    display: block;
    width: 100%;
    max-width: 580px;
    border-radius: 36px;
    overflow: hidden;
    box-shadow: 0 16px 42px rgba(15, 23, 42, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    background: #f8fafc;
}

.co-hero-single-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 50px rgba(15, 23, 42, 0.12);
}

.co-hero-single-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* ─────────────────────────────────────────────────────────────────────────
   Option 1: Three Images Composition (Figma Design)
   ───────────────────────────────────────────────────────────────────────── */
.co-hero-composition {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.co-hero-comp-inner {
    position: relative;
    width: 100%;
    max-width: 580px;
    height: 485px;
    margin: 0 auto;
}

/* Common Card Box */
.co-card-box {
    border-radius: 36px;
    overflow: hidden;
    width: 100%;
    height: 100%;
    position: relative;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}

.co-card-box-blue {
    background-color: #cbe3f5;
}

.co-card-box-gold {
    background-color: #c98e29;
}

.co-card-box-sage {
    background-color: #82a986;
}

.co-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.4s ease;
}

.co-card-box:hover .co-card-img {
    transform: scale(1.03);
}

/* Card 1: Top Left */
.co-card-wrap-1 {
    position: absolute;
    top: 20px;
    left: 45px;
    width: 250px;
    height: 215px;
    z-index: 2;
}

/* Badge: Code Window */
.co-badge-code {
    position: absolute;
    top: 28px;
    left: -48px;
    background: #ffffff;
    border-radius: 16px;
    padding: 12px 16px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.12), 0 2px 8px rgba(15, 23, 42, 0.04);
    z-index: 5;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.co-code-dots {
    display: flex;
    gap: 5px;
    margin-bottom: 8px;
}

.co-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    display: inline-block;
}

.co-dot-red {
    background: #ef4444;
}

.co-dot-yellow {
    background: #f59e0b;
}

.co-dot-green {
    background: #10b981;
}

.co-code-body {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.45;
}

.co-code-line.co-code-muted {
    color: #94a3b8;
}

.co-code-line.co-code-blue {
    color: #3b82f6;
}

.co-code-line.co-code-purple {
    color: #8b5cf6;
}

.co-code-cursor {
    color: #64748b;
    font-weight: 700;
    animation: coBlink 1s infinite;
    display: inline-block;
}

/* Badge: </> Circle */
.co-badge-circle-code {
    position: absolute;
    top: -16px;
    right: -16px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #78b8e6;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--serif, 'Plus Jakarta Sans', sans-serif);
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 8px 20px rgba(120, 184, 230, 0.45);
    z-index: 5;
}

/* Star Deco (Left) */
.co-star-left {
    position: absolute;
    bottom: -18px;
    left: -32px;
    z-index: 5;
    animation: coFloat 4s ease-in-out infinite;
}

/* Card 2: Top Right */
.co-card-wrap-2 {
    position: absolute;
    top: 50px;
    right: 5px;
    width: 220px;
    height: 215px;
    z-index: 1;
}

/* Badge: Live Mentorship Pill */
.co-badge-mentorship {
    position: absolute;
    top: 110px;
    right: -28px;
    background: #ffffff;
    border-radius: 9999px;
    padding: 7px 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.14);
    z-index: 5;
}

.co-mentor-text {
    font-family: var(--serif, 'Plus Jakarta Sans', sans-serif);
    font-size: 12px;
    font-weight: 700;
    color: #111827;
    white-space: nowrap;
}

/* Purple Dot */
.co-deco-dot-purple {
    position: absolute;
    top: -18px;
    right: 32px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #bda2e8;
    z-index: 5;
}

/* Card 3: Bottom */
.co-card-wrap-3 {
    position: absolute;
    bottom: 25px;
    left: 45px;
    width: 275px;
    height: 185px;
    z-index: 3;
}

/* Badge: Features List */
.co-badge-features {
    position: absolute;
    top: 15px;
    left: -48px;
    background: #ffffff;
    border-radius: 16px;
    padding: 12px 14px;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.co-feat-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.co-feat-ico {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.co-feat-ico-purple {
    background: #ede9fe;
    color: #7c3aed;
}

.co-feat-ico-green {
    background: #dcfce7;
    color: #15803d;
}

.co-feat-ico-orange {
    background: #ffedd5;
    color: #ea580c;
}

.co-feat-label {
    font-family: var(--serif, 'Plus Jakarta Sans', sans-serif);
    font-size: 11px;
    font-weight: 600;
    color: #334155;
    white-space: nowrap;
}

/* Badge: Learn Build Grow Lavender Box */
.co-badge-grow {
    position: absolute;
    top: 15px;
    right: -110px;
    background: #cbb5e8;
    border-radius: 20px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 12px 28px rgba(168, 85, 247, 0.25);
    z-index: 5;
}

.co-grow-cap {
    display: flex;
    align-items: center;
    justify-content: center;
}

.co-grow-words {
    display: flex;
    flex-direction: column;
    color: #ffffff;
    font-family: var(--serif, 'Plus Jakarta Sans', sans-serif);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
}

/* Bottom Star & Blue Dot */
.co-star-bottom {
    position: absolute;
    bottom: -18px;
    right: -70px;
    z-index: 5;
    animation: coFloat 4s ease-in-out infinite reverse;
}

.co-deco-dot-blue {
    position: absolute;
    bottom: -32px;
    right: -125px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #92c8f0;
    z-index: 5;
}

/* Animations */
@keyframes coBlink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

@keyframes coFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* ─────────────────────────────────────────────────────────────────────────
   Responsive Breakpoints
   ───────────────────────────────────────────────────────────────────────── */
@media (max-width: 1199px) {
    .co-hero-comp-inner {
        transform: scale(0.92);
        transform-origin: center center;
    }
}

@media (max-width: 991px) {
    .co-hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .co-hero-left {
        align-items: center;
        text-align: center;
        max-width: 620px;
        margin: 0 auto;
    }

    .co-hero-desc {
        margin-left: auto;
        margin-right: auto;
    }

    .co-hero-actions {
        justify-content: center;
    }

    .co-hero-stats {
        justify-content: center;
    }

    .co-hero-composition {
        margin-top: 15px;
    }

    .co-hero-comp-inner {
        transform: scale(0.85);
        transform-origin: top center;
        margin-bottom: -50px;
    }
}

@media (max-width: 640px) {
    .co-hero-section {
        padding: 25px 0 35px 0;
    }

    .co-hero-title {
        font-size: 34px;
    }

    .co-hero-desc {
        font-size: 14px;
    }

    .co-hero-comp-inner {
        transform: scale(0.70);
        transform-origin: top center;
        margin-bottom: -140px;
    }
}

@media (max-width: 480px) {
    .co-hero-title {
        font-size: 30px;
    }

    .co-hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }

    .co-hero-btn-primary,
    .co-hero-btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .co-hero-stats {
        gap: 16px;
    }

    .co-stat-divider {
        display: none;
    }

    .co-hero-comp-inner {
        transform: scale(0.55);
        transform-origin: top center;
        margin-bottom: -215px;
    }
}
