/* =========================================================
   BLOG PAGE
========================================================= */

:root {
    --blog-pink: #ef3b82;
    --blog-text: #202329;
    --blog-muted: #666;
    --blog-border: #e4e4e4;
}


/* =========================================================
   BLOG HERO
========================================================= */

.blog-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-color: #25282c;
    background-image: url("../images/blog-hero.jpg");
    background-size: cover;
    background-position: center;
    overflow: hidden;

    animation: blogHeroBackground 1.2s ease-out both;
}

.blog-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.82) 0%,
            rgba(0, 0, 0, 0.55) 48%,
            rgba(0, 0, 0, 0.18) 100%
        );
    pointer-events: none;

    opacity: 0;
    animation: blogHeroOverlay 1s ease-out 0.15s forwards;
}

.blog-hero-content {
    position: relative;
    z-index: 2;
    width: min(1200px, calc(100% - 120px));
    margin: 0 auto;
    padding-top: 110px;
    padding-bottom: 80px;
}

.blog-hero-label {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;

    opacity: 0;
    transform: translateX(-40px);

    animation:
        blogHeroLabel 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.35s
        forwards;
}

.blog-hero-label span {
    display: block;
    width: 28px;
    height: 1px;
    background: #ef3b82;
}

.blog-hero-label p {
    margin: 0;
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 3px;
}

.blog-hero h1 {
    margin: 0 0 20px;
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: clamp(64px, 8vw, 100px);
    font-weight: 400;
    line-height: 1;

    opacity: 0;
    transform: translateY(45px);

    animation:
        blogHeroTitle 1s cubic-bezier(0.22, 1, 0.36, 1) 0.5s
        forwards;
}

.blog-hero-description {
    max-width: 430px;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-family: Arial, sans-serif;
    font-size: 18px;
    line-height: 1.55;

    opacity: 0;
    transform: translateY(30px);

    animation:
        blogHeroDescription 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.8s
        forwards;
}


/* =========================================================
   FEATURED ARTICLE
========================================================= */

.blog-featured {
    padding: 75px 0;
    background: #fff;
}

.blog-featured-inner {
    width: min(1200px, calc(100% - 120px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 65px;
    align-items: center;
}

.blog-featured-content {
    min-width: 0;
}

.blog-section-label {
    margin: 0 0 20px;
    color: var(--blog-pink);
    font-family: Arial, sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 3px;
}

.blog-featured-content h2 {
    margin: 0 0 20px;
    color: var(--blog-text);
    font-family: Arial, sans-serif;
    font-size: clamp(34px, 4vw, 52px);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -1.5px;
}

.blog-featured-description {
    max-width: 470px;
    margin: 0 0 28px;
    color: var(--blog-muted);
    font-family: Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
}

.blog-read-more {
    display: inline-flex;
    align-items: center;
    gap: 25px;
    padding: 13px 20px;
    border: 1px solid #303030;
    color: #202329;
    font-family: Arial, sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition:
        background 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease;
}

.blog-read-more .blog-arrow {
    color: var(--blog-pink);
    font-size: 21px;
}

.blog-read-more:hover {
    background: var(--blog-pink);
    border-color: var(--blog-pink);
    color: #fff;
}

.blog-read-more:hover .blog-arrow {
    color: #fff;
}

.blog-featured-image {
    width: 100%;
    height: 370px;
    overflow: hidden;
    background: #eee;
}

.blog-featured-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-featured-image:hover img {
    transform: scale(1.04);
}


/* =========================================================
   LATEST ARTICLES
========================================================= */

.blog-latest {
    padding: 55px 0 85px;
    background: #f8f8f9;
}

.blog-latest-header {
    width: min(1200px, calc(100% - 120px));
    margin: 0 auto 35px;
    display: flex;
    align-items: center;
    gap: 25px;
}

.blog-latest-title {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.blog-latest-title span {
    width: 28px;
    height: 1px;
    background: #333;
}

.blog-latest-title p {
    margin: 0;
    color: #202329;
    font-family: Arial, sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 3px;
}

.blog-latest-line {
    flex: 1;
    height: 1px;
    background: #ddd;
}

.blog-grid {
    width: min(1200px, calc(100% - 120px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.blog-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #fff;
    border: 1px solid var(--blog-border);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
}

.blog-card-image {
    display: block;
    width: 100%;
    aspect-ratio: 1.6;
    overflow: hidden;
    background: #eee;
}

.blog-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 25px 23px;
}

.blog-card-category {
    margin: 0 0 12px;
    color: var(--blog-pink);
    font-family: Arial, sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.blog-card h3 {
    margin: 0 0 14px;
    color: var(--blog-text);
    font-family: Arial, sans-serif;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.4px;
}

.blog-card-description {
    margin: 0 0 25px;
    color: var(--blog-muted);
    font-family: Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
}

.blog-card-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    color: #202329;
    font-family: Arial, sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.25s ease;
}

.blog-card-link span:last-child {
    color: var(--blog-pink);
    font-size: 22px;
    font-weight: 400;
}

.blog-card-link:hover {
    color: var(--blog-pink);
}


/* =========================================================
   BLOG CTA
========================================================= */

.blog-cta {
    position: relative;
    min-height: 320px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #17191d;
}

.blog-cta-image {
    position: absolute;
    inset: 0;
    background-image: url("../images/blog-cta.jpg");
    background-size: cover;
    background-position: center;
}

.blog-cta-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.88) 0%,
            rgba(0, 0, 0, 0.60) 55%,
            rgba(0, 0, 0, 0.18) 100%
        );
}

.blog-cta-content {
    position: relative;
    z-index: 2;
    width: min(1200px, calc(100% - 120px));
    margin: 0 auto;
    padding: 55px 0;
}

.blog-cta-label {
    margin: 0 0 15px;
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 3px;
}

.blog-cta-content h2 {
    margin: 0 0 25px;
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: clamp(30px, 4vw, 48px);
    font-weight: 400;
    line-height: 1.15;
}

.blog-cta-content h2 span {
    color: var(--blog-pink);
}

.blog-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 25px;
    padding: 13px 20px;
    border: 1px solid #fff;
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 13px;
    text-decoration: none;
    transition:
        background 0.25s ease,
        border-color 0.25s ease;
}

