html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
    margin: 0;
    background-color: #f1eff0;
}

#money-management-hub {
    scroll-behavior: smooth;
    max-width: 1440px;
    background-color: var(--primary-background);
    margin: 0 auto;
    padding: 0;

    --light-color: #558B91;
    --dark-color: #4C7D83;
    --muted-color: #96B7BB;
    --darkest-color: #3B6469;
    --accent-color: #F4E77C;
    --primary-background: #f1eff0;

    --light-color-44: #558B9144;
    --translucent-teal: #558b919E;
    --scroll-bar-base: lightgrey;

    --primary-gray: #3C4043;
    --white: #fff;
    --off-white: #F9F8F8;
    --cream: #faf6f3;
    --black: #000;
}
/** release date: 01-23-2026--1702 **/

/* ============= general entries ================== */

img {
    width: 100%;
}

h1, h2, h3, h4, button, a, p, b, i, ul, ol {
    font-family: 'Poppins';
    color: var(--black);
}

h1, h2, h3, h4 {
    line-height: 1.2;
}

/* ========== button =========== */ 

button,
a.btn {
    border: none;
    cursor: pointer;
    display: block;
    width: fit-content;
    width: -moz-fit-content;
    text-decoration: none;
    border-radius: 30px;
    font-size: 20px;
    font-weight: 500;
}

.teal-btn {
    background: var(--dark-color);
    color: var(--white);
    border-radius: 6px;
    padding: 6px 25px;
}
.teal-btn:hover {
    background: var(--light-color);
}

/* ========== class-named as the style =========== */ 

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

.text--white {
    color: var(--white);
}

.text--large {
    font-size: 32px;
}

.full-width {
    width: 100%;
}

/* ============================================================== */
/* ================= specific to this page ====================== */
/* ============================================================== */

.section-header-bar {
    margin: 0 auto;
    max-width: 400px;
    width: 90%;
    height: 9px;
    background-color: var(--light-color);
    border-radius: 5px;
}

.tag {
    background-color: var(--muted-color);
    border-radius: 30px;
    text-transform: uppercase;
    font-style: italic;
    font-weight: bold;
    display: inline-block;
    margin: 0 auto 10px 0;
    padding: 1px 10px;
}

.tag.text--white {
    background-color: var(--dark-color);
}

.tag.tag--subtle {
    text-transform: none;
    font-weight: 500;
    font-style: normal;
}

.section--color .tag {
    background-color: var(--white);
    color: var(--darkest-color);
}

.target-icon {
    width: 40px;
}

.section--50-30-20-rule b {
    margin-bottom: 0;
    font-size: 18px;
}

.section--50-30-20-rule p {
    margin-top: 0;
}

/* ============= sections ================== */

main {
    max-width: 1440px;
    margin: auto;
}

