/* ============================================
   BLOG LISTING & ARTICLE STYLES
   ============================================ */

/* --- Hero Section --- */
.blog-hero {
    padding: 100px 20px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.blog-hero-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.blog-hero h1 {
    font-size: 48px;
    font-weight: 800;
    color: #222;
    margin: 0 0 8px 0;
}

.blog-hero h1 span {
    background: linear-gradient(135deg, #8b2e4a 0%, #e8a562 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.blog-hero p {
    font-size: 18px;
    color: #666;
    margin: 0;
}

/* --- Search Box --- */
.blog-search {
    display: flex;
    gap: 12px;
    min-width: 420px;
}

.blog-search-wrap {
    position: relative;
    flex: 1;
}

.blog-search-wrap i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 16px;
}

.blog-search-wrap input {
    width: 100%;
    padding: 14px 20px 14px 50px;
    font-size: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    outline: none;
    transition: border-color 0.3s;
    background: #fff;
}

.blog-search-wrap input:focus {
    border-color: #8b2e4a;
}

.blog-search-btn {
    background: linear-gradient(135deg, #8b2e4a 0%, #e8a562 100%);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(139, 46, 74, 0.3);
}

.blog-search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(139, 46, 74, 0.4);
}

/* --- Main Layout --- */
.blog-layout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 80px;
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 60px;
}

/* --- Sidebar --- */
.blog-sidebar h3 {
    font-size: 16px;
    font-weight: 700;
    color: #222;
    margin: 0 0 20px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.blog-categories li {
    margin-bottom: 8px;
}

.blog-categories a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    color: #555;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
}

.blog-categories a:hover,
.blog-categories a.active {
    border-color: #8b2e4a;
    background: linear-gradient(135deg, #fff9f0 0%, #fff5eb 100%);
    color: #8b2e4a;
    font-weight: 600;
}

.blog-categories .cat-count {
    font-size: 12px;
    background: #f0f0f0;
    color: #888;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 600;
}

.blog-categories a.active .cat-count,
.blog-categories a:hover .cat-count {
    background: rgba(139, 46, 74, 0.1);
    color: #8b2e4a;
}

/* --- Newsletter CTA --- */
.blog-newsletter {
    background: linear-gradient(135deg, #fff9f0 0%, #fff5eb 100%);
    padding: 24px;
    border-radius: 12px;
    margin-top: 32px;
    border: 1px solid #f5e6d3;
}

.blog-newsletter-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #8b2e4a 0%, #e8a562 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    box-shadow: 0 4px 12px rgba(139, 46, 74, 0.25);
}

.blog-newsletter-icon i {
    color: white;
    font-size: 18px;
}

.blog-newsletter h4 {
    font-size: 15px;
    font-weight: 700;
    color: #222;
    margin: 0 0 8px 0;
}

.blog-newsletter p {
    font-size: 13px;
    color: #666;
    margin: 0 0 14px 0;
    line-height: 1.5;
}

.blog-newsletter-btn {
    background: linear-gradient(135deg, #8b2e4a 0%, #e8a562 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    box-shadow: 0 4px 12px rgba(139, 46, 74, 0.25);
    transition: all 0.3s;
    font-family: 'Montserrat', sans-serif;
}

.blog-newsletter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(139, 46, 74, 0.4);
}

/* --- Popular Articles Sidebar --- */
.blog-popular {
    margin-top: 32px;
}

.blog-popular-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    text-decoration: none;
    transition: all 0.3s;
}

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

.blog-popular-item:hover .popular-title {
    color: #8b2e4a;
}

