/* ============================================================
   MOBILE BLOG CATEGORY DROPDOWN
============================================================ */

.mobile-category-dropdown {
    display: none;
    position: relative;
    width: 100%;
}


/* TRIGGER */

.mobile-category-trigger {
    width: 100%;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 16px;

    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;

    background: rgba(255, 255, 255, 0.06);
    color: #fff;

    font-family: inherit;
    font-size: 14px;
    font-weight: 500;

    cursor: pointer;

    backdrop-filter: blur(15px);

    transition:
        background 0.3s ease,
        border-color 0.3s ease;
}

.mobile-category-trigger:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.22);
}

.mobile-category-trigger i {
    font-size: 11px;

    transition:
        transform 0.3s ease;
}

.mobile-category-trigger.open i {
    transform: rotate(180deg);
}


/* ============================================================
   DROPDOWN
============================================================ */

.mobile-category-menu {
    position: absolute;

    top: calc(100% + 8px);
    left: 0;
    right: 0;

    z-index: 9999;

    padding: 8px;

    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;

    background: rgba(15, 15, 16, 0.96);

    backdrop-filter: blur(20px);

    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.4),
        inset 0 0 20px rgba(255, 255, 255, 0.025);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform:
        translateY(-8px)
        scale(0.98);

    transform-origin: top;

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease,
        transform 0.25s ease;
}


/* OPEN */

.mobile-category-menu.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    transform:
        translateY(0)
        scale(1);
}


/* ============================================================
   MENU ITEMS
============================================================ */

.mobile-category-item {
    width: 100%;

    display: block;

    padding: 12px 14px;

    border: 0;
    border-radius: 10px;

    background: transparent;
    color: rgba(255, 255, 255, 0.65);

    text-align: left;

    font-family: inherit;
    font-size: 14px;

    cursor: pointer;

    transition:
        background 0.25s ease,
        color 0.25s ease;
}

.mobile-category-item:hover {
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
}

.mobile-category-item.active {
    background: rgba(173, 12, 43, 0.18);
    color: #fff;

    box-shadow:
        inset 0 0 15px rgba(173, 12, 43, 0.08);
}


/* ============================================================
   MOBILE
============================================================ */

@media (max-width: 767px) {

    .blog-category-bar {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }


    /* Hide desktop categories */

    .blog-category-nav {
        display: none!important;
    }


    /* Show mobile dropdown */

    .mobile-category-dropdown {
        display: block;
		padding-left: 1px;
    }


    /* Keep controls below */

    .blog-category-actions {
        width: 100%;

        display: flex;
        align-items: center;
        justify-content: space-between;

        gap: 10px;
    }


    .blog-search {
        flex: 1;
    }


    .more-category-wrapper {
        flex-shrink: 0;
        display: none;
    }

}

/* =========================================================
   BLOG CATEGORY STRIP
========================================================= */

@keyframes blogCardFilter {

    from {
        opacity: 0;
        transform: translateY(20px) scale(.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

}


.blog-card.category-hidden {
    opacity: 0;
    transform: translateY(15px) scale(.97);
    pointer-events: none;

    transition:
        opacity .3s ease,
        transform .3s ease;
}

.blog-category-section {
    width: 100%;
    padding: 12px 38px 0px;

    position: fixed;
    z-index: 1000;
        background-color: var(--black);
}
body.light .blog-category-section{
    background-color: var(--white);
}
body.light .blog-category-bar{
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.88));
    border: 1px solid rgb(0 0 0 / 9%);
    border-radius: 18px;
    box-shadow: 0 0 5px rgb(4 4 4 / 0%),
     0px 0px 16px rgb(5 5 5 / 6%),
     0px -1px 21px rgb(0 0 0 / 35%), 
    inset 0 -5px 0 rgb(4 4 4 / 4%);
}
body.light .blog-category{
    color: var(--black);
}
body.light .category-active-glass{
    backdrop-filter: blur(5px) saturate(1.45);
    background: #a4172829;
    border: 1px solid rgb(0 0 0 / 11%);
}
body.light .more-category-btn span{
    background-color: var(--black);
}
body.light .blog-search-btn {
    color: var(--white);
    background-color: var(--black);
}
body.light .blog-sort-trigger{
    background: #d2d2d2;
    box-shadow: none;
    color: #080708;
}
body.light .blog-sort-trigger i{
    color: #080708;
}
body.light .blog-category:not(.active):hover{
    color: var(--black);
}

