/* ===== BLOG LIST PAGE ===== */
.blog-list-section {
    padding: 80px 0 120px;
    position: relative;
    z-index: 1;
}

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

.blog-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: var(--dark);
    border: 1px solid rgba(0,0,0,0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    z-index: 1;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    z-index: 2;
}

.blog-card-img {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f5f5f7;
}

.blog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.blog-card-img-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a2e, #2d1b69);
    color: rgba(255,255,255,0.15);
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: 4px;
}

.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;
    font-size: 0.8rem;
    color: #9ca3af;
}

.blog-card-cat {
    background: rgba(217, 70, 239, 0.08);
    color: var(--fuchsia);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.blog-card-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-excerpt {
    font-size: 0.9rem;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
}

.blog-card-link {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--fuchsia);
    margin-top: auto;
}

.blog-card:hover .blog-card-link {
    text-decoration: underline;
}

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

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 10px;
    text-decoration: none;
    color: var(--dark);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
}

.page-link:hover {
    border-color: var(--fuchsia);
    color: var(--fuchsia);
}

.page-link.active {
    background: var(--fuchsia);
    border-color: var(--fuchsia);
    color: #fff;
}

.blog-empty {
    text-align: center;
    padding: 80px 20px;
    color: #9ca3af;
    font-size: 1.1rem;
}

/* ===== BLOG DETAIL PAGE ===== */
.blog-hero-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    margin-top: 8px;
}

.blog-category-tag {
    background: rgba(217, 70, 239, 0.1);
    color: var(--fuchsia);
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.blog-date {
    font-size: 0.85rem;
    color: #9ca3af;
}

.blog-content-section {
    padding: 60px 0 100px;
}

.blog-article {
    max-width: 800px;
    margin: 0 auto;
}

.blog-featured-img {
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 40px;
}

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

/* ===== BLOG BODY (WordPress Content) ===== */
.blog-body {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #374151;
}

.blog-body h2 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--dark);
    margin: 48px 0 16px;
    line-height: 1.3;
}

.blog-body h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--dark);
    margin: 36px 0 12px;
    line-height: 1.3;
}

.blog-body h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
    margin: 28px 0 8px;
}

.blog-body p {
    margin-bottom: 20px;
}

.blog-body a {
    color: var(--fuchsia);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.blog-body a:hover {
    text-decoration-thickness: 2px;
}

.blog-body ul, .blog-body ol {
    margin: 16px 0 24px 24px;
}

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

.blog-body img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 24px 0;
}

.blog-body blockquote {
    border-left: 4px solid var(--fuchsia);
    padding: 16px 24px;
    margin: 24px 0;
    background: rgba(217, 70, 239, 0.04);
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: #4b5563;
}

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

.blog-body th, .blog-body td {
    padding: 12px 16px;
    border: 1px solid #e5e7eb;
    text-align: left;
}

.blog-body th {
    background: #f9fafb;
    font-weight: 600;
}

/* ===== FAQ SECTION ===== */
.blog-faq {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(0,0,0,0.06);
}

.blog-faq h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--dark);
}

.faq-item {
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: border-color 0.2s;
}

.faq-item:hover {
    border-color: rgba(217, 70, 239, 0.2);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    color: var(--dark);
    text-align: left;
    gap: 16px;
}

.faq-icon {
    font-size: 1.3rem;
    color: var(--fuchsia);
    transition: transform 0.3s;
    flex-shrink: 0;
}

.faq-item.open .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

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

.faq-answer p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #6b7280;
}

/* ===== SHARE ===== */
.blog-share {
    max-width: 800px;
    margin: 40px auto 0;
    padding-top: 24px;
    border-top: 1px solid rgba(0,0,0,0.06);
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.9rem;
}

.blog-share span {
    color: #9ca3af;
    font-weight: 500;
}

.blog-share a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.blog-share a:hover {
    color: var(--fuchsia);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .blog-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

@media (max-width: 640px) {
    .blog-grid { grid-template-columns: 1fr; gap: 20px; }
    .blog-list-section { padding: 40px 0 80px; }
    .blog-body h2 { font-size: 1.3rem; }
    .blog-body h3 { font-size: 1.15rem; }
    .blog-body { font-size: 1rem; }
    .blog-share { flex-wrap: wrap; }
    .blog-card-title { font-size: 1.05rem; }
}
