/* ================================
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;
    display: flex;
    flex-direction: column;
}

/* ================================
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;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    backface-visibility: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.fc-card-back {
    transform: rotateY(180deg);
    background: #f8f9fb;
}

/* ================================
CONTENT
================================ */
.fc-card-content {
    flex: 1;
    font-size: 18px;
    line-height: 1.6;
    margin-top: 40px;
    overflow-y: auto;
}

.fc-card-hint {
    text-align: center;
    font-size: 13px;
    color: #777;
}

/* ================================
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;
}

/* ================================
MOBILE
================================ */
@media (max-width: 768px) {

    .fc-card {
        height: 500px;
    }

    .fc-card-content {
        font-size: 17px;
        margin-top: 65px;
    }

    .fc-btn {
        width: 100%;
    }
}

/* ================================
DESKTOP LARGE
================================ */
@media (min-width: 1024px) {

    .fc-card-wrap {
        max-width: 1200px;
    }

    .fc-card {
        height: 620px;
    }

    .fc-card-content {
        font-size: 20px;
    }
}
/* ================================
MOBILE FINAL TUNING
================================ */
@media (max-width: 768px) {

    .fc-container {
        padding: 14px 12px 18px;
    }

    .fc-header {
        margin: 0 auto 8px;
    }

    .fc-title {
        font-size: 26px;
        line-height: 1.15;
        margin-bottom: 6px;
    }

    .fc-breadcrumb {
        font-size: 13px;
        line-height: 1.4;
        margin-bottom: 4px;
    }

    .fc-progress-top {
        font-size: 13px;
    }

    .fc-card-wrap {
        max-width: 100%;
    }

    .fc-card {
        height: 500px;
    }

    .fc-card-face {
        padding: 16px 14px;
        border-radius: 16px;
    }

    .fc-card-topbar {
        top: 10px;
        right: 10px;
    }

    .fc-logo img {
        height: 22px;
        width: auto;
        display: block;
    }

    .fc-card-content {
        margin-top: 52px;
        font-size: 16px;
        line-height: 1.5;
    }

    .fc-card-hint {
        font-size: 12px;
        margin-top: 8px;
    }

    .fc-card-actions {
        margin-top: 10px;
    }

    .fc-btn {
        padding: 11px 14px;
        font-size: 14px;
    }

    .fc-btn-explanation {
        width: 100%;
    }

    .fc-nav {
        gap: 10px;
        margin: 10px 0 6px;
    }

    .fc-nav .fc-btn {
        flex: 1;
        min-width: 0;
    }

    .fc-progress-wrap {
        max-width: 100%;
        margin-top: 4px;
    }

    .fc-progress-text {
        font-size: 12px;
    }

    .fc-completion {
        padding: 24px 14px;
    }

    .fc-completion h2 {
        font-size: 22px;
    }

    .fc-completion-actions {
        flex-direction: column;
        gap: 10px;
    }

    .fc-completion-actions .fc-btn {
        width: 100%;
    }
}
/* ================================
COMPLETION IMPROVED
================================ */
.fc-ad-block {
    margin: 20px auto;
    max-width: 320px;
    text-align: center;
}

.fc-completion-links {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.fc-link {
    display: inline-block;
    padding: 8px 12px;
    background: #f1f1f1;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    color: #333;
}

.fc-link:hover {
    background: #ddd;
}
.fc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.fc-card-box {
    display: block;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    text-decoration: none;
    color: #111;
    box-shadow: 0 6px 15px rgba(0,0,0,0.06);
    transition: 0.2s ease;
}

.fc-card-box:hover {
    transform: translateY(-3px);
}
.fc-card-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 6px;
}

.fc-card-meta {
    font-size: 13px;
    color: #666;
}
/* ================================
MODERN GRID (LIKE YOUR IMAGE)
================================ */

.fc-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* TITLE */
.fc-title {
    font-size: 34px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #111827;
}

/* SUBTITLE */
.fc-subtitle {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 25px;
}

/* GRID */
.fc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 22px;
}

/* CARD */
.fc-card-box {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 14px;

    padding: 20px;
    text-decoration: none;

    transition: all 0.2s ease;
}

/* HOVER */
.fc-card-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.08);
}

/* TITLE */
.fc-card-title {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 8px;
}

/* META */
.fc-card-meta {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 10px;
}

/* LINK */
.fc-card-link {
    font-size: 13px;
    color: #2563eb;
    font-weight: 500;
}
.fc-subtitle {
    color: #6b7280;
    margin-bottom: 20px;
    font-size: 14px;
}

.fc-card-box {
    padding: 20px;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    background: #fff;
    transition: 0.2s;
}

.fc-card-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
}