/* ============================================
   CSS CÁC TRANG PHỤ (OTHER PAGES)
   ============================================ */

/*CSS bg-header-hero*/
/* Base styles */
.bg-header-hero {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 450px;
    overflow: hidden;
    background: url(https://images2.thanhnien.vn/528068263637045248/2023/10/13/a1-16972142965971884320133.jpg);
    background-size: cover;
    background-position: center;
    z-index: -1;
}

.bg-header-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(46, 54, 143, 1) 10%, rgba(46, 54, 143, 0.8) 100%);
}

.bg-header-hero .shape-bot-white {
    position: absolute;
    bottom: -9px;
    left: 0;
    width: 100%;
    z-index: 1;
}

/* Modifier for inner pages */
.bg-header-hero.inner-page {
    height: 320px;
}

/* Modifier for auth pages */
.bg-header-hero.hero-auth-page {
    height: 400px;
}

/* Responsive styles */
@media (max-width: 575px) {

    .bg-header-hero {
        height: 280px;
    }

    .bg-header-hero.inner-page {
        height: 220px;
    }
}

@media (min-width: 576px) and (max-width: 767px) {
    .bg-header-hero {
        height: 320px;
    }

    .bg-header-hero.inner-page {
        height: 220px;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .bg-header-hero {
        height: 360px;
    }

    .bg-header-hero.inner-page {
        height: 240px;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .bg-header-hero {
        height: 380px;
    }

    .bg-header-hero.inner-page {
        height: 268px;
    }
}

@media (min-width: 1200px) and (max-width: 1499px) {
    .bg-header-hero {
        height: 400px;
    }

    .bg-header-hero.inner-page {
        height: 288px;
    }
}

@media (min-width: 1500px) and (max-width: 1900px) {
    .bg-header-hero {
        height: 420px;
    }
}

/*End CSS bg-header-hero*/

/* CSS PAGE HEADER */
.page-header {
    background: transparent;
    text-align: center;
    color: var(--white);
    position: relative;
    z-index: 1;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0px 10%;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 10px;
    font-size: 14px;
}

.breadcrumb li a {
    color: #e0e0e0;
}

.breadcrumb li span {
    color: var(--white);
    font-weight: bold;
}

.breadcrumb li::after {
    content: '/';
    margin-left: 10px;
    color: rgba(255, 255, 255, 0.5);
}

.breadcrumb li:last-child::after {
    display: none;
}

/* KẾT THÚC CSS PAGE HEADER */


/* CSS SHOP/PRODUCTS PAGE */
.sidebar {
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    height: fit-content;
}

.filter-group h3 {
    font-size: 16px;
    margin-bottom: 15px;
    color: var(--primary-color);
    border-bottom: 2px solid var(--light-bg);
    padding-bottom: 10px;
}

.category-list li {
    margin-bottom: 10px;
}

.category-list li a {
    color: var(--text-color);
    font-size: 14px;
    display: block;
    padding: 5px 0;
}

.category-list li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

/* KẾT THÚC CSS SHOP/PRODUCTS PAGE */





/* CSS BACK TO TOP BUTTON */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(-5px);
}

.back-to-top:hover {
    background: var(--secondary-color);
    transform: translateY(-8px);
    color: var(--white);
}

/* KẾT THÚC CSS BACK TO TOP BUTTON */

.sub-info-header-pchild {
    font-size: 18px;
    color: white;
    letter-spacing: 0.5px;
}

/* ============================================
   KẾT THÚC CSS CÁC TRANG PHỤ (OTHER PAGES)
   ============================================ */
/* ===== Pagination (Reusable) ===== */
.pagination-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 50px;
}

.pagination-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f2f3;
    border: none;
    border-radius: 8px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-btn:hover {
    background: white;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-btn i {
    font-size: 14px;
}

.pagination-number {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    background: #f0f2f3;
    border-radius: 8px;
    color: #333;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    border: solid 1px transparent;
}

.pagination-number:hover {
    background: white;
    color: var(--primary-color-text);
    border: solid 1px var(--primary-color-text);
}

.pagination-number.active {
    background: var(--primary-color);
    color: white;
}

/* ============================================
   SKILLS COMPONENT (Dùng chung cho Home & About)
   ============================================ */

.skills-grid-12 {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: var(--spacing-lg);
}

.skill-card {
    background: var(--white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition-normal);
    border: 2px solid #eef0f6;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    position: relative;
}

.skill-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(46, 50, 147, 0.1);
}

