@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@100..900&display=swap");

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

:root {
    --yale-blue: #0f3979;
    --yale-blue-800: #0353ca;
    --brandies-blue: #0066ff;
    --light-blue: #418a90;
    --alice-blue: #e7f0fc;
    --seasalt: #f9f9f9;
    --eearie-black: #252525;
}

/* === Reset Default Style === */

html,
body {
    font-family: "Montserrat", sans-serif !important;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    color: var(--eearie-black);
    scroll-behavior: auto !important;
}

a {
    text-decoration: none !important;
}

/* === End of Reset Default Style === */

/* === Common Style === */

.breadcrumb-item {
    font-size: 13px;
    font-weight: 500;
}

.breadcrumb-item a {
    color: var(--eearie-black);
}

.breadcrumb-item a:hover {
    color: var(--yale-blue);
}

.main-title,
.secondary-title,
.tertiary-title {
    margin-bottom: 0;
}

.main-title {
    font-family: "Merriweather", serif;
    font-weight: 700;
    font-style: normal;
    font-size: 36px;
}

.secondary-title {
    font-family: "Merriweather", serif;
    font-weight: 700;
    font-style: normal;
    font-size: 32px;
}

.tertiary-title {
    font-family: "Merriweather", serif;
    font-weight: 700;
    font-style: normal;
    font-size: 28px;
}

.btn.main-button {
    background-color: var(--yale-blue);
    padding: 16px 34px;
    border-radius: 0;
    font-weight: 500;
    color: #fff;
}

.btn.main-button:hover,
.btn.main-button:first-child:active,
.btn.main-button.btn.show {
    background-color: #2c599d;
    color: #fff;
}

.btn.main-button:disabled,
.btn.main-button.disabled {
    background-color: var(--yale-blue-800);
    border-color: var(--yale-blue-800);
    color: #fff;
}

.btn.second-button {
    background-color: transparent;
    padding: 16px 34px;
    border-radius: 0;
    -webkit-border-radius: 0;
    -moz-border-radius: 0;
    -ms-border-radius: 0;
    -o-border-radius: 0;
    font-weight: 500;
    color: #ffffff;
    border: 1px solid #fff;
}

.btn.second-button:focus-visible,
.btn.second-button:hover {
    background-color: #fff;
    color: var(--yale-blue);
}

.nav-pills.c__nav-pills .nav-link.active {
    background-color: var(--yale-blue);
}

.nav-pills.c__nav-pills .nav-link {
    color: var(--eearie-black);
    font-weight: 500;
    padding: 18px;
}

.nav-pills.c__nav-pills .nav-link:hover {
    background-color: #e7f0fc;
    color: var(--yale-blue);
}

.nav-pills.c__nav-pills .nav-link.active:hover {
    background-color: #2c599d;
    color: #fff;
}

.form-check.c__form-check {
    background-color: #fff;
    padding: 14px 16px;
    border-radius: 6px;
    margin-right: 0;
}

.form-check.c__form-check .form-check-input:checked {
    background-color: var(--yale-blue);
    border-color: var(--yale-blue);
}

.form-check.c__form-check .form-check-input {
    margin-left: 0;
    margin-right: 0.5em;
}

.dropdown.c__dropdown .dropdown-toggle::after {
    display: none;
}

.chart-container {
    height: 350px;
    width: 100%;
}

.c__responsive-image {
    height: 300px !important;
}

.card.news-card {
    background-color: transparent;
    border: none;
    border-radius: 0;
    -webkit-border-radius: 0;
    -moz-border-radius: 0;
    -ms-border-radius: 0;
    -o-border-radius: 0;
}

