/*
Theme Name: NewsBuild
Author: ITWS.eu
Author URI: https://itws.eu/
Version: 270126
*/

/*** Tailwind Overrides ***/
body {
    background-color: #ffffff;
    color: #3D4041;
    -webkit-font-smoothing: antialiased;
}
/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #ffffff;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}
.accordion-content {
    transition: grid-template-rows 0.3s ease-out;
    display: grid;
    grid-template-rows: 0fr;
}
.accordion-content.open {
    grid-template-rows: 1fr;
}
.accordion-inner {
    overflow: hidden;
    min-height: 0;
}
/* Gradient Helpers */
.text-gradient-wiki,
.gradient-text {
    background: linear-gradient(to right, #2563EB, #7C3AED);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.bg-gradient-wiki,
.gradient-bg {
    background: linear-gradient(to right, #2563EB, #7C3AED);
}
.hover-gradient-text:hover {
    background: linear-gradient(to right, #2563EB, #7C3AED);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.liquid-card-img {
    mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
}
/* Smooth Transitions */
a, button, input {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
}
/* Sidebar Transition - Slide from Left */
#wiki-sidebar {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateX(-100%);
}
.sidebar-open #wiki-sidebar {
    transform: translateX(0);
}
/* Toggle Button Transition */
#sidebar-toggle-btn {
    transition: all 0.3s ease;
}
.sidebar-open #sidebar-toggle-btn {
    opacity: 0;
    pointer-events: none;
}
.gradient-text {
    background: linear-gradient(to right, #2563EB, #7C3AED);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.gradient-bg {
    background: linear-gradient(to right, #2563EB, #7C3AED);
}
/* Typography Overrides */

.wiki-content h1 { letter-spacing: -0.025em; font-family: 'Source Sans 3', sans-serif; }
.wiki-content h2 { letter-spacing: -0.02em; margin-top: 2.5rem; margin-bottom: 1rem; font-family: 'Source Sans 3', sans-serif; color: #102F6A; }
.wiki-content h3 { letter-spacing: -0.01em; margin-top: 2rem; margin-bottom: 0.75rem; font-family: 'Source Sans 3', sans-serif; color: #102F6A; }
.wiki-content a,
.text-news-body a {
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-color: rgb(37 99 235 / 0.3);
    color: #2563EB;
    font-weight: 700;
}
.wiki-content a:hover,
.text-news-body a:hover {
    color: #7C3AED;
    text-decoration-color: rgb(124 58 237 / 0.3);
}
.articles_post .text-news-body a {
    color: #7C3AED;
    text-decoration-color: rgb(124 58 237 / 0.3);
}
.articles_post .text-news-body a:hover {
    text-decoration-color: rgb(37 99 235 / 0.3);
    color: #2563EB;
}
button#sidebar-close-btn {
    height: 32px;
}
.arrow-prev:hover iconify-icon {
    color: #2563EB;
}
.arrow-next:hover iconify-icon {
    color: #7C3AED;
}
#wiki-sidebar .group_name {
    padding-right: 5px;
}
.active_wiki {
   line-height: 1.125rem; 
}
/*
.wiki-content p { margin-bottom: 1.5rem; line-height: 1.75; color: #3D4041; }
.wiki-content ul { margin-bottom: 1.5rem; list-style-type: disc; padding-left: 1.5rem; color: #3D4041; }
.wiki-content ol { margin-bottom: 1.5rem; list-style-type: decimal; padding-left: 1.5rem; color: #3D4041; }
.wiki-content li { margin-bottom: 0.5rem; }
.wiki-content strong { color: #102F6A; font-weight: 700; }
*/

/** 404 Error Page **/
.error404 main {
  display: flex;
}
.error404 main > .max-w-7xl {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.error_404 .wiki-content h2 {
    margin-top: 1.5rem;
}
@media (max-width:768px) {
    .error_404 h1 {
        font-size: 2.5rem;
        line-height: 2.5rem;
    }
    .error_404 h2 {
        font-size: 1.5rem;
        line-height: 1.5rem;
    }
    .error_404 h3 {
        font-size: 1.5rem;
        line-height: 1.5rem;
    }
}

/** Search Form & Page **/
@media (max-width: 639.98px) {
    #header-search.search-visible {
        top: 62px;
        right: 24px;
        display: block;
        position: absolute;
    }
    .breadcrumb {
        flex-wrap: wrap;
    }
}

.search_results {
    margin-bottom: -3rem;
}
.result_wrap {
    border: 2px solid;
    border-color: rgb(226, 232, 240);
    padding: 6px 18px;
    border-radius: 12px;
    margin-bottom: 12px;
}
.result_wrap a {
    text-decoration: none;
    color: #102F6A;
}
.result_wrap a:hover {
    text-decoration: none;
    color: #2563EB;
}
.result_wrap a .name_badge {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.result_wrap a .post_name {
    display: flex;
    align-items: center;
    padding-right: 8px;
}
.result_wrap a .badge {
    color: #fff;
    min-width: 70px;
    text-align: center;
    border-radius: 9999px;
    padding: 4px 12px;
    font-size: 12px;
    line-height: 14px;
}
.result_wrap a:hover .badge {
    color: #fff;
}
.result_wrap a .badge.page {
    background-color: #102F6A;
}
.result_wrap a .badge.news {
    background-color: #2563EB;
}
.result_wrap a .badge.article {
    background-color: #7C3AED;
}
.result_wrap a .badge.wiki {
    background: linear-gradient(to right, #2563EB, #7C3AED);
}

@media (max-width: 370px) {
    .result_wrap a .name_badge {
        justify-content: flex-start;
        align-items: flex-start;
        flex-direction: column;
    }
    .result_wrap a .badge {
        margin-top: 3px;
        margin-bottom: 3px;
    }
}


/** Single Posts Blocks **/
.text-news-body strong {
    color: #102F6A; 
    font-weight: 600;
}
ul ul,
ul ul ul,
ul ul ul ul {
    list-style-type: circle !important;
    margin-bottom: 0 !important;
    padding-left: 1rem !important;
    padding-top: 0.5rem;
}
ul ul ul,
ul ul ul ul {
    list-style-type: square !important;
}
ol ul,
ol ul ul,
ol ul ul ul {
    list-style-type: disc !important;
    margin-bottom: 0 !important;
    padding-left: 1rem !important;
    padding-top: 0.5rem;
}
ol ul ul {
    list-style-type: circle !important;
}
ol ul ul ul {
    list-style-type: square !important;
}
.has-text-align-center {
    text-align: center;
}
.has-text-align-right {
    text-align: right;
}

.articles_post .text-news-body blockquote,
.page-template-default blockquote {
    border-color: #7C3AED; 
}

.page-template-default .preformatted-text {
    color: rgb(16 47 106 / 0.8);
    font-weight: 400;
}

/** Header & Footer **/
#mobile-menu .menu-item.current-menu-item,
#desktop-menu .menu-item.current-menu-item {
    color: rgba(16, 47, 106, .7);
}
#mobile-menu .menu-item.news-item.current-menu-item,
#desktop-menu .menu-item.news-item.current-menu-item {
    color: #2563EB;
}
#mobile-menu .menu-item.articles-item.current-menu-item,
#desktop-menu .menu-item.articles-item.current-menu-item {
    color: #7C3AED;
}
#mobile-menu .menu-item.wiki-item.current-menu-item,
#desktop-menu .menu-item.wiki-item.current-menu-item {
    background: linear-gradient(to right, #2563EB, #7C3AED);
    background-clip: text;
    -webkit-background-clip: text; /* Safari */
    color: transparent;
}

.search-input {
    z-index: 0;
    position: relative;
}
.search-btn {
    z-index: 10;
}

.home-news-date {
    font-weight: 500;
}

footer .menu-item.current-menu-item {
    color: #2563EB; 
}
.articles_page footer .menu-item.current-menu-item,
.articles_post footer .menu-item.current-menu-item {
    color: #7C3AED; 
}

/** Infinite Scroll **/
.infinite_nav {
    flex-direction: column;
}
.page-load-status {
    display: none;	
}
.infinite-scroll-last,
.infinite-scroll-error {
    cursor: default;
}
.loader-ellips {
    font-size: 20px; /* change size here */
    position: relative;
    width: 4em;
    height: 1em;
    margin: 10px auto;
}

.loader-ellips__dot {
    display: block;
    width: 1em;
    height: 1em;
    border-radius: 0.5em;
    background: #777777; /* change color here */
    position: absolute;
    animation-duration: 0.5s;
    animation-timing-function: ease;
    animation-iteration-count: infinite;
}
.news_page .loader-ellips__dot {
    background: #2563EB;
}
.articles_page .loader-ellips__dot {
    background: #7C3AED;
}

.loader-ellips__dot:nth-child(1),
.loader-ellips__dot:nth-child(2) {
    left: 0;
}
.loader-ellips__dot:nth-child(3) { left: 1.5em; }
.loader-ellips__dot:nth-child(4) { left: 3em; }

@keyframes reveal {
    from { transform: scale(0.001); }
    to { transform: scale(1); }
}

@keyframes slide {
    to { transform: translateX(1.5em) }
}

.loader-ellips__dot:nth-child(1) {
    animation-name: reveal;
}

.loader-ellips__dot:nth-child(2),
.loader-ellips__dot:nth-child(3) {
    animation-name: slide;
}

.loader-ellips__dot:nth-child(4) {
    animation-name: reveal;
    animation-direction: reverse;
}

/** Video Blocks **/
.video_frame {
    overflow: hidden;
    padding-top: 56.25%; /* 16:9 */
    position: relative;
}

.video_frame iframe {
    position: absolute;
    top: 0;
    left: 0;
    border: 0;
    width: 100%;
    height: 100%;
}