:root {
    --primary: #8b5cf6;
    --primary-light: #a78bfa;
    --primary-dark: #6d28d9;
    --primary-glow: rgba(139, 92, 246, 0.4);
    --bg-dark: #0f172a;
    --bg-card: rgba(30, 41, 59, 0.6);
    --text-main: #f8fafc;
    --text-dim: #94a3b8;
    --border: rgba(255, 255, 255, 0.08);
    --glass: rgba(255, 255, 255, 0.03);
    --accent: #10b981;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base and Typography */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    background-image:
        radial-gradient(circle at 0% 0%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 100% 0%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 100%, rgba(139, 92, 246, 0.05) 0%, transparent 50%);
    background-attachment: fixed;
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    max-width: 1300px;
    padding: 0 2rem;
}

h1,
h2,
h3,
h4 {
    color: var(--text-main);
    letter-spacing: -0.02em;
}

/* Header */
#main-header {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 1.25rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: transform 0.3s ease-in-out, padding 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

#main-header.header-hidden {
    transform: translateY(-100%);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

#main-nav {
    margin-left: auto;
}

.logo {
    font-size: 1.75rem;
    font-weight: 800;
    /* ... */
}

/* Typography Adjustments */
h1 {
    font-size: 2.5rem;
    font-size: clamp(2rem, 5vw, 4rem);
}

h2 {
    font-size: 2rem;
    font-size: clamp(1.8rem, 4vw, 3rem);
}

h3 {
    font-size: 1.75rem;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
}

h4 {
    font-size: 1.5rem;
    font-size: clamp(1.2rem, 2vw, 1.75rem);
}

a {
    text-decoration: none;
    color: inherit;
}

.logo {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-main);
    text-decoration: none;
    letter-spacing: -1.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo i {
    color: var(--primary);
    filter: drop-shadow(0 0 8px var(--primary-glow));
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 0.5rem 0;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Dropdown styling */
.nav-links li.has-dropdown:hover>.dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1rem 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.dropdown-menu a {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    display: block;
    width: 100%;
}

.nav-links>li:last-child .dropdown-menu {
    left: auto;
    right: 0;
}

.dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--primary-light);
}

.dropdown-menu a::after {
    display: none;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--text-main);
}

.nav-links a:hover::after {
    width: 100%;
}



.mobile-menu-toggle {
    display: none;
    background: var(--glass);
    border: 1px solid var(--border);
    color: var(--text-main);
    width: 45px;
    height: 45px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1.25rem;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.mobile-menu-toggle:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.mobile-menu-close {
    display: none;
}

.mobile-menu-header {
    display: none;
}

.hero {
    padding: 10rem 0 8rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 5rem;
}

.hero-decoration {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: var(--primary);
    filter: blur(100px);
    opacity: 0.15;
    z-index: -1;
    animation: pulse 10s infinite alternate;
}

.decoration-1 {
    top: -100px;
    left: -100px;
}

.decoration-2 {
    bottom: -100px;
    right: -100px;
    background: var(--accent);
}

@keyframes pulse {
    from {
        transform: scale(1) translate(0, 0);
    }

    to {
        transform: scale(1.5) translate(50px, 50px);
    }
}

.hero h1 {
    font-size: 5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    background: linear-gradient(135deg, #fff 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
}

.hero p {
    font-size: 1.5rem;
    color: var(--text-dim);
    max-width: 700px;
    margin: 0 auto;
    font-weight: 400;
}

/* Home Blocks Style (from HomepageBuilder) */
.homepage-builder {
    display: flex;
    flex-direction: column;
    padding-bottom: 5rem;
}

.block-featured {
    background: var(--bg-card) !important;
    border: 1px solid var(--border) !important;
    backdrop-filter: blur(10px);
    transition: var(--transition) !important;
}

.block-featured:hover {
    border-color: var(--primary) !important;
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.4), 0 18px 36px -18px rgba(0, 0, 0, 0.5), 0 0 20px var(--primary-glow) !important;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    background: var(--primary);
    color: white;
    font-weight: 700;
    text-decoration: none;
    border-radius: 14px;
    transition: var(--transition);
    box-shadow: 0 10px 20px -10px var(--primary-glow);
}

.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px -10px var(--primary-glow);
}

/* Post Sliders */
.slider-container {
    position: relative;
    overflow: hidden;
    background: #000;
}

.slide {
    display: none;
    animation: fadeScale 0.8s ease-out;
}

.slide.active {
    display: flex;
}

@keyframes fadeScale {
    from {
        opacity: 0;
        transform: scale(1.05);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Slider Style: Overlay (Default) */
.slider-overlay .slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 3rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
}

/* Slider Style: Side-by-Side */
.slider-side {
    display: flex;
    background: var(--bg-card);
    aspect-ratio: auto !important;
    min-height: 450px;
}

.slider-side .slide-img {
    flex: 1;
    height: 100%;
}

.slider-side .slide-text {
    flex: 1;
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Slider Style: Glass */
.slider-glass .slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem;
    border-radius: 30px;
    text-align: center;
    max-width: 80%;
}

/* Post Cards */
.post-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
}

