:root {
    --zen-primary: #673de6;
    --zen-secondary: #0f172a;
    --zen-bg: #f8fafc;
    --zen-accent: #64748b;
    --zen-card-bg: #ffffff;
    --zen-border: #e2e8f0;
    --zen-text-muted: #64748b;
    --zen-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-bs-theme="dark"] {
    --zen-primary: #7c5dfa;
    /* Slightly lighter violet for better contrast on dark */
    --zen-secondary: #e8e6ef;
    --zen-bg: #0a0910;
    --zen-accent: #9e98b7;
    --zen-card-bg: #161421;
    --zen-border: #2d2a3d;
    --zen-text-muted: #9e98b7;
    --zen-bg-rgb: 10, 9, 16;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--zen-primary);
    background-color: var(--zen-bg);
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.02em;
}

/* Bootstrap Overrides */
.btn-primary {
    background-color: #673de6 !important;
    border-color: #673de6 !important;
}

.btn-primary:hover {
    background-color: #5632c2 !important;
    border-color: #5632c2 !important;
}

.text-primary {
    color: #673de6 !important;
}

.badge.bg-primary {
    background-color: #673de6 !important;
    color: #ffffff !important;
}

.bg-primary {
    color: #ffffff !important;
}

/* Header Adjustments */
.site-header {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.85) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
    z-index: 1030;
}

[data-bs-theme="dark"] .site-header {
    background: rgba(10, 9, 16, 0.85) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

[data-bs-theme="light"] {
    --zen-bg-rgb: 255, 255, 255;
}

/* Modern Logo */
.logo-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.logo-link:hover {
    opacity: 0.8;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #673de6 0%, #8b5cf6 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 15px rgba(103, 61, 230, 0.3);
}

.logo-text {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--zen-secondary);
    letter-spacing: -0.02em;
}

[data-bs-theme="dark"] .logo-text {
    color: #e8e6ef;
}

/* Modern Navigation */
.modern-nav {
    gap: 0.25rem;
}

.modern-nav .nav-link {
    color: var(--zen-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.modern-nav .nav-link:hover {
    color: #673de6;
    background: rgba(103, 61, 230, 0.08);
}

.modern-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0.25rem;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #673de6 0%, #8b5cf6 100%);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 2px;
}

.modern-nav .nav-link:hover::after {
    width: 60%;
}

[data-bs-theme="dark"] .modern-nav .nav-link {
    color: #9e98b7;
}

[data-bs-theme="dark"] .modern-nav .nav-link:hover {
    color: #a78bfa;
    background: rgba(124, 93, 250, 0.1);
}

/* Header Buttons */
.header-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: none;
    background: transparent;
    color: var(--zen-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-btn:hover {
    background: rgba(103, 61, 230, 0.08);
    color: #673de6;
}

[data-bs-theme="dark"] .header-btn {
    color: #9e98b7;
}

[data-bs-theme="dark"] .header-btn:hover {
    background: rgba(124, 93, 250, 0.1);
    color: #a78bfa;
}

/* Post Cards */
.post-item {
    transition: var(--zen-transition);
}

.post-card-image {
    display: block;
    overflow: hidden;
}

.post-card-image img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.card {
    background-color: var(--zen-card-bg);
    border: 1px solid var(--zen-border) !important;
    transition: var(--zen-transition);
}

.post-item:hover .card {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02) !important;
}

.group-hover-translate-x {
    transition: transform 0.3s ease;
}

.btn-link:hover .group-hover-translate-x {
    transform: translateX(4px);
}

/* Line Clamp for Excerpts */
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    line-clamp: 3;
    /* Standard property */
    overflow: hidden;
}

/* Custom Transitions */
.transition-colors {
    transition: color 0.3s ease;
}

