:root {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --secondary: #64748b;
    --bg: #f8fafc;
    --card-bg: rgba(255, 255, 255, 0.8);
    --text: #1e293b;
    --text-light: #64748b;
    --border: #e2e8f0;
    --radius: 12px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.10), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.10), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Montserrat', 'Inter', sans-serif;
    color: var(--text);
    line-height: 1.6;
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-fluid { width: 100%; padding: 0 60px; }
.container-fluid.edge-to-edge { padding: 0 !important; }
@media (max-width: 768px) { .container-fluid { padding: 0 20px; } }

/* Parts Styling */
.part-container {
    width: 100%;
    transition: all 0.3s ease;
}

.part-container.topbar {
    background: #1e293b;
    color: #cbd5e1;
    font-size: 13px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.part-container.topbar a {
    color: #f1f5f9;
}

.part-container.navbar {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 14px 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-menu { list-style: none; display: flex; gap: 25px; margin: 0; padding: 0; }
.nav-menu > li { position: relative; }
.nav-menu a { font-size:16px; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 5px; }
.nav-menu a:hover { color: var(--primary); }

/* Submenu Styling */
.nav-menu .submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 220px;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius);
    padding: 10px 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
    border: 1px solid var(--border);
}
.nav-menu li:hover > .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.nav-menu .submenu li { width: 100%; }
.nav-menu .submenu a {
    display: block;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    border-bottom: 1px solid #f1f5f9;
}
.nav-menu .submenu li:last-child a { border-bottom: none; }
.nav-menu .submenu a:hover {
    background: #f1f5f9;
    color: var(--primary);
    padding-left: 25px;
}

.social-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.social-links a {
    font-size: 16px;
    opacity: 0.85;
}

.social-links a:hover {
    opacity: 1;
    transform: translateY(-2px);
}

/* Page Header */
.page-header {
    background-size: cover;
    background-position: center;
    padding: 100px 0;
    text-align: center;
    color: #fff;
    position: relative;
    margin-bottom: 20px;
}

.page-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.30) 0%, rgba(0,0,0,0.60) 100%);
}

.page-header h1 {
    margin: 0;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.breadcrumb-nav {
    margin-top: 15px;
    font-size: 14px;
    color: rgba(255,255,255,0.8);
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.breadcrumb-nav.bc-center { justify-content: center; }
.breadcrumb-nav.bc-right { justify-content: flex-end; }
.breadcrumb-nav a { color: #fff; opacity: 0.85; }
.breadcrumb-nav span { opacity: 0.5; }

/* Slider */
.slider {
    width: 100%;
    height: 400px;
    overflow: hidden;
    position: relative;
}

.slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    z-index: 1;
}

.slide.active { opacity: 1; z-index: 2; }
.slide::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,0.4); }

.slide-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    padding: 0 20px;
    text-align: center;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.slide-inner-img {
    max-width: 100%;
    max-height: 250px;
    margin-bottom: 24px;
    object-fit: contain;
    transform: translateY(-20px);
    opacity: 0;
    transition: 0.8s ease;
}

.slide.active .slide-inner-img {
    transform: translateY(0);
    opacity: 1;
    animation: fadeInDown 0.8s forwards 0.1s;
}

.slide-content h1 {
    margin: 0 0 18px;
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.2;
    transform: translateY(20px);
    opacity: 0;
    transition: 0.8s ease;
}

.slide.active .slide-content h1 {
    transform: translateY(0);
    opacity: 1;
    animation: fadeInUp 0.8s forwards 0.3s;
}

.slide-content p {
    margin: 0;
    font-size: clamp(1rem, 2.5vw, 2rem);
    transform: translateY(20px);
    opacity: 0;
    transition: 0.8s ease;
}

.slide.active .slide-content p {
    transform: translateY(0);
    opacity: 1;
    animation: fadeInUp 0.8s forwards 0.5s;
}

/* Slider Controls */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: rgba(0,0,0,0.5);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, transform 0.3s ease;
}

