/* Internal Pages CSS */
.sub-banner {
    height: 300px;
    background: url('../images/banner.png') no-repeat center center/cover;
    position: relative;
    padding-top: 80px;
    /* Header height */
}

.sub-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
}

.breadcrumb {
    background: #f8f9fa;
    padding: 1rem 0;
}

.breadcrumb-list {
    display: flex;
    font-size: 0.9rem;
    color: #6c757d;
}

.breadcrumb-item+.breadcrumb-item::before {
    content: "/";
    padding: 0 0.5rem;
}

.breadcrumb-item a {
    color: #666;
    transition: color 0.3s;
}

.breadcrumb-item a:hover {
    color: #0d6efd;
}

.breadcrumb-item.active {
    color: #333;
    font-weight: 500;
}

/* Sidebar - Simple & Atmospheric Style */
.sidebar-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
    position: relative;
    display: block;
    background: none;
    padding-left: 0;
}

.sidebar-title::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: #0d6efd;
}

.sidebar-title::before {
    display: none;
}

.sidebar-menu {
    border: none;
    background: transparent;
    box-shadow: none;
}

.sidebar-menu a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
    background-color: #f8f9fa;
    color: #555;
    font-size: 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.sidebar-menu a:last-child {
    border-bottom: 1px solid transparent;
}

/* .sidebar-menu a::after {
    content: '\f054';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.8rem;
    opacity: 0.4;
    transition: all 0.3s;
} */

.sidebar-menu a:hover {
    background-color: #ecf5ff;
    color: #0d6efd;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    padding-left: 1.5rem;
}

/* .sidebar-menu a:hover::after {
    opacity: 1;
    transform: translateX(3px);
} */

.sidebar-menu a.active {
    background-color: #ecf5ff;
    color: #0d6efd;
    padding-left: 1.5rem;
}

/* .sidebar-menu a.active::after {
    color: #0d6efd;
    opacity: 1;
} */

/* Remove old decorative elements */
.sidebar-menu a::before {
    display: none;
}

/* Product List */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.product-card {
    background: #fff;
    border: 1px solid #eee;
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.product-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.product-card .card-body {
    padding: 1rem;
    text-align: center;
}

.product-card h3 {
    font-size: 1rem;
    color: #333;
}

/* Product Detail */
.product-gallery img {
    width: 100%;
    border: 1px solid #eee;
}

.product-info h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #333;
}

.product-meta {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.product-meta p {
    margin-bottom: 0.5rem;
}

.btn-consult {
    display: inline-block;
    background: #0d6efd;
    /* Primary color */
    color: #fff;
    padding: 0.75rem 2rem;
    border-radius: 4px;
    transition: background 0.3s;
}

.btn-consult:hover {
    background: #0b5ed7;
    color: #fff;
}


/* News List */
.news-item {
    display: flex;
    gap: 2rem;
    padding: 2rem 0;
    border-bottom: 1px solid #eee;
    transition: background 0.3s;
}

.news-item:hover {
    background: #fcfcfc;
}

.news-thumb {
    width: 240px;
    height: 160px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 4px;
}

.news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.news-item:hover .news-thumb img {
    transform: scale(1.1);
}

.news-info {
    flex: 1;
}

.news-info h3 {
    margin-bottom: 0.75rem;
}

.news-info h3 a {
    color: #333;
    transition: color 0.3s;
}

.news-info h3 a:hover {
    color: #0d6efd;
}

.news-date {
    font-size: 0.9rem;
    color: #999;
    margin-bottom: 1rem;
}

.news-desc {
    color: #666;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-clamp: 2;
    /* Standard property */
}

/* News Detail */
.news-detail-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

.news-detail-header h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #333;
}

.news-detail-meta {
    color: #999;
    font-size: 0.9rem;
}

.news-detail-meta span {
    margin: 0 1rem;
}

.detail-body {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 3rem;
    text-align: justify;
}

.detail-body p {
    margin-bottom: 1.5rem;
}

.detail-nav {
    border-top: 1px solid #eee;
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
}

.detail-nav a {
    color: #666;
}

.detail-nav a:hover {
    color: #0d6efd;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #ddd;
    color: #666;
    border-radius: 4px;
    transition: all 0.3s;
}

.page-link:hover,
.page-link.active {
    background: #0d6efd;
    color: #fff;
    border-color: #0d6efd;
}

.pagination {}

.pagination li {
    list-style: none;
    border: 1px solid #ddd;
}

.pagination li a {
    display: block;
    padding: 4px 10px;
}

.pagination li.active {
    background-color: #0d6efd;
    color: #fff;
    border-color: #0d6efd;
}

.pagination li.active a {
    color: #fff;
}


/* Responsive */
@media (max-width: 991px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 5px;
    }
    .product-card img{
        height: 48vw;
    }
    .product-card h3{
        font-size: 13px;
    }

    .news-item {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 0;
    }

    .news-thumb {
        width: 100%;
        height: 200px;
    }
}

@media (max-width: 767px) {
    .sub-banner {
        height: 200px;
        /* margin-top: 60px; */
    }

    /* .product-grid {
        grid-template-columns: 1fr;
    } */

    .product-gallery,
    .product-info {
        margin-bottom: 2rem;
    }
}

@media (max-width:1024px) {
    .news-detail-header {
        margin-bottom: 1rem;
        padding-bottom: 0;
    }

    .news-detail-header h1 {
        font-size: 1.4rem;
        color: #333;
    }

    .detail-body {
        font-size: 0.875rem;
        line-height: 1.8;
        color: #444;
        margin-bottom: 0;
    }
}