﻿/* ===============================
   YouthX Lifestyle Page Styles
   =============================== */
.v-Lifestylepage {
    padding-left: 20px;
    padding-right: 20px;
}


.v-LifestyleMobilepage {
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 50px;
}

@media (max-width: 768px) {
    .mobile-banner-action {
        text-align: center;
        margin-bottom: 24px;
        margin-top: 32px;
        padding-left: 0;
        padding-right: 0;
    }

    .mobile-banner-btn {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        margin-left: 0;
        margin-right: 0;
    }

    .mobile-banner,
    .mobile-banner-info,
    .mobile-cards-section,
    .mobile-video-section,
    .mobile-cta-section {
        padding-left: 0;
        padding-right: 0;
    }
}

#Lifestyle-page {
    font-family: 'Libre Franklin', Sans-Serif !important;
    background: #fff;
}

    /* ===============================
   Video Section 
   =============================== */
    #Lifestyle-page .video-section {
        display: flex;
        align-items: flex-start;
        gap: 64px;
        margin: 32px auto 40px auto;
        max-width: 1000px;
        padding: 0 2rem;
        box-sizing: border-box;
    }

    #Lifestyle-page .video-left {
        flex: 2;
    }

    #Lifestyle-page .video-right {
        flex: 1;
    }

    #Lifestyle-page .video-left object {
        width: 100%;
        aspect-ratio: 16 / 9;
        height: auto;
        min-height: 360px;
        max-height: 500px;
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }

    #Lifestyle-page .video-right {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        text-align: left;
    }

    #Lifestyle-page .video-title {
        font-size: 1.5rem;
        font-weight: bold;
        margin-bottom: 16px;
        color: #222;
        width: 250px;
    }

    #Lifestyle-page .video-desc {
        font-size: 1rem;
        margin-bottom: 16px;
        color: #444;
    }

    #Lifestyle-page .video-link {
        font-size: 1rem;
        margin-bottom: 16px;
        color: #940EAF;
        font-weight: bold;
    }

    #Lifestyle-page .video-descSub {
        font-size: 0.6rem;
        margin-bottom: 24px;
        color: #444;
    }

    #Lifestyle-page .video-btn {
        display: block;
        margin: 0 auto;
        padding: 10px 24px;
        background: #00C26D;
        color: black;
        border-radius: 6px;
        font-weight: 600;
        font-size: 0.95rem;
        text-decoration: none;
        transition: background 0.2s;
        text-align: center;
    }

        #Lifestyle-page .video-btn:hover {
            /*background: #009e5c;*/
        }

    /* ===============================
   Banner Section
   =============================== */
    #Lifestyle-page .banner {
        position: relative;
        width: 100%;
        height: 400px;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        padding: 60px 2rem;
        box-sizing: border-box;
    }

        #Lifestyle-page .banner::after {
            content: "";
            position: absolute;
            inset: 0;
            background: rgba(0,0,0,0.3);
            z-index: 0;
        }

    #Lifestyle-page .banner-back {
        position: absolute;
        top: 16px;
        left: 16px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        z-index: 1;
    }

        #Lifestyle-page .banner-back svg {
            display: block;
        }

    /* Banner Content */
    #Lifestyle-page .banner-content {
        position: relative;
        z-index: 1;
        max-width: 600px;
        color: #fff;
    }

    #Lifestyle-page .banner-title {
        font-size: 2.5rem;
        font-weight: 700;
        margin-bottom: 16px;
    }

    #Lifestyle-page .banner-subtitle {
        font-size: 1.25rem;
        margin-bottom: 24px;
    }

    #Lifestyle-page .banner-btn {
        display: inline-block;
        background: #940EAF;
        color: #fff;
        padding: 12px 24px;
        border-radius: 8px;
        text-decoration: none;
    }

        #Lifestyle-page .banner-btn:hover {
            /* background: #6b0b80;*/
        }

    /* ===============================
   Lifestyle Section
   =============================== */
    #Lifestyle-page .Lifestyle {
        text-align: center;
        margin: 48px 0 32px 0;
    }

    #Lifestyle-page .Lifestyle-title {
        font-size: 2rem;
        font-weight: 700;
        margin-bottom: 12px;
    }

    #Lifestyle-page .Lifestyle-desc {
        color: #444;
        font-size: 1.1rem;
        max-width: 700px;
        margin: 0 auto;
    }

    /* ===============================
   Cards Section
   =============================== */
    #Lifestyle-page .cards {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 24px;
        max-width: 1000px;
        margin: 32px auto;
        padding: 0 2rem;
        box-sizing: border-box;
    }

    #Lifestyle-page .card {
        background: #fff;
        border: 1px solid #e0e0e0;
        border-radius: 0;
        width: 100%;
        max-width: 350px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.04);
        display: flex;
        flex-direction: column;
        transition: box-shadow 0.2s;
        margin: 0 auto;
    }

        #Lifestyle-page .card:hover {
            box-shadow: 0 4px 16px rgba(160,32,240,0.10);
            border-color: #a020f0;
        }

        #Lifestyle-page .card img {
            width: 100%;
            height: 160px;
            object-fit: cover;
            border-radius: 0;
        }

    #Lifestyle-page .card-content {
        padding: 20px;
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    #Lifestyle-page .card-title {
        font-size: 1.2rem;
        font-weight: 600;
        margin-bottom: 3px;
    }

    #Lifestyle-page .card-Subtitle {
        color: #000;
        font-size: 0.8rem;
        margin-bottom: 10px;
    }

        #Lifestyle-page .card-Subtitle a {
            text-decoration: none;
            color: #000;
            cursor: default;
        }

    #Lifestyle-page .card-desc {
        color: #333;
        font-size: 1rem;
        margin-bottom: 16px;
    }

    #Lifestyle-page .card-link {
        position: absolute;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        cursor: pointer;
        color: #940EAF;
        font-weight: 600;
        text-decoration: none;
        bottom: 0;
        padding-bottom: 10px;
    }

        #Lifestyle-page .card-link:hover {
            color: #7c1bb3;
        }

        #Lifestyle-page .card-link svg {
            margin-left: 6px;
        }

        /* Tooltip inside card link */
        #Lifestyle-page .card-link .tooltip {
            position: absolute;
            left: 0;
            top: 120%;
            min-width: 220px;
            background: #444;
            color: #fff;
            font-size: 0.95rem;
            padding: 10px 16px;
            border-radius: 6px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.15);
            white-space: normal;
            opacity: 0;
            visibility: hidden;
            transform: translateY(5px);
            transition: all 0.2s ease;
            z-index: 10;
        }

        #Lifestyle-page .card-link:hover .tooltip {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        #Lifestyle-page .card-link .tooltip .tooltip-url {
            color: #00CDFD;
            text-decoration: underline;
            word-break: break-all;
        }

    /* ===============================
   Back Link
   =============================== */
    /* Wrapper = same width, padding and margins you had before */
    #Lifestyle-page .back-link-wrapper {
        max-width: 1000px; /* same as before */
        padding: 0 2rem; /* same side padding */
        margin: 32px auto 48px auto; /* same spacing & centering */
        box-sizing: border-box;
        text-align: left; /* left align inside wrapper */
    }

    /* Anchor itself shrinks to content so only icon+text clickable */
    #Lifestyle-page .back-link {
        display: inline-flex; /* width = content only */
        align-items: center;
        gap: 8px; /* space between icon & text */
        color: #940EAF;
        text-decoration: none;
        font-weight: 600;
        transition: color 0.2s;
    }

        /* Hover state for link + icon stroke */
        #Lifestyle-page .back-link:hover {
            color: #7c1bb3;
        }

        /* Optional: subtle arrow slide animation on hover */
        #Lifestyle-page .back-link svg {
            transition: transform 0.2s;
        }

        #Lifestyle-page .back-link:hover svg {
            transform: translateX(-4px);
        }

