/* FlexCourse public homepage */
.fc-home-hero {
    position: relative;
    overflow: hidden;
    padding: 5.5rem 0 5rem;
    background:
        radial-gradient(circle at 82% 18%, rgba(96, 165, 250, .2), transparent 28%),
        radial-gradient(circle at 12% 82%, rgba(14, 165, 233, .1), transparent 28%),
        linear-gradient(150deg, #f8fbff 0%, #eef5ff 52%, #f8fafc 100%);
}

.fc-home-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.fc-home-orb-one {
    width: 320px;
    height: 320px;
    top: -180px;
    left: -160px;
    background: rgba(37, 99, 235, .08);
}

.fc-home-orb-two {
    width: 180px;
    height: 180px;
    right: -70px;
    bottom: -70px;
    background: rgba(14, 165, 233, .1);
}

.fc-home-eyebrow,
.fc-home-section-kicker {
    color: var(--fc-primary);
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.fc-home-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .45rem .75rem .45rem .45rem;
    border: 1px solid #dbeafe;
    border-radius: 999px;
    background: rgba(255, 255, 255, .75);
    box-shadow: var(--fc-shadow-xs);
}

.fc-home-eyebrow span {
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    color: #fff;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--fc-primary), var(--fc-accent));
}

.fc-home-title {
    max-width: 660px;
    font-size: clamp(2.65rem, 5.4vw, 4.7rem);
    font-weight: 800;
    letter-spacing: -.055em;
    line-height: 1.03;
}

.fc-home-title span {
    display: block;
    color: var(--fc-primary);
}

.fc-home-lead {
    max-width: 620px;
    color: var(--fc-text-2);
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    line-height: 1.75;
}

.fc-home-trust {
    color: var(--fc-muted);
    font-size: .82rem;
    font-weight: 600;
}

.fc-home-trust i {
    margin-right: .3rem;
    color: var(--fc-success);
}

.fc-home-showcase {
    position: relative;
    max-width: 540px;
    margin: 1rem auto;
    padding: 2rem 3.25rem;
}

.fc-home-showcase-glow {
    position: absolute;
    inset: 10% 5%;
    border-radius: 50%;
    background: rgba(37, 99, 235, .2);
    filter: blur(60px);
}

.fc-home-course-preview {
    position: relative;
    z-index: 2;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .88);
    border-radius: 1.35rem;
    background: #fff;
    box-shadow: 0 28px 65px rgba(30, 64, 175, .2);
    transform: rotate(1.2deg);
}

.fc-home-course-preview img {
    width: 100%;
    height: 235px;
    object-fit: cover;
}

.fc-home-preview-badge {
    position: absolute;
    left: 1rem;
    bottom: 1rem;
    display: inline-flex;
    gap: .35rem;
    padding: .4rem .7rem;
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    border-radius: 999px;
    background: rgba(15, 23, 42, .78);
    backdrop-filter: blur(8px);
}

.fc-home-play {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: #fff;
    border-radius: 50%;
    background: var(--fc-primary);
    box-shadow: 0 8px 20px rgba(37, 99, 235, .28);
}

.fc-home-play:hover {
    color: #fff;
    background: var(--fc-primary-dark);
    transform: translateY(-2px);
}

.fc-home-floating {
    position: absolute;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: .65rem;
    min-width: 185px;
    padding: .75rem;
    border: 1px solid rgba(255, 255, 255, .9);
    border-radius: .9rem;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 14px 35px rgba(15, 23, 42, .14);
    backdrop-filter: blur(10px);
}

.fc-home-floating strong,
.fc-home-floating small {
    display: block;
}

.fc-home-floating strong {
    font-size: .75rem;
}

.fc-home-floating small {
    color: var(--fc-muted);
    font-size: .62rem;
}

.fc-home-floating-icon {
    width: 36px;
    height: 36px;
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 10px;
}

.fc-home-floating-icon.is-blue {
    color: var(--fc-primary);
    background: var(--fc-primary-soft);
}

.fc-home-floating-icon.is-gold {
    color: #b45309;
    background: #fef3c7;
}

.fc-home-floating-progress { top: 0; left: -5px; }
.fc-home-floating-certificate { right: -10px; bottom: 2.5rem; }

