/* =========================================================
   KIYA LEARNING
   CODING BLOG LISTING
   ORANGE + DARK CODING THEME
========================================================= */

.coding-blog-page {
    --coding-orange: #f4511e;
    --coding-orange-dark: #d83d10;
    --coding-orange-deep: #a92d0b;

    --coding-red: #ff6b5c;
    --coding-red-light: #fff0ec;

    --coding-dark: #18191d;
    --coding-dark-2: #22242a;
    --coding-code: #0e0f13;

    --coding-text: #303136;
    --coding-muted: #72747a;

    --coding-bg: #fff8f5;
    --coding-border: #ede4e1;

    overflow: hidden;
}


/* =========================================================
   BLOG HERO
========================================================= */

.blog-page-hero {
    position: relative;

    padding: 80px 0 65px;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 82% 18%,
            rgba(244,81,30,.16),
            transparent 28%
        ),
        linear-gradient(
            125deg,
            #18191d 0%,
            #101114 58%,
            #211714 100%
        );

    color: #fff;
}


/* =========================================================
   HERO GRID
========================================================= */

.blog-hero-grid {
    position: absolute;

    inset: 0;

    opacity: .075;

    pointer-events: none;

    background-image:
        linear-gradient(
            rgba(244,81,30,.32) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(244,81,30,.32) 1px,
            transparent 1px
        );

    background-size: 42px 42px;
}


/* =========================================================
   HERO GLOW
========================================================= */

.blog-hero-glow {
    position: absolute;

    width: 480px;
    height: 480px;

    right: -190px;
    top: -210px;

    border-radius: 50%;

    background: rgba(244,81,30,.11);

    filter: blur(25px);

    pointer-events: none;
}


/* =========================================================
   HERO CONTENT
========================================================= */

.blog-hero-content {
    position: relative;

    z-index: 3;

    max-width: 850px;

    margin: auto;

    text-align: center;
}


/* =========================================================
   EYEBROW
========================================================= */

.blog-eyebrow {
    display: inline-flex;

    align-items: center;

    gap: 7px;

    color: #ff806d;

    font-size: 11px;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: 1.6px;
}


.blog-eyebrow i {
    font-size: 14px;
}


/* =========================================================
   HERO TITLE
========================================================= */

.blog-hero-content h1 {
    margin: 14px 0 17px;

    color: #fff;

    font-size: clamp(42px, 5vw, 65px);

    line-height: 1.05;

    font-weight: 800;

    letter-spacing: -1.8px;
}


.blog-hero-content h1 span {
    display: block;

    color: #ff6b5c;
}


/* =========================================================
   HERO DESCRIPTION
========================================================= */

.blog-hero-content > p {
    max-width: 700px;

    margin: 0 auto;

    color: rgba(255,255,255,.72);

    font-size: 16px;

    line-height: 1.8;
}


/* =========================================================
   BREADCRUMB
========================================================= */

.blog-breadcrumb {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    margin-top: 18px;

    padding: 7px 12px;

    min-height: 30px;

    border: 1px solid rgba(255,255,255,.13);

    border-radius: 7px;

    background: rgba(255,255,255,.045);

    backdrop-filter: blur(7px);

    font-size: 11px;

    line-height: 1;
}


.blog-breadcrumb a {
    color: rgba(255,255,255,.88);

    text-decoration: none;

    transition: .2s ease;
}


.blog-breadcrumb a:hover {
    color: #ff806d;
}


.blog-breadcrumb span {
    color: rgba(255,255,255,.32);
}


.blog-breadcrumb span:last-child {
    color: #ff806d;

    font-weight: 600;
}


/* =========================================================
   BLOG LIST SECTION
========================================================= */

.blog-list-section {
    padding: 90px 0;

    background: #fff8f5;
}


/* =========================================================
   SECTION HEADING
========================================================= */

.blog-section-heading {
    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    gap: 40px;

    margin-bottom: 42px;
}


