/* ============================================================
   Ekobyte Hugo — Content & Layout Overrides
   ============================================================ */

/* ---- Hero / Slider ---- */
.slider-area.style-2 {
    background: #12182b;
    min-height: 580px;
}
.te-slider-short-title {
    display: inline-block;
    background: rgba(49,126,254,0.15);
    color: #317EFE;
    border: 1px solid rgba(49,126,254,0.35);
    border-radius: 40px;
    padding: 5px 18px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}
.te-slider-title {
    color: #fff;
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    font-family: 'Spline Sans', 'DM Sans', sans-serif;
}
.te-slider-short-desc {
    color: rgba(255,255,255,0.65);
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 520px;
}
.te-slider-btn-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

/* ---- Page title / breadcrumb banner ---- */
.page-breadcrumb-area {
    padding-top: 110px;
    padding-bottom: 40px;
    position: relative;
    background: #12182b;
    /* background-image intentionally removed — solid colour only */
    background-size: cover;
    background-position: center;
}
.page-overlay {
    position: absolute;
    inset: 0;
    background: rgba(18,24,43,0.75);
}
.te-breadcrumb-wrapper {
    position: relative;
    z-index: 1;
}
.te-page-title {
    color: #fff;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-family: 'Spline Sans', 'DM Sans', sans-serif;
}
.te-breadcrumb-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.te-breadcrumb-list ul li {
    color: rgba(255,255,255,0.5);
    font-size: 0.875rem;
}
.te-breadcrumb-list ul li a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
}
.te-breadcrumb-list ul li a:hover { color: #317EFE; }
.te-breadcrumb-list ul li + li::before {
    content: "›";
    margin-right: 8px;
    color: rgba(255,255,255,0.3);
}
.te-breadcrumb-list ul li.active { color: rgba(255,255,255,0.55); }

/* ---- Article prose ---- */
.ek-article {
    font-family: 'DM Sans', 'Inter', sans-serif;
    font-size: 1rem;
    line-height: 1.8;
    color: #374151;
    max-width: 780px;
}

.ek-article > * + * { margin-top: 1.25em; }
.ek-article > *:first-child { margin-top: 0; }

.ek-article h2 {
    font-size: 1.55rem;
    font-weight: 700;
    color: #111827;
    margin-top: 2.2em;
    margin-bottom: 0.75em;
    line-height: 1.3;
    font-family: 'Spline Sans', 'DM Sans', sans-serif;
}
.ek-article h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1e293b;
    margin-top: 1.8em;
    margin-bottom: 0.5em;
    font-family: 'Spline Sans', 'DM Sans', sans-serif;
}
.ek-article h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
    margin-top: 1.5em;
    margin-bottom: 0.4em;
}

.ek-article p {
    margin-top: 1.25em;
    margin-bottom: 1.25em;
    color: #374151;
}