.post-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 24px;
    padding: 2px;
    background: linear-gradient(135deg, var(--primary), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: var(--transition);
}

.post-card:hover {
    transform: translateY(-12px);
    border-color: transparent;
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.6), 0 0 30px var(--primary-glow);
}

.post-card:hover::before {
    opacity: 1;
}

.post-card img {
    height: 240px;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.post-card:hover img {
    transform: scale(1.1);
}

.post-card .content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.post-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.post-title-link {
    color: var(--text-main);
    text-decoration: none;
    transition: var(--transition);
}

.post-title-link:hover {
    color: var(--primary);
}

.post-card .excerpt {
    color: var(--text-dim);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.content-with-sidebar {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 5rem;
    align-items: start;
}

.sidebar {
    position: sticky;
    top: 120px;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.widget {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 2rem;
    backdrop-filter: blur(16px);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

.widget:hover {
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.4);
}

.widget-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 3px;
    background: var(--primary);
    border-radius: 10px;
    box-shadow: 0 0 10px var(--primary-glow);
}

/* Widget Specific Content */
.widget ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.widget li {
    position: relative;
}

.widget li a {
    color: var(--text-dim);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.widget li a:hover {
    color: var(--primary-light);
    transform: translateX(5px);
}

/* Search Widget */
.widget-search .search-form {
    display: flex;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 0.5rem;
    transition: var(--transition);
}

.widget-search .search-form:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
}

.widget-search input {
    flex-grow: 1;
    background: transparent;
    border: none;
    color: white;
    padding: 0.5rem 0.75rem;
    font-family: inherit;
    outline: none;
}

.widget-search button {
    background: var(--primary);
    color: white;
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
}

.widget-search button:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

/* Recent Posts Widget */
.widget-recent-posts li {
    display: flex;
    gap: 1.25rem;
    align-items: center;
}

.widget-thumb {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
}

.widget-recent-posts a {
    font-size: 0.95rem;
    line-height: 1.4;
    font-weight: 600 !important;
    display: block !important;
}

.widget-recent-posts small {
    display: block;
    color: var(--text-dim);
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

/* Single Post View */
.single-post {
    padding: 4rem 0;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
    font-size: 0.85rem;
    color: var(--text-dim);
    font-weight: 500;
}

.breadcrumb a {
    color: var(--text-dim);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--primary-light);
}

.breadcrumb i {
    font-size: 0.7rem;
    opacity: 0.4;
}

.breadcrumb .current {
    color: var(--text-main);
    opacity: 0.8;
}

.single-post h1 {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 2rem;
    line-height: 1.1;
    text-align: left;
}

.post-meta {
    display: flex;
    gap: 2.5rem;
    margin-bottom: 3.5rem;
    color: var(--text-dim);
    font-weight: 500;
    font-size: 0.95rem;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: var(--transition);
}

.meta-item i {
    color: var(--primary-light);
    font-size: 1rem;
    filter: drop-shadow(0 0 5px var(--primary-glow));
}

.meta-item a {
    color: var(--text-dim);
    text-decoration: none;
    transition: var(--transition);
}

.meta-item a:hover {
    color: var(--primary-light);
}

.post-featured-image {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 32px;
    margin-bottom: 4rem;
    box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.7);
}

.post-content {
    font-size: 1.25rem;
    line-height: 1.8;
    color: #e2e8f0;
}

.post-content p {
    margin-bottom: 2rem;
}

.post-content h2 {
    font-size: 2.25rem;
    margin: 4rem 0 1.5rem;
}

/* Footer */
footer {
    padding: 8rem 0 4rem;
    background: linear-gradient(to bottom, transparent, rgba(15, 23, 42, 0.8));
    border-top: 1px solid var(--border);
    margin-top: 8rem;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4rem;
    margin-bottom: 6rem;
    text-align: left;
}

footer .copyright {
    padding-top: 4rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-dim);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1,
.hero p,
.post-card,
.widget,
.single-post {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Responsive */
@media (max-width: 1200px) {
    .hero h1 {
        font-size: 4rem;
    }

    .footer-widgets {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .content-with-sidebar {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .sidebar {
        position: static;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.25rem;
    }

    .mobile-menu-toggle {
        display: flex;
        order: 2;
    }

    .header-inner {
        justify-content: space-between;
    }

    .logo {
        order: 1;
    }

    .actions {
        display: none;
        /* Hide admin button on mobile to save space, or move into menu */
    }

    nav#main-nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        height: 100vh;
        background: rgba(15, 23, 42, 0.99);
        backdrop-filter: blur(20px);
        padding: 6rem 2rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1001;
    }

    nav#main-nav.active {
        transform: translateX(0);
    }


    /* Mobile Dropdowns */
    /* Mobile Dropdowns */
    .nav-links li.has-dropdown>.dropdown-menu {
        position: static;
        opacity: 0;
        visibility: hidden;
        transform: none;
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0;
        margin: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out, opacity 0.3s ease, padding 0.3s ease;
    }

    .nav-links li.has-dropdown.active-dropdown>.dropdown-menu {
        max-height: 500px;
        opacity: 1;
        visibility: visible;
        padding-top: 1rem;
        padding-left: 1.5rem;
    }

    .nav-links li.has-dropdown.active-dropdown>.dropdown-menu {
        max-height: 500px;
        padding-top: 1rem;
    }

    .nav-links li.has-dropdown.active-dropdown>a i {
        transform: rotate(180deg);
    }



    .mobile-menu-header {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        padding: 1.25rem 2rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
        border-bottom: 1px solid var(--border);
    }

    .mobile-menu-close {
        position: static;
        transform: none;
        background: none;
        border: none;
        color: white;
        font-size: 2rem;
        cursor: pointer;
        display: block;
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .nav-links a {
        font-size: 1.5rem;
        font-weight: 700;
    }

    .hero {
        padding: 6rem 0 4rem;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .single-post h1 {
        font-size: 2.5rem;
    }

    .footer-widgets {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Responsive Layout Rows */
.responsive-grid {
    display: grid;
    gap: 2rem;
}

@media (max-width: 768px) {
    .responsive-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Author Box */
.author-box {
    margin-top: 6rem;
    padding: 3rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 32px;
    display: flex;
    gap: 2.5rem;
    align-items: center;
    backdrop-filter: blur(16px);
    transition: var(--transition);
}

.author-box:hover {
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.5);
}

.author-avatar img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary);
    padding: 4px;
    background: var(--bg-dark);
}

.author-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, #fff 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.author-bio {
    color: var(--text-dim);
    font-size: 1.05rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .author-box {
        flex-direction: column;
        text-align: center;
        padding: 2.5rem 1.5rem;
    }

    .author-avatar img {
        width: 100px;
        height: 100px;
    }
}

/* Archives & Category Layout */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
    margin-bottom: 4rem;
}

.category-header {
    text-align: center;
    padding: 3rem 0 5rem;
    max-width: 800px;
    margin: 0 auto;
}

.category-header .description {
    font-size: 1.25rem;
    color: var(--text-dim);
    line-height: 1.6;
}

/* Fix Card Thumbnails */
.post-card .thumbnail {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: 20px 20px 0 0;
    /* Align with card border radius */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
}

.pagination .btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-main);
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    transition: var(--transition);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pagination .btn-outline:hover {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .posts-grid {
        grid-template-columns: 1fr;
    }

    .category-header h1 {
        font-size: 2.5rem !important;
    }
}

/* Block Titles */
.block-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 4rem 0 2rem;
    text-align: left;
    position: relative;
    padding-bottom: 1rem;
}

