/*
    MAIN
    Bundled after Bootstrap and animate.css (src/index.tsx), in that order, as when they were three <link> tags.
*/

/* The fonts are in public/styles/fonts/ (WOFF2, converted from the TTF files with the same glyphs), at fixed
   addresses so index.html can preload the two that the first screen uses (AndaleMono, DinaBPN). */
@font-face {
    font-family: 'AndaleMono';
    src: url('/styles/fonts/andale-mono.woff2') format('woff2');
}

@font-face {
    font-family: 'DINCondensedBold';
    src: url('/styles/fonts/din-condensed-bold.woff2') format('woff2');
}

@font-face {
    font-family: 'DinaBPN';
    src: url('/styles/fonts/dinabpn.woff2') format('woff2');
}

:root {
    --base-color-white: white;
    --base-color-red: rgba(236, 0, 0, 1);
    --base-color-black: black;
    --base-color-gray: #2D2D2D;
}

.text-white {
    color: var(--base-color-white);
}

.text-red {
    color: var(--base-color-red);
}

.text-black {
    color: var(--base-color-black);
}

.text-gray {
    color: var(--base-color-gray);
}

.font-dinabpn {
    font-family: DinaBPN;
    font-style: normal;
    font-weight: normal;
}

.font-andele {
    font-family: AndaleMono;
    font-style: normal;
    font-weight: normal;
}

.font-xlarge {
    font-size: 3.75em; /* 60px */
}

.font-large {
    font-size: 2.6875em; /* 43px */
}

.font-medium {
    font-size: 2.1875em; /* 35px */
}

.font-small {
    font-size: 1.5em; /* 24px */
}

.font-xsmall {
    font-size: 1.25em; /* 20px */
}

body {
    background-image: url("/assets/images/noisy_back.jpg");
    color: var(--base-color-white);
    font-family: AndaleMono;
    font-size: 16px; /* this is the only direct font-size specifier, we use 'em' for the rest */
}

/* Headings mark the page structure for search engines and screen readers; they look like the element they replaced
   (page titles, section titles), styled by their classes, not by Bootstrap's heading sizes and margins. */
h1, h2, h3, h4, h5, h6 {
    margin: 0;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
}

/* A section title inside a blog post: like the bold paragraph it was */
.content-heading {
    font-weight: bolder;
    margin-bottom: 1rem;
}

html {
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: white;
}

.pointer {
    cursor: pointer;
}

.hidden-minimized {
    width: 0;
    height: 0;
    overflow: hidden;
}

.paragraph {
    display: flex;
    flex-direction: column;
    gap: 3em;
}

html, body {
    max-width: 100vw;
    overflow-x: hidden;
}

.disable-text-selection {
    -webkit-user-select: none;
    /* Safari */
    -ms-user-select: none;
    /* IE 10 and IE 11 */
    user-select: none;
    /* Standard syntax */
}

/*
    BLOG
*/

.page-heading-container {
    padding-top: 8em;
    padding-bottom: 3em;
}

.blog-img-container {
    width: 5rem;
    height: 2rem;
}

.blog-entry.page-view {
    max-width: 960px;
}

.blog-entry.page-view > div.row {
    flex-direction: column !important;
}

.blog-entry.page-view > div.row > div {
    width: 100% !important;
}

.blog-entry.page-view .blog-entry-thumbnail {
    margin-top: 10em;
    margin-bottom: 10em;
}

/*
    BOOTSTRAP OVERRIDES
*/

.navbar-toggler {
    border: none !important;
    position: relative;
}

/* The hamburger button and its menu (HP-063: the menu used to be inside the button). The wrapper has the button's
   box and gives the menu what it inherited from the button (Bootstrap's .navbar-toggler and reboot): the menu's
   position (right: 0, top: calc(1.5em + 15px)), its size and the sub entries' normal case stay as they were. */
.navbar-toggler-wrapper {
    position: relative;
    display: flex;
    font-size: var(--bs-navbar-toggler-font-size);
    line-height: 1;
    color: var(--bs-navbar-color);
    text-transform: none;
}

.navbar-logo {
    width: 250px;
}

/* the mobile logo is a link to the home page; the link takes the image's place in the bar */
.navbar-logo-link {
    display: flex;
}

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

.nav-link {
    font-size: 14px;
    /* this should not be relative */
    font-weight: normal;
    font-style: normal;
}