.popular-thumb {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

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

.popular-title {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin: 0 0 4px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s;
}

.popular-date {
    font-size: 11px;
    color: #999;
}

/* --- Article Cards Grid --- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.blog-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e8e8e8;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
    border-color: transparent;
}

.blog-card a {
    text-decoration: none;
    color: inherit;
}

.blog-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.blog-card-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.blog-card-category {
    display: inline-block;
    padding: 4px 12px;
    background: linear-gradient(135deg, rgba(139, 46, 74, 0.08) 0%, rgba(232, 165, 98, 0.08) 100%);
    color: #8b2e4a;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
}

.blog-card-date {
    font-size: 12px;
    color: #999;
}

.blog-card-date i {
    margin-right: 4px;
}

.blog-card-title {
    font-size: 18px;
    font-weight: 700;
    color: #222;
    margin: 0 0 12px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s;
}

.blog-card:hover .blog-card-title {
    color: #8b2e4a;
}

.blog-card-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0 0 20px 0;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}

.blog-card-author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.blog-card-author-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8b2e4a 0%, #e8a562 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: white;
    font-weight: 700;
}

.blog-card-author-name {
    font-size: 12px;
    color: #555;
    font-weight: 600;
}

.blog-card-readtime {
    font-size: 12px;
    color: #999;
}

.blog-card-readtime i {
    margin-right: 4px;
}

/* Featured card (first article - spans full width) */
.blog-card.featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.blog-card.featured .blog-card-img {
    height: 100%;
    min-height: 300px;
}

.blog-card.featured .blog-card-title {
    font-size: 24px;
    -webkit-line-clamp: 3;
}

.blog-card.featured .blog-card-excerpt {
    font-size: 15px;
    -webkit-line-clamp: 4;
}

/* --- Guide / PDF Card --- */
.blog-card-img-wrap {
    position: relative;
    overflow: hidden;
}

.blog-card-badge-pdf {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(139, 46, 74, 0.9);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 5px;
    backdrop-filter: blur(4px);
    letter-spacing: 0.5px;
}

.blog-card-badge-pdf i {
    font-size: 13px;
}

.blog-card-category-guide {
    background: linear-gradient(135deg, rgba(139, 46, 74, 0.12) 0%, rgba(232, 165, 98, 0.12) 100%) !important;
    color: #8b2e4a !important;
}

.blog-card-category-guide i {
    margin-right: 4px;
    font-size: 10px;
}

.blog-card-guide {
    border-color: rgba(139, 46, 74, 0.15);
}

.blog-card-guide:hover {
    border-color: rgba(139, 46, 74, 0.3);
}

.blog-card-download {
    font-size: 12px;
    font-weight: 600;
    color: #8b2e4a;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.3s;
}

.blog-card-guide:hover .blog-card-download {
    gap: 8px;
}

.blog-card-download i {
    font-size: 13px;
}

/* --- Read More Link --- */
.blog-read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #8b2e4a;
    text-decoration: none;
    transition: gap 0.3s;
}

.blog-read-more:hover {
    gap: 10px;
}

/* --- Pagination --- */
.blog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 48px;
}

.blog-pagination a,
.blog-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.blog-pagination a {
    background: white;
    color: #555;
    border: 1px solid #e5e5e5;
}

.blog-pagination a:hover {
    border-color: #8b2e4a;
    color: #8b2e4a;
    background: #fff9f0;
}

.blog-pagination span.active {
    background: linear-gradient(135deg, #8b2e4a 0%, #e8a562 100%);
    color: white;
    border: none;
}

.blog-pagination .page-arrow {
    width: auto;
    padding: 0 16px;
    font-size: 13px;
    gap: 6px;
}

/* ============================================
   ARTICLE VIEW STYLES
   ============================================ */

.article-hero {
    padding: 100px 20px 0;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- Breadcrumb --- */
.article-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #999;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.article-breadcrumb a {
    color: #999;
    text-decoration: none;
    transition: color 0.3s;
}

.article-breadcrumb a:hover {
    color: #8b2e4a;
}

.article-breadcrumb .separator {
    color: #ccc;
}

/* --- Article Header --- */
.article-header {
    margin-bottom: 32px;
}

.article-header .blog-card-category {
    margin-bottom: 16px;
}

.article-header h1 {
    font-size: 40px;
    font-weight: 800;
    color: #222;
    line-height: 1.25;
    margin: 0 0 20px 0;
}

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

.article-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
}

.article-meta-item i {
    color: #8b2e4a;
    font-size: 14px;
}

.article-author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #f0f0f0;
}

.article-author-info {
    line-height: 1.3;
}

.article-author-name {
    font-weight: 700;
    color: #222;
    font-size: 14px;
}

.article-author-role {
    font-size: 12px;
    color: #999;
}

/* --- Featured Image --- */
.article-featured-img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 48px;
}

/* --- Article Layout --- */
.article-layout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 80px;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 60px;
}

/* --- Article Content --- */
.article-content {
    max-width: 100%;
    overflow-wrap: break-word;
}

.article-content h2 {
    font-size: 28px;
    font-weight: 700;
    color: #222;
    margin: 48px 0 16px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
}

.article-content h3 {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    margin: 36px 0 12px 0;
}

.article-content p {
    font-size: 17px;
    line-height: 1.8;
    color: #444;
    margin: 0 0 20px 0;
}

.article-content ul,
.article-content ol {
    margin: 0 0 24px 0;
    padding-left: 24px;
}

