/* ============================= */
/* Reset-uri de bază și body    */
/* ============================= */
* {
    box-sizing: border-box;
  }
body {
    margin: 0;
    padding: 0;
    font-family:
        -apple-system, BlinkMacSystemFont,
        'Segoe UI', Roboto, Oxygen-Sans,
        Ubuntu, Cantarell, 'Helvetica Neue',
        sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 16px;
    line-height: 1.6;
    color: #0a0a0a;
    background-color: #f7f9f9;
}

body.menu-open {
    overflow: hidden;
}

/* ============================= */
/* Titluri și paragrafe         */
/* ============================= */
h1 {
    font-size: 2rem;    /* ~32px */
    line-height: 1.3;
    margin: 1em 0 0.5em;
    font-weight: 750;
}

h2 {
    font-size: 1.5rem;  /* ~24px */
    line-height: 1.2;
    margin: 1em 0 0.5em;
    font-weight: 800;
}

h2[data-num]::before {
    content: attr(data-num) ". ";
    font-size: inherit;
    line-height: inherit;
    font-weight: 900;
    color: inherit;
}

  
h3 {
    font-size: 1.25rem; /* ~20px */
    line-height: 1.4;
    margin: 1em 0 0.5em;
    font-weight: 700;
}

.topic-header h1, .author-header h1, #login-form-container h1 {
    margin-top: 0;
    padding-top: 20px;
}

p {
    margin: 0 0 1em;
}

.mt-2 {
    margin-top: 20px;
}

.mt-3 {
    margin-top: 30px;
}

.mb-2 {
    margin-bottom: 20px;
}

.mb-3 {
    margin-bottom: 30px;
}

.pb-2 {
    padding-bottom: 20px;
}

.pb-5 {
    padding-bottom: 50px;
}


ol li {
    margin-bottom: 15px;
}

ol li::marker {
    font-weight: bold;
}

/* ============================= */
/* Link-uri                      */
/* ============================= */
a {
    color: #0a0a0a;
    text-decoration: none;
}
a:hover {
    color: #000;
}

/* ============================= */
/* Header – ca pe site-ul vechi */
/* ============================= */
.header, .header-art {
    display: flex;
    position: relative;
    z-index: 98;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    top: 0;
    left: 0;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: .5rem 0;
    background: #fff;
    box-shadow: 0 3px 4px rgba(0,0,0,.08);
    transition: all .1s ease;
}

@media (min-width: 50em) {
    .header, .header-art {
        padding: .9rem 0;
    }
}

@media (min-width: 61em) {
    .header, .header-art {
        border-bottom: 1px solid #d3d3d3;
        padding: .5rem 0;
    }
}

.mobile-menu-button {
    cursor: pointer;
    margin-left: 5px;
}

@media (min-width: 56.25rem) {
    .header-art .mobile-menu-button {
        display: none;
    }
}

.mobile-menu-button .bar {
    display: block;
    width: 25px;
    height: 4px;
    margin: 4px auto;
    transition: .3s ease-in-out;
    background-color: #000;
}

.remove-scroll .mobile-menu-button .bar:first-child {
    transform: translateY(8px) rotate(45deg);
}

.remove-scroll .mobile-menu-button .bar:nth-child(2) {
    opacity: 0;
}

.remove-scroll .mobile-menu-button .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.header-art .header__inner {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    align-items: center;
    align-content: space-evenly;
    justify-content: space-between;
    position: relative;
    margin: 0 auto;
    width: 100%;
    max-width: 1024px;
    height: 100%;
    padding-left: 20px;
    padding-right: 20px;
}

@media (max-width: 600px) {
    .header-art .header__inner {
        padding-left: 10px;
        padding-right: 10px;
    }
}

@media (min-width: 56.25rem) {
    .header-art .header__inner {
        flex-wrap: nowrap;
        align-items: flex-end;
    }
}

.header-art .header__logo {
    display: flex;
    margin: auto;
    max-width: 225px;
}

.header-art .header__logo img {
    width: 100%;
    height: auto;
}

@media (min-width: 56.25rem) {
    .header-art .header__logo {
        max-width: 250px;
        margin: 0 15px 0 0;
    }
}

.header-art .header__menu {
    display: none;
    flex-direction: row;
    align-items: center;
    width: 100%;
}

@media (min-width: 56.25rem) {
    .header-art .header__menu {
        display: flex;
        width: auto;
        flex: 1;
        align-items: flex-end;
        align-self: flex-end;
        margin-top: 0;
        padding-bottom: 4px;
    }
}

.remove-scroll {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

.header-art .header__menu.active {
    display: block;
    position: absolute;
    width: 100%;
    top: 60px;
    left: 0;
    z-index: 1000;
    overflow-x: hidden;
    overflow-y: scroll;
}

.header-art .header__menu.active ul {
    display: block;
    position: fixed;
    left: 0;
    background-color: #fff;
    width: 100%;
    min-height: 100vh;
    padding: 20px;
    z-index: 5;
}

.header-art .header__menu.active ul li {
    position: relative;
    border-bottom: 1px solid #ffeab4;
    cursor: pointer;
    padding-left: 5px;
    margin-bottom: 20px;
}

.header-art .header__nav-container {
    width: 100%;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    max-height: 0;
    padding: 0;
    overflow: visible;
    background-color: #fff;
    top: 3.75rem;
}

@media (min-width: 56.25rem) {
    .header-art .header__nav-container {
        position: static;
        background: transparent;
        width: auto;
        max-height: none;
        margin-right: auto;
        top: auto;
        bottom: auto;
    }
}

.header-art .header__nav-container ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    flex-wrap: nowrap;
    margin: 0;
    padding: 0;
    text-transform: uppercase;
}

