 /* CSS for Code Detail Section */
    .code-detail-section {
        padding: 2rem 0;
    }

    .code-detail-section .back-button {
        display: inline-flex;
        align-items: center;
        padding: 0.5rem 1.5rem;
        background: linear-gradient(135deg, #6b7280, #4b5563);
        color: #fff;
        border-radius: 8px;
        text-decoration: none;
        font-size: 0.875rem;
        font-weight: 500;
        transition: background 0.3s ease, transform 0.2s ease;
        margin-bottom: 1.5rem;
    }

    .code-detail-section .back-button:hover {
        background: linear-gradient(135deg, #4b5563, #374151);
        transform: translateY(-1px);
    }

    .code-detail-section .back-button i {
        margin-right: 0.5rem;
    }

    .code-grid {
        display: grid;
        grid-template-columns: repeat(12, 1fr);
        gap: 1.5rem;
    }

    .code-card {
        background: #ffffff;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        cursor: pointer;
        display: flex;
        flex-direction: column;
        min-height: 360px; /* Đảm bảo kích thước đồng đều */
    }

    .code-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    }

    .code-card-image {
        position: relative;
        width: 100%;
        height: 160px;
    }

    .code-card-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s ease;
    }

    .code-card:hover .code-card-image img {
        transform: scale(1.05);
    }

    .code-card-content {
        padding: 1.25rem;
        flex-grow: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .code-card-title {
        font-size: 1.125rem;
        font-weight: 600;
        color: #1e40af;
        text-align: center;
        margin-bottom: 0.75rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        transition: color 0.3s ease;
    }

    .code-card:hover .code-card-title {
        color: #2563eb;
    }

    .code-card-info {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 1rem;
        flex-wrap: wrap;
    }

    .code-card-info .info-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        font-size: 0.875rem;
        font-weight: 500;
        flex: 1;
        min-width: 80px;
    }

    .code-card-info .info-item i {
        color: #3b82f6;
        margin-bottom: 0.25rem;
        font-size: 1rem;
    }

    .code-card-info .info-item span:first-child {
        color: #6b7280;
        display: flex;
        align-items: center;
        gap: 0.25rem;
    }

    .code-card-info .info-item span:last-child {
        color: #1e40af;
        font-weight: 600;
    }

    .code-card-button {
        display: inline-flex;
        justify-content: center;
        align-items: center;
        text-decoration: none;
        transition: transform 0.3s ease;
    }

    .code-card-button img {
        width: 100%;
        max-width: 120px;
        height: auto;
        display: block;
    }

    .code-card-button:hover {
        transform: translateY(-3px);
    }

    .badge {
        position: absolute;
        top: 10px;
        left: 10px;
        padding: 5px 10px;
        font-size: 0.75rem;
        font-weight: 600;
        color: #fff;
        text-transform: uppercase;
        background: linear-gradient(135deg, #ff4d4f, #d32f2f);
        border-radius: 12px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
        transition: transform 0.3s ease;
    }

    .code-card-id {
        position: absolute;
        top: 10px;
        right: 10px;
        padding: 5px 10px;
        font-size: 0.75rem;
        font-weight: 600;
        color: #fff;
        text-transform: uppercase;
        background: linear-gradient(135deg, #3b82f6, #06b6d4);
        border-radius: 12px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
        transition: transform 0.3s ease;
    }

    .code-card:hover .badge,
    .code-card:hover .code-card-id {
        transform: scale(1.05);
    }

    .badge i {
        margin-right: 4px;
    }

    /* Animation for zoom-in effect */
    .zoom-in {
        animation: zoomIn 0.5s ease-out;
    }

    @keyframes zoomIn {
        from {
            transform: scale(0.95);
            opacity: 0;
        }
        to {
            transform: scale(1);
            opacity: 1;
        }
    }

    /* Responsive adjustments */
    @media (max-width: 1280px) {
        .code-card {
            min-height: 340px;
        }

        .code-card-title {
            font-size: 1rem;
        }

        .code-card-image {
            height: 140px;
        }

        .code-card-info .info-item {
            font-size: 0.75rem;
        }

        .code-card-button img {
            max-width: 100px;
        }
    }

    @media (max-width: 1024px) {
        .code-detail-section .back-button {
            font-size: 0.75rem;
            padding: 0.4rem 1.2rem;
        }

        .code-card {
            min-height: 320px;
        }

        .code-card-title {
            font-size: 0.875rem;
        }

        .code-card-image {
            height: 120px;
        }

        .code-card-info .info-item {
            font-size: 0.75rem;
            min-width: 70px;
        }

        .code-card-content {
            padding: 1rem;
        }

        .badge, .code-card-id {
            font-size: 0.625rem;
            padding: 4px 8px;
        }

        .code-card-button img {
            max-width: 90px;
        }
    }

    @media (max-width: 768px) {
        .code-card {
            min-height: 300px;
        }

        .code-card-image {
            height: 100px;
        }

        .code-card-title {
            font-size: 0.75rem;
        }

        .code-card-info .info-item {
            font-size: 0.625rem;
            min-width: 60px;
        }

        .code-card-button img {
            max-width: 80px;
        }
    }

    @media (max-width: 640px) {
        .code-detail-section .back-button {
            font-size: 0.625rem;
            padding: 0.3rem 1rem;
        }

        .code-card {
            min-height: 280px;
        }

        .code-card-image {
            height: 90px;
        }

        .code-card-title {
            font-size: 0.75rem;
        }

        .code-card-info .info-item {
            font-size: 0.625rem;
            min-width: 50px;
        }

        .code-card-content {
            padding: 0.75rem;
        }

        .badge, .code-card-id {
            font-size: 0.5rem;
            padding: 3px 6px;
        }

        .code-card-button img {
            max-width: 70px;
        }
    }