html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
    margin: 0;
    background-color: #fff;
    font-family: sans-serif;
}

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

    --light-color: #4280EF;
    --dark-color: #24438E;
    --accent-color: #235BC6;
    --primary-background: #faf7f5;

    --scam-type-1: #24438E;
    --scam-type-2: #235BC6;
    --scam-type-3: #4280EF;
    --scam-type-4: #7BA6F4;
    --scam-type-5: #AAC6F8;
    --scam-type-6: #C6D9FA;

    --primary-gray: #3C4043;
    --borders-subtle: #EFE9E5;
    --white: #fff;
    --off-white: #F9F8F8;
    --cream: #faf6f3;
    --black: #000;
}
/** release date: 09-13-2024--1513 **/

img {
    width: 100%;
}

.inline-anchor {
    color: var(--accent-color);
    font-weight: bold;
    text-underline-offset: 2px;
}

.dark-color-bg {
    background-color: var(--dark-color);
    border-radius: 10px;
    padding: 16px;
}
.dark-color-bg * {
    margin: 0;
}

.rounded-corners {
    border-radius: 10px;
}
.pale-blue-bg {
    background-color: rgb(from var(--accent-color) r g b / 0.1);
}
h1, h2, h3, h4, button, a, p, b, i, ul, ol {
    font-family: sans-serif;
    color: var(--primary-gray);
}

ol {
    padding-left: 15px;
}
ol li {
    padding-left: 15px;
}
ol li::marker {
    font-weight: bold;
}

.text--large {
    font-size: 32px;
}
.text--white {
    color: var(--white) !important;
}
.text--dark-color {
    color: var(--dark-color) !important;
}
.text--center {
    text-align: center;
}

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

button,
a.btn {
    border: none;
    cursor: pointer;
    display: block;
    width: fit-content;
    width: -moz-fit-content;
    text-decoration: none;
}

.blue-btn {
    background: var(--light-color);
    color: var(--white);
    border-radius: 6px;
    padding: 10px 25px;
}
.blue-btn span {
    display: flex;
    align-items: center;
    font-weight: 600;
    line-height: 24px;
    letter-spacing: 0.4px;
}
.big-btn {
    padding: 12px 36px;
}
.big-btn span {
    font-weight: 600;
    font-size: 16px;
}

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

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

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

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

    border-radius: 8px;
    border: 2px solid var(--light-color);
    width: fit-content;
    width: -moz-fit-content;
    margin: 13px auto;
    padding: 15px;
}

#menuToggle input{font-family: sans-serif;}

nav {
    position: sticky;
    top: 0;
    background-color: var(--off-white);
    z-index: 2;
    padding: 12px 0;
}

nav a {
    color: var(--light-color);
    text-decoration: none;
    padding: 10px 20px;
    font-weight: bold;
    border-radius: 6px;
    transition: color 0.3s background-color 0.3s ease;
}
nav a:hover,
nav a:focus {
    background-color: var(--light-color);
    color: var(--white);
}

#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: 560px) {
    #menuToggle span,
    #menuToggle input {
        display: none;
    }
}

@media only screen and (max-width: 559px) {
    /*
    * Make this absolute positioned
    * at the top left of the screen
    */
    #menuToggle {
        margin: 13px auto 13px 20px;
    }
    #menu {
        position: absolute;
        /* width: 55vw; */
        width: 100vw;
        margin: -100px 0 0 -50px;
        padding: 25px 50px;
        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);

        border-radius: 6px;
        display: flex;
        flex-direction: column;
        border-bottom: 1px solid var(--accent-color);
    }
    #menuToggle input:checked ~ ul {
        transform: none;
    }
    #menuToggle {
        border: none;
    }
    nav {
        padding: 1px 0;
        border-bottom: 1px solid var(--accent-color);
    }
}



