/* =====================================================
   BLOG SYSTEM STYLESHEET
   ===================================================== */

:root {
    --primary-color: #22c55e;
    --primary-dark: #16a34a;
    --primary-light: #86efac;
    --primary-bg: #f0fdf4;
    --secondary-color: #10b981;
    --accent-color: #34d399;
    --dark-color: #0f172a;
    --light-color: #f8faf9;
    --gray-color: #64748b;
    --white: #ffffff;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-hover: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
    padding-top: 84px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-narrow {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =====================================================
   NAVIGATION
   ===================================================== */

.navbar {
    background: var(--white);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.875rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.nav-brand .logo {
    height: 38px;
}

.nav-brand span {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--dark-color);
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    color: var(--dark-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
}

.btn-subscribe {
    background: var(--primary-color);
    color: var(--white) !important;
    padding: 0.625rem 1.5rem;
    border-radius: 8px;
    transition: var(--transition);
    font-size: 0.95rem;
}

.btn-subscribe:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.25);
}

.nav-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* =====================================================
   BLOG HERO SECTION - CLEAN & PROFESSIONAL
   ===================================================== */

.blog-hero {
    background: radial-gradient(1200px 600px at 50% -10%, rgba(34, 197, 94, 0.12) 0%, rgba(255, 255, 255, 1) 55%), var(--white);
    padding: 3.25rem 0 2.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.blog-hero .container {
    max-width: 1400px;
    text-align: center;
}

.blog-hero-inner {
    max-width: 820px;
    margin: 0 auto;
}

.blog-hero-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gray-color);
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.18);
    margin-bottom: 0.75rem;
}

.blog-hero-search {
    margin-top: 1.35rem;
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    align-items: center;
}

.search-box.search-box-hero {
    width: min(520px, 92vw);
    border-radius: 12px;
    height: 44px;
}

.btn-search {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 12px;
    padding: 0.75rem 1.25rem;
    height: 44px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 6px 16px rgba(34, 197, 94, 0.22);
    min-width: 110px;
    letter-spacing: 0.2px;
}

.btn-search:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(34, 197, 94, 0.28);
}

.btn-search:active {
    transform: translateY(0);
}

.blog-hero h1 {
    font-size: 2.75rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
    color: var(--dark-color);
    letter-spacing: -0.5px;
}

.blog-hero p {
    font-size: 1.1rem;
    color: var(--gray-color);
    margin-bottom: 0;
    font-weight: 400;
}

.blog-section-heading {
    margin: 1.25rem 0 1.25rem;
}

.blog-section-title {
    font-size: 2.1rem;
    line-height: 1.15;
    letter-spacing: -0.5px;
    color: var(--dark-color);
    font-weight: 700;
}

.blog-section-subtitle {
    margin-top: 0.6rem;
    font-size: 1rem;
    color: var(--gray-color);
}

@media (max-width: 768px) {
    body {
        padding-top: 74px;
    }

    .blog-section-title {
        font-size: 1.7rem;
    }
}

/* =====================================================
   SEARCH & FILTER SECTION - COMPACT & PROFESSIONAL
   ===================================================== */

.blog-filter {
    background: #fafafa;
    padding: 1.25rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.filter-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.search-box {
    display: flex;
    align-items: center;
    background: var(--white);
    border-radius: 8px;
    padding: 0 1rem;
    width: 320px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.search-box:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.08);
}

.search-box i {
    color: var(--gray-color);
    margin-right: 0.75rem;
    font-size: 0.95rem;
}

.search-box input {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
    font-size: 0.9rem;
    font-family: 'Poppins', sans-serif;
    padding: 0.7rem 0;
    color: var(--dark-color);
}

.search-box input::placeholder {
    color: var(--gray-color);
    font-size: 0.9rem;
}

.category-filter {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 900px;
}

.category-btn {
    padding: 0.5rem 1.1rem;
    border: 1px solid #e2e8f0;
    background: var(--white);
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 0.85rem;
    white-space: nowrap;
    color: var(--dark-color);
}

.category-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(34, 197, 94, 0.05);
}

.category-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 2px 4px rgba(34, 197, 94, 0.2);
}

.category-btn.active:hover {
    background: var(--primary-dark);
}

/* =====================================================
   BLOG POSTS SECTION - PROFESSIONAL LAYOUT
   ===================================================== */

.blog-posts {
    padding: 3rem 0;
    background: #fafafa;
}

.blog-posts .container {
    max-width: 1400px;
}

.blog-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 1.75rem;
    align-items: start;
}

.blog-main {
    min-width: 0;
}

.blog-sidebar {
    position: sticky;
    top: 92px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sidebar-card {
    background: var(--white);
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
    padding: 1rem;
}

.sidebar-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--dark-color);
    margin-bottom: 0.75rem;
}

