/* ==========================================================================
   DIANOMEIS – CUSTOM CSS THEME
   Paste into: Cassiopeia Extended → Custom CSS field
   NO HTML changes needed. Targets your existing article structure.
   
   Brand colors: Yellow-Orange #eea00a · Gray #585858
   
   Optional: Add this Google Font to your template <head>:
   <link href="https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap" rel="stylesheet">
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');
/* -- COLOR VARIABLES ------------------------------------------------------ */
:root {
    /* Primary – Dark Gray / Charcoal */
    --dn-primary:          #585858;
    --dn-primary-dark:     #3d3d3d;
    --dn-primary-darker:   #2e2e2e;
    --dn-primary-deep:     #404040;
    --dn-primary-light:    #737373;

    /* Secondary – Yellow-Orange */
    --dn-secondary:        #eea00a;
    --dn-secondary-dark:   #cc8800;
    --dn-secondary-light:  #f5b83a;
    --dn-secondary-deep:   #8a5c00;

    /* Text */
    --dn-text-dark:        #1a1a1a;
    --dn-text-body:        #3a3a3a;
    --dn-text-muted:       #444;
    --dn-text-white:       #fff;

    /* Surfaces */
    --dn-surface:          rgba(255,255,255,.98);
    --dn-surface-footer-top:    #faf9f7;
    --dn-surface-footer-bottom: #f2efea;

    /* Overlays */
    --dn-overlay-25:       rgba(255,255,255,.25);
    --dn-overlay-15:       rgba(255,255,255,.15);
    --dn-overlay-12:       rgba(255,255,255,.12);
    --dn-overlay-10:       rgba(255,255,255,.1);
    --dn-overlay-08:       rgba(255,255,255,.08);
    --dn-overlay-04:       rgba(255,255,255,.04);

    /* Font */
    --dn-font:             'Outfit', system-ui, -apple-system, sans-serif;
}

a {
    text-decoration: unset !important;
}