/* ============ 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%;
    background-color: var(--dark-color);
}
.hero-carousel .carousel-item--text {
    top: 100px;
    transform: none;
}
@media (max-width: 1170px) and (min-width: 876px) {
    .hero-carousel .carousel-item--text {
        top: 50px;
    }
}
@media (min-width: 800px) and (max-width: 875px) {
    .hero-carousel .carousel-item--text {
        top: 25px;
    }
}
.carousel-item--text * {
    position: relative;
    display: block;
    width: fit-content;
    width: -moz-fit-content;
}
.carousel-item--text h2 {
    padding: 0 18px 0 2px;
}
.carousel-item--text p {
    padding: 8px;
}

.hero-section {
    padding-top: 56px;
}
.hero-section h2 {
    font-size: 48px;
    margin: 0;
    line-height: 1.3;
}
.hero-section .carousel-item--text p {
    margin-top: 8px;
    margin-bottom: 8px;
}

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

@media only screen and (max-width: 850px) and (min-width: 800px) {
    .carousel-item--text {
        left: 60px;
    }
    .hero-section h2 {
        font-size: 28px;
    }
}

@media only screen and (min-width: 800px) {
    .hero-section .carousel-item {
        display: flex;
        flex-direction: row-reverse;
        height: 100%;
    }
    .hero-carousel .carousel-item--text {
        position: relative;
        top: 0;
        left: 0;
        width: 60%;
        padding: 100px 70px;
    }
    .hero-carousel .carousel-item img {
        width: 40%;
        object-fit: cover;
    }
}

@media only screen and (min-width: 800px) {
    .mobile-only {
        display: none;
    }
}
@media only screen and (max-width: 799px) {
    .desktop-only {
        display: none;
    }
    .carousel-item {
        display: flex;
        height: 100%;
        flex-direction: column;
    }
    .hero-carousel .carousel-item--text,
    .carousel-item--text {
        position: relative;
        transform: translate(0);
        left: auto;
        top: auto;
        width: 100%;
        padding: 25px;
        margin: -5px 0 0 0;
        flex-grow: 1;
    }
    .hero-section h2 {
        font-size: 48px;
    }
}

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

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

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

/* ============ tags ============ */

.tag {
    display: block;
    width: fit-content;
    width: -moz-fit-content;
    font-weight: 600;
    line-height: 28px;
    font-size: 16px;
    padding: 0 16px;
    margin: 0;
    background-color: var(--accent-color);
    color: var(--white);
    border-radius: 3px;
}

/* ================ 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;
}

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

.borders-subtle {
    border: 2px solid var(--borders-subtle);
    background: #fff;
    padding: 30px 25px;
    border-radius: 10px;
}

.borders-subtle p.tag + h2 {
    margin-top: 20px;
    margin-bottom: 12px;
}
.borders-subtle > h2 {
    line-height: 1.3;
}

.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;
    }
}

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

.banner--full {
    position: relative;
    width: 100vw;
    margin: 0 calc(50% - 50vw);
    background-color: var(--dark-color);
    color: var(--white);
    padding: 50px 0;
}
@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;
    margin: 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 (max-width: 767px) {
    .banner--full--text, .banner--full--text.banner--full--text-right {
        padding: 0 10px;
        width: calc(100vw - 40px);
    }
    .banner--full--text.banner--full--text-right {
        bottom: 40px;
        top: auto;
        justify-content: flex-end;
    }
}

@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: 16px 25px;
    display: flex;
    align-items: flex-start;
    gap: 25px;
    margin-bottom: 20px;
}
.image-bullets--item:last-child {
    margin-bottom: 0;
}
.image-bullets--item img {
    width: 73px;
    height: auto;
    display: block;
    margin-top: 10px;
    border-radius: 10px;
    background-color: var(--dark-color);
}

.image-bullets--item * {
    margin: 0;
}
.image-bullets--item h3 {
    margin-bottom: 10px;
}

.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;
    }
}

/* ============== NUMBERED LIST ================ */

.numbered-list {
    display: flex;
    flex-direction: column;
}
.numbered-list--item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}
.numbered-list--item:last-child {
    margin-bottom: 0;
}
.numbered-list--item > h2 {
    background-color: var(--accent-color);
    border-radius: 50%;
    color: var(--white);
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin: 0 20px 0 0;
}
.numbered-list--small .numbered-list--item > h2 {
    width: 35px;
    height: 35px;
    font-size: 18px;
}
.numbered-list--item--text b {
    color: var(--accent-color);
}
.numbered-list--item--text p {
    margin: 10px 0 0 0;
}

/* ============== FOOTER ================ */

footer.banner--full {
    padding: 0;
}

footer > div {
    display: flex;
    flex-direction: column;
    padding: 50px 100px; 
}

footer p {
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
    font-size: 12px;
    font-style: normal;
    font-weight: 300;
    line-height: 14px;
    letter-spacing: 0.4px;
    flex-shrink: 1;
    flex-grow: 0;
}

footer .footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    flex-grow: 1;
    flex-shrink: 0;
    max-height: 200px;
    margin: auto;
    margin-bottom: 50px;
}

footer .footer-links a {
    color: #FFF;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 24px;
    letter-spacing: 0.35px;
    text-decoration: none;
    padding: 8px 12px;
}

