/* ============================================
   Override cho header + trang đăng nhập
   Các phần khác dùng CSS gốc (style_1 → style_13)
   ============================================ */

/* -----------------------------
   HEADER
   ----------------------------- */
/* Logo lớn, rõ nét */
.logo-text .logo,
.logo-text a.logo {
    display: inline-block;
    line-height: 0;
}
.logo-text .logo img,
.site-logo {
   
    width: auto !important;
    max-height: 80px !important;
    max-width: 100% !important;
    display: block;
}
/* Ẩn nav-toggle & mobile-auth trên desktop */
.nav-toggle,
.header-nav .mobile-auth {
    display: none !important;
}

/* Bố cục header: logo trái — nút auth phải (trong container) */
.header .container {
    position: relative;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    gap: 20px;
}

.header-account {
    position: static !important;
    display: flex !important;
    align-items: center;
    flex-shrink: 0;
}

.header-account .buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-account .buttons .user-name {
    font-weight: 600;
    color: #333;
    margin-right: 6px;
    font-size: 14px;
}

/* -----------------------------
   NAVIGATION (desktop) — cân đối
   ----------------------------- */
.header-nav {
    background: #f5f5f5;
    border-bottom: 1px solid #e6e6e6;
}

.header-nav .container {
    position: relative;
}

.header-nav #main-menu.menus {
    display: flex !important;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.header-nav #main-menu > li {
    position: relative;
    display: inline-block;
}

.header-nav #main-menu > li > a {
    display: block;
    padding: 14px 18px;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    transition: all 0.15s;
}

.header-nav #main-menu > li > a:hover,
.header-nav #main-menu > li.active > a {
    color: #fff;
    background: #CE7A58;
}

.header-nav #main-menu > li.active > a {
    background: #CE7A58;
    color: #fff;
    border-radius: 4px 4px 0 0;
}

.header-nav #main-menu .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    list-style: none;
    margin: 0;
    padding: 6px 0;
    z-index: 100;
}

.header-nav #main-menu > li:hover .dropdown-menu {
    display: block;
}

.header-nav #main-menu .dropdown-menu li a {
    display: block;
    padding: 9px 16px;
    font-size: 14px;
    color: #333;
    text-decoration: none;
}

.header-nav #main-menu .dropdown-menu li a:hover {
    background: #faf3f2;
    color: #CE7A58;
}

/* -----------------------------
   NEWS SLIDER — Slick prev/next arrows
   ----------------------------- */
.hotnews-top .list-news {
    position: relative;
    padding: 0 40px;
}

.hotnews-top .slick-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fff !important;
    border: 1px solid #ddd !important;
    color: #bf3b30 !important;
    font-size: 0;
    z-index: 10;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: all 0.15s;
    padding: 0;
    line-height: 1;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    outline: none;
}

.hotnews-top .slick-arrow:hover {
    background: #bf3b30 !important;
    color: #fff !important;
    border-color: #bf3b30 !important;
}

.hotnews-top .slick-prev {
    left: 5px;
}

.hotnews-top .slick-next {
    right: 5px;
}

.hotnews-top .slick-arrow::before {
    font-family: FontAwesome;
    font-size: 16px;
    line-height: 1;
    color: inherit;
    opacity: 1;
}

.hotnews-top .slick-prev::before {
    content: "\f104"; /* fa-angle-left */
}

.hotnews-top .slick-next::before {
    content: "\f105"; /* fa-angle-right */
}

/* Ẩn chữ "Previous"/"Next" text mặc định */
.hotnews-top .slick-arrow {
    text-indent: -9999px;
    overflow: hidden;
}

.hotnews-top .slick-arrow::before {
    text-indent: 0;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* -----------------------------
   RESPONSIVE — MOBILE
   ----------------------------- */
@media (max-width: 991px) {
    .nav-toggle { display: inline-block !important; }
    .header-account { display: none !important; }
    .logo-text .logo img { height: 42px; }
    .header-content { gap: 10px; }

    /* Override slide-out drawer gốc, cho nav ở vị trí tĩnh dưới header */
    .header-nav {
        position: static !important;
        left: auto !important;
        top: auto !important;
        bottom: auto !important;
        width: 100% !important;
        visibility: visible !important;
        opacity: 1 !important;
        overflow: visible !important;
        z-index: auto !important;
        background: #fff;
        border-bottom: 1px solid #e6e6e6;
        padding: 0;
    }
    .header-nav .container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
    }
    .header-nav .pull-left {
        float: none !important;
        width: 100% !important;
    }
    /* Menu ẩn mặc định, hiện khi active */
    .header-nav #main-menu.menus,
    .header-nav .menus {
        display: none !important;
        flex-direction: column !important;
        width: 100% !important;
        background: #fff !important;
        border-top: 1px solid #e6e6e6;
        margin: 0 !important;
        padding: 0 !important;
        list-style: none !important;
    }
    .header-nav #main-menu.menus.active,
    .header-nav .menus.active {
        display: flex !important;
    }
    .header-nav #main-menu > li,
    .header-nav .menus > li {
        display: block !important;
        width: 100% !important;
        float: none !important;
        border-bottom: 1px solid #f0f0f0 !important;
    }
    .header-nav #main-menu > li > a,
    .header-nav .menus > li > a {
        padding: 12px 20px !important;
        font-size: 14px !important;
        color: #333 !important;
        background: transparent !important;
        height: auto !important;
    }
    .header-nav #main-menu > li.active > a,
    .header-nav #main-menu > li:hover > a,
    .header-nav .menus > li.active > a,
    .header-nav .menus > li:hover > a {
        background: #CE7A58 !important;
        color: #fff !important;
        border-radius: 0 !important;
    }
    .header-nav .menus .dropdown-menu {
        position: static !important;
        display: none;
        box-shadow: none !important;
        border: none !important;
        border-top: 1px solid #f0f0f0 !important;
        background: #fafafa !important;
        padding: 0 !important;
        border-radius: 0 !important;
        width: 100% !important;
        float: none !important;
        top: 0 !important;
        left: 0 !important;
        min-width: 100% !important;
    }
    .header-nav .menus > li:hover .dropdown-menu,
    .header-nav .menus > li.active .dropdown-menu {
        display: block !important;
    }
    .header-nav .menus .dropdown-menu > li {
        border-bottom: 1px solid #f0f0f0;
    }
    .header-nav .menus .dropdown-menu > li > a {
        display: block !important;
        padding: 10px 32px !important;
        font-size: 13px !important;
        color: #333 !important;
        background: transparent !important;
    }
    .header-nav .menus .dropdown-menu > li:hover > a {
        background: #faf3f2 !important;
        color: #bf3b30 !important;
    }
    .header-nav #main-menu .dropdown-menu li a {
        padding: 10px 32px;
        font-size: 13px;
    }
    .header-nav #main-menu .mobile-auth {
        padding: 14px 20px;
        background: #faf3f2;
    }
    .header-nav #main-menu .mobile-auth .mobile-auth-buttons {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    .header-nav #main-menu .mobile-auth a {
        display: block;
        padding: 10px 16px;
        text-align: center;
        border-radius: 6px;
        font-weight: 600;
        font-size: 14px;
    }
    .header-nav #main-menu .mobile-auth .btn-register {
        background: #bf3b30;
        color: #fff !important;
    }
    .header-nav #main-menu .mobile-auth .btn-login {
        background: #fff;
        color: #bf3b30 !important;
        border: 1px solid #bf3b30;
    }
}