.navbar-nav {
    --bs-nav-link-color: white;
    --bs-nav-link-hover-color: #ffffffb9
}

.navbar-menu-expand-animation {
    overflow: hidden;
    animation: navBarMenuExpanding 250ms forwards;
}

.navbar-menu-collapse-animation {
    overflow: hidden;
    animation: navBarMenuCollapsing 250ms forwards;
}

@keyframes navBarMenuExpanding {
    from {        
        height: 0;        
    }

    to {
        height: calc(30px * 10 + 16px); /* 30px per row: MENU_ITEMS and their children (src/data/menuItems.ts) */
    }
}

@keyframes navBarMenuCollapsing {
    from {
        height: calc(30px * 10 + 16px); /* 30px per row: MENU_ITEMS and their children (src/data/menuItems.ts) */
    }

    to {
        height: 0;       
    }
}

/*
    COMPONENTS
*/

#animated-logo {
    position: absolute;
    cursor: default;
    z-index: -1;

    top: -200px;
    right: -230px;
    width: 600px;
}

.animated-logo-container {
    position: absolute;
    width: 100vw;
    height: 400px;
    overflow-x: hidden;
    overflow-y: hidden;
}

.spiderMenu {
    text-align: center;
    margin: 0 120px;
    height: 450px;
    max-height: 80vw; /* 'vw' is used intentionally */
    position: relative;
    touch-action: none;
}

/* 
    HOME
*/

.we-are-header {
    margin-bottom: 2em;
}

.wwdo-container {
    position: relative;
}

.ourservices-container {
    margin-top: 80px;
    max-width: 1550px;
    padding-bottom: 80px;
}

.red-container {
    background-color: var(--base-color-red);
    color: var(--base-color-white);
    padding: 40px;
}

.white-container {
    background-color: var(--base-color-white);
    color: var(--base-color-red);
    padding: 40px;
}

/* The tiles stay hidden until their entrance animation starts (MainLayout), but only when JavaScript runs: index.html
   puts the "js" class on <html>. Without JavaScript (crawlers, the pre-rendered HTML alone) they are visible. */
.js .red-container,
.js .white-container {
    opacity: 0;
}

.wwd-header {
    width: 500px;
    padding-top: 25px;
}

.wwd-header-container {
    width: 490px;
    transform: rotate(-10deg);
}

.datavis-container {
    width: 380px;
    transform-origin: center;
    transform: translateX(-44px) translateY(-250px) rotate(-10deg);
}

.etlast-container {
    width: 605px;
    transform: rotate(-10deg) translateX(0px) translateY(-277px);
}

/* the SchemaVortex tile's logo (an SVG without a fixed size): as tall as the other tiles' logos */
.schemavortex-logo {
    max-height: 65px;
    width: auto;
}

.selfservice-container {
    width: 500px;
    transform: rotate(-10deg) translateX(91px) translateY(-445px);
}

.workshops-container {
    width: 520px;
    transform: rotate(-10deg) translateX(90px) translateY(-536px);
}

.empty-container {
    width: 500px;
}

.empty-container-1 {
    transform: rotate(-10deg) translateX(90px) translateY(25px);
}

.appdev-container {
    width: 520px;
    transform: rotate(-10deg) translateX(173px) translateY(-535px);
}

.topic-separator {
    border-top-color: var(--base-color-white);
    border-top-width: 1px;
    border-top-style: solid;
    opacity: 1;
}

.technologies-container {
    background-color: var(--base-color-red);
    margin-top: -1px;
}

.techlogos {
    margin-left: 100px;
    margin-right: 100px;
}

.techlogos-container {
    background-color: var(--base-color-white);
    position: relative;
    top: 75px;
    width: 100%;
    height: 150px;
}

.techlogos-header {
    max-width: 1050px;
    padding-top: 1.33em;
}

.partners {
    margin-left: 100px;
    margin-right: 100px;
}

.partners-container {
    /* background-color: var(--base-color-gray); */
    padding-top: 170px;
}

.partnerlogos-container {
    width: 100%;
    height: 150px;
}

.red-triangle {
    width: 100%;
    /* position: absolute; */
    bottom: 0px;
    z-index: -1;
    /* height: 384px; */
    margin-top: -400px;
}

.red-triangle svg polygon {
    fill: var(--base-color-red);
}

.bottom-menu-container {
    background-color: var(--base-color-black);
    padding-top: 10px;
    padding-bottom: 45px;
    z-index: 1;
    position: relative;
}