.card.news-card .news-card-image {
    aspect-ratio: 3/2;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.card-title {
    font-family: "Merriweather", serif;
    font-size: 18px;
    font-weight: 600;
    line-height: normal;
}

.accordion-button:focus {
    box-shadow: none !important;
}

.accordion-item.c__accordion {
    border: 1px solid var(--alice-blue) !important;
}

.accordion-button:not(.collapsed) {
    background-color: var(--alice-blue) !important;
    color: var(--yale-blue) !important;
    font-weight: 500;
}

/* === End of Common Style === */

/* === Utilities === */

.flex-none {
    flex: none;
}

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

.bg-seasalt {
    background-color: var(--seasalt) !important;
}

.font-merriweather {
    font-family: "Merriweather", serif;
    font-style: normal;
}

.text-xs {
    font-size: 13px !important;
}

.text-sm {
    font-size: 14px !important;
}

.font-semibold {
    font-weight: 600 !important;
}

.text-yale-blue {
    color: var(--yale-blue);
}

.text-yale-blue-800 {
    color: var(--yale-blue-800);
}

.text-brandies-blue {
    color: var(--brandies-blue) !important;
}

.text-eearie-black {
    color: var(--eearie-black) !important;
}

.text-light-blue {
    color: var(--light-blue) !important;
}

.text-balance {
    text-wrap: balance;
}

.text-pretty {
    text-wrap: pretty;
}

.transition {
    transition: all 0.3s ease-in-out;
    -webkit-transition: all 0.3s ease-in-out;
    -moz-transition: all 0.3s ease-in-out;
    -ms-transition: all 0.3s ease-in-out;
    -o-transition: all 0.3s ease-in-out;
}

.inset-0 {
    inset: 0;
}

.inset-x-0 {
    left: 0px;
    right: 0px;
}

/* === End of Utilities === */

/* === Header === */

.nav-logo {
    width: 98px;
}

.btn.hamburger-menu:active {
    border-color: transparent !important;
}

.mobile-navlink {
    text-transform: uppercase;
    font-size: 18px;
    font-weight: 500;
    color: var(--eearie-black);
}

.mobile-sub-navlink {
    color: #3c3c3c;
    font-weight: 500;
}

.mobile-sub-navlink:hover {
    color: var(--yale-blue);
    text-decoration: underline !important;
}

.bi-chevron-down {
    transition: transform 0.2s ease-in-out;
    -webkit-transition: transform 0.2s ease-in-out;
    -moz-transition: transform 0.2s ease-in-out;
    -ms-transition: transform 0.2s ease-in-out;
    -o-transition: transform 0.2s ease-in-out;
}

.bi-chevron-down.show {
    transform: rotate(-180deg);
    -webkit-transform: rotate(-180deg);
    -moz-transform: rotate(-180deg);
    -ms-transform: rotate(-180deg);
    -o-transform: rotate(-180deg);
}

.c__secondary-navbar {
    top: 62px;
}

.c__secondary-navbar.scrolled {
    border-bottom: 1px solid #d9d9d9;
}

.c__secondary-navbar-link {
    padding: 12px 14px;
    font-size: 14px;
    font-weight: 600;
    color: var(--eearie-black);
    /* margin-right: 0.3rem; */
}

.c__secondary-navbar-link:last-child {
    margin-right: 0;
}

.c__secondary-navbar-link:hover {
    background-color: var(--seasalt);
}

.c__secondary-navbar-link.active {
    background-color: #e7f0fc;
    color: var(--yale-blue);
}

.hero-title {
    margin-top: 62px;
}
/* === End of Header === */

/* === */

.publication-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    background-color: var(--seasalt);
    border: 1px solid var(--seasalt);
    transition: all 0.1s ease-in-out;
    -webkit-transition: all 0.1s ease-in-out;
    -moz-transition: all 0.1s ease-in-out;
    -ms-transition: all 0.1s ease-in-out;
    -o-transition: all 0.1s ease-in-out;
}

/* .publication-card:hover {
    border: 1px solid var(--seasalt);
} */
/* === */

/* === Footer === */

.footer-logo {
    width: 100px;
}

.footer-link {
    color: var(--eearie-black);
    font-weight: 500;
}

