/* ===================================================
   PROJECTS.CSS — Grid & Card bài tập
=================================================== */

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

/* ===== CARD CƠ BẢN ===== */
.project-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 28px 26px 24px;
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    cursor: default;
}

/* Đường viền màu xuất hiện khi hover */
.project-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(to right, var(--teal), var(--gold));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover {
    transform: translateY(-9px) scale(1.015);
    box-shadow: var(--shadow-hover);
    border-color: rgba(14, 159, 140, 0.25);
}

.project-card:hover::before {
    opacity: 1;
}

/* ===== SỐ THỨ TỰ ===== */
.card-num {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--teal-light);
    line-height: 1;
    margin-bottom: 4px;
    user-select: none;
    transition: color 0.3s;
}

.project-card:hover .card-num {
    color: rgba(14, 159, 140, 0.15);
}

/* ===== ICON ===== */
.card-icon {
    font-size: 1.8rem;
    margin-bottom: 10px;
    line-height: 1;
}

/* ===== TIÊU ĐỀ ===== */
.project-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.08rem;
    color: var(--navy);
    margin-bottom: 8px;
    line-height: 1.35;
    font-weight: 600;
}

/* ===== NHÃN LOẠI BÀI TẬP ===== */
.card-tag {
    display: inline-block;
    padding: 3px 11px;
    background: var(--teal-light);
    color: var(--teal);
    border-radius: 20px;
    font-size: 0.73rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 16px;
    width: fit-content;
}

/* ===== NỘI DUNG ===== */
.card-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.card-content p {
    font-size: 0.875rem;
    color: var(--text-mid);
    line-height: 1.65;
}

.card-content strong {
    color: var(--navy);
    font-weight: 600;
}

/* ===== NÚT XEM SẢN PHẨM ===== */
.card-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 20px;
    background: var(--navy);
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    font-size: 0.83rem;
    font-weight: 600;
    width: fit-content;
    margin-top: auto;
    transition: var(--transition);
    border: 1.5px solid var(--navy);
}

.card-btn:hover {
    background: var(--teal);
    border-color: var(--teal);
    transform: scale(1.04);
    box-shadow: 0 6px 18px rgba(14, 159, 140, 0.3);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 680px) {
    .project-grid {
        grid-template-columns: 1fr;
    }
}
