/* =====================================================
   osobnaasistencija.hr - pročišćeni globalni CSS
   Bootstrap 5.3 kompatibilno
   Brand: povjerenje + podrška + jasan CTA
===================================================== */

/* ================================
   TOKENS
================================ */
:root {
    --content-w: 90%;
    --base-font-size: 18px;
    --news-gap: 1rem;
    --side-sticky-top: 1rem;

    /* Brand */
    --brand: #1E3A5F;
    --brand-dark: #142A46;
    --brand-light: #EAF3FB;

    /* Podrška */
    --success: #4CAF50;
    --success-dark: #2E7D32;
    --success-light: #E8F5E9;

    /* Akcent */
    --accent: #F28C28;
    --accent-dark: #D97706;
    --accent-light: #FFF4E5;

    /* Navigacija */
    --menu-accent: var(--brand);
    --menu-hover: var(--brand-light);
    --menu-active: var(--success);

    /* Površine */
    --background: #F7F9FC;
    --surface: #FFFFFF;
    --surface-alt: #F2F6FB;

    /* Tekst */
    --text: #263238;
    --text-light: #607D8B;

    /* Rubovi i sjene */
    --border: #DDE5EF;
    --shadow-sm: 0 4px 14px rgba(30, 58, 95, .08);
    --shadow-md: 0 15px 40px rgba(30, 58, 95, .10);

    /* Statusi */
    --info: #1976D2;
    --warning: var(--accent);
    --danger: #D32F2F;

    /* Bootstrap mapiranje */
    --bs-primary: var(--brand);
    --bs-link-color: var(--brand);
    --bs-link-hover-color: var(--brand-dark);
}

html[data-bs-theme="dark"] {
    --background: #0F172A;
    --surface: #16213A;
    --surface-alt: #1E293B;
    --text: #F8FAFC;
    --text-light: #CBD5E1;
    --border: #334155;

    --brand: #60A5FA;
    --brand-dark: #3B82F6;
    --brand-light: #1E3A5F;
    --success: #69D66F;
    --success-dark: #4CAF50;
    --accent: #F7A63A;
    --accent-dark: #F28C28;

    --bs-primary: var(--brand);
    --bs-link-color: #FFFFFF;
    --bs-link-hover-color: #FFFFFF;
}

/* ================================
   BASE
================================ */
html {
    font-size: var(--base-font-size);
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    background: var(--background);
    line-height: 1.6;
}

a {
    color: var(--brand);
    text-decoration: none;
    text-underline-offset: .2em;
}

a:hover,
a:focus {
    color: var(--brand-dark);
    text-decoration: underline;
}

img,
video,
canvas,
svg {
    max-width: 100%;
    height: auto;
}

.content-wrapper,
.wrapper,
.wrapper-article {
    width: var(--content-w);
    margin-inline: auto;
    padding-inline: calc(var(--bs-gutter-x) * .5);
}

@media (max-width: 575.98px) {
    .content-wrapper,
    .wrapper,
    .wrapper-article {
        width: 98%;
        padding-inline: .75rem;
    }
}

.page-title,
.section-title,
.document-title {
    font-weight: 700;
    color: var(--brand);
}

.section-title {
    font-size: clamp(1.75rem, 1.1rem + 2.4vw, 2.5rem);
    line-height: 1.2;
    padding-bottom: .25rem;
}

.section-title::after {
    content: "";
    display: block;
    width: 3rem;
    height: 4px;
    background: var(--success);
    border-radius: 999px;
    margin-top: .35rem;
}

html[data-bs-theme="dark"] .section-title,
html[data-bs-theme="dark"] .document-title {
    color: #fff;
}

/* ================================
   ACCESSIBILITY
================================ */
.skip-link {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.skip-link:focus {
    left: 1rem;
    top: 1rem;
    width: auto;
    height: auto;
    padding: .5rem .75rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: .5rem;
    z-index: 1050;
}

.dyslexia-friendly {
    font-family: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    letter-spacing: .2px;
    word-spacing: .6px;
    line-height: 1.7;
}

:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
}

