.feature-box {
    padding: 38px 30px;
    position: relative;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 0 29px 0 rgb(18 66 101 / 8%);
    transition: all 0.3s ease-in-out;
    border-radius: 8px;
    z-index: 1;
    width: 100%;
}

.swiper-button-prev,
.swiper-button-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 30px; /* Điều chỉnh kích thước theo kích thước thực tế của mũi tên */
    height: 30px;
    cursor: pointer;
}

.swiper-button-prev {
    left: 10px; /* Điều chỉnh vị trí của mũi tên prev */
}

.swiper-button-next {
    right: 10px; /* Điều chỉnh vị trí của mũi tên next */
}

.content-banner-slide .swiper-slide {
    background-color: #fffde7; /* Màu nền vàng */
    border: 2px solid #ffc107; /* Viền khung màu vàng */
    border-radius: 10px; /* Bo tròn góc khung */
    overflow: hidden; /* Ẩn phần vượt khỏi khung */
}


.swiper-container {
    overflow: hidden; /* Hide overflow to only show centered slide */
}

.swiper-wrapper {
    display: flex; /* Use flexbox for slides */
}

.swiper-slide {
    flex-shrink: 0; /* Prevent slides from shrinking */
    width: 100%; /* Ensure each slide takes full width */
    opacity: 0; /* Initially hide all slides */
    transition: opacity 0.3s ease; /* Smooth opacity transition */
}

.swiper-slide.swiper-slide-active {
    opacity: 1; /* Show active slide */
}

.feature-icon {
    font-size: 1.8em;
    margin-bottom: 1rem;
}

.feature-title {
    font-size: 1.2em;
    font-weight: 500;
    padding-bottom: 0.25rem;
    text-decoration: none;
    color: #212529;
}

.list-group-item.active {
    background-color: #f44336;
    border-color: #f44336;
}

a {
    text-decoration: none;
}

.nav-pills .nav-link.active,
.nav-pills .show>.nav-link {
    background-color: #f44336;
}

.nav-link {
    color: #f44336;
}

.nav-link:focus,
.nav-link:hover {
    color: #cd3a2f;
}

