:root {
    --madiad-primary: #DC143C;
    --madiad-primary-dark: #B91C3C;
    --madiad-secondary: #333333;
    --madiad-text: #666666;
    --madiad-white: #ffffff;
    --madiad-black: #000000;
    
    /* NEW: Fresh accent colors */
    --accent-cyan: #00D9FF;
    --accent-amber: #FFB800;
    --accent-purple: #B892FF;
    
    --font-body: 'Inter', sans-serif;
    --font-heading: 'Poppins', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.breadcrumbs-section {
    padding: 20px 0;
    background: linear-gradient(135deg, #1A1D23 0%, #0F1419 50%, #1A1D23 100%);
    border-bottom: 3px solid rgba(220, 20, 60, 0.6);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.breadcrumbs-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 300%;
    height: 100%;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 50px,
        rgba(220, 20, 60, 0.08) 50px,
        rgba(220, 20, 60, 0.08) 100px
    );
    animation: slidePattern 20s linear infinite;
}

@keyframes slidePattern {
    0% { transform: translateX(0); }
    100% { transform: translateX(100px); }
}

.breadcrumb-nav {
    position: relative;
    z-index: 2;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 0;
    padding: 0;
    list-style: none;
    flex-wrap: wrap;
    background: transparent;
    font-size: 0.95rem;
}

.breadcrumb,
.breadcrumb li,
.breadcrumb-item {
    list-style: none !important;
    list-style-type: none !important;
}

.breadcrumb li::marker,
.breadcrumb-item::marker {
    content: none !important;
    display: none !important;
}

.breadcrumb li::before,
.breadcrumb-item::before {
    content: none !important;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 15px;
    animation: fadeInLeft 0.5s ease-out;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23DC143C' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 18 15 12 9 6'%3E%3C/polyline%3E%3C/svg%3E") center/contain no-repeat;
    opacity: 0.9;
    margin: 0 !important;
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.breadcrumb-item a:hover {
    color: #ffffff;
    background: rgba(220, 20, 60, 0.25);
    border-color: rgba(220, 20, 60, 0.6);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(220, 20, 60, 0.4);
}

.breadcrumb-item a .breadcrumb-icon {
    font-size: 0.875rem;
    color: var(--madiad-primary);
}

.breadcrumb-item.active {
    color: #ffffff;
    font-weight: 700;
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--madiad-primary) 0%, #ff4069 100%);
    border-radius: 25px;
    box-shadow: 0 6px 20px rgba(220, 20, 60, 0.5);
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.blog-header {
    background: linear-gradient(180deg, #0F1419 0%, #1A1D23 50%, #0F1419 100%);
    padding: 150px 0 120px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    box-shadow: inset 0 -2px 40px rgba(220, 20, 60, 0.15);
}

.blog-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 40%, rgba(220, 20, 60, 0.15) 0%, transparent 60%),
                radial-gradient(circle at 70% 60%, rgba(0, 217, 255, 0.12) 0%, transparent 60%);
    animation: meshRotate 30s linear infinite;
}

@keyframes meshRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.blog-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, rgba(255, 255, 255, 0.15), transparent),
        radial-gradient(2px 2px at 60% 70%, rgba(255, 255, 255, 0.12), transparent),
        radial-gradient(2px 2px at 80% 20%, rgba(255, 255, 255, 0.1), transparent);
    background-size: 200% 200%;
    animation: sparkle 15s linear infinite;
    opacity: 0.5;
}

@keyframes sparkle {
    0% { background-position: 0% 0%; }
    100% { background-position: 200% 200%; }
}

.blog-header-content {
    position: relative;
    z-index: 2;
}

.blog-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    background: linear-gradient(135deg, #ffffff 0%, #00D9FF 30%, #DC143C 60%, #ffffff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 4px 12px rgba(220, 20, 60, 0.6)) 
            drop-shadow(0 0 30px rgba(0, 217, 255, 0.4));
    animation: fadeInDown 1s ease-out;
}

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