/* ===============================
   BlogPost Section
   =============================== */
.BlogPost-Content {
    margin-top: 72px;
    margin-bottom: 3rem;
    background: #FAFAFA;
    border-radius: 16px;
    padding: 0;
    padding-bottom: 5px;
}


.BlogPost-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    max-width: 1747px;
    padding: 0 16px;
    margin-left: auto;
    margin-right: auto;
}

.BlogPost-title {
    font-size: 2rem;
    font-weight: 700;
    color: #222;
    line-height: 1.4;
    margin: 30px 0 0 0;
    padding-left: 0;
}

.BlogPost-all {
    font-size: 1rem;
    color: #a020f0;
    font-weight: 600;
    text-decoration: none;
    margin-top: 30px;
}

    .BlogPost-all:hover {
        text-decoration: underline;
    }


.BlogPost-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    max-width: 1743px;
    margin: 0 auto 32px auto;
    padding: 0 2rem;
}

.BlogPost-card {
    background: #fff;
    border-radius: 0px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 536px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding-bottom: 10px;
}

.BlogPost-card-img {
    width: 100%;
    height: 390px; /* desktop height */
    object-fit: cover;
    display: block;
    aspect-ratio: 16 / 9;
}

.BlogPost-card-content {
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.BlogPost-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #222;
}