/* =========================================================
   MAIN GLASS BAR
========================================================= */

.blog-category-bar {

    width: 100%;
    min-height: 64px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 12px 0 0;

    position: relative;

    background:
        linear-gradient(
            180deg,
            rgba(35, 35, 35, 0.78),
            rgba(13, 13, 13, 0.88)
        );

    border: 1px solid rgba(255, 255, 255, 0.09);

    border-radius: 18px;

    /*
       Main screenshot-like outer glow/shadow
    */
    box-shadow:
        0 0 5px rgb(255 255 255 / 0%), 0px 0px 16px rgba(255, 255, 255, 0.055), 0px -1px 21px rgb(255 255 255 / 35%), inset 0 -5px 0 rgb(255 255 255 / 4%);

    backdrop-filter: blur(20px) saturate(1.35);
    -webkit-backdrop-filter: blur(20px) saturate(1.35);
}


/* =========================================================
   CATEGORY NAV
========================================================= */

.blog-category-nav {

    height: 64px;

    display: flex;
    align-items: center;

    position: relative;

    min-width: 0;
}


/* =========================================================
   MOVING ACTIVE GLASS
========================================================= */

.category-active-glass {

    position: absolute;

    top: -10px;
    left: 0;

    height: 80px;

    width: 0;

    z-index: 0;

    pointer-events: none;

    border-radius: 18px;

    /*
       Frosted glass
    */
    background:
        transparent;

    border: 1px solid rgba(255, 255, 255, 0.13);

    /*
       Outer glow + inset effect
    */
    box-shadow:

        /* outer soft glow */
        0 0 8px rgba(255, 255, 255, 0.08),

        /* bottom shadow */
        0 5px 15px rgba(0, 0, 0, 0.38),

        /* inner top highlight */
        inset 0 1px 0 rgba(255, 255, 255, 0.14),

        /* inner glass shadow */
        inset 0 -8px 18px rgba(0, 0, 0, 0.25),

        /* inner edge */
        inset 0 0 12px rgba(255, 255, 255, 0.025);

    backdrop-filter:
        blur(1px)
        saturate(1.45);

    -webkit-backdrop-filter:
        blur(14px)
        saturate(1.45);

    /*
       This creates the important sliding animation
    */
    transform: translateX(0);

    transition:
        transform 0.55s cubic-bezier(.22, .61, .36, 1),
        width 0.55s cubic-bezier(.22, .61, .36, 1);

    will-change: transform, width;
}


/* =========================================================
   CATEGORY BUTTONS
========================================================= */

.blog-category {

    height: 62px;

    padding: 0 20px;

    position: relative;

    z-index: 2;

    border: 0;
    outline: none;

    background: transparent;

    color: rgba(255, 255, 255, 0.96);


    font-size: 16px;
    font-weight: 400;

    white-space: nowrap;

    cursor: pointer;

    border-radius: 18px;

    transition:
        color 0.3s ease,
        text-shadow 0.3s ease;

    -webkit-tap-highlight-color: transparent;
}


/* =========================================================
   ACTIVE TEXT
========================================================= */

.blog-category.active {

    color: #ffffff;

    text-shadow:
        0 0 8px rgba(255, 255, 255, 0.12);
}


/* =========================================================
   HOVER
========================================================= */

.blog-category:not(.active):hover {

    color: #ffffff;

    text-shadow:
        0 0 8px rgba(255, 255, 255, 0.08);
}


/* =========================================================
   CLICK EFFECT
========================================================= */

.blog-category:active {

    transform: scale(0.97);

}


/* =========================================================
   RIGHT CONTROLS
========================================================= */

.blog-category-actions {

    display: flex;
    align-items: center;

    gap: 16px;

    flex-shrink: 0;
}





/* =========================================================
   MORE CATEGORY
========================================================= */

.more-category-wrapper {
    position: relative;
    z-index: 9999;
}


.more-category-btn {

    width: 40px;
    height: 40px;

    padding: 0;
    position: relative;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    gap: 5px;

    border: 0;
    outline: none;

    background: transparent;

    border-radius: 10px;

    cursor: pointer;

    transition:
        background 0.25s ease;
        user-select: none;

    -webkit-tap-highlight-color: transparent;
}