/* ================================
   TOPBAR / HEADER / NAVBAR
================================ */
.topbar {
    font-size: .95rem;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
}

.topbar a {
    text-decoration: none;
}

header {
    padding-block: .5rem;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.navbar .nav-link {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text) !important;
    border-radius: 999px;
    padding-inline: .85rem;
}

.navbar .nav-link.active,
.navbar .nav-link[aria-current="page"],
.navbar .nav-link:hover,
.navbar .nav-link:focus,
.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus {
    color: var(--menu-active) !important;
    background: var(--menu-hover);
    text-decoration: none;
}

.navbar-brand .logo-dark {
    display: none;
}

html[data-bs-theme="dark"] .navbar-brand .logo-light {
    display: none;
}

html[data-bs-theme="dark"] .navbar-brand .logo-dark {
    display: inline-block;
}

.navbar .dropdown:hover > .dropdown-menu,
.dropdown-menu .dropend:hover > .dropdown-menu {
    display: block;
    margin-top: 0;
}

.dropdown-menu .dropend:hover > .dropdown-menu {
    margin-left: .2rem;
}

.menu-caret {
    display: inline-block;
    margin-left: 8px;
    vertical-align: middle;
    border-top: 4px solid currentColor;
    border-right: 4px solid transparent;
    border-left: 4px solid transparent;
}

.caret-right {
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    border-left: 4px solid currentColor;
}

/* ================================
   BUTTONS
================================ */
.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--accent);
    --bs-btn-border-color: var(--accent);
    --bs-btn-hover-bg: var(--accent-dark);
    --bs-btn-hover-border-color: var(--accent-dark);
    --bs-btn-active-bg: var(--accent-dark);
    --bs-btn-active-border-color: var(--accent-dark);
    --bs-btn-disabled-bg: var(--accent);
    --bs-btn-disabled-border-color: var(--accent);
}

.btn-success {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--success);
    --bs-btn-border-color: var(--success);
    --bs-btn-hover-bg: var(--success-dark);
    --bs-btn-hover-border-color: var(--success-dark);
}

.btn-outline-primary {
    --bs-btn-color: var(--brand);
    --bs-btn-border-color: var(--brand);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--brand);
    --bs-btn-hover-border-color: var(--brand);
}

html[data-bs-theme="dark"] .btn-outline-primary {
    --bs-btn-color: #fff;
    --bs-btn-border-color: var(--border);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: rgba(255, 255, 255, .08);
    --bs-btn-hover-border-color: var(--border);
}

.btnDefault { background-color: var(--brand); }
.btnZeleni { background-color: var(--success); }
.btnNaranca { background-color: var(--accent); }

/* ================================
   HERO
================================ */
.hero {
    background:
        radial-gradient(circle at 85% 10%, rgba(76, 175, 80, .14), transparent 28rem),
        radial-gradient(circle at 10% 25%, rgba(30, 58, 95, .12), transparent 24rem),
        var(--surface-alt);
    border-radius: 1.25rem;
    padding: clamp(1.25rem, 3vw + .5rem, 3.25rem);
    margin-top: 1rem;
}

.hero a.btn,
.hero .btn a {
    color: #fff !important;
    text-decoration: none !important;
}

/* ================================
   CARDS / LISTS
================================ */
.card,
.login-tiles .login-card,
.list-item,
.list2-item,
.document-box {
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface);
    color: var(--text);
    box-shadow: var(--shadow-sm);
}

.card:hover,
.login-tiles .login-card:hover {
    border-color: var(--success);
    box-shadow: var(--shadow-md);
}

.login-tiles .login-card {
    display: block;
    overflow: hidden;
    text-decoration: none;
    transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease;
}

