/* Article Index Page Styles */

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 400px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    color: white;
    margin-bottom: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.4) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 85%;
    margin: 0 auto;
    padding: 40px 20px;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
    line-height: 1.6;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.breadcrumb-item {
    color: white;
    text-decoration: none;
    font-size: 14px;
    padding: 8px 12px;
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.breadcrumb-item:hover {
    background: rgba(255,255,255,0.2);
    color: white;
    text-decoration: none;
}

.breadcrumb-separator {
    color: rgba(255,255,255,0.7);
    font-size: 16px;
}

/* Main Content */
.main-content {
    background: #f8f9fa;
    padding: 60px 0;
    min-height: 80vh;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    align-items: start;
}

/* Article Relate */
.article-relate {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.article-main {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
}

/* Article Detail */
.article-detail {
    padding: 40px;
}

.article-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f1f3f4;
}

.article-title {
    font-size: 32px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
    line-height: 1.3;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.article-date {
    color: #6c757d;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-date i {
    color: #007bff;
}

.article-description {
    font-size: 18px;
    color: #495057;
    line-height: 1.7;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-left: 4px solid #007bff;
    border-radius: 0 8px 8px 0;
}

.article-description p{
    margin-bottom: 0;
}

.article-content {
    font-size: 16px;
    line-height: 1.8;
    color: #2c3e50;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
    color: #2c3e50;
    margin: 30px 0 15px 0;
    font-weight: 600;
}

.article-content p {
    margin-bottom: 20px;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.article-content blockquote {
    border-left: 4px solid #007bff;
    padding: 20px;
    margin: 20px 0;
    background: #f8f9fa;
    border-radius: 0 8px 8px 0;
    font-style: italic;
}

.article-content ul,
.article-content ol {
    padding-left: 30px;
    margin-bottom: 20px;
}

.article-content li {
    margin-bottom: 8px;
}

/* Related Articles - Moved to sidebar */

/* Comment Section */
.comment-section {
    margin-top: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    border: 1px solid #e3f2fd;
    position: relative;
    overflow: hidden;
}

.comment-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #28a745 0%, #20c997 50%, #28a745 100%);
}

.comment-title {
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.comment-title i {
    color: #28a745;
}

/* Comment Form */
.comment-form-wrapper {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(40,167,69,0.08);
    border: 1px solid #d4edda;
    position: relative;
}

.comment-form-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #28a745 0%, #20c997 100%);
    border-radius: 12px 12px 0 0;
}

.comment-form .form-group {
    margin-bottom: 25px;
}

.comment-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

.comment-form .required {
    color: #dc3545;
}

.comment-form .form-control {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.comment-form .form-control:focus {
    outline: none;
    border-color: #28a745;
    background: white;
    box-shadow: 0 0 0 3px rgba(40,167,69,0.1);
}

.comment-form textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(40,167,69,0.3);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40,167,69,0.4);
}

.btn-submit:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Comment List */
.comment-list {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(40,167,69,0.08);
    border: 1px solid #d4edda;
}

.comment-item {
    padding: 25px;
    border-bottom: 1px solid #f1f3f4;
    transition: background-color 0.3s ease;
}

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

.comment-item:hover {
    background: rgba(40,167,69,0.05);
}

.comment-header {
    margin-bottom: 15px;
}

.comment-author {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.comment-author strong {
    color: #2c3e50;
    font-size: 16px;
    font-weight: 600;
}

.comment-date {
    color: #6c757d;
    font-size: 14px;
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid #c3e6cb;
}

.comment-content {
    color: #495057;
    line-height: 1.7;
    font-size: 15px;
}

/* Loader */
.loader {
    text-align: center;
    margin-top: 20px;
}

/* Comment Pagination */
.comment-pagination {
    margin: 30px 0;
    text-align: center;
}

.comment-pagination .pagination {
    display: inline-flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 5px;
}

.comment-pagination .pagination li a,
.comment-pagination .pagination li span {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    border: 2px solid #e9ecef;
    color: #495057;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.comment-pagination .pagination li a:hover {
    background: #007bff;
    color: white;
    border-color: #007bff;
    transform: translateY(-2px);
}

.comment-pagination .pagination li.active span {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.comment-pagination .pagination li.disabled span {
    color: #adb5bd;
    background: #f8f9fa;
    border-color: #e9ecef;
    cursor: not-allowed;
}

/* Sidebar */
.article-sidebar {
    position: static;
}

/* Modern Sidebar Design */
.side-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Sidebar Panels - Modern Design */
.best-news-panel,
.best-saler-panel,
.related-articles-aside {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.best-news-panel:hover,
.best-saler-panel:hover,
.related-articles-aside:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

/* Panel Headers */
.main-side-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 16px 20px;
    position: relative;
    overflow: hidden;
}

.main-side-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    pointer-events: none;
}

.heading {
    color: white;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
}

.heading img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
    margin-right: 8px;
}

/* Panel Body */
.panel-body {
    padding: 20px;
}

/* Best News Items */
.best-news-item {
    margin-bottom: 20px;
    padding: 0;
    background: transparent;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    position: relative;
    overflow: hidden;
}

.best-news-item:last-child {
    margin-bottom: 0;
}

.best-news-item:hover {
    transform: translateY(-2px);
}

.best-news-item .item-pic {
    width: 100%;
    height: 140px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
    position: relative;
    background: #f8f9fa;
}

.best-news-item .item-pic::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.best-news-item:hover .item-pic::after {
    opacity: 1;
}

.best-news-item .item-pic .img {
    width: 100%;
    height: 100%;
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.best-news-item .item-pic .img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.best-news-item:hover .item-pic .img img {
    transform: scale(1.08);
}

.best-news-item .product-title {
    margin-bottom: 8px;
    padding: 0 4px;
}

.best-news-item .product-title a {
    color: #1a202c;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: all 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.best-news-item .product-title a:hover {
    color: #667eea;
    text-decoration: none;
}

.best-news-item .date {
    color: #718096;
    font-size: 12px;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    padding: 6px 12px;
    border-radius: 20px;
    display: inline-block;
    border: 1px solid #e2e8f0;
    font-weight: 500;
    margin-left: 4px;
    transition: all 0.3s ease;
}

.best-news-item:hover .date {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
    transform: translateY(-1px);
}

/* Best Saler Items (Products) */
.best-saler-item {
    margin-bottom: 16px;
    padding: 16px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
}

.best-saler-item:last-child {
    margin-bottom: 0;
}

.best-saler-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.best-saler-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
    border-color: #667eea;
}

.best-saler-item:hover::before {
    opacity: 1;
}

.best-saler-item .item-pic {
    width: 100%;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    background: #f8f9fa;
}

.best-saler-item .item-pic .img {
    width: 100%;
    height: 100%;
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.best-saler-item .item-pic .img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.best-saler-item:hover .item-pic .img img {
    transform: scale(1.05);
}

.best-saler-item .product-title {
    margin-bottom: 8px;
}

.best-saler-item .product-title a {
    color: #1a202c;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: all 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.best-saler-item .product-title a:hover {
    color: #667eea;
    text-decoration: none;
}

.best-saler-item .prd-price {
    margin-top: 8px;
}

.best-saler-item .price-old {
    color: #a0aec0;
    font-size: 12px;
    text-decoration: line-through;
    margin-bottom: 4px;
}

.best-saler-item .price-new {
    color: #667eea;
    font-size: 14px;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Related Articles in Sidebar - Modern Design */
.related-articles-aside {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.related-articles-aside::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

/* Related News Item - Modern Card Design */
.related-news-item {
    margin-bottom: 16px;
    padding: 0;
    background: transparent;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    position: relative;
    overflow: hidden;
}

.related-news-item:last-child {
    margin-bottom: 0;
}

.related-news-item:hover {
    transform: translateY(-2px);
}

.related-news-item .item-pic {
    width: 100%;
    height: 140px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
    position: relative;
    background: #f8f9fa;
}

.related-news-item .item-pic::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.related-news-item:hover .item-pic::after {
    opacity: 1;
}

.related-news-item .item-pic .img {
    width: 100%;
    height: 100%;
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.related-news-item .item-pic .img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.related-news-item:hover .item-pic .img img {
    transform: scale(1.08);
}

.related-news-item .product-title {
    margin-bottom: 8px;
    padding: 0 4px;
}

.related-news-item .product-title a {
    color: #1a202c;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: all 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.related-news-item .product-title a:hover {
    color: #667eea;
    text-decoration: none;
}

.related-news-item .date {
    color: #718096;
    font-size: 12px;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    padding: 6px 12px;
    border-radius: 20px;
    display: inline-block;
    border: 1px solid #e2e8f0;
    font-weight: 500;
    margin-left: 4px;
    transition: all 0.3s ease;
}

.related-news-item:hover .date {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
    transform: translateY(-1px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .article-sidebar {
        position: static;
    }
    
    .article-wrap {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .article-detail {
        padding: 25px;
    }
    
    .article-title {
        font-size: 24px;
    }
    
    .comment-section,
    .comment-form-wrapper {
        padding: 20px;
    }
    
    .side-content {
        gap: 20px;
    }
    
    .best-news-panel,
    .best-saler-panel,
    .related-articles-aside {
        margin-bottom: 20px;
    }
    
    .best-news-item,
    .related-news-item {
        margin-bottom: 14px;
    }
    
    .best-news-item .item-pic,
    .related-news-item .item-pic {
        height: 120px;
    }
    
    .best-news-item .product-title a,
    .related-news-item .product-title a {
        font-size: 14px;
    }
    
    .best-saler-item {
        padding: 12px;
    }
    
    .best-saler-item .item-pic {
        height: 70px;
    }
    
    .comment-author {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .comment-date {
        margin-top: 5px;
    }
    
    .breadcrumb {
        flex-direction: column;
        gap: 5px;
    }
}

@media (max-width: 480px) {
    .hero-content {
        padding: 20px 15px;
    }
    
    .article-detail {
        padding: 20px;
    }
    
    .comment-section,
    .comment-form-wrapper {
        padding: 15px;
    }
    
    .side-content {
        gap: 16px;
    }
    
    .best-news-panel,
    .best-saler-panel,
    .related-articles-aside {
        margin-bottom: 15px;
    }
    
    .best-news-item,
    .related-news-item {
        margin-bottom: 12px;
    }
    
    .best-news-item .item-pic,
    .related-news-item .item-pic {
        height: 100px;
    }
    
    .best-news-item .product-title a,
    .related-news-item .product-title a {
        font-size: 13px;
    }
    
    .best-news-item .date,
    .related-news-item .date {
        font-size: 11px;
        padding: 4px 10px;
    }
    
    .best-saler-item {
        padding: 10px;
    }
    
    .best-saler-item .item-pic {
        height: 60px;
    }
    
    .best-saler-item .product-title a {
        font-size: 13px;
    }
    
    .best-saler-item .price-new {
        font-size: 13px;
    }
}

.text-white{
    color: #fff;
}

.hero-title {
    font-family: "Montserrat", sans-serif;
}