.transition-transform {
    transition: transform 0.3s ease;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Widgets & Ads */
.widget {
    border-bottom: 1px solid var(--zen-border);
    padding-bottom: 1.5rem;
}

.widget:last-child {
    border-bottom: none;
}

.ad-container {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
}

.ad-container img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Dark Mode Overrides */
[data-bs-theme="dark"] .text-muted {
    color: var(--zen-text-muted) !important;
}

[data-bs-theme="dark"] .bg-light,
[data-bs-theme="dark"] .bg-white,
[data-bs-theme="dark"] .offcanvas,
[data-bs-theme="dark"] .search-header .bg-white,
[data-bs-theme="dark"] .input-group-lg {
    background-color: var(--zen-card-bg) !important;
}

[data-bs-theme="dark"] .card-title a,
[data-bs-theme="dark"] .offcanvas-title,
[data-bs-theme="dark"] .nav-link,
[data-bs-theme="dark"] .page-header h2,
[data-bs-theme="dark"] .archive-header h1 {
    color: var(--zen-primary) !important;
}

[data-bs-theme="dark"] input.form-control {
    background-color: var(--zen-bg) !important;
    color: white !important;
    border-color: var(--zen-border) !important;
}

[data-bs-theme="dark"] .pagination .page-numbers {
    color: var(--zen-primary);
    border-color: var(--zen-border);
}

[data-bs-theme="dark"] .pagination .current {
    background-color: var(--zen-primary);
    color: white;
}

.animate-up {
    animation: fadeInUp 0.8s ease backwards;
}

/* Infinite Scroll Loader */
#infinite-loader {
    padding: 2rem 0;
}

/* Footer Styles */
.site-footer {
    background-color: #0f172a;
    /* Navy dark for light mode */
    color: #f8fafc;
}

[data-bs-theme="dark"] .site-footer {
    background-color: #06050a;
    /* True black-violet for dark mode */
    border-top: 1px solid var(--zen-border);
}

.site-footer a {
    color: rgba(248, 250, 252, 0.7);
    text-decoration: none;
    transition: var(--zen-transition);
}

.site-footer a:hover {
    color: var(--zen-primary);
}

.site-footer .text-muted {
    color: rgba(248, 250, 252, 0.5) !important;
}

.site-footer .form-control {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
}

.site-footer .form-control:focus {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--zen-primary);
    box-shadow: none;
    color: white;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    transition: var(--zen-transition);
}

.social-links a:hover {
    background: var(--zen-primary);
    color: white !important;
    transform: translateY(-3px);
}

/* Admin Bar Adjustments */
body.admin-bar .site-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .site-header {
        top: 46px;
    }
}

/* ========================================
   HERO SECTION - Full Width Animated
   ======================================== */
.hero-section {
    position: relative;
    height: 30vh;
    min-height: 280px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #312e81 100%);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #673de6 0%, transparent 70%);
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #8b5cf6 0%, transparent 70%);
    bottom: -50px;
    right: 10%;
    animation-delay: -7s;
}

.orb-3 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, #a855f7 0%, transparent 70%);
    top: 20%;
    right: -50px;
    animation-delay: -14s;
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(30px, -30px) scale(1.1);
    }
    50% {
        transform: translate(-20px, 20px) scale(0.95);
    }
    75% {
        transform: translate(20px, 10px) scale(1.05);
    }
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

.hero-content {
    position: relative;
    z-index: 10;
    padding: 2rem;
}

.hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #ffffff 0%, #c4b5fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 80px rgba(103, 61, 230, 0.5);
    animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    from {
        filter: drop-shadow(0 0 20px rgba(103, 61, 230, 0.3));
    }
    to {
        filter: drop-shadow(0 0 40px rgba(103, 61, 230, 0.6));
    }
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.7);
    margin-top: 1rem;
    font-weight: 400;
    letter-spacing: 0.05em;
}

/* ========================================
   FEATURED SECTION - 2 Levels
   ======================================== */
.featured-section {
    margin-bottom: 3rem;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--zen-secondary);
    margin: 0;
    white-space: nowrap;
}

.section-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, var(--zen-border) 0%, transparent 100%);
}

/* Level 1 Featured Cards */
.level-1-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: var(--zen-card-bg);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
}

.level-1-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.card-media {
    position: relative;
    height: 100%;
    overflow: hidden;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.level-1-card:hover .card-image {
    transform: scale(1.08);
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, transparent 100%);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.level-1-card:hover .card-overlay {
    opacity: 0.9;
}

.card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    z-index: 2;
}

.featured-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 50px;
    margin-bottom: 1rem;
}