.login-tiles .login-card:hover {
    transform: translateY(-2px);
}

.login-card-head {
    background: var(--surface-alt);
    color: var(--brand);
    padding: 1rem 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .02em;
}

.login-card-head--bottom {
    border-top: 1px solid var(--border);
}

.login-card-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

.list-item,
.list2-item {
    width: 100%;
    margin-bottom: 1rem;
    overflow: hidden;
}

.list-item .title,
.list2-item .title {
    color: var(--brand);
    padding: 1rem 1.25rem;
    margin-bottom: 0;
    font-size: 1.35rem;
    border-bottom: 1px solid var(--border);
}

.list2-item .title {
    padding: 1.25rem 1.5rem;
}

.list-item .title:hover,
.list2-item .title:hover {
    color: var(--success);
}

.list-item .date,
.list2-item .date {
    padding: .4rem .6rem;
    min-width: 150px;
    text-align: center;
    color: var(--text-light);
    background: var(--surface-alt);
}

.list-item .body,
.list2-item .body {
    padding: .8rem 1.25rem;
}

.list-item .tags,
.list2-item .tags,
.list-item .readmore {
    border-top: 1px solid var(--border);
    padding: .5rem 1.25rem;
}

.list2-item .readmore {
    padding: 1rem 1.5rem 1.25rem;
    font-weight: 600;
}

/* ================================
   ARTICLE
================================ */
.news-article .article-hero img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center;
    border-radius: 1rem;
}

.news-article .lead {
    font-weight: 500;
}

.post {
    padding-right: 3%;
    font-size: 1.1rem;
}

.post p {
    font-size: 1.1rem;
    margin-bottom: 1.3rem !important;
}

.post a {
    color: var(--brand);
}

blockquote {
    position: relative;
    font-style: italic;
    color: var(--text);
    background: var(--surface-alt);
    border-left: 6px solid var(--success);
    margin: 1.5em 0;
    padding: 1em 1.5em;
    border-radius: .75rem;
}

blockquote p { margin: 0; }
blockquote footer {
    margin-top: .75em;
    font-size: .9em;
    color: var(--text-light);
    text-align: right;
}
blockquote footer::before { content: "— "; }

/* ================================
   CONTENT LINKS
================================ */
.content a,
.article-body a {
    color: var(--brand);
    text-decoration: underline;
    text-underline-offset: .2em;
}

.content a:hover,
.article-body a:hover {
    color: var(--brand-dark);
    text-decoration-thickness: 2px;
}

html[data-bs-theme="dark"] .content a,
html[data-bs-theme="dark"] .article-body a {
    color: #fff;
}

html[data-bs-theme="dark"] .content a:hover,
html[data-bs-theme="dark"] .article-body a:hover {
    color: #fff;
    text-decoration: none;
}

/* ================================
   DOCUMENTS
================================ */
.document-section {
    margin-block: 2rem 1.5rem;
}

.document-title {
    font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
    line-height: 1.2;
    margin: 0 0 1rem;
}

.document-box {
    padding: 1rem;
}

.document-item {
    padding: .5rem 0;
    display: flex;
    align-items: flex-start;
    gap: .5rem;
}

.document-box .document-item + .document-item {
    border-top: 1px dashed var(--border);
}

.document-link {
    text-decoration: underline;
    word-break: break-word;
}

.document-link[data-icon]::before {
    content: attr(data-icon);
    margin-right: .35rem;
    opacity: .85;
}