@media (max-width: 480px) {
    .logo-text .logo img { height: 36px; }
    .header { padding: 10px 0; }
}

/* -----------------------------
   STICKY FOOTER: footer luôn dính đáy
   ----------------------------- */
html, body {
    height: 100%;
    margin: 0;
}
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.page-wrap {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}
.page-wrap > .footer,
body > .footer {
    flex-shrink: 0;
    margin-top: auto;
}

/* -----------------------------
   TRANG ĐĂNG NHẬP — gọn gàng, cân đối
   ----------------------------- */
.auth-page {
    padding: 50px 15px 70px;
    background: #fff;
    min-height: 500px;
}

.auth-wrap {
    max-width: 420px;
    width: 100%;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.08);
    border: 1px solid #ececec;
    overflow: hidden;
}

/* Header gọn — không chiếm quá nhiều không gian */
.auth-header {
    padding: 20px 24px 14px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
    background: #fff;
}

.auth-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #bf3b30;
    letter-spacing: 0.2px;
}

.auth-header h2 i {
    margin-right: 8px;
    color: #bf3b30;
}

.auth-header::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: #bf3b30;
    margin: 10px auto 0;
    border-radius: 2px;
}

.auth-body {
    padding: 22px 24px 26px;
}

.auth-body .form-group {
    margin-bottom: 14px;
}

.auth-body label {
    display: block;
    font-weight: 600;
    font-size: 13px;
    color: #444;
    margin-bottom: 6px;
}

/* Input có icon bên trái */
.auth-input-wrap {
    position: relative;
}

.auth-input-wrap .form-control {
    width: 100%;
    height: 42px;
    padding: 10px 14px 10px 40px;
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    font-size: 14px;
    background: #fafbfc;
    color: #333;
    transition: all 0.15s;
}

.auth-input-wrap .form-control:focus {
    outline: none;
    border-color: #bf3b30;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(191,59,48,0.1);
}

.auth-input-wrap .auth-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #bf3b30;
    font-size: 14px;
    pointer-events: none;
}

/* Nút đăng nhập */
.btn-auth {
    width: 100%;
    height: 44px;
    background: #bf3b30;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 6px;
    transition: all 0.15s;
    box-shadow: 0 2px 6px rgba(191,59,48,0.2);
}

.btn-auth:hover,
.btn-auth:focus {
    background: #a02a20;
    color: #fff;
    box-shadow: 0 4px 10px rgba(191,59,48,0.3);
    transform: translateY(-1px);
}

.btn-auth:active {
    transform: translateY(0);
}

.btn-auth i {
    margin-right: 6px;
}

/* OTP input */
.auth-body > form > .form-group > .form-control,
.auth-body .form-group > .form-control {
    width: 100%;
    height: 42px;
    padding: 10px 14px;
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    font-size: 14px;
    background: #fafbfc;
    color: #333;
    transition: all 0.15s;
    text-align: center;
    letter-spacing: 2px;
    font-weight: 600;
}

.auth-body > form > .form-group > .form-control:focus,
.auth-body .form-group > .form-control:focus {
    outline: none;
    border-color: #bf3b30;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(191,59,48,0.1);
}

/* Alert */
.auth-body .alert {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 14px;
    border: 1px solid transparent;
    display: flex;
    align-items: center;
    gap: 8px;
}

.auth-body .alert-danger {
    background: #fdecea;
    color: #a02a20;
    border-color: #f5c6c2;
}

.auth-body .alert-info {
    background: #e7f3fe;
    color: #1b5dad;
    border-color: #bee0fb;
}

/* Responsive */
@media (max-width: 480px) {
    .auth-page { padding: 24px 12px 40px; }
    .auth-wrap { border-radius: 10px; }
    .auth-header { padding: 16px 18px 12px; }
    .auth-header h2 { font-size: 18px; }
    .auth-body { padding: 18px 18px 22px; }
}