@keyframes scrollAnimation {
    to {
        inset-inline-start: calc(var(--marquee-item-width) * -1);
    }
}

.flex-tarto {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: -450px;
}

.o1 {
    order: 1;
}

.o2 {
    order: 2;
}

.o3 {
    order: 3;
}

.o4 {
    order: 4;
}

.o5 {
    order: 5;
}

.o6 {
    order: 6;
}

.o7 {
    order: 7;
}

.o8 {
    order: 8;
}

.o9 {
    order: 9;
}

.slider-container {
    position: relative;
    width: 80%;
    margin: 0 auto;
    transform: rotate(-5deg);
    margin-bottom: 100px;
    margin-top: 25px;
}


.slide {
    position: absolute;
    width: 100%;
    /* opacity: 0; */
    /* transform: translateX(100%); */
    transition: opacity 250ms ease-in-out;
}

.slide.in-from-right {
    animation: slideInFromRight 250ms forwards;
}

.slide.in-from-left {
    animation: slideInFromLeft 250ms forwards;
}

.slide.out-to-left {
    animation: slideOutToLeft 250ms forwards;
}

.slide.out-to-right {
    animation: slideOutToRight 250ms forwards;
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-100%);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutToLeft {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(-100%);
    }
}

@keyframes slideOutToRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

.slide.active {
    position: relative;
    display: block;
}

.slide.visible {
    position: absolute;
    display: block;
} 

/* this is the default */
.slide.hidden {
    display: none;
}

.navigation {
    display: flex;
    align-items: center;
}

.nav-button {
    background-color: transparent;
    color: #fff;
    padding: 0;
    border: none;
    cursor: pointer;
}

/* the blog's Back is a link that looks like the slider's arrow buttons */
a.nav-button {
    display: inline-block;
    text-decoration: none;
}

.page-number {
    color: #ffffff;
    padding: 0 1em;
    position: relative;
    top: -1px;
}

.contact-details-notes {
    position: relative;
}

.contact-details-notes>div.image {
    position: absolute;
    right: -600px;
    top: 100px;
    height: 450px;
    overflow: hidden;
}

.introduction-motto {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.introduction-motto>div {
    max-width: 22em;
}

/*
    MARQUEE
*/

.marquee {
    --marquee-item-width: 180px;
    --marquee-item-height: 75px;
    height: 75px;
    display: flex;
    block-size: var(--marquee-item-height);
    margin-block: var(--marquee-item-height);
    position: relative;
    overflow-x: hidden;
    /* mask-image: linear-gradient( to right, hsl(0 0% 0% / 0), hsl(0 0% 0% / 1) 20%, hsl(0 0% 0% / 1) 80%, hsl(0 0% 0% / 0) ); */
    --webkint-mask-image: linear-gradient(to right, hsl(0 0% 0% / 0), hsl(0 0% 0% / 1) 20%, hsl(0 0% 0% / 1) 80%, hsl(0 0% 0% / 0));
    top: 36px;
}

/* The number of logos (--marquee-items) and each logo's place in the list (--marquee-item-index) come from the
   Marquee component; every loop moves at the speed of the first one: 100 s for 21 logos */
.marquee {
    --marquee-seconds-per-item: calc(100s / 21);
    --marquee-duration: calc(var(--marquee-seconds-per-item) * var(--marquee-items));
}

.marquee--no-top-margin {
    margin-block-start: 0;
}

.marquee__item {
    --marquee-item-offset: max(calc(var(--marquee-item-width) * var(--marquee-items)), calc(100% + var(--marquee-item-width)));
    --marquee-delay: calc(var(--marquee-duration) / var(--marquee-items) * (var(--marquee-items) - var(--marquee-item-index)) * -1);
    position: absolute;
    inset-inline-start: var(--marquee-item-offset);
    transform: translateX(-50%);
    animation: scrollAnimation linear var(--marquee-duration) var(--marquee-delay, 0s) infinite;
    width: var(--marquee-item-width);
    height: var(--marquee-item-height);
    padding-left: 10px;
    padding-right: 10px;
}

.marquee--reverse>.marquee__item {
    animation: scrollAnimation linear var(--marquee-duration) var(--marquee-delay, 0s) infinite reverse;
}

.marquee__item img {
    max-width: 150px;
    max-height: 75px;
}

.separator-line-container {
    margin-top: 5em;
    margin-bottom: 5em;
}

/*
    WORKSHOPS 
*/

.workshop-entry-accordion > div:last-child {
    width: 40em;
}

.workshop-footer-container {
    margin-bottom: 80px;
}

.workshop-footer-container > div > div:first-child {
    padding-right: 120px;
}

@keyframes workshopItemOpen {
    from {
        max-height: 0px;
        overflow: hidden;
    }

    to {
        max-height: 100vh;
        overflow: hidden;
    }
}

@keyframes workshopItemClose {
    from {
        max-height: 100vh;
        overflow: hidden;
    }

    to {
        max-height: 0px;
        overflow: hidden;
    }
}

.workshop-item-open {
    > div.content {
        animation: workshopItemOpen 500ms forwards;
    }
}

.workshop-item-close {
    > div.content {
        animation: workshopItemClose 500ms forwards;
    }
}

.workshops-big-red-squre {
    position: relative;
}

.workshops-big-red-squre > div {
    position: absolute;
    z-index: -1;
    top: -230px;
    left: 70%;
    width: 30%;
    height: 960px;
    overflow: hidden;
}   

.workshops-item-white-square,
.workshops-large-white-square {
    position: relative;
}

.workshops-item-white-square > div {
    position: absolute;
    z-index: 1;
    top: -80px;
    left: -240px;
    width: 160px;
    height: 160px;
    overflow: hidden;
}

.workshops-large-white-square > div {
    position: absolute;
    z-index: -1;
    top: -460px;
    left: -950px;
    overflow: hidden;    
}

/*
    MEDIA
*/

@media(min-width: 1701px) {

    #animated-logo {
        top: -200px;
        right: -230px;
        width: 600px;
    }

    .ourservices.desktop .ourservices-container {
        position: relative;
        margin-left: auto;
        margin-right: auto;
    }

}