.article-content li {
    font-size: 16px;
    line-height: 1.7;
    color: #444;
    margin-bottom: 8px;
}

.article-content blockquote {
    margin: 32px 0;
    padding: 24px 28px;
    background: linear-gradient(135deg, #fff9f0 0%, #fff5eb 100%);
    border-left: 4px solid #8b2e4a;
    border-radius: 0 12px 12px 0;
    font-size: 17px;
    font-style: italic;
    color: #555;
    line-height: 1.7;
}

.article-content img {
    max-width: 100%;
    border-radius: 12px;
    margin: 24px 0;
}

.article-content a {
    color: #8b2e4a;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(139, 46, 74, 0.3);
    text-underline-offset: 3px;
    transition: text-decoration-color 0.3s;
}

.article-content a:hover {
    text-decoration-color: #8b2e4a;
}

/* Callout / Info Box */
.article-callout {
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f0fe 100%);
    border: 1px solid #cce0ff;
    border-radius: 12px;
    padding: 24px;
    margin: 32px 0;
    display: flex;
    gap: 16px;
}

.article-callout i {
    color: #1a73e8;
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.article-callout p {
    margin: 0;
    font-size: 15px;
    color: #444;
}

/* --- Table of Contents (Article Sidebar) --- */
.article-toc {
    position: sticky;
    top: 100px;
}

.article-toc h3 {
    font-size: 14px;
    font-weight: 700;
    color: #222;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 16px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
}

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

.article-toc-list li {
    margin-bottom: 4px;
}

.article-toc-list a {
    display: block;
    padding: 8px 12px;
    font-size: 13px;
    color: #666;
    text-decoration: none;
    border-left: 2px solid transparent;
    border-radius: 0 6px 6px 0;
    transition: all 0.3s;
    line-height: 1.4;
}

.article-toc-list a:hover,
.article-toc-list a.active {
    color: #8b2e4a;
    border-left-color: #8b2e4a;
    background: rgba(139, 46, 74, 0.04);
}

.article-toc-list li.toc-sub {
    margin-left: 12px;
}

.article-toc-list li.toc-sub a {
    font-size: 12px;
    padding: 5px 12px;
    color: #999;
    border-left-color: transparent;
}

.article-toc-list li.toc-sub a::before {
    content: "–";
    margin-right: 6px;
    color: #e8a562;
}

.article-toc-list li.toc-sub a:hover,
.article-toc-list li.toc-sub a.active {
    color: #8b2e4a;
    border-left-color: #e8a562;
}

/* --- Share Buttons --- */
.article-share {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.article-share h4 {
    font-size: 13px;
    font-weight: 700;
    color: #222;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 12px 0;
}

.article-share-btns {
    display: flex;
    gap: 8px;
}

.article-share-btn {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s;
    cursor: pointer;
}

.article-share-btn:hover {
    border-color: #8b2e4a;
    color: #8b2e4a;
    background: #fff9f0;
}

/* --- Article PDF CTA --- */
.article-pdf-cta {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px 28px;
    background: #ffffff;
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    margin: 32px 0;
    transition: border-color 0.3s;
}

.article-pdf-cta:hover {
    border-color: #8b2e4a;
}

.article-pdf-cta-bottom {
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
}

.article-pdf-cta-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #8b2e4a 0%, #e8a562 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.article-pdf-cta-icon i {
    color: white;
    font-size: 22px;
}

.article-pdf-cta-text {
    flex: 1;
}

.article-pdf-cta-text strong {
    display: block;
    font-size: 16px;
    color: #222;
    margin-bottom: 2px;
}

.article-pdf-cta-text span {
    font-size: 13px;
    color: #888;
}

.article-pdf-cta-btn {
    background: linear-gradient(135deg, #8b2e4a 0%, #e8a562 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(139, 46, 74, 0.25);
    transition: all 0.3s;
}

.article-pdf-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(139, 46, 74, 0.4);
}

/* --- PDF Modal --- */
.pdf-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.pdf-modal {
    background: white;
    border-radius: 16px;
    padding: 40px;
    max-width: 440px;
    width: 100%;
    position: relative;
    text-align: center;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.15);
    animation: modalSlideIn 0.3s ease;
}

.pdf-modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
}

.pdf-modal-close:hover {
    color: #222;
}

.pdf-modal-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #8b2e4a 0%, #e8a562 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.pdf-modal-icon i {
    color: white;
    font-size: 28px;
}

