/* =========================================================
   Page base
   ========================================================= */
body, html {
    background-color: #fff;
}

#BodyHolder {
    margin-top: 75px;
}

#divHeaderContact {
    background: none;
}

p { font-size: 1em; }

.RootPageContent {
    display: block;
    max-width: 1120px;
    height: auto;
    margin: 0 auto;
}

/* =========================================================
   Header background image
   ========================================================= */
.ArticleBg {
    position: absolute;
    top: -5px;
    left: 0;
    width: 100%;
    height: 480px;
    background: url('/lib/aesthetics-pics/backgrounds/office/1500.jpg') no-repeat center;
    background-size: cover;
    opacity: 0.2;
    pointer-events: none;
}

@media (max-width: 860px) {
    .ArticleBg { background-image: url('/lib/aesthetics-pics/backgrounds/office/800.jpg'); }
}

@media (max-width: 600px) {
    .ArticleBg { background-image: url('/lib/aesthetics-pics/backgrounds/office/500.jpg'); }
}

/* =========================================================
   Two-column layout: sidebar + article
   ========================================================= */
.ArticleLayout {
    position: relative;
    display: grid;
    grid-template-columns: 17rem minmax(0, 1fr);
    gap: 30px;
    align-items: start;
    box-sizing: border-box;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 16px;
}
.ArticleLayout.noSidebar {
    grid-template-columns: minmax(0, 1fr);
}

.ArticleSidebar {
    position: sticky;
    top: 90px;
    display: grid;
    gap: 16px;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    padding: 0 4px 12px 0;   /* room for the cards' shadows inside the scroll area */
    scrollbar-width: thin;
}
/* =========================================================
   Article card and the all-articles page
   ========================================================= */
.ArticleBody,
.AllArticlesPage {
    position: relative;
    display: block;
    box-sizing: border-box;
    width: 100%;
    max-width: 800px;
    margin: 0 auto 30px auto;
    padding: 20px 35px 70px 35px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    background-color: rgba(255, 255, 255, 0.8);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 10px 30px rgba(0, 0, 0, 0.10);
    color: #444;
    font-size: 0.9em;
    line-height: 1.6;
    text-align: justify;
}

.ArticleLayout .ArticleBody {
    margin: 0 0 30px 0;
}

.ArticleLayout.noSidebar .ArticleBody {
    margin: 0 auto 30px auto;
}

.AllArticlesPage {
    width: 100%;
    max-width: 1450px;
}

/* =========================================================
   Article header band
   Negative margins pull it to the card edges and must match
   .ArticleBody's padding (20px top, 35px sides).
   ========================================================= */
.ArticleHeader {
    position: relative;
    display: block;
    margin: -20px -35px 30px -35px;
    padding: 22px 35px 26px 35px;
    border-radius: 11px 11px 0 0;
    background-color: #006699;
    background-image: linear-gradient(135deg, #006699 0%, #00557f 100%);
    color: #fff;
    text-align: center;
}

.ArticleHeader .ArticleTitle {
    margin: 0 auto 12px auto !important;
    max-width: 640px;
    font-size: 1.9em !important;
    line-height: 1.3;
    color: #fff;
}

.ArticleHeader .ArticleSummary {
    margin: 0 auto 18px auto;
    color: rgba(255, 255, 255, 0.88);
}

/* =========================================================
   Breadcrumb
   ========================================================= */
.Breadcrumb {
    margin: 0 0 16px 0;
    font-size: 0.75em;
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.75);
}

.Breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.Breadcrumb li + li::before {
    content: "›";
    margin: 0 8px;
    color: rgba(255, 255, 255, 0.55);
}

.Breadcrumb a {
    color: rgba(255, 255, 255, 0.9) !important;
    text-decoration: none;
}

.Breadcrumb a:hover {
    text-decoration: underline;
}

/* =========================================================
   Author pill
   ========================================================= */
.ArticleAuthor {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
    padding: 6px 16px 6px 6px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.12);
}