.BlogPost-card-link {
    font-size: 0.95rem;
    font-weight: 600;
    color: #000;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

    .BlogPost-card-link:hover {
        color: #333;
    }

/* ===============================
   Pagination Styles
   =============================== */
.BlogPost-pagination {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 24px auto 64px auto;
    font-size: 1.1rem;
    justify-content: flex-end;
    max-width: 1733px;
    padding: 0 2rem;
    margin-top: 24px;
}

.BlogPost-page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: transparent;
    color: #222;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    border: none;
    outline: none;
}

    .BlogPost-page.active {
        background: #a020f0;
        color: #fff;
        font-weight: 700;
    }

    .BlogPost-page:hover:not(.active) {
        background: #f3e6fb;
        color: #a020f0;
    }

.BlogPost-next {
    background: transparent;
    color: #222;
    font-weight: 500;
    padding: 0 6px;
    border-radius: 8px;
    text-decoration: none;
    transition: color 0.2s, background 0.2s;
}

    .BlogPost-next:hover {
        background: #f3e6fb;
        color: #a020f0;
    }

/* ===============================
   Responsive Styles
   =============================== */
@media (max-width: 1100px) {
    #Lifestyle-page .cards {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 900px) {
    .BlogPost-cards {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
        align-items: flex-start;
    }


    #Lifestyle-page .video-section {
        flex-direction: column;
        gap: 24px;
        padding: 0 1.25rem;
    }

    #Lifestyle-page .video-right {
        text-align: center;
        align-items: center;
    }

    #Lifestyle-page .video-btn {
        margin-top: 8px;
    }
}

@media (max-width: 700px) {
    #Lifestyle-page .banner-content {
        padding: 24px 12px;
    }

    #Lifestyle-page .Lifestyle {
        margin: 32px 0 24px 0;
    }

    /*.BlogPost-header {
        flex-direction: column;
        align-items: flex-start;
    }
*/
    .BlogPost-all {
        margin-top: 10px;
    }

    .BlogPost-pagination {
        justify-content: center;
    }
}

/* ===============================
         Mobile Layout Styles (d-mobile)
         =============================== */