.pdf-modal h3 {
    font-size: 22px;
    font-weight: 700;
    color: #222;
    margin: 0 0 8px 0;
}

.pdf-modal p {
    font-size: 14px;
    color: #666;
    margin: 0 0 24px 0;
    line-height: 1.5;
}

.pdf-modal-form {
    display: flex;
    gap: 10px;
}

.pdf-modal-input {
    flex: 1;
    padding: 14px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
    outline: none;
    transition: border-color 0.3s;
}

.pdf-modal-input:focus {
    border-color: #8b2e4a;
}

.pdf-modal-btn {
    background: linear-gradient(135deg, #8b2e4a 0%, #e8a562 100%);
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(139, 46, 74, 0.25);
    transition: all 0.3s;
}

.pdf-modal-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(139, 46, 74, 0.4);
}

.pdf-modal-privacy {
    display: block;
    margin-top: 12px;
    font-size: 11px;
    color: #aaa;
}

@media (max-width: 768px) {
    .article-pdf-cta {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .pdf-modal {
        padding: 32px 24px;
    }

    .pdf-modal-form {
        flex-direction: column;
    }
}

/* --- Article FAQ --- */
.article-faq {
    margin: 48px 0 0;
    padding-top: 40px;
    border-top: 2px solid #f0f0f0;
}

.article-faq > h2 {
    font-size: 28px;
    font-weight: 700;
    color: #222;
    margin: 0 0 24px 0;
    padding-bottom: 0;
    border-bottom: none;
}

.article-faq-item {
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: border-color 0.3s;
}

.article-faq-item:hover {
    border-color: #d0d0d0;
}

.article-faq-item.open {
    border-color: #8b2e4a;
}

.article-faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    background: white;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #222;
    line-height: 1.4;
    transition: background 0.3s;
}

.article-faq-question:hover {
    background: #fafafa;
}

.article-faq-item.open .article-faq-question {
    background: #fafafa;
}

.article-faq-question i {
    font-size: 14px;
    color: #8b2e4a;
    flex-shrink: 0;
    transition: transform 0.3s;
}

.article-faq-item.open .article-faq-question i {
    transform: rotate(180deg);
}

.article-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    padding: 0 24px;
    background: white;
}

.article-faq-item.open .article-faq-answer {
    max-height: 500px;
    padding: 0 24px 20px;
}

.article-faq-answer p {
    font-size: 15px;
    line-height: 1.7;
    color: #555;
    margin: 0;
}

/* --- Tags --- */
.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 40px 0;
    padding-top: 24px;
    border-top: 1px solid #f0f0f0;
}

.article-tag {
    padding: 6px 14px;
    background: #f5f5f5;
    color: #666;
    font-size: 12px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s;
}

.article-tag:hover {
    background: #8b2e4a;
    color: white;
}

/* --- Related Articles --- */
.blog-related {
    padding: 60px 20px 80px;
    background: #fafafa;
}

.blog-related-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.blog-related h2 {
    font-size: 28px;
    font-weight: 700;
    color: #222;
    margin: 0 0 32px 0;
    text-align: center;
}

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

/* --- Author Box --- */
.article-author-box {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 16px;
    padding: 32px;
    margin: 48px 0;
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.article-author-box-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 3px solid white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.article-author-box-info h4 {
    font-size: 18px;
    font-weight: 700;
    color: #222;
    margin: 0 0 4px 0;
}

.article-author-box-info .role {
    font-size: 13px;
    color: #8b2e4a;
    font-weight: 600;
    margin-bottom: 10px;
}

.article-author-box-info p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */

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

    .article-layout {
        grid-template-columns: 1fr 250px;
        gap: 40px;
    }

    .blog-card.featured {
        grid-template-columns: 1fr;
    }

    .blog-card.featured .blog-card-img {
        height: 240px;
        min-height: unset;
    }
}

@media (max-width: 768px) {
    .blog-hero h1 {
        font-size: 32px;
    }

    .blog-hero-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }

    .blog-search {
        min-width: unset;
    }

    .blog-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .blog-sidebar {
        order: 2;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .blog-card.featured {
        grid-template-columns: 1fr;
    }

    /* Article responsive */
    .article-header h1 {
        font-size: 28px;
    }

    .article-layout {
        grid-template-columns: 1fr;
    }

    .article-toc {
        position: static;
        padding: 20px;
        background: #fafafa;
        border-radius: 12px;
        margin-bottom: 32px;
        order: -1;
    }

    .article-author-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .blog-related-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .article-meta {
        gap: 12px;
    }
}