.section {
    padding-top: 100px;
}
.section-intro {
    max-width: 960px;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.section-divider {
    border-top: 1px solid var(--accent-color);
    width: 250px;
    margin: 50px auto;
}

@media (max-width: 767px) {
    .columns--2 .column > * {
        margin-bottom: 25px;
    }
    .section {
        padding-top: 80px;
    }
}

.section--white {
    background-color: var(--white);
    padding: 24px;
}

.section--color {
    background-color: var(--darkest-color);
    padding: 24px;
}

.section--color * {
    color: var(--white);
}

.section--white h2,
.section--color h2,
.image-background-tile h2 {
    margin-top: 0;
    margin-bottom: 10px;
}

.image-background-tile {
    position: relative;
}

.image-background-tile > img {
    position: relative;
    z-index: 0;
    height: 100%;
    object-fit: cover;
}

.image-background-tile:not([id*="finance-tips"]) > div {
    position: absolute;
    z-index: 1;
    bottom: 0;
    left: 0;
    padding: 16px 20px;
}
.image-background-tile[id*="finance-tips"] > div.section--white {
    height: 100%;
}

.text-box {
    background-color: var(--light-color-44);
    border-radius: 10px;
    padding: 14px 10px;
}
.text-box:not(:last-child) {
    margin-bottom: 20px;
}

.text-box b {
    display: block;
    margin-bottom: 10px;
    max-width: 60%;
    font-size: 18px;
}

.text-box p {
    margin: 0;
}

.image-block-text {
    list-style: none;
    padding: 0;
}

.image-block-text > li {
    background: var(--dark-color);
    color: var(--white);
    width: 80%;
    max-width: 220px;
    padding: 1px 8px;
    border-radius: 6px;
    font-weight: 500;
    margin-bottom: 4px;
}

.image-with-text-blocks {
    position: relative;
}

.image-with-text-blocks ul.image-block-text {
    position: absolute;
    bottom: 0;
}

.image-with-text-blocks .translucent-blocks li {
    background: var(--translucent-teal);
}

.image-with-text-blocks .image-block-text.full-width li {
    width: calc(100% - 32px);
    max-width: calc(100% - 32px);
    margin: 0 auto 10px;
    font-size: 18px;
}

/* ================ columns ================ */

.columns--2 {
    display: flex;
    flex-wrap: wrap;
    margin-top: 96px;
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
}
@media (max-width: 1000px) {
    main {
        max-width: 100%;
    }
    .columns--2 {
        flex-direction: column;
        align-items: center;
        max-width: 480px;
        width: 100%;
        margin: 96px auto 0;
    }
    .columns--2 .column {
        max-width: 450px;
        width: calc(100% - 30px) !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding: 0 15px;
    }
}
.columns--2 .column {
    /* width: calc(50% - 60px); */
    width: 450px;
}
.columns--2 .column:nth-child(2n) {
    margin-left: 30px;
}
.columns--2 .column:nth-child(2n + 1) {
    margin-right: 30px;
}
.columns--2 .column > * {
    margin-bottom: 50px;
}

/* ================ video ================ */

/* play button */
.video-still {
    position: relative;
    display: block;
    cursor: pointer;
}
.video-still .play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.video-still:hover .play-button svg path {
    stroke: var(--dark-color);
}
.video-still:hover .play-button svg path:last-child {
    fill: var(--dark-color);
}

/* ================ banner ================ */

.banner--full {
    position: relative;
    width: 100vw;
    margin: 0 calc(50% - 50vw);
    color: var(--white);
    padding: 50px 0;
}
.banner--full > img {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    object-fit: cover;
}
@media (min-width: 1440px) {
    .banner--full {
        max-width: 1440px;
        margin: 0 calc(50% - 720px);
    }
}
.banner--full--text {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 740px;
    width: 55%;
    margin: 0 auto 0 0;
    padding: 20px 40px;
}
.banner--full--text.banner--full--text-right {
    margin: 0 0 0 auto;
}
.banner--full--text h1 {
    margin: 8px 0 0 0;
}
.banner--full--text h1,
.banner--full--text button {
    width: fit-content;
    width: -moz-fit-content;
}

@media only screen and (max-width: 799px) {
    .banner--full {
        background-color: var(--off-white);
        padding-top: 0;
        padding-bottom: 0;
    }
    .banner--full > img {
        position: relative;
        height: auto;
    }
    .banner--full--text, .banner--full--text.banner--full--text-right {
        padding-top: 40px;
        padding-bottom: 40px;
        margin: 0 auto;
    }
}

@media only screen and (max-width: 559px) {
    .banner--full--text, .banner--full--text.banner--full--text-right {
        position: absolute;
        bottom: 10%;
        height: auto;
        padding: 40px 20px;
        width: calc(100% - 40px);
    }
}

@media only screen and (max-width: 450px) {
    .banner--full--text, .banner--full--text.banner--full--text-right {
        bottom: 0;
    }
}

@media (max-width: 380px) {
    .banner--full--text h1 {
        font-size: 28px;
    }
}

/* ================ image bullets ================ */

.image-bullets {
    display: flex;
    flex-direction: column;
    padding-left: 25px;
}
.image-bullets--item {
    /* background-color: rgb(from var(--accent-color) r g b / 0.1); */
    border-radius: 10px;
    padding: 8px 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
}
.image-bullets--item:last-child {
    margin-bottom: 0;
}
.image-bullets--item img {
    width: 40px;
    height: auto;
    display: block;
    margin-top: 0;
    /* background-color: var(--dark-color); */
}

.image-bullets--item * {
    margin: 0;
}
.image-bullets--item h3 {
    margin-bottom: 5px;
    font-weight: 500;
}

.image-bullets--item h2 {
    padding: 8px 4px;
}

@media only screen and (max-width: 480px) {
    .image-bullets--item {
        gap: 10px;
    }
    .image-bullets--item img {
        width: 36px;
    }
    .image-bullets--item h2 {
        font-size: 18px;
        margin-bottom: 0;
    }
    .image-bullets {
        padding-left: 0;
        margin-top: 10px;
    }
}

/* ============ menu toggle css only ============== */

#menuToggle {
    display: block;
    position: relative;
    -webkit-user-select: none;
    user-select: none;

    border-radius: 30px;
    border: 2px solid var(--dark-color);
    width: fit-content;
    width: -moz-fit-content;
    margin: 13px auto;
    padding: 5px;
}

