/* Premium reskin stylesheet for dichvucongkekhai.me */

/* --- GLOBAL FONT --- */
body, input, button, select, textarea {
    font-family: 'Lexend Deca', 'Inter', sans-serif !important;
}

/* --- HEADER DESIGN --- */
.header {
    background-color: #ffffff !important;
    border-bottom: 1px solid #e9ecef !important;
    padding: 12px 0 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
}

.header .logo img {
    max-height: 75px !important;
    width: auto !important;
    object-fit: contain !important;
}

@media (max-width: 768px) {
    .header .logo img {
        max-height: 65px !important;
    }
}

/* --- HERO BANNER --- */
.hero-banner {
    background-color: #ce7a58 !important;
    background-image: url('/theme/img/home/banner.jpg') !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
    padding: 35px 0 !important;
    position: relative;
    border-bottom: 3px solid #b25d37 !important;
}

/* Login button in banner (Screenshot 1: solid white pill with theme text) */
.btn-login-white {
    background-color: #ffffff !important;
    color: #ce7a58 !important;
    border: none !important;
    padding: 8px 24px !important;
    border-radius: 4px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-transform: none !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.2s ease-in-out !important;
    display: inline-block !important;
}

.btn-login-white:hover {
    background-color: #f8f9fa !important;
    color: #b25d37 !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15) !important;
    transform: translateY(-1px) !important;
    text-decoration: none !important;
}

/* --- SEARCH BAR --- */
.box-search.-adv {
    background: #ffffff !important;
    border-radius: 4px !important;
    border: 1px solid #cccccc !important;
    padding: 0 !important;
    box-shadow: none !important;
    position: relative !important;
    display: flex !important;
    align-items: stretch !important;
    height: 48px !important;
    overflow: hidden !important;
}

.search-input {
    border: none !important;
    outline: none !important;
    height: 100% !important;
    font-size: 15px !important;
    color: #333333 !important;
    background: transparent !important;
    flex: 1 !important;
    padding: 0 15px !important;
    width: 100% !important;
}

.twitter-typeahead {
    flex: 1 !important;
    display: block !important;
    height: 100% !important;
}

.search-input::placeholder {
    color: #999999 !important;
}

/* Search button magnifying glass */
.btn-search {
    position: relative !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
    background: #f5f5f5 !important;
    border: none !important;
    border-left: 1px solid #cccccc !important;
    border-radius: 0px !important;
    width: 48px !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    color: #666666 !important;
}

.btn-search .icon {
    font-size: 20px !important;
    color: #666666 !important;
}

/* Advanced Search link under search input */
.box-search .adv {
    position: relative !important;
    bottom: auto !important;
    right: auto !important;
    top: auto !important;
    border-left: 1px solid #cccccc !important;
    background: transparent !important;
    color: #333333 !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    text-decoration: none !important;
    padding: 0 15px !important;
    width: auto !important;
    height: auto !important;
    line-height: normal !important;
    display: flex !important;
    align-items: center !important;
    cursor: pointer !important;
}

.box-search .adv:hover {
    color: #ce7a58 !important;
    text-decoration: none !important;
}

@media (max-width: 768px) {
    .box-search .adv {
        display: none !important;
    }
}

/* --- THE THREE BUTTONS --- */
.hero-banner .actions {
    margin-top: 45px !important;
}

.hero-banner .actions .row {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 15px !important;
}

.hero-banner .actions .col-sm-4 {
    flex: 1 1 0% !important;
    padding: 0 !important;
}

@media (max-width: 768px) {
    .hero-banner .actions {
        margin-top: 10px !important;
    }
    .hero-banner .actions .row {
        flex-direction: column !important;
        gap: 10px !important;
    }
    .hero-banner .actions .col-sm-4 {
        width: 100% !important;
        flex: none !important;
    }
    .hero-banner .actions .btn {
        margin-top: 0px !important;
    }
}

.btn-fourth {
    background: #ffc251 !important;
    color: #1e2f41 !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    padding: 14px 20px !important;
    border-radius: 8px !important; /* Rounded corners */
    border: 1px solid #e5a019 !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08) !important;
    text-align: center !important;
    width: 100% !important;
    transition: all 0.2s ease-in-out !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 52px !important;
    line-height: 1.3 !important;
    text-transform: none !important;
}