.blog-cta-button span:last-child {
    color: var(--blog-pink);
    font-size: 22px;
}

.blog-cta-button:hover {
    background: var(--blog-pink);
    border-color: var(--blog-pink);
}

.blog-cta-button:hover span:last-child {
    color: #fff;
}


/* =========================================================
   ARTICLE HERO
========================================================= */

.article-hero {
    position: relative;
    min-height: 100vh;
    background-image: url("../images/blog-hero.jpg");
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    overflow: hidden;

    animation: articleHeroImage 1.4s ease-out both;
}

.article-hero-overlay {
    position: absolute;
    inset: 0;

    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.78),
        rgba(0, 0, 0, 0.42),
        rgba(0, 0, 0, 0.2)
    );

    opacity: 0;
    animation: articleHeroOverlay 1s ease-out 0.15s forwards;
}

.article-hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    width: 90%;
    color: #fff;
    padding: 100px 0 80px;
}

.article-category {
    display: inline-block;
    margin-bottom: 20px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #ef3b82;

    opacity: 0;
    transform: translateX(-45px);

    animation:
        articleHeroCategory 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.35s
        forwards;
}


/* =========================================================
   ARTICLE HERO TITLE
========================================================= */

.article-hero-content h1,
.article-hero-title {
    max-width: 850px;
    margin: 0 0 20px;
    font-size: clamp(42px, 6vw, 72px);
    line-height: 1.08;
    font-weight: 700;

    opacity: 0;
    transform: translateY(45px);

    animation:
        articleHeroTitle 1s cubic-bezier(0.22, 1, 0.36, 1) 0.5s
        forwards;
}

.article-hero-content h1 span,
.article-hero-title span {
    color: #ef3b82;
}

.article-intro {
    max-width: 760px;
    margin: 0;
    font-size: 19px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);

    opacity: 0;
    transform: translateY(30px);

    animation:
        articleHeroIntro 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.8s
        forwards;
}


/* =========================================================
   ARTICLE CONTENT
========================================================= */

.article-main {
    padding: 90px 0;
    background: #fff;
}

.article-content {
    max-width: 820px;
    margin: 0 auto;
    width: calc(100% - 40px);
}