@media (min-width: 56.25rem) {
    .header-art .header__nav-container ul {
        flex-direction: row;
        justify-content: flex-start;
    }

    .header-art .header__nav-container ul li {
        padding: 0 1.25rem;
        margin: 0;
        border-bottom: 0;
    }
}

.header-art .header__nav-container ul li a {
    text-decoration: none;
    font-weight: 700;
    color: #222;
    letter-spacing: 1px;
    font-size: .875rem;
    line-height: 1.14;
}

.header-art .header__nav-container ul li a:hover {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 2px;
    padding-bottom: 2px;
}

/* ============================= */
/* Container principal           */
/* ============================= */
main {
    background: #fff;
    max-width: 1024px;
    margin: 0 auto;
    /* height: 100vh; */
}

main {
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 20px;
}
@media (max-width: 600px) {
    main {
        padding-left: 10px;
        padding-right: 10px;
    }
}

/* ============================= */
/* Header categorie              */
/* ============================= */
.category-header {
    padding: 2rem 0;
}
.category-description {
    font-size: 1rem;
    max-width: 700px;
}

/* ============================= */
/* Lista articole (column)       */
/* ============================= */
.posts-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 2rem 0;
}

/* ============================= */
/* Rând articol (grid desktop)   */
/* ============================= */
.post-row {
    display: grid;
    grid-template-columns: 1fr 200px;
    grid-template-rows: auto auto auto;
    grid-template-areas:
        "info thumb"
        "title thumb"
        "excerpt thumb";
    /* gap: 1rem; */
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
    align-items: start;
}

.posts-list .post-row:last-child {
    border-bottom: none;
}

.posts-list .ncat-separator {
    margin: 0;
    color: #999;
}
.posts-list .ncat-topic {
    font-weight: 600;
}
.posts-list .ncat-topic a {
    color: #2563eb;
    text-decoration: none;
}
.posts-list .ncat-topic a:hover {
    text-decoration: underline;
    color: #1d4ed8;
}

/* Atribuirea zonelor grid */
.ncat-info    {
    font-size: 13px; 
    grid-area: info; 
}
.post-title   {
    grid-area: title;
    margin-top: 0;
    margin-right: 20px;
}

h2.post-title {
    font-weight: 750;
}

.post-excerpt {
    grid-area: excerpt;
    margin-right: 20px;
}
.post-thumb   { grid-area: thumb; }

/* Stil thumbnail */
.post-thumb {
    width: 100%;
    height: 120px;
    overflow: hidden;
    border-radius: 4px;
}
.post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 4px;
}

.post-thumb img.image-portrait {
    width: 100%;
    height: auto;
    overflow: hidden;
}

/* ============================= */
/* Mobil: o singură coloană      */
/* ============================= */
@media (max-width: 600px) {
    .post-row {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto auto;
        grid-template-areas:
            "info"
            "title"
            "thumb"
            "excerpt";
    }
    .post-thumb {
        height: auto;
        margin-bottom: 1rem;;
    }
    .post-thumb img {
        height: auto;
    }
    .post-title {
        margin-right: 0;
    }

    .post-excerpt {
        margin-right: 0;
    }
}


.ce-delimiter {
    line-height: 1.6em;
    width: 100%;
    text-align: center;
    padding: 0 0 .4em 0;
}

.ce-delimiter:before {
    display: inline-block;
    content: "***";
    font-size: 30px;
    line-height: 65px;
    height: 30px;
    letter-spacing: .2em;
}

/* Stil pentru blocul de warning Editor */
.editor-warning {
    background-color: rgb(238 51 94 / 8%);
    color: #000000;
    padding: 1rem;
    border-radius: 4px;
    margin: 1.5rem 0;
    font-style: normal;
    line-height: 1.4;
}