.more-category-btn:hover {
    background: rgba(255, 255, 255, 0.055);
}


.more-category-btn span {

    display: block;

    width: 29px;
    height: 4px;

    border-radius: 5px;

    background: #ffffff;

    transition:
        transform 0.35s cubic-bezier(.22, .61, .36, 1),
        opacity 0.25s ease;
}


/* =========================================================
   HAMBURGER -> X
========================================================= */

.more-category-btn.open span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.more-category-btn.open span:nth-child(2) {
    opacity: 0;
}

.more-category-btn.open span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}


/* =========================================================
   MORE CATEGORY DROPDOWN
========================================================= */

.more-category-dropdown {

    position: absolute;

    top: calc(100% + 10px);
    right: 0;

    width: 220px;

    padding: 10px;

    background:
        linear-gradient(
            180deg,
            rgba(32, 32, 32, 0.94),
            rgba(10, 10, 10, 0.97)
        );

    border: 1px solid rgba(255, 255, 255, 0.11);

    border-radius: 16px;

    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.70),
        0 0 15px rgba(255, 255, 255, 0.035),
        inset 0 1px 0 rgba(255, 255, 255, 0.07);

    backdrop-filter:
        blur(22px)
        saturate(1.4);

    -webkit-backdrop-filter:
        blur(22px)
        saturate(1.4);

    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    z-index: 10000;
    transform:
        translateY(-8px)
        scale(.97);

    transform-origin: top right;

    transition:
        opacity .25s ease,
        visibility .25s ease,
        transform .3s cubic-bezier(.22, .61, .36, 1);
}


.more-category-dropdown.open {

    opacity: 1;

    visibility: visible;

    transform:
        translateY(0)
        scale(1);
        pointer-events: auto;
}


.more-category-title {

    padding:
        8px
        11px
        10px;

    color: rgba(255, 255, 255, 0.50);


    font-size: 10px;

    text-transform: uppercase;

    letter-spacing: .8px;
}


.more-category-item {

    display: block;

    width: 100%;

    padding: 12px 14px;

    margin: 2px 0;

    border: 0;

    border-radius: 10px;

    background: transparent;

    color: #ffffff;


    font-size: 14px;

    font-weight: 500;

    line-height: 1.4;

    text-align: left;

    cursor: pointer;

    transition:
        background 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease;
}


.more-category-item:hover {

    padding-left: 15px;

    background:
        rgba(173, 12, 43, 0.18);
}
.more-category-item.active {
    background:
        rgba(173, 12, 43, 0.28);

    color: #ffffff;
}

