:root {
    --primary: #056468;
    --dark: #12383D;
    --secondary: #7ACFD9;
    --tertiary: #E0486C;

}

body {
    font-family: 'Roboto', sans-serif;
}

p {
    color: var(--primary);
    font-size: calc(1rem + .6vw)
}

.im-dark-text {
    color: var(--dark) !important;
}

.display-1 {
    font-family: 'Libre Baskerville', sans-serif;

}

/* Remove all borders */
.navbar {
    border: 0 !important;
    padding-inline: 20px;
}

.navbar-brand img {
    height: 40px;
}

.navbar-nav .nav-link {
    border: 0 !important;
}

/* Desktop hover dropdown */
@media (min-width: 992px) {
    .navbar-nav .dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0;
    }

    .dropdown-menu {
        border: 0;
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    }

    /* Disable click on desktop */
    .dropdown-toggle {
        pointer-events: none;
    }

    .dropdown {
        pointer-events: auto;
    }
}

/* Mobile accordion-style dropdown */
@media (max-width: 991px) {
    .dropdown-menu {
        border: 0;
        background-color: #f8f9fa;
        padding-left: 1rem;
    }

    .dropdown-menu.show {
        animation: slideDown 0.3s ease-out;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            max-height: 0;
            overflow: hidden;
        }

        to {
            opacity: 1;
            max-height: 500px;
        }
    }

    .dropdown-toggle::after {
        transition: transform 0.3s ease;
    }

    .dropdown-toggle[aria-expanded="true"]::after {
        transform: rotate(180deg);
    }
}

/* Additional styling */
.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, .1);
}

/* Center navbar with fixed width elements on sides */
@media (min-width: 992px) {
    .navbar-brand {
        width: 200px;
    }

    .social-icons {
        width: 200px;
        justify-content: flex-end;
    }
}

.nav-link {
    padding: 0.3rem 1.2rem !important;
    transition: all 0.3s ease;
    border-radius: 30px;
    color: var(--primary);
}

.nav-link:hover {
    background-color: var(--primary);
    color: white !important;
}

.nav-link.hb {
    padding: 0.3rem 1.2rem !important;
    transition: all 0.3s ease;
    border-radius: 30px;
    color: var(--tertiary);
}

.nav-link.hb:hover {
    background-color: var(--tertiary);
    color: white !important;
}

.hb-btn {
    padding: 0.3rem 1.2rem !important;
    transition: all 0.3s ease;
    background-color: var(--tertiary);
    border-radius: 30px;
    color: white !important;
}

.hb-btn:hover {
    transform: scale(1.01);
    background-color: var(--tertiary);
    color: white !important;
}

.im-btn {
    padding: 0.3rem 1.2rem !important;
    transition: all 0.3s ease;
    background-color: var(--primary);
    border-radius: 30px;
    color: white !important;
}

.im-dark-bg {
    background-color: var(--dark) !important;
}

.im-btn:hover,
.im-btn:focus {
    transform: scale(1.01);
    background-color: var(--primary);
    color: white !important;
}

/* Social icons */
.social-icons {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: 1.5rem;
}

.social-icons .nav-link {
    background-color: var(--primary);
    color: white !important;
    font-size: 1em;
}

.social-icons a {
    color: var(--secondary);
    font-size: 1.25rem;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: var(--primary);
}

/* Hide social icons on mobile */
@media (max-width: 991px) {
    .social-icons {
        display: none;
    }
}

.footer {
    width: 100%;
    background-color: var(--primary);
}

.footer-logo img {
    max-width: 150px;
    width: 100%;
}

.footer-text p {
    color: white;
    margin-bottom: 0;
}

.footer-social i {
    font-size: 1.2em;
    color: white;
}

@media screen and (max-width: 991px) {

    .footer-text p {
        font-size: 12px;
        padding-inline: 2px;
    }
}

.hb-banner {
    font-family: 'Libre Baskerville', serif;
    aspect-ratio: 16 / 7;
    background-size: cover;
    background-position: bottom;
    height: fit-content;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: end;
    align-items: start;
    text-align: start;
    padding: 2rem 5rem;

}

.hb-banner .hb-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(224, 72, 107, 0.3);
    z-index: 1;
}

.header {
    font-family: 'Libre Baskerville', serif;
    display: flex;
    flex-direction: column;
    align-items: start;
    text-align: start;
    padding: 2rem 15px;
}

@media screen and (max-width: 1024px) {
    .header {
        padding: 1.5rem;
    }

}

@media screen and (max-width: 768px) {
    .header {
        padding: 1rem;
        aspect-ratio: auto;
    }
}

.hb-subheading {
    color: var(--tertiary);
    padding-block: 1.5rem;
    padding-bottom: 1rem;
    font-size: 2rem;
}