.editor-warning strong {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.editor-warning p {
    margin: 0;
}

article {
    padding-top: 0;
}

article p a, article li a {
    text-decoration: none;
    color: #2563eb;
}

article p a:hover, article li a:hover {
    text-decoration: underline;
    color: #2563eb;
}

article .collection-item-description a, article .collection-related-articles-list a {
    text-decoration: none;
    color: #2563eb;
}

article .collection-item-description a, article .collection-related-articles-list a:hover {
    text-decoration: underline;
    color: #2563eb;
}

/* ============================= */
/* Stil pentru blockquote (citat) */
/* ============================= */
article blockquote {
    position: relative;
    background-color: #f9f9f9;
    border-left: 4px solid #d00000;
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    border-radius: 6px;
    font-style: italic;
    color: #333;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    line-height: 1.6;
}

article blockquote::before {
    content: "“";
    font-size: 3rem;
    color: #d00000;
    position: absolute;
    top: 0;
    left: 10px;
    line-height: 1;
}

article blockquote::after {
    content: "”";
    font-size: 3rem;
    color: #d00000;
    position: absolute;
    bottom: -20px;
    right: 10px;
    line-height: 1;
}

article blockquote footer {
    display: block;
    text-align: right;
    font-size: 0.9rem;
    color: #555;
    margin-top: 1rem;
    font-style: normal;
    font-weight: 600;
}



article .article_header .breadcrumb {
    color: #002f6c;
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.2px;
    margin-top: 20px;
    margin-left: 2px;
    margin-right: 30px;
    text-transform: uppercase;
}

article .article_header .breadcrumb a {
    color: #002f6c;
}

article .article_header h1 {
    margin-top: 0;
}

/* article .image-wrapper {
    margin-left: 0;
    margin-right: 0;
}

article .image-wrapper img {
    max-width: 100%;
    height: auto;
} */

article .image-wrapper.main-image  {
    display: inline-table;
    margin: 0 auto;
    text-align: left;
    margin-bottom: 1rem;
    max-width: 100%;
}

article .image-wrapper.main-image {
    width: 100%;
}

article .image-wrapper.main-image picture {
    background-color: #fafafa;
}



article .image-wrapper img {
    display: block;
    max-width: 100%;
}

article .image-wrapper.main-image figcaption {
    display: block;
    font-size: 0.97rem;
    padding: 0.3em;
    text-align: left;
    box-sizing: border-box;
    width: fit-content;
    max-width: 100%;
}

article .image-wrapper.main-image figcaption::after {
    content: "";
    display: block;
    border-bottom: 1px solid #e6e6e6;
    margin-top: 8px;
    width: 100%;
}

article .image-wrapper.main-image figcaption {
    width: 100%;
}

article .collection-list .image-wrapper figcaption::after {
    border-bottom: none;
}

article .image-wrapper.main-image {
    position: relative;
    overflow: visible;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

article .image-wrapper.main-image picture {
    display: block;
    width: 100%;
    max-height: 800px;
    margin-bottom: 0.5rem;
}

article .image-wrapper.main-image img {
    width: 100%;
    height: auto;
    max-height: 800px;
    display: block;
    object-fit: contain;
}

/* Centrează imaginea în article_content */
.article_content .image-wrapper {
    text-align: center;
}

.article_content .image-wrapper picture {
    display: inline-block;
    max-width: 100%;
}

article .image-flex {
    display: flex;
    justify-content: center;
    /* margin-bottom: 1rem; */
}

article .image-wrapper  {
    display: inline-table;
    margin: 0 auto;
    text-align: left;
    margin-bottom: 1rem;
}

article .image-wrapper img {
    display: block;
    max-width: 100%;
}

article .image-wrapper figcaption {
    display: table-caption;
    caption-side: bottom;
    font-size: 0.97rem;
    color: #555;
    padding: 0.3em;
    text-align: left;
    box-sizing: border-box;
}

article .image-wrapper figcaption::after {
    content: "";
    display: block;
    border-bottom: 1px solid #e6e6e6;
    margin-top: 8px;
    width: 100%;
}

article .collection-list .image-wrapper figcaption::after {
    border-bottom: none;
}

article .image-wrapper {
    position: relative;
    overflow: hidden;
}

article .image-wrapper picture {
    display: block;
    width: 100%;
    height: auto;
    /* aspect-ratio: 16/9; Menține aspect ratio-ul */
}

article .image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Centrează imaginea în article_content */
.article_content .image-wrapper {
    text-align: center;
}

.article_content .image-wrapper picture {
    display: inline-block;
    max-width: 100%;
}

/* Responsive aspect ratio */
@media (max-width: 767px) {
    article .image-wrapper picture {
        aspect-ratio: 16/9;
    }
}

@media (max-width: 479px) {
    article .image-wrapper picture {
        aspect-ratio: 16/9;
    }
}


/* article .image-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;     
    width: 100%;        
    margin: 1.5rem 0;
} */

/* article .image-block img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
} */

/* article .image-block figcaption {
    display: block;
    background: #fafbfc;
    font-size: 0.97rem;
    color: #555;
    padding: 0.5em 1em 0.6em 1em;
    text-align: left; 
    border-radius: 0 0 8px 8px;
    box-sizing: border-box;
    width: 100%; 
} */



article .editor-related ul {
    margin: 0;
    padding-left: 20px;
}

/* Container general */
article .editor-related {
    font-family: inherit;
    color: inherit;
}

/* Heading simplu */
article .related-heading {
    font-weight: 600;
    margin: 0 0 0.5rem;
}

article .related-heading.single-one {
    display: inline;
}

/* Descriere */
article .related-description {
    font-size: 0.95rem;
    color: #555;
    margin: 0 0 1rem;
}

/* Listă multiple articole */
article .related-list {
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
article .related-list li {
    margin: 0;
}
article .related-list li a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #2563eb;
    font-weight: 500;
}
article .related-list li a:hover {
    text-decoration: underline;
}

/* Imagine în listă */
article .related-list img {
    border-radius: 4px;
    flex-shrink: 0;
}

/* Un singur articol cu poză */
article .related-single {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
}
article .related-single img {
    border-radius: 4px;
    flex-shrink: 0;
}
article .related-single a {
    text-decoration: none;
    color: #007bff;
}
article .related-single a:hover {
    text-decoration: underline;
}

article .related-single.single-one {
    margin-top: 0;
    display: inline;
}

/* Cazul “un singur articol fără heading și fără poză” */
article .editor-related > a {
    display: inline-block;
    text-decoration: none;
    color: #007bff;
    padding: 0.25rem 0;
}
article .editor-related > a:hover {
    text-decoration: underline;
}

/* ======= Cod sursă (code block) ======= */
article .editor-code {
    background: #fafafa;
    color: #000;
    padding: 1rem;
    overflow-x: auto;
    border-radius: 4px;
    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        Consolas,
        Liberation Mono,
        monospace;
    font-size: 0.95rem;
    margin: 1.5rem 0;
}

/* ======= Tabel responsive ======= */
article .editor-table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 1.5rem 0;
}

article .editor-table {
    width: auto;
    table-layout: auto;  
    border-collapse: collapse;
    min-width: 600px;
}

article .editor-table th,
article .editor-table td {
    border: 1px solid #dee2e6;
    padding: 0.75rem;
    text-align: left;
}

article .editor-table th {
    background-color: #f1f3f5;
    font-weight: 600;
}

article .editor-table tr:nth-child(even) td {
    background-color: #fafbfc;
}

/* Exchange Rate Table Styles */
article .exchange-rate-table-wrapper {
    margin: 0;
    background: #fff;
    overflow: hidden;
}

article .exchange-rate-table-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 0.25rem 0;
}

