:root {
  --green-100: #00f5a3;
  --green-200: #00e096;
  --green-300: #00c683;
  --green-400: #00b87a;
  --dark-600: #232d38;
  --dark-700: #1c252e;
  --dark-800: #151c24;

  --gray-100: #f3f5f6;
  --gray-700: #adb8c2;
  --gray-800: #a1aeba;

  --primary: var(--green-300);
  --primary-hover: var(--green-400);
  --bg-primary: var(--dark-800);
  --bg-secondary: var(--dark-700);
  --bg-tertiary: var(--dark-600);
  --text-primary: var(--gray-100);
  --text-secondary: var(--gray-700);
  --text-muted: var(--gray-800);
  --border-color: #323f4b;

  --container-max: 1280px;
  --transition-fast: 150ms ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6,
.main-nav a,
.sidebar-widget-header,
.footer-column h4,
.content-card h1,
.content-card h2,
.post-card-title {
  font-family: "Outfit", "Inter", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 40%, rgba(var(--cai-primary-rgb, 0, 198, 131), 0.03) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 80% 20%, rgba(var(--cai-accent-rgb, 0, 184, 122), 0.02) 0%, transparent 40%),
    radial-gradient(ellipse 50% 30% at 10% 80%, rgba(var(--cai-primary-rgb, 0, 198, 131), 0.02) 0%, transparent 40%);
  pointer-events: none;
  z-index: -2;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.02) 0.8px, transparent 0.8px);
  background-size: 3px 3px;
  opacity: 0.4;
  pointer-events: none;
  z-index: -1;
}

a {
  color: inherit;
  text-decoration: none;
}

svg {
  display: block;
}

.header-link,
.post-card-link,
.post-card-meta-item,
.footer-menu a,
.mobile-nav-list a,
.mobile-menu-toggle,
.mobile-menu-close,
.search-icon,
.btn {
  line-height: 1;
}

.header-link span,
.post-card-link span,
.post-card-meta-item span,
.mobile-menu-toggle span,
.mobile-menu-close span,
.search-icon span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wrap {
  width: min(100% - 2rem, var(--container-max));
  margin-inline: auto;
}

.site-header {
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  position: relative;
  z-index: 100;
}

.site-header::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(var(--cai-primary-rgb, 0, 198, 131), 0.3) 50%, transparent 100%);
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.95rem 0;
  gap: 1.5rem;
}

.site-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.site-logo svg {
  width: auto;
  height: 32px;
  display: block;
}

.header-search {
  flex: 1;
  max-width: 400px;
}

.search-form {
  position: relative;
  display: flex;
  align-items: center;
}

.search-form input[type="search"] {
  width: 100%;
  padding: 0.58rem 0.85rem 0.58rem 2.7rem;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 0.875rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.search-form input[type="search"]::placeholder {
  color: var(--text-muted);
}

.search-form input[type="search"]:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--cai-primary-rgb, 0, 198, 131), 0.1);
}

