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

html, body {
    overflow-x: hidden;
    max-width: 100%;
}

:root {
    --blog-primary: #ea580c;
    --blog-primary-dark: #c2410c;
    --blog-primary-light: #fff7ed;
    --blog-accent: #fb923c;
    --blog-ink: #180d05;
    --blog-text: #334155;
    --blog-muted: #64748b;
    --blog-border: #fed7aa;
    --blog-border-subtle: #ffedd5;
    --blog-card-bg: #ffffff;
    --blog-radius-lg: 20px;
    --blog-radius-md: 14px;
    --blog-radius-sm: 8px;
    --blog-shadow-sm: 0 2px 8px rgba(24, 13, 5, 0.04);
    --blog-shadow-md: 0 8px 24px rgba(24, 13, 5, 0.06);
    --blog-shadow-hover: 0 16px 36px rgba(234, 88, 12, 0.14);
}

/* =========================================================
   BLOG HERO
========================================================= */

.blog-hero {
    position: relative;
    z-index: 1;
    padding: 165px 0 85px;
    background:
        radial-gradient(circle at 82% 18%, rgba(232, 121, 249, 0.24), transparent 30%),
        radial-gradient(circle at 15% 80%, rgba(234, 88, 12, 0.22), transparent 35%),
        linear-gradient(135deg, #180d05 0%, #2b1408 38%, #6c240a 68%, #ea580c 85%, #ea580c 100%);
    overflow: hidden;
    color: #ffffff;
}

.blog-hero::before {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    right: -220px;
    top: -260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(232, 121, 249, 0.28), rgba(234, 88, 12, 0.08) 42%, transparent 70%);
    pointer-events: none;
}

.blog-hero::after {
    content: "";
    position: absolute;
    width: 380px;
    height: 380px;
    left: -200px;
    bottom: -250px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(234, 88, 12, 0.30), transparent 70%);
    pointer-events: none;
}

.blog-hero-content {
    position: relative;
    z-index: 2;
    max-width: 860px;
}

.blog-hero .section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(254, 215, 170, 0.35);
    color: #fed7aa;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
    margin-bottom: 20px;
}

.blog-hero h1 {
    margin: 0 0 22px;
    font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(32px, 4.4vw, 54px);
    line-height: 1.3;
    letter-spacing: -0.5px;
    color: #ffffff;
    font-weight: 800;
}

.blog-hero h1 span {
    display: block;
    margin-top: 10px;
    letter-spacing: normal;
    word-spacing: 2px;
    background: linear-gradient(90deg, #fdba74 0%, #fb923c 50%, #ffffff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.blog-hero p {
    max-width: 700px;
    margin: 0;
    color: #fed7aa;
    font-size: 17px;
    line-height: 1.8;
}

/* =========================================================
   BLOG SECTION & LAYOUT
========================================================= */

.blog-section {
    padding: 70px 0 100px;
    background: linear-gradient(180deg, #ffffff 0%, #fffaf5 40%, #fffaf5 100%);
}

.blog-layout {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(280px, 3fr);
    gap: 48px;
    align-items: start;
}

.blog-main {
    min-width: 0; /* prevent grid overflow */
}

/* =========================================================
   FILTER BAR (CATEGORIES & SEARCH)
========================================================= */

.blog-filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 36px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--blog-border);
}

.category-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.category-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid var(--blog-border);
    color: var(--blog-ink);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: var(--blog-shadow-sm);
    white-space: nowrap;
}

.category-pill:hover,
.category-pill.active {
    background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
    color: #ffffff;
    border-color: #ea580c;
    box-shadow: 0 4px 14px rgba(234, 88, 12, 0.28);
    transform: translateY(-1px);
}

.blog-search-form {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    border: 1px solid var(--blog-border);
    border-radius: 999px;
    padding: 6px 16px;
    box-shadow: var(--blog-shadow-sm);
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.blog-search-form:focus-within {
    border-color: #ea580c;
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.15);
}