article .exchange-rate-table-date {
    font-size: 0.875rem;
    color: #6b7280;
}

article .exchange-rate-table-subtitle {
    font-size: 0.9rem;
    color: #6b7280;
    line-height: 1.35;
}

article .exchange-rate-table-responsive {
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow-x: auto;
    overflow-y: auto;
    max-height: 600px;
    -webkit-overflow-scrolling: touch;
}

article .exchange-rate-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
    table-layout: fixed;
}

/* Column widths (desktop + default) */
article .exchange-rate-col-currency {
    width: 300px;
    min-width: 300px;
    max-width: 300px;
}

article .exchange-rate-col-rate {
    width: 140px;
    min-width: 140px;
    max-width: 140px;
}

article .exchange-rate-col-change {
    width: 250px;
    min-width: 250px;
    max-width: 250px;
}

article .exchange-rate-table thead {
    position: sticky;
    top: 0;
    z-index: 10;
}

article .exchange-rate-table th {
    background-color: #f9fafb;
    font-weight: 600;
    color: #374151;
    padding: 0.75rem 1.25rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

article .exchange-rate-table td {
    padding: 0.875rem 1.25rem;
    color: #111827;
}

/* Row separators spanning full row width */
article .exchange-rate-table tbody tr {
    border-bottom: 1px solid #f3f4f6;
}
article .exchange-rate-table tbody tr:last-child {
    border-bottom: none;
}

/* (handled on tr) */

/* Hover highlight: apply on the whole row to avoid per-cell “gaps” feeling */
article .exchange-rate-table tbody tr:hover {
    background-color: #f9fafb;
}

article .exchange-rate-table tbody tr:hover td {
    background-color: transparent;
}

article .exchange-rate-currency {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

article .exchange-rate-currency-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

article .exchange-rate-flag {
    display: inline-flex;
    align-items: center;
    margin-right: 0.5rem;
    width: 24px;
    height: 18px;
    flex: 0 0 24px;
}

article .exchange-rate-flag img {
    width: 24px;
    height: 18px;
    object-fit: cover;
    border-radius: 2px;
    vertical-align: middle;
}

article .exchange-rate-code {
    font-weight: 600;
    color: #111827;
    font-size: 0.9375rem;
}

article .exchange-rate-name {
    color: #6b7280;
    font-size: 0.875rem;
    margin-top: 2px;
}

article .exchange-rate-value {
    font-weight: 600;
    color: #111827;
    font-size: 0.9375rem;
}

article .exchange-rate-change {
    font-size: 0.875rem;
}

article .exchange-rate-change-up {
    color: #10b981;
    font-weight: 600;
}

article .exchange-rate-change-down {
    color: #ef4444;
    font-weight: 600;
}

article .exchange-rate-change-na {
    color: #9ca3af;
}

article .exchange-rate-table-error {
    padding: 1.5rem;
    text-align: center;
    color: #6b7280;
    background: #f9fafb;
    border-radius: 8px;
    margin: 1.5rem 0;
}

article .exchange-rate-table-header h2 {
    margin-top: 0;
}

article .exchange-rate-table-footer {
    flex-shrink: 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0.2rem;
}

article .exchange-rate-embed-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.25rem;
    vertical-align: middle;
}

article .exchange-rate-credit {
    font-size: 0.75rem;
    color: #6b7280;
    vertical-align: top;
    display: flex;
    align-items: flex-start;
}

article .exchange-rate-credit.exchange-embed-clickable {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
}

article .exchange-rate-credit a {
    color: #6b7280;
    text-decoration: none;
}

article .exchange-rate-credit a:hover {
    text-decoration: underline;
}

article .exchange-embed-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

article .exchange-embed-modal.active {
    display: flex;
}

article .exchange-embed-modal-content {
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    padding: 1.5rem;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

article .exchange-embed-modal-close {
    position: absolute;
    top: 0;
    right: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    transition: color 0.2s;
    z-index: 10;
}

article .exchange-embed-modal-close:hover {
    color: #111827;
}

article .exchange-embed-modal-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #111827;
    padding-right: 2rem;
}

article .exchange-embed-modal-textarea {
    width: 100%;
    max-height: 130px;
    min-height: 130px;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    color: #111827;
    resize: none;
    overflow-y: auto;
    box-sizing: border-box;
}

article .exchange-embed-modal-textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

article .exchange-embed-modal-copy-btn {
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 0;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    width: 100%;
}

article .exchange-embed-modal-copy-btn:hover {
    background: #1d4ed8;
}

article .exchange-embed-modal-copy-btn:active {
    background: #1e40af;
}

article .exchange-embed-modal-copy-btn.copied {
    background: #10b981;
}

article .exchange-embed-modal-copy-btn.copied:hover {
    background: #059669;
}

article .exchange-embed-modal-more-link {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.875rem;
    color: #6b7280;
}

article .exchange-embed-modal-more-link a {
    color: #2563eb;
    text-decoration: none;
}

article .exchange-embed-modal-more-link a:hover {
    text-decoration: underline;
}

@media (max-width: 600px) {
    article .exchange-rate-table-responsive {
        max-height: 400px;
    }
    
    article .exchange-rate-table {
        min-width: 100%;
    }
    
    article .exchange-rate-table th,
    article .exchange-rate-table td {
        padding: 0.625rem 0.875rem;
        font-size: 0.875rem;
    }
    
    article .exchange-rate-table-title {
        font-size: 1rem;
    }

    article .exchange-rate-col-currency {
        width: 230px;
        max-width: 250px;
    }

    article .exchange-rate-col-rate {
        width: 110px;
        max-width: 120px;
    }

    article .exchange-rate-col-change {
        width: 160px;
        max-width: 160px;
    }
    article .exchange-rate-name {
        font-size: 0.8rem;
    }
}

article .bylines-group {
    display: flex;
    flex-direction: column;
    row-gap: 2px;
  }
  
article .bylines-group .author,
article .bylines-group .date {
    font-size:14px;
    line-height: 18px;
    display: block;
    width: 100%;
    color: #646464;
}

article .bylines-group .author a {
    color: #646464;
	text-decoration: underline;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

@media (max-width: 600px) {
    .article-meta {
        gap: 1rem;
        margin-top: 1rem;
    }
}

article .article_header, article .article_content {
    font-size: 18px;
}

article .content-embed {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem 0;
    width: 100%;
}

article mark {
    background-color: #ffca00; /*dbeafe*/
    color: inherit;
    padding: 0 3px 0 3px;
}

article .summary-block {
    background-color: #f0f4ff;
    border-left: 4px solid #3b82f6;
    padding: 1rem 1.25rem;
    margin: 1rem 0;
    border-radius: 4px;
    font-size: inherit;
    line-height: 1.5;
}


/** COLLECTION ***/
.collection-list {
    margin-bottom: 40px;
}

.collection-block-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 16px;
}

.collection-extra-info {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 12px;
}

.collection-block-collections {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.collection-item {
    /* display: flex;
    align-items: flex-start;
    gap: 24px; */
    border-bottom: 1px solid #eee;
    padding-bottom: 24px;
}

.collection-item-counter {
    min-width: 50px;
    text-align: center;
    font-size: 1.4rem;
    color: #a0a0a0;
    margin-top: 4px;
}

.collection-item-counter-numbered {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 0;
    font-weight: normal;
    text-align: left;
}
.collection-item-content {
    flex: 1;
}

.collection-item-title {
    margin-bottom: 8px;
    margin-top: 0;
}

h2.collection-item-title, h3.collection-item-title {
    margin-top: 0;
}

.collection-item-title-link {
    color: #222;
    text-decoration: none;
    transition: color 0.2s;
}
.collection-item-title-link:hover {
    color: #0077cc;
    text-decoration: underline;
}

.collection-item-title[data-num]::before {
    content: attr(data-num) ".";
    /* color: #ff7e1a; */
    color: inherit;
    font-size: inherit;
    margin-right: 6px;
}

.collection-item-description {
    margin-top: 8px;
    margin-bottom: 8px;
    /* font-size: 1rem;
    color: #333;
    line-height: 1.6; */
}

.collection-item-image-wrapper {
    margin-bottom: 8px;
}

article .collection-item-image-wrapper figcaption {
    max-width: 600px;
    font-size: 14px;
    line-height: 18px;
    font-style: normal;
    font-weight: normal;
    margin: 0 auto;
    padding-top: 5px;
    padding-bottom: 18px;
    text-align: center;
}

.collection-item-image {
    /* border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.07); */
    max-width: 100%;
    height: auto;
}
.collection-item-image-dsmb {
    display: flex;
    align-items: center;
    gap: 16px;
}
@media (max-width: 600px) {
    .collection-item-dsmb .collection-item-image-dsmb {
        flex-direction: column;
        align-items: stretch;
    }
    .collection-item-image-dsmb img {
        width: 100%;
        margin: 0 auto;
        max-width: 320px;
        display: block;
    }

    article .collection-item-image-wrapper figcaption {
        max-width: 100%;
        text-align: center;
    }
}
.collection-item-image-dbmb {
    text-align: center;
    margin-bottom: 16px;
}
/* .collection-item-image-caption {
    font-size: 0.95rem;
    color: #555;
    margin-top: 2px;
}
.collection-item-image-credit {
    font-size: 0.9rem;
    color: #888;
} */

.collection-related-articles {
    margin-top: 16px;
}
.collection-related-articles-title {
    font-weight: bold;
    margin-bottom: 4px;
    display: block;
}
.collection-related-articles-list {
    margin-top: 0;
    padding-left: 18px;
}
.collection-related-articles-item {
    margin-bottom: 3px;
}


.btn-primary {
    width: 100%;
    position: relative;
    display: inline-block;
    padding: 0.7em 1.6em;
    background: rgb(5, 109, 255); 
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    outline: none;
    box-shadow: 0 2px 8px -2px rgba(25, 118, 210, 0.08);
    overflow: hidden;
    transition: background 0.18s, box-shadow 0.18s;
    
}

.btn-primary:hover, .btn-primary:focus {
    background: #1565c0;
    box-shadow: 0 4px 16px -2px rgba(25, 118, 210, 0.14);
    color: #fff;
}

.btn-primary:active {
    background: rgb(5, 109, 255); 
}

.btn-primary:disabled,
.btn-primary[disabled] {
    background: #c2c9d6;
    color: #fff;
    cursor: not-allowed;
    opacity: 0.75;
    box-shadow: none;
    pointer-events: none;
}


.btn-primary .wave {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    background: rgba(255,255,255,0.5);
    animation: wave 0.45s linear;
    pointer-events: none;
    z-index: 2;
}

@keyframes wave {
    to {
        transform: scale(2.8);
        opacity: 0;
    }
}

.btn-secondary {
    position: relative;
    width: 100%;
    display: inline-block;
    padding: 0.6em 1.6em;
    background: #f4f6fa;
    color: #1a3553;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    outline: none;
    box-shadow: 0 2px 8px -2px rgba(26,53,83,0.08);
    overflow: hidden;
    transition: background 0.18s, box-shadow 0.18s, color 0.18s;
}

.btn-secondary:hover, .btn-secondary:focus {
    background: #e3e9f2;
    color: #134e96;
    box-shadow: 0 4px 16px -2px rgba(26,53,83,0.12);
}

.btn-secondary:active {
    background: #d0d7e7;
}

.btn-secondary .wave {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    background: rgba(26,53,83,0.08);
    animation: wave 0.45s linear;
    pointer-events: none;
    z-index: 2;
}

@keyframes wave {
    to {
        transform: scale(2.8);
        opacity: 0;
    }
}

/* Disabled style */
.btn-secondary:disabled,
.btn-secondary[disabled] {
    background: #ebecf1;
    color: #b6b8c0;
    cursor: not-allowed;
    opacity: 0.75;
    box-shadow: none;
    pointer-events: none;
}


input, textarea {
    outline-width: 0;
    border: 1px solid #1d738b;
    border-radius: 3px;
    padding: .7rem .65rem;
    width: 100%;
    font-size: 16px;
    color: #212121;
}

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

label {
    cursor: pointer;
}

.banners {
    margin: 20px auto;
    max-width: 1024px;
    width: 100%;
    overflow: hidden;
    border: 1px solid #e5e5e5;
    box-shadow: 0 4px 12px -4px rgba(0,0,0,0.10);
}

@media (max-width: 767px) {
    .banners.billboard1 {
        min-height: 300px;
    }
}

/* .banners.billboard1, .banners.billboard2, .banners.billboard3, .banners.billboard4, .banners.billboard5 {
    max-height: 380px;
    height: auto;
    overflow: hidden;
} */

/* ============================= */
/* Articole similare             */
/* ============================= */
.related-articles-section {
    margin: 25px 0 0 0;
    padding: 20px 0 0 0;
    border-top: 1px solid #e5e5e5;
    font-size: 18px;
}

.related-articles-section strong {
    display: block;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #0a0a0a;
}

.related-articles-grid {
    margin: 0 0 0 30px;
    padding: 0;
}

.related-articles-grid li {
    margin: 15px 0;
}

.related-articles-grid .article-link {
    color: #2563eb; /* Albastru */
    text-decoration: none;
    font-weight: 500;
    transition: text-decoration 0.2s ease;
}

.related-articles-grid .article-link:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ============================= */
/* Articole similare din editor  */
/* ============================= */
.editor-related .related-list {
    margin: 0;
    padding: 0;
}

/* Când sunt imagini, ascunde bullet-urile */
.editor-related .related-list:has(img) {
    list-style: none;
}

/* Când NU sunt imagini, arată bullet-urile */
.editor-related .related-list:not(:has(img)) {
    list-style: disc;
    padding-left: 20px;
}

.editor-related .related-list li {
    margin: 4px 0;
}

.editor-related .related-list .article-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    transition: text-decoration 0.2s ease;
}

.editor-related .related-list .article-link:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.related-posts-section {
    margin-top: 40px;
    /* margin-bottom: 40px; */
}

.related-posts-group {
    margin-bottom: 30px;
}

.related-section-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    
    display: flex;
    align-items: center;
    gap: 8px;
}