.blog-subtitle {
    font-size: 1.125rem;
    color: #FFFFFF;
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.8;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    font-weight: 500;
    animation: fadeInUp 1s ease-out 0.2s;
    animation-fill-mode: both;
}

.blog-filter {
    margin-top: 50px;
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease-out 0.4s;
    animation-fill-mode: both;
}

.filter-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.filter-item a {
    display: inline-block;
    padding: 12px 28px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 30px;
    color: white;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.875rem;
    backdrop-filter: blur(10px);
}

.filter-item a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: linear-gradient(135deg, var(--madiad-primary), var(--accent-cyan));
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    z-index: -1;
}

.filter-item a:hover::before,
.filter-item.active a::before {
    width: 150%;
    height: 150%;
}

.filter-item.active a,
.filter-item a:hover {
    background: transparent;
    border-color: var(--madiad-primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(220, 20, 60, 0.4);
}

body.blog,
body.archive,
body.category,
body.search {
    background: #f5f7fa;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(220, 20, 60, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 217, 255, 0.04) 0%, transparent 50%);
    min-height: 100vh;
    position: relative;
}

.archive-header {
    background: linear-gradient(180deg, #0F1419 0%, #1A1D23 50%, #0F1419 100%);
    padding: 150px 0 120px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    box-shadow: inset 0 -2px 40px rgba(220, 20, 60, 0.15);
}

.archive-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 40%, rgba(220, 20, 60, 0.15) 0%, transparent 60%),
                radial-gradient(circle at 70% 60%, rgba(0, 217, 255, 0.12) 0%, transparent 60%);
    animation: meshRotate 30s linear infinite;
}

.archive-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, rgba(255, 255, 255, 0.15), transparent),
        radial-gradient(2px 2px at 60% 70%, rgba(255, 255, 255, 0.12), transparent);
    background-size: 200% 200%;
    animation: sparkle 15s linear infinite;
    opacity: 0.5;
}

.archive-header > * {
    position: relative;
    z-index: 2;
}

.archive-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    position: relative;
    z-index: 2;
    background: linear-gradient(135deg, #ffffff 0%, #00D9FF 30%, #DC143C 60%, #ffffff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 4px 12px rgba(220, 20, 60, 0.6)) 
            drop-shadow(0 0 30px rgba(0, 217, 255, 0.4));
    animation: fadeInUp 1s ease-out;
}

.archive-description {
    font-size: 1.125rem;
    color: #FFFFFF;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    line-height: 1.8;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    font-weight: 500;
    animation: fadeInUp 1s ease-out 0.2s;
    animation-fill-mode: both;
}

.archive-count {
    margin-top: 30px;
    font-size: 0.95rem;
    color: #FFFFFF;
    font-weight: 700;
    letter-spacing: 1px;
    position: relative;
    z-index: 2;
    display: inline-block;
    padding: 12px 28px;
    background: rgba(220, 20, 60, 0.25);
    border: 2px solid rgba(220, 20, 60, 0.5);
    border-radius: 30px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 16px rgba(220, 20, 60, 0.3);
}

.content-area {
    padding: 80px 0;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.content-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50px;
    right: -50px;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    pointer-events: none;
}

.posts-grid {
    display: grid;
    gap: 40px;
}

.blog-layout-grid {
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
}

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

.blog-layout-masonry {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    grid-auto-flow: dense;
}

.post-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.1);
    position: relative;
}

.post-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--madiad-primary), var(--accent-cyan), var(--accent-amber));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.post-card:hover::before {
    transform: scaleX(1);
}

.post-card:hover {
    transform: translateY(-10px) scale(1.01);
    box-shadow: 0 20px 50px rgba(220, 20, 60, 0.25);
    border-color: rgba(220, 20, 60, 0.4);
}

.post-categories {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    z-index: 2;
}