.level-1-badge {
    background: linear-gradient(135deg, #673de6 0%, #8b5cf6 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(103, 61, 230, 0.4);
}

.featured-title {
    margin: 0 0 0.75rem 0;
    line-height: 1.2;
}

.featured-title a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.level-1-title {
    font-size: 1.75rem;
    font-weight: 700;
}

.level-1-title a:hover {
    color: #c4b5fd;
}

.featured-excerpt {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.featured-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

.featured-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Level 2 Featured Cards */
.level-2-card {
    background: var(--zen-card-bg);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--zen-border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
}

.level-2-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.15);
    border-color: rgba(103, 61, 230, 0.3);
}

.card-media-small {
    height: 180px;
    overflow: hidden;
}

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

.level-2-card:hover .card-image-small {
    transform: scale(1.05);
}

.card-content-small {
    padding: 1.25rem;
}

.level-2-badge {
    background: rgba(103, 61, 230, 0.1);
    color: #673de6;
}

[data-bs-theme="dark"] .level-2-badge {
    background: rgba(124, 93, 250, 0.2);
    color: #a78bfa;
}

.level-2-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0.75rem 0 0.5rem 0;
    line-height: 1.4;
}

.level-2-title a {
    color: var(--zen-secondary);
}

.level-2-title a:hover {
    color: #673de6;
}

[data-bs-theme="dark"] .level-2-title a {
    color: #e8e6ef;
}

[data-bs-theme="dark"] .level-2-title a:hover {
    color: #a78bfa;
}

.featured-meta-small {
    color: var(--zen-text-muted);
    font-size: 0.8rem;
}

/* Card Image Placeholders */
.card-image-placeholder,
.card-image-placeholder-small {
    background: linear-gradient(135deg, var(--zen-border) 0%, var(--zen-bg) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--zen-text-muted);
}

.card-image-placeholder {
    height: 100%;
}

.card-image-placeholder-small {
    height: 100%;
}

/* ========================================
   MODERN LOADER
   ======================================== */
.modern-loader {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.modern-loader span {
    width: 10px;
    height: 10px;
    background: linear-gradient(135deg, #673de6 0%, #8b5cf6 100%);
    border-radius: 50%;
    animation: loaderBounce 1.4s ease-in-out infinite both;
}

.modern-loader span:nth-child(1) {
    animation-delay: -0.32s;
}

.modern-loader span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes loaderBounce {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

/* ========================================
   RESPONSIVE ADJUSTMENTS
   ======================================== */
@media screen and (max-width: 991px) {
    .hero-section {
        min-height: 250px;
    }
    
    .card-media {
        height: 220px;
    }
    
    .level-1-title {
        font-size: 1.4rem;
    }
    
    .level-2-card {
        margin-bottom: 1rem;
    }
}

@media screen and (max-width: 767px) {
    .hero-section {
        min-height: 220px;
    }
    
    .card-content {
        padding: 1.5rem;
    }
    
    .featured-excerpt {
        display: none;
    }
    
    .featured-meta {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    
    .level-1-title {
        font-size: 1.25rem;
    }
}

/* Smooth scroll for the whole page */
html {
    scroll-behavior: smooth;
}

/* Enhanced focus states for accessibility */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #673de6;
    outline-offset: 2px;
}

/* Loading animation for infinite scroll posts */
.post-item.animate-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

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

/* ========================================
   MODERN POST CARDS
   ======================================== */
.modern-card {
    background: var(--zen-card-bg);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--zen-border);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.modern-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.15);
    border-color: rgba(103, 61, 230, 0.2);
}

.modern-card-media {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.modern-card-image-link {
    display: block;
    width: 100%;
    height: 100%;
}

.modern-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.modern-card:hover .modern-card-image {
    transform: scale(1.08);
}

.modern-card-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--zen-border) 0%, var(--zen-bg) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--zen-text-muted);
}

.modern-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,0.4) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modern-card:hover .modern-card-overlay {
    opacity: 1;
}

.modern-card-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: linear-gradient(135deg, #673de6 0%, #8b5cf6 100%);
    color: white;
    padding: 0.4rem 0.9rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(103, 61, 230, 0.3);
    z-index: 2;
}

.modern-card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.modern-card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.8rem;
    color: var(--zen-text-muted);
}

.modern-card-meta span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.modern-card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 0.75rem;
}