.search-form .search-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.search-form .search-icon svg {
  width: 15px;
  height: 15px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.header-link svg {
  width: 16px;
  height: 16px;
}

.header-link:hover {
  color: var(--primary);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.62rem 1rem;
  color: var(--bg-primary);
  background: var(--primary);
  transition: all var(--transition-fast);
}

.btn svg {
  width: 15px;
  height: 15px;
}

.btn:hover {
  background: var(--primary-hover);
  transform: translateY(-1px) scale(1.01);
}

.btn-outline {
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid var(--border-color);
}

.btn-outline:hover {
  color: var(--primary);
  border-color: rgba(var(--cai-primary-rgb, 0, 198, 131), 0.5);
  background: rgba(var(--cai-primary-rgb, 0, 198, 131), 0.06);
  transform: none;
}

.mobile-menu-toggle {
  width: 34px;
  height: 34px;
  display: none;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background-color: var(--bg-tertiary);
}

.mobile-menu-toggle svg {
  width: 18px;
  height: 18px;
}

.main-navigation {
  background-color: var(--bg-tertiary);
  border-bottom: 1px solid var(--border-color);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  list-style: none;
}

.main-nav::-webkit-scrollbar {
  display: none;
}

.main-nav a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 8px;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.main-nav a:hover {
  background-color: rgba(var(--cai-primary-rgb, 0, 198, 131), 0.1);
  color: var(--primary);
}

#footer-brand,
.site-logo--footer {
  display: inline-flex;
  align-items: center;
}

.footer-logo {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-logo .site-logo--footer svg {
  height: 32px;
  width: auto;
  display: block;
}

.brand-mark {
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 999px;
  background: linear-gradient(145deg, var(--green-100), var(--green-300));
  box-shadow: 0 0 18px rgba(var(--cai-primary-rgb, 0, 198, 131), 0.6);
  flex-shrink: 0;
}

.brand-text {
  font-family: "Outfit", "Inter", sans-serif;
  font-weight: 700;
  letter-spacing: 0.3px;
  font-size: 1.2rem;
}

.brand-text span {
  color: var(--text-muted);
}

#content {
  min-height: 38vh;
  padding: 2rem 0;
}

.content-area {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 2rem 0;
}

.sidebar {
  width: 280px;
  flex: 0 0 280px;
  display: grid;
  gap: 1rem;
  position: sticky;
  top: calc(1.5rem + var(--cai-header-offset, 0px));
  align-self: flex-start;
  max-height: calc(100vh - 1.5rem - var(--cai-header-offset, 0px));
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.main-content {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 1rem;
}

.content-card {
  background: linear-gradient(135deg, rgba(42, 54, 66, 0.75), rgba(35, 45, 56, 0.9));
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 2rem;
  overflow-x: clip;
}

.content-card h1 {
  font-family: "Outfit", "Inter", sans-serif;
  margin-bottom: 0.8rem;
  font-size: 2.15rem;
}

.content-card h2 {
  font-family: "Outfit", "Inter", sans-serif;
  font-size: 1.2rem;
  margin: 1.1rem 0 0.45rem;
}

.content-card p {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.94rem;
}

.latest-card {
  background: linear-gradient(135deg, rgba(39, 51, 63, 0.88), rgba(29, 40, 50, 0.95));
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 1rem;
}

.latest-card h3 {
  font-family: "Outfit", "Inter", sans-serif;
  font-size: 1rem;
  margin-bottom: 0.8rem;
}

.latest-list {
  display: grid;
  gap: 0.75rem;
}

.latest-item {
  display: flex;
  gap: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  background: rgba(19, 28, 35, 0.65);
  padding: 0.55rem;
}

.latest-thumb {
  width: 108px;
  height: 78px;
  border-radius: 8px;
  flex-shrink: 0;
  background: linear-gradient(135deg, #304254 0%, #475f74 100%);
}

.latest-body {
  min-width: 0;
  display: grid;
  gap: 0.25rem;
}

.latest-cat {
  color: var(--primary);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  font-weight: 700;
}

.latest-body h4 {
  font-size: 0.9rem;
  line-height: 1.35;
}

.latest-body p {
  color: var(--text-secondary);
  font-size: 0.8rem;
  line-height: 1.45;
}

.latest-meta {
  color: var(--text-muted);
  font-size: 0.72rem;
}

.promo-box {
  position: relative;
  border-radius: 12px;
  border: 1px solid rgba(var(--cai-primary-rgb, 0, 198, 131), 0.25);
  background: linear-gradient(160deg, #172833 0%, #203745 55%, #1a2e39 100%);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
  overflow: hidden;
  min-height: 340px;
}

.promo-slide {
  display: none;
  padding: 1rem;
  animation: fadeIn 220ms ease;
}

.promo-slide.active {
  display: block;
}

.promo-box-title {
  font-size: 0.78rem;
  color: #90a6b6;
  margin-bottom: 0.2rem;
}

.promo-box-subtitle {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.promo-badge {
  display: inline-flex;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  color: #191f26;
  background: #ffe95c;
}

.promo-badge.hot {
  background: #ff6b35;
  color: #fff;
}

.promo-badge.vip {
  background: #9b59b6;
  color: #fff;
}

.promo-amount {
  margin-top: 0.85rem;
  font-family: "Outfit", "Inter", sans-serif;
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--primary);
}

.promo-amount .currency {
  font-size: 1.1rem;
  opacity: 0.95;
}

.promo-details {
  margin-top: 0.3rem;
  color: #c5d2db;
  font-size: 0.8rem;
  line-height: 1.45;
}

.promo-bonus {
  margin-top: 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(var(--cai-primary-rgb, 0, 198, 131), 0.2);
  background: rgba(var(--cai-primary-rgb, 0, 198, 131), 0.06);
  padding: 0.65rem;
}

.promo-bonus-label {
  font-size: 0.69rem;
  color: #9eb1be;
}

.promo-bonus-value {
  font-size: 1.2rem;
  font-family: "Outfit", "Inter", sans-serif;
  font-weight: 700;
  color: var(--primary);
}

.promo-bonus-text {
  font-size: 0.72rem;
  color: #c3d0d8;
}

.promo-dots {
  position: absolute;
  bottom: 0.65rem;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 0.4rem;
}

.promo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.3);
}

.promo-dot.active {
  width: 20px;
  border-radius: 999px;
  background: var(--primary);
}

.sidebar-card {
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: #1d2934;
  padding: 0.9rem;
}

.sidebar-card h3 {
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
}

.sidebar-links {
  display: grid;
  gap: 0.25rem;
}

.sidebar-links a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 0.4rem;
  border-radius: 7px;
  color: var(--text-secondary);
  font-size: 0.82rem;
}

.sidebar-links a:hover {
  color: var(--primary);
  background: rgba(var(--cai-primary-rgb, 0, 198, 131), 0.08);
}

.site-footer,
#footer {
  position: relative;
  margin-top: 2.2rem;
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
}