@keyframes blogCardFilter {

    from {
        opacity: 0;
        transform: translateY(20px) scale(.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

}


.blog-card.category-hidden {
    opacity: 0;
    transform: translateY(15px) scale(.97);
    pointer-events: none;

    transition:
        opacity .3s ease,
        transform .3s ease;
}
/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1000px) {

    .blog-category {

        padding-left: 15px;
        padding-right: 15px;

        font-size: 16px;
    }

  

    .blog-category-actions {
        gap: 10px;
    }
}


/* =========================================================
   SMALL TABLET
========================================================= */

@media (max-width: 800px) {

    .blog-category-nav {

        overflow-x: auto;
        overflow-y: hidden;

        scrollbar-width: none;
    }

    .blog-category-nav::-webkit-scrollbar {
        display: none;
    }

    .blog-category {

        flex-shrink: 0;

        padding-left: 14px;
        padding-right: 14px;
    }

   
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .blog-category-section {

        padding:
            15px
            24px
            0;
    }


    .blog-category-bar {

        min-height: 58px;

        padding-right: 6px;

        border-radius: 16px;
    }


    .blog-category-nav {

        height: 58px;

        flex: 1;

        min-width: 0;
    }


    .category-active-glass {

        height: 70px;

        border-radius: 15px;
    }


    .blog-category {

        height: 56px;

        padding:
            0 14px;

        font-size: 14px;

        border-radius: 15px;
    }


    .blog-category-actions {

        gap: 4px;

        margin-left: 4px;
    }



    .more-category-btn {

        width: 38px;
        height: 38px;
    }


    .more-category-btn span {

        width: 26px;
        height: 3px;
    }


    .more-category-dropdown {

        position: fixed;

        top: 72px;
        right: 10px;

        width:
            min(
                240px,
                calc(100vw - 20px)
            );
    }
}


/* =========================================================
   VERY SMALL MOBILE
========================================================= */

@media (max-width: 400px) {

    .blog-category {

        padding:
            0 12px;

        font-size: 13px;
    }

    .blog-category-actions {
        gap: 3px;
    }
}


/* =========================================================
   BLOG SORT CONTROL ROW START
========================================================= */

@keyframes blogCardSort {

    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}

.blog-sort-row {

    width: 100%;

    padding:
        9px 29px
        14px;

    display: flex;
    justify-content: flex-end;
    align-items: center;

    position: fixed;

    z-index: 900;
    top: 156px;
    padding-right: 40px;
}


/* =========================================================
   SORT WRAPPER
========================================================= */

.blog-sort {

    position: relative;
}


/* =========================================================
   SORT TRIGGER
========================================================= */

.blog-sort-trigger {

    min-width: 174px;

    padding:
        4px 10px
        4px 10px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 10px;

    border: 1px solid rgba(255, 255, 255, 0.07);

    border-radius: 18px;

    background:
        linear-gradient(
            180deg,
            rgba(39, 39, 39, 0.88),
            rgba(25, 25, 25, 0.92)
        );

    color: #ffffff;


    font-size: 15px;
    font-weight: 400;

    cursor: pointer;

    box-shadow:
        0 3px 10px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);

    backdrop-filter:
        blur(14px)
        saturate(1.25);

    -webkit-backdrop-filter:
        blur(14px)
        saturate(1.25);

    transition:
        border-color .25s ease,
        box-shadow .25s ease,
        background .25s ease;
}


.blog-sort-trigger:hover {

    border-color:
        rgba(255, 255, 255, 0.13);

    background:
        linear-gradient(
            180deg,
            rgba(48, 48, 48, 0.92),
            rgba(25, 25, 25, 0.95)
        );

    box-shadow:
        0 4px 14px rgba(0, 0, 0, 0.40),
        inset 0 1px 0 rgba(255, 255, 255, 0.07);
}


/* =========================================================
   CHEVRON
========================================================= */

.blog-sort-trigger i {

    font-size: 10px;

    color:
        rgba(255, 255, 255, 0.85);

    transition:
        transform .3s ease;
}

.blog-sort-trigger[aria-expanded="true"] i {
    transform: rotate(180deg);
}

/* OPEN CHEVRON */

.blog-sort.open
.blog-sort-trigger i {

    transform: rotate(180deg);
}


/* =========================================================
   SORT DROPDOWN
========================================================= */

.blog-sort-dropdown {

    position: absolute;

    top: calc(100% + 8px);
    right: 0;

    width: 190px;

    padding: 7px;

    border:
        1px solid
        rgba(255, 255, 255, 0.10);

    border-radius: 14px;

    background:
        linear-gradient(
            180deg,
            rgba(35, 35, 35, 0.96),
            rgba(12, 12, 12, 0.98)
        );

    box-shadow:

        0 15px 35px
        rgba(0, 0, 0, 0.62),

        0 0 15px
        rgba(255, 255, 255, 0.025),

        inset 0 1px 0
        rgba(255, 255, 255, 0.08);

    backdrop-filter:
        blur(20px)
        saturate(1.4);

    -webkit-backdrop-filter:
        blur(20px)
        saturate(1.4);

    opacity: 0;

    visibility: hidden;

    transform:
        translateY(-6px)
        scale(.97);

    transform-origin:
        top right;

    transition:
        opacity .22s ease,
        visibility .22s ease,
        transform .25s cubic-bezier(
            .22,
            .61,
            .36,
            1
        );
}


/* OPEN */

.blog-sort.open
.blog-sort-dropdown {

    opacity: 1;

    visibility: visible;

    transform:
        translateY(0)
        scale(1);
}
.blog-sort-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* =========================================================
   SORT OPTION
========================================================= */