.modern-card-title a {
    color: var(--zen-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.modern-card-title a:hover {
    color: #673de6;
}

[data-bs-theme="dark"] .modern-card-title a {
    color: #e8e6ef;
}

[data-bs-theme="dark"] .modern-card-title a:hover {
    color: #a78bfa;
}

.modern-card-excerpt {
    color: var(--zen-text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
    flex: 1;
}

.modern-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #673de6;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: auto;
}

.modern-card-link i {
    transition: transform 0.3s ease;
}

.modern-card-link:hover {
    color: #5632c2;
    gap: 0.75rem;
}

.modern-card-link:hover i {
    transform: translateX(4px);
}

[data-bs-theme="dark"] .modern-card-link {
    color: #a78bfa;
}

[data-bs-theme="dark"] .modern-card-link:hover {
    color: #c4b5fd;
}

/* Post item spacing */
.post-item {
    margin-bottom: 1.5rem;
}

/* ========================================
   SEO & ACCESSIBILITY IMPROVEMENTS
   ======================================== */

/* Skip Link */
.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: linear-gradient(135deg, #673de6 0%, #8b5cf6 100%);
    color: white;
    padding: 12px 20px;
    text-decoration: none;
    z-index: 100000;
    font-weight: 600;
    border-radius: 0 0 8px 0;
    box-shadow: 0 4px 12px rgba(103, 61, 230, 0.3);
}

.skip-link:focus {
    top: 0;
    color: white;
    text-decoration: none;
}

/* Visually Hidden (Screen Reader Only) */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.visually-hidden-focusable:not(:focus):not(:focus-within) {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Line Clamp Utilities */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Hover Shadows */
.hover-shadow {
    transition: box-shadow 0.3s ease;
}

.hover-shadow:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Transition All */
.transition-all {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Section Heading */
.section-heading {
    font-family: 'Outfit', sans-serif;
    color: var(--zen-secondary);
}

/* Page Links (Pagination) */
.page-links {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--zen-border);
}

.page-links-title {
    font-weight: 600;
    margin-right: 0.5rem;
    color: var(--zen-secondary);
}

.page-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    margin: 0 4px;
    padding: 0 12px;
    background: var(--zen-card-bg);
    border: 1px solid var(--zen-border);
    border-radius: 8px;
    color: var(--zen-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.page-number:hover {
    background: #673de6;
    border-color: #673de6;
    color: white;
    text-decoration: none;
}

/* Entry Tags */
.entry-tags .badge {
    transition: all 0.2s ease;
}

.entry-tags .badge:hover {
    background: #673de6 !important;
    color: white !important;
}

/* Share Buttons */
.share-buttons .btn {
    transition: all 0.3s ease;
}

.share-buttons .btn:hover {
    transform: translateY(-2px);
    background: #673de6;
    border-color: #673de6;
    color: white;
}

/* Post Navigation */
.post-navigation a {
    transition: all 0.3s ease;
}

.post-navigation a:hover {
    background: #f0f0ff !important;
    transform: translateY(-2px);
}

[data-bs-theme="dark"] .post-navigation a:hover {
    background: rgba(103, 61, 230, 0.1) !important;
}

/* Reading Progress Bar */
#reading-progress {
    box-shadow: 0 0 10px rgba(103, 61, 230, 0.5);
}

/* Improved Image Loading States */
.modern-card-image,
.card-image,
.card-image-small {
    background: linear-gradient(135deg, var(--zen-border) 0%, var(--zen-bg) 100%);
}

/* Focus Visible Styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid #673de6;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .hero-background .gradient-orb {
        animation: none !important;
    }
    
    .grid-overlay {
        animation: none !important;
    }
}

/* Print Styles */
@media print {
    .site-header,
    .hero-section,
    .share-buttons,
    .post-navigation,
    #reading-progress,
    .sidebar,
    .comments-area {
        display: none !important;
    }
    
    .entry-content {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    a[href]:after {
        content: " (" attr(href) ")";
        font-size: 90%;
        opacity: 0.7;
    }
    
    img {
        max-width: 100% !important;
    }
}

/* ========================================
   FALLBACK IMAGES STYLES
   ======================================== */
.fallback-image {
    object-fit: cover;
    transition: transform 0.4s ease;
}

.modern-card:hover .fallback-image,
.featured-card:hover .fallback-image {
    transform: scale(1.05);
}

/* Grayscale filter for fallback images to differentiate from featured uploads */
.fallback-image {
    filter: grayscale(20%);
}

.modern-card:hover .fallback-image,
.featured-card:hover .fallback-image {
    filter: grayscale(0%);
}