.site-footer::before,
#footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(var(--cai-primary-rgb, 0, 198, 131), 0.4) 50%, transparent 100%);
}

.site-footer::after,
#footer::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(600px, 100%);
  height: 180px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center top, rgba(var(--cai-primary-rgb, 0, 198, 131), 0.03) 0%, transparent 70%);
  pointer-events: none;
}

.footer-main,
#footer-main {
  position: relative;
  z-index: 1;
  padding: 2rem 0;
}

.footer-top,
#footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  padding-bottom: 2rem;
  margin-bottom: 0;
  border-bottom: 1px solid var(--border-color);
}

.footer-tagline {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.footer-newsletter {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-newsletter-title {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.875rem;
}

.footer-newsletter-subtitle {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.newsletter-form {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
}

.newsletter-form input[type="email"] {
  width: 240px;
  max-width: 100%;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: var(--bg-tertiary);
  color: var(--text-primary);
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.newsletter-form input[type="email"]::placeholder {
  color: var(--text-muted);
}

.newsletter-form input[type="email"]:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--cai-primary-rgb, 0, 198, 131), 0.1);
}

.newsletter-form .btn {
  border-radius: 8px;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  white-space: nowrap;
}

.footer-columns,
#footer-cols.footer-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
  margin-top: 1.5rem;
}

.footer-column,
#footer-cols section {
  display: grid;
  align-content: start;
  gap: 0.35rem;
  min-width: 0;
}

.footer-column h4,
#footer-cols h4 {
  font-family: "Outfit", "Inter", sans-serif;
  font-size: 0.875rem;
  margin-bottom: 0.95rem;
}

