﻿/* ── Main card ──────────────────────────────────────────── */
.tfg-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 14px rgba(0,0,0,.07);
    overflow: hidden;
}

/* ── Card header ────────────────────────────────────────── */
.tfg-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .9rem 1.5rem;
    background: linear-gradient(135deg, #8b0000 0%, #c0392b 100%);
    color: #fff;
    flex-wrap: wrap;
    gap: .5rem;
}

.tfg-card-head-left {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-weight: 700;
    font-size: .95rem;
}

    .tfg-card-head-left i {
        font-size: 1.1rem;
    }

.tfg-updated {
    font-size: .78rem;
    opacity: .85;
    display: flex;
    align-items: center;
}

/* ── Card body ──────────────────────────────────────────── */
.tfg-card-body {
    padding: 2rem 2.25rem 2.5rem;
}

/* ── Rich text content (Quill output) ──────────────────── */
.tfg-content {
    font-size: .97rem;
    line-height: 1.85;
    color: #333;
}

    .tfg-content h1,
    .tfg-content h2 {
        font-size: 1.3rem;
        font-weight: 700;
        color: #8b0000;
        margin-top: 1.75rem;
        margin-bottom: .6rem;
        padding-bottom: .4rem;
        border-bottom: 2px solid #f5e6e6;
    }

    .tfg-content h3,
    .tfg-content h4 {
        font-size: 1.05rem;
        font-weight: 700;
        color: #1a1a2e;
        margin-top: 1.4rem;
        margin-bottom: .4rem;
    }

    .tfg-content p {
        margin-bottom: 1rem;
    }

    .tfg-content ul,
    .tfg-content ol {
        padding-left: 1.5rem;
        margin-bottom: 1.1rem;
    }

    .tfg-content li {
        margin-bottom: .4rem;
    }

    .tfg-content ul li::marker {
        color: #c0392b;
    }

    .tfg-content strong {
        color: #1a1a2e;
        font-weight: 700;
    }

    .tfg-content blockquote {
        border-left: 4px solid #c0392b;
        background: #fff5f5;
        margin: 1.25rem 0;
        padding: .85rem 1.25rem;
        border-radius: 0 8px 8px 0;
        color: #555;
        font-style: italic;
    }

    .tfg-content table {
        width: 100%;
        border-collapse: collapse;
        margin-bottom: 1.25rem;
        font-size: .9rem;
    }

        .tfg-content table th {
            background: #8b0000;
            color: #fff;
            padding: .6rem .9rem;
            text-align: left;
            font-weight: 600;
        }

        .tfg-content table td {
            padding: .55rem .9rem;
            border-bottom: 1px solid #f0f0f0;
            color: #444;
        }

        .tfg-content table tr:hover td {
            background: #fff5f5;
        }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 767px) {
    .tfg-card-body {
        padding: 1.25rem 1.1rem 1.5rem;
    }

    .tfg-card-head {
        padding: .75rem 1.1rem;
    }
}