@media(max-width: 1700px) {

    .ourservices.desktop .ourservices-container {
        position: relative;
        margin-left: 70px;
        margin-right: -70px;
    }

    #animated-logo {
        top: -180px;
        right: -200px;
        width: 500px;
    }

    .red-triangle {
        margin-top: -320px;
    }


    .o9 {
        order: 7;
        transform: rotate(-10deg) translateX(151px) translateY(-430px);
    }

    .o7 {
        order: 9;
    }

    .workshops-item-white-square,
    .workshops-large-white-square {
        display: none;
    }
}

@media(max-width: 1600px) {

    .red-triangle {
        margin-top: -180px;
    }

    .o6 {
        order: 8;
        transform: rotate(-10deg) translateX(152px) translateY(-426px);
    }

    .o8 {
        order: 6;
    }
}

@media(min-width: 992px) and (max-width: 1535px) {

    #animated-logo {
        top: -170px;
        right: -185px;
        width: 450px;
    }

    .o3 {
        order: 5;
        transform: rotate(-10deg) translateX(602px) translateY(-361px);
    }

    .o5 {
        order: 9;
        transform: rotate(-10deg) translateX(246px) translateY(-365px);
    }

    .o7 {
        transform: rotate(-10deg) translateX(246px) translateY(-363px);
    }

    .o9 {
        transform: rotate(-10deg) translateX(145px) translateY(-395px);
    }
}

@media (max-width: 1392px) {

    .ourservices.desktop .ourservices-container {
        position: relative;
        margin-left: 30px;
        margin-right: 30px;
    }

    .red-triangle {
        margin-top: 400px;
    }

    .flex-tarto {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .flex-tarto .o1,
    .flex-tarto .o2,
    .flex-tarto .o3,
    .flex-tarto .o4,
    .flex-tarto .o5,
    .flex-tarto .o6,
    .flex-tarto .o7,
    .flex-tarto .o8,
    .flex-tarto .o9 {
        grid-column: span 1;
        transform: none;
        width: unset;
        padding: 0;
    }

    .flex-tarto .animated {
        min-height: 497px;
    }

    .flex-tarto .o4,
    .flex-tarto .o7,
    .flex-tarto .o8 {
        display: none;
    }

    .white-container,
    .red-container {
        transform: rotate(-10deg) !important;
    }
}

@media (min-width: 1026px) and (max-width: 1392px) {
    .o2 .red-container {
        margin-top: -18%;
        margin-left: -3%;
    }

    .o9 .white-container {
        margin-top: -18%;
        margin-left: -3%;
    }

    .o5 .red-container {
        margin-top: -18%;
        margin-left: -3%;
    }
}


@media (max-width: 1346px) {

    .flex-tarto .animated {
        min-height: 650px;
    }
}

@media (max-width: 1300px) {

    #animated-logo {
        top: -160px;
        right: -170px;
        width: 400px;
    }
}