@media (max-width: 768px) {
    .d-mobile {
        display: block;
        padding: 0;
        background: #fff;
        font-family: 'Libre Franklin', Sans-Serif;
    }

    .mobile-banner {
        text-align: center;
    }

    .mobile-banner-title {
        font-size: 1.5rem;
        font-weight: bold;
        margin-bottom: 8px;
        color: #222;
    }

    .mobile-banner-subtitle {
        font-size: 1rem;
        color: #555;
        margin-bottom: 16px;
    }

    .mobile-banner-action {
        text-align: center;
        margin-bottom: 24px;
    }

    .mobile-banner-btn {
        background: #a020f0;
        color: #fff;
        border: none;
        border-radius: 8px;
        padding: 12px 32px;
        font-size: 1rem;
        font-weight: 600;
        text-decoration: none;
        display: inline-block;
        margin-bottom: 16px;
    }

    .mobile-banner-info {
        text-align: left;
        padding: 0 16px;
        margin-bottom: 24px;
    }

    .mobile-info-title {
        font-size: 1.6rem;
        font-weight: bold;
        margin-bottom: 8px;
        color: #222;
        text-align: center;
    }

    .mobile-info-desc {
        font-size: 1rem;
        color: #555;
    }

    .mobile-cards-section {
        margin-bottom: 24px;
    }

    .mobile-card {
        background: #fff;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.07);
        margin-bottom: 50px;
        text-align: left;
        transition: box-shadow 0.2s;
        padding-bottom: 30px;
    }

    .mobile-card-img {
        width: calc(100%);
        height: 180px;
        object-fit: cover;
        border-radius: 8px;
        margin-bottom: 12px;
    }

    .mobile-card-title {
        font-size: 1.4rem;
        font-weight: bold;
        margin-bottom: 10px;
        color: #222;
        margin-left: 20px;
    }

    .mobile-card-subtitle {
        display: block; /* or inline-block */
        font-size: 0.95rem;
        margin-bottom: 20px;
        margin-left: 20px;
        color: #000;
        text-decoration: none;
    }

    .mobile-card-desc {
        font-size: 0.95rem;
        color: #555;
        margin-bottom: 40px;
        margin-left: 20px;
        width: 60%
    }

    .mobile-card-link {
        color: #a020f0;
        font-weight: 600;
        text-decoration: none;
        font-size: 1rem;
        margin-left: 20px;
        padding-bottom: 50px;
    }

    .mobile-pagination {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 4px;
        margin-top: 16px;
        font-size: 0.95rem;
    }

        /* Common button style */
        .mobile-pagination a,
        .mobile-pagination .mobile-page {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 32px;
            height: 32px;
            border-radius: 6px;
            background: transparent;
            color: #222;
            font-weight: 500;
            cursor: pointer;
            transition: background 0.2s, color 0.2s;
            text-decoration: none;
            padding: 0;
        }

            /* Active page */
            .mobile-pagination .mobile-page.active {
                background: #a020f0;
                color: #fff;
                font-weight: 700;
                box-shadow: 0 2px 5px rgba(160, 32, 240, 0.35);
            }

            /* Hover effect */
            .mobile-pagination a:hover,
            .mobile-pagination .mobile-page:hover:not(.active) {
                background: #f3e6fb;
                color: #a020f0;
            }


    .mobile-prev {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 28px;
        height: 28px;
        border-radius: 8px;
        background: transparent;
        color: #222;
        font-weight: 500;
        cursor: pointer;
        transition: background 0.2s, color 0.2s;
        border: none;
        outline: none;
        margin-right: 10px !important
    }

    .mobile-next {
        background: transparent;
        color: #222;
        font-weight: 500;
        padding: 0 6px;
        border-radius: 8px;
        text-decoration: none;
        transition: color 0.2s, background 0.2s;
    }




    .mobile-video-section {
        margin-bottom: 24px;
        padding-top: 30px;
    }

    .mobile-video-wrapper {
        width: 100%;
        aspect-ratio: 16/9;
        margin-bottom: 12px;
        overflow: hidden;
        background: #000;
    }

    .mobile-video {
        width: 100%;
        height: 100%;
        border: none;
        border-radius: 12px;
        display: block;
    }

    .mobile-video-title {
        font-size: 1.4rem;
        font-weight: bold;
        margin-bottom: 8px;
        color: #222;
        padding-top: 20px;
    }

    .mobile-video-desc {
        font-size: 1.2rem;
        color: #555;
        margin-bottom: 8px;
        padding-top: 10px;
    }

    .mobile-video-link {
        display: block;
        text-align: center;
        font-size: 1rem;
        color: #940EAF;
        font-weight: bold;
        margin: 8px auto;
        padding-top: 10px;
    }

    .mobile-video-disclaimer {
        font-size: 0.85rem;
        color: #888;
        padding-top: 10px;
        padding-bottom: 20px;
    }

    .mobile-cta-section {
        text-align: center;
        padding: 0 16px 24px 16px;
    }

    .mobile-cta-btn {
        background: #19c37d;
        color: #fff;
        border: none;
        border-radius: 8px;
        padding: 12px 32px;
        font-size: 1rem;
        font-weight: 600;
        text-decoration: none;
        display: inline-block;
        margin-bottom: 16px;
        width: 100%;
    }

    .mobile-back-link {
        display: block;
        color: #940EAF;
        font-size: 1rem;
        text-decoration: none;
        margin-top: 8px;
        text-align: center;
        font-weight: bold;
    }
}