@media only screen and (max-width: 799px) {
    footer > div {
        padding: 25px 50px;
    }
    footer .footer-links {
        margin-bottom: 25px;
    }
}

/* carousel styles */

.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:hover path,
.carousel-arrows a:focus path,
.carousel-arrows a:active path {
    stroke: var(--accent-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;
}

.pagination-dots > a {
    border-radius: 50%;
    background-color: var(--accent-color);
    width: 12px;
    height: 12px;
}
.pagination-dots > a.active,
.pagination-dots > a:hover,
.pagination-dots > a:active {
    background-color: var(--dark-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 {
    overflow: hidden;
}
  
.carousel-section .slides {
    display: flex;
    
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    
    /*
    scroll-snap-points-x: repeat(300px);
    scroll-snap-type: mandatory;
    */
}
.carousel-section .slides::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
.carousel-section .slides::-webkit-scrollbar-thumb {
    background: black;
    border-radius: 10px;
}
.carousel-section .slides::-webkit-scrollbar-track {
    background: transparent;
}
.carousel-section .slides > div {
    scroll-snap-align: start;
    flex-shrink: 0;
    margin-right: 50px;
    border-radius: 10px;
    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.borders-subtle {
    display: block;
}

.carousel-section .slides > div > a {
    text-decoration: none;
}
  
  
.carousel-section .slider > a {
    display: inline-flex;
    width: 16px;
    height: 16px;
    background: var(--accent-color);
    text-decoration: none;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 0 0.5rem 0;
    position: relative;
}
.carousel-section .slider > a:active {
    top: 1px;
}
.carousel-section .slider > a:focus {
    background: #000;
}

/* ============== banking hub ============== */

.cb-swatch {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    display: block;
    margin-right: 10px;
}

.chart-breakdown--item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chart-breakdown--item:not(:last-child) {
    border-bottom: 1px solid var(--primary-gray);
}

.chart-breakdown--item .cb-label {
    display: flex;
    align-items: center;
}

.chart-breakdown--item:first-child .cb-swatch {
    background-color: var(--scam-type-1);
}
.chart-breakdown--item:nth-child(2) .cb-swatch {
    background-color: var(--scam-type-2);
}
.chart-breakdown--item:nth-child(3) .cb-swatch {
    background-color: var(--scam-type-3);
}
.chart-breakdown--item:nth-child(4) .cb-swatch {
    background-color: var(--scam-type-4);
}
.chart-breakdown--item:nth-child(5) .cb-swatch {
    background-color: var(--scam-type-5);
}
.chart-breakdown--item:nth-child(6) .cb-swatch {
    background-color: var(--scam-type-6);
}

/** ============ LINKS LIST =========== **/
.links-list--item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    text-underline-offset: 2px;
    text-decoration-color: var(--accent-color);
}
.links-list--item:last-child {
    margin-bottom: 0;
}
.links-list--item span {
    color: var(--accent-color);
    font-weight: bold;
}

.links-list--item svg {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    margin-left: 10px;
}

/** ============ image with blue text box on top ========= */
.image-with-text-box {
    position: relative;
}

.image-with-text-box p {
    position: absolute;
    bottom: 25px;
    left: 25px;
    width: calc(100% - 50px);
    font-size: 20px;
}

@media only screen and (max-width: 500px) {
    .image-with-text-box p {
        left: 5px;
        right: 5px;
        width: calc(100% - 10px);
        bottom: 5px;
        margin: 0 0 5px 0;
        font-size: 16px;
        line-height: 1.3;
    }
}

.slides.account-threats-slides a {
    color: var(--black) !important;
    text-decoration: none !important;
}

/* =============== video thumbnails =============== */
.video-thumbnail {
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px;
    margin-bottom: 25px;
}
.video-thumbnail.cream {
    background-color: var(--cream);
}
.video-thumbnail h2 {
    font-size: 35px;
}
.video-thumbnail p {
    font-size: 21px;
}

#safeguard-slide-1 .video-thumbnail h2 {
    margin: 100px auto 20px;
}
#safeguard-slide-1 .video-thumbnail p {
    margin: 20px auto 105px;
}

@media only screen and (max-width: 500px) {
    .video-thumbnail p {
        font-size: 14px;
    }
    .video-thumbnail h2 {
        font-size: 21px;
    }

    #safeguard-slide-1 .video-thumbnail h2 {
        margin: 25% auto 20px;
    }
    #safeguard-slide-1 .video-thumbnail p {
        margin: 20px auto 20%;
    }
}