.btn-fourth:hover {
    background: #ffb83d !important;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15) !important;
    transform: translateY(-1.5px) !important;
    color: #1e2f41 !important;
    text-decoration: none !important;
}

/* --- NEWS SLIDER --- */
.hotnews-top {
    background-color: #f5f5f5 !important;
    background-image: url('/theme/img/bg-news.jpg') !important;
    background-size: cover !important;
    background-position: center right !important;
    padding: 25px 0 !important;
    border-bottom: 1px solid #e2e2e2 !important;
}

.list-news .wrap {
    background: #ffffff !important;
    border-radius: 8px !important;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.06) !important;
    border: 1px solid #e2e2e2 !important;
    padding: 20px 24px !important;
    transition: all 0.2s ease !important;
}

.list-news .wrap:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12) !important;
    transform: translateY(-2px) !important;
}

.post-title {
    color: #1e2f41 !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    line-height: 1.45 !important;
    text-decoration: none !important;
}

.post-title:hover {
    color: #ce7a58 !important;
    text-decoration: none !important;
}

.post-date {
    color: #8f969c !important;
    font-size: 13px !important;
    margin-top: 8px !important;
}

/* --- CÔNG DÂN SECTION --- */
.targetgroup-head {
    border-bottom: 3px solid #ce7a58 !important;
    padding-bottom: 10px !important;
    margin-bottom: 25px !important;
    text-align: center !important;
}

.targetgroup-title a {
    color: #ce7a58 !important;
    font-weight: 700 !important;
    font-size: 22px !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.targetgroup-body .wrap {
    background: #f8f9fa !important;
    border: 1.5px solid #e9ecef !important;
    border-radius: 10px !important;
    padding: 12px 20px 12px 60px !important;
    font-weight: 500 !important;
    font-size: 15px !important;
    color: #495057 !important;
    transition: all 0.2s ease-in-out !important;
    box-shadow: none !important;
    margin-bottom: 12px !important;
}

.targetgroup-body .wrap:hover {
    background: #fff8f5 !important;
    border-color: #ce7a58 !important;
    color: #ce7a58 !important;
    transform: translateX(4px) !important;
    text-decoration: none !important;
}

.targetgroup-body .icon {
    top: 50% !important;
    transform: translateY(-50%) !important;
    left: 18px !important;
}

/* --- REGISTRATION FORM & PROFILE STYLING (Screenshot 3 fixes) --- */
.form-card {
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03) !important;
    overflow: hidden !important;
}