.form-signin {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.form-signin .checkbox {
    font-weight: 400;
}

.form-signin .form-control {
    position: relative;
    box-sizing: border-box;
    height: auto;
    padding: 10px;
    font-size: 16px;
}

.form-signin .form-control:focus {
    z-index: 2;
}

.form-signin input[type="text"] {
    margin-bottom: 10px;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
}

.form-signin input[type="password"] {
    margin-bottom: 10px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.info-success {
    color: green;
    font-weight: 700;
    font-size: 20px;
}

.form-error {
    font-size: 15px;
    color: red;
}

p {
    margin-bottom: 0 !important;
}

a {
    text-decoration: none !important;
}

.table-main td {
    border: 1px solid;
    text-align: center;
}

.label-main {
    font-size: 15px;
    font-weight: 700;
}

.swap-main {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-right: -50px;
}

.swap-child {
    min-width: 300px;
    margin-right: 50px;
    max-width: 40%;
    width: 500px;
}

.table {
    border-color: black !important;
}

.logo-main {
    max-width: 100%;
    max-height: 250px;
}
.container {
    width: 100%;
    max-width: 1080px;
    padding-left: 15px;
    padding-right: 15px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 575.98px) {
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
}
.main {
    background-color: #ffb473;
    border-radius: 20px;
    padding: 10px 30px;
}
.card {
    background-color: #feecd8 !important;
    border-radius: 20px !important;
}

.post-item {
    background-color: #fdf8da;
    border: 1px solid #ffdbb3;
    border-radius: 16px;
    box-shadow: 0 3px 4px rgba(0,0,0,.051);
    padding: 10px;
    min-height: 87px;
}

.post-item>.post-image {
    border: none;
    width: 65px;
}
.post-image {
    /* align-self: start; */
    margin-right: 10px;
    text-align: center;
    width: 65px;
}

.modal-main {
    padding: 24px;
    background-color: #fce3c6 !important;
    border-radius: 10px !important;
}

.border-radius-10 {
    border-radius: 10px !important;
}

.cursor-pointer {
    cursor: pointer;
}

.error_form {
    color: red;
    font-style: italic;
    font-weight: 700;
}
.success-form {
    color: green;
    font-style: italic;
    font-weight: 700;
}

.btn-main-yellow {
    background-color: #ffc10740 !important;
    border-radius: 10px !important;
}

.bg-handle-main {
    width: 100%;
    height: 100%;
    background-color: black; 
    position: fixed;
    top: 0;
    opacity: 0.3;
    left: 0;
    z-index: 1000;
}

.color-main {
    color: #212529 !important;
}

.form-input-main {
    border: 2px solid #ffb473 !important;
    border-radius: 10px !important;
}

.post-detail {
    background-color: #fff3cd;
    border: 3px #fff3cd;
    border-image: none;
    border-radius: 10px;
    border-style: solid solid none;
    border-width: 1px 0;
    box-shadow: 0 3px 8px rgba(0,0,0,.239);
    color: inherit;
    padding: 5px 10px 10px;
}

.post-author {
    color: #dc3545;
}

.post-date {
    color: #6c757d!important;
    font-size: 12px !important;
}

.pager-item {
    background-color: #fdf8da;
    border: 1px solid #ffdbb3;
    border-radius: 10px;
    box-shadow: 0 3px 4px rgba(0,0,0,.051);
    width: 40px;
    height: 40px;
    font-weight: bold;
    margin-left: 5px;
}
.pager-item:hover {
    background-color: #ffc10740;
}
.pager-item.active {
    background-color: #ffc107;
    border-color: #ffc107;
}

.recharge-method-item {
    background-color: #fdf8da;
    border: 3px solid #ffae52;
    border-radius: 16px;
    padding: 10px;
    width: 100%;
}
.recharge-method-item img {
    border-radius: 16px;
    max-height: 100%;
    max-width: 100%;
}

.recharge-method-item:hover {
    border: 3px solid #ff8400;
}

.recharge-method-item.active {
    background-color: #faeda7;
    border: 3px solid #ff5900;
}

/* ============================================================
   RESPONSIVE DESIGN SYSTEM: PC & MOBILE ADAPTATION
   ============================================================ */

/* App Shell Responsiveness */
@media (max-width: 767.98px) {
    .page-layout-content {
        margin-top: 0 !important;
        border-radius: 0 !important;
        border-left: none !important;
        border-right: none !important;
        box-shadow: none !important;
    }

    .page-layout-header-content {
        border-radius: 0 !important;
        padding: 12px 10px !important;
    }

    .page-layout-body {
        border-radius: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 14px 10px !important;
    }

    .header-logo {
        max-height: 95px !important;
        max-width: 220px !important;
    }
}

/* Modern Marquee Announcement Pill */
.marquee-container {
    background: linear-gradient(90deg, #7c2d12, #c2410c, #7c2d12);
    border: 1px solid #fdba74;
    border-radius: 30px;
    padding: 7px 16px;
    overflow: hidden;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.marquee-wrapper {
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
}

.marquee-text {
    display: inline-block;
    padding-left: 100%;
    animation: marqueeAnimation 24s linear infinite;
    color: #ffedd5;
    font-weight: 600;
    font-size: 0.92rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

@keyframes marqueeAnimation {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-100%, 0); }
}

/* Nav Menu Grid on Mobile vs Desktop */
.nav-buttons-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 10px 0;
}

.nav-pill-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 18px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff !important;
    background: linear-gradient(135deg, #d97706, #b45309);
    border: 1px solid #fde68a;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    text-decoration: none !important;
    transition: all 0.2s ease-in-out;
    white-space: nowrap;
    cursor: pointer;
}

.nav-pill-btn:hover {
    color: #fffde7 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.5);
    border-color: #fff;
}

.nav-pill-btn.btn-tai-game {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border-color: #93c5fd;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4);
}
.nav-pill-btn.btn-tai-game:hover {
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.6);
}

.nav-pill-btn.btn-nap-coin {
    background: linear-gradient(135deg, #10b981, #059669);
    border-color: #a7f3d0;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
}
.nav-pill-btn.btn-nap-coin:hover {
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.6);
}

.nav-pill-btn.btn-admin {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    border-color: #c4b5fd;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.4);
}

.nav-pill-btn.btn-user {
    background: linear-gradient(135deg, #ea580c, #c2410c);
    border-color: #fed7aa;
}

.nav-pill-btn.btn-logout {
    background: linear-gradient(135deg, #ef4444, #b91c1c);
    border-color: #fca5a5;
}

.logout-form {
    display: inline-flex;
    margin: 0;
    padding: 0;
}
.logout-form .nav-pill-btn {
    width: auto;
}

@media (max-width: 575.98px) {
    .nav-buttons-container {
        gap: 6px;
    }
    .nav-pill-btn {
        padding: 8px 10px;
        font-size: 0.82rem;
        flex: 1 1 calc(50% - 6px);
        min-width: 130px;
    }
    .logout-form {
        flex: 1 1 calc(50% - 6px);
        min-width: 130px;
    }
    .logout-form .nav-pill-btn {
        width: 100%;
    }
}

/* Responsive Table utilities */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    margin-bottom: 1rem;
    border-radius: 8px;
}

.color-red {
    color: red !important;
}

.avatar-main {
    max-height: 65px;
    max-width: 65px;
}

/* Post and Article Responsiveness */
.post-content {
    word-break: break-word;
    overflow-wrap: break-word;
}
.post-content img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 8px;
}

/* Mobile Typography and Padding adjustments */
@media (max-width: 575.98px) {
    .card-body {
        padding: 1rem !important;
    }
    .dragonball-title {
        font-size: 1.25rem !important;
    }
    .table-responsive > .table:not(.table-sm-fit) {
        min-width: 540px;
    }
}