nav {
    position: sticky;
    top: 0;
    z-index: 6;
    padding: 12px 0;
    background: var(--primary-background);
}

nav a {
    min-width: 125px;
    line-height: 1.2;
    text-align: center;
    display: inline-block;
    text-decoration: none;
    padding: 4px 20px;
    font-weight: bold;
    border-radius: 30px;
    transition: color 0.3s, background-color 0.3s ease;
}
nav a:hover,
nav a:focus {
    background-color: var(--accent-color);
}

#menuToggle input {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  margin: 0;
  cursor: pointer;
  
  opacity: 0; /* hide this */
  z-index: 3; /* and place it over the hamburger */
  
  -webkit-touch-callout: none;
}

#menuToggle span {
  display: block;
  width: 33px;
  height: 4px;
  margin-bottom: 5px;
  position: relative;
  background: var(--light-color);
  border-radius: 3px;
  z-index: 1;
  transform-origin: 4px 0px;
  transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
              background 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
              opacity 0.55s ease;
}
#menuToggle span:first-child {
  transform-origin: 0% 0%;
}
#menuToggle span:nth-last-child(2) {
  transform-origin: 0% 100%;
}

/* 
 * Transform all the slices of hamburger
 * into a crossmark.
 */
#menuToggle input:checked ~ span {
  opacity: 1;
  transform: rotate(45deg) translate(5px, -1px);
  background: var(--dark-color);
}
#menuToggle input:checked ~ span:nth-last-child(3) {
  opacity: 0;
  transform: rotate(0deg) scale(0.2, 0.2);
}
#menuToggle input:checked ~ span:nth-last-child(2) {
  transform: rotate(-45deg) translate(0, 6px);
}

#menu {
    padding-left: 0;
    margin: 0;
}

@media only screen and (min-width: 768px) {
    #menuToggle span,
    #menuToggle input {
        display: none;
    }
}

@media only screen and (max-width: 880px) {
    nav a {
        padding: 4px 10px;
    }
}

@media only screen and (max-width: 767px) {
    /*
    * Make this absolute positioned
    * at the top left of the screen
    */
    #menuToggle {
        margin: 13px auto 13px 20px;
    }
    #menu {
        position: fixed;
        left: 0;
        top: 35px;
        /* width: 55vw; */
        width: 100vw;
        margin: -100px 0 0 0px;
        padding: 25px 0;
        padding-top: 125px;

        background: var(--primary-background);
        list-style-type: none;
        -webkit-font-smoothing: antialiased;
        /* to stop flickering of text in safari */

        transform-origin: 0% 0%;
        transform: translate(-100%, 0);

        transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0);

        display: flex;
        flex-direction: column;
        border-bottom: 1px solid var(--dark-color);
    }
    #menuToggle input:checked ~ ul {
        transform: none;
    }
    #menuToggle {
        border: none;
    }
    nav {
        padding: 1px 0;
        border-bottom: 1px solid var(--dark-color);
    }
    nav a {
        padding: 10px 20px;
        margin-bottom: 10px;
        font-size: 24px;
    }
    nav a br {
        display: none;
    }
}

/* ============ footer =========== */

footer {
    background-color: var(--dark-color);
    padding: 60px 20px;
}

footer a {
    transition: all 0.2s ease;
}

.footer-links {
    display: flex;
    justify-content: space-around;
    max-width: 1200px;
    margin: 0 auto 60px;
    font-weight: 500;
    min-width: 125px;
    line-height: 1.2;
}

.footer-links a,
.footer-text--small a {
    text-decoration: none;
}

.footer-links a:hover,
.footer-text--small a:hover {
    text-decoration: underline;
}

.footer-text--small {
    font-size: 12px;
    font-weight: 300;
}

.footer-text--small a.no-underline-hover {
    text-decoration: underline;
}

.footer-text--small a.no-underline-hover:hover {
    filter: brightness(0.8);
}