.section-header {
    background: linear-gradient(135deg, #ffc251, #ffa800) !important;
    padding: 16px 24px !important;
}

.section-title {
    color: #1e2f41 !important;
    font-weight: 700 !important;
    font-size: 15px !important;
}

.custom-input, .custom-select {
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 6px !important;
    padding: 10px 14px !important;
    font-size: 14px !important;
    transition: border-color 0.2s ease !important;
}

.custom-input:focus, .custom-select:focus {
    border-color: #ffc251 !important;
    box-shadow: 0 0 0 3px rgba(255, 194, 81, 0.2) !important;
}

.commitment-card {
    border: 2px solid #28a745 !important;
    background-color: #f4fbf6 !important;
}

/* --- FOOTER --- */
.footer {
    background-color: #8B2E2E !important;
    color: white !important;
    padding: 20px 0 !important;
    margin-top: 30px !important;
}

.footer-bottom {
    background-color: #8B2E2E !important;
}

.footer-left,
.footer-right {
    text-align: left !important;
}

.footer-text {
    color: white !important;
    margin-bottom: 8px !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
}

.footer-text:last-child {
    margin-bottom: 0 !important;
}

@media (max-width: 768px) {
    .footer-left,
    .footer-right {
        text-align: center !important;
        margin-bottom: 15px !important;
    }

    .footer-text {
        font-size: 13px !important;
    }
}

/* --- TABBAR ON A SINGLE ROW --- */
.header-nav .menus {
    font-size: 15px !important;
}
.header-nav .menus > li > a {
    font-size: 15px !important;
    padding: 10px 12px !important;
    font-weight: 600 !important;
}

/* --- SELECT DROPDOWN FIX --- */
select.custom-select {
    height: 46px !important;
    padding: 8px 16px !important;
    border-radius: 3px !important;
    border: 1.5px solid #ced4da !important;
    background-color: #fff !important;
    font-size: 15px !important;
    color: #495057 !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 16px 12px !important;
    padding-right: 40px !important;
}

.custom-select,
.form-select {
    height: 46px !important;
    line-height: 1.5 !important;
}

@media (max-width: 991px) {
    .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    .hero-banner .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    .header .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    .header-nav .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}

/* --- MOBILE SPECIFIC FIXES (Matching Screenshot 2) --- */
@media (max-width: 768px) {
    /* 1. Safe margins padding for containers */
    .container,
    .hero-banner .container,
    .hotnews-top .container,
    .targetgroup-area .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    /* 2. Reset Bootstrap row negative margins to prevent spilling over */
    .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    /* 3. News Carousel Arrow buttons styled as dark transparent circles with white icons */
    .hotnews-top .slick-prev,
    .hotnews-top .slick-next {
        background: rgba(0, 0, 0, 0.65) !important;
        border-radius: 50% !important;
        width: 38px !important;
        height: 38px !important;
        z-index: 10 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border: none !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
    }
    .hotnews-top .slick-prev {
        left: 10px !important;
    }
    .hotnews-top .slick-next {
        right: 10px !important;
    }
    .hotnews-top .slick-prev::before {
        content: "\f104" !important; /* FontAwesome angle-left */
        font-family: "FontAwesome" !important;
        color: #ffffff !important;
        font-size: 22px !important;
        opacity: 1 !important;
    }
    .hotnews-top .slick-next::before {
        content: "\f105" !important; /* FontAwesome angle-right */
        font-family: "FontAwesome" !important;
        color: #ffffff !important;
        font-size: 22px !important;
        opacity: 1 !important;
    }
    
    /* Hide default text from slick buttons */
    .hotnews-top .slick-prev,
    .hotnews-top .slick-next {
        font-size: 0 !important;
        color: transparent !important;
    }
    
    /* 4. Target groups indentation */
    .targetgroup-box {
        padding: 10px 0 !important;
    }
    .targetgroup-body {
        padding: 0 10px !important;
    }
    .targetgroup-head {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
    
    /* 5. Tinh chỉnh phần tin tức nền hoa sen trên mobile */
    /* Kéo khoảng cách dòng trên dưới của khối hoa sen sát vào */
    .hotnews-top {
        padding: 4px 0 !important;
    }
    .hotnews-top .slick-slider {
        margin-bottom: 0 !important;
    }
    /* Kéo ngang gần full bề ngang màn hình */
    .hotnews-top .container {
        padding-left: 6px !important;
        padding-right: 6px !important;
    }
    .list-news .news-item {
        padding: 0 2px !important;
    }
    /* Kéo ngắn chiều cao của card tin tức trắng */
    .list-news .wrap,
    .list-news .news-item .wrap {
        padding: 10px 12px !important;
        height: auto !important;
        min-height: 60px !important;
        max-height: 90px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
    }
    .list-news .news-item .post-title {
        font-size: 13px !important;
        margin-bottom: 3px !important;
        line-height: 1.3 !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        font-weight: 600 !important;
    }
    .list-news .news-item .post-date {
        font-size: 10.5px !important;
        margin-top: 0px !important;
        margin-bottom: 0px !important;
    }
    /* Căn chỉnh lại các nút mũi tên điều hướng */
    .hotnews-top .slick-prev, 
    .hotnews-top .slick-next {
        width: 28px !important;
        height: 28px !important;
        background: rgba(0, 0, 0, 0.55) !important;
    }
    .hotnews-top .slick-prev {
        left: 4px !important;
    }
    .hotnews-top .slick-next {
        right: 4px !important;
    }
}

