/* ========================================
   BLOG ARCHIVE & SINGLE POST
   Modern Knorr Style
   ======================================== */

/* ==========================================
   ROOT VARIABLES
   ========================================== */
:root {
    --topbar-bg: #fde305;
    --primary-color: #fde305;
    --secondary-color: #e74c3c;
    --text-dark: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --footer-bg: #2c3e50;
    --footer-bottom: #1a252f;
}   

/* ========================================
   ARCHIVE PAGE
   ======================================== */

/* Archive Hero */
.archive-hero {
    position: relative;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-primary) 0%, #f5c800 100%);
    overflow: hidden;
}

.archive-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.archive-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--color-dark);
    animation: fadeInUp 0.8s ease-out;
}

.archive-title {
    font-family: var(--font-heading);
    font-size: 56px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin: 0 0 16px 0;
}

.archive-description {
    font-size: 20px;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Posts Section */
.posts-section {
    padding: 80px 0;
    background: #fff;
}

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

/* ========================================
   POST CARD (Normal)
   ======================================== */

.post-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.6s ease-out;
}

.post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

/* Post Thumbnail */
.post-thumbnail {
    position: relative;
    width: 100%;
    padding-top: 65%;
    overflow: hidden;
    background: #f8f9fa;
}

.post-thumbnail a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

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

.post-card:hover .post-thumbnail img {
    transform: scale(1.08);
}

/* Category Badge */
.post-category {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 2;
}

