﻿/* ====== ISOLATED CUSTOM CSS - No Bootstrap Conflicts ====== */

/* Reset & Base - Only for .fx-* prefixed classes */
.fx-body {
    font-family: 'Inter', sans-serif;
    background-color: #f3f3f8;
    color: #171a24;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

.fx-text-accent {
    color: #6d2ab7;
}

.fx-text-muted {
    color: #4d5366;
}

.fx-bg-soft {
    background: rgba(109, 42, 183, 0.06);
}

/* Buttons */
.fx-btn-primary {
    background: linear-gradient(135deg, #6d2ab7 0%, #8d4fd6 100%);
    color: #ffffff;
    font-weight: 700;
    padding: 0.85rem 1.9rem;
    border-radius: 50px;
    transition: all 0.25s ease;
    border: none;
    display: inline-block;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 12px 24px -18px rgba(109, 42, 183, 0.9);
}

    .fx-btn-primary:hover {
        background: linear-gradient(135deg, #5a1ea8 0%, #7b3ed0 100%);
        color: #ffffff;
        transform: translateY(-2px);
        box-shadow: 0 14px 26px -18px rgba(109, 42, 183, 0.95);
        text-decoration: none;
    }

.fx-btn-outline {
    border: 2px solid rgba(255, 255, 255, 0.9);
    color: #ffffff;
    background: transparent;
    font-weight: 700;
    padding: 0.85rem 1.9rem;
    border-radius: 50px;
    transition: all 0.25s ease;
    display: inline-block;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

    .fx-btn-outline:hover {
        background: rgba(255, 255, 255, 0.08);
        color: #ffffff;
        text-decoration: none;
    }

/* Badge - custom replacement for Bootstrap badge */
.fx-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 50px;
    transition: all 0.2s ease;
}

.fx-badge-dark {
    background-color: #0a1a2b;
    color: #ffffff;
}

.fx-badge-light {
    background-color: #f1f5f9;
    color: #0a1a2b;
}

.fx-badge-accent {
    background-color: #6d2ab7;
    color: #ffffff;
}

.fx-badge-white {
    background-color: #ffffff;
    color: #0a1a2b;
}

.fx-badge-primary {
    background-color: #51237a;
    color: #ffffff;
}

/* Navbar - isolated */
.fx-navbar {
    background-color: rgba(255,255,255,0.96) !important;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.08);
    padding: 0.7rem 0;
    backdrop-filter: blur(6px);
}

    .fx-navbar .fx-nav-link {
        color: #171a24 !important;
        font-weight: 600;
        padding: 0.55rem 1rem !important;
        transition: color 0.2s ease;
        font-size: 0.96rem;
        text-decoration: none;
    }

        .fx-navbar .fx-nav-link:hover {
            color: #6d2ab7 !important;
        }

    .fx-navbar .fx-brand img {
        height: 40px;
    }

@media (max-width: 991px) {
    .fx-navbar .fx-brand img {
        height: 32px;
    }

    .fx-navbar .fx-nav-link {
        padding: 0.4rem 0.8rem !important;
        font-size: 0.9rem;
    }
}

/* Hero */
.fx-hero {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 70px 0;
    color: white;
    z-index:0;
}

@media (max-width: 768px) {
    .fx-hero {
        padding: 100px 0 50px 0;
        min-height: 90vh;
    }
}

@media (max-width: 576px) {
    .fx-hero {
        padding: 80px 0 40px 0;
        min-height: 85vh;
    }
}

.fx-hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
}

.fx-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(132deg, rgba(27, 13, 71, 0.88) 0%, rgba(55, 30, 111, 0.78) 38%, rgba(109, 42, 183, 0.74) 100%);
    z-index: 1;
}

.fx-hero-content {
    position: relative;
    z-index: 1;
}

.fx-hero .fa-check-circle {
    color: #ffffff !important;
}