.blog-sort-option {

    width: 100%;

    min-height: 36px;

    padding:
        0 11px;

    display: flex;
    align-items: center;

    border: 0;

    border-radius: 9px;

    background: transparent;

    color: rgba(255, 255, 255, 0.88);


    font-size: 12px;

    text-align: left;

    cursor: pointer;

    transition:
        background .22s ease,
        color .22s ease,
        padding-left .22s ease;
}


/* HOVER */

.blog-sort-option:hover {

    padding-left: 15px;

    background:
        rgba(173, 12, 43, 0.16);

    color: #ffffff;
}


/* ACTIVE */

.blog-sort-option.active {

    background:
        rgba(255, 255, 255, 0.07);

    color: #ffffff;

    box-shadow:
        inset 0 0 8px
        rgba(255, 255, 255, 0.025);
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 800px) {

    .blog-sort-row {

        padding:
            15px 40px
            12px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .blog-sort-row {

        padding:
            29px 25px
            12px;
    }

    .blog-sort-trigger {

        min-width: 165px;

        height: 30px;

        font-size: 14px;
    }

    .blog-sort-dropdown {

        width: 180px;
    }

}


/* =========================================================
   BLOG GRID
========================================================= */
.blog-date-read span:first-child {
    color: var(--red);
}

.blog-grid-section {
    width: 100%;

    padding:
        130px 27px
        50px;
}


.blog-grid {

    width: 100%;

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 27px 16px;
}


/* =========================================================
   BLOG CARD
========================================================= */

.blog-card {

    width: 100%;

    position: relative;

    min-width: 0;

    border-radius: 21px;

    isolation: isolate;

    opacity: 0;

    transform:
        translateY(35px)
        scale(.985);

    animation:
        blogCardReveal
        .8s cubic-bezier(
            .22,
            .61,
            .36,
            1
        )
        forwards;

    transition:
        transform .45s cubic-bezier(
            .22,
            .61,
            .36,
            1
        );
}


/* STAGGER */

.blog-card:nth-child(1) {
    animation-delay: .05s;
}

.blog-card:nth-child(2) {
    animation-delay: .12s;
}

.blog-card:nth-child(3) {
    animation-delay: .19s;
}

.blog-card:nth-child(4) {
    animation-delay: .26s;
}


@keyframes blogCardReveal {

    from {

        opacity: 0;

        transform:
            translateY(35px)
            scale(.985);

    }

    to {

        opacity: 1;

        transform:
            translateY(0)
            scale(1);

    }

}


/* =========================================================
   MEDIA
========================================================= */

.blog-card-media {

    width: 100%;

    aspect-ratio:
        1.58 / 1;

    position: relative;

    overflow: hidden;

    border-radius: 38px;

    background: #111;

    box-shadow:
        0 8px 28px rgba(0, 0, 0, .35);
}


/* =========================================================
   IMAGE
========================================================= */

.blog-card-image {

    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transform:
        scale(1.001);

    transition:
        transform
        1s cubic-bezier(
            .22,
            .61,
            .36,
            1
        );
}


/* =========================================================
   VIDEO
========================================================= */

.blog-card-video {

    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transform:
        scale(1.001);

    transition:
        transform
        1s cubic-bezier(
            .22,
            .61,
            .36,
            1
        );

    background: #111;
}


/* =========================================================
   MEDIA HOVER ZOOM
========================================================= */

.blog-card:hover
.blog-card-image,

.blog-card:hover
.blog-card-video {

    transform:
        scale(1.045);
}


/* =========================================================
   IMAGE / VIDEO GRADIENT
========================================================= */

.blog-media-gradient {

    position: absolute;

    inset: 0;

    z-index: 1;

    pointer-events: none;

    background:

        linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.04) 0%,
            rgba(0, 0, 0, 0.00) 35%,
            rgba(0, 0, 0, 0.12) 62%,
            rgba(0, 0, 0, 0.48) 100%
        );

    transition:
        opacity .45s ease;
}


.blog-card:hover
.blog-media-gradient {

    opacity: .78;
}


/* =========================================================
   GLASS ARTICLE PANEL
========================================================= */

