:root {
    --ast-global-color-0: #0073aa;
    --ast-global-color-1: #1a1a2e;
    --ast-global-color-2: #333333;
    --ast-global-color-3: #666666;
    --ast-global-color-4: #999999;
    --ast-global-color-5: #cccccc;
    --ast-global-color-6: #eeeeee;
    --ast-global-color-7: #f5f5f5;
    --ast-global-color-8: #ffffff;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--ast-global-color-2);
    background-color: #f5f5f5;
}

a {
    color: var(--ast-global-color-0);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #005a8c;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

main#content {
    min-height: 60vh;
}

main#content.content-section {
    padding-top: 200px;
    padding-bottom: 60px;
}

.page-container {
    --bs-gutter-x: 24px;
    margin-top: 20px;
}

@media (min-width: 1400px) {
    .page-container {
        max-width: 1200px;
    }
}

@media (max-width: 991.98px) {
    main#content.content-section {
        padding-top: 95px;
    }
}

@media (max-width: 480px) {
    main#content.content-section {
        padding-top: 80px;
    }
}

.content-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--ast-global-color-1);
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--ast-global-color-0);
}

.elementor-text-editor {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--ast-global-color-3);
}

.elementor-text-editor p {
    margin-bottom: 15px;
}

.elementor-heading-title {
    font-weight: 600;
    color: var(--ast-global-color-1);
}

.elementor-widget-container {
    margin-bottom: 20px;
}

.elementor-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.elementor-column {
    flex: 1;
    min-width: 280px;
}

.elementor-widget-image img {
    width: 100%;
    height: auto;
}

.elementor-button {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--ast-global-color-0);
    color: var(--ast-global-color-8);
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.elementor-button:hover {
    background-color: #005a8c;
    color: var(--ast-global-color-8);
}

/* Nepublicēta ieraksta priekšskatījums (partials/preview-bar.php) — redz tikai admins */
.preview-bar {
    position: fixed;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    z-index: 2000;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: calc(100% - 32px);
    padding: 10px 18px;
    border-radius: 999px;
    background: #8a4b00;
    color: #fff;
    font-size: 14px;
    line-height: 1.35;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}

.preview-bar a {
    color: #fff;
    font-weight: 600;
    text-decoration: underline;
    white-space: nowrap;
}