.blog-section-eyebrow {
    display: inline-flex;

    align-items: center;

    gap: 7px;

    margin-bottom: 9px;

    color: var(--coding-orange);

    font-size: 11px;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: 1.5px;
}


.blog-section-heading h2 {
    margin: 0;

    color: var(--coding-dark);

    font-size: clamp(30px, 4vw, 46px);

    line-height: 1.15;

    font-weight: 800;

    letter-spacing: -1px;
}


.blog-section-heading h2 span {
    color: var(--coding-orange);
}


.blog-section-heading > p {
    max-width: 450px;

    margin: 0;

    color: var(--coding-muted);

    font-size: 14px;

    line-height: 1.75;
}


/* =========================================================
   BLOG CARD
========================================================= */

.coding-blog-card {
    position: relative;

    height: 100%;

    display: flex;

    flex-direction: column;

    overflow: hidden;

    border: 1px solid var(--coding-border);

    border-radius: 20px;

    background: #fff;

    box-shadow:
        0 10px 30px rgba(24,25,29,.045);

    transition:
        transform .3s ease,
        box-shadow .3s ease,
        border-color .3s ease;
}


.coding-blog-card:hover {
    transform: translateY(-7px);

    border-color: rgba(244,81,30,.25);

    box-shadow:
        0 22px 48px rgba(24,25,29,.10);
}


/* =========================================================
   BLOG IMAGE
========================================================= */

.coding-blog-image {
    position: relative;

    display: block;

    height: 235px;

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            #18191d,
            #292c33
        );

    text-decoration: none;
}


.coding-blog-image img {
    width: 100%;

    height: 100%;

    display: block;

    object-fit: cover;

    transition:
        transform .55s ease;
}


.coding-blog-card:hover
.coding-blog-image img {
    transform: scale(1.06);
}


/* =========================================================
   IMAGE OVERLAY
========================================================= */

.blog-image-overlay {
    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            to bottom,
            transparent 50%,
            rgba(0,0,0,.38)
        );

    pointer-events: none;

    transition: .3s ease;
}


.coding-blog-card:hover
.blog-image-overlay {
    background:
        linear-gradient(
            to bottom,
            transparent 35%,
            rgba(0,0,0,.48)
        );
}


/* =========================================================
   IMAGE PLACEHOLDER
========================================================= */

.blog-image-placeholder {
    width: 100%;
    height: 100%;

    display: flex;

    align-items: center;
    justify-content: center;

    background:
        radial-gradient(
            circle at 50% 40%,
            rgba(244,81,30,.18),
            transparent 38%
        ),
        linear-gradient(
            135deg,
            #0e0f13,
            #22242a
        );

    color: #ff806d;

    font-size: 50px;
}


.blog-image-placeholder::after {
    content: "</>";

    position: absolute;

    right: 15px;
    bottom: -22px;

    color: rgba(244,81,30,.08);

    font-family: monospace;

    font-size: 90px;

    font-weight: 900;
}


/* =========================================================
   BLOG BADGES
========================================================= */

.blog-badges {
    position: absolute;

    top: 14px;
    left: 14px;

    z-index: 4;

    display: flex;

    flex-wrap: wrap;

    gap: 7px;
}


.blog-badge {
    display: inline-flex;

    align-items: center;

    gap: 5px;

    padding: 7px 10px;

    border-radius: 7px;

    color: #fff;

    font-size: 9px;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: .5px;

    backdrop-filter: blur(8px);
}


.blog-badge.featured {
    background: rgba(244,81,30,.92);

    border: 1px solid rgba(255,255,255,.15);
}


.blog-badge.trending {
    background: rgba(24,25,29,.88);

    border: 1px solid rgba(255,255,255,.13);
}


.blog-badge i {
    font-size: 9px;
}


/* =========================================================
   IMAGE ARROW
========================================================= */

