@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');


.sr-blog {
    width: 100%;
    overflow-x: hidden;
}

/* Override Astra container ONLY for blog */
.sr-blog .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}


/* Full-width hero fix */
.sr-blog .hero-section {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    background: #050505;
}


.sr-blog .content-grid {
    display: flex;
    gap: 60px;
}


/* Sticky header for Elementor section */
#header {
    position: fixed;
    top: 0;
    z-index: 9999;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    /* Optional shadow */
}

#header.site-header {
    display: none;
}

:root {
    --primary-blue: #3b82f6;
    --primary-purple: #8b5cf6;
    --primary-green: #10b981;
    --dark-bg: #050505;
    --light-bg: #f9fafb;
    --card-bg: #ffffff;
    --text-main: #111827;
    --text-muted: #6b7280;
    --border-color: #e5e7eb;
    --font-family: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background: var(--light-bg);
    color: var(--text-main);
    line-height: 1.6;
}

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ================== 
   HERO SECTION 
   ================== */
.hero-section {
    background-color: var(--dark-bg);
    color: #fff;
    padding: 40px 0 80px;
    position: relative;
    border-bottom: 1px solid #222;
}

.breadcrumbs {
    font-size: 14px;
    color: #9ca3af;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.breadcrumbs a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumbs a:hover {
    color: #fff;
}

.breadcrumbs span {
    color: #fff;
}

.breadcrumbs i {
    font-size: 10px;
}

.page-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.page-subtitle {
    color: #d1d5db;
    font-size: 18px;
    margin-bottom: 48px;
    max-width: 600px;
}

/* Featured Grid */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    padding-bottom: 20px;
}

.featured-card {
    position: relative;
    height: 380px;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
}

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

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

.featured-card .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0) 100%);
    display: flex;
    align-items: flex-end;
    padding: 24px;
}

.featured-content h3 {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.3;
    color: #fff;
    margin-top: 8px;
}

.featured-content .icon {
    background: rgba(255, 255, 255, 0.2);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    backdrop-filter: blur(4px);
    margin-bottom: 12px;
}

/* ================== 
   MAIN CONTENT 
   ================== */
.main-content {
    padding: 60px 0;
    background: var(--light-bg);
}

.content-grid {
    display: flex;
    gap: 60px;
}

/* Sidebar */
.sidebar {
    width: 280px;
    flex-shrink: 0;
}

.sidebar-block {
    margin-bottom: 40px;
}

.sidebar-block h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.search-box {
    position: relative;
}

.tag:hover,
.tag.active {
    border-color: var(--text-main);
    color: var(--text-main);
    background: #f3f4f6;
    font-weight: 500;
}

.search-box input {
    width: 100%;
    padding: 12px 16px 12px 40px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.search-box input:focus {
    border-color: var(--primary-blue);
}

.search-box i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
}

.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    background: #fff;
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 24px;
    font-size: 13px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
}

.tag:hover {
    border-color: var(--text-main);
    color: var(--text-main);
    background: #f3f4f6;
}

/* Post Feed */
.post-feed {
    flex: 1;
}

.post-card {
    background: var(--card-bg);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    margin-bottom: 32px;
    display: flex;
    transition: transform 0.2s, box-shadow 0.2s;
}

.post-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

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

.post-image {
    width: 320px;
    flex-shrink: 0;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-pill {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 16px;
    width: fit-content;
}

.category-pill.blue {
    background: #eff6ff;
    color: var(--primary-blue);
}

.category-pill.purple {
    background: #f5f3ff;
    color: var(--primary-purple);
}

.category-pill.green {
    background: #ecfdf5;
    color: var(--primary-green);
}

.post-info h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
}

.post-excerpt {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 24px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-meta {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: var(--text-muted);
}

.author-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-right: 8px;
}

.meta-separator {
    margin: 0 8px;
    color: #d1d5db;
}

/* Pagination */
.sr-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.sr-pagination__info {
    font-size: 16px;
    color: var(--text-main);
    font-weight: 500;
}

.sr-pagination__limit select {
    appearance: none;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 8px 40px 8px 14px;
    font-size: 16px;
    background: #fff;
    color: var(--text-main);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23111827' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.sr-pagination__controls {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-main);
}

.sr-pagination__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 16px;
    text-decoration: none;
    color: var(--text-main);
    border: 1px solid transparent;
    background: transparent;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.sr-pagination__btn:hover {
    background: #f3f4f6;
}

.sr-pagination__btn--page {
    width: 40px;
    height: 40px;
    justify-content: center;
    padding: 0;
}

.sr-pagination__btn--active {
    background: #fff;
    border-color: var(--border-color);
    font-weight: 600;
}

.sr-pagination__btn--muted {
    color: #bdbdbd;
}

.sr-pagination__btn--disabled {
    opacity: 0.5;
    pointer-events: none;
}

.sr-pagination__dots {
    color: var(--text-muted);
    padding: 0 4px;
}


/* Responsive */
@media (max-width: 900px) {
    .content-grid {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        margin-bottom: 40px;
    }

    .post-card {
        flex-direction: column-reverse;
    }

    .post-image {
        width: 100%;
        height: 200px;
    }
}

.tag.active {
    background: #000;
    color: #fff;
}