@media only screen and (max-width: 799px) {
    .footer-links {
        flex-direction: column;
        gap: 25px;
    }
    .footer-links a br {
        display: none;
    }
}

/* ============ hero, carousel =========== */

.carousel-item {
    position: relative;
}
.carousel-item img {
    width: 100%;
    position: relative;
}
.carousel-item--text {
    position: absolute;
    top: 50%;
    left: 70px;
    transform: translateY(-50%);
    width: 45%;
}
.hero-carousel .carousel-item--text {
    top: 100px;
    transform: none;
}
.hero-carousel .carousel-item--text > * {
    z-index: 2;
}
/* @media (max-width: 1170px) and (min-width: 876px) {
    .hero-carousel .carousel-item--text {
        bottom: 50px;
        top: auto;
    }
}
@media (min-width: 800px) and (max-width: 875px) {
    .hero-carousel .carousel-item--text {
        bottom: 25px;
        top: auto;
    }
} */
.carousel-item--text * {
    position: relative;
    display: block;
    width: fit-content;
    width: -moz-fit-content;
}
.carousel-item--text h2 {
    padding: 0 2px;
}
.carousel-item--text p {
    padding: 8px 2px;
}

.hero-section {
    padding-top: 56px;
}
.hero-section h2 {
    font-size: 42px;
    margin: 0;
    line-height: 1.2;
}
.hero-carousel.carousel-section .slides > div > div {
    padding-bottom: 0;
}
.hero-section .carousel-item--text p {
    margin-top: 8px;
    margin-bottom: 8px;
}

@media only screen and (max-width: 945px) {
    .hero-section #hero-slide-1 .carousel-item > img {
        height: auto;
    }
}

@media only screen and (max-width: 1064px) {
    .hero-section h2 {
        font-size: 32px;
    }
}

@media only screen and (min-width: 800px) {
    .hero-desktop {
        display: block;
    }
    .hero-mobile, .hero-tablet {
        display: none;
    }
    .hero-section .slider,
    .hero-section .slides {
        height: 38vw;
        max-height: 559px;
    }
    .hero-section > div {
        height: 100%;
        max-height: 559px;
    }
    .hero-section .carousel-item {
        position: relative;
        display: flex;
        /* flex-direction: row-reverse; */
        height: 100%;
        width: 100%;
    }
    .hero-section .carousel-item.text-right {
        flex-direction: row-reverse;
        text-align: right;
    }
    .hero-carousel .carousel-item--text {
        position: relative;
        top: 0;
        left: 0;
        width: 45%;
        padding: 25px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    .hero-carousel .carousel-item.text-right .carousel-item--text > a {
        margin-right: 0;
        margin-left: auto;
    }
    .hero-carousel .carousel-item.text-left .carousel-item--text {
        padding-left: 50px;
        padding-right: 0;
    }
    .hero-carousel .carousel-item.text-right .carousel-item--text {
        padding-right: 50px;
        padding-left: 0;
    }
    .hero-carousel .carousel-item img {
        width: 100%;
        max-width: 100%;
        max-height: unset;
        object-fit: cover;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
    }
}

@media only screen and (max-width: 850px) and (min-width: 800px) {
    .carousel-item--text {
        left: 60px;
    }
    .hero-section h2 {
        font-size: 28px;
        margin: 0;
    }
    .hero-section .carousel-item--text p {
        margin-top: 4px;
        margin-bottom: 4px;
        padding-right: 16px;
    }
    .hero-section .carousel-item.text-right .carousel-item--text p {
        padding-right: 0;
        padding-left: 16px;
    }
    .hero-carousel .carousel-item--text {
        width: 50%;
    }
    .hero-section #hero-slide-3 .carousel-item.text-right .carousel-item--text {
        width: 45%;
    }
    .hero-section #hero-slide-4 .carousel-item.text-right .carousel-item--text {
        width: 55%;
    }
}


@media only screen and (max-width: 799px) {
    .hero-desktop, .hero-mobile {
        display: none;
    }
    .hero-tablet {
        display: block;
        width: 100%;
        max-width: 100%;
    }
    .carousel-item {
        display: flex;
        height: 100%;
        flex-direction: column;
        background-color: var(--off-white);
    }
    .hero-carousel .carousel-item--text,
    .carousel-item--text {
        position: relative;
        transform: translate(0);
        left: auto;
        top: auto;
        width: 100%;
        padding: 50px 50px 75px 50px;
        margin: -5px 0 0 0;
        flex-grow: 1;
    }
    .hero-section h2 {
        font-size: 48px;
    }
    /* .hero-section #hero-slide-1 .carousel-item > .carousel-item--text {
        max-width: unset;
        align-self: unset;
        padding: 25px;
    }
    .hero-section #hero-slide-1 .carousel-item > img {
        width: 100%;
        max-width: unset;
        max-height: unset;
    } */
}

