/*
Theme Name: TKBTOP8 Editable
Theme URI: https://example.com/
Author: Converted from supplied HTML snapshot
Description: Dashboard-editable WordPress conversion of the supplied TKBTOP8 HTML snapshot with editable branding, menus, colors, homepage, special pages, footer, 404, legal pages, clean trailing-slash permalinks, two-domain canonical/hreflang support, and a native SEO engine.
Version: 4.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: tkbtop8-converted
*/

:root {
  --tkb-content-bg: #111;
  --tkb-card-bg: #181818;
  --tkb-gold: #fdc92f;
  --tkb-text: #fff;
  --tkb-muted: #c9c9c9;
}

html { scroll-behavior: smooth; }
body { margin: 0; background-color: var(--tkb-content-bg); color: var(--tkb-text); }

.screen-reader-text {
  border: 0;
  clip: rect(1px,1px,1px,1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}
.screen-reader-text:focus {
  clip: auto !important;
  clip-path: none;
  height: auto;
  width: auto;
  padding: 12px 16px;
  background: #fff;
  color: #111;
  z-index: 100000;
  top: 8px;
  left: 8px;
}

.tkb-legal-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px 18px;
  flex-wrap: wrap;
  margin: 18px auto 10px;
  padding: 0 16px;
  font-family: "Prompt", sans-serif;
}
.tkb-legal-links a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
}
.tkb-legal-links a:hover,
.tkb-legal-links a:focus {
  color: var(--tkb-gold);
  text-decoration: underline;
}