.slider-btn:hover { background: var(--primary); }
.prev-btn { left: 20px; }
.next-btn { right: 20px; }

/* Blocks & Layout */
.block-wrapper { padding: 60px 0; }
.layout-grid { display: grid; gap: 40px; }
.layout-leftside { grid-template-columns: 280px minmax(0, 1fr); }
.layout-rightside { grid-template-columns: minmax(0, 1fr) 280px; }
.layout-bothsides { grid-template-columns: 240px minmax(0, 1fr) 240px; }
.layout-fullwidth { grid-template-columns: 1fr; }

/* Columns Block */
.columns-row { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 30px; 
    align-items: stretch !important;
    justify-content: flex-start !important;
}
.column-item { 
    flex: 1 1 300px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start !important;
    align-items: stretch !important;
}
.column-item > *:first-child {
    margin-top: 0 !important;
}

/* Aesthetic Form & Info Blocks */
.contact-info-block, .card-form {
    background: #ffffff;
    padding: 35px;
    border-radius: 20px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex: 1; /* Stretch to fill column height */
    display: flex;
    flex-direction: column;
}

.contact-info-block:hover, .card-form:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.card-form h4 {
    margin: 0 0 25px 0;
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
    position: relative;
    padding-bottom: 12px;
}

.card-form h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.modern-input {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    font-size: 15px;
    transition: all 0.3s ease;
    outline: none;
}

.modern-input:focus {
    background: #fff;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.btn-premium {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.4);
}

.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.5);
    filter: brightness(1.1);
}

.contact-item-row {
    margin-bottom: 18px;
    display: flex;
    gap: 15px;
    align-items: center;
}