.blog-image-arrow {
    position: absolute;

    right: 14px;
    bottom: 14px;

    z-index: 4;

    width: 40px;
    height: 40px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background: rgba(255,255,255,.94);

    color: var(--coding-orange);

    font-size: 16px;

    opacity: 0;

    transform: translateY(8px);

    transition:
        opacity .3s ease,
        transform .3s ease;
}


.coding-blog-card:hover
.blog-image-arrow {
    opacity: 1;

    transform: translateY(0);
}


/* =========================================================
   BLOG CONTENT
========================================================= */

.coding-blog-content {
    display: flex;

    flex-direction: column;

    flex: 1;

    padding: 24px;
}


/* =========================================================
   CATEGORY
========================================================= */

.blog-category {
    display: inline-flex;

    align-items: center;

    gap: 6px;

    width: fit-content;

    margin-bottom: 10px;

    color: var(--coding-orange);

    font-size: 10px;

    font-weight: 800;

    text-decoration: none;

    text-transform: uppercase;

    letter-spacing: .8px;
}


.blog-category:hover {
    color: var(--coding-orange-dark);
}


/* =========================================================
   BLOG TITLE
========================================================= */

.coding-blog-content h3 {
    margin: 0 0 11px;

    font-size: 19px;

    line-height: 1.38;

    font-weight: 800;
}


.coding-blog-content h3 a {
    color: var(--coding-dark);

    text-decoration: none;

    transition: color .25s ease;
}


.coding-blog-content h3 a:hover {
    color: var(--coding-orange);
}


/* =========================================================
   DESCRIPTION
========================================================= */

.coding-blog-content > p {
    margin: 0 0 18px;

    color: var(--coding-muted);

    font-size: 13px;

    line-height: 1.75;
}


/* =========================================================
   BLOG META
========================================================= */

.blog-meta {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 12px;

    padding: 13px 0;

    border-top: 1px solid #f0e9e6;

    border-bottom: 1px solid #f0e9e6;
}


.blog-author,
.blog-reading-time {
    display: inline-flex;

    align-items: center;

    gap: 7px;

    color: #72747a;

    font-size: 11px;

    font-weight: 600;
}


.blog-author {
    min-width: 0;
}


.blog-author > span:last-child {
    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;
}


.blog-author-icon {
    width: 28px;
    height: 28px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    flex: 0 0 28px;

    border-radius: 8px;

    background: var(--coding-red-light);

    color: var(--coding-orange);

    font-size: 12px;
}


.blog-reading-time {
    white-space: nowrap;
}


.blog-reading-time i {
    color: var(--coding-orange);
}


/* =========================================================
   CARD FOOTER
========================================================= */

.blog-card-footer {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;

    padding-top: 17px;

    margin-top: auto;
}


.blog-date {
    display: inline-flex;

    align-items: center;

    gap: 6px;

    color: #8a8c91;

    font-size: 10px;

    font-weight: 600;
}


.blog-date i {
    color: var(--coding-orange);
}


.blog-read-more {
    display: inline-flex;

    align-items: center;

    gap: 7px;

    color: var(--coding-orange);

    font-size: 11px;

    font-weight: 800;

    text-decoration: none;

    white-space: nowrap;

    transition: color .25s ease;
}


.blog-read-more i {
    transition:
        transform .25s ease;
}


.blog-read-more:hover {
    color: var(--coding-orange-dark);
}


.blog-read-more:hover i {
    transform: translate(3px,-3px);
}


/* =========================================================
   PAGINATION
========================================================= */

.blog-pagination {
    display: flex;

    justify-content: center;

    margin-top: 50px;
}


.blog-pagination .pagination {
    display: flex;

    flex-wrap: wrap;

    justify-content: center;

    gap: 7px;

    margin: 0;
}


.blog-pagination .page-link {
    width: 40px;
    height: 40px;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 0;

    border: 1px solid var(--coding-border);

    border-radius: 9px !important;

    background: #fff;

    color: var(--coding-text);

    font-size: 11px;

    font-weight: 700;

    box-shadow: none;

    transition: .25s ease;
}