/* Rotating category colors for variety */
.post-categories a {
    background: rgba(220, 20, 60, 1);
    backdrop-filter: blur(10px);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 16px rgba(220, 20, 60, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.post-categories a:nth-child(3n+2) {
    background: var(--accent-cyan);
    box-shadow: 0 6px 16px rgba(0, 217, 255, 0.5);
}

.post-categories a:nth-child(3n+3) {
    background: var(--accent-amber);
    box-shadow: 0 6px 16px rgba(255, 184, 0, 0.5);
}

.post-categories a:hover {
    background: #B91C3C;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 10px 24px rgba(220, 20, 60, 0.6);
}

.post-categories a:nth-child(3n+2):hover {
    background: #0096C8;
    box-shadow: 0 10px 24px rgba(0, 217, 255, 0.6);
}

.post-categories a:nth-child(3n+3):hover {
    background: #FF9600;
    box-shadow: 0 10px 24px rgba(255, 184, 0, 0.6);
}

.post-thumbnail {
    position: relative;
    overflow: hidden;
    padding-top: 60%;
}

.post-thumbnail::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.8) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.post-card:hover .post-thumbnail::after {
    opacity: 1;
}

.post-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.blog-layout-list .post-card {
    flex-direction: row;
}

.blog-layout-list .post-thumbnail {
    flex: 0 0 300px;
    padding-top: 0;
    height: 100%;
}

.post-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: white;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 0.875rem;
    color: #6C757D;
    margin-bottom: 15px;
}

.post-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

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

.post-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    line-height: 1.3;
}

.post-title a {
    color: #1a1a1a;
    transition: color 0.3s ease;
    font-weight: 600;
}

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

.post-excerpt {
    color: #495057;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.post-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.read-more {
    color: var(--accent-cyan);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.3s ease, color 0.3s ease;
    font-size: 0.95rem;
}

.read-more:hover {
    color: var(--accent-amber);
    gap: 10px;
}

.post-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.author-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    overflow: hidden;
}

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

.single-post-header {
    padding: 40px 0;
    background: #ffffff;
    border-bottom: 1px solid #eee;
}

.post-header-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.post-categories-header {
    margin-bottom: 20px;
}

.category-badge {
    display: inline-block;
    background: var(--madiad-primary);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.875rem;
    font-weight: 700;
    margin: 0 5px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 16px rgba(220, 20, 60, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.category-badge:nth-child(3n+2) {
    background: var(--accent-cyan);
    box-shadow: 0 6px 16px rgba(0, 217, 255, 0.4);
}

.category-badge:nth-child(3n+3) {
    background: var(--accent-amber);
    box-shadow: 0 6px 16px rgba(255, 184, 0, 0.4);
}

.category-badge:hover {
    background: #B91C3C;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(220, 20, 60, 0.5);
}

.category-badge:nth-child(3n+2):hover {
    background: #0096C8;
}

.category-badge:nth-child(3n+3):hover {
    background: #FF9600;
}

.single-post-title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: #1a1a1a;
    margin-bottom: 30px;
    line-height: 1.3;
    font-weight: 700;
}

.single-post-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 25px;
    font-size: 0.95rem;
    color: #6C757D;
}

.single-post-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.single-post-meta i {
    color: var(--madiad-primary);
    font-size: 0.875rem;
}

.single-post {
    background: #ffffff;
}

body.single-post-page {
    background: #f5f7fa;
}

.single-featured-image {
    margin-bottom: 60px;
}

.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.featured-image-wrapper {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

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

.single-post-content {
    padding: 60px 0;
    background: #ffffff;
}

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

.post-main-content,
.post-full-width {
    width: 100%;
}

.entry-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #2d2d2d;
    font-family: var(--font-body);
}

.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    margin-top: 50px;
    margin-bottom: 25px;
    color: #1a1a1a;
    font-weight: 700;
    line-height: 1.3;
    position: relative;
}

.entry-content h2 {
    font-size: 2.25rem;
    padding-bottom: 15px;
}

.entry-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--madiad-primary), var(--accent-cyan));
}

.entry-content h3 {
    font-size: 1.75rem;
}

.entry-content h4 {
    font-size: 1.375rem;
}

.entry-content p {
    margin-bottom: 28px;
    color: #333;
}

.entry-content ul,
.entry-content ol {
    margin-bottom: 30px;
    padding-left: 0;
    margin-left: 20px;
}