.tkb-content-shell {
  background: #0f0f0f;
  color: #fff;
  min-height: 55vh;
  padding: 48px 20px 64px;
  font-family: "Prompt", sans-serif;
}
.tkb-content-shell .tkb-content-inner {
  width: min(980px, 100%);
  margin: 0 auto;
  background: #171717;
  border: 1px solid rgba(253,201,47,.28);
  border-radius: 14px;
  padding: clamp(22px, 4vw, 44px);
  box-sizing: border-box;
}
.tkb-content-shell h1,
.tkb-content-shell h2,
.tkb-content-shell h3 {
  color: var(--tkb-gold);
  line-height: 1.35;
}
.tkb-content-shell h1 { margin-top: 0; font-size: clamp(28px, 4vw, 42px); }
.tkb-content-shell h2 { margin-top: 32px; font-size: clamp(21px, 3vw, 28px); }
.tkb-content-shell p,
.tkb-content-shell li {
  color: #eee;
  line-height: 1.85;
  font-size: 16px;
}
.tkb-content-shell a { color: #ffd85f; }
.tkb-content-shell ul { padding-left: 24px; }

.tkb-post-meta {
  color: #bdbdbd;
  font-size: 14px;
  margin: -8px 0 24px;
}
.tkb-featured-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 0 0 26px;
}
.tkb-post-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 24px;
}
.tkb-post-card {
  background: #181818;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(253,201,47,.18);
}
.tkb-post-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.tkb-post-card__body { padding: 20px; }
.tkb-post-card h2 { margin: 0 0 12px; font-size: 20px; }
.tkb-post-card p { color: #ddd; margin: 0 0 16px; }
.tkb-post-card a { color: var(--tkb-gold); text-decoration: none; }

.elementor-menu-toggle { cursor: pointer; }
@media (max-width: 1024px) {
  .elementor-nav-menu--dropdown[aria-hidden="true"] { display: none !important; }
  .elementor-nav-menu--dropdown[aria-hidden="false"] { display: block !important; }
}
@media (max-width: 820px) {
  .tkb-post-list { grid-template-columns: 1fr; }
}

/* The mirror did not include several gallery thumbnails. Keep their tiles present
   instead of showing a broken-image icon. */
.e-gallery-image {
  background-color: #1a1a1a;
  background-size: cover;
  background-position: center;
  min-height: 120px;
}


/* ===== Editable theme controls (v3) ===== */
:root {
  --tkb-header-start: #220031;
  --tkb-header-end: #460066;
  --tkb-footer-end: #000000;
  --tkb-accent: #fdc92f;
  --tkb-button-start: #ffce00;
  --tkb-button-end: #f2a229;
  --tkb-content-bg: #0f0f0f;
  --tkb-card-bg: #171717;
  --tkb-text: #ffffff;
}

/* Custom logo keeps the original proportions/layout but is replaceable in Site Identity. */
.tkb-site-logo img,
.elementor-30 .elementor-element.elementor-element-a533370 .tkb-site-logo img,
.elementor-39 .elementor-element.elementor-element-22edf0f4 .tkb-site-logo img {
  max-width: 100%;
  height: auto;
}
.elementor-30 .elementor-element.elementor-element-a533370 .tkb-site-logo img { width: 65%; }
.elementor-39 .elementor-element.elementor-element-22edf0f4 .tkb-site-logo img { width: 40%; }

/* Native WordPress menu output styled like the supplied Elementor header. */
.tkb-primary-menu { margin: 0; padding: 0; list-style: none; }
.tkb-primary-menu > li { position: relative; }
.tkb-primary-menu .sub-menu { list-style: none; margin: 0; padding: 0; }
.elementor-nav-menu--main .tkb-primary-menu { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; }
.elementor-nav-menu--main .tkb-primary-menu > li > a { display: flex; align-items: center; }
.elementor-nav-menu--dropdown .tkb-primary-menu { display: block; }
.elementor-nav-menu--dropdown .tkb-primary-menu a { display: block; padding: 12px 20px; }
.tkb-primary-menu .current-menu-item > a,
.tkb-primary-menu .current_page_item > a { color: var(--tkb-accent) !important; }

.tkb-footer-menu { display:flex; justify-content:center; align-items:center; gap:10px 18px; flex-wrap:wrap; margin:18px auto 10px; padding:0 16px; list-style:none; }
.tkb-footer-menu a { color:var(--tkb-text); text-decoration:none; font-size:14px; }
.tkb-footer-menu a:hover, .tkb-footer-menu a:focus { color:var(--tkb-accent); text-decoration:underline; }

/* Explicit overrides are loaded after the snapshot CSS so Customizer colors actually win. */
.elementor-30 .elementor-element.elementor-element-140c4263:not(.elementor-motion-effects-element-type-background) {
  background-image: linear-gradient(180deg, var(--tkb-header-start) 0%, var(--tkb-header-end) 100%) !important;
}
.elementor-30 .elementor-element.elementor-element-51b611dd:not(.elementor-motion-effects-element-type-background) {
  background-color: var(--tkb-header-end) !important;
  border-color: var(--tkb-accent) !important;
}
.elementor-30 .elementor-element.elementor-element-2df3fcc7 .elementor-nav-menu--dropdown {
  background-color: var(--tkb-header-end) !important;
}
.elementor-30 .elementor-element.elementor-element-2df3fcc7 .elementor-nav-menu--dropdown a:hover,
.elementor-30 .elementor-element.elementor-element-2df3fcc7 .elementor-nav-menu--dropdown a:focus,
.elementor-30 .elementor-element.elementor-element-2df3fcc7 .elementor-nav-menu--dropdown a.highlighted {
  background-color: var(--tkb-header-start) !important;
}
.elementor-39 .elementor-element.elementor-element-335a88cd:not(.elementor-motion-effects-element-type-background) {
  background-image: linear-gradient(180deg, var(--tkb-header-end) 30%, var(--tkb-footer-end) 100%) !important;
  border-color: var(--tkb-accent) !important;
}
.elementor-30 .elementor-button,
.elementor-39 .elementor-button {
  background-image: linear-gradient(180deg, var(--tkb-button-start) 0%, var(--tkb-button-end) 100%) !important;
}
.tkb-content-shell { background: var(--tkb-content-bg) !important; color: var(--tkb-text) !important; }
.tkb-content-shell .tkb-content-inner,
.tkb-post-card { background: var(--tkb-card-bg) !important; border-color: color-mix(in srgb, var(--tkb-accent) 28%, transparent) !important; }
.tkb-content-shell h1,
.tkb-content-shell h2,
.tkb-content-shell h3,
.tkb-post-card a { color: var(--tkb-accent) !important; }
.tkb-content-shell p,
.tkb-content-shell li,
.tkb-post-card p { color: var(--tkb-text) !important; }

@media (max-width: 1024px) {
  .elementor-30 .elementor-element.elementor-element-a533370 .tkb-site-logo img { width: 40%; }
  .elementor-39 .elementor-element.elementor-element-22edf0f4 .tkb-site-logo img { width: 30%; }
}
@media (max-width: 767px) {
  .elementor-30 .elementor-element.elementor-element-a533370 .tkb-site-logo img { width: 60%; }
  .elementor-39 .elementor-element.elementor-element-22edf0f4 .tkb-site-logo img { width: 55%; }
}

/* Map legacy inline accent text to the editable accent color. */
main [style*="#ffff00" i], main [style*="#ffff99" i], main [style*="#ffcc99" i],
footer [style*="#ffff00" i], footer [style*="#ffff99" i], footer [style*="#ffcc99" i] {
  color: var(--tkb-accent) !important;
}


/* ===== Dashboard-editable additions (v3) ===== */
.tkb-footer-icon-menu { margin: 0; padding: 0; list-style: none; }
.tkb-footer-icon-menu .elementor-icon-list-item { list-style: none; }
.tkb-footer-icon-menu a { text-decoration: none; }
.tkb-footer-icon-menu .elementor-icon-list-icon svg { width: 1em; height: 1em; fill: currentColor; }

.tkb-404-shell { min-height: 62vh; display: flex; align-items: center; }
.tkb-404-inner { width: min(920px, calc(100% - 32px)); text-align: center; }
.tkb-404-code { font-size: clamp(64px, 12vw, 150px); line-height: .9; font-weight: 900; color: var(--tkb-accent); opacity: .18; margin-bottom: -20px; }
.tkb-404-content h1 { position: relative; margin-top: 0; }
.tkb-404-copy { max-width: 720px; margin: 0 auto 24px; }
.tkb-404-button { display: inline-block; padding: 12px 24px; border-radius: 6px; background: linear-gradient(180deg,var(--tkb-button-start),var(--tkb-button-end)); color: #111 !important; font-weight: 700; text-decoration: none; }
.tkb-home-editor-mode .wp-block-image img { max-width: 100%; height: auto; }

/* Make the legacy layouts follow dashboard color settings more consistently. */
.elementor-16 .elementor-widget-text-editor,
.elementor-18 .elementor-widget-text-editor,
.elementor-20 .elementor-widget-text-editor,
.elementor-22 .elementor-widget-text-editor,
.elementor-39 .elementor-widget-text-editor {
  color: var(--tkb-text) !important;
}
.elementor-16 .elementor-heading-title,
.elementor-18 .elementor-heading-title,
.elementor-20 .elementor-heading-title,
.elementor-22 .elementor-heading-title {
  color: var(--tkb-accent) !important;
}
.elementor-16 .elementor-element-populated,
.elementor-18 .elementor-element-populated,
.elementor-20 .elementor-element-populated,
.elementor-22 .elementor-element-populated {
  border-color: var(--tkb-accent);
}
.elementor-16,
.elementor-18,
.elementor-20,
.elementor-22 {
  color: var(--tkb-text);
}


/* ===== Legacy page background fix (v3.1) =====
   The supplied snapshot includes Hello Elementor's white body background and
   site-main width rules. Legacy converted pages use this lightweight shell so
   the dashboard "Page background" color applies consistently without adding
   the padding/card treatment used by .tkb-content-shell. */
.tkb-legacy-page-shell {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  min-height: 55vh;
  background-color: var(--tkb-content-bg) !important;
  color: var(--tkb-text) !important;
}
.tkb-legacy-page-shell > .page-content,
.tkb-legacy-page-shell > .page-content > .elementor {
  background-color: transparent !important;
  color: inherit !important;
}
.tkb-legacy-page-shell .elementor-widget-text-editor,
.tkb-legacy-page-shell .elementor-widget-text-editor p,
.tkb-legacy-page-shell .elementor-widget-text-editor li {
  color: var(--tkb-text) !important;
}


/* ===== Homepage FAQ (moved from inline fallback) ===== */
.schema-faq-wrapper {
            position: relative;
            z-index: 1;
            clear: both;
            width: 100%;
            margin: 80px 0; /* Increased top/bottom margin */
            scroll-behavior: smooth;
            scroll-margin-top: 150px; /* Wrapper level scroll margin */
        }
        .schema-faq-section {
            background: linear-gradient(135deg, #5f009b 0%, #5f009b 100%);
            padding: 60px 20px;
            margin: 40px auto;
            position: relative;
            overflow: hidden;
            clear: both;
            max-width: 1200px;
            border-radius: 20px;
            border: 1px solid rgba(226, 232, 240, 0.8);
            box-shadow: 0 10px 40px rgba(0,0,0,0.08);
        }
        .schema-faq-section::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: url("data:image/svg+xml,%3Csvg width=\"60\" height=\"60\" viewBox=\"0 0 60 60\" xmlns=\"http://www.w3.org/2000/svg\"%3E%3Cg fill=\"none\" fill-rule=\"evenodd\"%3E%3Cg fill=\"%232196F3\" fill-opacity=\"0.02\"%3E%3Ccircle cx=\"30\" cy=\"30\" r=\"2\"/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
            z-index: 1;
        }
        .schema-faq-container {
            max-width: 100%;
            margin: 0;
            padding: 0;
            position: relative;
            z-index: 2;
            contain: layout style paint;
            transform: translateZ(0);
        }
        .schema-faq-header {
            text-align: center;
            margin-bottom: 60px;
            animation: fadeInUp 0.8s ease-out;
        }
        .schema-faq-title {
            font-size: 48px;
            font-weight: 700;
            color: #ffffff;
            margin-bottom: 25px;
            line-height: 1.2;
            letter-spacing: -1px;
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
        }
        .schema-faq-subtitle {
            font-size: 20px;
            color: #ffffff;
            opacity: 0.7;
            font-weight: 400;
            max-width: 600px;
            margin: 0 auto;
            line-height: 1.5;
        }
        .schema-faq-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
            gap: 25px;
            margin-bottom: 50px;
            contain: layout;
            isolation: isolate;
        }
        .schema-faq-item {
            background: #33005e;
            border-radius: 20px;
            padding: 35px;
            box-shadow: 0 10px 40px rgba(0,0,0,0.08);
            transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), 
                        background-color 0.2s ease-out,
                        border-color 0.2s ease-out,
                        box-shadow 0.25s ease-out;
            border: 1px solid #33005e;
            position: relative;
            overflow: hidden;
            animation: fadeInUp 0.6s ease-out forwards;
            opacity: 0;
            transform: translateY(30px);
            will-change: transform;
            backface-visibility: hidden;
            perspective: 1000px;
        }
        .schema-faq-item:nth-child(1) { animation-delay: 0.1s; }
        .schema-faq-item:nth-child(2) { animation-delay: 0.2s; }
        .schema-faq-item:nth-child(3) { animation-delay: 0.3s; }
        .schema-faq-item:nth-child(4) { animation-delay: 0.4s; }
        .schema-faq-item:nth-child(5) { animation-delay: 0.5s; }
        .schema-faq-item::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: linear-gradient(90deg, #ffbb00, #ffbb00);
            transform: scaleX(0);
            transition: transform 0.3s ease;
        }
        .schema-faq-item:hover::before {
            transform: scaleX(1);
        }
        .schema-faq-item:hover {
            transform: translate3d(0, -8px, 0) scale(1.02);
            box-shadow: 0 12px 30px rgba(0,0,0,0.12), 
                        0 4px 15px rgba(33, 150, 243, 0.15);
            background: #33005e;
            border-color: #ffbb00;
        }
        .schema-faq-item:active {
            transform: translate3d(0, -2px, 0) scale(1.005);
            transition-duration: 0.08s;
        }
        .schema-faq-question {
            font-size: 20px;
            font-weight: 700;
            color: #ffffff;
            margin-bottom: 18px;
            line-height: 1.4;
            display: flex;
            align-items: flex-start;
            position: relative;
        }
        .schema-faq-question::before {
            content: "Q";
            background: linear-gradient(135deg, #ffbb00, #ffbb00);
            color: white;
            width: 35px;
            height: 35px;
            border-radius: 50%;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            margin-right: 18px;
            flex-shrink: 0;
            font-size: 16px;
            font-weight: 800;
            box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
            transition: transform 0.2s ease-out;
            will-change: transform;
        }
        .schema-faq-item:hover .schema-faq-question::before {
            transform: scale3d(1.1, 1.1, 1) rotate(5deg);
            box-shadow: 0 4px 15px rgba(33, 150, 243, 0.4);
        }
        .schema-faq-answer {
            font-size: 15px;
            color: #ffffff;
            line-height: 1.6;
            padding-left: 53px;
            padding-right: 40px;
            margin-top: 16px;
            transition: transform 0.2s ease-out;
            will-change: transform;
            transform: translateZ(0);
        }
        .schema-faq-item:hover .schema-faq-answer {
            transform: translate3d(1px, 0, 0);
            transition: transform 0.2s ease-out 0.05s;
        }
        .schema-faq-more {
            text-align: center;
            margin-top: 50px;
        }
        .schema-faq-btn {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            padding: 16px 32px;
            background: linear-gradient(135deg, #2196F3 0%, #2196F3 100%);
            color: #ffffff;
            text-decoration: none;
            border-radius: 12px;
            font-weight: 600;
            font-size: 16px;
            transition: transform 0.2s ease-out, background 0.2s ease-out;
            box-shadow: 0 4px 20px rgba(33, 150, 243, 0.3);
            border: 1px solid rgba(255, 255, 255, 0.1);
            position: relative;
            overflow: hidden;
            backdrop-filter: blur(10px);
        }
        .schema-faq-btn::before {
            content: "";
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
            transition: left 0.6s ease;
        }
        .schema-faq-btn:hover::before {
            left: 100%;
        }
        .schema-faq-btn:hover {
            background: linear-gradient(135deg, #1976D2 0%, #0D47A1 100%);
            transform: translateY(-2px);
            box-shadow: 0 8px 32px rgba(33, 150, 243, 0.4);
            border-color: rgba(255, 255, 255, 0.2);
        }
        .schema-faq-btn svg {
            transition: transform 0.3s ease;
        }
        .schema-faq-btn:hover svg {
            transform: translateX(4px);
        }
        .schema-faq-stats {
            display: flex;
            justify-content: center;
            gap: 40px;
            margin-top: 40px;
            flex-wrap: wrap;
        }
        .schema-faq-stat {
            text-align: center;
            color: rgba(255,255,255,0.9);
        }
        .schema-faq-stat-number {
            font-size: 28px;
            font-weight: 800;
            display: block;
            margin-bottom: 5px;
        }
        .schema-faq-stat-label {
            font-size: 14px;
            opacity: 0.8;
        }
        @keyframes fadeInUp {
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        @keyframes pulse {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.7; }
        }
        .schema-faq-item.hidden {
            display: none;
        }
        @media (max-width: 768px) {
            .schema-faq-wrapper {
                margin: 20px 0;
            }
            .schema-faq-section {
                margin: 20px 10px;
                padding: 40px 15px;
                border-radius: 15px;
            }
            .schema-faq-title {
                font-size: 32px;
            }
            .schema-faq-subtitle {
                font-size: 18px;
            }
            .schema-faq-grid {
                grid-template-columns: 1fr;
                gap: 20px;
            }
            .schema-faq-item {
                padding: 25px;
            }
            .schema-faq-question {
                font-size: 18px;
            }
            .schema-faq-answer {
                font-size: 15px;
                padding-left: 45px;
                padding-right: 35px;
            }
            .schema-faq-stats {
                gap: 25px;
            }
        }
        @media (max-width: 480px) {
            .schema-faq-section {
                margin: 15px 5px;
                padding: 30px 10px;
                border-radius: 10px;
            }
            .schema-faq-item {
                padding: 20px;
            }
            .schema-faq-question::before {
                width: 30px;
                height: 30px;
                margin-right: 15px;
            }
            .schema-faq-answer {
                padding-left: 45px;
                padding-right: 30px;
            }
        }

/* ===== Native partner logo carousel (v3.2) ===== */
.tkb-partner-carousel-widget {
  width: 100%;
  overflow: hidden;
}
.tkb-partner-carousel {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 6px 0;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.tkb-partner-track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: tkbPartnerMarquee var(--tkb-partner-duration, 28s) linear infinite;
}
.tkb-partner-set {
  display: flex;
  flex: none;
  align-items: center;
  gap: 12px;
  padding-right: 12px;
}
.tkb-partner-item {
  width: var(--tkb-partner-item-width, 160px);
  height: calc(var(--tkb-partner-logo-height, 52px) + 20px);
  flex: 0 0 var(--tkb-partner-item-width, 160px);
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 10px 12px;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
}
.tkb-partner-item img {
  display: block;
  width: 100%;
  height: var(--tkb-partner-logo-height, 52px);
  max-width: 100%;
  object-fit: contain !important;
  object-position: center center;
}
.tkb-partner-carousel:hover .tkb-partner-track,
.tkb-partner-carousel:focus-within .tkb-partner-track {
  animation-play-state: paused;
}
@keyframes tkbPartnerMarquee {
  from { transform: translate3d(0,0,0); }
  to   { transform: translate3d(-50%,0,0); }
}
@media (max-width: 767px) {
  .tkb-partner-carousel {
    -webkit-mask-image: none;
    mask-image: none;
  }
  .tkb-partner-set { gap: 8px; padding-right: 8px; }
  .tkb-partner-item { padding: 8px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .tkb-partner-track { animation: none; }
  .tkb-partner-carousel { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
}
