/* General */
* {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    margin: 0;
    font-family: 'Barlow Condensed', sans-serif;
    color: #1e1e1b;
    background-color: white;
    line-height: 1.6;
    overflow-x: hidden;
}

/* General text sizes */
* {
    box-sizing: border-box;
}
body {
    margin: 0;
    font-family: 'Barlow Condensed', sans-serif;
}

/* text sizes */
.hero-text {
    font-size: 70px;
    letter-spacing: 0.2px;
    font-weight: 400;
    line-height: 1;
}
.title-text {
    font-size: 55px;
    font-weight: 400;
    line-height: 1.15;
}
.m-title-text {
    font-size: 45px;
    font-weight: 200;
    padding: 3px;
}
.sub-heading {
    font-size: 30px;
    font-weight: 250;
}
.small-title-text {
    font-size: 22px;
}
.para-text {
    font-size: 17.5px;
    letter-spacing: 0.5px;
}

/* default colors */
.red-bg {
    background-color: #bc1400;
}
.red-text {
    color: #bc1400;
}
.blue-bg {
    background-color: #134989;
}
.light-blue-bg {
    background-color: #f1f9ff;
}
.white-text {
    color: white;
}
.white-bg {
    background-color: white;
}
.blue-text {
    color: #134989;
}
.dark-bg {
    background-color: #1e1e1b;
}
.dark-text {
    color: #1e1e1b;
}

/* google font */
.barlow-condensed-thin {
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 100;
    font-style: normal;
}
.barlow-condensed-extralight {
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 200;
    font-style: normal;
}
.barlow-condensed-light {
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 300;
    font-style: normal;
}
.barlow-condensed-regular {
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 400;
    font-style: normal;
}
.barlow-condensed-medium {
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 500;
    font-style: normal;
}
.barlow-condensed-semibold {
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 600;
    font-style: normal;
}
.barlow-condensed-bold {
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 700;
    font-style: normal;
}
.barlow-condensed-extrabold {
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 800;
    font-style: normal;
}
.barlow-condensed-black {
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 900;
    font-style: normal;
}
.barlow-condensed-thin-italic {
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 100;
    font-style: italic;
}
.barlow-condensed-extralight-italic {
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 200;
    font-style: italic;
}
.barlow-condensed-light-italic {
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 300;
    font-style: italic;
}
.barlow-condensed-regular-italic {
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 400;
    font-style: italic;
}
.barlow-condensed-medium-italic {
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 500;
    font-style: italic;
}
.barlow-condensed-semibold-italic {
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 600;
    font-style: italic;
}
.barlow-condensed-bold-italic {
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 700;
    font-style: italic;
}
.barlow-condensed-extrabold-italic {
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 800;
    font-style: italic;
}
.barlow-condensed-black-italic {
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 900;
    font-style: italic;
}

/* Navbar */
#navbar {
    background: rgba(30, 27, 27, 0.514);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-size: 20px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.navbar-brand {
    position: relative;
    display: inline-block;
    overflow: hidden;
}
/* Logo */
.navbar-brand:first-child {
    position: relative;
    display: inline-flex;
    width: 60px;
    height: 60px;
    min-width: 60px;
    padding: 0;
    margin-right: 10px;
    overflow: hidden;
    border-radius: 50%;
    flex-shrink: 0;
}
.logo-img {
    width: 50px;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}
/* Glisten effect to logo */
.navbar-brand:first-child::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    border-radius: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.65),
        transparent
    );
    transform: skewX(-25deg);
    pointer-events: none;
}
.navbar-brand:first-child:hover::after {
    left: 150%;
    transition: left 0.8s ease-in-out;
}
.nav-link {
    margin: 15px;
}
.hover-white:hover {
    color: white !important;
}
.hover-black:hover {
    color: black !important;
}
.nav-link.active {
    color: white !important;
}
.nav-icon {
    font-size: 30px;
    display: flex;
    justify-content: center;
}
/* Login / signup */
#navbar .btn {
    white-space: nowrap;
    font-size: 20px;
}
/* Responsive layout */
@media (max-width: 991.98px) {
    #navbar {
        min-height: 80px;
        background: #1e1e1b;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    #navbar .navbar-collapse {
        background-color: #1e1e1b !important;
        opacity: 1;
        padding: 12px 15px 20px;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
        border-radius: 0 0 15px 15px;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        overflow-y: auto;
    }

    #navbar .navbar-nav {
        align-items: stretch;
    }
    .nav-link {
        margin: 5px;
    }
    .nav-icon {
        display: inline-flex;
        font-size: 20px;
        margin-right: 5px;
    }
    #navbar .navbar-brand:first-child {
        padding-right: 15px;
        margin-right: 10px;
    }
    #navbar .navbar-brand.fw-bold {
        margin-right: auto;
    }
}


/* Footer */
.footer-section {
    padding: 55px 5% 25px;
    background-color: #1e1e1b;
}
.white-text {
    color: #ffffff;
    text-decoration: none;
}

/* LIFE9 branding */
.footer-brand {
    margin-bottom: 18px;
}
.footer-brand > a {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}
.footer-logo-wrap {
    position: relative;
    display: inline-flex;
    width: 65px;
    height: 65px;
    min-width: 65px;
    overflow: hidden;
    border-radius: 50%;
    flex-shrink: 0;
}
.footer-logo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    transition: transform 0.4s ease, filter 0.4s ease;
}
.footer-logo-wrap::after {
    content: "";
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.65), transparent);
    transform: skewX(-25deg);
    pointer-events: none;
}
.footer-logo-wrap:hover::after {
    left: 150%;
    transition: left 0.8s ease-in-out;
}
.footer-logo-wrap:hover .footer-logo {
    transform: scale(1.06);
    filter: brightness(1.2);
}
.footer-brand-name {
    font-size: 36px;
    line-height: 1;
    transition: color 0.3s ease;
}
.footer-brand > a:hover .footer-brand-name {
    color: #ffdddd;
}
.footer-description {
    font-size: 19px;
    line-height: 1.6;
    margin-bottom: 12px;
}

