/********************************
Bootstrap Variables Override
**********************************/
:root {
    /* Replace your primary color from your UI Kit */
    --bs-primary: #90DEDE;

    /* Replace your secondary color from your UI Kit  */
    --secondary-color: #6C757D;
    --bg-teal: #90DEDE;

    /* Replace the main body font from your UI Kit */
    --bs-font-sans-serif: 'Inter', verdana, sans-serif;

    /* Optional: Replace gradient from your UI Kit */
    --bs-gradient: linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0));
}

.py-3 {
    padding-top: 0;
    padding-bottom: 0;
}

.bg-teal {
    background-color: var(--bg-teal);
}

.object-fit-contain {
    object-fit: contain;
}

.object-fit-cover {
    object-fit: cover;
}

.object-fit-fill {
    object-fit: fill;
}

.object-fit-scale {
    object-fit: scale-down;
}

.object-fit-none {
    object-fit: none;
}

/* make sure your video has some size for object-fit to work */
video {
    display: block;
    width: 100%;
    height: auto;
}

/********************************
Global Styles and UI Components
**********************************/
body {
    background-color: var(--bg-teal);
}

.navbar {
    background-color: var(--bs-white);
    /* Optional: Stretch the navbar across the full width */
    width: 100%;

    /* Optional: Add inner spacing to the navbar */
    padding: 1rem;
}

.nav-link {
    color: #000;
}

footer {
    /* Change footer background color */
    background-color: var(--bs-white);
    /* Optional: Change footer text color to white using variable */
    color: var(--bs-dark);
    /* Optional: Center footer elements */
    text-align: center;
}

footer p {
    color: #000;
}

footer .footer-social {
    /* Optional: Change size of footer icon */
    width: 24px;
    margin: .5rem
}

.btn-primary {
    /* Optional: Change primary button background color to primary color */
    background-color: var(--bs-primary);
    /* Optional: Remove primary button outline */
    border: none;
}

.btn-primary:hover {
    /* Optional: Change primary button hover state background and text color  */
    background-color: var(--secondary-color);
    color: var(--bs-dark);
}

/********************************
Typography
**********************************/
/* Hero sub-headline styling */
.hero__subheadline {
    font-family: 'Inter', sans-serif;
    font-style: italic;
    font-weight: 500;
    /* Medium */
    font-size: 28px;
    line-height: 1.2;
    text-align: center;
    /* if you want it centered under your hero image */
    margin: 20px auto;
    /* centers the p within its container */
    max-width: 800px;
    /* so very long lines wrap comfortably */
    color: #54595e;
    /* adjust to taste */
}

h1,
h2,
h3,
h4,
h5,
h6 {
    /* Optional: Add letter spacing to all headings */
    letter-spacing: 0.0rem;
    /* Optional: Adjust font-weight to all headings */
    font-weight: 800;
}

h2 {
    /* Optional: Adjust font-size of heading 2 */
    font-size: 2rem;
}

.display-1 {
    /* Optional: Customizes display-1 style based on my Figma UI kit */
    font-weight: 800;
    font-size: 4.5rem;
    line-height: 100%;
    letter-spacing: -0.2rem;
}

.display-2 {
    /* Optional: Customizes display-2 style based on my Figma UI kit */
    font-weight: 700;
    font-size: 2.75rem;
    line-height: 100%;
    letter-spacing: -0.2rem;
}

.kicker {
    /* Optional: Establish new custom text style class called "kicker" */
    text-transform: uppercase;
    font-weight: 400;
    font-size: 1.25rem;
}

/* Main Page Title */
h1 {
    font-size: 56px;
    /* 56–64px */
    font-weight: 700;
    /* Bold */
    line-height: 1.2;
}

/* Section Title */
h2 {
    font-size: 36px;
    /* 36–40px */
    font-weight: 700;
    /* Bold */
    line-height: 1.3;
}

/* Subsection / Card Title */
h3 {
    font-size: 24px;
    /* 24–32px */
    font-weight: 600;
    /* Semi-Bold */
    line-height: 1.4;
}

/* Paragraph Body */
p {
    font-size: 18px;
    /* 18px */
    font-weight: 400;
    /* Regular */
    line-height: 1.6;
}

/* Subheadline / Lead-in Text (not a heading) */
.lead-in {
    font-size: 26px;
    /* 24–28px */
    font-weight: 400;
    /* Regular/Medium */
    line-height: 1.4;
}