@media (max-width: 1200px) {

    #animated-logo {
        top: -150px;
        right: -155px;
        width: 350px;
    }

    .spiderMenu {
        margin: 0 60px;
    }
}

@media (max-width: 1026px) {
    .flex-tarto {
        grid-template-columns: repeat(1, 1fr);
    }

    .flex-tarto .o4,
    .flex-tarto .o7,
    .flex-tarto .o8 {
        display: block;
        /* Ensure empty containers are shown for smaller screens */
    }

    .flex-tarto .animated {
        min-height: unset;
    }

    .empty-container {
        display: none !important;
    }

    .white-container,
    .red-container {
        transform: rotate(-5deg) !important;
    }

    .techlogos,
    .partners {
        margin-left: 60px;
        margin-right: 60px;
    }

    .contact-details-row {
        flex-direction: column;
    }

    .contact-details-notes {
        /* font-size: 2rem; */
        width: 80%;
        margin-bottom: 80px;
    }

    .contact-details-notes > div.image {
        top: -200px;
        height: unset;
    }
}

/* everything for desktop view only */
@media (min-width: 991px) {
    .mobile {
        display: none !important;
    }

    .blog-entry {
        margin-top: 10em;
        margin-bottom: 10em;
    }

    .blog-entry.page-view {
        margin-top: 4em;
        margin-bottom: 4em;
    }

    .navbar {
        padding: 30px 100px 10px 0px;        
        text-align: left;        
    }
}

/* everything for mobile view only */
@media (max-width: 990px) {        
    .desktop {
        display: none !important;
    }

    .navbar-collapse {
        position: absolute;
        background-color: black;
        right: 0;
        top: calc(1.5em + 15px);
    }

    .navbar-collapse > ul {
        margin-top: 0;
        padding-left: 16px;
        padding-right: 8px;
    }

    .blog-entry {
        margin-top: 2em;
        margin-bottom: 2em;
    }
        
    .blog-entry > div.row {
        flex-direction: column !important;
    }
        
    .blog-entry > div.row > div {
        width: 100% !important;
    }

    .blog-entry-thumbnail {
        margin: 8em auto;
        max-width: 90vw;
    }
        
    .bottom-menu-container {
        padding-top: 25px;
    }

    #animated-logo {
        top: -140px;
        right: -140px;
        width: 300px;        
    }

    .page-heading-container {
        padding-top: 5em;
        padding-bottom: 0em;
    }

    /* on phones the tiles have no entrance animation: always visible (.js: as specific as the rule that hides them) */
    .red-container,
    .white-container,
    .js .red-container,
    .js .white-container {
        opacity: 1;
    }

    .mobile-card {
        width: unset;
        transform: none;
    }

    .flex-tarto {
        grid-template-columns: 1fr;
    }

    .flex-tarto .o4,
    .flex-tarto .o7,
    .flex-tarto .o8 {
        display: block;
        /* Ensure empty containers are shown for smaller screens */
    }

    body {
        /* decrease font size, this is the only direct font-size specifier, the rest should be 'em' */
        font-size: 14px;
    }

    .partners-container {
        padding-top: 140px;
    }

    #contact > .separator-line-container {
        margin-top: 50px;
    }
        
    .partnerlogos-container {
        height: 120px;
    }

    .partnerlogos-container > .marquee {
        margin-block-start: 55px;
        top: 20px;
    }

    .techlogos-container {
        height: 120px;
        top: 60px;
    }

    .techlogos-container>.marquee {
        margin-block-start: 0px;
        top: 20px;
    }

    .red-triangle {
        margin-top: -100px;
    }

    .introduction-container {
        margin-top: 5em;
    }

    .workshop-footer-container {
        margin-bottom: 60px;
    }

    .workshop-footer-container > div {
        flex-direction: column;
    }

    .workshop-footer-container > div > div:first-child {
        width: 100%;
    }

    .workshop-footer-container > div > div:first-child > div:last-child {
        display: none !important;
    }
        
    .workshop-footer-container > div > div:last-child {
        width: 100%;
    }

    .workshops-big-red-squre > div {
        top: -120px;
        height: 850px;
    }

    .workshops-big-red-squre {
        display: none;
    }
}

