/* Contact Page Styles */

/* Form Field Styles */
.form-control.rounded-3.border-light.bg-light {
    border: 1px solid #e9ecef;
    background-color: #f8f9fa;
    transition: all 0.2s ease;
}

.form-control.rounded-3.border-light.bg-light:focus {
    border-color: #0d6efd;
    background-color: #fff;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.1);
}

/* Form Button Styles */
.btn-primary.btn-lg.w-100.rounded-3.py-3.fw-bold {
    background-color: #0d6efd;
    border-color: #0d6efd;
    transition: all 0.3s ease;
}

.btn-primary.btn-lg.w-100.rounded-3.py-3.fw-bold:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
    transform: translateY(-1px);
}

/* Form Label Styles */
.form-label.small.fw-bold.text-dark {
    color: #212529;
    opacity: 0.8;
}

/* Product Knowledge Responsive Styles */
@media (max-width: 768px) {
    /* Change outer flex container to column on mobile */
    .product-knowledge-item .d-flex.gap-4 {
        flex-direction: column;
    }
    
    /* Change content wrapper flex to column on mobile */
    .product-knowledge-item .content-wrapper .d-flex.justify-content-between {
        flex-direction: column;
    }
    
    /* Add margin to date box on mobile */
    .product-knowledge-item .date-box {
        margin-bottom: 1rem;
        align-self: flex-start;
    }
    
    /* Add margin to image on mobile */
    .product-knowledge-item .image-box {
        margin-top: 1rem;
        width: 100%;
    }
    
    /* Make image responsive */
    .product-knowledge-item .image-box img {
        width: 100%;
        height: auto;
    }
}
/* News Detail Page Styles */

/* Hero Banner Styles */
.hero-banner {
    background-image: url('https://picsum.photos/1920/600?random=901');
    background-size: cover;
    background-position: center;
    height: 60vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    position: relative;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.7));
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 2.5rem;
    font-weight: bold;
    line-height: 1.3;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Article Section Styles */
.article-section {
    padding: 60px 0;
}

.article-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
    color: #212529;
}

.article-meta {
    text-align: center;
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.article-meta span {
    margin: 0 15px;
}

.article-meta i {
    display: none;
}

.article-intro {
    background-color: #fff;
    border: 1px solid #e9ecef;
    padding: 20px;
    margin-bottom: 40px;
}

.article-intro strong {
    font-weight: bold;
}

.article-keywords {
    border: none;
    padding: 0;
    margin: 0;
}

.article-keywords .text-primary {
    background-color: transparent;
    color: #000;
    padding: 0;
    border-radius: 0;
    margin: 0 5px 0 0;
    font-size: 1rem;
}

/* Article Content Styles */
.article-content {
    font-size: 1.15rem;
    line-height: 1.9;
    color: #495057;
}

.article-content p {
    margin-bottom: 25px;
    text-align: justify;
}

.article-content h4 {
    margin: 50px 0 25px 0;
    font-weight: bold;
    color: #0d6efd;
    font-size: 1.8rem;
    position: relative;
    padding-left: 20px;
}

.article-content h4::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 25px;
    background-color: #0d6efd;
    border-radius: 2px;
}

.article-content img {
    margin: 40px 0;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-content img:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
}

.article-content .img-caption {
    text-align: center;
    color: #6c757d;
    font-size: 0.95rem;
    margin-top: -30px;
    margin-bottom: 40px;
    font-style: italic;
}

/* Footer Styles */
.footer {
    background-color: #1a1a1a;
    color: white;
    padding: 60px 0 30px;
}

.footer .logo {
    width: 180px;
    margin-bottom: 30px;
}

.footer-section {
    margin-bottom: 40px;
}

.footer-section h6 {
    margin-bottom: 25px;
    font-weight: bold;
    color: #0d6efd;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 15px;
}

.footer-section ul li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: #0d6efd;
}

.footer-section ul li a {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #0d6efd;
    padding-left: 5px;
}

.social-icons {
    margin-top: 30px;
}

.social-icons a {
    color: white;
    margin-right: 20px;
    font-size: 1.4rem;
    width: 45px;
    height: 45px;
    line-height: 45px;
    text-align: center;
    background-color: #2d2d2d;
    border-radius: 50%;
    display: inline-block;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: #0d6efd;
    transform: translateY(-3px);
}