.footer-menu {
  list-style: none;
  display: grid;
  gap: 0.2rem;
}

.footer-menu a {
  font-size: 0.82rem;
  color: var(--text-secondary);
  min-height: 22px;
  display: inline-flex;
  align-items: center;
}

.footer-menu a:hover {
  color: var(--primary);
}

.footer-posts {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer-post {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.footer-post-thumb {
  width: 80px;
  height: 60px;
  border-radius: 6px;
  flex-shrink: 0;
  overflow: hidden;
  background: linear-gradient(135deg, #2f3d4b 0%, #415363 100%);
}

.footer-post-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.footer-post-content {
  min-width: 0;
  flex: 1;
}

.footer-post-title {
  font-size: 0.75rem;
  line-height: 1.25;
  margin-bottom: 0.15rem;
}

.footer-post-title a {
  color: var(--text-primary);
}

.footer-post-title a:hover {
  color: var(--primary);
}

.footer-post-date {
  font-size: 0.6875rem;
  color: var(--text-muted);
}

.footer-bottom,
#footer-bottom {
  padding: 1rem 0 1.4rem;
  border-top: 1px solid var(--border-color);
}

.footer-disclaimer,
#footer-bottom {
  color: var(--text-muted);
  font-size: 0.76rem;
  line-height: 1.7;
}

.footer-disclaimer p,
#footer-bottom p {
  margin-bottom: 0.45rem;
}

.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(1px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 280ms ease, visibility 280ms ease;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-menu {
  width: min(92vw, 360px);
  height: 100%;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border-color);
  transform: translate3d(-104%, 0, 0);
  transition: transform 340ms cubic-bezier(0.22, 0.8, 0.2, 1);
  will-change: transform;
}

.mobile-menu-overlay.active .mobile-menu {
  transform: translate3d(0, 0, 0);
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  min-height: 64px;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--border-color);
}

.mobile-menu-close {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  font-size: 1.4rem;
  line-height: 1;
}

.mobile-menu-content {
  padding: 1rem;
  display: grid;
  gap: 1rem;
  max-height: calc(100vh - 64px);
  overflow: auto;
}

.mobile-menu-search {
  display: block;
}

.mobile-menu-search .search-form {
  display: flex;
  width: 100%;
}

.mobile-menu-search .search-form input[type="search"] {
  display: block;
  width: 100%;
  min-height: 42px;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
}

.mobile-menu-actions {
  display: grid;
  gap: 0.6rem;
}

.mobile-nav-section {
  border-top: 1px solid var(--border-color);
  padding-top: 0.9rem;
}

.mobile-nav-title {
  margin-bottom: 0.65rem;
  color: var(--text-primary);
  font-size: 0.82rem;
  font-weight: 600;
}

.mobile-nav-list {
  display: grid;
  gap: 0.2rem;
}

.mobile-nav-list a {
  color: var(--text-secondary);
  font-size: 0.87rem;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 0.35rem;
  border-radius: 6px;
}

.mobile-nav-list a:hover {
  color: var(--primary);
  background: rgba(var(--cai-primary-rgb, 0, 198, 131), 0.08);
}

@media (max-width: 1024px) {
  .content-area {
    flex-direction: column;
    padding: 0;
  }

  .sidebar {
    width: 100%;
    flex: 1 1 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    position: static;
    top: auto;
    max-height: none;
    overflow-y: visible;
  }

  .footer-columns,
  #footer-cols.footer-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }

  .footer-top,
  #footer-top {
    flex-direction: column;
    align-items: stretch;
  }

  .footer-newsletter {
    width: 100%;
  }

  .newsletter-form input[type="email"] {
    flex: 1;
    min-width: 0;
  }

}