.fc-home-showcase-empty {
    min-height: 390px;
    display: grid;
    place-content: center;
    text-align: center;
    padding: 3rem;
    border: 1px solid var(--fc-border);
    border-radius: 1.5rem;
    background: rgba(255, 255, 255, .82);
    box-shadow: var(--fc-shadow-lg);
}

.fc-home-showcase-empty > i {
    margin-bottom: 1rem;
    color: var(--fc-primary);
    font-size: 4rem;
}

.fc-home-stats {
    position: relative;
    z-index: 3;
    margin-top: -3rem;
    background: transparent;
}

.fc-home-stats-panel {
    position: relative;
    overflow: hidden;
    padding: .65rem;
    border: 1px solid rgba(255, 255, 255, .95);
    border-radius: 1.4rem;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(14px);
    box-shadow: 0 26px 60px rgba(15, 23, 42, .11);
}

.fc-home-stats-panel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 12%;
    right: 12%;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, var(--fc-primary), var(--fc-accent), transparent);
    opacity: .4;
}

.fc-home-stat {
    position: relative;
    min-height: 108px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.25rem 1.35rem;
}

.fc-home-stats-panel [class*="col-"]:not(:last-child) .fc-home-stat::after {
    content: "";
    position: absolute;
    right: 0;
    top: 24%;
    bottom: 24%;
    width: 1px;
    background: linear-gradient(180deg, transparent, var(--fc-border), transparent);
}

.fc-home-stat-icon {
    width: 54px;
    height: 54px;
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    color: #fff;
    border-radius: 17px;
    font-size: 1.3rem;
}

