/* file: static/welcome_style.css (Phiên bản cuối cùng) */
body {
    font-family: 'Roboto', sans-serif;
    background-color: #f4f7f6;
    color: #333;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
}

.container {
    max-width: 800px;
    width: 90%;
    padding: 20px;
}

header h1 {
    font-size: 2.5em;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
}

header p {
    font-size: 1.2em;
    font-weight: 300;
    color: #7f8c8d;
    margin-bottom: 40px;
}

/* Đây là phần CSS cho layout 2 cột ban đầu (vẫn giữ lại phòng khi bạn muốn dùng lại) */
main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.card {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.card h2 {
    margin-top: 0;
    color: #3498db;
}

/* Nút admin cũ (vẫn giữ lại) */
.admin-button {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 25px;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.admin-button:hover {
    background-color: #2980b9;
}

footer {
    margin-top: 50px;
    font-size: 0.9em;
    color: #95a5a6;
}

/* === PHẦN CẬP NHẬT MỚI Ở ĐÂY === */

/* Layout mới cho trường hợp chỉ có 1 card */
.single-card-layout {
    /* Bỏ grid layout đi, thay bằng flex để căn giữa */
    display: flex;
    justify-content: center;
    /* Thêm một chút padding để không bị dính sát vào header trên màn hình nhỏ */
    padding-top: 20px; 
}

.single-card-layout .card {
    /* Tăng chiều rộng tối đa để các câu không bị xuống dòng */
    max-width: 550px; 
    width: 100%;
    
    /* Căn lề trái cho văn bản bên trong card để dễ đọc hơn */
    text-align: left; 
}

.single-card-layout .card h2 {
    /* Căn giữa lại tiêu đề của card cho đẹp */
    text-align: center;
}

/* Responsive cho màn hình nhỏ */
@media (max-width: 768px) {
    main {
        /* Đảm bảo layout 2 cột cũ sẽ chuyển thành 1 cột trên điện thoại */
        grid-template-columns: 1fr;
    }

    header h1 {
        font-size: 2em;
    }

    header p {
        font-size: 1em;
    }
}