.sidebar-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sidebar-item {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 0.75rem;
    align-items: center;
    text-decoration: none;
    color: inherit;
    padding: 0.5rem;
    border-radius: 12px;
    transition: var(--transition);
}

.sidebar-item:hover {
    background: rgba(34, 197, 94, 0.06);
}

.sidebar-thumb {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    overflow: hidden;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
}

.sidebar-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sidebar-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar-meta .title {
    font-weight: 700;
    font-size: 0.9rem;
    line-height: 1.2;
    color: var(--dark-color);
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sidebar-meta .date {
    font-size: 0.78rem;
    color: var(--gray-color);
}

/* Category Section Header */
.category-section {
    margin-bottom: 3rem;
}

.category-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.category-section-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dark-color);
    margin: 0;
}

.see-all-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #00bcd4;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: var(--transition);
}

.see-all-link:hover {
    gap: 0.75rem;
}

.see-all-link i {
    font-size: 0.875rem;
}

/* Featured Post */
.featured-post {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 3rem;
    transition: var(--transition);
}

/* Top stories carousel wrapper */
.top-stories {
    position: relative;
    margin-bottom: 2rem;
}

/* Top stories carousel (used by #featuredPost) */
#featuredPost.featured-post {
    display: flex;
    gap: 1.25rem;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    overflow-x: auto;
    overflow-y: visible;
    padding: 0.25rem 0.25rem 0.75rem;
    margin-bottom: 0;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* Prevent old featured hover effects from applying to carousel container */
#featuredPost.featured-post:hover {
    box-shadow: none;
    transform: none;
}

#featuredPost.featured-post::-webkit-scrollbar {
    height: 10px;
}

#featuredPost.featured-post::-webkit-scrollbar-track {
    background: transparent;
}

#featuredPost.featured-post::-webkit-scrollbar-thumb {
    background: rgba(100, 116, 139, 0.25);
    border-radius: 999px;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 10px 24px rgba(2, 6, 23, 0.10);
    cursor: pointer;
    transition: var(--transition);
    z-index: 5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    transform: translateY(-50%) scale(1.04);
}

.carousel-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    transform: translateY(-50%);
}

.carousel-btn.prev {
    left: -18px;
}

.carousel-btn.next {
    right: -18px;
}

.carousel-btn.prev::before,
.carousel-btn.next::before {
    content: '';
    width: 10px;
    height: 10px;
    border-right: 2px solid #0f172a;
    border-bottom: 2px solid #0f172a;
    display: block;
}

.carousel-btn.prev::before {
    transform: rotate(135deg);
    margin-left: 4px;
}

.carousel-btn.next::before {
    transform: rotate(-45deg);
    margin-right: 4px;
}

.top-story-card {
    background: var(--white);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 26px rgba(2, 6, 23, 0.06);
    transition: var(--transition);
    scroll-snap-align: start;
    flex: 0 0 auto;
    width: 320px;
}

.top-story-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(2, 6, 23, 0.10);
}

.top-story-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.top-story-media {
    position: relative;
    height: 360px;
}

.top-story-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.top-story-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.00) 35%, rgba(2, 6, 23, 0.72) 100%);
    pointer-events: none;
}

.top-story-tags {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    gap: 0.5rem;
    justify-content: space-between;
    align-items: center;
    z-index: 2;
}

.top-story-tags .pill {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(226, 232, 240, 0.9);
    color: #0f172a;
    font-size: 0.8rem;
    font-weight: 600;
}

.top-story-tags .tag-featured {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.92);
    border: 1px solid rgba(34, 197, 94, 0.92);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 700;
}

.top-story-overlay {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 14px;
    z-index: 2;
}

.top-story-title {
    font-size: 1.15rem;
    line-height: 1.35;
    margin: 0.25rem 0 0.4rem;
    color: #ffffff;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
}

.top-story-date {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
    font-weight: 600;
}

.top-story-excerpt {
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    line-height: 1.55;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
}

@media (max-width: 980px) {
    .carousel-btn.prev { left: -10px; }
    .carousel-btn.next { right: -10px; }
    .top-story-card { width: 300px; }
}

@media (max-width: 640px) {
    .carousel-btn { display: none; }
    .top-story-card { width: 82vw; }
}

/* Pagination */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 1.25rem;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.page-btn {
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #0f172a;
    border-radius: 10px;
    padding: 0.55rem 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    min-width: 44px;
}

.page-btn:hover {
    border-color: rgba(34, 197, 94, 0.55);
    box-shadow: 0 10px 26px rgba(2, 6, 23, 0.06);
    transform: translateY(-1px);
}

.page-btn.active {
    background: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
}

.page-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.page-ellipsis {
    color: var(--gray-color);
    font-weight: 700;
    padding: 0 0.4rem;
}

.featured-post:hover {
box-shadow: var(--shadow-hover);
transform: translateY(-5px);
}

