/**
 * Gopvonvietlott.com
 * Phát triển bởi: MDDev
 */

.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
    overflow-x: hidden;
    width: 100%;
    box-sizing: border-box;
}

.blog-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 20px;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1), rgba(255, 152, 0, 0.05));
    border-radius: 20px;
    border: 1px solid rgba(255, 193, 7, 0.2);
}

.blog-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.blog-title i {
    color: var(--primary);
}

.blog-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

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

.breadcrumb span {
    color: var(--text-muted);
}

.blog-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
}

@media (max-width: 900px) {
    .blog-layout {
        grid-template-columns: 1fr;
    }

    .blog-sidebar {
        order: 1;
        position: static;
    }

    .sidebar-widget {
        background: rgba(30, 30, 50, 0.95);
        border: 1px solid rgba(255, 255, 255, 0.15);
    }
}

.section-heading {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(255, 193, 7, 0.3);
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-heading i {
    color: var(--primary);
}

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

.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.featured-grid-2 {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 768px) {

    .featured-section {
        overflow: hidden;
    }

    .featured-grid,
    .featured-grid-2 {
        grid-template-columns: 1fr;
    }
}

.featured-card {
    display: block;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.featured-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 40px rgba(255, 193, 7, 0.15);
}

.featured-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.featured-card:hover .featured-image img {
    transform: scale(1.05);
}

.featured-image .no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1), rgba(255, 152, 0, 0.05));
    color: var(--text-muted);
    font-size: 2rem;
}

.featured-category {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--primary);
    color: var(--bg-dark);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.featured-content {
    padding: 20px;
}

.featured-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-content p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 12px;
}

.featured-meta {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: var(--text-muted);
}

.featured-meta i {
    margin-right: 5px;
}

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

.posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

@media (max-width: 600px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

.post-card {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.post-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 193, 7, 0.5);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.post-image {
    height: 180px;
    overflow: hidden;
}

@media (max-width: 600px) {
    .post-image {
        height: 120px;
    }
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-card:hover .post-image img {
    transform: scale(1.05);
}

.post-image .no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    color: var(--text-muted);
    font-size: 1.5rem;
}

.post-content {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

@media (max-width: 600px) {
    .post-content {
        padding: 10px;
    }
}

.post-category {
    display: inline-block;
    background: rgba(255, 193, 7, 0.15);
    color: var(--primary);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 8px;
    width: fit-content;
}

.post-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 600px) {
    .post-title {
        font-size: 0.85rem;
        -webkit-line-clamp: 2;
    }
}

.post-excerpt {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 10px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 600px) {
    .post-excerpt {
        display: none;
    }
}

.post-meta {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: auto;
}

.post-meta i {
    margin-right: 4px;
}

.no-posts {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.no-posts i {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
}

.load-more-wrap {
    text-align: center;
    margin-top: 30px;
}

.btn-load-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--bg-dark);
    border: none;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.btn-load-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.4);
}

.btn-load-more:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.blog-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-widget {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
}

.widget-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 8px;
}

.widget-title i {
    color: var(--primary);
}

.category-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.category-list li {
    margin-bottom: 8px;
}

.category-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    border-radius: 10px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
}

.category-list li a:hover,
.category-list li.active a {
    background: rgba(255, 193, 7, 0.1);
    color: var(--primary);
}

.category-list .count {
    background: rgba(255, 255, 255, 0.1);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
}

.latest-posts-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.latest-post-item {
    display: flex;
    gap: 12px;
    padding: 10px;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
    background: rgba(255, 255, 255, 0.02);
}

.latest-post-item:hover {
    background: rgba(255, 193, 7, 0.1);
}

.latest-post-thumb {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
}

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

.latest-post-thumb .no-thumb {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 1rem;
}

.latest-post-info {
    flex: 1;
    min-width: 0;
}

.latest-post-info h4 {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.latest-post-info p {
    font-size: 11px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.4;
}

.latest-post-info p span {
    color: var(--primary);
    font-weight: 500;
}

.single-post {
    max-width: 800px;
    margin: 0 auto 40px;
}

.post-header {
    text-align: center;
    margin-bottom: 30px;
}

.post-category-badge {
    display: inline-block;
    background: var(--primary);
    color: var(--bg-dark);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    margin-bottom: 15px;
}

.post-main-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
}

@media (max-width: 600px) {
    .post-main-title {
        font-size: 1.5rem;
    }
}