@media (max-width: 768px) {
  .header-top {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 0.75rem;
    row-gap: 0.75rem;
    padding: 0.75rem 0;
  }

  .site-logo {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
  }

  .header-search {
    grid-column: 1 / -1;
    grid-row: 2;
    order: unset;
    flex: none;
    width: 100%;
    max-width: none;
    margin-top: 0;
    display: block;
  }

  .header-actions {
    grid-column: 2;
    grid-row: 1;
    flex: none;
    justify-content: flex-end;
    align-items: center;
    align-self: center;
    gap: 0.5rem;
  }

  .header-link {
    display: none;
  }

  .header-actions .btn {
    padding: 0.55rem 0.9rem;
    font-size: 0.8rem;
    white-space: nowrap;
  }

  .main-navigation {
    display: none;
  }

  .mobile-menu-toggle {
    display: inline-flex;
    flex-shrink: 0;
  }

  .content-area {
    flex-direction: column;
    padding: 0;
  }

  .sidebar {
    order: -1;
    width: 100%;
    margin-bottom: 1rem;
    grid-template-columns: 1fr;
  }

  .main-content {
    width: 100%;
    order: 0;
  }

  .newsletter-form {
    flex-direction: column;
    width: 100%;
  }

  .newsletter-form input[type="email"],
  .newsletter-form .btn {
    width: 100%;
  }

  .footer-newsletter {
    width: 100%;
  }

  .footer-columns,
  #footer-cols.footer-columns {
    grid-template-columns: 1fr;
  }

  .site-logo svg {
    height: 26px;
  }

  .content-card {
    padding: 1.2rem;
  }

  .content-card h1 {
    font-size: 1.5rem;
  }

  .latest-item {
    flex-direction: column;
  }

  .latest-thumb {
    width: 100%;
    height: 150px;
  }
}

@media (max-width: 520px) {
  .footer-columns,
  #footer-cols.footer-columns {
    grid-template-columns: 1fr;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Exact match overrides for sidebar/content area */
.sidebar-widget {
  background-color: var(--bg-tertiary);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
  position: relative;
  border: 1px solid var(--border-color);
}

.sidebar-widget::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--primary) 0%, var(--green-400) 50%, var(--primary) 100%);
  box-shadow: 0 0 15px var(--primary), 0 0 30px rgba(var(--cai-primary-rgb, 0, 198, 131), 0.3);
  pointer-events: none;
}

.sidebar-widget-header {
  display: flex;
  align-items: center;
  padding: 16px;
  background-color: #2a3642;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.875rem;
}

.sidebar-menu {
  padding: 8px;
  list-style: none;
}

.sidebar-menu li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-menu a,
.sidebar-menu li a {
  display: flex;
  align-items: center;
  padding: 8px 16px;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 8px;
  transition: all var(--transition-fast);
  position: relative;
  z-index: 1;
}

.sidebar-menu a:hover,
.sidebar-menu a.active,
.sidebar-menu li a:hover,
.sidebar-menu li.current-menu-item > a {
  background-color: rgba(var(--cai-primary-rgb, 0, 198, 131), 0.1);
  color: var(--primary);
}