.blog-card-glass {

    position: relative;

    z-index: 5;

    width:
        calc(100% - 38px);

    margin:
        -101px auto
        0;

    min-height: 198px;

    padding:
        13px 15px
        12px;

    display: flex;

    flex-direction: column;

    justify-content: space-between;

    border-radius: 19px;

    border:
        1px solid
        rgba(255, 255, 255, .30);

    /*
       Frosted glass
    */
    background:
        linear-gradient(162deg, rgb(255 255 255 / 76%), rgb(222 222 222 / 96%));

    backdrop-filter:
        blur(20px)
        saturate(1.25);

    -webkit-backdrop-filter:
        blur(20px)
        saturate(1.25);

    box-shadow:

        /* outside */
        0 12px 28px
        rgba(0, 0, 0, .30),

        /* subtle white edge */
        0 0 0 1px
        rgba(255, 255, 255, .04),

        /* inset top glass */
        inset 0 1px 0
        rgba(255, 255, 255, .62),

        /* inset bottom */
        inset 0 -15px 25px
        rgba(0, 0, 0, .08);

    color: #101010;

    transition:
        transform .5s cubic-bezier(
            .22,
            .61,
            .36,
            1
        ),
        box-shadow .5s ease,
        background .5s ease;
}


/* =========================================================
   GLASS HOVER
========================================================= */

.blog-card:hover
.blog-card-glass {

    transform:
        translateY(-7px);

    box-shadow:

        0 17px 38px
        rgba(0, 0, 0, .38),

        0 0 0 1px
        rgba(255, 255, 255, .06),

        inset 0 1px 0
        rgba(255, 255, 255, .75),

        inset 0 -17px 28px
        rgba(0, 0, 0, .09);
}


/* =========================================================
   TOP META
========================================================= */

.blog-card-top {

    width: 100%;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 12px;
}


/* =========================================================
   VIEW ARTICLE BUTTON
========================================================= */

.blog-view-btn {

    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding:
        7px 14px;

    border-radius: 20px;

    background: #ffffff;

    color: #111111;

    text-decoration: none;

    font-size: 16px;

    font-weight: 500;

    white-space: nowrap;

    box-shadow:
        0 2px 8px
        rgba(0, 0, 0, .15);

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        background .25s ease;
}
a.blog-view-btn span {
    padding-left: 5px;
}

.blog-view-btn:hover {

    transform:
        translateY(-2px);

    background:
        #ffffff;

    box-shadow:
        0 5px 13px
        rgba(0, 0, 0, .18);
}


/* =========================================================
   DATE / READ
========================================================= */

.blog-date-read {

    display: flex;

    align-items: center;

    gap: 6px;

    color:
        var(--black);

    font-size: 15px;

    white-space: nowrap;
}


.meta-dot {
    opacity: .55;
}


/* =========================================================
   CONTENT
========================================================= */

.blog-card-content {

    padding:
        9px 0
        8px;
}


/* =========================================================
   TITLE
========================================================= */

.blog-card-title {

    margin: 0;

    color: var(--black);

    font-size: 22px;

    font-weight: 700;

    line-height: 1.08;

    letter-spacing: -.45px;

    display: -webkit-box;

    -webkit-line-clamp: 3;

    -webkit-box-orient: vertical;

    overflow: hidden;
}


/* =========================================================
   EXCERPT
========================================================= */

.blog-card-excerpt {

    margin:
        9px 0 0;

    color:
        var(--black);

    font-size: 17px;

    font-weight: 400;

    line-height: 1.42;

    display: -webkit-box;

    -webkit-line-clamp: 3;

    -webkit-box-orient: vertical;

    overflow: hidden;
}


/* =========================================================
   STATS
========================================================= */

.blog-card-stats {

    width: 100%;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 12px;

    padding-top:
        6px;

    border-top:
        1px solid
        rgba(0, 0, 0, .10);
}


.blog-stat {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 5px;

    min-width: 25px;

    padding: 0;

    border: 0;

    background: transparent;

    color:
        var(--red);
		font-weight: 700;


    font-size: 14px;

    cursor: default;

    transition:
        color .25s ease,
        transform .25s ease;
}


.blog-stat i {
    font-size: 12px;
}


/* =========================================================
   LIKE
========================================================= */

.blog-like {

    cursor: pointer;
}


.blog-like:hover {

    transform:
        translateY(-2px);

    color:
        #ad0c2b;
}


.blog-like.liked {

    color:
        #ad0c2b;
}


/* =========================================================
   VIDEO CONTROLS
========================================================= */