@media (max-width: 768px) {
    .navbar-logo {
        width: 200px;
    }

    #animated-logo {
        top: -130px;
        right: -125px;
        width: 250px;
    }

    body {
        /* decrease font size, this is the only direct font-size specifier, the rest should be 'em' */
        font-size: 12px;
    }

    .techlogos,
    .partners {
        margin-left: 40px;
        margin-right: 40px;
    }

    .blog-entry-thumbnail {
        margin: 6em auto;
        max-width: 90vw;
    }

    .workshop-entry-accordion > div:last-child {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .navbar-logo {
        width: 150px;
    }
        
    #animated-logo {
        top: -125x;
        right: -117.5px;
        width: 225px;
    }

    .techlogos,
    .partners {
        margin-left: 30px;
        margin-right: 30px;
    }

    .blog-entry-thumbnail {
        margin: 5em auto 5em;
        max-width: 90vw;
    }
}

@media (max-width: 360px) {
    .blog-entry-thumbnail {
        margin: 4em auto 4em;
        max-width: 90vw;
    }
}

/*
    BLOG ENTRIES
*/

.blog-asset-container {
    display: flex;
    flex-direction: column;
    gap: 2em;
    align-items: center;
    margin: 2em 0;
}

.blog-asset-container img {
    max-width: 90%;
}

.blog-asset-container iframe {
    width: 90%;
}

.blog-columns, .blog-columns-2 {
    display: flex;
    flex-direction: row;
    gap: 4em;
}

.blog-columns-2 > div {
    width: 50%;
}

.blog-image-100w {
    max-width: calc(min(100px, 90%)) !important;
}

.blog-image-200w {
    max-width: calc(min(200px, 90%)) !important;
}

.blog-image-300w {
    max-width: calc(min(300px, 90%)) !important;
}

.blog-image-400w {
    max-width: calc(min(400px, 90%)) !important;
}

.blog-image-500w {
    max-width: calc(min(500px, 90%)) !important;
}

.blog-image-600w {
    max-width: calc(min(600px, 90%)) !important;
}

.blog-image-700w {
    max-width: calc(min(700px, 90%)) !important;
}

.blog-image-800w {
    max-width: calc(min(800px, 90%)) !important;
}

@media (max-width: 640px) {
    .blog-columns, .blog-columns-2 {
        gap: 2em;
    }
}

@media (max-width: 480px) {
    .blog-asset-container img {
        max-width: 95%;
    }

    .blog-asset-container iframe {
        width: 95%;
    }

    .blog-columns, .blog-columns-2 {
        gap: 1em;
    }

    .blog-image-100w {
        max-width: calc(min(100px, 95%)) !important;
    }

    .blog-image-200w {
        max-width: calc(min(200px, 95%)) !important;
    }

    .blog-image-300w {
        max-width: calc(min(300px, 95%)) !important;
    }

    .blog-image-400w {
        max-width: calc(min(400px, 95%)) !important;
    }

    .blog-image-500w {
        max-width: calc(min(500px, 95%)) !important;
    }

    .blog-image-600w {
        max-width: calc(min(600px, 95%)) !important;
    }

    .blog-image-700w {
        max-width: calc(min(700px, 95%)) !important;
    }

    .blog-image-800w {
        max-width: calc(min(800px, 95%)) !important;
    }
}

/*
    ==========================================================================
    SOLUTION AND APPLICATION DEVELOPMENT page (HP-056; prefix: sol-), from the designer's package
    (.new/fizzcode-solution-and-application-development/3-beepites-a-meglevo-oldalba/main.css-kiegeszites.css).
    Only the animations of the existing site are used (animate.css entrance animations of the cards, logo marquees).
    ==========================================================================
*/

/*
    CTA BUTTON (components/CtaButton)
*/

.cta-button {
    display: inline-block;
    padding: 0.6em 1.3em 0.5em;
    font-size: 1.5em;
    line-height: 1;
    letter-spacing: 0.02em;
    color: var(--base-color-white);
    background-color: var(--base-color-red);
    border: 2px solid var(--base-color-red);
    border-radius: 0;
    cursor: pointer;
}

.cta-button--primary:hover,
.cta-button--primary:focus-visible {
    color: var(--base-color-red);
    background-color: var(--base-color-white);
    border-color: var(--base-color-white);
}