.fx-hero-badge {
    background: rgba(255,255,255,0.12);
    color: #f4d8ff;
    padding: 0.35rem 1.2rem;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 700;
    display: inline-block;
    border: 1px solid rgba(255,255,255,0.18);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

@media (max-width: 576px) {
    .fx-hero-badge {
        font-size: 0.7rem;
        padding: 0.2rem 0.8rem;
    }
}

.fx-hero-title {
    font-size: clamp(2.8rem, 4vw, 4.6rem);
    font-weight: 800;
    line-height: 0.98;
    letter-spacing: -0.06em;
}

    .fx-hero-title span {
        color: #d9b4ff;
    }

@media (max-width: 992px) {
    .fx-hero-title {
        font-size: 3.2rem;
    }
}

@media (max-width: 768px) {
    .fx-hero-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 576px) {
    .fx-hero-title {
        font-size: 2.15rem;
    }
}

.fx-hero-sub {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.84);
    max-width: 600px;
    letter-spacing: -0.01em;
}

@media (max-width: 576px) {
    .fx-hero-sub {
        font-size: 0.95rem;
    }
}

/* Section Titles */
.fx-section-title {
    font-size: clamp(2.2rem, 3vw, 3.4rem);
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: -0.05em;
    color: #191d2a;
}

@media (max-width: 768px) {
    .fx-section-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 576px) {
    .fx-section-title {
        font-size: 1.8rem;
    }
}

.fx-section-sub {
    color: #3f4657;
    font-size: 1.08rem;
    max-width: 740px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

@media (max-width: 576px) {
    .fx-section-sub {
        font-size: 0.95rem;
    }
}

/* Cards */
.fx-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    padding: 1.5rem;
}

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

