/* ============================================
   Nhan Hoa Services Page Styles
   ============================================ */
/* Header Section */
.services-title {
    font-size: clamp(24px, 4vw, 48px);
    font-weight: 700;
    color: #1E232D;
    margin-bottom: 1rem;
}

.services-subtitle {
    font-size: clamp(14px, 1.5vw, 16px);
    color: #00172F;
}

/* Sidebar Styles */
.sidebar-section {
    margin-bottom: 2rem;
    background: white;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.sidebar-title {
    font-size: clamp(18px, 2vw, 20px);
    font-weight: 700;
    color: #00172F;
}

/* Category List */
.category-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.category-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.75rem 1rem;
    border-radius: 16px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.category-item:hover {
    background-color: #4ABAB9;
    color: white;
}

.category-item.active {
    background-color: #4ABAB9;
    color: white;
    border-color: #4ABAB9;
    font-weight: 500;
}

.category-item.active {
    background-color: #4ABAB9;
    color: white;
    border-color: #4ABAB9;
    font-weight: 500;
}

.category-item img {
    width: 24px;
    height: 24px;
    aspect-ratio: 1/1;
    object-fit: contain;
}

.category-item.active img, .category-item:hover img {
    filter: brightness(0) invert(1);
}

/* Feature Tags */
.feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.feature-tag {
    display: inline-block;
    padding: 4px 8px;
    background-color: #fff;
    color: #0091A2;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    text-decoration: none;
    font-size: clamp(12px, 1.2vw, 14px);
    font-weight: 500;
    transition: all 0.3s ease;
}

.feature-tag:hover {
    background-color: #0091A2;
    color: #fff;
    border-color: #0091A2;
}

/* Service Card */
.service-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

/* Recommended Badge */
.recommended-badge {
    position: absolute;
    top: 0;
    right: 0;
    background-color: #dc3545;
    color: #fff;
    padding: 0.25rem 2rem;
    border-radius: 0 30px 0 30px;
    font-size: clamp(12px, 1.2vw, 14px);
    font-weight: 600;
    text-transform: uppercase;
    z-index: 1;
}
form.form-whois-price {
    display: flex;
    flex-grow: 1;
}
/* Filter card */
.service-item{
    transition: all .35s ease;
}

.service-item.hide{
    opacity:0;
    transform:translateY(20px);
    pointer-events:none;
    position:absolute;
}

.feature-tag.active{
    background:#0091A2;
    color:#fff;
}

.service-grid{
    position:relative;
}


/* Service Icon */
.service-icon {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-weight: 600;
    background: #0091A2;
    padding: 13px;
}

.service-icon.icon-com {
    background-color: #28a745;
    color: #fff;
}

.service-icon.icon-wp {
    background-color: #e7f3ff;
    color: #007bff;
}

.service-icon.icon-lock {
    background-color: #e7f3ff;
    color: #007bff;
}

.service-icon.icon-lock i {
    font-size: clamp(1.2rem, 1.5vw, 1.5rem);
}

.service-icon.icon-calendar {
    background-color: #e7f3ff;
    color: #007bff;
}

.service-icon.icon-calendar i {
    font-size: clamp(1.2rem, 1.5vw, 1.5rem);
}

.service-icon.icon-transfer {
    background-color: #e7f3ff;
    color: #007bff;
}

.service-icon.icon-transfer i {
    font-size: clamp(1.2rem, 1.5vw, 1.5rem);
}

/* Service Title */
.service-title {
    font-size: clamp(14px, 1.5vw, 18px);
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
}

/* Service Features */
.service-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.service-feature-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background-color: #EFFAFD;
    color: #666;
    border-radius: 4px;
    font-size: clamp(8px, 0.9vw, 12px);
    font-weight: 500;
}

/* Service Description */
.service-description {
    color: black;
    font-size: clamp(12px, 1.3vw, 14px);
    line-height: 1.6;
    margin-bottom: 1rem;
    flex-grow: 1;
}

/* Service Price */
.service-price span {
     background: #FFD2B3;
    padding: 5px 14px;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 3px;
    display: block;
    width: fit-content;
}

.service-price strong {
    display: block;
    font-size: clamp(16px, 2.5vw, 22px);
    color: #1E232D;
}
.services-header.mb-5 {
    padding-top: 30px;
}
/* Service Search */
.service-search {
    margin-top: auto;
}