.cta-button--secondary {
    background-color: transparent;
    border-color: var(--base-color-white);
}

.cta-button--secondary:hover,
.cta-button--secondary:focus-visible {
    color: var(--base-color-black);
    background-color: var(--base-color-white);
}

.cta-button:focus-visible {
    outline: 2px solid var(--base-color-white);
    outline-offset: 3px;
}

/*
    SOLUTION AND APPLICATION DEVELOPMENT
*/

.sol-hero__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1em 1.25em;
    margin-top: 3em;
}

.sol-section {
    position: relative;
}

.sol-section--plain {
    padding-top: 5em;
}

.sol-title {
    margin: 0 0 0.75em;
    max-width: 26em;
}

.sol-lead {
    margin-bottom: 1.25em;
}

.sol-two-columns {
    row-gap: 2em;
}

@media (min-width: 992px) {
    .sol-two-columns > div:first-child {
        padding-right: 2.5rem;
    }
}

/* vertical red line in front of a paragraph */
.sol-red-line {
    padding-left: 1em;
    border-left: 3px solid var(--base-color-red);
}

/* 02 client logos: the same marquee as the home page "OUR PARTNERS:" block (.partners / .partnerlogos-container) */
.sol-clients .separator-line-container {
    margin-bottom: 0;
}

/* 03 real-time development: discipline timeline (static chart) */
.sol-timeline {
    display: flex;
    flex-direction: column;
    gap: 2.5em;
    margin-top: 2.5em;
    padding: 2.5em;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.sol-timeline__title {
    margin-bottom: 0.6em;
}

.sol-timeline__row,
.sol-timeline__axis {
    display: grid;
    grid-template-columns: 12em 1fr;
    gap: 1.5em;
    align-items: center;
}

.sol-timeline__row {
    height: 2.1em;
}

.sol-timeline__label {
    color: #d0d0d0;
}

.sol-timeline__track {
    position: relative;
    height: 1.1em;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.07) 1px, transparent 1px) 0 0 / 10% 100%;
}

.sol-timeline__bar {
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--bar-start);
    width: var(--bar-length);
}

.sol-timeline__bar--waterfall {
    border: 1.5px solid var(--base-color-white);
}

.sol-timeline__bar--fizzcode {
    background-color: var(--base-color-red);
}

.sol-timeline__axis-line {
    display: flex;
    justify-content: space-between;
    padding-top: 0.4em;
    font-size: 0.9em;
    color: #bdbdbd;
    border-top: 1px solid var(--base-color-white);
}

/* 04 benefits: the red / white cards of the home page ("what we do"), tilted the same way */
.sol-benefits {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 70px 50px;
    margin-top: 4em;
    margin-bottom: 2em;
}

.sol-benefit {
    display: flex;
    width: calc((100% - 100px) / 3);
    transform: rotate(-10deg);
}

.sol-benefit > div {
    flex: 1;
}

.sol-benefit__icon {
    display: block;
    margin-bottom: 1em;
}

/* 05 real-time business development: 2x2 steps, outlined like the workshop items */
.sol-loop {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25em;
}

.sol-loop__step {
    min-height: 9.5em;
    padding: 1.4em 1.4em 1.6em;
    border: 1px solid var(--base-color-white);
}

.sol-loop__title {
    margin-bottom: 0.5em;
}

.sol-loop__content {
    font-size: 1em;
}

/* 07 technology: principles + footnote + technology band */
.sol-principles {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2em;
    margin-top: 1.5em;
}

.sol-principle__title {
    margin-bottom: 0.5em;
}

.sol-footnote {
    max-width: 52em;
    margin-top: 2.5em;
    font-size: 1.25em;
}

.sol-technologies {
    margin-top: 4em;
}

/* room for the white logo strip that hangs below the red band (like .partners-container) */
.sol-section--after-band {
    padding-top: 170px;
}

/* 08 how we start: 3 steps with arrows */
.sol-steps {
    display: grid;
    grid-template-columns: 1fr 48px 1fr 48px 1fr;
    gap: 1em;
    align-items: center;
    margin-top: 2.5em;
    margin-bottom: 2em;
}

.sol-steps__arrow {
    display: flex;
    justify-content: center;
    color: var(--base-color-white);
}

.sol-step {
    align-self: stretch;
    padding: 1.5em;
    border: 1px solid var(--base-color-white);
}