.fx-card-icon {
    width: 52px;
    height: 52px;
    background: rgba(109, 42, 183, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #512379;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

@media (max-width: 576px) {
    .fx-card {
        padding: 1.2rem;
    }

    .fx-card-icon {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
    }
}

/* Module Items */
.fx-module {
    background: linear-gradient(49deg, #f2e7ff, #f8f1ff);
    border-radius: 12px;
    padding: 0.9rem 1.2rem;
    margin-bottom: 0.75rem;
    border-left: 4px solid #6d2ab7;
    box-shadow: 0 2px 6px rgba(0,0,0,0.02);
    transition: all 0.2s;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

    .fx-module:hover {
        background: linear-gradient(49deg, #f8f1ff, #f2e7ff);
        border-left-color: #5a1ea8;
    }

.fx-module-title {
    font-weight: 600;
    font-size: 0.95rem;
}

.fx-module-hours {
    font-size: 0.75rem;
    color: #4b5563;
    background: #f8fafc;
    padding: 0.15rem 0.8rem;
    border-radius: 50px;
    white-space: nowrap;
}

@media (max-width: 576px) {
    .fx-module {
        padding: 0.7rem 1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.2rem;
    }

    .fx-module-title {
        font-size: 0.85rem;
    }

    .fx-module-hours {
        font-size: 0.7rem;
        align-self: flex-start;
    }
}

/* Portfolio Items */
.fx-portfolio-item {
    background: #f1f7fa;
    border-radius: 12px;
    padding: 1rem 0.75rem;
    border: 1px solid #e2e8f0;
    text-align: center;
    height: 100%;
    transition: all 0.2s;
}

    .fx-portfolio-item:hover {
        border-color: #6d2ab7;
        box-shadow: 0 8px 16px -8px rgba(109, 42, 183, 0.2);
    }

.fx-portfolio-num {
    font-size: 2rem;
    font-weight: 800;
    color: #52217b;
    line-height: 1;
}

.fx-portfolio-item h6 {
    font-size: 0.9rem;
    margin-top: 0.3rem;
}

.fx-portfolio-item p {
    font-size: 0.75rem;
    margin-bottom: 0;
}

@media (max-width: 576px) {
    .fx-portfolio-item {
        padding: 0.75rem 0.5rem;
    }

    .fx-portfolio-num {
        font-size: 1.5rem;
    }

    .fx-portfolio-item h6 {
        font-size: 0.75rem;
    }

    .fx-portfolio-item p {
        font-size: 0.65rem;
    }
}

/* Testimonial */
.fx-testimonial {
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 8px 20px -10px rgba(0,0,0,0.04);
    height: 100%;
}

.fx-testimonial-stars {
    color: #fbbf24;
}

@media (max-width: 576px) {
    .fx-testimonial {
        padding: 1.2rem;
    }

        .fx-testimonial p {
            font-size: 0.9rem;
        }
}

/* Footer */
.fx-footer {
    background: #0a1a2b;
    color: rgba(255,255,255,0.7);
    padding: 2.5rem 0 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

    .fx-footer a {
        color: rgba(255,255,255,0.7);
        text-decoration: none;
    }

        .fx-footer a:hover {
            color: #d9b4ff;
        }

@media (max-width: 576px) {
    .fx-footer {
        padding: 1.5rem 0 1rem;
    }
}

/* Form */
.fx-form-control {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.7rem 1rem;
    font-size: 0.9rem;
    width: 100%;
    background: #fff;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

    .fx-form-control:focus {
        border-color: #6d2ab7;
        box-shadow: 0 0 0 3px rgba(109, 42, 183, 0.15);
        outline: none;
    }

    .fx-form-control select {
        appearance: auto;
    }

@media (max-width: 576px) {
    .fx-form-control {
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
    }
}

/* Eligibility */
.fx-eligibility-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.4rem 0;
}

    .fx-eligibility-item i {
        color: #51227b;
        font-size: 1.1rem;
        margin-top: 0.15rem;
        min-width: 1.5rem;
    }

    .fx-eligibility-item div {
        font-size: 0.95rem;
    }

@media (max-width: 576px) {
    .fx-eligibility-item div {
        font-size: 0.85rem;
    }

    .fx-eligibility-item i {
        font-size: 1rem;
        min-width: 1.2rem;
    }
}

/* Image placeholder */
.fx-img-placeholder {
    background: #e9f0f5;
    border-radius: 16px;
    overflow: hidden;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-weight: 500;
}

.fx-img-cover {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

@media (max-width: 576px) {
    .fx-img-placeholder {
        min-height: 150px;
    }
}

/* Video Carousel - isolated */
.fx-carousel-btn {
    width: 2.4rem;
    height: 2.4rem;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    opacity: 1;
    position: absolute;
    z-index: 2;
    background: transparent;
    border: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fx-carousel-btn-prev {
    left: -48px;
}

.fx-carousel-btn-next {
    right: -48px;
}

.fx-carousel-btn-icon {
    width: 6.4rem;
    height: 4.4rem;
    border-radius: 999px;
    background-color: #50227d;
    border: 1px solid #50227d;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
}

@media (max-width: 768px) {
    .fx-carousel-btn {
        width: 2rem;
        height: 2rem;
    }

    .fx-carousel-btn-prev {
        left: -5px;
    }

    .fx-carousel-btn-next {
        right: -5px;
    }

    .fx-carousel-btn-icon {
        width: 2rem;
        height: 2rem;
    }
}

@media (max-width: 576px) {
    .fx-carousel-btn {
        width: 1.6rem;
        height: 1.6rem;
    }

    .fx-carousel-btn-prev {
        left: -4px;
    }

    .fx-carousel-btn-next {
        right: -4px;
    }

    .fx-carousel-btn-icon {
        width: 1.6rem;
        height: 1.6rem;
        font-size: 0.7rem;
    }
}

/* ====== HIDE ARROWS ON TOUCH DEVICES ====== */
@media (hover: none) and (pointer: coarse) {
    .fx-carousel-btn {
        display: none !important;
    }
}

/* ====== TOUCH DRAG STYLES ====== */
.fx-video-tile {
    height: 100%;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    cursor: grab;
    -webkit-user-select: none;
    user-select: none;
    touch-action: pan-y;
}

    .fx-video-tile:active {
        cursor: grabbing;
    }

.carousel-inner {
    touch-action: pan-y;
}

.fx-video-trigger {
    display: block;
    position: relative;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    border-radius: 1rem;
    cursor: pointer;
}

    .fx-video-trigger:hover {
        color: inherit;
    }

.fx-video-tile video {
    width: 100%;
    aspect-ratio: 9 / 16;
    display: block;
    object-fit: cover;
    object-position: top center;
    background: #000;
    pointer-events: none;
}

.fx-video-meta {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 0.6rem 0.7rem 0.7rem;
    background: linear-gradient(180deg, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0.98) 55%, #ffffff 100%);
    border-top: 1px solid rgba(219,228,240,0.95);
}

    .fx-video-meta h3 {
        margin: 0 0 0.2rem;
        font-size: 0.85rem;
        line-height: 1.2;
    }

    .fx-video-meta p {
        margin: 0;
        color: #4b5563;
        font-size: 0.7rem;
        line-height: 1.2;
    }

@media (max-width: 576px) {
    .fx-video-meta {
        padding: 0.4rem 0.5rem 0.5rem;
    }

        .fx-video-meta h3 {
            font-size: 0.7rem;
        }

        .fx-video-meta p {
            font-size: 0.6rem;
        }
}

.fx-popup-frame {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    background: #000;
    aspect-ratio: 9 / 14;
}

.fx-popup-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    background: #000;
    object-fit: cover;
    object-position: top center;
}

.fx-modal-dialog {
    max-width: min(420px, calc(100vw - 1.5rem));
    margin: 1.75rem auto;
}

@media (max-width: 576px) {
    .fx-modal-dialog {
        max-width: calc(100vw - 1rem);
        margin: 0.5rem;
    }
}

.fx-bg-dark {
    background: linear-gradient(135deg, rgba(18, 8, 35, 0.9) 0%, rgba(48, 19, 81, 0.82) 45%, rgba(90, 30, 168, 0.72) 100%), url('../img/ai-creative/it-expert-complaining-while-solving-coding-project-tasks-suffering-from-burnout.webp') center / cover no-repeat;
}

.fx-border-accent {
    border-color: #6d2ab7 !important;
}

.fx-shadow-soft {
    box-shadow: 0 8px 30px -10px rgba(0,0,0,0.06);
}

/* Utility */
.fx-text-white {
    color: #ffffff;
}

.fx-bg-white {
    background: #ffffff;
}

.fx-text-muted {
    color: #4b5563;
}

.fx-text-dark {
    color: #0a1a2b;
}

.fx-w-100 {
    width: 100%;
}

.fx-text-center {
    text-align: center;
}

.fx-mt-3 {
    margin-top: 1rem;
}

.fx-mt-2 {
    margin-top: 0.5rem;
}

.fx-py-3 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

@media (max-width: 576px) {
    .fx-btn-primary, .fx-btn-outline {
        padding: 0.5rem 1.2rem;
        font-size: 0.85rem;
    }
}

/* Fix navbar toggle on mobile - no conflict */
.navbar-toggler {
    border: 1px solid rgba(0,0,0,0.1) !important;
    padding: 0.25rem 0.75rem !important;
}

    .navbar-toggler:focus {
        box-shadow: 0 0 0 0.25rem rgba(109, 42, 183, 0.25) !important;
    }

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0,0,0,0.75)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Fix navbar collapse on mobile */
@media (max-width: 991px) {
    .navbar-collapse {
        background: #ffffff;
        padding: 1rem;
        border-radius: 12px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.1);
        margin-top: 0.5rem;
    }

    .fx-navbar .fx-nav-link {
        padding: 0.6rem 0.8rem !important;
        border-bottom: 1px solid #f0f0f0;
    }

        .fx-navbar .fx-nav-link:last-child {
            border-bottom: none;
        }
}

/* Modal fixes */
.modal-content {
    border-radius: 16px !important;
    overflow: hidden;
}

.modal-header {
    border-bottom: 1px solid #e2e8f0 !important;
    padding: 1rem 1.25rem !important;
}

.modal-body {
    padding: 1.25rem !important;
}

.btn-close {
    background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat !important;
}

span.fx-badge.fx-badge-dark.px-3.px-md-4.py-2 {
    display: block;
    flex-wrap: wrap !important;
    text-wrap: auto;
}

@media screen and (max-width: 1024px) {
    section {
        padding: 90px 20px !important;
    }
}
