:root {
    --fb-bg: #f8f6f0;
    --fb-surface: #fffdf8;
    --fb-white: #ffffff;
    --fb-muted: #68736e;
    --fb-text: #25352f;

    --fb-purple: #7566d9;
    --fb-purple-dark: #6254c4;
    --fb-purple-soft: #efedff;

    --fb-sidebar-surface:#F0EEE7;
    --fb-sidebar-inner-surface:#FAF9F5;

    --fb-border: rgba(37, 53, 47, .10);

    --fb-radius: 18px;
    --fb-shadow: 0 10px 35px rgba(30, 50, 42, .07);

    --primary-color: #525888;
    --secondary-color: #86B049;

    --light-color: #DEE2FC;
    --grey-color: #474747;
    --dark-color: #212529;

    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;

    --white-background-color: #ffffff;
    --dark-background-color: #212529;
    --whiteley-background-color: #f1f1f1;
}

/* Main */
body, html {
    background: var(--fb-bg);
    color: var(--fb-text);
    min-height: 100%;
    margin: 0;
    padding: 0;
    padding-top: 3rem;
    overflow-x: hidden;
    overflow-y: auto;
    font-family: "Montserrat", Sans-serif;
    overflow-x: hidden;
}

.bg-body-secondary {
    background-color: var(--fb-sidebar-surface) !important;
    border: 1px solid var(--fb-sidebar-inner-surface) !important;
    color: var( --fb-text) !important;
}

.bmi-card {
    background-color: var(--fb-sidebar-surface);
}

.list-group-item {
    background-color: var(--fb-sidebar-inner-surface) !important;
}

.list-group-item.list-group-item-action.active {
    border: 1px solid var(--fb-sidebar-inner-surface) !important;
    color: var(--fb-purple-soft) !important;
    background-color: var(--fb-purple-dark) !important;
}

/* Table - BMI Table */
.bmi-table {
    --bs-table-color: var(--fb-text);
    --bs-table-bg: var(--fb-surface);
    --bs-table-striped-bg: var(--fb-sidebar-inner-surface);
    --bs-table-striped-color: var(--fb-text);
    --bs-table-border-color: var(--fb-border);

    margin-bottom: 0;
}

/* Table header */
.bmi-table thead th {
    background-color: var(--fb-purple-soft);
    color: var(--primary-color);
    font-weight: 600;
    border-bottom: 1px solid var(--fb-border);
}

/* Edit button */
.bmi-table .btn-edit {
    color: var(--fb-purple);
    border-color: var(--fb-purple);
}

.bmi-table .btn-edit:hover {
    background-color: var(--fb-purple-soft);
    color: var(--fb-purple-dark);
    border-color: var(--fb-purple-dark);
}

/* Light mode default */
.bg-adaptive {
    background-color: #f8f9fa;
    color: var(--fb-purple);
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
    padding: 0;
    color: var(--primary-color);
}

.top-logo {
    width: 100px;
    height: auto;
}

.top-contact-bar,
.navbar.fixed-top {
    backdrop-filter: blur(8px);
    background-color: rgba(255, 255, 255, 0.75);
    transition: all 0.3s ease;
}

.scrolled .top-contact-bar,
.scrolled .navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Optional shadow on scroll */
.scrolled .top-contact-bar,
.scrolled .navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.half-space-banner {
    max-width: 900px;
    color: #fff;
    padding: 10px 0;
    text-align: center;
}

.secondary_text {
    color: var(--secondary-color);
}
.primary_text {
    color: var(--primary-color);
}

/* Buttons */
.btn-fb-primary {
    background: var(--fb-purple);
    border: 1px solid var(--fb-purple);
    color: #fff;
    border-radius: 999px;
    padding: .7rem 1.35rem;
    font-size: .9rem;
    font-weight: 500;
}

.btn-fb-primary:hover {
    background: var(--fb-purple-dark);
    border-color: var(--fb-purple-dark);
    color: #fff;
}

.btn-fb-outline {
    background: transparent;
    border: 1px solid var(--fb-purple);
    color: var(--fb-purple);
    border-radius: 999px;
    padding: .4rem 1.35rem;
    font-size: .9rem;
    font-weight: 500;
}

.btn-fb-outline:hover {
    background: var(--fb-purple);
    color: #fff;
}

/* --------------------------------------------------
    FEATURE CARDS
-------------------------------------------------- */

.feature-section {
    padding: 10px 0 60px;
}

.feature-card {
    height: 100%;
    padding: 28px 22px;
    background: rgba(255, 253, 248, .72);
    border: 1px solid var(--fb-border);
    border-radius: var(--fb-radius);
    text-align: center;
    transition: all .25s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--fb-shadow);
}

.feature-icon {
    width: 54px;
    height: 54px;
    margin: 0 auto 15px;
    border-radius: 50%;
    background: #91aa91;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
}

.feature-card:nth-child(2) .feature-icon {
    background: var(--fb-purple);
}

.feature-card:nth-child(3) .feature-icon {
    background: #a7a7c8;
}

.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: .55rem;
}