.post-category a {
    display: inline-block;
    padding: 8px 16px;
    background: var(--color-primary);
    color: var(--color-dark);
    text-decoration: none;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.post-category a:hover {
    background: #e5d000;
    transform: translateY(-2px);
}

/* Post Content */
.post-content {
    padding: 28px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Post Meta */
.post-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.post-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #6c757d;
}

.post-meta i {
    font-size: 13px;
    color: var(--color-primary);
}

/* Post Title */
.post-title {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 16px 0;
}

.post-title a {
    color: var(--color-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* Post Excerpt */
.post-excerpt {
    font-size: 15px;
    line-height: 1.7;
    color: #6c757d;
    margin: 0 0 20px 0;
    flex-grow: 1;
}

/* Read More Button */
.btn-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: gap 0.3s ease;
}

.btn-read-more:hover {
    gap: 12px;
}

/* ========================================
   FEATURED POST (First Post)
   ======================================== */

.post-featured {
    grid-column: 1 / -1;
}

.featured-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.post-thumbnail-featured {
    position: relative;
    width: 100%;
    padding-top: 70%;
    border-radius: 16px;
    overflow: hidden;
    background: #f8f9fa;
}

.post-thumbnail-featured a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.post-thumbnail-featured img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.post-featured:hover .post-thumbnail-featured img {
    transform: scale(1.05);
}

.post-category.featured a {
    background: var(--color-secondary);
    color: #fff;
}

.post-content-featured {
    padding: 20px 0;
}

.featured-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #fff3cd;
    color: #856404;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.featured-badge i {
    color: #ffc107;
}

.post-title-featured {
    font-family: var(--font-heading);
    font-size: 42px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin: 16px 0 20px 0;
}

.post-title-featured a {
    color: var(--color-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-title-featured a:hover {
    color: var(--color-primary);
}

.post-excerpt-featured {
    font-size: 18px;
    line-height: 1.7;
    color: #6c757d;
    margin: 0 0 28px 0;
}

.btn-read-more.btn-large {
    padding: 14px 32px;
    background: var(--color-primary);
    color: var(--color-dark);
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.btn-read-more.btn-large:hover {
    background: #e5d000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(253, 227, 5, 0.3);
}

/* ========================================
   PAGINATION
   ======================================== */

.blog-pagination {
    margin-top: 60px;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 48px;
    padding: 0 20px;
    background: #fff;
    color: var(--color-text);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.page-numbers:hover {
    background: var(--color-primary);
    color: var(--color-dark);
    transform: translateY(-2px);
}

.page-numbers.current {
    background: var(--color-primary);
    color: var(--color-dark);
}

.page-numbers.dots {
    background: transparent;
    cursor: default;
}

.page-numbers.prev,
.page-numbers.next {
    gap: 8px;
}

/* No Posts Found */
.no-posts-found {
    text-align: center;
    padding: 80px 20px;
    background: #f8f9fa;
    border-radius: 16px;
}

.no-posts-found i {
    font-size: 64px;
    color: #dee2e6;
    margin-bottom: 24px;
}

.no-posts-found h2 {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 16px 0;
    color: var(--color-dark);
}

.no-posts-found p {
    font-size: 18px;
    color: #6c757d;
    margin: 0 0 32px 0;
}

/* ========================================
   NEWSLETTER CTA
   ======================================== */

.newsletter-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--color-primary) 0%, #f5c800 100%);
}

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

.newsletter-text {
    display: flex;
    align-items: center;
    gap: 24px;
}

.newsletter-text i {
    font-size: 64px;
    color: var(--color-dark);
    opacity: 0.8;
}

.newsletter-text h2 {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 800;
    margin: 0 0 8px 0;
    color: var(--color-dark);
}

.newsletter-text p {
    font-size: 18px;
    margin: 0;
    color: var(--color-dark);
    opacity: 0.9;
}

/* ========================================
   SINGLE POST PAGE
   ======================================== */

/* Post Hero */
.post-hero {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--color-primary) 0%, #f5c800 100%);
}

.post-hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.post-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.post-hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: #fff;
    max-width: 900px;
    animation: fadeInUp 0.8s ease-out;
}

.post-category-single {
    margin-bottom: 20px;
}

.post-category-single a {
    display: inline-block;
    padding: 10px 24px;
    background: var(--color-primary);
    color: var(--color-dark);
    text-decoration: none;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.post-category-single a:hover {
    background: #e5d000;
    transform: translateY(-2px);
}

.post-title-single {
    font-family: var(--font-heading);
    font-size: 56px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin: 0 0 24px 0;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.post-meta-single {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.post-meta-single .meta-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.post-meta-single .meta-item i {
    font-size: 14px;
    color: var(--color-primary);
}

.post-meta-single a {
    color: #fff;
    text-decoration: none;
}

.post-meta-single a:hover {
    text-decoration: underline;
}

/* Post Content Section */
.post-content-section {
    padding: 80px 0;
    background: #fff;
}

.post-content-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.post-content-main {
    animation: fadeIn 0.8s ease-out;
}

/* Entry Content */
.entry-content {
    font-size: 18px;
    line-height: 1.8;
    color: var(--color-text);
    margin-bottom: 48px;
}

.entry-content h2 {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 700;
    line-height: 1.3;
    margin: 48px 0 24px 0;
    color: var(--color-dark);
}

.entry-content h3 {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    line-height: 1.4;
    margin: 40px 0 20px 0;
    color: var(--color-dark);
}

.entry-content h4 {
    font-size: 22px;
    font-weight: 600;
    margin: 32px 0 16px 0;
    color: var(--color-dark);
}

.entry-content p {
    margin: 0 0 24px 0;
}

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

.entry-content li {
    margin-bottom: 12px;
}

.entry-content a {
    color: var(--color-primary);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.entry-content a:hover {
    border-bottom-color: var(--color-primary);
}

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

.entry-content blockquote {
    border-left: 4px solid var(--color-primary);
    padding: 24px 32px;
    margin: 32px 0;
    background: #f8f9fa;
    border-radius: 8px;
    font-style: italic;
    font-size: 20px;
    color: #495057;
}

/* Post Tags */
.post-tags {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 32px 0;
    border-top: 2px solid #e9ecef;
    border-bottom: 2px solid #e9ecef;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.tags-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--color-dark);
}

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

.tags-list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    display: inline-block;
    padding: 8px 16px;
    background: #f8f9fa;
    color: var(--color-text);
    text-decoration: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.tag:hover {
    background: var(--color-primary);
    color: var(--color-dark);
    transform: translateY(-2px);
}

/* Post Share */
.post-share {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 32px 0;
    border-bottom: 2px solid #e9ecef;
    margin-bottom: 48px;
}

.share-label {
    font-weight: 700;
    color: var(--color-dark);
}

.share-buttons-post {
    display: flex;
    gap: 12px;
}

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

.share-btn-post:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

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

.share-btn-post.linkedin {
    background: #0077b5;
}

.share-btn-post.whatsapp {
    background: #25d366;
}

/* ========================================
   AUTHOR BOX
   ======================================== */

.author-box {
    display: flex;
    gap: 32px;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 16px;
    margin-bottom: 48px;
}

.author-avatar {
    flex-shrink: 0;
}

.author-avatar img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.author-info {
    flex: 1;
}

.author-name {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 12px 0;
    color: var(--color-dark);
}

.author-bio {
    font-size: 16px;
    line-height: 1.7;
    color: #6c757d;
    margin-bottom: 20px;
}

.btn-author-posts {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: gap 0.3s ease;
}

.btn-author-posts:hover {
    gap: 12px;
}

/* ========================================
   POST NAVIGATION
   ======================================== */

.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 48px;
}

.nav-post {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 24px;
    background: #f8f9fa;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-post:hover {
    background: var(--color-primary);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.nav-post.nav-next {
    text-align: right;
}

.nav-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6c757d;
}

.nav-post:hover .nav-label {
    color: var(--color-dark);
}

.nav-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-dark);
    line-height: 1.4;
}

/* ========================================
   RELATED POSTS
   ======================================== */

.related-posts-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 12px 0;
    color: var(--color-dark);
}

.section-header p {
    font-size: 20px;
    color: #6c757d;
    margin: 0;
}

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

/* ========================================
   CTA BANNER
   ======================================== */

.cta-banner {
    padding: 80px 0;
    background: linear-gradient(135deg, yellow 0%, #f5c800 100%)!important;
}

.cta-content {
    text-align: center;
}

.cta-content h2 {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 16px 0;
    color: #000;
}

.cta-content p {
    font-size: 20px;
    color: #111111;
    margin: 0 0 32px 0;
    opacity: 0.95;
}

.btn-primary.btn-large {
    padding: 18px 48px;
    font-size: 18px;
    background: white;
    color: var(--color-dark);
}

.btn-primary.btn-large:hover {
    background: #f5c800;
    color: white!important;
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

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

@media (max-width: 992px) {
    .archive-title {
        font-size: 42px;
    }

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

    .post-title-featured {
        font-size: 36px;
    }

    .post-title-single {
        font-size: 42px;
    }

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

    .post-navigation {
        grid-template-columns: 1fr;
    }

    .nav-post.nav-next {
        text-align: left;
    }

    .newsletter-content {
        flex-direction: column;
        text-align: center;
    }

    .newsletter-text {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .archive-hero {
        height: 300px;
    }

    .archive-title {
        font-size: 36px;
    }

    .archive-description {
        font-size: 16px;
    }

    .posts-section {
        padding: 60px 0;
    }

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

    .post-content {
        padding: 20px;
    }

    .post-title {
        font-size: 18px;
    }

    .post-title-featured {
        font-size: 32px;
    }

    .post-hero {
        min-height: 400px;
    }

    .post-title-single {
        font-size: 36px;
    }

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

    .entry-content {
        font-size: 16px;
    }

    .entry-content h2 {
        font-size: 28px;
    }

    .entry-content h3 {
        font-size: 24px;
    }

    .post-share {
        flex-direction: column;
        align-items: flex-start;
    }

    .related-posts-section {
        padding: 60px 0;
    }

    .related-posts-grid {
        gap: 20px;
    }

    .section-header h2,
    .cta-content h2,
    .newsletter-text h2 {
        font-size: 32px;
    }

    .cta-banner,
    .newsletter-cta {
        padding: 60px 0;
    }
}

@media (max-width: 576px) {
    .archive-hero {
        height: 250px;
    }

    .archive-title {
        font-size: 28px;
    }

    .posts-grid {
        grid-template-columns: 1fr;
    }

    .post-title-featured {
        font-size: 28px;
    }

    .post-title-single {
        font-size: 28px;
    }

    .post-meta-single {
        gap: 12px;
    }

    .related-posts-grid {
        grid-template-columns: 1fr;
    }

    .share-buttons-post {
        flex-wrap: wrap;
    }
}


/* ========================================
   ADDITIONAL BLOG FEATURES
   ======================================== */

/* Reading Progress Bar */
.reading-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #e9ecef;
    z-index: 9999;
}

.reading-progress-fill {
    height: 100%;
    background: var(--color-primary);
    width: 0;
    transition: width 0.1s ease;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--color-primary);
    color: var(--color-dark);
    border: none;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 9998;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: #e5d000;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* Table of Contents */
.table-of-contents {
    background: #f8f9fa;
    border-left: 4px solid var(--color-primary);
    padding: 24px 32px;
    margin: 32px 0;
    border-radius: 8px;
}

.table-of-contents h4 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 16px 0;
    color: var(--color-dark);
}

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

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

.toc-list li.toc-level-2 {
    padding-left: 20px;
}

.toc-list a {
    color: var(--color-text);
    text-decoration: none;
    font-size: 15px;
    line-height: 1.6;
    transition: color 0.3s ease;
}

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

/* Code Block Copy Button */
pre {
    position: relative;
    background: #2d2d2d;
    color: #f8f8f2;
    padding: 24px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 32px 0;
}

.copy-code-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 8px 16px;
    background: var(--color-primary);
    color: var(--color-dark);
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-code-btn:hover {
    background: #e5d000;
    transform: translateY(-2px);
}

/* Print Button */
.btn-print-post {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 50%;
    color: var(--color-text);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-print-post:hover {
    background: var(--color-primary);
    color: var(--color-dark);
    border-color: var(--color-primary);
    transform: translateY(-2px);
}

/* Image Lightbox */
.image-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    z-index: 2;
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    width: 40px;
    height: 40px;
    background: #fff;
    border: none;
    border-radius: 50%;
    color: var(--color-dark);
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    background: var(--color-primary);
    transform: rotate(90deg);
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
    text-align: center;
    color: #fff;
    margin-top: 16px;
    font-size: 16px;
}

/* Post Card Animation */
.post-card {
    opacity: 0;
    transform: translateY(30px);
}

.post-card.animate-in {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s ease;
}

/* Entry Content - Better Styling */
.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 32px 0;
}

.entry-content table th,
.entry-content table td {
    padding: 12px 16px;
    border: 1px solid #e9ecef;
    text-align: left;
}

.entry-content table th {
    background: #f8f9fa;
    font-weight: 700;
}

.entry-content table tr:hover {
    background: #f8f9fa;
}

/* Mobile Swipe Indicator for Related Posts */
@media (max-width: 768px) {
    .related-posts-grid {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .related-posts-grid::-webkit-scrollbar {
        display: none;
    }

    .related-posts-grid .post-card {
        scroll-snap-align: start;
        flex-shrink: 0;
    }
}

/* Print Styles */
@media print {
    .reading-progress-bar,
    .scroll-to-top,
    .post-share,
    .author-box,
    .post-navigation,
    .related-posts-section,
    .cta-banner,
    .newsletter-cta,
    header,
    footer,
    .breadcrumb-section {
        display: none !important;
    }

    .post-hero {
        page-break-before: avoid;
    }

    .entry-content {
        font-size: 12pt;
        line-height: 1.6;
    }

    .entry-content h2 {
        page-break-after: avoid;
    }

    .entry-content img {
        max-width: 100%;
        page-break-inside: avoid;
    }
}

/* ==========================================================================
   KUREX FOODS - GLOBAL GRID OVERRIDE (FORCE 4-3-2 STRUCTURE)
   ========================================================================== */

/* blog.css içindeki CSS Grid yapısını tamamen iptal edip Flexbox'a zorluyoruz */
.posts-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    grid-template-columns: none !important; /* Grid kolonlarını sıfırla */
    gap: 0 !important; /* Grid boşluğunu sıfırla */
    margin-right: -12px !important;
    margin-left: -12px !important;
}

/* posts-grid içindeki tüm doğrudan alt elemanları (kartları) kapsayan sütun yapısı */
.posts-grid > div, 
.posts-grid > article {
    box-sizing: border-box !important;
    padding-right: 12px !important;
    padding-left: 12px !important;
    margin-bottom: 24px !important;
    
    /* Mobil Varsayılan: Yan yana 2 Adet (%50 Genişlik) */
    width: 50% !important;
    flex: 0 0 50% !important;
    max-width: 50% !important;
}

/* Görsel Alanını Tam Kare Yapma Güvencesi */
.posts-grid .post-thumbnail {
    padding-top: 100% !important; /* Yüksekliği genişliğe eşitleyip tam kare yapar */
    border-radius: 16px 16px 0 0 !important;
}

.posts-grid .post-thumbnail img {
    border-radius: 16px 16px 0 0 !important;
}

/* Tablet Kırılımı (768px ve üzeri): Yan yana 3 Adet (%33.33 Genişlik) */
@media (min-width: 768px) {
    .posts-grid > div, 
    .posts-grid > article {
        width: 33.333333% !important;
        flex: 0 0 33.333333% !important;
        max-width: 33.333333% !important;
    }
}

/* Masaüstü Kırılımı (992px ve üzeri): Yan yana 4 Adet (%25 Genişlik) */
@media (min-width: 992px) {
    .posts-grid > div, 
    .posts-grid > article {
        width: 25% !important;
        flex: 0 0 25% !important;
        max-width: 25% !important;
    }
}

/* blog.css'te bulunan ve kartları gizleyen animasyonu devre dışı bırakma */
.post-card {
    opacity: 1 !important;
    transform: none !important;
}