@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');

:root {
    --main-colour: #2B3990;
    --accent-colour: #27AAE1;
    --pale-colour: #55C4F3;
    --off-white: #F0EDE3;
    --text-colour: #3D3D3D;
    --very-light-accent: #E3E3E3;
    --button-colour: #FF6600;
}

* {
    box-sizing: border-box;
    color: var(--text-colour);
    scroll-behavior: smooth;
}

html {
    scroll-behavior: smooth;
  }

body {
    font-family: "Roboto", sans-serif;
    margin: 0;
}

p a {
    color: var(--accent-colour);
    font-weight: 600;
    cursor: pointer;
}

p a:hover {
    color: var(--pale-colour)
}

/* Global Styling */
h1, h2, h3, h4, h5, h6 {
    color: var(--main-colour);
}

h2 {
    font-size: 46px;
}

.next-btn,
.back-btn {
    cursor: pointer;
}

@media (max-width: 890px) {
    h2 {
        font-size: 32px;
    }
}

/* Header */
header {
    max-width: 100vw;
    overflow-x: hidden;
}

.header-content {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

.mobile-title {
    display: none;
}

.mobile-title h1 {
    margin-top: 0;
}

.header-geometry {
    z-index: -1;
    position: absolute;
    top: 0;
    right: 0;
}

.logo-container {
    position: relative;
}

.logo-container .mobile-logo {
    display: none;
}

@media (max-width: 850px) {
    .logo-container {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .logo-container .mobile-logo {
        display: block;
    }

    .logo-container .desktop-logo {
        display: none;
    }
}

@media (max-width: 500px) {
    .logo-container img {
        height: auto;
        max-width: 70vw;
    }
}

/* Hero Section */
.hero {
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    justify-content: space-between;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 8px;
}

/* Making adjustments to spacing for non-main hero */
.alt-hero {
    margin: 24px auto 63px auto;
}

.alt-hero .hero-content {
    margin-left: 24px;
}

/* Changes for inverted hero */
.hero.inverted .hero-content {
    order: 2;
}

.hero.inverted .hero-image {
    order: 1;
}

.hero .hero-content {
    max-width: 460px;
}

.hero .hero-content h1 {
    font-size: 46px;
    font-style: normal;
    font-weight: 700;
    line-height: 50px; /* 108.696% */
}

.hero .hero-content p {
    font-size: 18px;
    line-height: 25px; /* 125% */
}

.hero .cta-button {
    margin: 32px 48px 0 0;
}

.hero .image-container {
    border-radius: 10px;
    box-shadow: 0px 1px 9px 0px rgba(61, 61, 61, 0.30);
    overflow: hidden;
    display: flex;
}

.hero .image-container.video video {
    width: 660px;
    height: 100%;
    pointer-events: none;
}

.hero .hero-image {
    max-width: 690px;
}

.hero img {
    width: 100%;
}

@media (max-width: 1176px) {
    .header-geometry {
        right: -200px;
    }
}

@media (max-width: 980px) {
    .header-geometry {
        right: -260px;
    }
}

@media (max-width: 890px) {
    .hero {
        flex-direction: column;
    }

    .mobile-title {
        display: flex;
        order: 1;
        text-align: center;
        font-size: 3vw;
    }
    
    h2 {
        text-align: center;
    }
    
    .hero-image {
        order: 2;
    }

    .alt-hero .hero-content {
        margin: 0;
    }

    .hero-content {
        order: 3;
        margin: 0 8px;
    }

    .mobile-title h1 {
        color: white;
        text-align: center;
    }

    .hero-content h1,
    .hero-content h2 {
        display: none;
    }

    .header-geometry {
        width: 100%;
        height: 67vh;
        object-fit: cover;
        object-position: 100%;
        right: 0;
    }

    .header-content {
        align-items: center;
        justify-content: center;
    }

    .hero .cta-button {
        display: none;
    }

    .hero .image-container.video video {
        width: 85vw;
        height: 100%;
    }

    .hero .hero-image {
        max-width: 460px;
    }
    
    .header-content {
        margin: 12px 0;
    }
}

@media (max-width: 500px) {

    .header-geometry {
        top: -20vh;
    }
    
    .hero .image-container.video video {
        width: 100%;
        height: 100%;
    }
}

/* Standard content row styling */
.content-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 20px 20px 48px 20px;
    position: relative;
    overflow: hidden;
}

/* Scrolling Cards Row Type */
.scrolling-cards-row.content-row {
    padding: 20px 0 48px 0;
    gap: 0;
}

.scrolling-cards-row {
    position: relative;
    overflow: hidden;
}

.scrolling-cards-row::after {
    content: "";
    background: var(--off-white);
    z-index: -1;
    height: 100%;
    width: 100%;
    top: 230px;
    left: 0;
    position: absolute;
}

.scrolling-cards-row .card-container {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 28px;
}

.scrolling-cards-row .card-scroller {
    width: 100%;
    margin-bottom: 52px;
    max-width: 1171px;
    position: relative;
    -ms-overflow-style: none; 
    scrollbar-width: none; 
}

.scrolling-cards-row .card-scroller::-webkit-scrollbar {
    display: none;
}

.card {
    max-width: 371px;
    height: 600px;
    margin: 0 14px;
}

.card-content {
    box-shadow: 0px 1px 9px 0px rgba(61, 61, 61, 0.30);
    height: 585px;
    margin: 0 7px;
    background: white;
    border-radius: 10px;
    overflow: hidden;
}

.card img {
    object-fit: cover;
    object-position: center;
    height: 370px;
}

.card p {
    padding: 20px;
    max-height: 166px;
    overflow: hidden;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px; /* 133.333% */
    margin: 0;
}

.scrolling-cards-row .next-btn {
    transform: rotate(180deg);
}

@media (max-width: 480px) {
    .scrolling-cards-row .card-scroller {
        grid-auto-columns: minmax(100%, 1fr);
    }

    .scrolling-cards-row .card {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .scrolling-cards-row .card-scroller img {
        object-position: center;
    }
}

/* Testimonial Strip */
.testimonial-row {
    display: flex;
    padding: 80px 20px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    background: var(--accent-colour);
}

@media (max-width: 700px) {
    .testimonial-row {
        padding: 40px 20px;
    }
}

.testimonial-row .testimonial-scroller {
    width: 100%;
    padding: 0 40px;
    max-width: 100%;
    position: relative;
    -ms-overflow-style: none; 
    scrollbar-width: none; 
}

@media (max-width: 600px) {
    .testimonial-row .testimonial-scroller {
        padding: 0 10px;
    }
}

.testimonial-row .testimonial-scroller::-webkit-scrollbar {
    display: none;
}

.testimonial-row .back-btn {
    transform: rotate(180deg);
}

.testimonial-row .next-btn {
    transform: rotate(0deg);
}

.testimonial-row * {
    color: white;
}

.testimonial {
    margin: 0 auto;
    width: 100%;
}

.testimonial .content {
    max-width: 970px;
}

.testimonial-with-image .content {
    margin-right: 70px;
}

.testimonial.testimonial-with-image .content,
.testimonial.testimonial-with-image .content .info {
    justify-content: flex-start;
}

.testimonial.testimonial-with-image p {
    text-align: left;
}

.testimonial-row p {
    text-align: center;
    font-size: 28px;
    line-height: 38px; 
    margin-top: 0;
}

.testimonial-row .name {
    font-size: 18px;
    line-height: 24px;
    text-align: center;
    margin: 0 18px 0 0;
}

.testimonial .info {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.testimonial {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.testimonial .mobile-image {
    display: none;
}

.testimonial img {
    width: 143px;
    height: auto;
}

@media (max-width: 1320px) {
    .scrolling-cards-row .card-scroller {
        width: 770px;
    }
}

@media (max-width: 890px) {
    .scrolling-cards-row .card-scroller {
        width: 371px;
    }

    .testimonial .name {
        max-width: 120px;
        text-align: left;
    }

    .testimonial img {
        width: 68px;
        height: auto;
    }

    .testimonial .mobile-image {
        display: block;
    }

    .testimonial .desktop-image {
        display: none;
    }

    .testimonial.testimonial-with-image p {
        text-align: center;
    }

    .testimonial.testimonial-with-image .content, 
    .testimonial.testimonial-with-image .content .info {
        justify-content: center;
    }

    .testimonial-with-image .content {
        margin-right: 0;
    }
}

/* FAQs Styling */
.faqs-section {
    max-width: 770px;
    width: 100%;
    padding: 20px;
    margin: 0 auto;
}  

.faq>a {
    display: block;
    border-bottom: 1px solid var(--very-light-accent);
    position: relative;
}

.faq:last-child>a {
    border-bottom: 0;
}

.faq>a::after {
    content: "";
    background-image: url('../img/simple-arrow-blue.svg');
    background-repeat: no-repeat;
    background-position: center;
    width: 24px;
    height: 24px;
    right: 0;
    top: 0;
    position: absolute;
    transform: rotate(180deg);
}

.faq.expanded>a::after {
    transform: rotate(270deg);
}

.faq h3 {
    font-size: 22px;
    font-weight: 700;
    line-height: 24px;
    margin: 20px 0;
    cursor: pointer;
}

.faq p {
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px; 
    margin: 8px 0;
}

.faq .expand-content {
    overflow: hidden;
    max-height: 0px;
    transition: max-height 0.5s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.faq.expanded .expand-content {
    max-height: 500px;
}

/* Button pinned to bottom on mobile */
.pinned-cta {
    position: sticky;
    bottom: 0;
    width: 100vw;
    background: var(--accent-colour);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 55px;
}

.pinned-cta a {
    text-decoration: none;
    color: white;
    text-align: center;
    font-size: 22px;
    font-weight: bold;
}

.cta-button {
    background: var(--button-colour);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    font-size: 26px;
    font-weight: bold;
    border-radius: 32px;
    padding: 13px 18px;
    text-decoration: none;
    width: 100%;
    max-width: 375px;
}

.pinned-cta::after,
.cta-button::after {
    content: "";
    background-image: url('../img/simple-arrow.svg');
    width: 24px;
    height: 24px;
    background-repeat: no-repeat;
    background-position: center;
    margin-left: 12px;
}

.cta-button:hover {
    border: 2.5px solid var(--main-colour);
    padding: 10.5px 15.5px;
}

.cta-button:hover::after {
    background-image: url('../img/simple-arrow-blue.svg');
    transform: rotate(180deg);
    margin-left: 4px;
}

@media (min-width: 768px) {
    .pinned-cta {
        display: none;
    }
}

@media (max-width: 420px) {
    .cta-button {
        font-size: 130%;
    }
}

@media (max-width: 310px) {
    .cta-button {
        font-size: 100%;
    }
}

/* Footer Styling */
footer {
    background: var(--main-colour);
    padding: 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

footer * {
    color: white;
}

footer hr {
    color: var(--accent-colour);
    border-top: 0;
    border-bottom: 1px solid var(--accent-colour);
    max-width: 1170px;
    width: 100%;
}

.logo-strip {
    display: flex;
    flex-flow: row wrap;
    align-items: center;
    justify-content: space-evenly;
    max-width: 970px;
    width: 100%;
    margin: 0 auto;
}

ul.footer-menu {
    display: flex;
    flex-flow: row wrap;
    align-items: center;
    justify-content: center;
    margin: 24px auto;
    gap: 18px;
    list-style-type: none;
    padding: 0;
}

ul.footer-menu a {
    font-size: 16px;
    line-height: 24px; /* 150% */
    text-decoration: none;
}

ul.footer-menu a:hover {
    color: var(--pale-colour);
}

footer .legal-info * {
    max-width: 1170px;
    font-size: 12px;
    line-height: normal;
    text-align: center;
    margin-top: 0;
}

.gc-logo,
.tp-logo {
    margin-top: 24px;
}

/* Flickity Styling */
.card-scroller .flickity-prev-next-button.next {
    right: -44px !important;
}

.card-scroller .flickity-prev-next-button.previous {
    left: -44px !important;
}

.flickity-button:focus,
.flickity-button:focus-visible {
    outline: 0;
}

.flickity-prev-next-button.next,
.flickity-prev-next-button.previous {
    background: none;
}

.flickity-prev-next-button.next:hover,
.flickity-prev-next-button.previous:hover {
    background: none;
}

@media (max-width: 700px) {
    .flickity-button {
        display: none;
    }
}

/*.flickity-viewport {
    overflow: visible !important;
    overflow-x: hidden !important;
} */