.blog-search-form input {
    border: none;
    outline: none;
    font-size: 14px;
    color: var(--blog-ink);
    background: transparent;
    padding: 6px 0;
    width: 190px;
    font-family: inherit;
}

.blog-search-form input::placeholder {
    color: var(--blog-muted);
}

.blog-search-form button {
    background: none;
    border: none;
    color: #ea580c;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    padding: 0;
    transition: transform 0.2s;
}

.blog-search-form button:hover {
    transform: scale(1.15);
}

/* =========================================================
   BLOG MAIN HEADING
========================================================= */

.blog-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 28px;
}

.blog-heading .section-kicker {
    display: inline-block;
    color: #ea580c;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.blog-heading h2 {
    margin: 4px 0 0;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: clamp(22px, 3vw, 28px);
    line-height: 1.25;
    color: #180d05;
    font-weight: 800;
}

/* =========================================================
   ARTICLE LIST & CARDS (ELEVATED CARD DESIGN)
========================================================= */

.article-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.article-card {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 24px;
    padding: 22px;
    background: #ffffff;
    border: 1px solid var(--blog-border-subtle);
    border-radius: var(--blog-radius-lg);
    box-shadow: var(--blog-shadow-sm);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    align-items: center;
}

.article-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--blog-shadow-hover);
    border-color: #f97316;
}

/* Article Image Thumbnail */
.article-image {
    position: relative;
    display: block;
    height: 195px;
    overflow: hidden;
    border-radius: 14px;
    background: linear-gradient(135deg, #fff7ed, #fed7aa);
}

.article-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.article-card:hover .article-image img {
    transform: scale(1.06);
}

/* Article Content */
.article-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-width: 0;
}