/* ===============================
     Mobile Banner Overlay Styles
     =============================== */
@media (max-width: 768px) {
    .mobile-banner-img-wrapper {
        position: relative;
        width: 100%;
        aspect-ratio: 630 / 221;
        overflow: hidden;
        border-radius: 0;
    }

    .mobile-banner-img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: 26% 0%;
        display: block;
    }

    .mobile-banner-text {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 24px;
        padding: 0 16px;
        color: #006341;
        text-align: left;
        z-index: 2;
    }

    .mobile-banner-title {
        font-size: 1.5rem;
        font-weight: bold;
        margin-bottom: 8px;
        color: #006341;
    }

    .mobile-banner-subtitle {
        font-size: 1rem;
        color: #006341;
        margin-bottom: 0;
    }

    .Mob-banner-back {
        position: absolute;
        top: 12px;
        left: 12px;
        padding: 6px;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 2;
    }
}


.MobCardHidden {
    visibility: hidden; /* or display:none */
}

.MobCardVisibale {
    visibility: visible; /* or display:inline-block */
}




.has-tooltip {
    position: relative;
    display: inline-flex;
    align-items: center;
    /* don't change cursor for internal links since class is only added when external */
}

    .has-tooltip .tooltip {
        position: absolute;
        left: 50%;
        top: 120%;
        transform: translateX(-50%) translateY(5px);
        min-width: 220px;
        max-width: 320px;
        background: #444;
        color: #fff;
        font-size: 0.95rem;
        text-decoration: none;
        transition: background 0.2s;
        text-align: center;
        margin-left: 0px;
    }

#Lifestyle-page .card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 3px;
    width: 100%;
    max-width: 350px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s;
    margin: 0 auto;
}

    #Lifestyle-page .card img {
        width: 100%;
        height: 160px;
        object-fit: cover;
        border-radius: 3px;
    }

#Lifestyle-page .cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 1000px;
    margin: 32px auto;
    padding: 0 2rem;
    box-sizing: border-box;
    margin-bottom: 60px;
}

#Lifestyle-page .video-left object {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    min-height: 360px;
    max-height: 400px;
    border-radius: 0px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#Lifestyle-page .video-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: left;
    margin-top: -8px;
    height: 400px;
    padding-bottom: 70px;
}

#Lifestyle-page .video-btn {
    display: block;
    margin: 0 auto;
    padding: 10px 24px;
    background: #00C26D;
    color: black;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: background 0.2s;
    text-align: center;
    margin-left: 0px;
    width: 210px;
}