/* -- BODY & PAGE BACKGROUND ----------------------------------------------- */
body.com_content.view-article {
    background: linear-gradient(160deg, #2e2e2e 0%, #484848 25%, #585858 50%, #484848 75%, #3d3d3d 100%) !important;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

body.com_content.view-article::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 600px 600px at 15% 20%, rgba(238,160,10,.08), transparent),
        radial-gradient(ellipse 500px 500px at 85% 75%, rgba(238,160,10,.06), transparent),
        radial-gradient(ellipse 400px 300px at 50% 50%, var(--dn-overlay-04), transparent);
    animation: dn-drift 25s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes dn-drift {
    0%, 100% { transform: translateY(0) scale(1); }
    50%      { transform: translateY(-30px) scale(1.02); }
}

body.com_content.view-article .site-grid,
body.com_content.view-article > header,
body.com_content.view-article > footer {
    position: relative;
    z-index: 1;
}

/* -- HEADER --------------------------------------------------------------- */
body.com_content.view-article header.header {
    background: rgba(46,46,46,.55) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(238,160,10,.15);
    box-shadow: 0 4px 30px rgba(0,0,0,.2);
    display: flex;
}

body.com_content.view-article .navbar-brand,
body.com_content.view-article .container-search,
body.com_content.view-article .mod-languages {
    display: flex;
    align-items: center;
}

body.com_content.view-article .container-nav {
    padding: 0.5em;
}

body.com_content.view-article .container-search {
    margin: 0;
}

body.com_content.view-article header.header .brand-logo{
    display: flex;
    align-items: center;
}

body.com_content.view-article header.header .brand-logo img {
    /*filter: brightness(0) invert(1);*/
    transition: transform .3s ease;
}

body.com_content.view-article header.header .brand-logo:hover img {
    transform: scale(1.05);
}

body.com_content.view-article header.header .mod-languages .btn {
    background: rgba(238,160,10,.15) !important;
    border: 1px solid rgba(238,160,10,.3) !important;
    color: var(--dn-text-white) !important;
    backdrop-filter: blur(10px);
    border-radius: 12px !important;
    transition: all .3s ease;
}

body.com_content.view-article header.header .mod-languages .btn:hover {
    background: rgba(238,160,10,.25) !important;
    transform: translateY(-1px);
}

body.com_content.view-article header.header {
    z-index: 100;
}

body.com_content.view-article header.header .dropdown-menu {
    z-index: 101;
}

div.mod-languages ul.lang-block li {
    padding: 0;
}

div.mod-languages ul.lang-block li a {
    display: block;
    width: 100%;
    color: black;
}

/* -- MAIN CONTAINER ------------------------------------------------------- */
body.com_content.view-article .com-content-article__body .container {
    max-width: 1100px;
    padding-top: 3rem;
    padding-bottom: 4rem;
    animation: dn-slideUp .8s cubic-bezier(.22,1,.36,1) both;
}

@keyframes dn-slideUp {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* -- CARDS ---------------------------------------------------------------- */
body.com_content.view-article .com-content-article__body .card {
    border: none !important;
    border-radius: 24px !important;
    overflow: hidden;
    background: var(--dn-surface) !important;
    box-shadow:
        0 25px 80px rgba(0,0,0,.25),
        0 0 0 1px rgba(255,255,255,.5) inset;
    transition: transform .45s cubic-bezier(.22,1,.36,1),
                box-shadow .45s cubic-bezier(.22,1,.36,1);
}

body.com_content.view-article .com-content-article__body .card:hover {
    transform: translateY(-12px) scale(1.015);
    box-shadow:
        0 40px 100px rgba(0,0,0,.3),
        0 0 0 1px rgba(255,255,255,.6) inset,
        0 0 80px rgba(238,160,10,.1);
}

body.com_content.view-article .col-lg-6:first-child .card {
    animation: dn-cardIn .7s cubic-bezier(.22,1,.36,1) .2s both;
}
body.com_content.view-article .col-lg-6:last-child .card {
    animation: dn-cardIn .7s cubic-bezier(.22,1,.36,1) .45s both;
}

@keyframes dn-cardIn {
    from { opacity: 0; transform: translateY(50px) scale(.95); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* -- CARD HEADERS --------------------------------------------------------- */
body.com_content.view-article .card-header {
    padding: 2.2rem 2rem 2rem !important;
    position: relative;
    overflow: hidden;
    border-bottom: none !important;
}

/* Card 1 header – Charcoal gradient */
body.com_content.view-article .card-header.bg-primary {
    background: linear-gradient(135deg, #2e2e2e 0%, #484848 40%, #636363 100%) !important;
}

/* Card 2 header – Yellow-Orange gradient */
body.com_content.view-article .card-header.bg-warning {
    background: linear-gradient(135deg, #cc8800 0%, #eea00a 40%, #f5b83a 100%) !important;
}

/* Glowing orbs on headers */
body.com_content.view-article .card-header::before {
    content: '';
    position: absolute;
    top: -60%;
    right: -15%;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(255,255,255,.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

body.com_content.view-article .card-header::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -10%;
    width: 170px;
    height: 170px;
    background: radial-gradient(circle, var(--dn-overlay-10) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* -- CARD TITLE ----------------------------------------------------------- */
body.com_content.view-article .card-title {
    font-family: var(--dn-font);
    font-size: 1.65rem !important;
    font-weight: 700 !important;
    letter-spacing: -.01em;
    text-shadow: 0 2px 12px rgba(0,0,0,.15);
    position: relative;
    z-index: 1;
}

body.com_content.view-article .card-header.bg-warning .card-title {
    color: var(--dn-text-dark) !important;
    text-shadow: 0 2px 10px rgba(255,255,255,.2);
}

/* -- CARD BODY ------------------------------------------------------------ */
body.com_content.view-article .card-body {
    padding: 1.5rem 2rem 1.2rem !important;
}

body.com_content.view-article .card-body .card-text {
    font-family: var(--dn-font);
    font-size: 1.02rem;
    line-height: 1.55;
    color: var(--dn-text-body) !important;
    margin-bottom: .6rem;
}

/* List items in two columns */
body.com_content.view-article .card-body ul {
    columns: 2;
    -webkit-columns: 2;
    column-gap: 1.5rem;
    margin-bottom: .6rem;
}

body.com_content.view-article .card-body .card-text strong {
    color: var(--dn-primary-darker) !important;
    font-weight: 600;
}

body.com_content.view-article .border-warning .card-body .card-text strong,
body.com_content.view-article .card-header.bg-warning ~ .card-body .card-text strong {
    color: var(--dn-secondary-deep) !important;
}

/* -- CARD FOOTER ---------------------------------------------------------- */
body.com_content.view-article .card-footer {
    padding: 1.5rem 2rem 2rem !important;
    background: linear-gradient(180deg, var(--dn-surface-footer-top) 0%, var(--dn-surface-footer-bottom) 100%) !important;
    border-top: 1px solid rgba(0,0,0,.04) !important;
}

body.com_content.view-article .card-footer p {
    font-family: var(--dn-font);
    color: var(--dn-text-muted);
    font-weight: 500;
}

body.com_content.view-article .card-footer ul:empty {
    display: none;
}

/* -- EMAIL BUTTON --------------------------------------------------------- */
body.com_content.view-article .card-footer .btn-primary {
    background: linear-gradient(135deg, #585858 0%, #eea00a 100%) !important;
    border: none !important;
    border-radius: 14px !important;
    padding: .9rem 2.2rem !important;
    font-family: var(--dn-font);
    font-size: 1.05rem !important;
    font-weight: 600 !important;
    letter-spacing: .02em;
    color: var(--dn-text-white) !important;
    box-shadow:
        0 10px 30px rgba(238,160,10,.3),
        0 0 0 0 rgba(238,160,10,.2);
    transition: all .35s cubic-bezier(.22,1,.36,1) !important;
    text-decoration: none !important;
    position: relative;
    overflow: hidden;
}

body.com_content.view-article .card-footer .btn-primary::after {
    content: '→';
    margin-left: .5rem;
    display: inline-block;
    transition: transform .3s ease;
}

body.com_content.view-article .card-footer .btn-primary:hover {
    transform: translateY(-3px) scale(1.03) !important;
    box-shadow:
        0 18px 45px rgba(238,160,10,.4),
        0 0 0 4px rgba(238,160,10,.12) !important;
}

body.com_content.view-article .card-footer .btn-primary:hover::after {
    transform: translateX(4px);
}

body.com_content.view-article .card-footer .btn-primary a:hover{
    color: #f1f1f1;
}

/* -- FOOTER --------------------------------------------------------------- */
body.com_content.view-article footer.container-footer {
    background: rgba(30,30,30,.5) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(238,160,10,.1);
    text-align: center;
}

body.com_content.view-article footer.container-footer a {
    color: rgba(255,255,255,.75) !important;
    text-decoration: none !important;
    font-family: var(--dn-font);
    transition: color .3s ease;
}

body.com_content.view-article footer.container-footer a:hover {
    color: #f5b83a !important;
}

body.com_content.view-article footer.container-footer .grid-child {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* -- RESPONSIVE ----------------------------------------------------------- */
@media (max-width: 991px) {
    body.com_content.view-article .com-content-article__body .container {
        padding-top: 2rem;
        padding-bottom: 3rem;
    }
}

@media (max-width: 575px) {
    body.com_content.view-article .card-header {
        padding: 1.5rem !important;
    }
    body.com_content.view-article .card-body {
        padding: 1.5rem !important;
    }
    body.com_content.view-article .card-footer {
        padding: 1.25rem 1.5rem 1.5rem !important;
    }
    body.com_content.view-article .card-title {
        font-size: 1.3rem !important;
    }
    body.com_content.view-article .com-content-article__body .card {
        border-radius: 18px !important;
    }
}

/* -- SCROLLBAR ------------------------------------------------------------ */
body.com_content.view-article::-webkit-scrollbar {
    width: 8px;
}
body.com_content.view-article::-webkit-scrollbar-track {
    background: #2e2e2e;
}
body.com_content.view-article::-webkit-scrollbar-thumb {
    background: rgba(238,160,10,.3);
    border-radius: 4px;
}
body.com_content.view-article::-webkit-scrollbar-thumb:hover {
    background: rgba(238,160,10,.5);
}