.block-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--primary);
    border-radius: 10px;
    box-shadow: 0 0 15px var(--primary-glow);
}

/* Grid Overlay */
.block-grid-overlay {
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
    display: grid;
    /* Columns are set inline via PHP for dynamic config, but fallback here */
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.post-card-overlay {
    position: relative;
    height: 350px;
    border-radius: 24px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border);
}

.post-card-overlay .overlay-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}

.post-card-overlay .overlay-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    z-index: 2;
}

.post-card-overlay:hover .overlay-img {
    transform: scale(1.1);
}

.post-card-overlay h3 {
    color: white;
    font-size: 1.5rem;
    margin: 0;
}

/* Carousel */
.block-carousel::-webkit-scrollbar {
    display: none;
}

.post-card-carousel {
    transition: var(--transition);
}

.post-card-carousel:hover {
    transform: translateY(-5px);
}

/* Magazine */
.mag-main:hover img {
    transform: scale(1.02);
}

/* Widget Styles */
.widget-boxed {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
}

.widget-recent-posts ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget-recent-posts li {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.widget-recent-posts li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.widget-thumb-link {
    flex-shrink: 0;
}

.widget-thumb {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.widget-post-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.widget-post-title {
    font-weight: 600;
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.95rem;
    line-height: 1.3;
    transition: color 0.2s;
}

.widget-post-title:hover {
    color: var(--primary);
}

.widget-post-meta {
    font-size: 0.75rem;
    color: var(--text-dim);
}

.mag-main img {
    transition: var(--transition);
}

@media (max-width: 992px) {
    .block-magazine {
        grid-template-columns: 1fr !important;
    }
}

/* List Detailed */
.block-list-detailed article {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 1.5rem;
    border-radius: 24px;
    transition: var(--transition);
}

.block-list-detailed article:hover {
    border-color: var(--primary);
    transform: translateX(10px);
}

@media (max-width: 768px) {
    .block-list-detailed article {
        grid-template-columns: 1fr !important;
    }
}