/* ================================
   NEWS SCROLLER
================================ */
.news-scroller {
    display: flex;
    gap: var(--news-gap);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: .8rem;
    cursor: grab;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.news-scroller::-webkit-scrollbar { display: none; }
.news-scroller:active { cursor: grabbing; }

.news-item {
    flex: 0 0 auto;
    scroll-snap-align: start;
    width: calc((100% - (var(--news-gap) * 2)) / 3);
    margin-bottom: 1rem;
}

.news-card {
    height: 100%;
    transition: transform .15s ease, box-shadow .2s ease;
}

.news-card:hover {
    transform: translateY(-2px);
}

.news-card .card-img-top {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
}

.news-dots {
    display: flex;
    justify-content: center;
    gap: .5rem;
    margin-top: .75rem;
}

.news-dot {
    width: .75rem;
    height: .75rem;
    border-radius: 50%;
    border: 1px solid var(--brand);
    background: transparent;
    padding: 0;
}

.news-dot[aria-current="true"] {
    background: var(--brand);
    border-color: var(--brand);
}

html[data-bs-theme="dark"] .news-dot {
    border-color: #fff;
}

html[data-bs-theme="dark"] .news-dot[aria-current="true"] {
    background: #fff;
    border-color: #fff;
}

@media (max-width: 1199.98px) {
    .news-item { width: calc((100% - var(--news-gap)) / 2); }
}

@media (max-width: 767.98px) {
    .news-item { width: 100%; }
}

/* ================================
   WIDGETS
================================ */
.widget {
    margin-top: 1rem;
    border-radius: 16px;
    overflow: hidden;
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
}

.widget .title {
    font-size: 1rem;
    font-weight: 700;
    padding: 12px 16px;
    margin: 0;
    background: var(--brand);
    color: #fff;
}

.widget p {
    padding: .75rem 1rem;
    margin: 0;
}

.widget .list,
.widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.widget .news-item,
.widget li {
    padding: 12px 16px;
    line-height: 1.35;
    border-top: 1px solid var(--border);
    background: transparent;
}

.widget .news-item:first-child,
.widget li:first-child {
    border-top: 0;
}

.widget a {
    display: block;
    font-size: .95rem;
    text-decoration: none;
}

.widget .date,
.listP .date {
    font-size: .85rem;
    margin-top: 2px;
    color: var(--text-light);
}

.widget.brand .title {
    background: var(--brand);
}

.widget.brand a {
    color: var(--brand);
}

.widget.brand a:hover,
.widget.neutral a:hover {
    color: var(--success);
    text-decoration: underline;
}

.widget.brand .news-item:hover,
.widget.brand li:hover,
.widget.neutral .news-item:hover,
.widget.neutral li:hover {
    background: var(--surface-alt);
}

.widget.neutral .title {
    background: var(--surface-alt);
    color: var(--brand);
}

.widget.neutral a {
    color: var(--text);
}

@media (min-width: 992px) {
    .widget[data-sticky="on"] {
        position: sticky;
        top: var(--side-sticky-top);
    }
}

/* ================================
   SIDE MENU
================================ */
.side-menu .menu-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 1rem;
    overflow: hidden;
}

.side-menu .menu-header {
    background: var(--menu-accent);
    color: #fff;
    padding: 1rem;
    font-weight: 700;
}

.side-menu .list-group-item {
    border: 0;
    border-bottom: 1px solid var(--border);
    background: transparent;
}

.side-menu .list-group-item:last-child {
    border-bottom: 0;
}

.side-menu .parent-link,
.side-menu .submenu-link {
    color: var(--text) !important;
}

.side-menu .parent-link:hover,
.side-menu .submenu-link:hover,
.side-menu .parent-active .parent-link,
.side-menu a[aria-current="page"] {
    color: var(--success) !important;
}

.side-menu .submenu-toggle {
    color: var(--text-light);
}

.side-menu .submenu-toggle i {
    transition: transform .2s ease;
}

.side-menu .submenu-toggle[aria-expanded="true"] i {
    transform: rotate(90deg);
}

.side-menu .submenu { display: none; }
.side-menu .submenu.show { display: block; }

@media (min-width: 992px) {
    .side-menu[data-sticky="on"] {
        position: sticky;
        top: var(--side-sticky-top);
    }
}