.entry-content ul li,
.entry-content ol li {
    margin-bottom: 12px;
    padding-left: 10px;
    line-height: 1.7;
}

.entry-content ul {
    list-style: none;
    margin-left: 0;
}

.entry-content ul li {
    position: relative;
    padding-left: 35px;
}

.entry-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    background: var(--madiad-primary);
    border-radius: 50%;
}

.entry-content ul li:nth-child(3n+2)::before {
    background: var(--accent-cyan);
}

.entry-content ul li:nth-child(3n+3)::before {
    background: var(--accent-amber);
}

.entry-content ol {
    counter-reset: item;
    list-style: none;
    margin-left: 0;
}

.entry-content ol li {
    position: relative;
    padding-left: 45px;
    counter-increment: item;
}

.entry-content ol li::before {
    content: counter(item);
    position: absolute;
    left: 0;
    top: 2px;
    width: 30px;
    height: 30px;
    background: var(--madiad-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
}

.entry-content ol li:nth-child(3n+2)::before {
    background: var(--accent-cyan);
}

.entry-content ol li:nth-child(3n+3)::before {
    background: var(--accent-amber);
}

.entry-content blockquote {
    border-left: 4px solid var(--madiad-primary);
    padding: 30px 30px 30px 40px;
    margin: 50px 0;
    font-style: italic;
    font-size: 1.25rem;
    color: #495057;
    background: #f8f9fa;
    border-radius: 0 10px 10px 0;
    position: relative;
}

.entry-content blockquote::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    color: var(--madiad-primary);
    opacity: 0.2;
    font-family: Georgia, serif;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 40px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.entry-content figure {
    margin: 40px 0;
}

.entry-content figcaption {
    text-align: center;
    font-size: 0.875rem;
    color: #6C757D;
    margin-top: 10px;
    font-style: italic;
}

.entry-content pre {
    background: #1a1a1a;
    color: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    overflow-x: auto;
    margin: 40px 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

.entry-content code {
    background: rgba(220, 20, 60, 0.1);
    padding: 3px 8px;
    border-radius: 4px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.9rem;
    color: var(--madiad-primary);
}

.entry-content pre code {
    background: transparent;
    padding: 0;
    color: inherit;
}

.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 40px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    overflow: hidden;
}

.entry-content table th {
    background: #1a1a1a;
    color: white;
    padding: 20px;
    text-align: left;
    font-weight: 600;
}

.entry-content table td {
    padding: 20px;
    border-bottom: 1px solid #eee;
}

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

.entry-content a {
    color: var(--accent-cyan);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    font-weight: 500;
}

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

.post-tags {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid #eee;
}

.post-tags h3 {
    font-size: 1rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #868e96;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-list a {
    background: #f0f0f0;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    color: #495057;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.tag-list a:hover {
    background: var(--madiad-primary);
    color: white;
    border-color: var(--madiad-primary);
    transform: translateY(-2px);
}

.tag-list a:nth-child(5n+2):hover {
    background: var(--accent-cyan);
    border-color: var(--accent-cyan);
}

.tag-list a:nth-child(5n+3):hover {
    background: var(--accent-amber);
    border-color: var(--accent-amber);
}

.post-share {
    margin: 80px 0;
    padding: 50px;
    border-radius: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

.post-share::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(220, 20, 60, 0.05) 0%, transparent 70%);
    transform: rotate(45deg);
}

.post-share h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: #1a1a1a;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.share-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 16px;
    color: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.375rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.share-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.share-button:hover::before {
    width: 100px;
    height: 100px;
}

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

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

.share-button.linkedin {
    background: #0a66c2;
}

.share-button.email {
    background: var(--madiad-primary);
}

.share-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.post-navigation {
    margin: 60px 0;
    padding: 40px 0;
    background: #f8f9fa;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.post-navigation .nav-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.nav-previous,
.nav-next {
    position: relative;
}

.nav-previous a,
.nav-next a {
    display: flex;
    flex-direction: column;
    padding: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    min-height: 120px;
    border: 1px solid #e9ecef;
}

.nav-previous a:hover,
.nav-next a:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.18);
    border-color: rgba(220, 20, 60, 0.4);
}

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