.hb-heading {
    padding-bottom: 1rem;
    font-size: 2.5rem;
}

.hb-abt-text {
    font-size: 1.5rem;
    color: var(--primary);
}

@media screen and (max-width: 768px) {
    .hb-subheading {
        font-size: 1.5rem;
        text-align: center;
    }

    .hb-heading {
        font-size: 2rem;
    }

    .hb-abt-text {
        font-size: 1.5rem;
    }
}

.hb-icon {
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;
    height: 100%;
    margin-inline: auto;
}

.hb-icon img {
    width: 100%;
    height: auto;
    max-width: 200px;
    padding: 20px;
}

.hb-icon-heading {
    font-size: 1.2rem;
    font-weight: bold;
    margin-top: 10px;
    text-align: center;
    margin-bottom: 0
}

.hb-icon-text {
    font-size: 1rem;
    text-align: center;
    padding: 0 10px;
    color: var(--primary);
}

@media screen and (max-width: 425px) {
    .hb-icon-heading {
        font-size: 1.0rem;
    }

    .hb-icon-text {
        font-size: .8rem;
    }
}

#values .hb-icon-heading {
    color: var(--tertiary);
}

.quote-wrapper {
    color: var(--primary);
    text-align: start;
    background-color: #ddcfac;
}

/* @media screen and (max-width: 768px) {
    .quote-wrapper {
        padding: 1rem 1rem;
    }

} */

.quote-wrapper img {
    width: 100%;
    height: auto;
}

.quote-text {
    font-family: 'Libre Baskerville', serif;
    font-size: 2rem;
    font-style: italic;
    padding: 4rem;
    padding-left: 6rem;
}

@media screen and (max-width: 768px) {
    .quote-text {
        padding: 2rem;
        width: 100%;
        font-size: 1.5rem;
    }
}

.join-img {
    width: 500px;
    margin-top: -100px;
}

@media screen and (max-width: 1024px) {
    .join-img {
        width: 400px;
        margin-top: 0;
    }

}

@media screen and (max-width: 768px) {
    .join-img {
        width: 100%;
        margin-top: 10px;
    }
}


.accordion-button {
    font-family: 'Libre Baskerville', serif;
}

.accordion {
    --bs-border-color: transparent;
}

.accordion-button {
    padding-block: 30px;
}

.accordion-button .display-1 {
    line-height: 1;
}

.accordion-button:focus {
    box-shadow: none !important;
    outline: none !important;
}

.accordion-button:not(.collapsed) {
    background-color: transparent !important;
    color: inherit !important;
    box-shadow: none !important;
    border: none !important;
}

.accordion-button {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.accordion-button:hover {
    background-color: transparent !important;
    color: inherit !important;
}

.line-divider {
    height: 2px;
    background-color: var(--primary);
    opacity: 0.5;
    margin-block: 30px;
}

#assoc p {
    color: white !important;
}

#about-accordion .accordion-button::after {
    width: 3rem;
    height: 3rem;
    background-size: 3rem;
}

#assoc .accordion-button.collapsed::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

#assoc .accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.mini-header-one,
.mini-header-two {
    margin-block: 2rem;
    color: white;
    padding: 0.75rem 2rem;
    position: relative;
    right: 50%;
    margin-right: calc(-50vw + 50%);
    border-radius: 1.5rem;
}

.mini-header-one {
    width: 48vw;
}

.mini-header-two {
    width: 54vw;
}

@media (max-width: 992px) {
    .mini-header-one {
        width: 65vw;
    }

    .mini-header-two {
        width: 70vw;
    }
}

@media (max-width: 576px) {

    .mini-header-one,
    .mini-header-two {
        padding: 0.75rem 1.25rem;
        border-radius: 1.25rem;
    }

    .mini-header-one {
        width: 70vw;
    }

    .mini-header-two {
        width: 90vw;
    }
}

@media (max-width: 320px) {
    .mini-header-one {
        width: 75vw;
    }

    .mini-header-two {
        width: 100vw;
    }
}

.bg-image {
    height: 600px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-block: 50px;
    position: relative;
}

.impact-img {
    position: absolute;
    top: -10%;
    right: 0;
    width: 100%;
    max-width: 500px;
}

@media (max-width: 1024px) {
    .impact-img {
        position: static;
        top: 0;
        width: 100%;
        max-width: none;
        margin-top: 20px;
    }
}

.service-img {
    position: absolute;
    top: -30%;
    right: 0;
    width: 100%;
    max-width: 500px;
}

@media (max-width: 1024px) {
    .service-img {
        position: static;
        top: 0;
        width: 100%;
        max-width: none;
        margin-top: 20px;
    }
}