.article-meta {
    margin-bottom: 35px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e5e5;
    font-size: 14px;
    color: #777;
}


/* =========================================================
   ARTICLE LEAD
========================================================= */

.article-lead {
    margin-bottom: 45px;
    font-size: 20px;
    line-height: 1.8;
    color: #333;
}


/* =========================================================
   ARTICLE HEADINGS
   SEO STRUCTURE:
   H1 → H2 → H3 → H4 → H5 → H6

   Visual hierarchy is preserved without making
   lower headings unnecessarily small.
========================================================= */

/* H1 — Main article heading */
.article-content h1 {
    margin: 0 0 22px;
    font-family: Arial, sans-serif;
    font-size: 32px;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.3px;
    color: #181818;
}


/* H2 — Main sections */
.article-section h2 {
    margin: 0 0 18px;
    font-family: Arial, sans-serif;
    font-size: 30px;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.3px;
    color: #181818;
}


/* H3 — Subsections */
.article-section h3 {
    margin: 0 0 18px;
    font-family: Arial, sans-serif;
    font-size: 26px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.2px;
    color: #181818;
}


/* H4 — Smaller subsections */
.article-section h4 {
    margin: 0 0 16px;
    font-family: Arial, sans-serif;
    font-size: 23px;
    font-weight: 600;
    line-height: 1.3;
    color: #181818;
}


/* H5 — Minor headings */
.article-section h5 {
    margin: 0 0 15px;
    font-family: Arial, sans-serif;
    font-size: 21px;
    font-weight: 600;
    line-height: 1.35;
    color: #181818;
}


/* H6 — Smallest heading level */
.article-section h6 {
    margin: 0 0 14px;
    font-family: Arial, sans-serif;
    font-size: 19px;
    font-weight: 600;
    line-height: 1.4;
    color: #181818;
}


/* =========================================================
   ARTICLE PARAGRAPHS
========================================================= */

.article-section p {
    margin: 0 0 18px;
    font-size: 17px;
    line-height: 1.85;
    color: #4d4d4d;
}

.article-section ul {
    margin: 20px 0 0;
    padding-left: 25px;
}

.article-section li {
    margin-bottom: 12px;
    font-size: 17px;
    line-height: 1.7;
    color: #4d4d4d;
}

.article-section strong {
    color: #222;
}


/* =========================================================
   ARTICLE CTA
========================================================= */

.article-cta {
    position: relative;
    min-height: 380px;
    background-image: url("../images/blog-cta.jpg");
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.article-cta-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
}

.article-cta-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    width: 90%;
    margin: 0 auto;
    text-align: center;
    color: #fff;
}

.article-cta-content h2 {
    margin: 0 0 18px;
    font-size: clamp(32px, 5vw, 50px);
    line-height: 1.15;
}

.article-cta-content p {
    max-width: 650px;
    margin: 0 auto 30px;
    font-size: 17px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
}

.article-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    background: #ef3b82;
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: 0.3s ease;
}

.article-cta-button:hover {
    background: #fff;
    color: #181818;
}


/* =========================================================
   BACK TO BLOG
========================================================= */

.article-back-link {
    display: inline-block;
    margin-top: 20px;
    color: #555;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.25s ease;
}

.article-back-link:hover {
    color: #ef3b82;
}


/* =========================================================
   BLOG HERO ANIMATIONS
========================================================= */

@keyframes blogHeroBackground {

    from {
        opacity: 0;
        transform: scale(1.05);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }

}


@keyframes blogHeroOverlay {

    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }

}