.post-info {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 14px;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.post-info i {
    margin-right: 5px;
    color: var(--primary);
}

.post-featured-image {
    margin-bottom: 30px;
    border-radius: 16px;
    overflow: hidden;
}

.post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.post-body {
    font-size: 16px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
}

.post-body h2,
.post-body h3,
.post-body h4 {
    margin: 30px 0 15px;
    font-weight: 600;
}

.post-body h2 {
    font-size: 1.5rem;
}

.post-body h3 {
    font-size: 1.25rem;
}

.post-body h4 {
    font-size: 1.1rem;
}

.post-body p {
    margin-bottom: 18px;
}

.post-body img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 20px 0;
}

.post-body ul,
.post-body ol {
    margin: 15px 0;
    padding-left: 25px;
}

.post-body li {
    margin-bottom: 8px;
}

.post-body blockquote {
    margin: 25px 0;
    padding: 20px 25px;
    border-left: 4px solid var(--primary);
    background: rgba(255, 193, 7, 0.1);
    border-radius: 0 10px 10px 0;
    font-style: italic;
}

.post-body a {
    color: var(--primary);
    text-decoration: underline;
}

.post-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.post-body table th,
.post-body table td {
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: left;
}

.post-body table th {
    background: rgba(255, 193, 7, 0.1);
}

.post-tags {
    margin-top: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.post-tags strong {
    color: var(--text-muted);
}

.post-tags strong i {
    color: var(--primary);
}

.tag {
    display: inline-block;
    padding: 5px 12px;
    background: rgba(255, 193, 7, 0.15);
    color: var(--primary);
    border-radius: 20px;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s;
}

.tag:hover {
    background: var(--primary);
    color: var(--bg-dark);
}

.post-share {
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.post-share strong {
    color: var(--text-muted);
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s;
}

.share-btn:hover {
    transform: translateY(-3px);
}

.share-btn.facebook {
    background: #1877f2;
}

.share-btn.twitter {
    background: #1da1f2;
}

.share-btn.telegram {
    background: #0088cc;
}

.related-posts {
    max-width: 1000px;
    margin: 0 auto;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.blog-slider-section {
    padding: 60px 20px;
    background: rgba(255, 255, 255, 0.02);
}

.blog-slider-section .container {
    max-width: 1200px;
    margin: 0 auto;
}

.blog-slider-section .section-title {
    text-align: center;
    margin-bottom: 40px;
}

.blog-slider {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 900px) {
    .blog-slider {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .blog-slider {
        grid-template-columns: 1fr;
    }
}

.blog-slider-item {
    display: block;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.blog-slider-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 35px rgba(255, 193, 7, 0.2);
}

.blog-slider-image {
    height: 150px;
    overflow: hidden;
}

.blog-slider-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.blog-slider-item:hover .blog-slider-image img {
    transform: scale(1.05);
}

.blog-slider-content {
    padding: 15px;
}

.blog-slider-content h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-slider-content .date {
    font-size: 12px;
    color: var(--text-muted);
}

.blog-slider-content .date i {
    color: var(--primary);
    margin-right: 5px;
}

.view-all-link {
    text-align: center;
    margin-top: 30px;
}

.view-all-link a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.view-all-link a:hover {
    gap: 12px;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 1024px) {
    .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

.featured-slider-wrapper {
    position: relative;
}

.featured-slider-btn {
    display: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: var(--primary);
    color: var(--bg-dark);
    font-size: 14px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
    align-items: center;
    justify-content: center;
}

.featured-slider-btn:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 5px 15px rgba(255, 193, 7, 0.4);
}

.featured-slider-prev {
    left: -10px;
}

.featured-slider-next {
    right: -10px;
}

@media (max-width: 768px) {
    .featured-slider-wrapper {
        overflow: hidden;
    }

    .featured-slider-track {
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 15px;
        transition: transform 0.4s ease;
    }

    .featured-slider-track .featured-card {
        flex: 0 0 calc(100% - 30px);
        min-width: calc(100% - 30px);
    }

    .featured-slider-btn {
        display: flex;
    }

    .featured-slider-prev {
        left: 5px;
    }

    .featured-slider-next {
        right: 5px;
    }
}

html,
body {
    overflow-x: hidden;
    max-width: 100vw;
}

.main-content {
    overflow-x: hidden;
    max-width: 100%;
}

@media (max-width: 768px) {

    .blog-container,
    .blog-layout,
    .blog-main,
    .posts-section,
    .featured-section {
        max-width: 100%;
        overflow-x: hidden;
    }

    .blog-header {
        margin-left: -5px;
        margin-right: -5px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .posts-grid {
        gap: 10px;
    }

    .featured-slider-wrapper {
        margin: 0 -5px;
        padding: 0 5px;
    }
}