.feature-card p {
    color: var(--fb-muted);
    font-size: .9rem;
    line-height: 1.55;
    margin: 0;
}

/* --------------------------------------------------
    BLOG CARDS
-------------------------------------------------- */

.article-card {
    height: 100%;
    background: var(--fb-surface);
    border: 1px solid var(--fb-border);
    border-radius: var(--fb-radius);
    overflow: hidden;
    transition: all .25s ease;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--fb-shadow);
}

.article-image {
    width: 100%;
    height: 235px;
    object-fit: cover;
}

.article-body {
    padding: 22px;
}

.article-category {
    display: inline-block;
    padding: .35rem .65rem;
    background: var(--fb-purple-soft);
    color: var(--fb-purple);
    border-radius: 999px;
    font-size: .68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: .75rem;
}

.article-body h3 {
    font-size: 1.3rem;
    line-height: 1.2;
    margin-bottom: .7rem;
}

.article-body p {
    color: var(--fb-muted);
    font-size: .9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.read-more {
    color: var(--fb-purple);
    font-size: .85rem;
    font-weight: 600;
}

/* Cards */
.card {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.card-header {
    background-color: var(--primary-color);
    color: var(--light-color);
    padding: 1rem;
    border-radius: 0.5rem 0.5rem 0 0;
}
.card-body {
    padding: 1.5rem;
}

.card-footer {
    background-color: var(--white-background-color);
    padding: 1rem;
    border-radius: 0 0 0.5rem 0.5rem;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 500;
}

.card-text {
    font-size: 1rem;
    color: var(--grey-color);
}

.card-link {
    color: var(--primary-color);
    text-decoration: none;
}
.card-link:hover {
    text-decoration: underline;
}

/* Parallax */
.parallax {
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    height: 550px;
    position: relative;
    color: var(--light-color);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 2rem;
}

.image-container {
    position: relative;
    overflow: hidden;
    max-height: 600px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-container img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.3s ease-in-out;
}

.my-tips {
    text-align: left !important;
}

.my-tips ul {
    list-style: none;
    padding: 0;
}

.my-tips ul li {
    margin: 10px 0;
    padding: 10px;

}

.my-tips ul li i {
    color: var(--secondary-color);
}

.parallax-content {
    max-width: 500px;
}

.parallax h2 {
    color: var(--secondary-color)
}

.parallax p {
    color: var(--primary-color)
}

.post-card {
    overflow: hidden;
    transition: transform 0.3s ease;
}

.post-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* .post-card img {
    transition: transform 0.3s ease;
}

.post-card:hover img {
    transform: scale(1.05);
} */

.text-justify {
    text-align: justify;
}

.fix-height-4 {
    height: 4rem;
    overflow: hidden;
}

.fix-height-6 {
    height: 6rem;
    overflow: hidden;
}

.bottom-quote {
    background-image: url('../../images/breadcurmb.png');
    background-size: cover;
    background-position: center;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    padding: 40px;
    text-align: center;
}

.bottom-quote .quote-text {
    font-size: 1.5rem;
    font-weight: 500;
}
.bottom-quote .quote-author {
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--secondary-color)
}

/* Sentence */
.quote-box {
    position: relative;
    padding: 1rem 2rem;
    font-style: italic;
    font-family: 'Georgia', serif;
    margin: 1rem 0;
    color: var(--grey-color);
}

/* about image */
.about-image {
    position: relative;
    overflow: hidden;
    border-radius: 40% 0% 40% 0%;
}

.about-image img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.quote-box::before,
.quote-box::after {
    font-size: 3rem;
    position: absolute;
    color: #e0e0e0;
    font-family: serif;
}

.quote-box::before {
    content: "“";
    top: -10px;
    left: 10px;
}

.quote-box::after {
    content: "”";
    bottom: -10px;
    right: 10px;
}

.max-60 {
    max-width: 60%;
    margin: 0 auto;
}

.top--20 {
    margin-top: -20px;
}

.is-invalid {
    color: var(--danger-color);
}
.is-valid {
    color: var(--success-color);
}

input ~ i {
    display: none !important;
}

.text-small {
    font-size: 0.8rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:focus {
    outline: none;
}

.nav-link.active {
    color: var(--secondary-color) !important;
    font-weight: 500;
}

/* Overwrites */
.btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
}
.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: var(--light-color);
    border: solid 1px var(--primary-color);
}
.btn-outline-secondary {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}
.btn-outline-secondary:hover {
    background-color: var(--secondary-color);
    color: var(--light-color);
    border: solid 1px var(--secondary-color);
}
.btn-outline-success {
    border-color: var(--success-color);
    color: var(--success-color);
}
.btn-outline-success:hover {
    background-color: var(--success-color);
    color: var(--light-color);
    border: solid 1px var(--success-color);
}
.btn-outline-danger {
    border-color: var(--danger-color);
    color: var(--danger-color);
}

.btn-outline-danger:hover {
    background-color: var(--danger-color);
    color: var(--light-color);
    border: solid 1px var(--danger-color);
}

.btn-outline-warning {
    border-color: var(--warning-color);
    color: var(--warning-color);
}