@media only screen and (max-width: 840px) {
    .hero-section button {
        padding: 8px 20px;
    }
    .hero-section button span {
        font-size: 14px;
    }
}

@media only screen and (max-width: 559px) {
    .hero-desktop, .hero-tablet {
        display: none;
    }
    .hero-mobile {
        display: block;
        width: 100%;
        max-width: 100%;
    }
    .hero-carousel .carousel-item--text,
    .carousel-item--text {
        position: absolute;
        top: 60%;
        padding: 25px 25px 50px 25px;
    }
    .hero-section h2 {
        font-size: 36px;
    }
}

@media only screen and (max-width: 495px) {
    .hero-section h2 {
        font-size: 32px;
    }
}

@media only screen and (max-width: 475px) {
    .carousel-item {
        background-color: #fafafa;
    }
    .hero-section h2 {
        font-size: 24px;
    }
    .hero-section a.btn {
        font-size: 18px;
    }
    .hero-carousel .carousel-item--text,
    .carousel-item--text {
        padding: 25px 20px 50px 20px;
        top: auto;
        bottom: 0;
    }
}

@media only screen and (max-width: 399px) {
    .hero-carousel .carousel-item img.hero-mobile {
        padding-bottom: 60px;
    }
}

/* ============ end of hero ============ */

/* ============================================================== */
/* ========================== carousel ========================== */
/* ============================================================== */

.carousel-arrows {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    width: 100%;
}
.carousel-arrows a {
    display: block;
}
.carousel-arrows a path {
    stroke: var(--black);
}
.carousel-arrows a:hover path,
.carousel-arrows a:focus path,
.carousel-arrows a:active path {
    stroke: var(--light-color);
}

@media only screen and (max-width: 767px) {
    .carousel-arrows svg {
        width: 30px;
        height: 30px;
    }
}

.pagination-dots {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.pagination-dots > a {
    border-radius: 50%;
    background-color: var(--light-color);
    width: 13px;
    height: 13px;
    box-shadow: 0px 0px 4px 4px var(--white);
}
.pagination-dots > a.active,
.pagination-dots > a:hover,
.pagination-dots > a:active {
    background-color: var(--darkest-color);
}

/* new carousel section */ 

@keyframes tonext {
    75% {
      left: 0;
    }
    95% {
      left: 100%;
    }
    98% {
      left: 100%;
    }
    99% {
      left: 0;
    }
}
  
@keyframes tostart {
    75% {
      left: 0;
    }
    95% {
      left: -300%;
    }
    98% {
      left: -300%;
    }
    99% {
      left: 0;
    }
}
  
@keyframes snap {
    96% {
      scroll-snap-align: center;
    }
    97% {
      scroll-snap-align: none;
    }
    99% {
      scroll-snap-align: none;
    }
    100% {
      scroll-snap-align: center;
    }
}

.carousel-section * {
    box-sizing: border-box;
}

.carousel-section .slider {
    position: relative;
}
  
.carousel-section .slides {
    display: flex;
    
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    overflow-y: hidden;
    
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}
.carousel-section .slides::-webkit-scrollbar {
    width: 13px !important;
    height: 13px !important;
}
.carousel-section .slides::-webkit-scrollbar-thumb {
    background: var(--light-color) !important;
    border-radius: 10px !important;
}
.carousel-section .slides::-webkit-scrollbar-track {
    background: var(--scroll-bar-base);
}
.carousel-section .slides > div {
    scroll-snap-align: start;
    flex-shrink: 0;
    margin-right: 50px;
    transform-origin: center center;
    transition: transform 0.5s;
    position: relative;
    
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
}
.carousel-section .slides > div:last-child {
    margin-right: 0;
}
.carousel-section .slides > div > div.pb-50 {
    padding-bottom: 50px;
}

@supports not selector(::-webkit-scrollbar) {
    .carousel-section .slides {
        scrollbar-width: auto !important;
        scrollbar-color: var(--light-color) var(--scroll-bar-base);
    }
}