/* Container dàn trang 3 cột */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 cột bằng nhau */
    gap: 30px; /* Khoảng cách giữa các ô */
    max-width: 1100px; /* Để khớp với width ticket nãy giờ bạn làm */
    margin: 0 auto;
    padding: 20px;
}

/* Thẻ tin tức đơn lẻ */
.news-item {
    background: transparent; /* Hoặc #fff nếu bạn muốn có nền trắng */
    cursor: pointer;
    transition: transform 0.3s ease;
}

    .news-item:hover {
        transform: translateY(-5px);
    }

/* Ảnh đại diện tin tức */
.news-thumb {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 4px; /* Bo góc nhẹ cho ảnh */
}

    .news-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

/* Phần chữ bên dưới ảnh */
.news-content {
    padding-top: 15px;
}

.news-title {
    color: #f59e0b; /* Màu vàng Gold trực tiếp */
    font-size: 19px;
    font-weight: bold;
    margin: 0 0 8px 0;
    line-height: 1.4;
    /* Giới hạn 2 dòng để layout luôn đều */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-date {
    color: #828282; /* Màu xám trực tiếp */
    font-style: italic;
    font-size: 14px;
    margin-bottom: 10px;
}

.news-divider {
    border-top: 1px dotted #cccccc; /* Đường kẻ chấm mờ */
    margin: 12px 0;
}

.news-desc {
    color: #333333; /* Màu chữ nội dung trực tiếp */
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
    /* Giới hạn 3 dòng để không bị lệch hàng giữa các card */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Responsive: Tùy biến cột theo màn hình */
@media (max-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr); /* Tablet còn 2 cột */
    }
}

@media (max-width: 650px) {
    .news-grid {
        grid-template-columns: 1fr; /* Mobile còn 1 cột */
        gap: 20px;
    }
}

@media (max-width: 576px) {
    .news-main {
        border: unset !important;
        padding: 0 !important;
    }

    .news-title {
        padding: 0 !important;
        overflow: unset !important;
        -webkit-line-clamp: unset !important;
        -webkit-box-orient: unset !important;
    }
}

.sub-page {
    background: #434343;
}

    .sub-page .header {
        background: #1e1e1e;
        position: static;
    }

.sub-page__title {
    margin-top: 50px;
}

.sub-page .main-footer {
    border-top: 4px solid #c4a661; /* Đường kẻ vàng trên cùng */
}

:root {
    --bg-dark: #333333;
    --gold-color: #c2a953;
    --gray-color: #313131;
    --text-white: #ffffff;
}

main {
    padding-bottom: 100px;
}

.stepper {
    display: flex;
    list-style: none;
}

.step-outer {
    position: relative;
    display: flex;
    flex: 1;
    align-items: center;
}

.step {
    background-color: var(--gray-color);
    color: #888;
    flex: 1;
    text-align: right;
    padding-right: 40px;
    padding: 5px 40px 5px 0;
    /* Tạo hình mũi tên cho mỗi segment */
    clip-path: polygon(95% 0%, 100% 50%, 95% 100%, 0% 100%, 5% 50%, 0% 0%);
    margin-right: -13px; /* Ghép các mũi tên đè lên nhau */
}

/* Màu sắc cho bước đang hoạt động */
.step-outer.active .step {
    background-color: var(--gold-color);
    color: var(--text-white);
}

/* Vòng tròn số */
.number {
    width: 50px;
    height: 50px;
    background-color: #777;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-weight: bold;
    position: absolute;
    top: 50%;
    left: 30px;
    transform: translateY(-50%);
    z-index: 90;
    font-size: 30px;
}

.step-outer.active .number {
    background-color: #ede4c7;
    color: #333;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.label {
    font-size: 20px;
    font-weight: 500;
}

.login-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

    .login-user:hover {
        cursor: pointer;
    }

.user-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #d1bb6d;
}

.username {
    color: #d1bb6d;
    font-weight: 500;
}

.main-info {
    background-color: #ffffff;
    min-height: 800px;
    padding-top: 65px;
}

    .main-info .section__title_primary {
        text-align: center;
        color: #333333;
    }

.profile-card {
    background-color: #f9f6f0; /* Màu nền kem nhạt như ảnh */
    border: 1.5px solid #f2c94c; /* Viền vàng gold nhạt */
    border-radius: 20px; /* Bo góc lớn */
    padding: 40px;
    width: 100%;
    max-width: 450px; /* Độ rộng phù hợp với card */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    max-width: 520px;
    width: 100%;
    margin: 0 auto;
}

.profile-row {
    display: grid;
    grid-template-columns: 140px 1fr; /* Cột nhãn cố định 140px */
    margin-bottom: 25px; /* Khoảng cách giữa các hàng */
    align-items: center;
}

    .profile-row:last-child {
        margin-bottom: 0;
    }

.profile-label {
    color: #767683; /* Màu xám nhạt cho nhãn */
    font-size: 24px;
}

.profile-value {
    color: #333333; /* Màu đen xám cho giá trị */
    font-size: 24px;
    font-weight: 500;
}

/* Tinh chỉnh Responsive cho màn hình nhỏ */
@media (max-width: 576px) {
    .profile-card {
        padding: 20px;
    }

    .profile-row {
        grid-template-columns: 100px 1fr;
        font-size: 14px;
    }
}

.user-account-wrapper {
    position: relative; /* Quan trọng để menu căn theo wrapper */
    display: inline-block;
}

.login-user {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 8px;
    transition: background 0.3s;
}

    .login-user:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }

/* Ẩn menu mặc định */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 110%; /* Hiện ngay dưới user */
    right: 0;
    width: 220px;
    background-color: #4a4a4a; /* Màu xám đậm */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

    /* Khi menu có class 'show' thì hiện lên */
    .dropdown-menu.show {
        display: block;
    }

.menu-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: #ffffff;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.2s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

    .menu-item:last-child {
        border-bottom: none;
    }

    .menu-item:hover {
        background-color: #c4a661;
    }

.icon {
    width: 24px;
    height: 24px;
    margin-right: 12px;
    display: inline-block;
    /* Bạn có thể thêm background-image vào đây */
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: #ffffff;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.2s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Style cho số thông báo */
.ticket-noti {
    background-color: #ff4d4d; /* Màu đỏ nổi bật */
    color: white;
    font-size: 11px;
    font-weight: bold;
    min-width: 18px;
    height: 18px;
    border-radius: 50%; /* Tạo hình tròn */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto; /* Đẩy về bên phải cùng */
    padding: 2px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}