.work-img {
    position: absolute;
    top: -10%;
    right: 0;
    width: 100%;
    max-width: 650px;
}

@media (max-width: 1024px) {
    .work-img {
        position: static;
        top: 0;
        width: 100%;
        max-width: none;
        margin-top: 20px;
    }
}


.contact-form {
    padding-inline: 50px;
    color: #AAD1D1
}

.contact-form input {
    width: 100%;
    height: 40px;
    background: #F2F2F2;
    border: none
}

.contact-form textarea {
    width: 100%;
    background: #F2F2F2;
    border: none
}

.contact-form select {
    width: 100%;
    height: 45px;
    padding: 1px 2px;
    background: #F2F2F2;
    border: none
}

.contact-form option {

    background: #F2F2F2;
    border: none
}

.contact-form select:invalid {
    color: #CCCCCC;
}

.contact-form label {
    padding-top: 10px
}

@media screen and (max-width: 990px) {
    .contact-text {
        padding-inline: 5px;
    }

    .contact-form {
        padding-inline: 5px;
    }
}

.main-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
}

.main-card img {
    max-width: 100px;
    height: auto;
    margin: 20px;
}

.main-card p {
    color: var(--dark);
}

.main-card:hover {
    cursor: pointer;
    background-color: var(--dark) !important;
    color: white !important;

}

.main-card:hover p {
    color: white !important;
}

.bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(5, 101, 104, .5);
    z-index: 1;
}

.logo-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    align-items: center;
    justify-items: center;
}

.logo-grid img {
    width: 100%;
    max-width: 100px;
    /* Limits image size on desktop */
    height: auto;
}

.publication .text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 1200px;
    margin-inline: auto;
    padding-block: 50px;
    font-size: 16px;
    color: #0e7277;
}

.publication img {
    width: 100%;
    height: auto;
}

.publication .posts {
    padding: 30px
}

.publication .posts .text2 {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    font-weight: 600;
    padding-block: 5px;
}

.publication .posts .text2 span:nth-child(1) {
    color: #0e7277;
}

.publication .posts .text2 span:nth-child(2) {
    color: #cccccc;
}

.publication .posts .btn-group {
    max-width: 100%;
    white-space: normal;

}

.publication .posts .btn-group .btn {
    color: #cccccc;
    padding-block: 5px;
    border-color: #cccccc;
    padding-inline: 7px;
    line-height: normal;
    border-radius: 0;
}

.publication .posts .btn-group .btn:nth-child(1) {
    color: var(--lt);
    background-color: #cccccc;
}

.publication .posts .btn-group .btn:nth-child(2) {
    color: #cccccc;
}

.publication .posts .btn-group .btn:hover {
    color: white;
    background: #cccccc;
}

.publication .filter-box {
    display: flex;
    flex-direction: row;
    padding-block: 30px;
    justify-content: space-between;
}

.publication .filter-box .filter,
.publication .filter-box .sorter {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 20px;
    /* padding-block: 20px; */
}

@media screen and (max-width: 768px) {

    .publication .filter-box .filter {
        flex-wrap: wrap;
        justify-content: start;
        width: 100%;

    }

    .publication .filter-box .sorter {
        justify-content: end;
        width: 100%;
    }

    .publication .filter-box {
        gap: 20px;
        flex-wrap: wrap;
        padding-inline: 10px;
        justify-content: end;
    }

    .publication .posts {
        padding: 0px !important;
    }

}

.filter .form-select,
.publication .filter-box .filter .search,
.publication .filter-box .filter .btn {
    border-radius: 0;
    border: 1px solid var(--secondary);
    background-color: white;
    color: #cccccc;
}

.publication .filter-box .filter .input-group {
    min-width: 200px;
}

.iman-btn {
    color: #0e7277;
    padding-block: 8px;
    border-color: #0e7277;
    font-weight: bold;
    padding-inline: 15px;
    line-height: normal;
    border-radius: 0;
}

.iman-btn:hover {
    color: white;
    background: #0e7277;
}

.media .media-item {
    padding: 20px;
    display: flex;
    justify-content: center;
    width: 20%;
}

.media p {
    font-size: 16px;
}

.media .media-item img {
    width: 100%;
    max-width: 100px;
    filter: grayscale(100%);
    transition: filter 0.1s ease;
}

.media .media-item:hover img {
    filter: grayscale(0%);
}

@media screen and (max-width: 990px) {
    .media .media-item {
        padding: 25px;
        width: 33.3%;
    }
}

.pub-title {
  display: block;          /* or inline-block */
  white-space: nowrap;     /* prevent line break */
  overflow: hidden;        /* hide overflow */
  text-overflow: ellipsis; /* show ... */
  max-width: 100%;         /* required */
}