.AuthorAvatar {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    overflow: hidden;
    border-radius: 50%;
    background-color: #fff;
    color: #006699;
    font-size: 0.68em;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.AuthorAvatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.AuthorDetails {
    display: block;
    line-height: 1.3;
}

.AuthorName {
    display: block;
    font-size: 0.95em;
    font-weight: 600;
    color: #fff;
}

.AuthorMeta {
    display: block;
    font-size: 0.8em;
    color: rgba(255, 255, 255, 0.75);
}

/* =========================================================
   Article headings and text
   ========================================================= */
.ArticleTitle {
    display: block;
    width: 100%;
    margin: 17px 0 0 0;
    font-size: 1.7em !important;
    font-weight: normal;
    line-height: 1.35;
    letter-spacing: -0.01em;
    text-align: center !important;
    color: #006699;
    text-wrap: balance;
}

.ArticleSummary {
    display: block;
    width: 100%;
    max-width: 600px;
    margin: 0 auto 30px auto;
    font-size: 0.9em !important;
    line-height: 1.6;
    text-align: center;
    color: #666;
    text-wrap: pretty;
}

.SectionTitle {
    display: block;
    margin: 28px 0 6px 0;
    font-size: 1.4em;
    line-height: 1.5;
    color: #006699;
    scroll-margin-top: 90px;
}

.ArticleBody h1 { font-size: 1.9em !important; }

/* H2: full-width grey rule with a blue accent at the start */
.ArticleBody h2 {
    position: relative;
    margin-top: 2.2em;
    margin-bottom: 1.1rem !important;
    padding-bottom: 0.45em;
    border-bottom: 1px solid #e5e7eb;
    font-size: 1.55em !important;
    color: #006699;
}

.ArticleBody h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 56px;
    height: 2px;
    border-radius: 2px;
    background-color: #006699;
}

.ArticleBody h2.textCenterAligned::after {
    left: 50%;
    transform: translateX(-50%);
}

.ArticleBody h2.rightAlignText::after {
    left: auto;
    right: 0;
}

/* H3: darker, heavier, small blue marker in front */
.ArticleBody h3 {
    position: relative;
    margin-top: 1.8em;
    margin-bottom: 0.75rem !important;
    padding-left: 0.85em;
    font-size: 1.25em !important;
    font-weight: 600;
    color: #2b3a45;
}

.ArticleBody h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.2em;
    bottom: 0.2em;
    width: 4px;
    border-radius: 2px;
    background-color: #006699;
}

.ArticleBody h3.textCenterAligned,
.ArticleBody h3.rightAlignText {
    padding-left: 0;
}

.ArticleBody h3.textCenterAligned::before,
.ArticleBody h3.rightAlignText::before {
    display: none;
}

/* H4 and H5 */
.ArticleBody h4 {
    margin-top: 1.5em;
    font-size: 1.1em !important;
    font-weight: 600;
    color: #333;
}

.ArticleBody h5 {
    margin-top: 1.25em;
    font-size: 1em !important;
    font-weight: bold;
    color: #444;
}

/* No extra space when a heading opens the article or follows the header */
.ArticleHeader + h2,
.ArticleHeader + h3,
.ArticleBody > h2:first-child,
.ArticleBody > h3:first-child {
    margin-top: 0;
}

.ArticleBody p { margin-bottom: 1rem; }

.ArticleDisclaimer {
    display: block;
    clear: both;
    box-sizing: border-box;
    width: 100%;
    max-width: 800px;
    margin: 50px auto;
    padding: 0 16px;
    font-size: 0.65em;
    line-height: 1.4;
    color: #999;
}

/* =========================================================
   Related articles menu (sidebar)
   ========================================================= */
.ArticleSubMenu {
    display: block;
    box-sizing: border-box;
    width: 100%;
    padding: 16px 18px;
    border: 1px solid #e3e6ea;
    border-radius: 12px;
    background-color: #fff;
    box-shadow: 0 1px 2px rgb(16 24 40 / 4%), 0 8px 24px rgb(16 24 40 / 8%);
    text-align: left;
}
.ArticleSubMenuTitle {
    display: block;
    margin: 0 0 10px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
    font-size: 0.8em;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #006699;
}

