﻿/* ===============================
   YouthX Potential Page Styles
   =============================== */
.v-Potentialpage {
    padding-left: 20px;
    padding-right: 20px;
}

@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;
    }
}

#Potential-page {
    font-family: 'Libre Franklin', Sans-Serif !important;
    background: #fff;
}

    /* ===============================
   Video Section 
   =============================== */
    #Potential-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;
    }

    #Potential-page .video-left {
        flex: 2;
    }

    #Potential-page .video-right {
        flex: 1;
    }

    #Potential-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);
    }

    #Potential-page .video-right {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        text-align: left;
    }

    #Potential-page .video-title {
        font-size: 1.5rem;
        font-weight: bold;
        margin-bottom: 16px;
        color: #222;
    }

    #Potential-page .video-desc {
        font-size: 1rem;
        margin-bottom: 16px;
        color: #444;
    }

    #Potential-page .video-descSub {
        font-size: 0.6rem;
        margin-bottom: 24px;
        color: #444;
    }

    #Potential-page .video-btn {
        display: block;
        margin: 0 auto;
        padding: 10px 24px;
        background: #00C26D;
        color: #fff;
        border-radius: 6px;
        font-weight: 600;
        font-size: 0.95rem;
        text-decoration: none;
        transition: background 0.2s;
        text-align: center;
    }

        #Potential-page .video-btn:hover {
            background: #009e5c;
        }

    /* ===============================
   Banner Section
   =============================== */
    #Potential-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;
        overflow: hidden;
    }

        #Potential-page .banner::after {
            content: "";
            position: absolute;
            inset: 0;
            background: rgba(0,0,0,0.3);
            z-index: 0;
        }

    #Potential-page .banner-back {
        position: absolute;
        top: 16px;
        left: 16px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        z-index: 1;
    }

        #Potential-page .banner-back svg {
            display: block;
        }

    /* Banner Content */
    #Potential-page .banner-content {
        position: relative;
        z-index: 1;
        max-width: 600px;
        color: #fff;
    }

    #Potential-page .banner-title {
        font-size: 2.5rem;
        font-weight: 700;
        margin-bottom: 16px;
    }

    #Potential-page .banner-subtitle {
        font-size: 1.25rem;
        margin-bottom: 24px;
    }

    #Potential-page .banner-btn {
        display: inline-block;
        background: #940EAF;
        color: #fff;
        padding: 12px 24px;
        border-radius: 8px;
        text-decoration: none;
    }

        #Potential-page .banner-btn:hover {
            background: #6b0b80;
        }

    /* ===============================
   Potential Section
   =============================== */
    #Potential-page .Potential {
        text-align: center;
        margin: 48px 0 32px 0;
    }

    #Potential-page .Potential-title {
        font-size: 2rem;
        font-weight: 700;
        margin-bottom: 12px;
    }

    #Potential-page .Potential-desc {
        color: #444;
        font-size: 1.1rem;
        max-width: 700px;
        margin: 0 auto;
    }

    /* ===============================
   Cards Section
   =============================== */
    #Potential-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;
    }

    #Potential-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;
    }

        #Potential-page .card:hover {
            box-shadow: 0 4px 16px rgba(160,32,240,0.10);
            border-color: #a020f0;
        }

        #Potential-page .card img {
            width: 100%;
            height: 160px;
            object-fit: cover;
            border-radius: 0;
        }

    #Potential-page .card-content {
        padding: 20px;
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    #Potential-page .card-title {
        font-size: 1.2rem;
        font-weight: 600;
        margin-bottom: 3px;
    }

    #Potential-page .card-Subtitle {
        color: #10A867;
        font-size: 0.8rem;
        margin-bottom: 10px;
    }

        #Potential-page .card-Subtitle a {
            text-decoration: none;
            color: #10A867;
        }

    #Potential-page .card-desc {
        color: #333;
        font-size: 1rem;
        margin-bottom: 16px;
    }

    #Potential-page .card-link {
        position: relative;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        cursor: pointer;
        color: #940EAF;
        font-weight: 600;
        text-decoration: none;
    }

        #Potential-page .card-link:hover {
            color: #7c1bb3;
        }

        #Potential-page .card-link svg {
            margin-left: 6px;
        }

        /* Tooltip inside card link */
        #Potential-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;
        }

        #Potential-page .card-link:hover .tooltip {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        #Potential-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 */
    #Potential-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 */
    #Potential-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 */
        #Potential-page .back-link:hover {
            color: #7c1bb3;
        }

        /* Optional: subtle arrow slide animation on hover */
        #Potential-page .back-link svg {
            transition: transform 0.2s;
        }

        #Potential-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: center;
    margin-bottom: 2rem;
    margin-top: 10px;
    max-width: 1000px;
    padding: 0 2rem;
    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: 1000px;
    margin: 0 auto 32px auto;
    padding: 0 2rem;
    box-sizing: border-box;
}

.BlogPost-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 320px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding-bottom: 10px;
}

.BlogPost-card-img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
    aspect-ratio: 16 / 9;
}

.BlogPost-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
    max-height: 70px;
}

.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: 1000px;
    padding: 0 2rem;
    margin-top: 24px;
    box-sizing: border-box;
}

.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) {
    #Potential-page .cards {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 900px) {
    .BlogPost-cards {
        grid-template-columns: 1fr;
        gap: 24px;
    }


    #Potential-page .video-section {
        flex-direction: column;
        gap: 24px;
        padding: 0 1.25rem;
    }

    #Potential-page .video-right {
        text-align: center;
        align-items: center;
    }

    #Potential-page .video-btn {
        margin-top: 8px;
    }
}

@media (max-width: 700px) {
    #Potential-page .banner-content {
        padding: 24px 12px;
    }

    #Potential-page .Potential {
        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-img {
        width: 100%;
        max-height: 180px;
        object-fit: cover;
        border-radius: 12px;
        margin-bottom: 16px;
    }

    .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: #10A867;
        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-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: #a020f0;
        font-size: 1rem;
        text-decoration: none;
        margin-top: 8px;
        text-align: center;
    }
}

/* ===============================
     Mobile Banner Overlay Styles
     =============================== */
@media (max-width: 768px) {
    .mobile-banner-img-wrapper {
        position: relative;
        width: 100vw;
        height: 180px;
        left: 50%;
        right: 50%;
        margin-left: -50vw;
        margin-right: -50vw;
        border-radius: 0;
        overflow: hidden;
        padding: 0;
    }

    .mobile-banner-img {
        width: 100vw;
        height: 180px;
        object-fit: cover;
        border-radius: 0;
        display: block;
        margin: 0;
        padding: 0;
    }

    .mobile-banner-text {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 24px;
        padding: 0 16px;
        color: #fff;
        text-align: left;
        z-index: 2;
    }

    .mobile-banner-title {
        font-size: 1.5rem;
        font-weight: bold;
        margin-bottom: 8px;
        color: #fff;
        text-shadow: 0 2px 8px rgba(0,0,0,0.4);
    }

    .mobile-banner-subtitle {
        font-size: 1rem;
        color: #fff;
        text-shadow: 0 2px 8px rgba(0,0,0,0.4);
        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 */
}