.promo-box {
  background: linear-gradient(135deg, #2a3642 0%, var(--bg-tertiary) 100%);
  border-radius: 12px;
  padding: 24px;
  border: 1px solid var(--border-color);
  margin-bottom: 24px;
  min-height: auto;
}

.promo-box.cai-sidebar-ad {
  padding: 0;
  overflow: hidden;
  line-height: 0;
}

.cai-sidebar-ad a {
  display: block;
}

.cai-sidebar-ad img {
  width: 100%;
  height: auto;
  display: block;
}

.promo-box-title { color: var(--primary); font-size: 0.875rem; font-weight: 600; margin-bottom: 4px; }
.promo-box-subtitle { color: var(--text-primary); font-size: 1.125rem; font-weight: 700; margin-bottom: 16px; }
.promo-amount { font-size: 2.5rem; font-weight: 700; color: var(--text-primary); line-height: 1; margin-bottom: 4px; }
.promo-amount .currency, .promo-amount .percent { font-size: 1.5rem; color: var(--primary); vertical-align: super; }
.promo-details { margin: 16px 0; font-size: 0.875rem; color: var(--text-secondary); line-height: 1.6; }
.promo-highlight { color: var(--primary); font-weight: 600; }
.promo-highlight-gold { color: #ffde00; font-weight: 700; }

.promo-badge { display: inline-block; padding: 4px 8px; background-color: #ffde00; color: var(--bg-primary); font-size: 0.75rem; font-weight: 700; border-radius: 4px; margin-bottom: 8px; }
.promo-badge-hot { background: linear-gradient(135deg, #ff6b35 0%, #ff4444 100%); color: #fff; }
.promo-badge-vip { background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%); color: #fff; }

.promo-slider-dots { display: flex; justify-content: center; gap: 8px; margin: 16px 0; }
.promo-slider-dots .dot { width: 10px; height: 10px; border-radius: 50%; background-color: #3e4d5a; border: none; cursor: pointer; transition: all var(--transition-fast); }
.promo-slider-dots .dot.active { background-color: var(--primary); box-shadow: 0 0 10px var(--primary); }

.promo-cta-btn {
  display: flex; align-items: center; justify-content: center; width: 100%;
  padding: 16px; background: linear-gradient(135deg, var(--primary) 0%, var(--green-400) 100%);
  color: var(--bg-primary); font-weight: 700; font-size: 0.875rem; border-radius: 8px;
  text-transform: uppercase; letter-spacing: 0.5px;
}

.entry-content h2 { font-size: 1.5rem; margin-top: 1.4rem; }
.entry-content p { color: var(--text-secondary); line-height: 1.7; font-size: 1rem; }

/* İçerik görselleri — taşmayı önle */
.entry-content img,
.single-featured-image img,
.content-card .wp-post-image {
  max-width: 100%;
  height: auto;
  display: block;
}

.single-featured-image {
  margin: 0 0 1.25rem;
  line-height: 0;
  overflow: hidden;
  border-radius: 10px;
}

.entry-content figure,
.entry-content .wp-block-image {
  max-width: 100%;
  margin: 1.25rem 0;
}

.entry-content figure img {
  width: 100%;
  height: auto;
}

.entry-content iframe,
.entry-content video {
  max-width: 100%;
}

/* İçerik tabloları — bahis.com tarzı kenarlık ve başlık satırı */
.entry-content .table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.25rem 0 1.5rem;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background: rgba(28, 37, 46, 0.35);
}

.entry-content table,
.entry-content .cai-table {
  width: 100% !important;
  min-width: 280px;
  max-width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  font-size: 0.875rem;
  margin: 0;
  table-layout: auto;
}

.entry-content .table-wrap table {
  min-width: 520px;
}

.entry-content th,
.entry-content td,
.entry-content [class*="amp-wp-"] th,
.entry-content [class*="amp-wp-"] td {
  padding: 0.75rem 1rem !important;
  border: 1px solid var(--border-color) !important;
  text-align: left;
  vertical-align: top;
}

.entry-content th,
.entry-content thead td,
.entry-content table tr:first-child th {
  background: #2a3642 !important;
  color: var(--text-primary) !important;
  font-weight: 600;
}

.entry-content td {
  color: var(--text-secondary);
  background: transparent;
}

.entry-content th strong,
.entry-content td strong {
  color: inherit;
  font-weight: 600;
}

.entry-content tbody tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.02);
}

.entry-content tbody tr:hover td {
  background: rgba(255, 255, 255, 0.04);
}

.info-section {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
}

.info-section h2 { font-size: 1.25rem; margin-bottom: 14px; }
.news-grid { display: grid; gap: 16px; }
.post-card { display: flex; gap: 16px; background-color: #2a3642; border-radius: 12px; overflow: hidden; border: 1px solid var(--border-color); }
.post-card-thumb { width: 400px; flex-shrink: 0; background: linear-gradient(135deg, #304254 0%, #475f74 100%); }
.post-card-body { padding: 12px; }
.post-card-badge { display: inline-flex; padding: 3px 8px; border-radius: 999px; background: rgba(var(--cai-primary-rgb, 0, 198, 131), 0.15); color: var(--primary); font-size: 0.7rem; margin-bottom: 8px; }
.post-card-title { font-size: 1rem; margin-bottom: 8px; }
.post-card-title a { color: var(--text-primary); }
.post-card-excerpt { color: var(--text-secondary); font-size: 0.85rem; }
.post-card-meta { margin-top: 8px; color: var(--text-muted); font-size: 0.75rem; }

.post-card-thumb {
  position: relative;
  width: 400px;
  min-height: 180px;
  border-radius: 0;
  overflow: hidden;
}

.post-card-thumb a,
.post-card-thumb img {
  display: block;
  width: 100%;
  height: 100%;
}

.post-card-thumb img {
  object-fit: cover;
}

.post-card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
}

.post-card-body {
  padding: 16px;
}

.post-card-title {
  font-size: 1.125rem;
  margin-bottom: 10px;
}

.post-card-excerpt {
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 12px;
}

.post-card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.post-card-link svg {
  width: 15px;
  height: 15px;
}

.post-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
}

.post-card-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 0.75rem;
}

.post-card-meta-item svg {
  width: 13px;
  height: 13px;
}

@media (max-width: 768px) {
  .post-card { flex-direction: column; }
  .post-card-thumb { width: 100%; height: 180px; min-height: 0; }
}

/* Final strict match for sidebar/content/mobile menu */
.content-area {
  gap: 32px;
}

.main-content {
  display: block;
  background: transparent;
}

.content-card.front-page-content {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
}

.front-page-content .entry-content h1 {
  font-size: 1.75rem;
  color: var(--text-primary);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.front-page-content .entry-content h2 {
  font-size: 1.5rem;
  margin: 24px 0 12px;
  color: var(--text-primary);
}

.front-page-content .entry-content p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.sidebar {
  width: 280px;
  flex: 0 0 280px;
  display: block;
}

.sidebar-widget,
.promo-box {
  margin-bottom: 24px;
}

.promo-box {
  position: relative;
  overflow: hidden;
}

.promo-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--primary) 0%, var(--green-400) 50%, var(--primary) 100%);
  box-shadow: 0 0 20px var(--primary), 0 0 40px rgba(var(--cai-primary-rgb, 0, 198, 131), 0.4);
  z-index: 1;
  pointer-events: none;
}

.promo-slider-dots {
  justify-content: flex-start;
  margin: 16px 0;
}

.info-section {
  margin-top: 32px;
}

.post-card {
  min-height: 146px;
}

.post-card-body {
  padding: 16px;
}

.mobile-menu-header {
  min-height: 64px;
  padding: 12px 16px;
}

.mobile-menu-header .site-logo--drawer {
  flex: 1;
  min-width: 0;
}

.mobile-menu-header .site-logo--drawer svg {
  height: 26px;
  width: auto;
  display: block;
}

@media (max-width: 1024px) {
  .sidebar {
    width: 100%;
    flex: 1 1 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    position: static;
    top: auto;
    max-height: none;
    overflow-y: visible;
  }

  .sidebar-widget,
  .promo-box {
    margin-bottom: 0;
  }
}

@media (max-width: 768px) {
  .content-area {
    flex-direction: column;
    padding: 0;
  }

  .sidebar {
    order: -1;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 24px;
    position: static;
    top: auto;
    max-height: none;
    overflow-y: visible;
  }

  .main-content {
    width: 100%;
  }

  .post-card {
    flex-direction: column;
  }

  .post-card-thumb {
    width: 100%;
    aspect-ratio: 16/9;
    height: auto;
  }
}