.blog-pagination .page-link:hover {
    border-color: var(--coding-orange);

    background: var(--coding-red-light);

    color: var(--coding-orange);
}


.blog-pagination .page-item.active .page-link {
    border-color: var(--coding-orange);

    background: var(--coding-orange);

    color: #fff;
}


.blog-pagination .page-item.disabled .page-link {
    opacity: .45;
}


/* =========================================================
   EMPTY STATE
========================================================= */

.blog-empty {
    padding: 75px 30px;

    text-align: center;

    border: 1px solid var(--coding-border);

    border-radius: 20px;

    background: #fff;
}


.blog-empty-icon {
    width: 70px;
    height: 70px;

    display: flex;

    align-items: center;
    justify-content: center;

    margin: 0 auto 20px;

    border-radius: 18px;

    background: var(--coding-red-light);

    color: var(--coding-orange);

    font-size: 28px;
}


.blog-empty h3 {
    margin: 0 0 8px;

    color: var(--coding-dark);

    font-size: 23px;

    font-weight: 800;
}


.blog-empty p {
    margin: 0;

    color: var(--coding-muted);

    font-size: 14px;
}


/* =========================================================
   CTA
========================================================= */

.blog-cta-section {
    padding: 75px 0;

    background: #fff;
}


.blog-cta {
    position: relative;

    display: flex;

    align-items: center;

    gap: 24px;

    padding: 38px 40px;

    overflow: hidden;

    border-radius: 22px;

    background:
        radial-gradient(
            circle at 88% 25%,
            rgba(244,81,30,.16),
            transparent 28%
        ),
        linear-gradient(
            135deg,
            #18191d,
            #101114
        );

    box-shadow:
        0 20px 50px rgba(24,25,29,.13);
}


.blog-cta::before {
    content: "</>";

    position: absolute;

    right: 15px;
    bottom: -55px;

    color: rgba(244,81,30,.045);

    font-family: monospace;

    font-size: 190px;

    font-weight: 900;

    line-height: 1;

    pointer-events: none;
}


.blog-cta::after {
    content: "";

    position: absolute;

    width: 250px;
    height: 250px;

    left: -130px;
    top: -160px;

    border-radius: 50%;

    border: 1px solid rgba(244,81,30,.12);

    pointer-events: none;
}


/* =========================================================
   CTA ICON
========================================================= */

.blog-cta-icon {
    position: relative;

    z-index: 2;

    width: 62px;
    height: 62px;

    display: flex;

    align-items: center;
    justify-content: center;

    flex: 0 0 62px;

    border-radius: 16px;

    background: rgba(244,81,30,.13);

    border: 1px solid rgba(244,81,30,.22);

    color: #ff806d;

    font-size: 25px;
}


/* =========================================================
   CTA CONTENT
========================================================= */

.blog-cta-content {
    position: relative;

    z-index: 2;

    flex: 1;
}


.blog-cta-content > span {
    display: block;

    margin-bottom: 5px;

    color: #ff806d;

    font-size: 10px;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: 1.4px;
}


.blog-cta-content h2 {
    margin: 0 0 7px;

    color: #fff;

    font-size: 27px;

    line-height: 1.25;

    font-weight: 800;
}


.blog-cta-content p {
    max-width: 650px;

    margin: 0;

    color: rgba(255,255,255,.68);

    font-size: 13px;

    line-height: 1.7;
}


/* =========================================================
   CTA ACTION
========================================================= */

.blog-cta-action {
    position: relative;

    z-index: 2;

    display: flex;

    align-items: center;

    gap: 9px;
}


.blog-cta-phone,
.blog-cta-button {
    min-height: 45px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    padding: 0 16px;

    border-radius: 9px;

    text-decoration: none;

    font-size: 11px;

    font-weight: 750;

    white-space: nowrap;

    transition: .25s ease;
}