.related-section-title-trending {
    color: #dc3545;
    border-bottom: 2px solid #dc3545;
    padding-bottom: 8px;
}

.related-section-title-latest {
    color: #001e5a;
    border-bottom: 2px solid #001e5a;
    padding-bottom: 8px;
}

.homepage-section-title {
    font-size: 24px;
    font-weight: 800;
    
    display: flex;
    align-items: center;
    color: #1a365d;
    border-bottom: 3px solid #2d3748;
    padding-bottom: 8px;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}


.trending-icon {
    font-size: 20px;
    margin-right: 4px;
}

.related-posts-list {
    list-style: none;
    counter-reset: trending-counter;
    padding-left: 0;
}

.related-posts-list li {
    counter-increment: trending-counter;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding-left: 0;
    position: relative;
}

.related-posts-list li::before {
    content: counter(trending-counter);
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-weight: 800;
    color: #333;
}

.related-posts-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.related-post-item {
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    /* margin-bottom: 20px; */
}

.related-posts-list .ncat-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 13px;
}

.related-posts-list .ncat-separator {
    margin: 0;
    color: #999;
}

.related-posts-list .ncat-topic {
    font-weight: 600;
}

.related-posts-list .ncat-topic a {
    font-size: 13px !important;
    color: #2563eb;
    text-decoration: none;
}