/* Captions / Quotes */
blockquote,
.caption {
    font-size: 18px;
    /* 16–22px */
    font-style: italic;
    font-weight: 500;
    /* Medium */
    line-height: 1.5;
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {

    /* Optional: Customize responsive style for display-1 on small devices and larger */
    .display-1 {
        font-size: 4rem;
    }
}

img,
video {
    max-width: 100%;
    height: auto;
}

figcaption {
    text-align: center;
    font-size: 14px;
    margin-top: 5px;
}

.hero {
    /* width: 1320px; */
    margin: 0 auto;
}

.hero h1 {
    /* width: 13ch; */
    margin: 20px auto;
}

section {
    padding: 6em 0;
}

.card img {
    width: 100%;
    height: auto;
}

footer {
    background-color: var(--bs-white);
    display: flex;
    justify-content: space-between;
    padding: 1em;
    color: #ffffff;
}

svg {
    color: #000;
    width: 25px;
    height: 25px;
    padding: .2em;
}

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

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

/* GRID */
.row {
    --gridgap: 1em;
}

.row2 {
    --gridgap2: 0em;
}

.row>* {
    margin-top: var(--gridgap);
    margin-bottom: var(--gridgap);
}

.row2+.row2 {
    margin-top: var(--gridgap2);
    margin-bottom: var(--gridgap2);
}

@media (min-width: 768px) {

    /* still use “.row” for your old 12-col layout */
    .row {
        display: grid;
        grid-template-columns: repeat(12, 1fr);
        gap: var(--gridgap);
    }

    /* this is your cards container — auto-fit and center it */
    .resources-row {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        justify-content: center;
        gap: var(--gridgap);
    }
}

/* COMMONLY USED SEMANTIC COLUMN WIDTHS */
.one-half {
    grid-column: auto / span 6;
}

.one-third {
    grid-column: auto / span 4;
}

.two-thirds {
    grid-column: auto / span 8;
}

.one-fourth {
    grid-column: auto / span 3;
}

.three-fourths {
    grid-column: auto / span 9;
}

/* 12 COLUMN CLASSES */
.col-1 {
    grid-column: auto / span 1;
}

.col-2 {
    grid-column: auto / span 2;
}

.col-3 {
    grid-column: auto / span 3;
}

.col-4 {
    grid-column: auto / span 4;
}

.col-5 {
    grid-column: auto / span 5;
}

.col-6 {
    grid-column: auto / span 6;
}

.col-7 {
    grid-column: auto / span 7;
}

.col-8 {
    grid-column: auto / span 8;
}

.col-9 {
    grid-column: auto / span 9;
}

.col-10 {
    grid-column: auto / span 10;
}

.col-11 {
    grid-column: auto / span 11;
}

.col-12 {
    grid-column: auto / span 12;
}

/* COMMONLY CENTERED COLUMNS */
.one-half.centered {
    grid-column: 4 / span 6;
}

.one-third.centered {
    grid-column: 5 / span 4;
}

.two-thirds.centered {
    grid-column: 3 / span 8;
}

/* PUSHES */
.push-1 {
    grid-column-start: 2;
}

.push-2 {
    grid-column-start: 3;
}

.push-3 {
    grid-column-start: 4;
}

.push-4 {
    grid-column-start: 5;
}

.push-5 {
    grid-column-start: 6;
}

.push-6 {
    grid-column-start: 7;
}

.push-7 {
    grid-column-start: 8;
}

.push-8 {
    grid-column-start: 9;
}

.push-9 {
    grid-column-start: 10;
}

.push-10 {
    grid-column-start: 11;
}

.push-11 {
    grid-column-start: 12;
}

/* SWAP (REVERSE) COLUMNS - WORKS ONLY w/ 2 CHILDREN  */
.row.swapped>*:first-child {
    order: 2;
}

.row.swapped>*:last-child {
    order: 1;
}

.col {
    columns: 2;
}

@media (min-width: 768px) {
    .social-links {
        display: flex;
        justify-content: end;
        padding: 5em 0 0 0;
    }
}

.hang {
    text-indent: -.4em;
    hanging-punctuation: first;
    /* background-color: #eee; */
}

.caps {
    text-transform: uppercase;
    font-size: .8em;
}

/* ------------------- */
/* ---- ACCORDION ---- */
/* ------------------- */

.accordion {
    .accordion-item {
        border-bottom: 1px solid var(--bg-teal);

        button[aria-expanded="true"] {
            border-bottom: 1px solid var(--orange);
        }
    }

    button {
        position: relative;
        display: block;
        text-align: left;
        width: 100%;
        padding: 1em;
        color: --text;
        font-size: 1.15rem;
        font-weight: 400;
        border: none;
        border-block-end: solid;
        writing-mode: horizontal-tb;
        background: none;
        outline: none;

        &:hover,
        &:focus {
            cursor: pointer;
            color: var(--orange);

            &::after {
                cursor: pointer;
                color: var(--orange);
                border: 1px solid var(--orange);
            }
        }

        .accordion-title {
            padding: 1em 1.5em 1em 0;
            font-family: var(--font-body);
        }

        .icon {
            display: inline-block;
            position: absolute;
            top: 18px;
            right: 0;
            width: 22px;
            height: 22px;
            border: 1px solid;
            border-radius: 22px;

            &::before {
                display: block;
                position: absolute;
                content: "";
                top: 9px;
                left: 5px;
                width: 10px;
                height: 2px;
                background: currentColor;
            }

            &::after {
                display: block;
                position: absolute;
                content: "";
                top: 5px;
                left: 9px;
                width: 2px;
                height: 10px;
                background: currentColor;
            }
        }
    }

    button[aria-expanded="true"] {
        color: var(--orange);

        .icon {
            &::after {
                width: 0;
            }
        }

        +.accordion-content {
            opacity: 1;
            max-height: 20em;
            transition: all 200ms linear;
            will-change: opacity, max-height;
        }
    }

    .accordion-content {
        opacity: 0;
        max-height: 0;
        overflow: hidden;
        transition: opacity 200ms linear, max-height 200ms linear;
        will-change: opacity, max-height;

        p {
            font-size: 1em;
            font-weight: 300;
            margin: 2em 0;
        }
    }
}

/* 1) make the gallery container a flex-wrap grid and center it */
.gallery>.container>div {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

/* 2) force every <a> to be the same thumbnail box */
.gallery .container>div>a {
    display: block;
    width: 300px;
    /* pick your ideal thumbnail width */
    height: 200px;
    /* pick your ideal thumbnail height (or use aspect-ratio) */
    overflow: hidden;
    /* crop anything sticking out */
}

/* 3) fill that box with the image, cropping/centering it */
.gallery .container>div>a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pTop {
    padding-top: .5em;
}