/* Footer link cards */
.footer-link-card {
    height: 100%;
    background-color: #292927;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.15);
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.footer-link-card:hover {
    background-color: #bc1400;
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.08);
}

/* Footer headings and links */
.footer-heading {
    font-size: 25px;
    font-weight: 600;
    margin-bottom: 20px;
}
.footer-link-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-link-list > li {
    margin-bottom: 12px;
}
.footer-link {
    display: inline-block;
    color: #ffffff;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 19px;
    font-weight: 500;
    line-height: 1.5;
    text-decoration: none;
    transition: transform 0.25s ease, color 0.25s ease;
}
.footer-link:hover {
    color: #ffffff;
    transform: translateX(5px);
}
.footer-link:focus-visible,
.footer-media-link:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 4px;
    border-radius: 3px;
}

/* Social media icons */
.footer-media-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 24px;
    text-decoration: none;
    transition: color 0.25s ease, transform 0.25s ease;
}
.footer-media-link:hover {
    color: #ffdddd;
    transform: translateY(-3px);
}

/* Divider and bottom section */
.footer-line {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}
.footer-bottom-text {
    font-size: 17px;
    line-height: 1.6;
}
.footer-ref-policy-text .footer-link:hover {
    transform: none;
    text-decoration: underline;
}

/* Responsive footer */
@media (max-width: 991.98px) {
    .footer-section {
        padding: 45px 4% 20px;
    }
}
@media (max-width: 575.98px) {
    .footer-section {
        padding: 40px 5% 20px;
    }
    .footer-logo-wrap {
        width: 58px;
        height: 58px;
        min-width: 58px;
    }
    .footer-brand-name {
        font-size: 33px;
    }
    .footer-heading {
        font-size: 23px;
    }
    .footer-link {
        font-size: 18px;
    }
    .footer-description {
        font-size: 18px;
    }
    .footer-bottom-text {
        font-size: 16px;
    }
}

/* Reduced motion accessibility */
@media (prefers-reduced-motion: reduce) {
    .footer-link,
    .footer-logo,
    .footer-media-link,
    .footer-brand-name,
    .footer-link-card {
        transition: none;
    }
    .footer-logo-wrap:hover::after {
        transition: none;
    }
    .footer-link:hover,
    .footer-logo-wrap:hover .footer-logo,
    .footer-media-link:hover {
        transform: none;
    }
}

/* Logged-in Navbar */
#logged-in-navbar {
    position: relative;
    margin-left: 12px;
}

#logged-in-navbar .dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 40px;
    padding: 7px 16px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.04);
    color: white;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 17px;
    font-weight: 500;
    transition: 0.25s ease;
}

#logged-in-navbar .dropdown-toggle:hover,
#logged-in-navbar .dropdown-toggle[aria-expanded="true"] {
    background: rgba(255, 255, 255, 0.12);
    border-color: white;
}

#logged-in-navbar .dropdown-toggle i {
    font-size: 19px;
}

#logged-in-navbar .dropdown-menu {
    min-width: 190px;
    margin-top: 12px;
    padding: 8px;
    background: #202c40;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    z-index: 1100;
}

#logged-in-navbar .dropdown-item {
    padding: 9px 12px;
    border-radius: 7px;
    color: rgba(255, 255, 255, 0.85);
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 16px;
    transition: 0.2s ease;
}

#logged-in-navbar .dropdown-item:hover {
    background: #134989;
    color: white;
}

#logged-in-navbar .dropdown-divider {
    border-color: rgba(255, 255, 255, 0.15);
}

@media (max-width: 991.98px) {
    #logged-in-navbar {
        margin: 12px 0 5px;
    }

    #logged-in-navbar .dropdown-menu {
        margin-top: 6px;
    }
}
/* Navbar Profile Image */
.navbar-profile-image {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin-right: 5px;
    flex-shrink: 0;
}

.navbar-profile-image img {
    display: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid white;
}

.navbar-profile-image i {
    font-size: 23px;
    color: white;
}
/* =========================================
   MOBILE NAVBAR & ACCOUNT DROPDOWN FIX
========================================= */

@media (max-width: 991.98px) {
    #navbar {
        height: auto;
        min-height: 80px;
        align-items: center;
    }

    #navbar .container-fluid {
        flex-wrap: wrap;
    }

    #navbar .navbar-collapse {
        flex-basis: 100%;
        width: 100%;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
        overflow-x: visible;
    }

    /* Account dropdown container */
    #logged-in-navbar {
        width: 100%;
        margin: 12px 0 5px;
    }

    /* Account button */
    #logged-in-navbar .dropdown-toggle {
        width: 100%;
        justify-content: flex-start;
        text-align: left;
    }

    /* Account dropdown menu */
    #logged-in-navbar .dropdown-menu {
        position: static !important;
        transform: none !important;
        width: 100%;
        min-width: 0;
        margin: 8px 0 0;
        padding: 8px;
        border-radius: 10px;
    }

    #logged-in-navbar .dropdown-item {
        padding: 11px 14px;
        font-size: 18px;
    }
}