.related-posts-list .ncat-topic a:hover {
    text-decoration: underline;
    color: #1d4ed8;
}

.related-post-meta {
    margin-bottom: 8px;
}

.related-post-time {
    font-size: 14px;
    color: #666;
}

.related-post-link {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    margin-bottom: 8px;
    line-height: 1.4;
}

.related-post-link:hover {
    color: #5246f5;
    text-decoration: underline;
}

.related-post-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
}

.related-post-title a {
    color: #333;
    text-decoration: none;
}

.related-post-title a:hover {
    color: #5246f5;
    text-decoration: underline;
}

.related-post-excerpt {
    font-size: 16px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 12px;
}

.related-post-thumb {
    display: block;
    float: right;
    margin-left: 15px;
    margin-bottom: 10px;
    margin-top: -40px;
}

.related-post-thumb img {
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .related-post-thumb {
        float: none;
        margin-left: 0;
        margin-bottom: 15px;
        text-align: center;
    }
    
    .related-post-thumb img {
        max-width: 100%;
        height: auto;
    }

    .related-posts-group .post-row a {
        margin-bottom: 10px;
    }
}

.related-posts-group .post-row a {
    font-size: 1.3rem;
    line-height: 1.2;
    font-weight: 600;
}

/* TOC */
.toc-wrapper {
    margin: 2rem 0;
    font-family: inherit;
}