.video-play-btn,
.video-sound-btn {

    position: absolute;

    z-index: 4;

    border: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    cursor: pointer;

    color: #111;

    background:
        rgba(255, 255, 255, .88);

    backdrop-filter:
        blur(10px);

    -webkit-backdrop-filter:
        blur(10px);

    box-shadow:
        0 5px 18px
        rgba(0, 0, 0, .28);

    transition:
        opacity .3s ease,
        visibility .3s ease,
        transform .3s ease;
}



/* =========================================================
   PLAY
========================================================= */

.video-play-btn {

    left: 50%;

    top: 50%;

    width: 42px;
    height: 42px;

    border-radius: 50%;

    transform:
        translate(-50%, -50%);
}
/* Hide play button while video is playing on hover */
.blog-card.playing .video-play-btn {
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -50%) scale(.7);
    pointer-events: none;
}


.video-play-btn i {

    margin-left: 3px;

    font-size: 18px;
}


.video-play-btn:hover {

    transform:
        translate(-50%, -50%)
        scale(1.08);

    background:
        #ffffff;
}


/* =========================================================
   SOUND
========================================================= */

.video-sound-btn {

    right: 14px;

    top: 14px;

    width: 35px;
    height: 35px;

    border-radius: 50%;

    font-size: 12px;
}


.video-sound-btn:hover {

    transform:
        scale(1.08);

    background:
        #ffffff;
}


/* =========================================================
   VIDEO PLAYING STATE
========================================================= */

.blog-video-card.playing
.video-play-btn {

    opacity: 0;

    pointer-events: none;
}


/* =========================================================
   VIDEO CARD HOVER
========================================================= */

.blog-video-card:hover
.video-play-btn {

    opacity: 1;
}