.article-meta-row {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.article-category {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 6px;
    background: #fff7ed;
    color: #ea580c;
    border: 1px solid #fed7aa;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.article-meta-date {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--blog-muted);
    font-weight: 500;
}

.article-content h3 {
    margin: 0 0 10px;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 20px;
    line-height: 1.35;
    font-weight: 700;
}

.article-content h3 a {
    color: #180d05;
    text-decoration: none;
    transition: color 0.2s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card:hover .article-content h3 a {
    color: #ea580c;
}

.article-content p {
    margin: 0 0 16px;
    color: #475569;
    font-size: 14.5px;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-readmore {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #ea580c;
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s ease;
}

.article-readmore i {
    transition: transform 0.25s ease;
}

.article-card:hover .article-readmore {
    color: #c2410c;
}

.article-card:hover .article-readmore i {
    transform: translateX(4px);
}

/* =========================================================
   SIDEBAR
========================================================= */

.blog-sidebar {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar-widget {
    padding: 24px;
    border: 1px solid var(--blog-border-subtle);
    border-radius: var(--blog-radius-lg);
    background: #ffffff;
    box-shadow: var(--blog-shadow-sm);
}

.sidebar-label {
    display: block;
    margin-bottom: 12px;
    color: #ea580c;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.sidebar-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ffedd5;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 0.5px;
    color: #180d05;
}

.sidebar-heading i {
    color: #ea580c;
    font-size: 16px;
}

/* Latest Item */
.latest-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.latest-item {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #fff1e6;
    text-decoration: none;
    align-items: center;
}

.latest-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.latest-image {
    width: 74px;
    height: 60px;
    border-radius: 10px;
    overflow: hidden;
    background: #fff7ed;
}

.latest-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.latest-item:hover .latest-image img {
    transform: scale(1.08);
}

.latest-content h3 {
    margin: 0 0 4px;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    color: #180d05;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.latest-item:hover .latest-content h3 {
    color: #ea580c;
}

.latest-content span {
    font-size: 11.5px;
    color: #ea580c;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Sidebar CTA */
.sidebar-cta {
    position: relative;
    padding: 26px;
    overflow: hidden;
    border-radius: var(--blog-radius-lg);
    background:
        radial-gradient(circle at 90% 10%, rgba(232, 121, 249, 0.30), transparent 35%),
        radial-gradient(circle at 10% 100%, rgba(234, 88, 12, 0.22), transparent 40%),
        linear-gradient(135deg, #180d05 0%, #361508 45%, #ea580c 75%, #ea580c 100%);
    color: #ffffff;
}

.sidebar-cta > i {
    font-size: 26px;
    color: #fb923c;
    margin-bottom: 12px;
    display: inline-block;
}

.sidebar-cta h3 {
    margin: 0 0 8px;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 19px;
    color: #ffffff;
}

.sidebar-cta p {
    margin: 0 0 16px;
    color: #fed7aa;
    font-size: 13px;
    line-height: 1.6;
}

.sidebar-cta a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 10px;
    background: #ffffff;
    color: #c2410c;
    font-weight: 800;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.25s ease;
}

.sidebar-cta a:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(255, 255, 255, 0.25);
    color: #ea580c;
}

/* =========================================================
   PAGINATION
========================================================= */

.blog-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 48px;
    padding-top: 24px;
    flex-wrap: wrap;
}

.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid var(--blog-border);
    color: var(--blog-ink);
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.page-btn:hover {
    border-color: #ea580c;
    color: #ea580c;
    background: #fffaf5;
}

.page-btn.active {
    background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
    color: #ffffff;
    border-color: #ea580c;
    box-shadow: 0 4px 14px rgba(234, 88, 12, 0.28);
}

.page-ellipsis {
    color: var(--blog-muted);
    padding: 0 6px;
}

/* =========================================================
   RESPONSIVE BREAKPOINTS (TABLET & MOBILE)
========================================================= */

/* Tablet Landscape & Medium Screens */
@media (max-width: 1024px) {
    .blog-hero {
        padding: 145px 0 70px;
    }

    .blog-layout {
        grid-template-columns: minmax(0, 6.5fr) minmax(260px, 3.5fr);
        gap: 32px;
    }

    .article-card {
        grid-template-columns: 240px minmax(0, 1fr);
        gap: 20px;
        padding: 18px;
    }

    .article-image {
        height: 175px;
    }
}

/* Tablet Portrait */
@media (max-width: 900px) {
    .blog-hero {
        padding: 140px 0 65px;
    }

    .blog-layout {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .blog-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
    }

    .sidebar-widget:last-child {
        grid-column: 1 / -1;
    }

    /* Horizontal scrollable pills on tablet and mobile */
    .blog-filter-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .category-pills {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .category-pills::-webkit-scrollbar {
        display: none;
    }

    .category-pill {
        flex-shrink: 0;
    }

    .blog-search-form {
        width: 100%;
    }

    .blog-search-form input {
        width: 100%;
    }
}

/* Mobile Screen (< 768px) */
@media (max-width: 768px) {
    .blog-hero {
        padding: 130px 0 55px;
    }

    .blog-hero h1 {
        font-size: 30px;
        line-height: 1.3;
        letter-spacing: normal;
    }

    .blog-hero h1 span {
        margin-top: 6px;
        word-spacing: 1px;
    }

    .blog-hero p {
        font-size: 15px;
        line-height: 1.7;
    }

    .blog-section {
        padding: 50px 0 70px;
    }

    .article-card {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 16px;
    }

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

    .article-content h3 {
        font-size: 18px;
        line-height: 1.35;
    }

    .article-content p {
        font-size: 13.5px;
        line-height: 1.6;
        margin-bottom: 12px;
    }

    .blog-sidebar {
        grid-template-columns: 1fr;
    }

    .sidebar-widget:last-child {
        grid-column: auto;
    }

    .page-btn {
        min-width: 38px;
        height: 38px;
        font-size: 13px;
        padding: 0 10px;
    }
}

/* Small Mobile Screen (< 480px) */
@media (max-width: 480px) {
    .blog-hero {
        padding: 120px 0 45px;
    }

    .blog-hero h1 {
        font-size: 26px;
    }

    .article-image {
        height: 175px;
    }

    .sidebar-widget {
        padding: 18px;
    }

    .sidebar-cta {
        padding: 20px 16px;
    }
}