.sol-step__tag {
    margin-bottom: 0.4em;
    color: var(--base-color-red);
}

.sol-step__title {
    margin-bottom: 0.5em;
}

.sol-step--highlighted {
    background-color: var(--base-color-red);
    border-color: var(--base-color-red);
}

.sol-step--highlighted .sol-step__tag {
    color: var(--base-color-black);
}

/* 09 closing CTA in the contact block */
.contact-details-notes-content {
    margin-top: 1em;
    font-size: 0.5em;
    text-transform: none;
}

/* responsive */
@media (max-width: 1392px) {
    /* like the home page: the cards themselves are tilted below 1392px */
    .sol-benefit {
        transform: none;
    }
}

@media (max-width: 1200px) {
    .sol-benefit {
        width: calc((100% - 50px) / 2);
    }

    .sol-principles {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 990px) {
    .sol-timeline {
        padding: 1.5em;
    }

    .sol-timeline__row,
    .sol-timeline__axis {
        grid-template-columns: 9em 1fr;
        gap: 1em;
    }

    .sol-steps {
        grid-template-columns: 1fr;
    }

    .sol-steps__arrow svg {
        transform: rotate(90deg);
    }

    .sol-section--after-band {
        padding-top: 140px;
    }
}

@media (max-width: 768px) {
    .sol-benefit {
        width: 100%;
    }

    .sol-loop {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .sol-principles {
        grid-template-columns: 1fr;
    }

    .sol-timeline__row {
        grid-template-columns: 1fr;
        height: auto;
        gap: 0.3em;
    }

    .sol-timeline__axis {
        grid-template-columns: 1fr;
    }

    .sol-timeline__axis > .sol-timeline__label {
        display: none;
    }
}

/*
    HOME - the "Solution and Application development" tile links to its page (HP-058)
*/

.service-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.service-card-link:focus-visible {
    outline: none;
}

.service-card-link:hover > div,
.service-card-link:focus-visible > div {
    box-shadow: 0 0 0 3px var(--base-color-red);
}

/*
    "Our Services" dropdown (HP-059), from the designer's package
*/

/*
    MENU - current page, Our Services dropdown
*/

.nav-link.is-active,
.nav-link.is-active:hover,
.nav-link.is-active:focus {
    color: var(--base-color-red);
}

.nav-item--has-children {
    position: relative;
}

.nav-caret {
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-left: 8px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translateY(-3px) rotate(45deg);
}

.nav-submenu {
    list-style: none;
    margin: 0;
    padding: 0;
    text-transform: none;
}

.nav-item--top-bar > .nav-submenu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 20;
    min-width: 340px;
    padding: 8px 0;
    background-color: var(--base-color-black);
    border-top: 2px solid var(--base-color-red);
    visibility: hidden;
    transition: visibility 0s linear 200ms; /* not an animation: keeps the list open for a moment when the pointer leaves */
}

.nav-item--top-bar:hover > .nav-submenu,
.nav-item--top-bar:focus-within > .nav-submenu {
    visibility: visible;
    transition-delay: 0s;
}

.nav-submenu-link {
    display: block;
    padding: 8px 16px;
    font-size: 14px;
    white-space: nowrap;
    color: var(--base-color-white);
    border-left: 3px solid transparent;
}

.nav-submenu-link:hover,
.nav-submenu-link:focus-visible {
    color: #ffffffb9;
    border-left-color: var(--base-color-red);
    outline: none;
}

.nav-submenu-link.is-active {
    color: var(--base-color-red);
}

/* hamburger (mobile) menu: sub items are listed indented under Our Services */
.nav-item--top-hamburger > .nav-submenu {
    padding-left: 14px;
}

.nav-item--top-hamburger .nav-submenu-link {
    padding: 0 0 0 10px;
    height: 30px;
    line-height: 30px;
    font-size: 13px;
    color: #ffffffb9;
    border-left: 1px solid var(--base-color-red);
}

/* closed with Escape while the pointer or the focus is still on it (MenuBar) */
.nav-item--top-bar.nav-item--dismissed > .nav-submenu {
    visibility: hidden;
}

/*
    Keyboard focus (HP-063)
*/

/* the workshop accordion header (ExtenderBar), from the designer's package */
.workshop-entry-accordion:focus-visible {
    outline: 2px solid var(--base-color-white);
    outline-offset: 4px;
}