.fc-home-stat-icon.is-blue {
    background: linear-gradient(135deg, #1d4ed8, #3b82f6);
    box-shadow: 0 10px 22px rgba(37, 99, 235, .3);
}

.fc-home-stat-icon.is-sky {
    background: linear-gradient(135deg, #0369a1, #38bdf8);
    box-shadow: 0 10px 22px rgba(14, 165, 233, .28);
}

.fc-home-stat-icon.is-violet {
    background: linear-gradient(135deg, #6d28d9, #a78bfa);
    box-shadow: 0 10px 22px rgba(124, 58, 237, .28);
}

.fc-home-stat-icon.is-gold {
    background: linear-gradient(135deg, #b45309, #fbbf24);
    box-shadow: 0 10px 22px rgba(217, 119, 6, .28);
}

.fc-home-stat strong,
.fc-home-stat > div > span { display: block; }

.fc-home-stat strong {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -.045em;
    line-height: 1.15;
}

.fc-home-stat strong em {
    color: var(--fc-primary);
    font-style: normal;
}

.fc-home-stat > div > span {
    margin-top: .1rem;
    color: var(--fc-muted);
    font-size: .74rem;
    font-weight: 600;
    letter-spacing: .02em;
}

.fc-home-section {
    padding: 5.5rem 0;
    background: #fff;
}

.fc-home-section-soft { background: var(--fc-bg); }

.fc-home-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2.25rem;
}

.fc-home-section-head h2,
.fc-home-centered-head h2,
.fc-home-benefit h2,
.fc-home-cta h2 {
    margin: .45rem 0 .55rem;
    font-size: clamp(1.8rem, 3vw, 2.65rem);
    font-weight: 800;
    letter-spacing: -.04em;
}

.fc-home-section-head p,
.fc-home-centered-head p {
    margin: 0;
    color: var(--fc-muted);
}

.fc-home-text-link {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    flex: 0 0 auto;
    font-size: .85rem;
    font-weight: 700;
}

.fc-home-text-link i { transition: transform .15s ease; }
.fc-home-text-link:hover i { transform: translateX(3px); }

.fc-home-category {
    position: relative;
    min-height: 205px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 1.4rem 1.25rem 1.2rem;
    color: var(--fc-text);
    border: 1px solid var(--fc-border);
    border-radius: 1.1rem;
    background: linear-gradient(168deg, #fff 55%, #f6faff 100%);
    box-shadow: var(--fc-shadow-xs);
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.fc-home-category:hover {
    color: var(--fc-text);
    border-color: #bfdbfe;
    box-shadow: 0 20px 45px rgba(30, 64, 175, .13);
    transform: translateY(-6px);
}

.fc-home-category-glow {
    position: absolute;
    top: -48px;
    right: -48px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37, 99, 235, .14), transparent 68%);
    opacity: 0;
    transform: scale(.7);
    transition: opacity .3s ease, transform .3s ease;
    pointer-events: none;
}

.fc-home-category:hover .fc-home-category-glow {
    opacity: 1;
    transform: scale(1);
}

.fc-home-category-icon {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    margin-bottom: 1.1rem;
    color: var(--fc-primary);
    border: 1px solid #dbeafe;
    border-radius: 15px;
    background: var(--fc-primary-soft);
    font-size: 1.25rem;
    transition: background .25s ease, color .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.fc-home-category:hover .fc-home-category-icon {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, var(--fc-primary), var(--fc-accent));
    box-shadow: 0 10px 22px rgba(37, 99, 235, .3);
}

.fc-home-category strong { margin-bottom: .2rem; font-size: .92rem; letter-spacing: -.01em; }
.fc-home-category small { color: var(--fc-muted); font-size: .73rem; }

.fc-home-category-cta {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding-top: .9rem;
    color: var(--fc-primary);
    font-size: .74rem;
    font-weight: 700;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .25s ease, transform .25s ease;
}

.fc-home-category-cta i { transition: transform .2s ease; }

.fc-home-category:hover .fc-home-category-cta {
    opacity: 1;
    transform: none;
}

.fc-home-category:hover .fc-home-category-cta i { transform: translateX(3px); }

@media (hover: none) {
    .fc-home-category-cta {
        opacity: 1;
        transform: none;
    }
}

.fc-home-category-arrow {
    position: absolute;
    right: 1.1rem;
    top: 1.1rem;
    color: var(--fc-faint);
    transition: color .2s ease, transform .2s ease;
}

.fc-home-category:hover .fc-home-category-arrow {
    color: var(--fc-primary);
    transform: translate(2px, -2px);
}

.fc-home-course-card {
    height: 100%;
    display: block;
    overflow: hidden;
    color: var(--fc-text);
    border: 1px solid var(--fc-border);
    border-radius: var(--fc-radius-lg);
    background: #fff;
    box-shadow: var(--fc-shadow-xs);
    transition: transform .2s ease, box-shadow .2s ease;
}

.fc-home-course-card:hover {
    color: var(--fc-text);
    box-shadow: 0 16px 36px rgba(15, 23, 42, .11);
    transform: translateY(-5px);
}

.fc-home-course-image { position: relative; overflow: hidden; }

.fc-home-course-image img {
    width: 100%;
    height: 205px;
    object-fit: cover;
    transition: transform .35s ease;
}

.fc-home-course-card:hover .fc-home-course-image img { transform: scale(1.035); }

.fc-home-course-label,
.fc-home-course-level {
    position: absolute;
    top: .9rem;
    padding: .35rem .65rem;
    font-size: .68rem;
    font-weight: 700;
    border-radius: 999px;
    backdrop-filter: blur(8px);
}

.fc-home-course-label { left: .9rem; color: #fff; background: rgba(37, 99, 235, .9); }
.fc-home-course-level { right: .9rem; background: rgba(255, 255, 255, .9); }

.fc-home-course-card h3 {
    margin-bottom: .55rem;
    font-size: 1.05rem;
    font-weight: 750;
    line-height: 1.45;
}

.fc-home-course-card p {
    min-height: 42px;
    margin-bottom: .9rem;
    color: var(--fc-muted);
    font-size: .78rem;
}

.fc-home-course-meta {
    display: flex;
    gap: 1rem;
    padding-bottom: .9rem;
    color: var(--fc-muted);
    font-size: .72rem;
    border-bottom: 1px solid var(--fc-border);
}

.fc-home-course-meta i { color: var(--fc-primary); }

.fc-home-course-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: .9rem;
}

.fc-home-course-footer > strong { color: var(--fc-primary); font-size: .9rem; }

.fc-home-instructor {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: .45rem;
    overflow: hidden;
    color: var(--fc-muted);
    font-size: .7rem;
    white-space: nowrap;
}

.fc-home-instructor img {
    width: 26px;
    height: 26px;
    flex: 0 0 auto;
    border-radius: 50%;
    object-fit: cover;
}

.fc-home-centered-head {
    max-width: 670px;
    margin: 0 auto 3rem;
}

.fc-home-step {
    position: relative;
    height: 100%;
    padding: 2rem 1.7rem;
    text-align: center;
    border: 1px solid var(--fc-border);
    border-radius: var(--fc-radius-lg);
    background: #fff;
}

.fc-home-step-number {
    position: absolute;
    top: 1rem;
    right: 1.2rem;
    color: #e2e8f0;
    font-size: 1.4rem;
    font-weight: 800;
}

.fc-home-step-icon {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    margin: 0 auto 1.3rem;
    color: var(--fc-primary);
    border-radius: 18px;
    background: var(--fc-primary-soft);
    font-size: 1.65rem;
}

.fc-home-step h3 { margin-bottom: .6rem; font-size: 1.05rem; font-weight: 750; }
.fc-home-step p { margin: 0; color: var(--fc-muted); font-size: .82rem; line-height: 1.7; }

.fc-home-benefit {
    overflow: hidden;
    padding: 5.5rem 0;
    color: #fff;
    background:
        radial-gradient(circle at 90% 10%, rgba(14, 165, 233, .24), transparent 28%),
        linear-gradient(135deg, #0f2450 0%, #1e40af 60%, #2563eb 100%);
}

.fc-home-section-kicker.is-light { color: #bfdbfe; }
.fc-home-benefit h2, .fc-home-benefit h3 { color: #fff; }

.fc-home-benefit > .container > .row > div:first-child > p {
    max-width: 500px;
    margin-bottom: 1.7rem;
    color: #dbeafe;
    line-height: 1.75;
}

.fc-home-benefit-card {
    height: 100%;
    display: flex;
    gap: 1rem;
    padding: 1.3rem;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: var(--fc-radius);
    background: rgba(255, 255, 255, .09);
    backdrop-filter: blur(8px);
}

.fc-home-benefit-card > i {
    width: 42px;
    height: 42px;
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, .14);
    font-size: 1.1rem;
}

.fc-home-benefit-card h3 { margin: .05rem 0 .35rem; font-size: .88rem; font-weight: 700; }
.fc-home-benefit-card p { margin: 0; color: #bfdbfe; font-size: .72rem; line-height: 1.6; }

.fc-home-post-image {
    height: 200px;
    display: block;
    overflow: hidden;
    border-radius: var(--fc-radius);
    background: linear-gradient(135deg, #dbeafe, #eff6ff);
}

.fc-home-post-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.fc-home-post:hover .fc-home-post-image img { transform: scale(1.035); }

.fc-home-post-image > span {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: var(--fc-primary);
    font-size: 2.5rem;
}

.fc-home-post-meta {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: .65rem;
    color: var(--fc-muted);
    font-size: .7rem;
}

.fc-home-post-meta span { color: var(--fc-primary); font-weight: 700; }
.fc-home-post h3 { margin-bottom: .55rem; font-size: 1.05rem; font-weight: 750; line-height: 1.5; }
.fc-home-post h3 a { color: var(--fc-text); }
.fc-home-post p { color: var(--fc-muted); font-size: .8rem; line-height: 1.7; }

.fc-home-cta-section { padding: 1rem 0 5.5rem; background: #fff; }

.fc-home-cta {
    position: relative;
    overflow: hidden;
    padding: 4rem 2rem;
    text-align: center;
    color: #fff;
    border-radius: 1.5rem;
    background: linear-gradient(135deg, #1e3a8a, var(--fc-primary) 58%, var(--fc-accent));
    box-shadow: 0 24px 60px rgba(30, 64, 175, .24);
}

.fc-home-cta-pattern {
    position: absolute;
    inset: -90px 0;
    opacity: .2;
    background-image:
        radial-gradient(circle at 12% 25%, #fff 0 2px, transparent 3px),
        radial-gradient(circle at 88% 70%, #fff 0 2px, transparent 3px);
    background-size: 70px 70px, 90px 90px;
}

.fc-home-cta h2 { color: #fff; }
.fc-home-cta p { max-width: 640px; margin: 0 auto 1.8rem; color: #dbeafe; }

/* ---------------------------------- */
/* Animations: reveal, parallax, float */
/* ---------------------------------- */

.fc-anim [data-reveal] {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .7s cubic-bezier(.22, .61, .36, 1), transform .7s cubic-bezier(.22, .61, .36, 1);
    transition-delay: var(--reveal-delay, 0ms);
    will-change: opacity, transform;
}

.fc-anim [data-reveal].is-revealed {
    opacity: 1;
    transform: none;
}

[data-parallax] {
    will-change: transform;
}

.fc-home-orb-one,
.fc-home-orb-two {
    animation: fc-orb-pulse 9s ease-in-out infinite alternate;
}

.fc-home-orb-two { animation-delay: -4.5s; }

@keyframes fc-orb-pulse {
    from { opacity: .75; }
    to { opacity: 1; scale: 1.18; }
}

.fc-home-title span {
    background: linear-gradient(100deg, var(--fc-primary), var(--fc-accent), var(--fc-primary));
    background-size: 220% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fc-gradient-slide 6s ease-in-out infinite;
}

@keyframes fc-gradient-slide {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.fc-home-showcase { perspective: 1100px; }

.fc-home-course-preview {
    transform:
        rotate(1.2deg)
        rotateX(var(--tilt-x, 0deg))
        rotateY(var(--tilt-y, 0deg));
    transition: transform .25s ease-out;
    transform-style: preserve-3d;
}

.fc-home-floating {
    animation: fc-float-bob 5.5s ease-in-out infinite;
    transform: translate3d(var(--float-x, 0px), var(--float-y, 0px), 0);
}

.fc-home-floating-certificate { animation-delay: -2.75s; }

@keyframes fc-float-bob {
    0%, 100% { margin-top: 0; }
    50% { margin-top: -10px; }
}

.fc-home-preview-badge i {
    display: inline-block;
    animation: fc-badge-blink 2.4s ease-in-out infinite;
}

@keyframes fc-badge-blink {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.35); }
}

.fc-home-benefit { position: relative; }

.fc-home-benefit-orb {
    position: absolute;
    width: 420px;
    height: 420px;
    right: -160px;
    top: -160px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(125, 211, 252, .28), transparent 65%);
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    .fc-anim [data-reveal] {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .fc-home-orb-one,
    .fc-home-orb-two,
    .fc-home-title span,
    .fc-home-floating,
    .fc-home-preview-badge i {
        animation: none;
    }

    .fc-home-course-preview { transition: none; }
}

@media (max-width: 991.98px) {
    .fc-home-hero { padding: 4.5rem 0 4.5rem; }
    .fc-home-floating-progress { left: 0; }
    .fc-home-floating-certificate { right: 0; }
    .fc-home-stats { margin-top: -2.25rem; }

    .fc-home-stats-panel [class*="col-"]:nth-child(even) .fc-home-stat::after {
        display: none;
    }

    .fc-home-stats-panel [class*="col-"]:nth-child(-n+2) .fc-home-stat {
        border-bottom: 1px solid var(--fc-border);
    }
}

@media (max-width: 767.98px) {
    .fc-home-hero, .fc-home-section, .fc-home-benefit { padding-top: 4rem; padding-bottom: 4rem; }
    .fc-home-title { font-size: clamp(2.4rem, 12vw, 3.5rem); }
    .fc-home-section-head { align-items: flex-start; flex-direction: column; margin-bottom: 1.75rem; }
    .fc-home-showcase { padding: 1.5rem .5rem 4.5rem; }
    .fc-home-floating { min-width: 165px; }
    .fc-home-floating-progress { top: 0; left: 0; }
    .fc-home-floating-certificate { right: 0; bottom: 0; }
    .fc-home-course-preview { transform: none; }
    .fc-home-course-preview img { height: 205px; }
    .fc-home-stat { min-height: 96px; justify-content: flex-start; gap: .75rem; padding: 1rem .85rem; }
    .fc-home-stat strong { font-size: 1.3rem; }
    .fc-home-stat-icon { width: 42px; height: 42px; border-radius: 13px; font-size: 1.05rem; }
    .fc-home-cta { padding: 3rem 1.25rem; border-radius: 1.1rem; }
}

@media (max-width: 575.98px) {
    .fc-home-hero { padding-top: 3.3rem; }
    .fc-home-trust { gap: .65rem !important; flex-direction: column; }
    .fc-home-floating { padding: .6rem; }
    .fc-home-floating small { display: none; }
    .fc-home-category { min-height: 175px; padding: 1.1rem 1rem 1rem; }
}