@media (min-width: 1400px) {

    #Lifestyle-page .banner {
        height: 525px; /* adjust as needed */
    }

    #Lifestyle-page .back-link-wrapper {
        padding: 0 2rem;
        margin: 32px auto 48px auto;
        box-sizing: border-box;
        text-align: left;
        margin-left: 45px;
    }

    #Lifestyle-page .video-left {
        flex: 2;
        /*   margin-left: 50px;*/
    }

    #Lifestyle-page .video-btn {
        display: block;
        margin: 0 auto;
        padding: 10px 24px;
        background: #00C26D;
        color: black;
        border-radius: 6px;
        font-weight: 600;
        font-size: 0.95rem;
        text-decoration: none;
        transition: background 0.2s;
        text-align: center;
        margin-right: 495px;
        width: 210px;
        margin-bottom: 50px !important;
    }

    #Lifestyle-page .video-descSub {
        font-size: 0.6rem;
        margin-bottom: 24px;
        color: #444;
        width: 220px;
    }

    #Lifestyle-page .video-desc {
        font-size: 1rem;
        margin-bottom: 16px;
        color: #444;
        width: 250px;
    }


    #Lifestyle-page .video-right {
        flex: 1;
        flex-direction: column;
        justify-content: space-between;
        text-align: left;
        /*margin-right: 60px;*/
        margin-top: -10px;
        height: 400px;
        padding-bottom: 70px;
    }

    #Lifestyle-page .video-left {
        flex: 2;
        /*margin-left: 50px;*/
    }

    #Lifestyle-page .video-section {
        display: flex;
        align-items: flex-start;
        gap: 64px;
        margin: 32px auto 40px auto;
        max-width: 1757px;
        padding: 0 2rem;
        box-sizing: border-box;
    }

    #Lifestyle-page .card img {
        width: 100%;
        height: 224px;
        object-fit: cover;
        border-radius: 3px;
    }

    #Lifestyle-page .card {
        background: #fff;
        border: 1px solid #e0e0e0;
        border-radius: 3px;
        width: 100%;
        max-width: 550px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
        display: flex;
        flex-direction: column;
        transition: box-shadow 0.2s;
        margin: 0 auto;
        height: 550px;
    }

    #Lifestyle-page .cards {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 24px;
        max-width: 1760px;
        margin: 32px auto;
        padding: 0 2rem;
        box-sizing: border-box;
        margin-bottom: 100px;
    }

    #Lifestyle-page .Lifestyle-desc {
        color: #444;
        font-size: 1.1rem;
        max-width: 1056px;
        margin: 0 auto;
    }

    #Lifestyle-page .video-title {
        font-size: 1.5rem;
        font-weight: bold;
        margin-bottom: 16px;
        color: #222;
        width: 250px
    }

    #Lifestyle-page .video-desc {
        font-size: 1rem;
        margin-bottom: 16px;
        color: #444;
        width: 613px;
    }
}


.has-tooltip {
    position: relative;
    display: inline-flex;
    align-items: center;
    /* don't change cursor for internal links since class is only added when external */
}

    .has-tooltip .tooltip {
        position: absolute;
        left: 85%;
        top: 120%;
        transform: translateX(-50%) translateY(5px);
        min-width: 220px;
        max-width: 320px;
        background: #444;
        color: #fff;
        font-size: 0.95rem;
        padding: 10px 16px;
        border-radius: 6px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
        white-space: normal;
        line-height: 1.3;
        opacity: 0;
        visibility: hidden;
        transition: all 0.18s ease;
        z-index: 9999;
        pointer-events: none; /* avoid tooltip blocking hover */
    }

    .has-tooltip:hover .tooltip,
    .has-tooltip:focus-within .tooltip {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
        pointer-events: auto;
    }

.tooltip .tooltip-url {
    color: #00CDFD;
    text-decoration: underline;
    word-break: break-all;
}




#authModal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

    #authModal.show {
        display: flex;
    }

#authModalContent {
    background: #ffffff;
    width: 90%;
    max-width: 420px;
    border-radius: 8px;
    padding: 30px 25px;
    text-align: center;
    position: relative;
}

#authModalClose {
    position: absolute;
    top: 12px;
    right: 12px;
    border: none;
    background: none;
    font-size: 22px;
    cursor: pointer;
}

#authModalTitle {
    font-size: 22px;
    margin-bottom: 10px;
}

#authModalText {
    font-size: 14px;
    color: #555;
}

#authModalActions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

