:root {
    --highlight-color: #80ceca;
}

html {
    scroll-behavior: smooth;
}

a.soc-tiktok::before {
    content: url(/theme/img/tiktok.svg);
    display: block;
    width: 15px;
    filter: invert(93%) sepia(100%) saturate(0%) hue-rotate(248deg) brightness(106%) contrast(106%);
}

.greylinks > a.soc-tiktok::before {
    opacity: .8;
}

a:hover.soc-tiktok::before {
    transition: .4s;
    filter: invert(54%) sepia(7%) saturate(5517%) hue-rotate(176deg) brightness(74%) contrast(91%);
}

.greylinks > a:hover.soc-tiktok::before {
    filter: invert(93%) sepia(100%) saturate(0%) hue-rotate(248deg) brightness(106%) contrast(106%);
    transition: .4s;
    opacity: 1;
}

.category-link {
    border: 1px solid var(--highlight-color);
    border-radius: 3rem;
    color: var(--highlight-color);
    padding: .5rem 1rem;
    margin-inline: .5rem;
}

.category-link:hover {
    color: white !important;
    background-color: var(--highlight-color);
}

.category-link.active {
    color: white;
    background-color: var(--highlight-color);
}

.blog-wrapper {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column-reverse;
}

.blog-wrapper.show {
    flex-direction: column;
}

.category-menu {
    position: sticky;
    top: 150px;
}

.new-posts-menu {
    position: sticky;
    top: 150px;
}

@media (min-width: 520px) {
    .new-post-preview {
        display: inline-block;
        max-width: 48%;
    }
}

@media (min-width: 1200px) {
    .blog-wrapper {
        flex-direction: row;
    }

    .new-post-preview {
        max-width: 100%;
    }
}

@media (min-width: 993px) and (max-width: 1900px) {
    #app-slide {
        text-align: end;
    }
}

.our-app-wrapper.collapsed {
    height: max-content;
}

#our-app-img {
    opacity: 1;
}

.our-app-wrapper.collapsed #our-app-img {
    opacity: 0;
}

.our-app-wrapper.collapsed .button-wrapper {
    position: static;
}

.our-app-wrapper.collapsed button {
    margin-top: 1rem;
}


.outer-section-wrapper {
    height: 0;
    width: 100%;
    justify-content: center;
    display: flex;
    opacity: 0;
    transform: scale(0);
    transition: opacity 0.6s ease, height .6s ease;
}

.outer-section-wrapper.visible {
    scroll-margin-top: 50px;
    min-height: calc(100dvh - 50px);
    height: max-content;
    padding-block: 1rem;
    opacity: 1;
    transform: scale(1);
    transition: opacity 1.5s ease, transform 1.5s ease;
}