/* ================================
   SEARCH OVERLAY
================================ */
.searchOverlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1060;
    background: rgba(0, 0, 0, .6);
    backdrop-filter: blur(2px);
}

.searchOverlay.open { display: block; }
.searchOverlay[aria-hidden="true"] { display: none; }

.searchOverlay .closebtn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    line-height: 1;
    background: transparent;
    border: 0;
    color: #fff;
}

.searchOverlay .so-content {
    background: var(--surface);
    color: var(--text);
    width: min(720px, 92vw);
    margin: 12vh auto 0;
    border-radius: 1rem;
    padding: 2rem 1.5rem;
    box-shadow: var(--shadow-md);
}

.searchOverlay .search-form {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px;
}

.searchOverlay .search-input,
.searchOverlay form input[type="text"] {
    width: 100%;
    min-height: 46px;
    padding-inline: .75rem;
    border: 1px solid var(--border);
    border-radius: .75rem;
    background: var(--surface);
    color: var(--text);
}

.searchOverlay .search-buttons {
    display: flex;
    gap: 10px;
}

.searchOverlay .search-buttons .btn {
    flex: 1 1 0;
}

.searchOverlay .help-text {
    font-size: .875rem;
    line-height: 1.2;
    min-height: 1em;
    opacity: .85;
}

/* ================================
   COOKIE BANNER
================================ */
#cookieBanner {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: min(500px, 92vw);
    background: var(--surface);
    color: var(--text);
    padding: 20px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    z-index: 1060;
    border: 1px solid var(--border);
}

#cookieBanner .cookie-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--brand);
}

#cookieBanner .cookie-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#cookieBanner .cookie-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--surface-alt);
    padding: 10px;
    border-radius: 10px;
    border: 1px solid var(--border);
}

#cookieBanner .cookie-option label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .8rem;
    color: var(--text);
    margin: 0;
}

#cookieBanner .info-icon {
    background: var(--brand-light);
    color: var(--brand);
    border-radius: 50%;
    font-size: 12px;
    width: 18px;
    height: 18px;
    text-align: center;
    line-height: 18px;
    cursor: pointer;
    display: inline-block;
}

#cookieBanner .cookie-buttons {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 18px;
}

.cookie-buttons div,
.cookie-buttons .button-accept,
.cookie-buttons .button-select-all {
    border: none;
    border-radius: 10px;
    padding: 10px 16px;
    cursor: pointer;
    font-size: .8rem;
    font-weight: 700;
}

.cookie-buttons .button-accept {
    background: var(--accent);
    color: #fff;
}

.cookie-buttons .button-select-all {
    background: var(--brand);
    color: #fff;
}

.cookie-choice {
    display: flex;
    gap: 10px;
}

.cookie-choice .choice-option {
    display: inline-block;
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    cursor: pointer;
    font-size: .8rem;
    color: var(--text);
}

.cookie-choice .choice-option:hover {
    background: var(--surface-alt);
}

.cookie-choice .choice-option.selected {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

.cookie-choice .choice-option.disabled {
    background: var(--surface-alt);
    color: var(--text-light);
    cursor: not-allowed;
    pointer-events: none;
}

#cookieIcon {
    position: fixed;
    bottom: 40px;
    right: 80px;
    z-index: 1059;
    cursor: pointer;
    text-align: center;
    color: var(--brand);
    width: 48px;
    height: 48px;
    line-height: 48px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 50%;
    transition: transform .2s ease;
    box-shadow: var(--shadow-sm);
    animation: cookieFloat 2s linear infinite alternate;
}

#cookieIcon .size {
    font-size: 1.3rem;
    color: var(--brand);
}

#cookieIcon:hover {
    transform: translateY(-2px);
}

@keyframes cookieFloat {
    from { transform: translateY(0); }
    to { transform: translateY(-3px); }
}

/* ================================
   NOTIFICATIONS
================================ */
.notification {
    position: fixed;
    top: 2%;
    right: 2%;
    width: min(50%, 720px);
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
    z-index: 1100;
    box-shadow: var(--shadow-md);
}