.ek-article a {
    color: #317EFE;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}
.ek-article a:hover { color: #1a5cd4; }

.ek-article strong { color: #111827; font-weight: 600; }

.ek-article ul, .ek-article ol {
    padding-left: 1.6em;
    margin-top: 1.25em;
    margin-bottom: 1.25em;
}
.ek-article ul { list-style-type: disc; }
.ek-article ol { list-style-type: decimal; }
.ek-article li {
    margin-top: 0.4em;
    margin-bottom: 0.4em;
    padding-left: 0.3em;
}

.ek-article img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin-top: 2em;
    margin-bottom: 2em;
    display: block;
    box-shadow: 0 4px 24px rgba(0,0,0,0.10);
}

.ek-article thead th {
    background: #317EFE;
    color: #fff;
    padding: 10px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: .03em;
}
.ek-article tbody td {
    padding: 10px 16px;
    border-bottom: 1px solid #f0f4f8;
    color: #4b5563;
    vertical-align: top;
}
.ek-article tbody tr:last-child td { border-bottom: none; }
.ek-article tbody tr:nth-child(even) td { background: #f8fafc; }

.ek-article blockquote {
    border-left: 4px solid #317EFE;
    margin: 1.8em 0;
    padding: 0.8em 1.2em;
    background: #f0f6ff;
    border-radius: 0 8px 8px 0;
    color: #374151;
    font-style: italic;
}

/* ---- FAQ accordion ---- */
.ek-faq { margin-top: 3rem; }
.ek-faq-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1.5rem;
    font-family: 'Spline Sans', 'DM Sans', sans-serif;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e5e7eb;
}
.ek-faq .accordion-item {
    border: 1px solid #e5e7eb;
    border-radius: 8px !important;
    margin-bottom: 10px;
    overflow: hidden;
}
.ek-faq .accordion-button {
    font-weight: 600;
    font-size: 0.97rem;
    color: #111827;
    background: #fff;
    padding: 16px 20px;
    box-shadow: none;
}
.ek-faq .accordion-button:not(.collapsed) {
    background: #317EFE;
    color: #fff;
}
.ek-faq .accordion-button:focus { box-shadow: 0 0 0 3px rgba(49,126,254,0.2); }
.ek-faq .accordion-button::after { filter: none; }
.ek-faq .accordion-button:not(.collapsed)::after { filter: brightness(10); }
.ek-faq .accordion-body {
    padding: 16px 20px;
    font-size: 0.94rem;
    color: #4b5563;
    line-height: 1.75;
    background: #fafafa;
}

/* ---- Play button — white text always ---- */
a#PlayButton.te-quote-btn,
a#PlayButton.te-theme-btn,
a.ek-play-content-btn.te-theme-btn {
    background: #317EFE;
    border-color: #317EFE;
    color: #ffffff !important;
    transition: background .25s, transform .2s;
}
a#PlayButton.te-quote-btn:hover,
a#PlayButton.te-theme-btn:hover,
a.ek-play-content-btn.te-theme-btn:hover {
    background: #1a5cd4;
    border-color: #1a5cd4;
    color: #ffffff !important;
    transform: translateY(-2px);
}

/* ---- TOC shortcode ---- */
/* ---- TOC — collapsible details/summary, full width ---- */
.ek-toc {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    margin: 2em 0;
    width: 100%;
    box-sizing: border-box;
}
.ek-toc-title {
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #6b7280;
    padding: 16px 24px;
    cursor: pointer;
    user-select: none;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0;
}
.ek-toc-title::-webkit-details-marker { display: none; }
.ek-toc-title::after {
    content: "\f078";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.65rem;
    color: #9ca3af;
    transition: transform .2s;
}
.ek-toc[open] .ek-toc-title::after {
    transform: rotate(180deg);
}
.ek-toc nav#TableOfContents {
    padding: 0 24px 16px;
    border-top: 1px solid #e5e7eb;
}
.ek-toc nav#TableOfContents ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
    padding-top: 12px;
}
.ek-toc nav#TableOfContents li { margin: 3px 0; }
.ek-toc nav#TableOfContents a {
    color: #317EFE;
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1.5;
}
.ek-toc nav#TableOfContents a:hover { text-decoration: underline; }
.ek-toc nav#TableOfContents ul ul { padding-left: 1em; margin-top: 2px; padding-top: 0; }

/* ---- Homepage + Inner pages: flat header (no pill, no float) ---- */
.page-home .header-area.style-2 .te-header-menu-area,
.page-inner .header-area.style-2 .te-header-menu-area {
    top: 0;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}
.page-home .header-area.style-2 .te-header-menu-area .menu-wrapper,
.page-inner .header-area.style-2 .te-header-menu-area .menu-wrapper {
    border-radius: 0;
    background: transparent;
    padding-left: 0;
    padding-right: 0;
}

/* ---- Footer disclaimer ---- */
.ek-footer-disclaimer {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.45);
    line-height: 1.6;
}
.ek-footer-disclaimer strong { color: rgba(255,255,255,0.65); }
.ek-footer-disclaimer-label {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.25);
    margin-bottom: 4px;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .te-slider-title { font-size: 1.8rem; }
    .ek-article { font-size: 0.95rem; }
}

/* ---- Compact page breadcrumb banner (no h1, much smaller) ---- */
.page-breadcrumb-compact {
    padding-top: 100px !important;
    padding-bottom: 18px !important;
}
.page-breadcrumb-compact .te-breadcrumb-wrapper {
    display: flex;
    align-items: center;
}

/* ---- Footer brand logos ---- */

/* ---- Homepage: no hero, full-width content ---- */
.ek-home-content-area {
    background: #fff;
    padding: 0 0 30px;
    /* Push content below fixed flat header (~70px height) */
    margin-top: 110px;
}
.ek-article-home {
    max-width: 100%;
    font-size: 1rem;
    line-height: 1.8;
    color: #374151;
}
.ek-article-home h1 {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 700;
    color: #12182b;
    margin-bottom: 1rem;
    font-family: 'Spline Sans', 'DM Sans', sans-serif;
}
.ek-article-home h2 {
    font-size: clamp(1.3rem, 2.2vw, 1.8rem);
}