.nav-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.875rem;
    color: var(--madiad-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.nav-next .nav-label {
    justify-content: flex-end;
}

.nav-title {
    font-size: 1.25rem;
    color: #1a1a1a;
    font-weight: 600;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-posts {
    margin-top: 80px;
    padding: 60px 0;
    background: #f8f9fa;
    position: relative;
}

.related-posts::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--madiad-primary), var(--accent-cyan));
}

.related-posts h3 {
    font-size: 2.5rem;
    margin-bottom: 50px;
    text-align: center;
    color: #1a1a1a;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.related-post-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e9ecef;
}

.related-post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(220, 20, 60, 0.25);
    border-color: rgba(220, 20, 60, 0.4);
}

.related-post-thumbnail {
    position: relative;
    padding-top: 65%;
    overflow: hidden;
    background: #f0f0f0;
}

.related-post-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.related-post-content {
    padding: 30px;
}

.related-post-content h4 {
    margin-bottom: 15px;
    font-size: 1.25rem;
    line-height: 1.5;
}

.related-post-content h4 a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: 600;
}

.related-post-content h4 a:hover {
    color: var(--madiad-primary);
}

.related-post-date {
    font-size: 0.875rem;
    color: #868e96;
    display: flex;
    align-items: center;
    gap: 8px;
}

.related-post-date::before {
    content: '';
    width: 4px;
    height: 4px;
    background: var(--madiad-primary);
    border-radius: 50%;
}

.pagination {
    margin-top: 60px;
    display: flex;
    justify-content: center;
}