.contact-icon-box {
    width: 45px;
    height: 45px;
    background: rgba(59, 130, 246, 0.08);
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.sidebar-widget {
    background: #fff;
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.sidebar-widget h4 {
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary);
    font-size: 18px;
}

.main-content { min-width: 0; }

/* Posts */
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.post-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.post-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.post-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.post-card .p-content { padding: 25px; }
.post-card h3 { margin: 0 0 15px; font-size: 20px; color: var(--text); line-height: 1.35; }

.btn-more {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.3s ease, transform 0.3s ease;
}

.btn-more:hover {
    background: var(--primary-dark);
    color: #fff;
    transform: scale(1.04);
}

/* Footer */
footer {
    background: #1e293b;
    color: #fff;
    padding: 40px 0;
}

/* Animations */
@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

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

/* Responsive */
@media (max-width: 991px) {
    .layout-grid { grid-template-columns: 1fr !important; }
    .sidebar { order: 2; }
    .main-content { order: 1; }
}

/* Base Styles for Toggle (Hidden on Desktop) */
.mobile-menu-toggle {
    display: none;
}

@media (max-width: 991px) {
    .container { 
        padding-left: 15px !important; 
        padding-right: 15px !important; 
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* NAV MENYU GİZLƏDİLMƏSİ */
    .part-container.navbar .nav-menu,
    .nav-menu {
        display: none !important;
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        width: 100% !important;
        background: #fff !important;
        flex-direction: column !important;
        padding: 0 !important;
        margin: 0 !important;
        z-index: 99999 !important;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
        border-top: 1px solid #eee !important;
    }

    .part-container.navbar .nav-menu.active {
        display: flex !important;
    }

    .nav-menu li {
        width: 100% !important;
    }

    .nav-menu li a {
        padding: 15px 20px !important;
        border-bottom: 1px solid #f5f5f5 !important;
        display: block !important;
        width: 100% !important;
        color: #333 !important;
    }

    /* HAMBURGER DÜYMƏSİ */
    .mobile-menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        background: var(--primary) !important;
        color: white !important;
        border: none !important;
        border-radius: 6px !important;
        cursor: pointer !important;
        z-index: 100000 !important;
        position: relative !important;
        font-size: 20px !important;
    }

    /* XƏRİTƏ VƏ IFRAME DAŞMASI */
    .map-container,
    .map-container iframe,
    iframe,
    embed,
    object {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: 250px;
        box-sizing: border-box !important;
        flex: 1;
    }

    /* KOLONLAR VƏ MƏTNLƏR */
    .column-item {
        flex: 0 0 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
    }

    .contact-text, p, h1, h2, h3, a, span {
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        word-break: break-all !important;
    }

    .layout-grid {
        display: block !important;
    }
    
    .sidebar {
        margin-top: 30px !important;
    }

    .slider {
        height: 300px !important;
    }
}

/* Horizontal Post List Design */
.post-list-horizontal {
    display: grid;
    gap: 25px;
    margin-top: 20px;
}

.post-card-horizontal {
    display: flex;
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
}

.post-card-horizontal:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.post-image-box {
    flex: 0 0 350px;
    max-width: 350px;
    height: 230px;
    overflow: hidden;
}

.post-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.post-card-horizontal:hover .post-image-box img {
    transform: scale(1.1);
}

.post-info-box {
    flex: 1;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.post-info-box h3 {
    margin: 0 0 15px 0;
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
}

.post-info-box p {
    color: var(--text-light);
    font-size: 15px;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 768px) {
    .post-card-horizontal {
        flex-direction: column;
    }
    .post-image-box {
        flex: none;
        max-width: 100%;
        height: 200px;
    }
}

/* Block and Column Enhancements */
.block-title {
    color: var(--text);
    position: relative;
    padding-bottom: 15px;
    margin-top: 0;
}

.block-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.column-title {
    color: var(--text);
    border-left: 4px solid var(--primary);
    padding-left: 15px;
    margin-top: 0;
}

.single-post {
    padding: 20px 0;
}

.post-content img {
    border-radius: var(--radius);
    margin: 20px 0;
    box-shadow: var(--shadow);
}

/* Post Grid & Card Variants */
.post-grid-vertical, .post-grid-overlay {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.post-grid-compact {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

/* Vertical Card */
.post-card-vertical {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.post-card-vertical:hover { transform: translateY(-5px); }
.post-card-vertical .post-img img { width: 100%; height: 200px; object-fit: cover; }
.post-card-vertical .post-info { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.post-card-vertical h3 { margin: 0 0 10px; font-size: 1.2rem; }
.post-card-vertical p { color: #64748b; font-size: 0.95rem; flex: 1; margin-bottom: 15px; }

/* Overlay Card Styling */
.post-grid-overlay {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 20px 0;
}
@media (max-width: 1024px) { .post-grid-overlay { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .post-grid-overlay { grid-template-columns: 1fr; } }

.post-card-overlay {
    height: 380px;
    position: relative;
    overflow: hidden;
    color: #fff;
    cursor: pointer;
    border-radius: 12px;
}
.post-card-overlay img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.post-card-overlay:hover img { transform: scale(1.1); }
.post-card-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.3) 60%, transparent 100%);
    z-index: 1;
}
.post-card-overlay .overlay-inner {
    position: absolute;
    bottom: 25px;
    left: 25px;
    right: 25px;
    z-index: 2;
}
.post-card-overlay h3 { margin: 0 0 10px; font-size: 1.3rem; font-weight: 700; line-height: 1.3; text-shadow: 0 2px 4px rgba(0,0,0,0.3); }
.btn-more-simple { 
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #fff; 
    text-decoration: none; 
    font-weight: 700; 
    font-size: 0.85rem;
    padding: 8px 16px;
    border: 1.5px solid rgba(255,255,255,0.4);
    border-radius: 30px;
    transition: all 0.3s ease;
}
.btn-more-simple:hover { background: #fff; color: #000; border-color: #fff; }

/* Compact Card */
.post-card-compact {
    display: flex;
    gap: 15px;
    align-items: center;
    background: #fff;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #eee;
}
.post-card-compact img { width: 70px; height: 70px; object-fit: cover; border-radius: 6px; }
.post-card-compact h3 { font-size: 1rem; margin: 0 0 5px; color: var(--text); }
.post-card-compact a { font-size: 0.85rem; color: var(--primary); text-decoration: none; font-weight: 600; }

/* Horizontal Card (Shared) */
.post-list-horizontal { display: flex; flex-direction: column; gap: 20px; }
.post-card-horizontal {
    display: flex;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.post-card-horizontal .post-image-box { flex: 0 0 250px; }
.post-card-horizontal .post-image-box img { width: 100%; height: 100%; object-fit: cover; }
.post-card-horizontal .post-info-box { padding: 20px; flex: 1; }

@media (max-width: 768px) {
    .post-card-horizontal { flex-direction: column; }
    .post-card-horizontal .post-image-box { flex: none; height: 200px; }
}

/* Custom Image Grid - REMOVED */

/* --- Single Post Aesthetic Layout --- */
.single-post-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-start;
}
.sp-sidebar {
    flex: 0 0 280px;
    max-width: 280px;
}
.sp-main-area {
    flex: 1;
    min-width: 0;
    display: flex;
    gap: 40px;
    align-items: flex-start;
    background: #fff;
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: 0 10px 30px -5px rgba(0,0,0,0.05);
    border: 1px solid rgba(226, 232, 240, 0.8);
}
.sp-image {
    flex: 0 0 40%;
    max-width: 40%;
}
.sp-image img {
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
    transition: transform 0.4s ease;
}
.sp-image:hover img {
    transform: translateY(-5px);
}
.sp-content {
    flex: 1;
    min-width: 0;
}
.sp-category-badge {
    display: inline-block;
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.sp-title {
    margin: 0 0 20px;
    font-size: 2.2rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.3;
}
.sp-divider {
    height: 4px;
    width: 60px;
    background: linear-gradient(90deg, var(--primary), #60a5fa);
    border-radius: 2px;
    margin-bottom: 25px;
}
.sp-body {
    font-size: 16px;
    line-height: 1.8;
    color: #475569;
}
.sp-body p {
    margin-bottom: 1.2rem;
}
.sp-body img {
    border-radius: 10px;
    margin: 20px 0;
    max-width: 100%;
}
@media (max-width: 991px) {
    .single-post-layout { flex-direction: column; }
    .sp-sidebar { flex: 0 0 100%; max-width: 100%; }
    .sp-main-area { flex-direction: column; }
    .sp-image { flex: 0 0 100%; max-width: 100%; margin-bottom: 20px; }
}

/* Aesthetic Sidebar Menu */
.aesthetic-sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}
.menu-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
}
.aesthetic-sidebar-menu li.normal-link {
    margin-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 10px;
}
.aesthetic-sidebar-menu li.normal-link a {
    display: flex;
    align-items: center;
    color: var(--text);
    font-weight: 500;
    transition: all 0.3s;
}
.aesthetic-sidebar-menu li.normal-link a:hover {
    color: var(--primary);
    padding-left: 5px;
}
.post-item-link {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f1f5f9;
}
.post-item-link a {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text);
    text-decoration: none;
    transition: transform 0.3s;
}
.post-item-link a:hover {
    transform: translateX(5px);
    color: var(--primary);
}
.post-item-link img {
    width: 65px;
    height: 65px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.post-item-link span {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Block & Layout System V4 - Restored Stability */
.block-wrapper {
    width: 100%;
    position: relative;
    padding: 60px 0;
    overflow: hidden;
}

.block-wrapper .container {
    padding-left: 15px;
    padding-right: 15px;
}

.layout-grid {
    display: flex;
    gap: 30px;
    width: 100%;
    align-items: stretch; /* Ensure sidebar and main stretch together */
}

@media (max-width: 768px) {
    .columns-row { flex-direction: column; gap: 20px; }
    .column-item { flex: 0 0 100% !important; max-width: 100% !important; }
}

.layout-grid .sidebar {
    flex: 0 0 280px;
}

.layout-grid .main-content {
    flex: 1;
    min-width: 0; /* Fix overflow */
}

/* Footer Fix */
footer {
    width: 100%;
    overflow: hidden;
    position: relative;
    z-index: 10;
}