.service-search .input-group {
    margin-top: 1rem;
}
.service-search input{
    font-size: 1rem;
    height: 43px;
}
.service-search .form-control {
    border-radius: 6px 0 0 6px;
    border: 1px solid #ddd;
    padding: 0.5rem 1rem;
}

.service-search .btn {
    border-radius: 0 6px 6px 0;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    height: 43px;
}

/* Button Styles */
.btn-submit {
    border: 1px solid #00172F;
    background-color: #00172F;
    color: var(--white);
}

.btn-submit:hover {
    background-color: #4ABAB9;
    color: white;
    border-color: #4ABAB9;
}
.btn-block {
    border-radius: 0 16px 16px 16px;
}


/* Pagination */
.services-pagination {
    margin-top: 2rem;
}

.services-pagination .pagination {
    margin: 0;
}

.services-pagination .page-link {
    color: #007bff;
    border-color: #dee2e6;
    padding: 0.5rem 1rem;
}

.services-pagination .page-item.active .page-link {
    background-color: #007bff;
    border-color: #007bff;
    color: #fff;
}

.services-pagination .page-link:hover {
    color: #0056b3;
    background-color: #e9ecef;
    border-color: #dee2e6;
}
/* off-canvas menu */
/* nút filter */

.filter-toggle{
    display:none;
    width:100%;
    padding:12px;
    background:#0d6efd;
    color:#fff;
    border:none;
    border-radius:6px;
    margin-bottom:15px;
    width: fit-content;
}

/* overlay */

.filter-overlay{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.45);
    opacity:0;
    visibility:hidden;
    transition:.3s;
    z-index:998;
}

.filter-overlay.active{
    opacity:1;
    visibility:visible;
}

/* sidebar */

.sidebar-offcanvas{
    background:#fff;
}

/* header */

.offcanvas-header{
    display:none;
    justify-content:space-between;
    align-items:center;
    padding:15px;
    border-bottom:1px solid #eee;
}
.sidebar-content{
    padding:20px;
    box-shadow: unset;
    padding: 0;
}
.landing-price-all a.btn{
    height: 38px;
    font-size: 1rem;
    padding: 0px 10px;
    line-height: normal;
    align-items: center;
    display: flex;
    justify-content: center;
}
/* MOBILE */

@media(max-width:768px){

    .filter-toggle{
        display:block;
    }

    .sidebar-wrap{
        position:static;
    }

    .sidebar-offcanvas{

        position:fixed;
        top:0;
        left:-320px;

        width:300px;
        height:100%;

        overflow-y:auto;

        background:#fff;

        z-index:999;

        transition:.35s;

        box-shadow:0 0 20px rgba(0,0,0,.15);

    }

    .sidebar-offcanvas.active{
        left:0;
    }

    .offcanvas-header{
        display:flex;
    }

    

}
@media (min-width: 1200px) {
    
    .container, .container-sm, .container-md, .container-lg, .container-xl {
        max-width: 1400px;
    }
    
}
/* Responsive Design */
@media (max-width: 992px) {
    .services-sidebar {
        position: static;
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .category-list {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .category-item {
        flex: 1;
        min-width: 150px;
        justify-content: start;
    }

    .feature-tags {
        justify-content: start;
    }
    .mb-5, .my-5 {
        margin-bottom: 2rem !important;
    }
    .service-item {
        margin-bottom: 2rem;
    }
    .service-title{
        font-size: clamp(16px, 1.5vw, 20px);
    }
    .service-feature-badge{
        font-size: clamp(10px, 0.9vw, 12px);
    }
    .service-description{
        font-size: clamp(14px, 1.3vw, 14px);
    }
    .category-filter{
        padding: 10px;
    }
    .service-card.featured-card > .row {
        gap: 1rem;
    }
    .service-price strong{
            font-size: clamp(20px, 2.5vw, 22px);
    }
    .landing-price-all .price-all-content .container {
        padding-left: 0px;
        padding-right: 0px;
    }
}

@media (max-width: 576px) {
    .nhan-hoa-services {
        padding: 1rem 0;
    }

    .service-card {
        padding: 1rem;
    }

    .services-sidebar {
        padding: 1rem;
    }
}