#authLoginBtn,
#authRegisterBtn {
    flex: 1;
    padding: 12px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    text-align: center;
}

#authLoginBtn {
    border: 2px solid #9c27b0;
    color: #9c27b0;
}

#authRegisterBtn {
    background: #9c27b0;
    color: #ffffff;
}

body.auth-modal-open {
    overflow: hidden;
}


#LifestyleAVoPopupSucess {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

    #LifestyleAVoPopupSucess.show {
        display: flex;
    }

#LifestyleAVoPopupSucessContent {
    background: #ffffff;
    width: 90%;
    max-width: 420px;
    padding: 30px 25px;
    border-radius: 8px;
    text-align: center;
    position: relative;
}

#LifestyleAVoPopupSucessClose {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
}

#LifestyleAVoPopupSucessTitle {
    font-size: 22px;
    margin-bottom: 10px;
}

#LifestyleAVoPopupSucessText {
    font-size: 14px;
    color: #555;
}

#LifestyleAVoPopupSucessContinue {
    margin-top: 25px;
    padding: 12px 26px;
    background: #9c27b0;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
}


@media (max-width: 768px) {

    .mobile-banner {
        position: relative;
        margin-left: -20px;
        margin-right: -20px;
    }

    .mobile-banner-img-wrapper {
        position: relative;
        width: 100%;
        height: 260px;
        overflow: hidden;
        border-radius: 0;
    }

    .mobile-banner-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center top;
        display: block;
    }
}

@media (max-width: 768px) {
    .BlogPost-section-Mobile {
        background: #fff;
        border-radius: 20px;
        padding: 16px;
        max-width: 1200px;
        margin: 0 auto;
    }

    .BlogPost-header {
        align-items: flex-start;
        padding-top: 30px;
    }


    .BlogPost-title {
        font-size: 1.35rem;
        line-height: 1.3;
        margin: 0;
        max-width: 70%;
    }


    .BlogPost-all {
        font-size: 1rem;
        font-weight: 600;
        color: #940EAF;
        white-space: nowrap;
        margin: 0;
        align-self: flex-start;
    }

    #Lifestyle-blog-page .BlogPost-cards {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .BlogPost-card {
        height: auto !important;
        min-height: unset !important;
        align-self: flex-start;
    }

    .BlogPost-card-img {
        height: 120px;
    }

    .BlogPost-card-content {
        padding: 10px 12px;
    }

    .BlogPost-card-title {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        min-height: 2.6em;
    }

    .BlogPost-card-link {
        margin-top: 4px;
        font-size: 0.85rem;
    }

    .BlogPost-pagination {
        justify-content: center;
        margin-top: 32px;
    }
}


/* Popup hidden by default */
#ExternalPopup {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    align-items: center; /* flex props are OK */
    justify-content: center;
    z-index: 9999;
}

    /* Modal box */
    #ExternalPopup .redirect-modal {
        background: #ffffff;
        width: 420px;
        max-width: 90%;
        border-radius: 12px;
        padding: 28px 24px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
        text-align: center;
        position: relative;
        font-family: "Segoe UI", Arial, sans-serif;
    }

        /* Title */
        #ExternalPopup .redirect-modal h2 {
            margin: 0 0 14px;
            font-size: 22px;
            font-weight: 600;
            color: #111;
        }

        /* Text */
        #ExternalPopup .redirect-modal p {
            font-size: 14px;
            color: #444;
            line-height: 1.6;
            margin-bottom: 24px;
        }

    /* Green URL */
    #ExternalPopup .external-link {
        color: #28a745;
        font-weight: 600;
        word-break: break-all;
    }

    /* Buttons */
    #ExternalPopup .modal-actions {
        display: flex;
        gap: 12px;
        justify-content: center;
    }

    #ExternalPopup .btn-cancel {
        background: #ffffff;
        color: #7a1fa2;
        border: 2px solid #7a1fa2;
        padding: 10px 22px;
        border-radius: 8px;
        cursor: pointer;
        font-weight: 600;
    }

    #ExternalPopup .btn-continue {
        background: #7a1fa2;
        color: #ffffff;
        border: none;
        padding: 10px 22px;
        border-radius: 8px;
        cursor: pointer;
        font-weight: 600;
    }

    #ExternalPopup .btn-cancel:hover {
        background: #f7e9fb;
    }

    #ExternalPopup .btn-continue:hover {
        background: #651a88;
    }

    /* Close button */
    #ExternalPopup .close-btn {
        position: absolute;
        top: 12px;
        right: 14px;
        font-size: 20px;
        cursor: pointer;
        color: #999;
    }

        #ExternalPopup .close-btn:hover {
            color: #333;
        }