.blog-cta-phone {
    border: 1px solid rgba(255,255,255,.16);

    background: rgba(255,255,255,.05);

    color: #fff;
}


.blog-cta-phone:hover {
    background: rgba(255,255,255,.11);

    color: #fff;

    transform: translateY(-2px);
}


.blog-cta-button {
    border: 1px solid var(--coding-orange);

    background: var(--coding-orange);

    color: #fff;
}


.blog-cta-button:hover {
    border-color: var(--coding-orange-dark);

    background: var(--coding-orange-dark);

    color: #fff;

    transform: translateY(-2px);

    box-shadow:
        0 10px 25px rgba(244,81,30,.22);
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 991px) {

    .blog-page-hero {
        padding: 70px 0 60px;
    }


    .blog-list-section {
        padding: 70px 0;
    }


    .blog-section-heading {
        align-items: flex-start;

        flex-direction: column;

        gap: 14px;
    }


    .blog-section-heading > p {
        max-width: 650px;
    }


    .blog-cta {
        align-items: flex-start;

        flex-wrap: wrap;
    }


    .blog-cta-content {
        flex: 1 1 calc(100% - 90px);
    }


    .blog-cta-action {
        width: 100%;

        padding-left: 86px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    .blog-page-hero {
        padding: 58px 0 48px;
    }


    .blog-hero-content h1 {
        margin: 13px 0 15px;

        font-size: 40px;

        letter-spacing: -.9px;
    }


    .blog-hero-content > p {
        font-size: 14px;

        line-height: 1.7;
    }


    .blog-breadcrumb {
        margin-top: 15px;

        padding: 6px 10px;

        min-height: 28px;

        font-size: 10px;
    }


    .blog-list-section {
        padding: 55px 0;
    }


    .blog-section-heading {
        margin-bottom: 30px;
    }


    .blog-section-heading h2 {
        font-size: 32px;
    }


    .coding-blog-image {
        height: 225px;
    }


    .coding-blog-content {
        padding: 21px;
    }


    .blog-cta-section {
        padding: 55px 0;
    }


    .blog-cta {
        padding: 28px 23px;

        border-radius: 19px;

        gap: 17px;
    }


    .blog-cta-icon {
        width: 52px;
        height: 52px;

        flex-basis: 52px;

        border-radius: 14px;

        font-size: 21px;
    }


    .blog-cta-content {
        flex: 1 1 calc(100% - 70px);
    }


    .blog-cta-content h2 {
        font-size: 22px;
    }


    .blog-cta-content p {
        font-size: 12px;
    }


    .blog-cta-action {
        width: 100%;

        padding-left: 0;

        flex-direction: column;

        align-items: stretch;
    }


    .blog-cta-phone,
    .blog-cta-button {
        width: 100%;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .blog-page-hero {
        padding: 50px 0 42px;
    }


    .blog-hero-content h1 {
        font-size: 34px;
    }


    .blog-hero-content > p {
        font-size: 13px;
    }


    .blog-section-heading h2 {
        font-size: 29px;
    }


    .coding-blog-image {
        height: 210px;
    }


    .coding-blog-content {
        padding: 19px;
    }


    .coding-blog-content h3 {
        font-size: 18px;
    }


    .blog-meta {
        align-items: flex-start;

        flex-direction: column;

        gap: 9px;
    }


    .blog-card-footer {
        align-items: flex-start;

        flex-direction: column;

        gap: 11px;
    }


    .blog-read-more {
        width: 100%;

        justify-content: space-between;

        padding-top: 11px;

        border-top: 1px solid #f0e9e6;
    }


    .blog-pagination {
        margin-top: 38px;
    }


    .blog-cta-content h2 {
        font-size: 20px;
    }


    .blog-cta::before {
        font-size: 130px;

        bottom: -30px;
    }

}