.toc-container {
    background: #eef3f9;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.toc-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 0.4rem 1.25rem 0.4rem 1.25rem;
    background: #eef3f9;
    border-bottom: 1px solid #e9ecef;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.toc-header:hover {
    background: #e1e8f0;
}

.toc-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #212529;
}

.toc-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    color: #6c757d;
    transition: all 0.2s ease;
    margin-left: 0.5rem;
}

.toc-toggle:hover {
    background: #f8f9fa;
    color: #495057;
}

.toc-toggle-icon {
    transition: transform 0.2s ease;
}

.toc-toggle.collapsed .toc-toggle-icon {
    transform: rotate(-90deg);
}

.toc-nav {
    max-height: 400px;
    overflow-y: auto;
    transition: max-height 0.3s ease;
}

.toc-nav.collapsed {
    max-height: 0;
    overflow: hidden;
}

.toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.toc-item {
    border-bottom: 1px solid #f1f3f4;
}

.toc-item:last-child {
    border-bottom: none;
}

.toc-link {
    display: block;
    padding: 0.1rem 1.25rem;
    color: #495057;
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

/* Special padding for first and last items */
.toc-item:first-child .toc-link {
    padding: 0.3rem 1.25rem 0.1rem 1.5rem;
}

.toc-item:last-child .toc-link {
    padding: 0.1rem 1.25rem 0.3rem 1.5rem;
}

.toc-item:first-child.toc-level-2 .toc-link {
    padding: 0.3rem 1.25rem 0.1rem 2rem;
}

.toc-item:last-child.toc-level-2 .toc-link {
    padding: 0.1rem 1.25rem 0.3rem 2rem;
}

.toc-item:first-child.toc-level-3 .toc-link {
    padding: 0.3rem 1.25rem 0.1rem 2.75rem;
}

.toc-item:last-child.toc-level-3 .toc-link {
    padding: 0.1rem 1.25rem 0.3rem 2.75rem;
}

.toc-link:hover {
    background: #e9ecef;
    color: #212529;
    text-decoration: none;
}

.toc-link.active {
    background: #e3f2fd;
    color: #1976d2;
    border-left-color: #1976d2;
}

.toc-level-1 .toc-link { 
    padding-left: 1.5rem; 
    position: relative;
}

.toc-level-1 .toc-link::before {
    content: "•";
    position: absolute;
    left: 0.75rem;
    color: #495057;
    font-weight: bold;
}

.toc-level-2 .toc-link { 
    padding-left: 2rem; 
    position: relative;
}

.toc-level-2 .toc-link::before {
    content: "•";
    position: absolute;
    left: 1.25rem;
    color: #495057;
}

.toc-level-3 .toc-link { 
    padding-left: 2.75rem; 
    position: relative;
}

.toc-level-3 .toc-link::before {
    content: "•";
    position: absolute;
    left: 2rem;
    color: #495057;
}

@media (max-width: 768px) {
    .toc-wrapper {
        margin: 1.5rem 0;
    }
    
    .toc-container {
        border-radius: 6px;
    }
    
    .toc-header {
        padding: 0.4rem 1.25rem 0.4rem 1.25rem;
    }
    
    .toc-title {
        font-size: 1rem;
    }
    
    .toc-link {
        padding: 0.1rem 1rem;
    }
    
    .toc-nav {
        max-height: 300px;
    }
}

/* Custom scrollbar for TOC */
.toc-nav::-webkit-scrollbar {
    width: 6px;
}

.toc-nav::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.toc-nav::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.toc-nav::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* ============================= */
/* Sticky bar pentru articol (mobil) */
/* ============================= */
.article-sticky-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: #fafafa;
    border-top: 1px solid #e5e5e5;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
    z-index: 100;
    padding: 12px 16px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
}