/* ---- Footer restructure ---- */
.ek-footer .te-footer-sec {
    padding: 40px 0 24px;
}

/* Top row: logo + nav links */
.ek-footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 24px;
}
.ek-footer-logo-img {
    max-height: 44px;
    width: auto;
    display: block;
}
.ek-footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    align-items: center;
}
.ek-footer-nav a {
    color: rgba(255,255,255,0.75);
    font-size: 0.8rem;
    text-decoration: none;
    transition: color .2s;
}
.ek-footer-nav a:hover { color: #fff; }

/* Disclaimer blocks */
.ek-footer-disclaimer-block {
    margin-bottom: 16px;
    max-width: 860px;
}
.ek-footer-disclaimer-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.65);
    margin-bottom: 4px;
}
.ek-footer-disclaimer {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.65;
    margin: 0;
}
.ek-footer-disclaimer strong { color: rgba(255,255,255,0.85); }

/* Bottom bar: copyright + trust logos */
.ek-footer-bottom .ek-footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px 0;
}
.ek-footer-bottom .te-copyright-text p {
    margin: 0;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.65);
}
.ek-footer-trust-logos {
    display: flex;
    align-items: center;
    gap: 16px;
}
/* Full colour logos — no filter, no opacity reduction */
.ek-trust-logo img {
    height: 26px;
    width: auto;
    max-width: 72px;
    object-fit: contain;
    display: block;
    transition: opacity .2s;
}
.ek-trust-logo img:hover { opacity: 0.8; }

/* ---- Play button — always visible, desktop + mobile ---- */
.ek-play-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #317EFE;
    color: #fff !important;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.3px;
    border-radius: 50px;
    padding: 10px 18px;
    white-space: nowrap;
    text-decoration: none !important;
    transition: background .2s, transform .15s;
    flex-shrink: 0;
}
.ek-play-btn:hover {
    background: #1a5fd4;
    transform: translateY(-1px);
}
.ek-play-btn i { font-size: 0.75rem; }

/* Slightly larger on desktop */
@media (min-width: 992px) {
    .ek-play-btn {
        font-size: 0.95rem;
        padding: 11px 24px;
    }
}

@media (max-width: 768px) {
    .ek-home-content-area { margin-top: 70px; }
    .ek-footer-top { flex-direction: column; align-items: flex-start; }
    .ek-footer-bottom-inner { flex-direction: column; align-items: flex-start; }
    .ek-play-btn span { display: none; } /* hide text on very small, keep icon */
}

/* ---- Scroll-to-top: fix missing arrow (FA6 Free needs font-weight:900 for solid) ---- */
.progress-wrap::after {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    content: '\f062' !important;
}
/* Move back-to-top button closer to the edge */
.progress-wrap {
    right: 16px !important;
    bottom: 20px !important;
}

/* ---- Play button in article: no underline ---- */
.ek-article a#PlayButton,
.ek-article a.ek-play-content-btn {
    text-decoration: none !important;
}

/* ---- Tables: scroll wrapper injected by JS ---- */
.ek-table-scroll {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 2em 0;
    border-radius: 8px;
    box-shadow: 0 1px 8px rgba(0,0,0,0.07);
}
.ek-article table,
.ek-article-home table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    line-height: 1.55;
    white-space: nowrap;
    min-width: 100%;
    margin: 2em 0;
    border-radius: 8px;
    box-shadow: 0 1px 8px rgba(0,0,0,0.07);
}
/* When JS has wrapped the table, let the wrapper own spacing/shadow */
.ek-table-scroll table {
    margin: 0;
    border-radius: 0;
    box-shadow: none;
}

//* ============================================================
   Layout sanity fixes (content width + embeds)
   ============================================================ */

/* Make main article area use a more sensible readable width */
.ek-article {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* Homepage article should not hug the edges */
.ek-article-home {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* Prevent narrow containers inside article */
.ek-article > div,
.ek-article > section {
    max-width: 100%;
}

/* ===== Fix page width ===== */
.blog-details-area .container,
.blog-area .container,
.page-wrapper .container {
    max-width: 1100px;
}

/* Better side spacing */
.blog-details-content,
.blog-details-area {
    padding-left: 20px;
    padding-right: 20px;
}

/* ===== Force embeds to use full width ===== */
.blog-details-content iframe,
.blog-details-area iframe,
.container iframe {
    width: 100% !important;
    max-width: 100% !important;
    height: 600px;
    display: block;
}

/* Remove tiny embed wrappers */
.blog-details-content p:has(iframe),
.blog-details-content div:has(iframe) {
    width: 100%;
}