.skill-icon {
    width: 64px;
    height: 64px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--primary-color-text);
    margin-bottom: var(--spacing-md);
    transition: var(--transition-fast);
}

.skill-card:hover .skill-icon {
    background: var(--primary-color);
    color: var(--white);
    transform: scale(1.1);
}

.skill-card h3 {
    font-size: 16px;
    font-weight: 900;
    color: var(--text-color);
    margin-bottom: var(--spacing-sm);
    line-height: 1.5;
}

.skill-card p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0 0 8px 0;
}

.skill-detail-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition-fast);
    margin-top: auto;
    padding: 6px 0;
}

.skill-detail-btn i {
    font-size: 11px;
    transition: transform 0.2s;
}

.skill-detail-btn:hover {
    color: #d69000;
}

.skill-detail-btn:hover i {
    transform: translateX(4px);
}

/* ============================================
   RESPONSIVE SKILLS (RANGE-BASED)
   ============================================ */
@media (min-width: 1500px) and (max-width: 1900px) {
    .skills-grid-12 {
        gap: 16px;
    }

    .skill-card {
        padding: 20px;
    }
}

/* Desktop Laptop: 1200px - 1499px */
@media (min-width: 1200px) and (max-width: 1499px) {
    .skills-grid-12 {
        gap: 12px;
    }

    .skill-card {
        padding: 12px;
    }
}

/* Laptop nhỏ: 992px - 1199px */
@media (min-width: 992px) and (max-width: 1199px) {
    .skills-grid-12 {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--spacing-md);
    }

    .skill-card {
        padding: var(--spacing-md);
    }
}

/* Tablet: 768px - 991px */
@media (min-width: 768px) and (max-width: 991px) {
    .skills-grid-12 {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

    .skill-card {
        padding: 20px 15px;
    }

    .skill-icon {
        width: 56px;
        height: 56px;
        font-size: 24px;
        margin-bottom: 15px;
    }
}

/* Mobile lớn: 576px - 767px */
@media (min-width: 576px) and (max-width: 767px) {
    .skills-grid-12 {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .skill-card {
        padding: 15px;
    }

    .skill-icon {
        width: 54px;
        height: 54px;
        font-size: 22px;
        margin-bottom: 12px;
    }
}

/* Mobile nhỏ: < 575px */
@media (max-width: 575px) {
    .skills-grid-12 {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .skill-card {
        padding: 12px 8px;
    }

    .skill-icon {
        width: 52px;
        height: 52px;
        font-size: 20px;
        margin-bottom: 8px;
    }

    .skill-detail-btn {
        display: none;
    }
}


/*Responsive các thành phần khác*/
@media(max-width:575px) {
    .page-header h1 {
        font-size: 1.7rem;
        line-height: 1.35;
    }


    .sub-info-header-pchild {
        font-size: 15px;
    }

    .page-header {
        padding: 0px 12px;
        height: 140px;
    }
}

@media (min-width:576px) and (max-width: 767px) {
    .page-header h1 {
        font-size: 1.8rem;
    }


    .sub-info-header-pchild {
        font-size: 15px;
    }

    .page-header {
        padding: 0px 28px;
        height: 140px;
    }
}

@media (min-width:768px) and (max-width: 991px) {
    .page-header h1 {
        font-size: 2.1rem;
    }

    .sub-info-header-pchild {
        font-size: 16px;
    }

    .page-header {
        height: 180px;
    }

}

@media (min-width:992px) and (max-width: 1199px) {
    .page-header h1 {
        font-size: 2.3rem;
    }

    .sub-info-header-pchild {
        font-size: 17px;
    }

    .page-header {
        height: 190px;
    }
}

@media (min-width:1200px) and (max-width: 1499px) {


    .page-header {
        height: 190px;
    }

    .sub-info-header-pchild {
        font-size: 17px;
    }
}