#blog-article .image-underlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 0; /* keep it at the very bottom */
}

#blog-article .banner-back {
    position: absolute; /* sit on top of the banner */
    top: 20px;
    left: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px; /* give it a hit area */
    height: 44px;
    border-radius: 50%; /* optional */
    color: white;
    text-decoration: none;
    cursor: pointer; /* show hand cursor */
    z-index: 10;
}

@media (min-width:320px) and (max-width:640px) {
    #blog-article .banner-back {
        position: absolute;
        top: 45px;
        left: 12px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        border-radius: 50%;
        color: white;
        text-decoration: none;
        cursor: pointer;
        z-index: 10;
    }
}

#blog-article .banner-back svg {
    pointer-events: none; /* so clicks go to <a> not the SVG path */
}



/* Wrapper = same width, padding and margins you had before */
#blog-article .back-link-wrapper {
    max-width: 1000px; /* same as before */
    padding: 0 14rem; /* same side padding */
    margin: 32px auto 48px auto; /* same spacing & centering */
    box-sizing: border-box;
    text-align: left; /* left align inside wrapper */
}

/* Anchor itself shrinks to content so only icon+text clickable */
#blog-article .back-link {
    display: inline-flex; /* width = content only */
    align-items: center;
    gap: 8px; /* space between icon & text */
    color: #940EAF;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

    /* Hover state for link + icon stroke */
    #blog-article .back-link:hover {
        color: #7c1bb3;
    }

    /* Optional: subtle arrow slide animation on hover */
    #blog-article .back-link svg {
        transition: transform 0.2s;
    }

    #blog-article .back-link:hover svg {
        transform: translateX(-4px);
    }

@media (max-width: 700px) {
    #blog-article .back-link {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        color: #940EAF;
        text-decoration: none;
        font-weight: 600;
        transition: color 0.2s;
        width: 256px;
        margin-left: -220px;
    }

    #blog-article {
        margin-top: 0px !important;
    }
}



@media (max-width: 1024px) {
    #blog-article .title {
        display: table;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: auto;
        max-width: initial;
        margin: initial;
        position: relative;
        z-index: 2;
    }

        #blog-article .title .category-block span {
            padding: 7px 10px;
            display: inline-block;
            color: #FFF;
            font-size: .8em;
            text-transform: uppercase;
            font-weight: 500;
        }

        #blog-article .title h1 {
            vertical-align: bottom;
            text-align: left;
            color: #000;
            font-size: 1.2em;
            font-weight: 600;
            padding: 0 0 20px 0;
            margin: 20px 20px 0 20px;
            display: block;
            border-bottom: 1px solid rgba(0, 0, 0, .25);
            line-height: 1.4em;
            text-shadow: none;
        }

        #blog-article .title .category-block span {
            padding: 7px 10px;
            display: inline-block;
            color: #FFF;
            font-size: .8em;
            text-transform: uppercase;
            font-weight: 500;
        }

    #blog-article #article-content {
        width: calc(100% - 40px);
        max-width: initial;
        position: relative;
        margin: 0;
        padding: 0 20px;
        line-height: 1.6em;
        font-size: 1em;
    }
}

@media (min-width: 1400px) {
    #blog-article #article-content a {
        text-decoration: underline !important;
        color: blue !important;
    }
}