.notification div {
    margin: 0;
    padding: 10px 10px 10px 36px;
    line-height: 1.5;
}

.notification .close {
    position: absolute;
    top: 5px;
    right: 8px;
    color: var(--danger);
    font-size: 12px;
}

.attention { border-color: #E6DB55; background: #FFFBCC; color: #666452; }
.information { border-color: #A2B4EE; background: #DBE3FF; color: #585B66; }
.success { border-color: #9ADF8F; background: #D5FFCE; color: #556652; }
.error { border-color: #DF8F8F; background: #FFCECE; color: #665252; }

/* ================================
   TABLES / FORMS / DEVEXPRESS
================================ */
.col-form-label,
.mikro-caption {
    padding-top: calc(.375rem + 1px);
    padding-bottom: calc(.375rem + 1px);
    margin-bottom: 0;
    font-size: inherit;
    line-height: 1.5;
    font-weight: 600;
    display: inline-block;
}

input[type="radio"],
input[type="checkbox"] {
    margin-right: 10px;
}

.custom-radiobutton-list {
    list-style: none;
    padding: 0;
    margin: 10px;
}

.custom-radiobutton-list li {
    margin-bottom: 10px;
}

.custom-radiobutton-list label {
    font-size: 16px;
    color: var(--text);
    cursor: pointer;
}

.custom-radiobutton-list input[type="radio"]:checked + label {
    font-weight: 700;
}

.table-tools {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.sort-header {
    all: unset;
    cursor: pointer;
    font-weight: 600;
}

.sort-indicator { opacity: .7; }

.smart-search-clear {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    padding: 0;
    font-size: 18px;
    line-height: 1;
    color: var(--text-light);
    cursor: pointer;
}

.smart-search-clear:hover {
    color: var(--text);
}

.dxcaControl { font: inherit; }
.dxigControl td.dxigCtrl { padding: 12px 0; }
.dxisControl .dxis-nbDotsBottom { padding: 0; margin-top: -25px; }
.dxbs-pager .pagination > li.active > a { color: #fff; }
.imageSlider { width: 100%; height: 40%; }

/* ================================
   RESPONSIVE CARD TABLE
================================ */
@media (max-width: 768px) {
    .responsive-card-table thead {
        display: none;
    }

    .responsive-card-table,
    .responsive-card-table tbody,
    .responsive-card-table tr,
    .responsive-card-table td {
        display: block;
        width: 100%;
    }

    .responsive-card-table tr {
        margin-bottom: 15px;
        border: 1px solid var(--border);
        border-radius: 12px;
        background: var(--surface);
        padding: 10px;
    }

    .responsive-card-table td {
        display: flex;
        justify-content: space-between;
        gap: 15px;
        padding: 8px 10px;
        border: 0;
        border-bottom: 1px solid var(--border);
        text-align: right;
    }

    .responsive-card-table td:last-child {
        border-bottom: 0;
    }

    .responsive-card-table td::before {
        content: attr(data-label);
        font-weight: 700;
        text-align: left;
        color: var(--text-light);
    }
}

/* ================================
   BACK TO TOP
================================ */
#backToTop {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
    z-index: 1040;
}

#backToTop.show {
    opacity: 1;
    pointer-events: auto;
}

/* ================================
   FOOTER
================================ */
footer {
    border-top: 1px solid var(--border);
    background: var(--brand-dark);
    color: #fff;
}
    footer a {
        color: #fff !important;
    }


    html[data-bs-theme="dark"] footer a,
    html[data-bs-theme="dark"] .navbar .nav-link,
    html[data-bs-theme="dark"] .side-menu .parent-link,
    html[data-bs-theme="dark"] .side-menu .submenu-link,
    html[data-bs-theme="dark"] .link-primary,
    html[data-bs-theme="dark"] .link-secondary,
    html[data-bs-theme="dark"] .text-secondary,
    html[data-bs-theme="dark"] .card-title,
    html[data-bs-theme="dark"] #cookieIcon .size {
        color: #fff !important;
    }

html[data-bs-theme="dark"] footer a:hover,
html[data-bs-theme="dark"] .navbar .nav-link:hover,
html[data-bs-theme="dark"] .side-menu .parent-link:hover,
html[data-bs-theme="dark"] .side-menu .submenu-link:hover {
    color: #fff !important;
    text-decoration: underline;
}

/* ================================
   PRINT
================================ */
@media print {
    body,
    html {
        color: #000;
        background: #fff;
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .topbar,
    nav,
    aside,
    header,
    footer,
    #backToTop,
    #searchOverlay,
    #cookieIcon,
    #cookieBanner,
    #share,
    .no-print,
    .ad-box {
        display: none !important;
    }

    .container,
    .inner-wrapper,
    .post,
    .wrapper,
    .content-wrapper,
    .wrapper-article {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box;
    }

    section,
    article {
        margin: 0 !important;
        padding: 0 !important;
    }

    .news-article .article-hero img {
        border-radius: 0;
    }

    .document-box {
        border: 0;
        padding: 0;
    }

    .document-item {
        border: 0;
        padding: .25rem 0;
    }

    a::after {
        content: " (" attr(href) ")";
        font-size: 90%;
    }

    a[href^="javascript:"],
    a[href^="#"] {
        text-decoration: none;
        color: black;
    }

    a[href^="javascript:"]::after,
    a[href^="#"]::after {
        content: "";
    }
}

/* ================================
   LEGACY / IE FALLBACK
================================ */
@media screen and (-ms-high-contrast: active), screen and (-ms-high-contrast: none) {
    body { font-family: Tahoma, Arial, sans-serif; }

    .col,
    .col-1,
    .col-2,
    .col-3,
    .col-4,
    .col-5,
    .col-6,
    .col-7,
    .col-8,
    .col-9,
    .col-10,
    .col-11,
    .col-12 {
        padding: 10px !important;
    }
}


/* Hero */
/*.hero {
    position: relative;
    min-height: calc(100vh - 82px);
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 5rem 0
}

    .hero::before {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at 88% 14%,rgba(76,175,80,.22),transparent 34rem),radial-gradient(circle at 6% 88%,rgba(30,58,95,.08),transparent 30rem),linear-gradient(110deg,#F4F7FB 0%,#F8FAFD 56%,#EEF8F1 100%);
        z-index: -2
    }

    .hero::after {
        content: "";
        position: absolute;
        width: 760px;
        height: 760px;
        right: -280px;
        top: -260px;
        background: rgba(76,175,80,.12);
        filter: blur(35px);
        border-radius: 50%;
        z-index: -1
    }

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0,1.1fr) minmax(420px,.9fr);
    align-items: center;
    gap: 4rem
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    padding: .35rem .75rem;
    border-radius: 999px;
    background: var(--green-soft);
    color: #1f7a35;
    font-weight: 900;
    margin-bottom: 1rem
}

.hero h1 {
    margin: 0;
    color: var(--brand);
    font-size: clamp(3rem,6vw,5.1rem);
    line-height: 1.12;
    letter-spacing: -.055em
}

.hero-lead {
    max-width: 760px;
    margin: 1.5rem 0 0;
    color: var(--muted);
    font-size: clamp(1.1rem,1.7vw,1.45rem)
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .9rem;
    margin-top: 2.2rem
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: .9rem 1.25rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 900;
    border: 2px solid transparent
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 14px 30px rgba(242,140,40,.28)
}

    .btn-primary:hover {
        filter: brightness(.96)
    }

.btn-outline {
    background: transparent;
    color: var(--brand);
    border-color: var(--border)
}

    .btn-outline:hover {
        background: #fff
    }*/