@keyframes blogHeroLabel {

    from {
        opacity: 0;
        transform: translateX(-40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }

}


@keyframes blogHeroTitle {

    from {
        opacity: 0;
        transform: translateY(45px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}


@keyframes blogHeroDescription {

    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}


/* =========================================================
   ARTICLE HERO ANIMATIONS
========================================================= */

@keyframes articleHeroImage {

    from {
        opacity: 0;
        transform: scale(1.08);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }

}


@keyframes articleHeroOverlay {

    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }

}


@keyframes articleHeroCategory {

    from {
        opacity: 0;
        transform: translateX(-45px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }

}


@keyframes articleHeroTitle {

    from {
        opacity: 0;
        transform: translateY(45px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}


@keyframes articleHeroIntro {

    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1024px) {

    .blog-hero-content,
    .blog-featured-inner,
    .blog-latest-header,
    .blog-grid,
    .blog-cta-content {
        width: calc(100% - 70px);
    }

    .blog-featured-inner {
        gap: 35px;
    }

    .blog-featured-image {
        height: 320px;
    }

    .blog-grid {
        gap: 18px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {

    /* =====================================================
       BLOG
    ===================================================== */

    .blog-hero {
        min-height: 100vh;
        background-position: center;
    }

    .blog-hero-content {
        width: calc(100% - 40px);
        padding-top: 110px;
        padding-bottom: 65px;
    }

    .blog-hero h1 {
        font-size: 64px;
    }

    .blog-hero-description {
        max-width: 320px;
        font-size: 16px;
    }

    .blog-featured {
        padding: 55px 0;
    }

    .blog-featured-inner {
        width: calc(100% - 40px);
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .blog-featured-content {
        display: contents;
    }

    .blog-section-label {
        order: 1;
    }

    .blog-featured-content h2 {
        order: 2;
        font-size: 35px;
    }

    .blog-featured-description {
        order: 3;
        font-size: 15px;
    }

    .blog-featured-image {
        order: 4;
        height: auto;
        aspect-ratio: 1.4;
        margin-top: 5px;
    }

    .blog-read-more {
        order: 5;
        align-self: flex-start;
        margin-top: 25px;
    }

    .blog-latest {
        padding: 45px 0 65px;
    }

    .blog-latest-header {
        width: calc(100% - 40px);
        margin-bottom: 25px;
    }

    .blog-latest-title p {
        font-size: 11px;
        letter-spacing: 2px;
    }

    .blog-grid {
        width: calc(100% - 40px);
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .blog-card-image {
        aspect-ratio: 1.55;
    }

    .blog-card h3 {
        font-size: 22px;
    }

    .blog-cta {
        min-height: 320px;
    }

    .blog-cta-content {
        width: calc(100% - 40px);
        padding: 55px 0;
    }

    .blog-cta-content h2 {
        font-size: 30px;
    }


    /* =====================================================
       ARTICLE
    ===================================================== */

    .article-hero {
        min-height: 100vh;
        background-position: center;
    }

    .article-hero-content {
        padding: 100px 0 70px;
    }

    .article-hero-content h1,
    .article-hero-title {
        font-size: 42px;
        line-height: 1.12;
    }

    .article-intro {
        font-size: 15px;
        line-height: 1.55;
    }

    .article-main {
        padding: 60px 0;
    }

    .article-content {
        width: 90%;
    }

    .article-lead {
        font-size: 18px;
        line-height: 1.75;
        margin-bottom: 35px;
    }


    /* =====================================================
       ARTICLE HEADING HIERARCHY — MOBILE
    ===================================================== */

    .article-content h1 {
        font-size: 28px;
        line-height: 1.25;
    }

    .article-section h2 {
        font-size: 26px;
        line-height: 1.25;
    }

    .article-section h3 {
        font-size: 24px;
        line-height: 1.3;
    }

    .article-section h4 {
        font-size: 22px;
        line-height: 1.3;
    }

    .article-section h5 {
        font-size: 20px;
        line-height: 1.35;
    }

    .article-section h6 {
        font-size: 18px;
        line-height: 1.4;
    }


    /* =====================================================
       ARTICLE SECTIONS
    ===================================================== */

    .article-section {
        margin-bottom: 38px;
    }

    .article-section p,
    .article-section li {
        font-size: 16px;
        line-height: 1.75;
    }


    /* =====================================================
       ARTICLE CTA
    ===================================================== */

    .article-cta {
        min-height: 360px;
    }

    .article-cta-content h2 {
        font-size: 34px;
    }

    .article-cta-content p {
        font-size: 16px;
    }

    .article-cta-button {
        padding: 13px 25px;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 380px) {

    .blog-hero h1 {
        font-size: 56px;
    }

    .blog-featured-content h2 {
        font-size: 30px;
    }

    .blog-card h3 {
        font-size: 21px;
    }

    .blog-cta-content h2 {
        font-size: 27px;
    }

}
@media (max-width: 768px) {

    html,
    body {
        overflow-x: hidden;
        overscroll-behavior-x: none;
    }

}