/* ==========================================================================
   1. UTILITIES & BASE
   ========================================================================== */
:root { 
  --brand-color: #F3D05C; 
  --brand-color-subtle: color-mix(in srgb, var(--brand-color) 5%, transparent);
  --brand-color-faint: color-mix(in srgb, var(--brand-color) 10%, transparent);
  --brand-color-soft: color-mix(in srgb, var(--brand-color) 20%, transparent);
  --brand-color-glow: color-mix(in srgb, var(--brand-color) 30%, transparent);
  --brand-color-medium: color-mix(in srgb, var(--brand-color) 40%, transparent);
  --brand-color-strong: color-mix(in srgb, var(--brand-color) 50%, transparent);
  /* CONFIG BRIDGE: Pass position to JS */
  --btt-side: 'left'; 
}

body {
  padding-top: 90px;
  background-color: #0b0c10;
  color: #FFFFFF;
  font-family: 'Inter', sans-serif;
  margin: 0; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative; z-index: 0;
}

body::before {
  content: ""; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background-size: cover; background-position: center; background-repeat: no-repeat;
  z-index: -1; pointer-events: none;
}

a { color: #FFFFFF; text-decoration: none; transition: 0.2s; }
a:hover { color: #F3D05C; text-decoration: none; }
h1, h2, h3, h4, h5, h6 { font-family: 'Poppins', sans-serif; margin-top: 0; color: #fff; }
p, li { color: #FFFFFF; } /* Fix: Apply main text color */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.visibility-hidden, .skip-navigation { clip: rect(1px, 1px, 1px, 1px); height: 1px; overflow: hidden; position: absolute; white-space: nowrap; width: 1px; }
.skip-navigation:focus { clip: auto; height: auto; width: auto; top: 10px; left: 10px; background: white; color: black; z-index: 10000; padding: 10px; }

/* ==========================================================================
   2. HEADER
   ========================================================================== */
.header { background-color: #000000; height: 90px; width: 100%; position: fixed; top: 0; left: 0; z-index: 9999; border-bottom: 1px solid rgba(255,255,255,0.1); box-shadow: 0 4px 20px rgba(0,0,0,0.5); }
.header-inner { max-width: 1400px; margin: 0 auto; padding: 0 40px; height: 100%; display: flex; align-items: center; justify-content: space-between; }
.logo img { height: calc(67 * 1px); width: auto; display: block; }
.nav-menu { flex: 1; display: flex; justify-content: center; gap: 30px; }
.nav-link { display: flex; flex-direction: column; align-items: center; justify-content: center; color: rgba(243, 208, 92, 1); font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; text-decoration: none; transition: 0.2s; opacity: 0.8; }
.nav-link:hover { color: #fff; opacity: 1; }
.nav-icon { width: calc(48 * 1px); height: calc(48 * 1px); object-fit: contain; margin-bottom: 4px; transition: transform 0.2s; }
.nav-link:hover .nav-icon { transform: translateY(-3px); }
.header-actions { display: flex; align-items: center; gap: 20px; }
.user-nav-item { position: relative; display: flex; align-items: center; border-right: 1px solid rgba(255,255,255,0.1); padding-right: 20px; }
.user-profile-toggle { background: none; border: none; cursor: pointer; display: flex; align-items: center; padding: 0; color: #fff; text-decoration: none; }
.user-avatar { border-radius: 50%; width: 40px; height: 40px; object-fit: cover; border: 2px solid #F3D05C; margin-right: 12px; }
.user-name-text { font-weight: 700; font-size: 14px; text-transform: uppercase; font-family: 'Poppins', sans-serif; letter-spacing: 0.5px; }
.sign-in-btn { color: #F3D05C; font-weight: 700; text-transform: uppercase; font-size: 13px; text-decoration: none; font-family: 'Poppins', sans-serif; }
.sign-in-btn:hover { color: #fff; text-decoration: underline; }
.cta-button { display: inline-block; background-color: transparent; color: var(--theme-cta-color) !important; border: 1px solid var(--theme-cta-border-color); padding: 8px 20px; font-family: 'Poppins', sans-serif; font-weight: 700; text-transform: uppercase; font-size: 12px; letter-spacing: 1px; border-radius: 4px; transition: all 0.3s; }
.cta-button:hover { background: rgba(255, 255, 255, 0.1); box-shadow: 0 0 15px var(--brand-color-soft); color: var(--theme-cta-color); text-decoration: none; }
.dropdown-menu { display: none; position: absolute; top: 100%; right: 0; background: #15171e; border: 1px solid rgba(255,255,255,0.1); border-radius: 4px; padding: 10px 0; min-width: 180px; box-shadow: 0 5px 20px rgba(0,0,0,0.5); z-index: 1000; margin-top: 10px; }
.dropdown-menu.is-open { display: block; }
.dropdown-item { display: block; padding: 10px 20px; color: #aaa; font-size: 13px; text-decoration: none; transition: 0.2s; }
.dropdown-item:hover { background: rgba(255,255,255,0.05); color: #F3D05C; }
.menu-button { display: none; background: none; border: none; color: #fff; }

/* ==========================================================================
   3. HERO
   ========================================================================== */
.hero { 
  background-color: #000; /* Fallback color if no image */
  background-image: url(/hc/theming_assets/01KEWB9B5NBN0NC8QE4GWN03X1); 
  background-size: cover; 
  background-position: center; 
  position: relative; 
  display: flex; 
  align-items: center; /* Center vertically */
  justify-content: center;
  
  /* Height from settings */
  min-height: calc(618 * 1px); 
  width: 100%;
}

.hero::before { 
  content: ''; 
  position: absolute; 
  inset: 0; 
  background: rgba(0,0,0,0.5); /* Darken image slightly */
  z-index: 1;
}

.hero-inner { 
  position: relative; 
  width: 100%; 
  max-width: 1200px;
  z-index: 2; 
  margin: 0 auto; 
  display: flex; 
  flex-direction: column; /* Stack elements vertically */
  align-items: center;    /* Center horizontally */
  justify-content: center; 
  padding: 40px 20px; 
  gap: 30px; /* Gap between Logo, Search, and Ticker */
}

.search-container { 
  width: 100%; 
  position: relative; 
  margin: 0 auto 60px;
}

.search input { 
  background: rgba(0, 0, 0, 0.75); 
  border: 1px solid rgba(255,255,255,0.2); 
  backdrop-filter: blur(5px); 
  color: white; 
  padding: 18px 25px; 
  border-radius: 50px; 
  width: 100%; 
  font-size: 16px; 
  text-align: center; 
  transition: all 0.3s; 
}

.search input:focus { 
  background: rgba(0, 0, 0, 0.9); 
  border-color: #F3D05C; 
  outline: none; 
  box-shadow: 0 0 15px var(--brand-color-glow);
}

/* ==========================================================================
   4. CARDS (HOME) & INTERNAL CARDS
   ========================================================================== */
.blocks-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 30px; list-style: none; padding: 0; position: relative; z-index: 5; align-items: stretch; }
body.is-home-page .blocks-list { margin-top: -60px; }
.blocks-item { background: #15171e; border: 1px solid #2A2A2A; border-radius: calc(4 * 1px); overflow: hidden; transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease; display: flex; flex-direction: column; min-height: calc(250 * 1px); position: relative; }
.blocks-item:hover { transform: translateY(-5px); border-color: #F3D05C; box-shadow: 0 15px 30px rgba(0,0,0,0.5); }
.blocks-item:focus-within { border-color: #F3D05C; box-shadow: 0 0 0 2px var(--brand-color-soft); }
.blocks-item-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: white; flex: 1; }
.card-header-image { width: 100%; background-color: #000; position: relative; border-bottom: 1px solid rgba(255,255,255,0.05); height: calc(218 * 1px); }
.card-header-image img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.35s ease, opacity 0.3s ease; }
.blocks-item:hover .card-header-image img { transform: scale(1.03); }
.card-content { flex: 1; padding: 26px 25px 24px; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; text-align: center; position: relative; z-index: 2; min-height: 0; }
.card-icon-wrapper { margin-top: -55px; background: #15171e; padding: 10px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.1); width: calc(48 * 1px + 20px); height: calc(48 * 1px + 20px); display: flex; align-items: center; justify-content: center; z-index: 2; box-shadow: 0 5px 15px rgba(0,0,0,0.3); }
.card-icon-wrapper img { width: calc(48 * 1px); height: calc(48 * 1px); object-fit: contain; }
.blocks-item-title { color: #F3D05C; font-size: 20px; font-weight: 700; text-transform: uppercase; margin: 15px 0 12px; font-family: 'Poppins', sans-serif; letter-spacing: 0.5px; line-height: 1.25; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-fake-button { background: var(--brand-color); color: #000000; padding: 10px 20px; font-size: 12px; font-weight: 700; text-transform: uppercase; border-radius: 4px; margin-top: auto; transition: background-color 0.25s ease, box-shadow 0.25s ease; border: 1px solid rgba(255,255,255,0.1); display: inline-flex; align-items: center; justify-content: center; min-height: 38px; max-width: 100%; }
.blocks-item:hover .card-fake-button { opacity: 0.95; box-shadow: 0 0 14px var(--brand-color-soft); }

/* Full Background Style Logic (FIXED HOVER) */
.blocks-item.card-style-cover .card-header-image { position: absolute; inset: 0; height: 100%; border: none; z-index: 0; }
.blocks-item.card-style-cover .card-header-image img { opacity: 0.3; transition: opacity 0.3s ease; } /* Opaque by default */
.blocks-item.card-style-cover:hover .card-header-image img { opacity: 1; } /* Clear on hover */
.blocks-item.card-style-cover .card-icon-wrapper { margin-top: 0; background: transparent; border: none; box-shadow: none; }
.blocks-item.card-style-cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.9)); z-index: 1; pointer-events: none; opacity: 1; }
.blocks-item.card-style-cover:hover { border-color: #F3D05C; box-shadow: 0 0 20px var(--brand-color-glow); }

/* Internal Cards (Section Cards) Match Home */
.section-card .blocks-item-link { 
  /* Inherits from standard .blocks-item-link */
}

/* ==========================================================================
   5. PROMOTED ARTICLES
   ========================================================================== */
.promoted-articles h2 { text-align: center; margin: 60px 0 30px; text-transform: uppercase; letter-spacing: 2px; color: #F3D05C; }
.promoted-articles-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; padding: 0; list-style: none; }
.promoted-articles-item { background: #15171e; border: 1px solid #2A2A2A; border-radius: 4px; transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease; overflow: hidden; min-height: 100px; }
.promoted-articles-item:hover { transform: translateY(-3px); border-color: #F3D05C; box-shadow: 0 5px 15px rgba(0,0,0,0.3); }
.promoted-link { display: block; padding: 20px; height: 100%; color: #fff; text-decoration: none; box-sizing: border-box; }
.promoted-inner-wrapper { display: flex; align-items: center; height: 100%; }
.promoted-icon { margin-right: 15px; color: var(--brand-color); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.promoted-articles-item:hover .promoted-icon { color: #F3D05C; }
.promoted-content { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.promoted-title { font-weight: 700; font-size: 14px; margin-bottom: 5px; line-height: 1.35; overflow-wrap: anywhere; }
.promoted-cta { font-size: 10px; font-weight: 700; color: #F3D05C; text-transform: uppercase; letter-spacing: 1px; opacity: 0.8; }
.promoted-articles-item:hover .promoted-cta { opacity: 1; }

/* ==========================================================================
   6. INNER PAGES LAYOUT & SIDEBAR
   ========================================================================== */
.sub-nav { display: none; }
.article-container { display: flex; gap: 30px; margin-top: 40px; align-items: flex-start; }
/* SIDEBAR */
.article-sidebar { 
  flex: 1; 
  min-width: 280px; 
  position: sticky; 
  top: 110px; 
  max-height: 80vh; 
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 30px; 
}
/* Sidebar Scrollbar */
.article-sidebar::-webkit-scrollbar { width: 6px; }
.article-sidebar::-webkit-scrollbar-track { background: rgba(0,0,0,0.1); }
.article-sidebar::-webkit-scrollbar-thumb { background: #F3D05C; border-radius: 3px; }

.collapsible-sidebar { background: transparent; border: none; padding: 0; }
.sidenav-title { box-sizing: border-box; width: 100%; min-height: 60px; padding: 15px 20px; margin: 0; display: flex; align-items: center; justify-content: flex-start; background-color: #F3D05C; color: #000; border-radius: 4px 4px 0 0; font-family: 'Poppins', sans-serif; font-weight: 700; text-transform: uppercase; font-size: 14px; letter-spacing: 0.5px; line-height: 1.4; }
.collapsible-sidebar-body { background-color: #15171e; border: 1px solid #2A2A2A; border-top: none; border-radius: 0 0 4px 4px; padding: 15px 0; }
.article-sidebar ul { list-style: none; padding: 0; margin: 0; }
.sidenav-item { display: block; padding: 10px 20px; color: #bbb; font-size: 14px; text-decoration: none; border-left: 3px solid transparent; transition: all 0.2s; }
.sidenav-item:hover { background-color: rgba(255,255,255,0.05); color: #fff; text-decoration: none; }
.sidenav-item.current-article { background-color: var(--brand-color-faint); color: #F3D05C; border-left-color: #F3D05C; font-weight: 600; }
.article-sidebar-item { display: block; margin-top: 10px; padding: 10px 20px; font-size: 12px; color: #F3D05C; text-transform: uppercase; font-weight: 700; text-align: right; }

/* ==========================================================================
   7. ARTICLE CONTENT
   ========================================================================== */
.article { flex: 3; background: #15171e; padding: 0; border-radius: 8px; border: 1px solid rgba(255,255,255,0.05); overflow: hidden; }
.article-breadcrumbs-header { box-sizing: border-box; width: 100%; min-height: 60px; padding: 15px 30px; display: flex; align-items: center; background-color: #F3D05C; color: #000; }
.article-breadcrumbs-header .breadcrumbs { margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.article-breadcrumbs-header .breadcrumbs li { display: inline-block; color: #000; font-weight: 700; font-size: 13px; text-transform: uppercase; font-family: 'Poppins', sans-serif; line-height: 1.4; }
.article-breadcrumbs-header .breadcrumbs li + li::before { content: ">"; margin: 0 10px; color: #000; opacity: 0.6; }
.article-breadcrumbs-header .breadcrumbs a { color: #000; text-decoration: none; }
.article-breadcrumbs-header .breadcrumbs a:hover { text-decoration: underline; }
.article-inner-content { padding: 44px 48px; }
.article-title { font-size: 34px; line-height: 1.18; margin: 0 0 20px; color: #fff; }
.article-header { margin-bottom: 30px; padding-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.article-author { display: flex; align-items: center; margin-top: 20px; }
.article-meta { display: flex; flex-direction: column; margin-left: 15px; }
.meta-group { display: flex; list-style: none; padding: 0; margin: 5px 0 0; gap: 15px; font-size: 12px; color: #666; }
.article-body { font-size: 17px; line-height: 1.85; color: #e4e4e4; margin-bottom: 44px; }
.article-body p { margin: 0 0 18px; }
.article-body ul,
.article-body ol { margin: 18px 0 24px; padding-left: 28px; }
.article-body li { margin-bottom: 10px; padding-left: 2px; }
.article-body li > ul,
.article-body li > ol { margin-top: 10px; margin-bottom: 10px; }
.article-body img { display: block; max-width: 100%; height: auto; border-radius: 6px; margin: 28px auto; cursor: zoom-in; filter: drop-shadow(0 10px 22px rgba(0,0,0,0.32)); }
.article-body h2,
.article-body h3,
.article-body h4 { scroll-margin-top: 120px; }
.article-body h2 { color: #F3D05C; font-size: 26px; line-height: 1.25; margin: 44px 0 18px; padding-bottom: 10px; border-bottom: 1px solid var(--brand-color-soft); }
.article-body h3 { color: #fff; font-size: 21px; line-height: 1.35; margin: 34px 0 14px; }
.article-body h4 { color: #fff; font-size: 18px; line-height: 1.4; margin: 28px 0 12px; }
.article-body a { color: #F3D05C; text-decoration: underline; text-underline-offset: 3px; }
.article-body a:hover { color: var(--brand-color-strong); }
.article-body hr { border: 0; border-top: 1px solid rgba(255,255,255,0.12); margin: 36px 0; }
.article-body blockquote { margin: 28px 0; padding: 18px 22px; border-left: 4px solid #F3D05C; border-radius: 0 6px 6px 0; background: var(--brand-color-faint); color: #f5f5f5; }
.article-body blockquote p:last-child { margin-bottom: 0; }
.article-body code { padding: 2px 6px; border-radius: 4px; background: rgba(255,255,255,0.08); color: #fff; font-size: 0.92em; }
.article-body pre { margin: 28px 0; padding: 18px 20px; overflow-x: auto; border-radius: 6px; border: 1px solid rgba(255,255,255,0.1); background: #08090d; color: #f2f2f2; }
.article-body pre code { padding: 0; background: transparent; }
.article-votes { background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.05); border-radius: 8px; padding: 30px; margin-top: 50px; text-align: center; }
.article-vote { min-width: 80px; margin: 10px; background: transparent; border: 1px solid #444; color: #ccc; padding: 8px 16px; border-radius: 4px; cursor: pointer; }
.article-vote:hover { border-color: #F3D05C; color: #F3D05C; }
.article-vote.voted { background: #F3D05C; color: #000; border-color: #F3D05C; }
.share { display: flex; gap: 10px; justify-content: flex-end; list-style: none; padding: 0; }
.share a { background: #222; width: 35px; height: 35px; display: flex; align-items: center; justify-content: center; border-radius: 50%; color: #fff; }
.share a:hover { background: #F3D05C; color: #000; }
.comments { margin-top: 60px; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 40px; }
.comment { background: rgba(255,255,255,0.02); padding: 20px; border-radius: 8px; margin-bottom: 20px; }
.comment-meta { display: flex; justify-content: space-between; margin-bottom: 15px; font-size: 14px; color: #888; }

/* ==========================================================================
   8. BOTTOM PANELS (RECENT & RELATED)
   ========================================================================== */
.article-bottom-panels { 
  margin-top: 40px; 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
  gap: 30px; 
  padding-bottom: 60px; 
}

.content-panel { 
  background: #15171e; 
  border: 1px solid #2A2A2A; 
  border-radius: 4px; 
  padding: 30px; 
}

/* Fix: Targeting the correct elements for panel title color */
.content-panel h3,
.recent-articles h3, 
.related-articles h3 {
  font-size: 18px; 
  color: #FFFFFF; 
  margin-top: 0;
  margin-bottom: 20px; 
  font-weight: 700; 
  font-family: 'Poppins', sans-serif; 
  text-transform: uppercase; 
  letter-spacing: 1px; 
  display: block; 
}

.content-panel ul { list-style: disc; padding-left: 20px; margin: 0; }
.content-panel li { margin-bottom: 10px; color: #aaa; }
.content-panel a { 
  color: var(--theme-panel-link-color);
  font-size: 14px; text-decoration: none; transition: 0.2s; 
}
.content-panel a:hover { color: var(--theme-panel-link-color); text-decoration: underline; }
.article-attachments ul:empty { display: none; padding: 0; margin: 0; }
.article-attachments:has(ul:empty) { display: none; margin: 0; }
.article-attachments { margin-top: 20px; }

/* ==========================================================================
   9. CATEGORY & SECTION PAGES
   ========================================================================== */
.internal-hero {
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: center;
  background-color: #000;
  background-image: url(/hc/theming_assets/01KEWB9B5NBN0NC8QE4GWN03X1);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.internal-hero + .container-divider {
  display: none;
}

.internal-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.82), rgba(0,0,0,0.58));
  z-index: 1;
}

.internal-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: 36px;
  align-items: center;
  padding-top: 44px;
  padding-bottom: 44px;
}

.internal-hero-copy h1 {
  color: #F3D05C;
  font-size: 38px;
  line-height: 1.15;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0;
}

.internal-hero-copy p {
  max-width: 720px;
  margin: 0;
  color: #ddd;
  font-size: 16px;
}

.internal-hero-search {
  width: 100%;
}

.internal-hero-search .search input {
  box-sizing: border-box;
}

.internal-hero-breadcrumbs {
  margin-bottom: 14px;
}

.internal-hero-breadcrumbs .breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 0;
  padding: 0;
}

.internal-hero-breadcrumbs .breadcrumbs li {
  display: inline-flex;
  align-items: center;
  color: #d8d8d8;
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.internal-hero-breadcrumbs .breadcrumbs li + li::before {
  content: ">";
  margin: 0 9px;
  color: #F3D05C;
}

.internal-hero-breadcrumbs .breadcrumbs a {
  color: #d8d8d8;
  text-decoration: none;
}

.internal-hero-breadcrumbs .breadcrumbs a:hover {
  color: #F3D05C;
}

.internal-hero-action {
  margin-top: 18px;
}

.page-header h1 { font-size: 36px; margin-bottom: 10px; color: #F3D05C; }
.page-header-description { font-size: 16px; color: #ccc; max-width: 800px; }

/* Section Cards - Centered Fix */
.section-description { 
  font-size: 14px; color: #c9c9c9; line-height: 1.55; margin-top: 4px; margin-bottom: 22px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; 
}

/* Article List */
.article-list { 
  list-style: none; 
  padding: 0; 
  margin: 30px 0; 
  display: grid; 
  gap: 12px; 
}

.article-list-item { 
  background-color: rgba(255, 255, 255, 0.03); 
  border: 1px solid rgba(255, 255, 255, 0.08); 
  border-radius: 6px; 
  padding: 18px 25px; 
  display: flex; 
  align-items: center; 
  transition: all 0.3s ease; 
  position: relative;
}

.article-list-item:hover { 
  background-color: rgba(255, 255, 255, 0.08); 
  border-color: #F3D05C; 
  transform: translateX(5px); 
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.article-list-link { 
  font-size: 16px; 
  color: var(--theme-article-list-link-color);
  font-weight: 500; 
  text-decoration: none; 
  flex: 1; 
  display: block;
}

.article-list-link:hover { padding-left: 0; text-decoration: none; color: var(--theme-article-list-link-color); }

.icon-star { 
  color: #F3D05C; 
  margin-right: 15px; 
  font-size: 14px; 
  text-shadow: 0 0 10px var(--brand-color-strong);
}

.icon-lock {
  font-size: 12px;
  margin-left: 10px;
  opacity: 0.7;
}

.article-list-item::after {
  content: "→";
  color: #F3D05C;
  font-weight: bold;
  font-size: 18px;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
  margin-left: 10px;
}

.article-list-item:hover::after {
  opacity: 1;
  transform: translateX(0);
}

/* ==========================================================================
   10. FOOTER
   ========================================================================== */
.footer { background-color: #0a0a0a; padding: 80px 0 40px; margin-top: 100px; border-top: 1px solid #222; color: rgba(243, 208, 92, 1); overflow-x: hidden; position: relative; z-index: 1; }
.footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background-size: cover; background-position: center; z-index: -1; pointer-events: none; }
.footer-wrapper { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 50px; }
.footer-brand-col { flex: 1 1 250px; display: flex; flex-direction: column; gap: 25px; position: relative; pointer-events: none; }
.footer-brand-col a,
.footer-brand-col button,
.footer-social-icons { pointer-events: auto; }
.footer-logo img { height: calc(80 * 1px); width: auto; display: block; }
.copyright { font-size: 14px; color: var(--theme-footer-copyright-color); margin: 0; }
.footer-social-icons { display: flex; gap: 15px; }
.footer-social-icons a { color: #888888; transition: 0.3s; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.05); width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.05); }
.footer-social-icons a:hover { color: #F3D05C; background: rgba(255,255,255,0.1); border-color: #F3D05C; transform: translateY(-3px); }
.footer-column { flex: 1; min-width: 160px; position: relative; }
.footer-column h3 { color: #FFFFFF; font-size: 16px; font-weight: 700; margin-bottom: 25px; text-transform: uppercase; letter-spacing: 1px; }
.footer-column a { display: block; color: var(--theme-footer-link-color); margin-bottom: 14px; font-size: 14px; transition: all 0.2s; }
.footer-column a:hover { color: var(--theme-footer-link-color); padding-left: 5px; }
.footer-column p { color: rgba(243, 208, 92, 1); } /* Fix: Plain text in footer uses correct setting */

/* ==========================================================================
   11. RESPONSIVE
   ========================================================================== */
@media (max-width: 900px) {
  .header { height: 60px; padding: 0; } .header-inner { padding: 0 20px; } body { padding-top: 60px; }
  .nav-menu { display: none; } .menu-button { display: block; }
  .nav-menu.is-open { display: flex; flex-direction: column; position: absolute; top: 90px; left: 0; right: 0; background: #000; padding: 20px; z-index: 9998; border-bottom: 2px solid var(--brand-color); }
  .user-nav { display: none; position: absolute; top: 60px; left: 0; right: 0; background: #000000; flex-direction: column; padding: 20px; }
  .user-nav.is-visible { display: flex; }
  .blocks-list, .promoted-articles-list { grid-template-columns: 1fr; }
  .home_page .blocks-list { margin-top: 0; }
  .article-container { flex-direction: column; } .article-sidebar { position: static; width: 100%; margin-bottom: 30px; max-height: none; }
  .article-bottom-panels { grid-template-columns: 1fr; }
  .footer-wrapper { flex-direction: column; gap: 40px; } .footer-brand-col, .footer-column { text-align: center; }
  .footer-brand-col > div, .footer-social-icons, .footer-column, .footer-logo img, .copyright { transform: none !important; }
}

/* ==========================================================================
   12. COOL FEATURES (TOC, ACCORDIONS, TABS)
   ========================================================================== */

/* --- TABLE OF CONTENTS (TOC) --- */
.toc-wrapper {
  margin: 0; 
  background: transparent;
}

.toc-list {
  background-color: #15171e;
  border: 1px solid #2A2A2A;
  border-top: none;
  border-radius: 0 0 4px 4px;
  padding: 15px 0;
  list-style: none;
  margin: 0;
}

.toc-item a {
  display: block;
  padding: 8px 20px;
  color: #bbb;
  font-size: 13px;
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: all 0.2s;
  line-height: 1.4;
}

.toc-item a:hover {
  color: #fff;
  background: rgba(255,255,255,0.05);
}

.toc-item a.active {
  color: #F3D05C;
  border-left-color: #F3D05C;
  background: var(--brand-color-faint);
  font-weight: 600;
}

.toc-h3 a {
  padding-left: 35px;
  font-size: 12px;
  opacity: 0.9;
}

/* --- ACCORDIONS --- */
.accordion {
  margin-bottom: 20px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  overflow: hidden;
}

.accordion-item {
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.accordion-item:last-child { border-bottom: none; }

.accordion-header {
  background-color: rgba(255,255,255,0.05);
  color: #fff;
  cursor: pointer;
  padding: 15px 20px;
  width: 100%;
  text-align: left;
  border: none;
  outline: none;
  transition: 0.3s;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Poppins', sans-serif;
}

.accordion-header:hover, .accordion-header.active {
  background-color: var(--brand-color-faint);
  color: #F3D05C;
}

.accordion-header::after {
  content: '+';
  font-size: 18px;
  font-weight: bold;
  float: right;
  margin-left: 10px;
}

.accordion-header.active::after {
  content: '-';
}

.accordion-body {
  padding: 0 20px;
  background-color: rgba(0,0,0,0.2);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.accordion-body p {
  padding: 15px 0;
  margin: 0;
  color: #ccc;
}

/* --- TABS --- */
.tabs-container {
  margin: 30px 0;
}

.tabs-header {
  display: flex;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  gap: 5px;
}

.tab-link {
  background-color: rgba(255,255,255,0.05);
  border: none;
  outline: none;
  cursor: pointer;
  padding: 12px 20px;
  transition: 0.3s;
  font-size: 14px;
  color: #aaa;
  font-weight: 600;
  border-radius: 4px 4px 0 0;
  font-family: 'Poppins', sans-serif;
}

.tab-link:hover {
  background-color: rgba(255,255,255,0.1);
  color: #fff;
}

.tab-link.active {
  background-color: #F3D05C;
  color: #000;
}

.tab-content {
  display: none;
  padding: 20px;
  border: 1px solid rgba(255,255,255,0.1);
  border-top: none;
  background-color: rgba(0,0,0,0.2);
  animation: fadeEffect 0.5s;
}

.tab-content.active {
  display: block;
}

@keyframes fadeEffect {
  from {opacity: 0;}
  to {opacity: 1;}
}

/* ==========================================================================
   13. COPY TO CLIPBOARD & BACK TO TOP
   ========================================================================== */
pre, .copy-this {
  position: relative; 
}

.copy-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: rgba(255, 255, 255, 0.1);
  color: #aaa;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  padding: 5px 10px;
  font-size: 11px;
  font-family: 'Poppins', sans-serif;
  text-transform: uppercase;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  opacity: 0;
}

pre:hover .copy-btn,
.copy-this:hover .copy-btn {
  opacity: 1;
}

.copy-btn:hover {
  background-color: #F3D05C;
  color: #000;
  border-color: #F3D05C;
}

.copy-btn.copied {
  background-color: #4CAF50;
  color: #fff;
  border-color: #4CAF50;
  opacity: 1;
}

#back-to-top {
  position: fixed;
  bottom: 30px;
  width: 50px;
  height: 50px;
  background-color: #F3D05C;
  color: #000;
  border: none;
  border-radius: 50%;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

#back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#back-to-top:hover {
  background-color: #fff;
  transform: translateY(-5px);
  box-shadow: 0 6px 20px var(--brand-color-medium);
}

/* ==========================================================================
   14. CALLOUTS & LIGHTBOX
   ========================================================================== */
.callout {
  padding: 20px 20px 20px 50px;
  margin: 20px 0;
  border: 1px solid;
  border-radius: 6px;
  position: relative;
  font-size: 15px;
  line-height: 1.6;
}

.callout::before {
  font-family: 'Poppins', sans-serif;
  position: absolute;
  left: 15px;
  top: 18px;
  font-size: 20px;
  font-weight: bold;
}

.callout strong {
  display: block;
  margin-bottom: 5px;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.5px;
}

.callout.tip {
  background-color: var(--brand-color-subtle);
  border-color: var(--brand-color-medium);
  color: #fff;
}
.callout.tip::before {
  content: '★';
  color: var(--brand-color);
}
.callout.tip strong { color: var(--brand-color); }

.callout.danger {
  background-color: rgba(255, 76, 76, 0.05);
  border-color: rgba(255, 76, 76, 0.4);
  color: #ffcccc;
}
.callout.danger::before {
  content: '!'; 
  color: #ff4c4c;
  border: 2px solid #ff4c4c;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  text-align: center;
  line-height: 20px;
  font-size: 16px;
  left: 12px;
}
.callout.danger strong { color: #ff4c4c; }

.callout.info {
  background-color: rgba(52, 152, 219, 0.05);
  border-color: rgba(52, 152, 219, 0.4);
  color: #dbeaff;
}
.callout.info::before {
  content: 'i';
  color: #3498db;
  border: 2px solid #3498db;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  text-align: center;
  line-height: 20px;
  font-size: 16px;
  font-family: serif;
  font-weight: bold;
  left: 12px;
}
.callout.info strong { color: #3498db; }

.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(5px);
}

.lightbox-overlay.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-img {
  max-width: 90%;
  max-height: 90vh;
  box-shadow: 0 0 30px rgba(0,0,0,0.5);
  border: 2px solid #333;
  border-radius: 4px;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.lightbox-overlay.active .lightbox-img {
  transform: scale(1);
}

/* ==========================================================================
   15. SERVER STATUS & READ TIME
   ========================================================================== */
.server-status-widget {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.1);
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.2);
  margin-right: 15px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: 'Poppins', sans-serif;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 8px;
  box-shadow: 0 0 5px currentColor;
}

.status-online { color: #4CAF50; border-color: rgba(76, 175, 80, 0.3); }
.status-online .status-dot { background-color: #4CAF50; }

.status-maintenance { color: #f44336; border-color: rgba(244, 67, 54, 0.3); }
.status-maintenance .status-dot { background-color: #f44336; }

.status-issues { color: #ff9800; border-color: rgba(255, 152, 0, 0.3); }
.status-issues .status-dot { background-color: #ff9800; }

@media (max-width: 600px) {
  .server-status-widget { padding: 6px; margin-right: 10px; }
  .status-text { display: none; }
  .status-dot { margin-right: 0; width: 10px; height: 10px; }
}

.read-time-display {
  font-weight: 600;
  color: #F3D05C;
  opacity: 0.9;
}

.article-reading-time-standalone {
  margin-bottom: 20px;
  font-size: 14px;
  display: flex;
  align-items: center;
  color: #888;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding-bottom: 15px;
}

/* ==========================================================================
   16. CONTENT FORMATTING (VIDEOS & TABLES)
   ========================================================================== */
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  margin: 40px 0;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  border: 1px solid var(--brand-color-soft);
  background: #000;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.article-body iframe {
  max-width: 100%;
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 34px 0;
  background-color: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 14px;
}

.article-body thead th, 
.article-body th {
  background-color: var(--brand-color-faint);
  color: #F3D05C;
  font-weight: 700;
  text-transform: uppercase;
  padding: 15px;
  text-align: left;
  border-bottom: 1px solid var(--brand-color-soft);
  font-family: 'Poppins', sans-serif;
}

.article-body td {
  padding: 14px 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #d8d8d8;
  vertical-align: top;
}

.article-body tr:nth-child(even) {
  background-color: rgba(255, 255, 255, 0.02);
}

.article-body tr:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.article-body table {
  display: block;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
@media (min-width: 768px) {
  .article-body table { display: table; }
}

/* ==========================================================================
   17. HERO BRAND & TICKER
   ========================================================================== */
.hero-brand-logo {
  position: relative;
  text-align: center;
  margin-bottom: 30px;
  z-index: 5;
  transition: transform 0.3s ease;
}

.hero-brand-logo img {
  width: auto;
  display: inline-block;
  filter: drop-shadow(0 5px 15px rgba(0,0,0,0.5));
}

.hero-ticker-container {
  background: #000;
  border: 1px solid;
  border-radius: 4px;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  width: 100%; 
  margin: 20px auto 0;
  height: 50px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  font-family: 'Poppins', sans-serif;
  position: relative;
  z-index: 5;
}

.ticker-style-gold { border-color: #F3D05C; }
.ticker-style-gold .ticker-label { background-color: #F3D05C; color: #000; }
.ticker-style-gold .ticker-date { color: #F3D05C; }
.ticker-style-gold .ticker-btn { color: #F3D05C; border-left-color: rgba(243, 208, 92, 0.3); }
.ticker-style-gold .ticker-btn:hover { background-color: #F3D05C; color: #000; }

.ticker-style-blue { border-color: #00E5FF; }
.ticker-style-blue .ticker-label { background-color: #00E5FF; color: #000; }
.ticker-style-blue .ticker-date { color: #00E5FF; }
.ticker-style-blue .ticker-btn { color: #00E5FF; border-left-color: rgba(0, 229, 255, 0.3); }
.ticker-style-blue .ticker-btn:hover { background-color: #00E5FF; color: #000; }

.ticker-style-red { border-color: #FF4C4C; }
.ticker-style-red .ticker-label { background-color: #FF4C4C; color: #fff; }
.ticker-style-red .ticker-date { color: #FF4C4C; }
.ticker-style-red .ticker-btn { color: #FF4C4C; border-left-color: rgba(255, 76, 76, 0.3); }
.ticker-style-red .ticker-btn:hover { background-color: #FF4C4C; color: #fff; }

.ticker-label {
  font-weight: 800;
  text-transform: uppercase;
  padding: 0 20px;
  display: flex;
  align-items: center;
  font-size: 13px;
  letter-spacing: 1px;
  flex-shrink: 0;
}

.ticker-content-wrapper {
  flex: 1;
  overflow: hidden;
  position: relative;
  background-color: rgba(0,0,0,0.8);
  display: flex;
  align-items: center;
}

.ticker-scroller {
  display: flex;
  white-space: nowrap;
  animation: ticker-scroll linear infinite;
}

.ticker-text {
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding-right: 50px;
  text-transform: uppercase;
  display: inline-block;
}

.ticker-date {
  margin-left: 10px;
  opacity: 0.8;
}

@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ticker-btn {
  background-color: #000;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0 20px;
  display: flex;
  align-items: center;
  font-size: 12px;
  text-decoration: none;
  border-left: 1px solid;
  transition: all 0.3s;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .hero-ticker-container { flex-direction: column; height: auto; }
  .ticker-label, .ticker-btn { width: 100%; justify-content: center; padding: 10px; }
  .ticker-content-wrapper { height: 40px; }
}

/* ==========================================================================
   18. FORMS & INPUTS
   ========================================================================== */

.request-form-title {
  max-width: 800px;
  margin: 0 auto 24px;
}

.request-form-panel {
  max-width: 800px;
  margin: 0 auto;
  padding: 42px 46px;
  box-sizing: border-box;
}

.request-form {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.request-form .form-field {
  margin-bottom: 22px;
}

/* Labels */
.request-form label, 
.form-field label {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
  font-size: 14px;
}

.form-field .optional {
  color: #aaa;
  font-size: 12px;
  font-weight: 500;
  margin-left: 4px;
}

.form-field p,
.form-field .form-field-hint,
.request-form .suggestion-list {
  color: #c7c7c7;
  font-size: 13px;
  line-height: 1.55;
}

.request-form label a { color: #F3D05C; text-decoration: underline; }

/* Text Inputs & Textareas */
.request-form input[type="text"],
.request-form input[type="email"],
.request-form input[type="search"],
.request-form input[type="url"],
.request-form input[type="tel"],
.request-form textarea,
.form-field input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
.form-field textarea,
.nesty-input {
  box-sizing: border-box; /* Ensures width includes padding */
  width: 100%;
  background-color: rgba(255, 255, 255, 0.05); /* Dark background */
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  padding: 12px 15px;
  font-size: 15px;
  color: #fff; /* White text */
  font-family: 'Inter', sans-serif;
  transition: all 0.3s ease;
  min-height: 48px; /* Consistent height */
  margin-bottom: 10px;
}

.request-form textarea,
.form-field textarea {
  min-height: 150px;
  resize: vertical;
}

.request-form input:focus,
.request-form textarea:focus,
.form-field input:focus,
.nesty-input:focus {
  outline: none;
  border-color: #F3D05C;
  background-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 10px var(--brand-color-soft);
}

/* Dropdowns (Nesty - Zendesk Specific) */
.nesty-input {
  background-color: #1a1c23;
  border: 1px solid var(--brand-color);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  color: #ffffff;
  margin-bottom: 10px;
}

.nesty-input::after {
  content: '\25BE';
  font-size: 10px;
  color: #F3D05C;
  margin-left: 10px;
}

/* Attachments */
#upload-dropzone {
  border: 2px dashed rgba(255,255,255,0.2) !important;
  background: rgba(255,255,255,0.02) !important;
  color: #aaa !important;
  border-radius: 4px;
  padding: 34px !important;
  text-align: center;
  transition: 0.3s;
  margin-top: 8px;
  margin-bottom: 18px;
}

#upload-dropzone:hover {
  border-color: #F3D05C !important;
  background: var(--brand-color-subtle) !important;
  color: #fff !important;
}

.upload-pool {
  margin-top: 12px;
}

.upload-item {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 4px;
  color: #e6e6e6;
  margin-bottom: 8px;
  padding: 10px 12px;
}

.notification-error,
.form-field .notification-error,
.request-form .notification-error {
  display: block;
  margin: 8px 0 0;
  color: #ff8f8f;
  font-size: 13px;
  line-height: 1.45;
}

.form-field.required > label::after {
  content: " *";
  color: #F3D05C;
}

/* Submit Button - Styles like CTA */
.request-form input[type="submit"],
.form-field input[type="submit"],
.comment-form input[type="submit"],
.button.button-large {
  width: 100%;
  background-color: #F3D05C;
  color: #000 !important;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 1px;
  border: none;
  border-radius: 4px;
  padding: 15px 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
}

.request-form input[type="submit"]:hover,
.form-field input[type="submit"]:hover,
.comment-form input[type="submit"]:hover,
.button.button-large:hover {
  background-color: #fff;
  color: #000 !important;
  box-shadow: 0 0 20px var(--brand-color-medium);
  transform: translateY(-2px);
}

.button.button-secondary,
.mark-as-solved {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 4px;
  color: #fff;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  padding: 12px 18px;
}

.button.button-secondary:hover,
.mark-as-solved:hover {
  border-color: #F3D05C;
  color: #F3D05C;
}

/* Description / WYSIWYG Wrapper */
.form-field .wysiwyg-container, 
.request-form .suggestion-list {
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 10px;
}

.request-form .suggestion-list {
  background: rgba(255,255,255,0.03);
  padding: 14px 16px;
}

/* ==========================================================================
   19. SEARCH RESULTS & RESPONSIVE OVERRIDES
   ========================================================================== */

/* Search result cards */
.search-results-list {
  padding: 0 !important;
  margin: 0 0 30px !important;
  list-style: none;
  width: 100% !important;
  box-sizing: border-box !important;
}

.search-result-list-item.custom-search-card {
  position: relative;
  background-color: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 6px;
  padding: 22px 24px;
  margin-bottom: 16px;
  transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 100% !important;
  margin-right: 0 !important;
  margin-left: 0 !important;
}

.search-result-list-item.custom-search-card::before {
  content: "";
  position: absolute;
  top: 16px;
  bottom: 16px;
  left: 0;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: transparent;
  transition: background-color 0.25s ease;
}

.search-result-list-item.custom-search-card:hover {
  background-color: rgba(255, 255, 255, 0.065);
  border-color: var(--brand-color);
  transform: translateX(3px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.search-result-list-item.custom-search-card:hover::before {
  background: var(--brand-color);
}

.search-result-title {
  margin: 0;
  line-height: 1.28;
}

.search-result-title a {
  font-size: 19px;
  font-weight: 700;
  color: var(--brand-color) !important;
  text-decoration: none;
  text-underline-offset: 3px;
}

.search-result-title a:hover {
  color: var(--brand-color-strong) !important;
  text-decoration: underline;
}

/* Search result breadcrumbs */
.search-result-meta .breadcrumbs {
  margin: 0;
  padding: 0;
  font-size: 12px;
  color: #aaa;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 0;
}

.search-result-meta .breadcrumbs li {
  display: inline-flex;
  align-items: center;
}

.search-result-meta .breadcrumbs li + li::before {
  content: ">";
  margin: 0 8px;
  color: var(--brand-color);
  font-weight: bold;
  font-size: 14px;
}

.search-result-meta .breadcrumbs a {
  color: #cfcfcf;
  text-decoration: none;
  transition: 0.2s;
}

.search-result-meta .breadcrumbs a:hover {
  color: var(--brand-color);
  text-decoration: underline;
}

.search-result-snippet {
  margin: 4px 0 0;
  color: #d8d8d8;
  font-size: 14px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.search-result-snippet em,
.search-result-snippet mark {
  background: var(--brand-color-faint);
  color: var(--brand-color);
  font-style: normal;
  font-weight: 700;
  border-radius: 3px;
  padding: 0 3px;
}

.search-no-results {
  margin: 0 0 30px;
  padding: 24px;
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 6px;
  background: rgba(255,255,255,0.035);
  color: #e6e6e6;
  line-height: 1.6;
}

/* Mobile and tablet overrides */

@media (max-width: 768px) {
  
  /* Prevent horizontal scroll */
  body, html { overflow-x: hidden; width: 100%; }

  /* LOGO HEADER RESPONSIVE */
  .header .logo { max-width: 70%; }
  .header .logo img {
    height: auto !important;
    max-height: 45px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
  }

  /* HERO MOBILE */
  .hero {
    background-image: url(/hc/theming_assets/01KEN7AK3H5181PXSZRGSYA29F) !important; 
    background-size: cover !important;
    background-position: center bottom !important;
    min-height: calc(630 * 1px) !important;
    width: 100%;
    box-sizing: border-box;
  }
  .hero:not([style*="background-image"]) { background-color: #000; }

  /* Ajustes Generales */
  .hero-inner {
    width: 100% !important;
    padding: 0 20px;
    box-sizing: border-box;
  }
  
  .hero-brand-logo { transform: none !important; margin-bottom: 20px; }
  .hero-brand-logo img { height: 80px !important; width: auto; }

  .internal-hero {
    min-height: auto;
    background-image: url(/hc/theming_assets/01KEN7AK3H5181PXSZRGSYA29F) !important;
    background-position: center bottom !important;
  }

  .internal-hero-inner {
    grid-template-columns: 1fr;
    gap: 22px;
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .internal-hero-copy h1 {
    font-size: 30px;
  }

  /* BARRA BUSQUEDA */
  .search-container {
    width: 100% !important;
    padding: 0;
    margin-bottom: 10px;
    box-sizing: border-box;
    transform: translateY(calc(102 * 1px)) !important;
  }

  /* Ticker */
  .hero-ticker-container {
    width: 100% !important;
    max-width: 100% !important;
    flex-direction: column; 
    height: auto; 
    margin-top: 10px;
    padding: 0 !important; 
    border: none;
    box-sizing: border-box;
    transform: translateY(calc(118 * 1px)) !important;
  }
  .ticker-label, .ticker-btn { width: 100%; justify-content: center; border-left: none; border-right: none; }

  /* CONTENIDO ARTICULOS */
  .article-container {
    display: flex; flex-direction: column; width: 100%;
    padding: 0 20px; box-sizing: border-box;
  }
  .article {
    order: 1; width: 100% !important; flex: none !important;
    margin-right: 0 !important; box-sizing: border-box;
  }
  .article-sidebar { display: none !important; }
  .article-breadcrumbs-header { padding: 14px 18px; }
  .article-inner-content { padding: 28px 20px; }
  .article-title { font-size: 28px; line-height: 1.22; }
  .article-body { font-size: 16px; line-height: 1.75; }
  .article-body h2 { font-size: 23px; margin-top: 36px; }
  .article-body h3 { font-size: 20px; margin-top: 30px; }
  .article-body img { margin: 22px auto; }
  .article-body table { white-space: nowrap; }
  .article-body th,
  .article-body td { padding: 12px; }
  .search-results.article-container { padding: 0 16px !important; }
  .search-results .search-results-column { padding: 26px 18px !important; }
  .search-results-subheading { font-size: 24px; }
  .search-result-list-item.custom-search-card { padding: 18px; transform: none !important; }
  .search-result-title a { font-size: 17px; }
  .search-result-meta .breadcrumbs { font-size: 11px; }
  .search-result-snippet { font-size: 13px; line-height: 1.5; }
  .request-form-title { margin-bottom: 18px; }
  .request-form-panel { padding: 28px 20px; }
  .request-form input[type="submit"],
  .form-field input[type="submit"],
  .comment-form input[type="submit"],
  .button.button-large { padding: 14px 18px; }
  #upload-dropzone { padding: 26px 18px !important; }
  .blocks-list { gap: 22px; }
  .card-content { padding: 24px 20px; }
  .blocks-item-title { font-size: 18px; }
  .promoted-articles-list { grid-template-columns: 1fr !important; }

  /* Footer */
  .footer { overflow-x: hidden; }

  .footer-wrapper {
    display: flex; flex-direction: row; flex-wrap: wrap;
    justify-content: center; text-align: center;
    gap: 20px; width: 100%; box-sizing: border-box;
    padding-bottom: 40px;
  }

  .footer-brand-col {
    transform: none !important;
    order: 10 !important;
    flex: 1 1 100%;
    display: flex; flex-direction: column; align-items: center;
    /* QUITAMOS LA LINEA DIVISORIA */
    border-top: none !important; 
    padding-top: 10px; margin-top: 10px;
  }

  /* Reseteo forzado para elementos dentro de brand-col */
  .footer-brand-col > * {
    transform: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .footer-logo img { margin: 0 auto; }
  .copyright { margin: 10px 0; display: block; }

  /* Social icons */
  .footer-social-icons {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    width: 100%;
    margin-top: 15px !important;
    opacity: 1 !important;
    visibility: visible !important;
    position: relative !important;
    left: auto !important; top: auto !important;
  }
  
  .footer-social-icons a {
    color: #fff !important; /* Asegurar que se vean */
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .footer-column {
    transform: none !important;
    order: 1; min-width: 140px; flex: 0 1 auto; margin-bottom: 10px;
  }
}

/* Unified page headings */
.search-results-subheading,
h1.page-header,
.page-header h1 {
  color: var(--brand-color) !important;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
}

/* ==========================================================================
   20. NESTY PANEL
   ========================================================================== */

/* Open panel */
.nesty-panel {
  background-color: #1a1c23 !important;
  border: 1px solid var(--brand-color) !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.8) !important;
  z-index: 100000 !important;
}

/* Options */
.nesty-panel li {
  background-color: #1a1c23 !important;
  color: #dddddd !important;
  border-bottom: 1px solid rgba(255,255,255,0.1) !important;
}

/* Option hover and selected state */
.nesty-panel li:hover,
.nesty-panel li.selected {
  background-color: #000000 !important;
  color: var(--brand-color) !important;
  font-weight: 700 !important;
}

/* ==========================================================================
   21. STANDALONE SEARCH
   ========================================================================== */
.simple-search-container {
  max-width: 800px;
  margin: 30px auto;
  padding: 0 20px;
  position: relative;
  z-index: 10;
}

/* ==========================================================================
   22. PAGINATION
   ========================================================================== */
.pagination, 
.pagination ul {
  display: flex !important;
  flex-direction: row !important;
  justify-content: center !important;
  align-items: center !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 15px 0 !important;
  gap: 10px !important;
}

/* Pagination items */
.pagination li,
.pagination-item, 
.pagination-current, 
.pagination-first, 
.pagination-last, 
.pagination-prev, 
.pagination-next {
  display: inline-block !important;
  margin: 0 !important;
}

/* Pagination links */
.pagination li a,
.pagination-item a,
.pagination-next a,
.pagination-prev a,
.pagination-first a,
.pagination-last a {
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 10px 18px !important;
  
  background-color: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 4px !important;
  
  color: #ffffff !important;
  text-decoration: none !important;
  font-family: 'Poppins', sans-serif !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  transition: all 0.3s ease;
  min-width: 35px;
}

/* Hover state */
.pagination li a:hover {
  background-color: #000 !important;
  border-color: var(--brand-color) !important;
  color: var(--brand-color) !important;
  box-shadow: 0 0 10px var(--brand-color-glow);
}

/* Active state */
.pagination-current,
.pagination .current,
.pagination li[aria-current="page"] {
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 10px 18px !important;
  
  background-color: var(--brand-color) !important;
  border: 1px solid var(--brand-color) !important;
  border-radius: 4px !important;
  
  color: #000000 !important;
  font-weight: 800 !important;
  cursor: default;
  min-width: 35px;
}

/* Nested active label */
.pagination-current span {
  color: #000000 !important;
}

/* Ellipsis */
.pagination-gap {
  color: #fff !important;
  padding: 0 10px;
}

/* ==========================================================================
   23. SEARCH RESULTS LAYOUT
   ========================================================================== */

/* Hide the sidebar on search results pages */
.search-results .search-results-sidebar {
  display: none !important;
}

/* Use a single-column layout for results */
.search-results.article-container {
  display: block !important;
  width: 100% !important;
  margin-top: 34px !important;
  padding: 0 20px !important;
}

/* Align the result column with the search bar width */
.search-results .search-results-column {
  margin: 0 auto !important;
  max-width: 800px !important;
  float: none !important;
  width: 100% !important;
  padding: 34px 36px !important;
  box-sizing: border-box !important;
}

/* Align the result count heading with the cards */
.search-results-subheading {
  text-align: left !important;
  margin-left: 0 !important;
  padding-left: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 24px !important;
  line-height: 1.25 !important;
}

/* ==========================================================================
   24. AUTOCOMPLETE
   ========================================================================== */

/* Container */
zd-autocomplete {
  background-color: #1a1c23 !important;
  border: 1px solid var(--brand-color) !important;
  box-shadow: 0 10px 40px rgba(0,0,0,0.95) !important;
  border-radius: 0 0 6px 6px !important;
  display: block !important;
}

/* Internal reset */
zd-autocomplete-multibrand,
zd-autocomplete-multibrand * {
  background-color: transparent !important;
  background-image: none !important;
  text-decoration: none !important;
}

/* Header */
zd-autocomplete-header,
zd-autocomplete-header * {
  background-color: #1a1c23 !important;
  color: var(--brand-color) !important;
  font-family: 'Poppins', sans-serif !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  font-size: 11px !important;
  border-bottom: 1px solid rgba(255,255,255,0.1) !important;
}
/* Header spacing */
zd-autocomplete-header {
  padding: 12px 20px !important;
  display: block !important;
}

/* Result rows */
zd-autocomplete-multibrand {
  display: flex !important;
  flex-direction: column !important;
  border-bottom: 1px solid rgba(255,255,255,0.05) !important;
  padding: 12px 20px !important;
  cursor: pointer !important;
}

/* Result title */
zd-autocomplete-multibrand > :first-child,
zd-autocomplete-multibrand > a {
  color: var(--brand-color) !important;
  font-family: 'Poppins', sans-serif !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  display: block !important;
}

/* Result path */
zd-autocomplete-multibrand > :last-child,
zd-autocomplete-multibrand > span,
zd-autocomplete-multibrand > div:not(:first-child) {
  color: #FFFFFF !important;
  font-family: 'Inter', sans-serif !important;
  font-weight: 400 !important;
  font-size: 12px !important;
  opacity: 0.8 !important;
  margin-top: 4px !important;
}

/* Matched text */
zd-autocomplete-multibrand strong,
zd-autocomplete-multibrand em {
  color: inherit !important;
  font-weight: 900 !important;
}

/* Hover state */
zd-autocomplete-multibrand:hover {
  background-color: #000000 !important;
  border-left: 4px solid var(--brand-color) !important;
}
