html,
body {
    height: 100%;
    color: #2C1320;
    background: linear-gradient(153.435deg, #02B8D0 0%, #F4F4F9 100%);
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Poppins", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    color: #035BB3;
    /*text-shadow: 0 0 10px rgba(244,244,249,0.5);*/
}

body {
    font-family: "Roboto", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    background: linear-gradient(153.435deg, #035BB3 0%, #2C1320 100%);
    color: #F4F4F9;
    padding: 10px 0;
}

header .inner {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

nav {
    margin: 0;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: flex-start;
    gap: 20px;
}

nav li {
    display: inline-block;
    text-wrap: nowrap;
}

header a {
    color: #F4F4F9;
    text-decoration: none;
    margin: 0;
}

nav a:hover {
    text-decoration: underline;
}

main {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    padding: 20px;
    /* allow absolutely-positioned decorative elements to be visible */
    overflow: visible;
    position: relative; /* containing block for .hero-bg */
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}

footer {
    background: linear-gradient(153.435deg, #035BB3 0%, #2C1320 100%);
    color: #F4F4F9;
    text-align: center;
    padding: 10px 0;
    width: 100%;
    margin-top: auto;
}

.section {
    padding: 20px;
    margin: 20px 0;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.hero {
    display: flex;
    flex-direction: row-reverse;
    align-items: flex-end; /* place hero-text at the bottom on wide layouts */
    gap: 24px;
    padding: 0px;
    border-radius: 8px;
    position: relative; /* stacking context for content */
    z-index: 2;
    min-height: 300px; /* default for wide screens */
}

.hero img {
    height: 60px;
    width: 180px;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

/* Decorative background element that sits behind the hero content and doesn't affect layout */
.hero-bg {
    position: absolute;
    left: 100%;
    transform: translateX(-100%);
    top: 0; /* align to the top of the main container; adjust with top when needed */
    width: 40%;
    min-width: 200px;
    max-width: 1000px;
    aspect-ratio: 718 / 912; /* approximate intrinsic ratio of the image */
    background-image: url("../assets/hero.png");
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    z-index: -1; /* behind .hero (which is z-index:2) */
    pointer-events: none; /* decorative only */
    flex-direction: row-reverse;
    align-items: flex-end;
}

.hero .hero-text {
    flex: 1 1 0;
    text-align: left;
    padding-bottom: 6px;
}

@media (min-width: 601px) {
    .hero {
        min-height: 300px;
    }
}

.hero .hero-text h1 {
    margin: 0 0 8px 0;
    font-size: 2rem;
}

h1.app-title a {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

main h1.app-title a {
    color:#035BB3;
}

h1.app-title a::before {
    content: "";
    display: inline-block;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    background-image: url("../assets/icon.png");
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    box-shadow: 0 0 5px #035BB3;
}

.hero .subtitle {
    margin: 10px 0;
    color: #2C1320;
    font-size: 1.1rem;
}

@media (max-width: 600px) {
    header {
        flex-direction: column;
        align-items: flex-start;
    }

    nav ul {
        justify-content: flex-end;
        gap: 12px;
        flex-wrap: wrap;
        flex-direction: column;
    }

    nav li {
        display: initial;
        text-wrap: nowrap;
        text-align: right;
    }
}

@media (max-width: 450px) {
    .hero {
        height: 400px;
    }
}