.contact-info {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid #333;
    background-color: #161616;
    padding-bottom: 30px;
}

.contact-info .info-item {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    padding: 15px;
    background-color: #1a1a1a;
    border-radius: 8px;
    border-left: 3px solid #0d6efd;
}

.contact-info .info-item i {
    font-size: 1.8rem;
    color: #0d6efd;
    margin-right: 20px;
    width: 40px;
    text-align: center;
}

.contact-info .info-item span {
    font-size: 0.95rem;
    line-height: 1.5;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid #333;
    color: #6c757d;
    font-size: 0.9rem;
}

/* News Detail Responsive Styles */
@media (max-width: 768px) {
    .hero-banner {
        height: 50vh;
        min-height: 300px;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .article-title {
        font-size: 2rem;
    }
    
    .article-meta {
        font-size: 0.85rem;
        padding: 10px 15px;
    }
    
    .article-meta span {
        display: block;
        margin: 5px 0;
    }
    
    .article-content {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    .article-content h4 {
        font-size: 1.4rem;
    }
    
    .article-intro {
        padding: 15px;
    }
    
    .footer {
        padding: 40px 0 20px;
    }
    
    .footer .logo {
        width: 150px;
    }
    
    .footer-section {
        margin-bottom: 30px;
    }
    
    .social-icons a {
        margin-right: 10px;
        font-size: 1.2rem;
        width: 40px;
        height: 40px;
        line-height: 40px;
    }
    
    .contact-info .info-item {
        flex-direction: column;
        text-align: center;
        padding: 10px;
    }
    
    .contact-info .info-item i {
        margin-right: 0;
        margin-bottom: 10px;
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-banner {
        height: 45vh;
        min-height: 250px;
    }
    
    .hero-content h1 {
        font-size: 1.5rem;
    }
    
    .article-title {
        font-size: 1.6rem;
    }
    
    .article-content h4 {
        font-size: 1.2rem;
    }
}

/* Product Detail Page Styles */
.hero-banner {
    background-size: cover;
    background-position: center;
    height: 60vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    position: relative;
}

.hero-banner .overlay {
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.7));
}

.hero-banner h1 {
    font-size: 2.5rem;
    font-weight: bold;
    line-height: 1.3;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Product Detail Styles */
.product-tabs .nav-link {
    transition: all 0.3s ease;
}

.product-tabs .nav-link:hover {
    background-color: #e9ecef;
}

.product-tabs .nav-link.active {
    border-color: #0d6efd;
}

.product-gallery-container {
    position: relative;
    padding: 0 45px;
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.gallery-arrow:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.gallery-arrow-left {
    left: -10px;
}

.gallery-arrow-right {
    right: -10px;
}

.product-gallery-thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 5px 0;
    scroll-snap-type: x mandatory;
}

.product-gallery-thumbs::-webkit-scrollbar {
    display: none;
}

.product-gallery-thumbs img {
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    scroll-snap-align: start;
}

.product-gallery-thumbs img:hover {
    border-color: #0d6efd;
    transform: scale(1.05);
}

.product-gallery-thumbs img.active {
    border-color: #0d6efd;
    box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.25);
}

/* Product Tags Styles */
.product-tags {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.product-tag {
    display: inline-block;
    padding: 8px 20px;
    background-color: #e9ecef;
    color: #495057;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.product-tag:hover {
    background-color: #dee2e6;
    color: #212529;
}

/* Product Description Styles */
.product-description {
    margin-top: 20px;
}

/* Product Details Styles */
.product-details-content {
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.product-details-content p {
    font-size: 1rem;
    line-height: 1.8;
    color: #333;
    text-align: justify;
}

.product-gallery-main {
    position: relative;
    overflow: hidden;
}

.product-gallery-main img {
    transition: transform 0.3s ease;
    cursor: zoom-in;
    object-fit: contain;
    width: 100%;
    height: 400px;
}

.product-gallery-main img:hover {
    transform: scale(1.02);
}

/* Product Detail Responsive Styles */
@media (max-width: 768px) {
    .hero-banner {
        height: 50vh;
        min-height: 300px;
    }
    
    .hero-banner h1 {
        font-size: 1.8rem;
    }
    
    .product-tabs .nav-link {
        font-size: 0.9rem;
        padding: 0.75rem;
    }
    
    .product-gallery-thumbs img {
        width: 60px;
        height: 60px;
    }
    
    .footer-contact-bar .col-md-4 {
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .hero-banner {
        height: 45vh;
        min-height: 250px;
    }
    
    .hero-banner h1 {
        font-size: 1.5rem;
    }
    
    .product-tabs {
        flex-direction: column;
    }
    
    .product-tabs .nav-item {
        width: 100%;
    }
    
    .footer .col-lg-3 {
        margin-bottom: 25px;
    }
}

/* News List Page Optimization */
.sidebar-container {
    background: transparent;
    margin-bottom: 30px;
    padding-right: 15px;
}

.sidebar-menu {
    border-top: none;
    margin-bottom: 40px;
}

.sidebar-item {
    border-bottom: 1px solid #f0f0f0;
}

.sidebar-item > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    color: #333;
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.sidebar-item.active > a {
    color: #0280DC; /* Specific blue from image */
}

.sidebar-item a i {
    color: #999;
    font-size: 1rem;
    font-weight: bold;
}

/* Second level menu */
.sidebar-sub-menu {
    padding-left: 0;
    padding-bottom: 10px;
    padding-top: 5px;
}

.sub-item > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0 12px 25px;
    color: #666;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.sub-item.active > a {
    color: #0280DC;
}

.sub-item a i {
    color: #999;
    font-size: 0.9rem;
}

/* Third level menu */
.sidebar-third-menu {
    padding-left: 0;
    margin-top: 0;
    padding-bottom: 5px;
}

.third-item a {
    display: block;
    font-size: 0.95rem;
    color: #888;
    padding: 10px 0 10px 50px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.third-item a:hover {
    color: #0280DC;
}

/* Menu Toggle Animation */
.sidebar-sub-menu,
.sidebar-third-menu {
    display: none; /* 默认隐藏 */
    overflow: hidden;
    transition: all 0.3s ease;
}

/* 激活或展开状态下显示 */
.sidebar-item.active > .sidebar-sub-menu,
.sidebar-item.open > .sidebar-sub-menu,
.sub-item.active > .sidebar-third-menu,
.sub-item.open > .sidebar-third-menu {
    display: block;
}

.sidebar-item > a, .sub-item > a {
    cursor: pointer;
}

.sidebar-item a i.bi-chevron-down,
.sidebar-item a i.bi-chevron-right,
.sub-item a i.bi-chevron-down,
.sub-item a i.bi-chevron-right {
    transition: transform 0.3s ease;
}

.sidebar-item.open > a i.bi-chevron-right,
.sub-item.open > a i.bi-chevron-right {
    transform: rotate(90deg);
}

/* News Item Horizontal */
.news-list-container {
    padding-left: 0;
}

.news-horizontal-item {
    border-bottom: 1px solid #eee;
    padding-bottom: 40px;
    margin-bottom: 40px;
}

.news-horizontal-item:last-child {
    border-bottom: none;
}

.news-img-wrapper {
    overflow: hidden;
    border-radius: 8px;
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
}

.news-img-wrapper img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    transition: none !important; /* Disable transition to prevent any zoom animation */
    transform: none !important;  /* Ensure no transform is applied */
}

.news-date-box {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.news-date-box .day {
    font-size: 3.2rem;
    line-height: 1;
    color: #666;
    font-weight: 500;
}

.news-date-box .slash {
    font-size: 2.8rem;
    color: #ddd;
    font-weight: 100;
    transform: skewX(-15deg);
}

.news-date-box .year-month {
    color: #999;
    font-size: 0.9rem;
    line-height: 1.1;
    text-align: left;
    letter-spacing: 0.5px;
}

.news-title-link {
    font-size: 1.45rem;
    color: #333;
    font-weight: 600;
    text-decoration: none;
    display: block;
    margin-bottom: 18px;
    transition: color 0.3s ease;
}

/* .news-horizontal-item:first-child .news-title-link,
.news-horizontal-item.active .news-title-link {
    color: #0280DC;
} */
.news-horizontal-item .news-title-link:hover{
color: #0280DC;
}
.news-desc {
    color: #888;
    line-height: 1.8;
    font-size: 0.95rem;
    margin-top: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: justify;
}

/* Pagination Optimization */
.custom-pagination {
    margin-top: 60px;
}

.custom-pagination .page-item {
    margin: 0 4px;
}

.custom-pagination .page-link {
    width: auto;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px !important;
    border: none;
    color: #555;
    font-size: 0.95rem;
    background: #f2f2f2;
    padding: 0px 7px;
    transition: all 0.2s ease;
}

.custom-pagination .page-item.active .page-link {
    background-color: #0088e0; /* More accurate blue from image */
    color: #fff;
    box-shadow: none;
}

.custom-pagination .page-item:first-child .page-link,
.custom-pagination .page-item:last-child .page-link {
    background: #f2f2f2;
    color: #bbb;
}

.custom-pagination .page-item.disabled .page-link {
    background: #f2f2f2;
    color: #ddd;
    opacity: 0.6;
}

.custom-pagination .page-item.disabled span.page-link {
    background: transparent;
    color: #999;
}

.custom-pagination .goto-text {
    color: #888;
    font-size: 0.95rem;
    margin-left: 15px;
    display: flex;
    align-items: center;
}

.custom-pagination .goto-input {
    width: 55px;
    height: 34px;
    border: none;
    background: #f2f2f2;
    border-radius: 3px;
    text-align: center;
    margin: 0 10px;
    color: #333;
    font-size: 0.95rem;
    outline: none;
}

.custom-pagination .page-link:hover:not(.active) {
    background-color: #e8e8e8;
    color: #333;
}

/* Case Grid Page Optimization */
.case-list-container {
    padding-left: 0;
}

.case-grid-item {
    margin-bottom: 30px;
}

.case-card {
    background: #F7F7F7;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid transparent;
}
.case-card.active,
.case-card:hover {
    border: 1px solid #0280DC;
    background: #fff;
    cursor: pointer;
}

.case-card-img-link {
    display: block;
    width: 100%;
}

.case-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    padding: 15px;
    border-radius: 8px; /* Increased radius to match image padding */
    display: block;
    transition: none !important; /* Disable transition */
    transform: none !important;  /* Ensure no transform */
    object-fit:contain !important;
}

.case-card-body {
    padding: 5px 20px 20px;
    flex-grow: 1;
}

.case-card-title {
    font-size: 1.05rem;
    color: #333 ; /* Ensure color is applied */
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
    text-decoration: none !important;
    display: block !important; /* Force display block */
    transition: color 0.3s ease;
}

.case-card.active .case-card-title,
.case-card:hover .case-card-title {
    color: #0280DC !important;
}

.case-card.active .case-card-title {
    color: #0280DC;
}

.case-card-title:hover {
    color: #0280DC;
}

@media (max-width: 991px) {
    .case-card-img {
        height: 180px;
    }
}

@media (max-width: 991px) {
    .sidebar-container {
        padding-right: 0;
        margin-bottom: 50px;
    }
    
    .news-list-container {
        padding-left: 0;
    }
    
    .news-horizontal-item .row {
        flex-direction: column;
    }
    
    .news-horizontal-item .col-md-4,
    .news-horizontal-item .col-md-8 {
        width: 100%;
    }
    
    .news-img-wrapper img {
        height: 220px;
        margin-bottom: 20px;
    }
    
    .news-date-box .day {
        font-size: 2.5rem;
    }
    
    .news-date-box .slash {
        font-size: 2.2rem;
    }
    
    .news-title-link {
        font-size: 1.25rem;
    }
    
    /* Pagination mobile optimization */
    .custom-pagination {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .custom-pagination .goto-text {
        width: 100%;
        text-align: center;
        margin-left: 0;
        margin-top: 15px;
    }
}

@media (max-width: 576px) {
    .news-img-wrapper img {
        /* height: 180px; */
    }
    
    .news-date-box .day {
        font-size: 2rem;
    }
    
    .news-date-box .slash {
        font-size: 1.8rem;
    }
    
    .custom-pagination .page-link {
        width: 28px;
        height: 28px;
        margin: 0 2px;
        font-size: 0.75rem;
    }
}