.btn-outline-warning:hover {
    background-color: var(--warning-color);
    color: var(--light-color);
    border: solid 1px var(--warning-color);
}

.btn-outline-info {
    border-color: var(--info-color);
    color: var(--info-color);
}

.btn-outline-info:hover {
    background-color: var(--info-color);
    color: var(--light-color);
    border: solid 1px var(--info-color);
}

.page-item.active .page-link, .list-group-item.list-group-item-action.active {
    color: var(--light-color);
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color);
}


.page-link {
    color: var(--primary-color);
}

.page-link.active {
    color: var(--light-color);
    background-color: var(--primary-color) !important;
}

.page-link:hover {
    color: var(--light-color);
    text-decoration: none;
    background-color: var(--primary-color);
    border:1px solid var(--primary-color);
}

.page-link {
    transition: all 0.3s ease;
}

.page-link:focus {
    box-shadow: none;
}

.tag {
    background-color: var(--fb-purple-dark);
    color: var(--fb-purple-soft);
}

.tag:hover {
    /* background-color: var(--info-color); */
    background-color: var(--fb-text);
    color: var(--fb-purple-soft);
}

.sidebar {
    background-color: var(--fb-sidebar-surface);
    border-radius: 10px;
}

/* Page Sidebar */
.sidebar-inner {
    background-color: var(--fb-sidebar-inner-surface);
}

/* Sticky bar */
.sticky-sidebar {
    position: sticky;
    top: 100px;
}

/* BMI */
.hidden { display: none; }

.max-height-6 {
    height: 6rem;
    overflow: hidden;
}

/* Carousel */
.splide__slide {
    padding: 20px;
    text-align: center;
}

.splide__arrow {
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 20px;
    transition: background 0.3s ease;
}

.splide__arrow:hover {
    background: var(--light-color)
}

.splide__arrow--prev {
    left: -1rem;
}

.splide__arrow--next {
    right: -1rem;
}

/* Container */
.video-container {
    position: relative;
    width: 100%;
    height: 100vh;
    max-height: 990px;
    overflow: hidden;
    background-color: var(--white-background-color)
}

.video-container h1 {
    color: var(--light-color);
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Banner Overlay */
.video-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 3;
    width: 100%;
    height: 100%;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 1rem;
}

/* Blur at bottom */
.video-bottom-blur {
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 2;
    width: 100%;
    height: 120px;
    /* background: linear-gradient(to top, rgba(255, 255, 255, 0.9), transparent); */
    pointer-events: none;
}

/* Play/Pause button */
.play-pause-btn {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    backdrop-filter: blur(5px);
    z-index: 4;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
}

.play-pause-btn i {
    position: absolute;
    font-size: 2rem;
    color: #fff;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.play-icon {
    opacity: 0;
    transform: scale(0.5);
}

.pause-icon {
    opacity: 1;
    transform: scale(1);
}

.play-icon.active {
    opacity: 1;
    transform: scale(1);
}

.pause-icon.active {
    opacity: 0;
    transform: scale(0.5);
}

.play-pause-btn:hover i {
    transform: scale(1.2);
}

/* SVG ring */
.progress-ring {
    position: absolute;
    top: -50;
    left: -50;
    transform: rotate(-90deg);
}

.progress-ring-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.3);
    stroke-width: 3;
}

.progress-ring-fill {
    fill: none;
    stroke: white;
    stroke-width: 3;
    stroke-dasharray: 220;
    stroke-dashoffset: 220;
    transition: stroke-dashoffset 0.1s linear;
}

/* Footer */
footer {
    border-top: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 40px 0;
}

footer a {
    color: var(--primary-color);;
}

footer a:hover {
    color: var(--secondary-color);;
}

.copyright {
    color: var(--light-color);
    background-color: var(--primary-color);
}

/* Back to top */
.back-to-top {
    position: fixed;
    bottom: 80px;
    right: 20px;
    z-index: 1000;
    background-color: var(--secondary-color);
    color: var(--light-color);
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    opacity: 0;
    pointer-events: none;
    transform: translateX(100px);
    transition:
        background-color 0.4s ease,
        color 0.4s ease,
        opacity 0.4s ease,
        transform 0.4s ease;
}

.back-to-top.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}

.back-to-top:hover {
    background-color: var(--primary-color);
    color: var(--light-color)
}

/* Prevent Select */
.no-select {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Ads */
.ad-box {
    background-color: #f8f9fa;
    padding: 10px;
    border-radius: 0.5rem;
    text-align: center;
}


/* Responsive */
@media (max-width: 768px) {
    .video-container {
        height: 80vh;
        max-height: 500px;
    }

    .play-pause-btn {
        width: 60px;
        height: 60px;
        bottom: 0.75rem;
        right: 0.75rem;
    }

    .play-pause-btn i {
        font-size: 1.8rem;
    }

    .video-banner-overlay h1 {
        font-size: 1.5rem;
    }

    .video-banner-overlay p {
        font-size: 1rem;
    }

    .parallax {
        justify-content: center;
        text-align: center;
    }
}