@media(max-width:1032px){
    .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {
    .blog-category-nav {
    position: static;
}
    .blog-grid {

    width: 100%;

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 27px 16px;
}

    .blog-grid-section {

        padding-left: 18px;
        padding-right: 18px;
    }


    .blog-card-title {

        font-size: 20px;
    }


    .blog-card-excerpt {

        font-size: 16px;
    }


    .blog-card-glass {

        width:
            calc(100% - 30px);

        margin-top:
            -88px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 650px) {

    .blog-grid-section {

        padding:
            160px 10px
            40px;
    }


    .blog-grid {

        grid-template-columns:
            1fr;

        gap: 24px;
    }


    .blog-card-media {

        aspect-ratio:
            1.25 / 1;

    }


    .blog-card-glass {

        width:
            calc(100% - 24px);

        margin-top:
            -75px;

        min-height:
            auto;

        padding:
            12px;

        border-radius:
            17px;
    }


    .blog-card-title {

        font-size:
            18px;

        line-height:
            1.10;
    }


    .blog-card-excerpt {

        font-size:
            15px;

        line-height:
            1.42;
    }


    .blog-date-read {

        font-size:
            14px;
    }


    .blog-view-btn {

        font-size:
            15px;

        min-height:
            28px;

        padding:
            0 11px;
    }


    .video-play-btn {

        width:
            52px;

        height:
            52px;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 400px) {

    .blog-card-glass {

        min-height:
            auto;

        margin-top:
            -65px;
    }


    .blog-card-top {

        gap:
            7px;
    }


    .blog-card-title {

        font-size:
            17px;
    }


    .blog-card-excerpt {

        font-size:
            14px;
    }


    .blog-card-stats {

        gap:
            5px;
    }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .blog-card,
    .blog-card-image,
    .blog-card-video,
    .blog-card-glass,
    .video-play-btn,
    .video-sound-btn {

        animation: none !important;

        transition: none !important;
    }

}


/* ============================================================
   BLOG SEARCH
============================================================ */

.blog-search {
    position: relative;
    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;

    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50px;

    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(12px);

    overflow: hidden;

    transition:
        width 0.4s ease,
        background 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

/* Search input */
.blog-search input {
    width: 0;
    height: 100%;

    border: none;
    outline: none;

    background: var(--red);
    color: var(--white);
    font-size: 15px;

    padding: 0;

    opacity: 0;

    transition:
        width 0.4s ease,
        opacity 0.25s ease,
        padding 0.4s ease;
}

/* Placeholder */
.blog-search input::placeholder {
    color: rgba(255, 255, 255, 0.821);
}

/* Search button */
.blog-search-btn {
    position: absolute;
    right: 0;
    top: 0;

    width: 48px;
    height: 48px;

    border: none;
    border-radius: 50%;

    background: var(--white);
    color: var(--black);

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;

    z-index: 2;

    transition:
        color 0.3s ease,
        background 0.3s ease,
        transform 0.3s ease;
}

/* ============================================================
   OPEN ON HOVER
============================================================ */

.blog-search:hover,
.blog-search:focus-within,
.blog-search.active {
    width: 260px;

    background: var(--red);

    border-color: rgba(255, 255, 255, 0.22);

    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.25),
        inset 0 0 20px rgba(255, 255, 255, 0.03);
}

.blog-search:hover input,
.blog-search:focus-within input,
.blog-search.active input {
    width: calc(100% - 48px);

    padding-left: 18px;
    padding-right: 8px;

    opacity: 1;
}

.blog-search:hover .blog-search-btn,
.blog-search:focus-within .blog-search-btn,
.blog-search.active .blog-search-btn {
    color: var(--red);
    background-color: var(--white);
}


/* ============================================================
   BUTTON HOVER
============================================================ */

.blog-search-btn:hover {
    color: var(--white);
    transform: scale(1.08);
}


/* ============================================================
   MOBILE
============================================================ */

@media (max-width: 600px) {

    .blog-search {
        width: 210px;
        height: 46px;
        background: var(--red);
        border-color: rgba(255, 255, 255, 0.22);
        box-shadow:
            0 8px 30px rgba(0, 0, 0, 0.25),
            inset 0 0 20px rgba(255, 255, 255, 0.03);
			border-radius:14px;
    }

    .blog-search-btn {
        width: 44px;
        height: 44px;
        right: 2px;
        color: var(--red);
        background: var(--white);
    }

    .blog-search input {
        width: calc(100% - 46px);
        height: 100%;

        padding-left: 18px;
        padding-right: 8px;

        opacity: 1;
    }
}
div#blogNoResults {
    text-align: center;
}
button#clearBlogSearch {
    padding: 5px 16px;
    border-radius: 30px;
    box-shadow: none;
    border: 0px;
    font-size: 15px;
    color: var(--white);
    background-color: var(--red);
}

/* =========================================================
   BLOG SHARE
========================================================= */

.blog-card-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.blog-share {
    position: relative;
}

.blog-share-btn {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 50%;

    background: var(--red);
    color: var(--white);

    cursor: pointer;

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    transition:
        transform .3s ease,
        background .3s ease,
        border-color .3s ease;
}

.blog-share-btn:hover {
    transform: translateY(-2px);
    background: var(--black);
    border-color: var(--white);
}


/* SHARE MENU */

.blog-share-menu {
    position: absolute;

    right: 0;
    bottom: calc(100% + 10px);

    display: flex;
    align-items: center;
    gap: 7px;

    padding: 7px;

    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 14px;

    background: rgba(15, 15, 17, .88);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    box-shadow:
        0 12px 35px rgba(0, 0, 0, .35),
        inset 0 0 15px rgba(255, 255, 255, .04);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform: translateY(8px) scale(.95);
    transform-origin: bottom right;

    transition:
        opacity .25s ease,
        visibility .25s ease,
        transform .25s ease;
}


/* OPEN */

.blog-share.open .blog-share-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    transform: translateY(0) scale(1);
}


/* SOCIAL BUTTONS */

.blog-share-menu a,
.blog-share-menu button {
    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 0;
    border-radius: 9px;

    background: rgba(255, 255, 255, .07);
    color: #fff;

    text-decoration: none;

    cursor: pointer;

    transition:
        transform .25s ease,
        background .25s ease;
}

.blog-share-menu a:hover,
.blog-share-menu button:hover {
    transform: translateY(-3px);
    background: #ad0c2b;
}


/* MOBILE */

@media (max-width: 600px) {

    .blog-card-actions {
        gap: 8px;
    }

    .blog-share-btn {
        width: 34px;
        height: 34px;
        font-size: 13px;
    }

    .blog-share-menu {
        right: 0;
        bottom: calc(100% + 8px);

        gap: 5px;
        padding: 6px;
    }

    .blog-share-menu a,
    .blog-share-menu button {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }

}







