/* Page Banner - Reduced Size */
.page-banner {
    padding: 100px 0 20px;
    background-color: var(--light-color);
    position: relative;
    overflow: hidden;
}

.page-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI2MCIgaGVpZ2h0PSI2MCIgdmlld0JveD0iMCAwIDYwIDYwIj48ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxnIGZpbGw9IiNlNjFjNWQiIGZpbGwtb3BhY2l0eT0iLjA1Ij48cGF0aCBkPSJNMzYgMzRjMC0yLjIxLTEuNzktNC00LTRzLTQgMS43OS00IDQgMS43OSA0IDQgNCAzLjk4LTEuNzggNC00aC4wMXptMC0xMGMwLTIuMjEtMS43OS00LTQtNHMtNCAxLjc5LTQgNCAxLjc5IDQgNCA0IDMuOTgtMS43OCA0LTRoLjAxek0yNiAyNGMwLTIuMjEtMS43OS00LTQtNHMtNCAxLjc5LTQgNCAxLjc5IDQgNCA0IDMuOTgtMS43OCA0LTRoLjAxem0wIDEwYzAtMi4yMS0xLjc5LTQtNC00cy00IDEuNzktNCA0IDEuNzkgNCA0IDQgMy45OC0xLjc4IDQtNGguMDF6Ij48L3BhdGg+PC9nPjwvZz48L3N2Zz4=');
    opacity: 0.5;
    z-index: 0;
}

.page-banner-container {
    position: relative;
    z-index: 1;
    text-align: center;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.page-breadcrumb {
    display: flex;
    justify-content: start;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.breadcrumb-item {
    font-size: 15px;
    font-weight: 600;
    color: #555;
}

.breadcrumb-item a {
    transition: var(--transition);
}

.breadcrumb-item a:hover {
    color: var(--primary-color);
}

.breadcrumb-separator {
    color: #777;
}

.breadcrumb-item.active {
    color: var(--primary-color);
}

/* News Detail Section with Sidebar Layout */
.news-detail {
    padding: 60px 0;
}

.news-detail-layout {
    display: grid;
    grid-template-columns: 70% 30%;
    gap: 40px;
}

/* Article Content Styles */
.article-container {
    max-width: 100%;
}

.back-button {
    margin-bottom: 30px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
    color: var(--secondary-color);
    transition: var(--transition);
}

.back-button:hover {
    color: var(--primary-color);
}

.back-button i {
    transition: var(--transition);
}

.back-button:hover i {
    transform: translateX(-5px);
}

.detail-header {
    margin-bottom: 30px;
}

.detail-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.detail-category {
    display: inline-block;
    background-color: rgba(230, 28, 93, 0.1);
    color: var(--primary-color);
    padding: 6px 15px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 13px;
}

.detail-category:hover {
    background-color: var(--primary-color);
    color: white;
}

.detail-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--secondary-color);
    margin-bottom: 20px;
    line-height: 1.3;
}

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

.detail-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: #555;
}

.detail-meta-item i {
    color: var(--primary-color);
}

.detail-featured-image {
    margin-bottom: 30px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.detail-featured-image img {
    width: 100%;
    height: auto;
}

.detail-content {
    margin-bottom: 40px;
}

.detail-content p {
    font-size: 17px;
    color: #444;
    margin-bottom: 25px;
    line-height: 1.7;
}

.detail-content img {
    border-radius: 12px;
    margin: 30px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.detail-content h2 {
    font-size: 26px;
    font-weight: 700;
    color: var(--secondary-color);
    margin: 40px 0 20px;
}

.detail-content h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--secondary-color);
    margin: 30px 0 20px;
}

.detail-content ul, .detail-content ol {
    margin: 25px 0;
    padding-left: 25px;
}

.detail-content li {
    font-size: 17px;
    color: #444;
    margin-bottom: 12px;
}

.detail-content blockquote {
    border-left: 5px solid var(--primary-color);
    padding: 20px 30px;
    margin: 30px 0;
    background-color: var(--light-color);
    font-size: 18px;
    font-style: italic;
    color: #555;
}

.detail-share {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.share-label {
    font-size: 16px;
    font-weight: 600;
    color: var(--secondary-color);
}

.share-links {
    display: flex;
    gap: 10px;
}

.share-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
    color: #555;
    transition: var(--transition);
}