.footer-link:hover {
    color: var(--yale-blue);
    text-decoration: underline !important;
}

.social-media a {
    color: #696969;
}

.social-media a:hover {
    color: var(--yale-blue);
}

/* === End of Footer === */

@media (min-width: 768px) {
    .chart-container {
        height: 450px;
    }

    .c__responsive-image {
        height: auto !important;
    }

    /* === */
    .publication-card {
        grid-template-columns: repeat(2, 1fr);
    }

    .card-title.c__card-title {
        font-size: 18px;
    }

    /* === */

    .c__secondary-navbar-link {
        margin-right: 0.5rem;
    }

    .c__secondary-navbar-link:last-child {
        margin-right: 0;
    }
}

@media (min-width: 1200px) {
    /* === Header on Desktop === */
    .header.scrolled .nav-logo-component {
        margin-bottom: -26px;
        visibility: hidden;
    }

    .header.scrolled .nav-items-top {
        margin-top: -30px;
        visibility: hidden;
    }

    .c__navbar-top-link {
        font-size: 12px;
        font-weight: 600;
        text-transform: uppercase;
        color: var(--eearie-black);
        border-color: var(--eearie-black);
        border-right: 1px solid var(--eearie-black);
    }

    .c__navbar-top-link:hover {
        color: var(--yale-blue);
        text-decoration: underline !important;
    }

    .c__navbar-top-item:last-child .c__navbar-top-link {
        border-right: none;
    }

    .c__navbar-top-item.dropdown:hover .c__navbar-top-dropdown-item {
        display: block;
    }

    .c__navbar-top-dropdown-item {
        display: none;
        width: max-content;
    }

    .c__navbar-top-dropdown-link {
        font-size: 14px;
        color: var(--eearie-black);
    }

    .c__navbar-top-dropdown-link:hover {
        color: var(--yale-blue);
        text-decoration: underline !important;
    }

    .c__nav-link {
        display: block;
        text-transform: uppercase;
        color: var(--eearie-black);
        font-weight: 600;
        font-size: 14px;
        padding-top: 15.5px;
        padding-bottom: 15.5px;
    }

    .mega-menu:hover .c__nav-link,
    .c__nav-link:hover {
        background-color: var(--seasalt);
        color: var(--yale-blue);
    }

    .mega-menu-content-link {
        color: var(--eearie-black);
        font-size: 15px;
    }

    .mega-menu-content-link:hover {
        color: var(--yale-blue);
        text-decoration: underline !important;
    }

    .mega-menu-item {
        position: absolute;
        left: 0;
        right: 0;
        width: auto;
        padding-top: 16px;
        display: none;
    }

    .mega-menu:hover .mega-menu-item {
        display: block;
    }

    .btn.nav-action-button {
        display: flex;
        padding: 17.5px;
        background-color: transparent;
        border-radius: 0;
        -webkit-border-radius: 0;
        -moz-border-radius: 0;
        -ms-border-radius: 0;
        -o-border-radius: 0;
    }

    .btn.nav-action-button:hover {
        background-color: var(--seasalt);
    }

    .table.mega-menu-table tbody tr:last-child {
        border-color: transparent !important;
    }

    .c__secondary-navbar {
        top: 70px;
    }

    .hero-title {
        margin-top: 100px;
    }

    /* === End of Header on Desktop === */
}

@media (min-width: 1024px) {
    .main-title {
        font-size: 48px;
    }

    .secondary-title {
        font-size: 40px;
    }

    .tertiary-title {
        font-size: 32px;
    }

    .card-title {
        font-size: 18px;
    }

    .card-title.c__card-title {
        font-size: 28px;
    }

    .c__secondary-navbar-link {
        padding: 14px 18px;
        font-size: 15px;
    }
}

@media (min-width: 1440px) {
    .main-title {
        font-size: 56px;
    }

    .chart-container {
        height: 400px;
    }
}