.article-sticky-bar.visible {
    display: block;
}

.article-sticky-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 3px;
    background: #ff0000;
    width: 0%;
    transition: width 0.1s ease-out;
}

.article-sticky-content {
    display: flex;
    gap: 12px;
    align-items: center;
}

.article-sticky-btn {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.article-sticky-btn-comments {
    background-color: #5246f5;
    color: #ffffff;
}

.article-sticky-btn-comments::before {
    content: "";
    display: inline-block;
    width: 18px;
    height: 18px;
    background-image: url('/fstatic/img/icons/small/chat-bubble.png');
    background-size: contain;
    background-repeat: no-repeat;
    margin-right: 6px;
    vertical-align: middle;
}

.article-sticky-btn-comments:hover,
.article-sticky-btn-comments:focus {
    background-color: #4338ca;
    color: #ffffff;
}

.article-sticky-btn-home {
    background-color: #f4f6fa;
    color: #1a3553;
    border: 1px solid #e5e5e5;
}

.article-sticky-btn-home:hover,
.article-sticky-btn-home:focus {
    background-color: #e3e9f2;
    color: #134e96;
}

.article-sticky-btn-share {
    background-color: #f4f6fa;
    color: #1a3553;
    border: 1px solid #e5e5e5;
}

.article-sticky-btn-share::before {
    content: "";
    display: inline-block;
    width: 18px;
    height: 18px;
    background-image: url('/fstatic/img/icons/small/share.png');
    background-size: contain;
    background-repeat: no-repeat;
    margin-right: 6px;
    vertical-align: middle;
}

.article-sticky-btn-share:hover,
.article-sticky-btn-share:focus {
    background-color: #e3e9f2;
    color: #134e96;
}

.article-sticky-btn span {
    margin-left: 4px;
}

/* Doar pe mobil (<600px) */
@media (min-width: 600px) {
    .article-sticky-bar {
        display: none !important;
    }
}
/* */

.site-footer {
    background: #fff;
    max-width: 1024px;
    margin: 0 auto;
    padding: 3rem 20px 2rem 20px;
    border-top: 1px solid #eee;
    margin-top: 0;
}

.footer-content {
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #333;
    text-decoration: underline;
}

.footer-copyright {
    margin-top: 1rem;
}

.footer-copyright p {
    color: #999;
    font-size: 0.85rem;
    margin: 0;
}

@media (max-width: 600px) {
    .site-footer {
        padding: 1.5rem 10px;
    }
    
    .footer-links {
        gap: 1rem;
        flex-direction: column;
    }
    
    .footer-links a {
        font-size: 0.85rem;
    }
}

article .sources {
    margin-top: 1.5rem;
}

article .sources span {
    font-size: 1rem;
    cursor: pointer;
}

article svg.sources-show-icon {
    display: inline-block;
    cursor: pointer;
    fill: #1d738b;
    width: 16px;
    height: 18px;
    margin-left: 5px;
    vertical-align: middle;
}

article svg.sources-hide-icon {
    display: none;
    cursor: pointer;
    fill: #1d738b;
    width: 16px;
    height: 18px;
    margin-left: 5px;
    vertical-align: middle;
}

article svg.sources-hide-icon.active {
    display: inline-block;
}

article .sources .expandable-content {
    display: none;
    padding-top: 1rem;
    font-size: .875rem;
}

article .sources .source-guidelines {
    margin-bottom: 1rem;
    border-radius: 9px 9px 9px 0;
    padding: 1rem;
    font-size: .875rem;
    line-height: 1.6em;
    color: #212121;
    background: #f7f9f9;
}