.pagination-list {
    display: flex;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination-list li {
    display: flex;
}

.pagination-list a,
.pagination-list span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    color: #495057;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pagination-list a:hover,
.pagination-list .current {
    background: var(--madiad-primary);
    border-color: var(--madiad-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(220, 20, 60, 0.4);
}

.comments-area {
    margin-top: 60px;
    padding-top: 60px;
    border-top: 1px solid #eee;
}

.comments-title {
    font-size: 2rem;
    margin-bottom: 30px;
}

.comment-list {
    list-style: none;
    padding: 0;
}

.comment-body {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    border: 1px solid #e9ecef;
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.comment-author img {
    border-radius: 50%;
}

.comment-metadata {
    font-size: 0.875rem;
    color: #868e96;
}

.comment-content {
    margin-bottom: 20px;
}

.comment-reply {
    text-align: right;
}

.comment-reply-link {
    color: var(--madiad-primary);
    font-weight: 500;
}

.comment-form {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
    margin-top: 40px;
    border: 1px solid #e9ecef;
}

.comment-form-title {
    font-size: 1.5rem;
    margin-bottom: 30px;
}

.comment-form p {
    margin-bottom: 20px;
}

.comment-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: border-color 0.3s ease;
}

.comment-form input:focus,
.comment-form textarea:focus {
    border-color: var(--madiad-primary);
    outline: none;
}

.comment-form-submit {
    background: var(--madiad-primary);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.comment-form-submit:hover {
    background: #B91C3C;
    transform: translateY(-2px);
}

.search-header {
    background: linear-gradient(180deg, #0F1419 0%, #1A1D23 50%, #0F1419 100%);
    padding: 150px 0 120px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    box-shadow: inset 0 -2px 40px rgba(220, 20, 60, 0.15);
}

.search-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 300%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(220, 20, 60, 0.1) 25%, 
        rgba(0, 217, 255, 0.1) 50%, 
        rgba(220, 20, 60, 0.1) 75%, 
        transparent 100%);
    animation: waveMove 15s linear infinite;
}

@keyframes waveMove {
    0% { transform: translateX(0); }
    100% { transform: translateX(33.33%); }
}

.search-header > * {
    position: relative;
    z-index: 2;
}

.search-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 20px;
    font-weight: 700;
}

.search-query {
    color: #fff;
    font-style: normal;
    background: linear-gradient(135deg, var(--madiad-primary) 0%, var(--accent-cyan) 50%, var(--accent-amber) 100%);
    padding: 10px 25px;
    border-radius: 30px;
    display: inline-block;
    margin-top: 10px;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(220, 20, 60, 0.4);
}

.search-meta {
    font-size: 1.125rem;
    color: #FFFFFF;
    margin-bottom: 40px;
    font-weight: 500;
}

.search-meta strong {
    color: #fff;
    font-size: 1.75rem;
    font-weight: 700;
}

@media (max-width: 991px) {
    .blog-header,
    .archive-header {
        padding: 100px 0 60px;
    }
    
    .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .blog-header,
    .archive-header,
    .search-header {
        padding: 120px 0 80px;
        min-height: 70vh;
    }
    
    .breadcrumbs-section {
        padding-top: 80px;
    }
    
    .blog-layout-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-layout-list .post-card {
        flex-direction: column;
    }
    
    .blog-layout-list .post-thumbnail {
        flex: auto;
        padding-top: 60%;
    }
    
    .single-post-header {
        padding: 30px 0;
    }
    
    .single-post-content {
        padding: 40px 0;
    }
    
    .entry-content {
        font-size: 1rem;
    }
    
    .related-posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .post-navigation .nav-links {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .share-buttons {
        gap: 15px;
    }
    
    .share-button {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .filter-list {
        gap: 10px;
    }
    
    .filter-item a {
        padding: 8px 20px;
        font-size: 0.875rem;
    }
    
    .post-content {
        padding: 20px;
    }
}

.post-card {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

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

.post-card:nth-child(1) { animation-delay: 0.1s; }
.post-card:nth-child(2) { animation-delay: 0.2s; }
.post-card:nth-child(3) { animation-delay: 0.3s; }
.post-card:nth-child(4) { animation-delay: 0.4s; }
.post-card:nth-child(5) { animation-delay: 0.5s; }
.post-card:nth-child(6) { animation-delay: 0.6s; }
.post-card:nth-child(7) { animation-delay: 0.7s; }
.post-card:nth-child(8) { animation-delay: 0.8s; }
.post-card:nth-child(9) { animation-delay: 0.9s; }

.loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--madiad-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.filter-item a:focus-visible,
.pagination-list a:focus-visible,
.post-card a:focus-visible,
.share-button:focus-visible {
    outline: 3px solid var(--madiad-primary);
    outline-offset: 3px;
}

/* ===================================
   FIX: Mobile Container & Overflow Issues
   =================================== */
body.blog,
body.archive,
body.category,
body.search {
    width: 100%;
    overflow-x: hidden;
    position: relative;
}

@media (max-width: 768px) {
    .blog-header .container,
    .archive-header .container,
    .search-header .container {
        max-width: 100% !important;
        width: 100% !important;
        padding: 0 15px !important;
        margin: 0 auto;
    }
    
    .blog-header,
    .archive-header,
    .search-header {
        width: 100%;
        overflow-x: hidden;
    }
    
    .blog-title,
    .archive-title,
    .search-title {
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
    
    .filter-list {
        width: 100%;
        justify-content: center;
        padding: 0 10px;
    }
    
    .filter-item a {
        padding: 10px 20px;
        font-size: 0.8rem;
        white-space: nowrap;
    }
    
    .breadcrumb {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 0 10px;
    }
    
    .breadcrumbs-section .container {
        max-width: 100% !important;
        padding: 0 !important;
    }
}

@media (max-width: 480px) {
    .blog-header .container,
    .archive-header .container,
    .search-header .container {
        padding: 0 10px !important;
    }
    
    .blog-title,
    .archive-title,
    .search-title {
        font-size: 2rem !important;
        line-height: 1.2;
    }
    
    .blog-subtitle,
    .archive-description {
        font-size: 0.95rem;
        padding: 0 10px;
    }
}

.blog-header *,
.archive-header *,
.search-header * {
    max-width: 100%;
}

@media (max-width: 768px) {
    .archive-count {
        font-size: 0.85rem;
        padding: 10px 20px;
    }
}