.ArticleSubMenu a {
    display: block;
    margin: 2px 0;
    padding: 7px 10px;
    border-left: 3px solid transparent;
    border-radius: 0 6px 6px 0;
    font-size: 0.9em;
    line-height: 1.4;
    text-align: left;
    color: #333;
    text-decoration: none;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.ArticleSubMenu a:hover {
    border-left-color: #006699;
    background-color: rgba(0, 102, 153, 0.06);
    color: #006699;
}

.ArticleSubMenu a:focus-visible {
    outline: 2px solid #006699;
    outline-offset: 1px;
}

/* =========================================================
   Keywords
   ========================================================= */
.ArticleKeywords {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    width: 100%;
    margin: 12px 0;
    padding: 0;
    list-style: none;
}

.ArticleKeywords::before {
    content: "Keywords for this article: ";
    margin-right: 4px;
}

.ArticleKeywords .Keyword {
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.7em;
    font-weight: 500;
    line-height: 1.5;
    white-space: nowrap;
    background-color: #fff2f2;
    color: #ff33cc;
}

.ArticleKeywords .Keyword:nth-of-type(2) { background-color: #e6f7ff; color: #66ccff; }
.ArticleKeywords .Keyword:nth-of-type(3) { background-color: #ffffe6; color: #999900; }
.ArticleKeywords .Keyword:nth-of-type(4) { background-color: #d6f5d6; color: #009900; }
.ArticleKeywords .Keyword:nth-of-type(5) { background-color: #f2e6ff; color: #a64dff; }

/* =========================================================
   Article image and video
   ========================================================= */
.ArticleImage {
    display: block;
    width: 100%;
    max-width: 800px;
    margin: 0 auto 30px auto;
}

.ArticleImage :where(img) {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    margin: 0 auto;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 6px 18px rgba(0, 0, 0, 0.08);
}

.ArticleHeroImage :where(img) {
    width: 100%;
    object-fit: cover;
    object-position: top center;
}

.videoHolder {
    margin: 0 0 30px 0;
    overflow: hidden;
    border-radius: 10px;
}

.videoHolder video {
    display: block;
    width: 100%;
    height: auto;
}

/* =========================================================
   All-articles summary
   ========================================================= */
.AllArticlesTitle {
    margin: 20px 0 0 0;
    padding-bottom: 5px;
    color: #006699;
}

.AllArticlesSummary {
    padding-bottom: 30px;
    font-size: 0.9em;
    line-height: 1.5;
}

.AllArticlesPageSummary {
    padding-bottom: 10px;
    font-size: 0.8em;
}

/* =========================================================
   Article cards list (all-articles page)
   ========================================================= */
.ArticlesList {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 250px));
    gap: 16px;
    justify-content: start;
    margin: 40px 0 0 0;
}

.ArticlesList a {
    position: relative;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    padding: 0 0 12px 0;
    overflow: hidden;
    border: 1px solid #dfdfdf;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 1px 2px rgba(33, 35, 38, 0.06), 0 6px 14px -6px rgba(33, 35, 38, 0.25);
    font-size: 0.95em;
    line-height: 1.35;
    color: #000 ;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.ArticlesList a:hover {
    cursor: pointer;
    text-decoration: underline;
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(33, 35, 38, 0.08), 0 12px 24px -8px rgba(33, 35, 38, 0.3);
}

.ArticlesList a:focus-visible {
    outline: 2px solid #006699;
    outline-offset: 2px;
}

.ArticleThumbnail {
    display: block;
    width: 100%;
    height: 80px;
    margin: 0 0 10px 0;
    border-bottom: 1px solid #333;
    background-color: #333;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    color: #e5cdcd;
}

.ArticleCardTitle {
    display: block;
    padding: 5px 15px;
    font-family: Poppins, sans-serif !important;
    font-size: 1.1em;
    line-height: 1.4;
    text-align: center;
}

/* =========================================================
   Horizontal spacers (now <hr> elements)
   ========================================================= */
.horizontalLinedSpace,
.horizontalDottedSpace,
.horizontalEmptySpace {
    display: block;
    width: 100%;
    height: 0;
    margin: 30px 0;
    border: 0;
    border-bottom: 1px solid #fff;
    opacity: 1;
}

.horizontalLinedSpace  { border-bottom: 1px solid #ccc; }
.horizontalDottedSpace { border-bottom: 2px dotted #ccc; }

/* =========================================================
   Tablet: sidebar moves below the article
   ========================================================= */
@media (max-width: 960px) {
    .ArticleLayout {
        grid-template-columns: minmax(0, 1fr);
    }

    .ArticleSidebar {
        position: static;
        order: 2;
        max-height: none;
        overflow: visible;
    }

    .ArticleLayout .ArticleBody {
        margin: 0 auto 30px auto;
    }
}

/* =========================================================
   Phone
   ========================================================= */
@media (max-width: 600px) {
    .ArticleLayout {
        padding: 0 12px;
    }

    .ArticleBody {
        padding: 16px 20px 50px 20px;
    }

    .ArticleHeader {
        margin: -16px -20px 24px -20px;
        padding: 18px 20px 22px 20px;
    }

    .ArticleHeader .ArticleTitle {
        font-size: 1.5em !important;
    }

    .ArticlesList {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 12px;
    }
}