.section-wrapper {
    max-width: 1700px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.outer-section-wrapper.darker {
    background-color: #8BBEB9;
}

.section-wrapper > .text-content {
    margin-top: 2rem;
    padding-inline: 3rem;
}

.section-wrapper > .text-content > .text-wrapper > p {
    font-size: 2rem;
    font-weight: 500;
}

@media (min-width: 720px) {
    .section-wrapper {
        flex-direction: row;
    }

    .outer-section-wrapper.darker > .section-wrapper {
        flex-direction: row-reverse;
    }

    .section-wrapper > img {
        max-width: 50%;
        padding-inline: 2rem;
    }

    .section-wrapper > .text-content {
        max-width: 50%;
    }
}

@media (min-width: 993px) {
    .section-wrapper > .text-content > .text-wrapper {
        max-width: 70%;
        margin-inline: auto;
    }
}


.our-app-wrapper {
    height: calc(100dvh - 50px);
    max-width: 100%;
    position: relative;
}

.our-app-img {
    max-width: 100%;
    max-height: 70%;
    width: auto;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.button-arrow-down {
    width: 60px;
    height: 60px;
    overflow: hidden;
    position: relative;
    text-decoration: none;
    font-size: 0;
    color: transparent;
    background-color: #80ceca;
    opacity: 0.7;
    border: none;
    border-radius: 100%;


    transition: background-color .4s ease-in-out;
}

.button-arrow-down::after {
    color: #ffffff;
    content: '\f107';
    font-size: 4rem;
    line-height: 6rem;
    font-family: 'FontAwesome';
    text-align: center;
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    -webkit-transition: all 0.2s linear;
    transition: all 0.2s linear;
}

#sections-toggle-button.open {
    /*remove to make section expandable again*/
    display: none;
}

.open.button-arrow-down::after {
    font-family: 'FontAwesome';
    content: '\f106';
    display: none;
}

.darker .button-arrow-down {
    background-color: #ffffff;
}

.darker .button-arrow-down::after {
    color: #80ceca;
}

.button-arrow-down:hover,
.button-arrow-down:active,
.button-arrow-down:focus {
    color: #ffffff !important;
    background-color: #40a6a0;
}

.button-arrow-down:hover::after,
.button-arrow-down:active::after,
.button-arrow-down:focus::after {
    color: #ffffff;
}

.our-app-wrapper > .button-wrapper {
    position: absolute;
    bottom: 5rem;
    left: 0;
    right: 0;
}

.partner-item {
    display: flex;
    gap: 2.5rem;
    padding: 1rem;
    margin-block: 2rem;
    flex-wrap: wrap;
    background-color: #80ceca;
    border-left: 4px solid #40a6a0;
    color: white;
}

@media (min-width: 768px) {
    .partner-item {
        flex-wrap: nowrap;
    }
}

.partner-image-section {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    min-width: 200px;
}

.partner-image-section a {
    margin-top: 1rem;
    font-weight: 600;
    color: white;
    transition: color .3s ease-in;
}
.partner-image-section a:hover {
    text-decoration: underline;
    color: #40a6a0;
    transition: color .3s ease-out;
}

.partner-image {
    object-fit: contain;
    height: 150px;
    max-width: unset;
    aspect-ratio: 4/3;
}

.partner-text-section {
    display: flex;
    flex-direction: column;
}

.partner-text-section h3 {
    font-size: 3rem;
    color: white;
    font-weight: 600;
}

.partner-text-section h4 {
    font-size: 2rem;
    color: white;
}

.footer-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 1.5rem;
}
.heading-image {
    max-height: 500px;
    object-fit: contain;
}
.about-heading {
    margin-bottom: 2rem;
}
.about-section {
    max-width: 70ch;
    font-size: 1.6rem;
    margin-inline: auto;
}
.about-text {
    font-size: 2rem;
    text-align: left;
}
#about-us {
    background-attachment: fixed;
    background-size: cover;
    background-position: 50% 0;
    background-repeat: no-repeat;
    position: relative;
    background-color: #80cbc4;
    color: #ffffff;
}
#about-us::after {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    background-color: #80cbc4;
    opacity: 0.90;
}

.language-switcher-dropdown {
    position: relative;
    display: inline-block;
}

.greylinks {
    display: flex;
    align-items: center;
    justify-content: end;
}


.lang-switcher-button {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 2rem;
    padding: 0;
    line-height: 1;
    transition: transform 0.2s ease;
    margin-right: 15px;
}

.lang-switcher-button:hover {
    transform: scale(1.1);
}

.lang-dropdown-menu {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    background: #ffffff;
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.language-switcher-dropdown:hover .lang-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    text-decoration: none;
    transition: background-color 0.2s ease;
    font-size: 1.8rem;
}

.lang-option:first-child {
    border-radius: 5px 5px 0 0;
}

.lang-option:last-child {
    border-radius: 0 0 5px 5px;
}

.greylinks a.lang-option:hover {
    background-color: #f5f5f5;
    color: #333333;
}

.lang-option.active {
    background-color: #80ceca;
    color: #ffffff;
    font-weight: 600;
}

.lang-option.active:hover {
    background-color: #40a6a0;
    color: #ffffff;
}

.lang-flag {
    font-size: 2rem;
    line-height: 1;
}

.lang-name {
    font-size: 1.4rem;
}

.greylinks a.lang-option {
    color: black;
    text-decoration: none; /* optional, removes underline */
}

.greylinks a.lang-option.active {
    color: white;
}