.featured-post-content {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 2rem;
}

.featured-post-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.featured-post-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.featured-post-text {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-badge {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    width: fit-content;
}

.featured-post-text h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.featured-post-text p {
    color: var(--gray-color);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.post-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: var(--gray-color);
    margin-bottom: 1.5rem;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-read-more {
    background: var(--primary-color);
    color: var(--white);
    padding: 0.75rem 2rem;
    border-radius: 25px;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
    width: fit-content;
}

.btn-read-more:hover {
    background: #ff5252;
    transform: translateX(5px);
}

/* Posts Grid - Horizontal Scroll */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

/* Blog Card Styles - Clean & Professional */
.blog-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    border: 1px solid #e8e8e8;
}

.blog-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
    border-color: var(--primary-color);
}

.blog-card-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #f5f5f5;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card-category {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--primary-color);
    color: var(--white);
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: capitalize;
    letter-spacing: 0.3px;
}

.featured-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--primary-dark);
    color: var(--white);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    background: var(--white);
}

.blog-card-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.875rem;
    font-size: 0.8rem;
    color: #888;
}

.blog-card-meta span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.blog-card-meta i {
    color: var(--primary-color);
    font-size: 0.85rem;
}

.blog-card-title {
    margin: 0 0 0.875rem 0;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--dark-color);
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-title a {
    color: var(--dark-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-card-title a:hover {
    color: var(--primary-color);
}

.blog-card-excerpt {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
    flex-grow: 1;
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
}

.blog-card-author {
    display: none;
}

.blog-card-author i {
    color: var(--primary-color);
}

.btn-read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.625rem 1.25rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(34, 197, 94, 0.2);
}

.btn-read-more:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(34, 197, 94, 0.35);
}

.btn-read-more i {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.btn-read-more:hover i {
    transform: translateX(3px);
}

/* Legacy support */
.post-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
}

.post-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-10px);
}

.post-card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.post-card-content {
    padding: 1.5rem;
}

.post-category {
    display: inline-block;
    background: var(--accent-color);
    color: var(--dark-color);
    padding: 0.25rem 1rem;
    border-radius: 15px;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.post-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    color: var(--dark-color);
    line-height: 1.4;
}

.post-card p {
    color: var(--gray-color);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.post-card .post-meta {
    margin-bottom: 0;
}

/* Loading & No Results */
.loading,
.no-results {
    text-align: center;
    padding: 3rem 0;
    color: var(--gray-color);
}

.loading i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.no-results i {
    font-size: 4rem;
    margin-bottom: 1rem;
}

/* Load More Button */
.load-more-wrapper {
    text-align: center;
    margin-top: 3rem;
}

.btn-load-more {
    background: var(--primary-color);
    color: var(--white);
    padding: 1rem 3rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Poppins', sans-serif;
}

.btn-load-more:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

/* =====================================================
   NEWSLETTER SECTION
   ===================================================== */

.newsletter-section {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    color: var(--white);
    padding: 4rem 0;
    margin-top: 3rem;
}

.newsletter-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.newsletter-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
}

.newsletter-form button {
    padding: 1rem 2rem;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Poppins', sans-serif;
}

.newsletter-form button:hover {
    background: #ff5252;
    transform: translateY(-3px);
}

/* =====================================================
   FOOTER
   ===================================================== */

.footer {
    background: var(--dark-color);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
}

.footer-section p {
    opacity: 0.8;
    line-height: 1.8;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-5px);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    opacity: 1;
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
}

/* =====================================================
   ANIMATIONS
   ===================================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =====================================================
   RESPONSIVE DESIGN
   ===================================================== */

@media (max-width: 968px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background: var(--white);
        width: 100%;
        padding: 2rem;
        box-shadow: var(--shadow);
        transition: var(--transition);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: block;
    }

    .blog-hero h1 {
        font-size: 2rem;
    }

    .filter-wrapper {
        flex-direction: column;
        align-items: center;
    }

    .search-box {
        width: 100%;
        max-width: 100%;
    }

    .category-filter {
        width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 0.5rem;
    }

    .category-filter::-webkit-scrollbar {
        display: none;
    }

    .featured-post-content {
        grid-template-columns: 1fr;
    }

    .featured-post-image {
        height: 300px;
    }

    .blog-layout {
        grid-template-columns: 1fr;
    }

    .blog-sidebar {
        position: static;
        top: auto;
        order: 2;
    }

    .posts-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .category-section-header h2 {
        font-size: 1.5rem;
    }

    .newsletter-form {
        flex-direction: column;
    }
}

@media (max-width: 600px) {
    .blog-hero h1 {
        font-size: 1.75rem;
    }

    .blog-hero p {
        font-size: 1rem;
    }

    .featured-post-text h2 {
        font-size: 1.5rem;
    }

    .newsletter-content h2 {
        font-size: 1.75rem;
    }
}

