/* Font Definitions */
@font-face {
    font-family: 'Red Hat Display';
    src: url('fonts/RedHatDisplay-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Red Hat Display';
    src: url('fonts/RedHatDisplay-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Red Hat Display';
    src: url('fonts/RedHatDisplay-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Red Hat Display';
    src: url('fonts/RedHatDisplay-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Red Hat Display';
    src: url('fonts/RedHatDisplay-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Red Hat Display';
    src: url('fonts/RedHatDisplay-ExtraBold.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Red Hat Display';
    src: url('fonts/RedHatDisplay-Black.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* Base page styling */
html {
    background-color: var(--bg-color);
    scrollbar-width: auto;
    scrollbar-color: rgba(0, 0, 0, 0.35) rgba(0, 0, 0, 0.05);
}

html::-webkit-scrollbar {
    width: 14px;
    height: 14px;
}

html::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
}

html::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.35);
    border-radius: 50%;
}

html::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.5);
}

body {
    margin: 0;
    font-family: 'Red Hat Display', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
}

/* Main Content */
.main-content {
    padding: 12vh 8vh 3vh 8vh;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-height: 100vh;
}

.page-header {
    text-align: center;
    margin-bottom: 4vh;
}

.page-title {
    font-size: 5vh;
    font-weight: 800;
    color: var(--primary-color);
    margin: 0 0 1vh 0;
    letter-spacing: -1px;
}

/* Content Cards */
.content-card {
    background: #ffffff;
    padding: 5vh;
    border: 0.2vh solid var(--border-color);
    border-radius: 1vh;
    box-shadow: 0 0.7vh 3vh rgba(var(--primary-rgb), 0.1);
    transition: all 0.3s ease;
}

.card-title {
    font-size: 3vh;
    font-weight: 700;
    color: var(--primary-color);
    margin: 2vh 0 1vh 0;
}

.card-title:first-child {
    margin-top: 0;
}

.card-title.card-title-small {
    font-size: 2.7vh;
    margin-top: 2vh;
}

.card-content {
    font-size: 2.3vh;
    line-height: 1.7;
    color: var(--text-color);
}

.card-content p {
    margin: 0 0 1vh 0;
}

/* Arrow bullet lists */
.content-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2vh 0;
}

.content-list li {
    position: relative;
    padding-left: 2.8vh;
    padding-bottom: 1vh;
    margin-bottom: 1vh;
}

.content-list li:last-child {
    padding-bottom: 0;
    margin-bottom: 0;
}

.content-list li::before {
    content: '•';
    color: var(--primary-color);
    font-weight: 600;
    font-size: 3.2vh;
    position: absolute;
    left: 0;
    top: 0.55em;
    line-height: 0;
    margin-right: 0.5vh;
}

/* Nested lists: render as indented subpoints */
.content-list .content-list {
    margin-top: 1vh;
    margin-left: 1.8em;
}

.content-list .content-list li::before {
    content: '◦';
    font-size: 2.2vh;
    top: 0.7em;
}

#savienojums {
    margin-top: 1vh;
}

/* Numbered list (numbers only, no arrows) */
.numbered-list {
    margin: 0 0 2vh 3vh;
    padding: 0;
}

.numbered-list li::marker {
    font-weight: 700;
}

.numbered-list > li {
    margin: 0.6vh 0;
}

/* Nested arrow list inside step 2 */
.numbered-list .content-list {
    margin: 1vh 0 0.5vh 0;
}

/* In numbered steps, render sub-bullets as hollow points */
.numbered-list .content-list li::before {
    content: '◦';
    font-size: 2.2vh;
    top: 0.7em;
}

/* Site credit */
.site-credit {
    position: static;
    display: block;
    width: auto;
    max-width: 100%;
    margin: 2vh 0 1vh 0;
    font-size: 12px;
    color: rgba(0, 0, 0, 0.55);
    background: transparent;
    border: none;
    padding: 0.8vh 1vh;
    border-radius: 1vh;
    text-align: left;
    z-index: auto;
    pointer-events: auto;
}

@media (max-width: 768px) {
    .main-content {
        padding: 14vh 5vw 9vh 5vw;
        margin: 0 auto;
    }

    .page-title {
        font-size: 4vh;
    }

    .content-card {
        padding: 3vh;
    }
}