/* ================================
RESET
================================ */
html, body {
    margin: 0;
    padding: 0;
}

/* ================================
CONTAINER
================================ */
.fc-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 20px 24px;
    box-sizing: border-box;
}

/* ================================
HEADER
================================ */
.fc-header {
    max-width: 1320px;
    margin: 0 auto 10px;
}

.fc-title {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 4px;
}

.fc-breadcrumb {
    font-size: 14px;
    color: #666;
}

.fc-progress-top {
    font-size: 14px;
    font-weight: 600;
}

/* ================================
CARD WRAP
================================ */
.fc-card-wrap {
    max-width: 1100px;
    margin: 0 auto;
}

/* ================================
CARD
================================ */
.fc-card {
    position: relative;
    width: 100%;
    height: 540px;
    perspective: 1200px;
}

.fc-card-inner {
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease;
    transform-style: preserve-3d;
}

.fc-card.is-flipped .fc-card-inner {
    transform: rotateY(180deg);
}

/* ================================
CARD FACE
================================ */
.fc-card-face {
    position: absolute;
    inset: 0;
    border-radius: 20px;
    background: #fff;

    display: flex;
    align-items: center;       /* 🔥 vertical center */
    justify-content: center;   /* 🔥 horizontal center */

    backface-visibility: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}
/* ================================
CARD CONTENT (FINAL FIX)
================================ */
.fc-card-content {
    flex: 1;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;

    padding: 40px;

    font-size: clamp(24px, 2.6vw, 36px);
    line-height: 1.6;

    box-sizing: border-box;
}



.fc-card-content > * {
    width: 100%;
}

/* BACK SIDE */
.fc-card-back {
    transform: rotateY(180deg);
    background: #f8f9fb;
}


.fc-card-back .fc-card-content {
    align-items: center;       /* 🔥 FIX */
    justify-content: center;   /* 🔥 FIX */
    text-align: center;        /* 🔥 FIX */
    padding: 40px;
}

/* IMAGE */
.fc-card-content img {
    max-width: 100%;
    max-height: 260px;
    display: block;
    margin: 20px auto;
    border-radius: 10px;
}

/* ================================
HINT
================================ */
.fc-card-hint {
    text-align: center;
    font-size: 12px;
    color: #777;
    margin-bottom: 12px;
}

/* ================================
TOP BAR
================================ */
.fc-card-topbar {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

.fc-logo img {
    height: 30px;
}

/* ================================
BUTTONS
================================ */
.fc-btn {
    padding: 12px 16px;
    background: #6aa784;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

/* ================================
NAVIGATION
================================ */
.fc-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 10px 0 6px;
}

/* ================================
PROGRESS
================================ */
.fc-progress-wrap {
    max-width: 900px;
    margin: 6px auto 0;
    text-align: center;
}

.fc-progress-bar {
    height: 6px;
    background: #ddd;
    border-radius: 10px;
    overflow: hidden;
}

.fc-progress-fill {
    height: 100%;
    width: 0%;
    background: #111;
    transition: 0.3s;
}

.fc-progress-text {
    font-size: 13px;
    margin-top: 4px;
}

/* ================================
COMPLETION
================================ */
.fc-completion {
    text-align: center;
    padding: 30px;
}

/* ================================
ADS
================================ */
.fc-ad-block {
    width: 100%;
    max-width: 728px;
    min-height: 120px;
    margin: 40px auto;
    text-align: center;
}

/* ================================
LINKS
================================ */
.fc-completion-links {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.fc-link {
    padding: 8px 12px;
    background: #f1f1f1;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    color: #333;
}

.fc-link:hover {
    background: #ddd;
}

/* ================================
MOBILE
================================ */
@media (max-width: 768px) {

    .fc-container {
        padding: 14px 12px 18px;
    }

    .fc-title {
        font-size: 26px;
    }

    .fc-card {
        height: 500px;
    }

    .fc-card-content {
        font-size: 18px;
        padding: 20px;
    }

    .fc-btn {
        width: 100%;
    }

    .fc-nav {
        gap: 10px;
    }

    .fc-nav .fc-btn {
        flex: 1;
    }
}

/* ================================
DESKTOP LARGE
================================ */
@media (min-width: 1024px) {

    .fc-card {
        height: 620px;
    }

    .fc-card-content {
        font-size: 22px;
    }
}