.share-link:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.news-author {
    display: flex;
    align-items: center;
    gap: 20px;
    background-color: var(--light-color);
    padding: 25px;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
}

.author-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-content h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.author-content p {
    font-size: 15px;
    color: #555;
    margin-bottom: 0;
}

/* Comment Section */
.comment-section {
    margin-bottom: 30px;
}

.comment-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.comment-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

.comment-list {
    margin-bottom: 40px;
}

.comment-item {
    display: flex;
    gap: 20px;
    padding-bottom: 25px;
    margin-bottom: 25px;
    border-bottom: 1px solid #eee;
}

.comment-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comment-content {
    flex-grow: 1;
}

.comment-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.comment-author {
    font-size: 17px;
    font-weight: 700;
    color: var(--secondary-color);
}

.comment-date {
    font-size: 14px;
    color: #777;
}

.comment-text {
    font-size: 15px;
    color: #555;
    margin-bottom: 15px;
    line-height: 1.7;
}

.comment-reply {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.comment-reply:hover {
    color: var(--secondary-color);
}

.comment-reply i {
    font-size: 12px;
}

.comment-form {
    background-color: var(--light-color);
    padding: 25px;
    border-radius: var(--border-radius);
}

.comment-form-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--secondary-color);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(230, 28, 93, 0.1);
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* Sidebar Styles */
.sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 30px;
    padding: 25px;
}

.widget-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

/* Search Widget */
.search-widget {
    position: relative;
}

.search-input {
    width: 100%;
    padding: 12px 15px;
    padding-right: 50px;
    border: 1px solid #eee;
    border-radius: 30px;
    font-size: 15px;
    transition: var(--transition);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.search-btn {
    position: absolute;
    right: 5px;
    top: 5px;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover {
    background-color: var(--primary-dark);
}

/* Categories Widget */
.categories-list {
    list-style: none;
}

.category-item {
    margin-bottom: 12px;
    border-bottom: 1px solid #eee;
    padding-bottom: 12px;
}

.category-item:last-child {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.category-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
    color: #555;
    transition: var(--transition);
}

.category-link:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.category-count {
    background-color: var(--light-color);
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    transition: var(--transition);
}

.category-link:hover .category-count {
    background-color: var(--primary-color);
    color: white;
}

/* Tags Widget */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-link {
    display: inline-block;
    padding: 6px 14px;
    background-color: var(--light-color);
    color: #555;
    font-size: 13px;
    border-radius: 20px;
    transition: var(--transition);
}

.tag-link:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Sidebar Recent Posts */
.recent-post-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.recent-post-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.recent-post-img {
    width: 80px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
}

.recent-post-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.recent-post-item:hover .recent-post-img img {
    transform: scale(1.1);
}

.recent-post-content {
    flex-grow: 1;
}

.recent-post-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: var(--transition);
}

.recent-post-item:hover .recent-post-title {
    color: var(--primary-color);
}

.recent-post-date {
    font-size: 13px;
    color: #777;
    display: flex;
    align-items: center;
    gap: 5px;
}

.recent-post-date i {
    color: var(--primary-color);
    font-size: 12px;
}

/* Featured Post Widget */
.featured-post {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    height: 200px;
}

.featured-post-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-post-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
}

.featured-post-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
}

.featured-post-date {
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 5px;
    opacity: 0.9;
}

/* Responsive Styles */
@media (max-width: 1199px) {
    .detail-title {
        font-size: 2.2rem;
    }

    .news-detail-layout {
        gap: 30px;
    }
}

@media (max-width: 991px) {
    .news-detail-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        max-width: 600px;
        margin: 0 auto;
    }

    .detail-meta {
        gap: 15px;
    }

    .detail-meta-item {
        font-size: 14px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

@media (max-width: 767px) {
    .page-title {
        font-size: 2.2rem;
    }

    .detail-title {
        font-size: 1.8rem;
    }

    .detail-meta {
        gap: 12px;
    }

    .detail-meta-item {
        font-size: 13px;
    }

    .detail-content p {
        font-size: 16px;
    }

    .detail-content h2 {
        font-size: 22px;
    }

    .detail-content h3 {
        font-size: 20px;
    }

    .detail-content blockquote {
        font-size: 16px;
        padding: 15px 20px;
    }

    .detail-share {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .comment-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .news-author {
        flex-direction: column;
        text-align: center;
        align-items: center;
        gap: 15px;
    }
}