/*
Theme Name: 1WinZA
Theme URI: https://1win.za.com/ipl
Author: 1Win Team
Description: Custom WordPress theme for 1Win IPL blog section. Dark theme with Roboto font, three-column layout, Gutenberg blocks support, Yoast SEO compatible.
Version: 1.0.6
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: flavor1winza
*/

/* ==========================================================================
   Fonts
   ========================================================================== */

@font-face {
  font-family: "Roboto";
  src: url("assets/fonts/RobotoRegular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  font-style: normal;
}

@font-face {
  font-family: "Roboto";
  src: url("assets/fonts/RobotoMedium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
  font-style: normal;
}

@font-face {
  font-family: "Roboto";
  src: url("assets/fonts/RobotoBold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
  font-style: normal;
}

@font-face {
  font-family: "Roboto";
  src: url("assets/fonts/RobotoBlack.woff2") format("woff2");
  font-weight: 900;
  font-display: swap;
  font-style: normal;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */

:root {
  --font-family: "Roboto", sans-serif;
  --color-bg: #0A0F1D;
  --color-surface: #181E31;
  --color-surface-alt: #1D2438;
  --color-surface-deep: #12192b;
  --color-text: #fff;
  --color-text-secondary: #d8e4f2;
  --color-text-muted: #9ca3af;
  --color-link: #93c5fd;
  --color-link-hover: #bfdbfe;
  --color-border: rgba(255, 255, 255, 0.1);
  --color-border-blue: rgba(83, 157, 237, 0.45);
  --color-green-start: #31bc69;
  --color-green-end: #089e4e;
  --color-gold-start: rgb(255, 202, 77);
  --color-gold-end: rgb(255, 148, 0);
  --radius: 10px;
  --container-max: 1280px;
}

html {
  box-sizing: border-box;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

.page {
  height: 100%;
  -webkit-text-size-adjust: 100%;
}

.page__body {
  margin: 0;
  min-width: 320px;
  min-height: 100%;
  font-size: 16px;
  padding: 0;
  font-family: var(--font-family);
  width: 100%;
  background: var(--color-bg);
  font-weight: 400;
  color: var(--color-text);
}

h1, h2, h3, h4, h5, h6, p {
  margin: 0;
  padding: 0;
}

img {
  height: auto;
  max-width: 100%;
  object-fit: cover;
}

a {
  text-decoration: none;
  color: var(--color-link);
}

a:hover {
  color: var(--color-link-hover);
}

.list-reset {
  list-style: none;
  margin: 0;
  padding: 0;
}

.visually-hidden {
  position: absolute;
  overflow: hidden;
  margin: -1px;
  border: 0;
  padding: 0;
  width: 1px;
  height: 1px;
  clip: rect(0 0 0 0);
}

/* ==========================================================================
   Layout
   ========================================================================== */

.site-container {
  width: 100%;
}

.container {
  max-width: var(--container-max);
  width: 100%;
  padding: 0 15px;
  margin: 0 auto;
}

main {
  display: flex;
  justify-content: space-between;
  max-width: 1920px;
  width: 100%;
  margin: 0 auto;
  padding: 10px 5px 0;
}

@media (max-width: 964px) {
  main {
    padding-top: 100px;
  }
}

.main {
  flex: 1 1 0;
  min-width: 0;
  max-width: 100%;
}

/* ==========================================================================
   Header
   ========================================================================== */

header {
  background: var(--color-surface);
  width: 100%;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

@media (max-width: 964px) {
  header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
  }
}

.header__container {
  max-width: 1920px;
  margin: 0 auto;
  background-color: var(--color-surface);
  padding: 10px;
  border-radius: var(--radius);
  align-items: center;
}

.header__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  column-gap: 1rem;
  row-gap: 0.75rem;
  width: 100%;
}

.header__col--left {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  min-width: 0;
}

.header__col--nav {
  justify-self: center;
  min-width: 0;
}

.header__col--right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  flex-wrap: nowrap;
  min-width: 0;
}

.menu__right {
  display: flex;
  align-items: center;
  width: auto;
  flex-shrink: 0;
  gap: 0;
}

.menu__right a {
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  transition: color 0.15s ease, filter 0.15s ease, opacity 0.15s ease;
}

.menu__right a:hover {
  color: #fff;
  filter: brightness(1.12);
}

.reg {
  background-image: linear-gradient(70deg, var(--color-green-start) -8%, var(--color-green-end) 96%);
  color: #fff;
  font-size: 14px;
  text-transform: uppercase;
  border-radius: 3px;
  padding: 5px 20px;
  margin-right: 10px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  white-space: nowrap;
}

.log {
  color: #fff;
  font-size: 14px;
  text-transform: uppercase;
  background: linear-gradient(107deg, var(--color-gold-start) 0%, var(--color-gold-end) 100%);
  border-radius: 3px;
  padding: 5px 20px;
  margin-right: 0;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}

.open-popup {
  cursor: pointer;
}

@media (max-width: 964px) {
  .header__row {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    overflow: visible;
  }

  .header__col--left {
    width: 100%;
    justify-content: space-between;
    position: relative;
    z-index: 40;
  }

  .header__col--nav.sidenav {
    display: none;
  }

  .header__col--right {
    width: 100%;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 0.5rem;
    position: relative;
    z-index: 10;
  }

  .menu__right {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    justify-content: center;
    align-items: stretch;
    gap: 0.5rem;
  }

  .menu__right a {
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
    text-align: center;
    justify-content: center;
    box-sizing: border-box;
    margin-right: 0;
  }

  .reg {
    margin-right: 0;
  }

  .header__container {
    overflow: visible;
    display: block;
  }
}

@media (max-width: 480px) {
  .header__row {
    row-gap: 0.65rem;
  }

  .reg,
  .log {
    font-size: 12px;
    padding: 5px 12px;
  }
}

.header__logo {
  display: flex;
  align-items: center;
  width: 82px;
}

@media (max-width: 964px) {
  .header__logo {
    margin-right: auto;
    z-index: 5;
  }
}

.header__logo img {
  width: 73px;
  height: auto;
}

/* Navigation (aligned with root static site css/main.css — desk dropdowns) */
.sidenav {
  max-width: none;
  width: auto;
  display: flex;
  align-items: center;
  padding: 0;
}

.header__col--nav.sidenav {
  max-width: min(100%, 720px);
}

.header__col--nav.sidenav > ul {
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 964px) {
  .sidenav {
    display: none;
  }
}

.sidenav > ul {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidenav ul li {
  position: relative;
  margin-right: 15px;
  padding-right: 15px;
  display: flex;
  align-items: center;
}

.sidenav ul li a {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  margin-right: 5px;
  transition: color 0.15s ease, text-shadow 0.15s ease;
}

.sidenav ul li a:hover {
  color: var(--color-link);
  text-shadow: 0 0 12px rgba(147, 197, 253, 0.35);
}

/* Bridge hover gap — parent item to dropdown */
.sidenav ul li.menu-item-hover::after,
.sidenav ul li.menu-item-has-children::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 10px;
}

/* Games label + WordPress parent links with children */
.sidenav ul li .games-title {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  cursor: default;
  user-select: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  margin-right: 5px;
  transition: color 0.15s ease, text-shadow 0.15s ease;
}

.sidenav ul li .games-title:hover,
.sidenav ul li.menu-item-hover:hover .games-title {
  color: var(--color-link);
  text-shadow: 0 0 12px rgba(147, 197, 253, 0.35);
}

.sidenav .menu-item-has-children > a {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
}

.sidenav .menu-item-has-children > a::after {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid rgba(255, 255, 255, 0.92);
  flex-shrink: 0;
  transition: transform 0.2s ease, border-top-color 0.2s ease;
}

.sidenav li.menu-item-has-children:hover > a::after {
  transform: rotate(180deg);
  border-top-color: #fff;
}

.games-title__chevron {
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid rgba(255, 255, 255, 0.92);
  flex-shrink: 0;
  transition: transform 0.2s ease, border-top-color 0.2s ease;
}

.menu-item-hover:hover .games-title__chevron {
  transform: rotate(180deg);
  border-top-color: #fff;
}

/* Desktop dropdown panel — games block + WP .sub-menu */
.sidenav .games-submenu,
.sidenav ul.sub-menu {
  min-width: 10rem;
  width: max-content;
  max-width: min(100vw - 24px, 22rem);
  white-space: nowrap;
  position: absolute;
  margin: 0;
  padding: 0.5rem 0 0.4rem;
  list-style: none;
  display: none;
  z-index: 56;
  pointer-events: auto;
  border-radius: 12px;
  background: linear-gradient(180deg, #1f2a42 0%, #161d2e 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(0, 0, 0, 0.2);
}

.sidenav > ul > li > .sub-menu,
.sidenav .games-submenu {
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
}

.sidenav .games-submenu::before,
.sidenav > ul > li > .sub-menu::before {
  content: "";
  position: absolute;
  bottom: calc(100% - 1px);
  left: 50%;
  transform: translateX(-50%);
  border: 7px solid transparent;
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

.menu-item-hover:hover .games-submenu,
.sidenav ul li.menu-item-hover:hover .games-submenu,
.sidenav ul li.menu-item-hover .games-submenu:hover,
.sidenav li.menu-item-has-children:hover > .sub-menu,
.sidenav li.menu-item-has-children > .sub-menu:hover {
  display: block;
}

/* Nested flyout (second level+) */
.sidenav ul.sub-menu ul.sub-menu {
  top: 0;
  left: 100%;
  transform: none;
  margin-left: 6px;
  margin-top: 0;
}

.sidenav ul.sub-menu ul.sub-menu::before {
  display: none;
}

.sidenav ul.sub-menu li.menu-item-has-children:hover > .sub-menu {
  display: block;
}

.games-submenu li,
.sidenav .sub-menu li {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none;
  width: 100%;
}

.games-submenu li a,
.sidenav .sub-menu a {
  display: block;
  padding: 0.55rem 1.1rem;
  margin: 0 0.35rem;
  border-radius: 8px;
  box-sizing: border-box;
  color: rgba(255, 255, 255, 0.92);
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 600;
  width: auto;
  transition: background 0.15s ease, color 0.15s ease;
}

.games-submenu li a:hover,
.sidenav .sub-menu a:hover {
  background: rgba(59, 130, 246, 0.25);
  color: #fff;
}

/* Burger menu */
.burger-menu input {
  display: none;
}

.burger-menu label {
  position: relative;
  width: 30px;
  height: 22px;
  display: none;
  transition: left 0.4s;
  z-index: 10;
}

@media (max-width: 964px) {
  .burger-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 30px;
    z-index: 5;
  }

  .burger-menu label {
    display: block;
    flex-shrink: 0;
    width: 30px;
    max-width: 30px;
  }
}

.burger-menu label span {
  display: block;
  position: absolute;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: white;
  transition: 0.3s linear;
  opacity: 1;
  border-radius: 5px;
  transform-origin: center;
}

.burger-menu label span:nth-child(1) { top: 3px; }
.burger-menu label span:nth-child(2) { top: 10px; }
.burger-menu label span:nth-child(3) { top: 17px; }
.burger-menu label span:nth-child(4) { display: none; }

#burger:checked ~ label span.first { opacity: 0; }
#burger:checked ~ label span.second { top: 14px; transform: rotate(45deg); }
#burger:checked ~ label span.third { top: 14px; transform: rotate(-45deg); }

.nav-bar {
  display: none;
}

@media (max-width: 964px) {
  .nav-bar {
    display: block;
    position: fixed;
    top: 100px;
    right: -100%;
    width: 100%;
    max-width: 100%;
    height: calc(100dvh - 100px);
    height: calc(100vh - 100px);
    overflow-y: auto;
    overflow-x: hidden;
    transition: right 0.35s ease;
    z-index: 45;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: -12px 0 40px rgba(0, 0, 0, 0.45);
    -webkit-overflow-scrolling: touch;
  }

  #burger:checked ~ .nav-bar {
    right: 0;
  }
}

.nav-bar ul li:not(:last-child) {
  margin-bottom: 15px;
}

.nav-bar nav {
  padding: 1.25rem 0 2rem;
  min-height: 100%;
}

.nav-bar ul {
  text-align: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-bar a {
  text-transform: uppercase;
  font-size: 16px;
  color: #fff;
}

@media (max-width: 964px) {
  .nav-bar .menu-item-has-children > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    max-width: 20rem;
    margin: 0 auto;
    box-sizing: border-box;
  }

  .nav-bar .menu-item-has-children > a::after {
    content: "";
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 0.4em;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid rgba(255, 255, 255, 0.88);
    flex-shrink: 0;
    transition: transform 0.25s ease;
  }

  .nav-bar li.menu-item-has-children.is-open > a::after {
    transform: rotate(180deg);
  }

  .nav-bar .sub-menu {
    display: none;
    list-style: none;
    margin: 0.65rem auto 0;
    padding: 0.5rem 0.45rem;
    max-width: min(20rem, 90vw);
    border-radius: 12px;
    background: linear-gradient(180deg, #1f2a42 0%, #161d2e 100%);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow:
      0 12px 28px rgba(0, 0, 0, 0.4),
      inset 0 1px 0 rgba(255, 255, 255, 0.06);
  }

  .nav-bar li.menu-item-has-children.is-open > .sub-menu {
    display: block;
    animation: flavor1winzaNavSubIn 0.22s ease;
  }

  .nav-bar .sub-menu li:not(:last-child) {
    margin-bottom: 0.25rem;
  }

  .nav-bar .sub-menu a {
    font-size: 0.9375rem;
    font-weight: 600;
    text-transform: uppercase;
    margin: 0 0.2rem;
    padding: 0.5rem 0.65rem;
    border-radius: 8px;
    display: block;
    color: rgba(255, 255, 255, 0.92);
    transition: background 0.15s ease, color 0.15s ease;
  }

  .nav-bar .sub-menu a:hover {
    background: rgba(59, 130, 246, 0.28);
    color: #fff;
  }

  .nav-bar .sub-menu .sub-menu {
    margin-top: 0.4rem;
    margin-left: 0;
    padding: 0.4rem 0 0.4rem 0.45rem;
    border-left: 2px solid rgba(147, 197, 253, 0.25);
    border-radius: 0 10px 10px 0;
    background: rgba(0, 0, 0, 0.2);
  }
}

@keyframes flavor1winzaNavSubIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.header__nav {
  background: var(--color-surface);
}

@media (max-width: 964px) {
  .nav-bar .header__nav {
    background: linear-gradient(180deg, #1a2235 0%, var(--color-surface-deep) 100%);
  }
}

.header__nav ul {
  display: flex;
  flex-direction: column;
}

.header__top__right {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Mobile games submenu */
.games-mobile-expanded {
  display: block;
  width: 100%;
}

.games-title-mobile {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  text-transform: uppercase;
  font-size: 16px;
  color: #fff;
  font-weight: 400;
  cursor: default;
}

.games-title-mobile .games-title__chevron {
  border-top-color: rgba(255, 255, 255, 0.85);
}

.games-submenu-mobile {
  display: none;
  list-style: none;
  padding-left: 0;
  margin: 0;
  margin-top: 15px;
}

.games-mobile-expanded:hover .games-submenu-mobile,
.games-submenu-mobile:hover {
  display: block;
}

.games-submenu-mobile li {
  margin-bottom: 15px;
}

.games-submenu-mobile li a {
  font-size: 16px;
  color: #fff;
  text-transform: uppercase;
}

/* ==========================================================================
   Content
   ========================================================================== */

.content {
  padding: 30px;
  background-color: var(--color-surface);
  border-radius: var(--radius);
  margin: 0 10px;
  margin-top: 10px;
  color: #fff;
}

@media (max-width: 1050px) {
  .content {
    margin-left: 0;
    margin-right: 0;
  }
}

@media (max-width: 500px) {
  .content {
    padding: 20px 10px;
  }
}

.content h1 {
  font-size: 25px;
  margin: 0 0 1.75rem;
  line-height: 1.25;
}

.content h2 {
  font-size: 20px;
  margin: 1.25rem 0;
  line-height: 1.3;
}

.content h2:first-child {
  margin-top: 0;
}

.content h3 {
  font-size: 18px;
  margin: 1.125rem 0;
  line-height: 1.35;
}

.content h3:first-child {
  margin-top: 0;
}

.content h4 {
  font-size: 16px;
  margin: 1rem 0 1.1rem;
  line-height: 1.4;
}

.content p {
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 1rem;
}

.content p:last-child {
  margin-bottom: 0;
}

.content img {
  display: block;
  margin: 35px auto;
  border-radius: 8px;
}

.content ul li:not(:last-child) {
  margin-bottom: 5px;
}

.content ul li:last-child {
  margin-bottom: 10px;
}

.content a {
  color: var(--color-link);
  transition: color 0.15s ease;
}

.content a:hover {
  color: var(--color-link-hover);
  text-decoration: underline;
}

/* ==========================================================================
   Tables
   ========================================================================== */

.table-wrap {
  overflow-x: auto;
}

.content table {
  width: 100%;
  margin: 0.25rem auto;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 12px;
  overflow: hidden;
  color: #e8edf5;
  background: var(--color-surface-deep);
  border: 1px solid var(--color-border);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.content table thead {
  background: linear-gradient(165deg, #2d6dad 0%, #245a8c 42%, #1a3f63 100%);
}

.content table thead th,
.content table thead td {
  padding: 0.9rem 1rem;
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.35;
  letter-spacing: 0.02em;
  color: #fff;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--color-border-blue);
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.content table thead th:last-child,
.content table thead td:last-child {
  border-right: none;
}

.content table tbody tr {
  background: rgba(255, 255, 255, 0.04);
  transition: background-color 0.2s ease;
}

.content table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.07);
}

.content table tbody tr:hover {
  background: rgba(83, 157, 237, 0.14);
}

.content table tbody td {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--color-text-secondary);
  vertical-align: top;
  white-space: normal;
  word-wrap: break-word;
}

.content table tbody tr:last-child td {
  border-bottom: none;
}

.content table tbody td:last-child {
  border-right: none;
}

@media (max-width: 700px) {
  .content table thead th,
  .content table thead td,
  .content table tbody td {
    padding: 10px;
    font-size: 0.875rem;
  }
}

/* ==========================================================================
   Breadcrumbs (1win | IPL | … — same structure as root static site)
   ========================================================================== */

.breadcrumbs {
  margin: 0 0 1rem;
  padding: 0;
  font-size: 0.875rem;
  line-height: 1.4;
}

.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.breadcrumbs__item {
  display: inline-flex;
  align-items: center;
}

.breadcrumbs__item + .breadcrumbs__item::before {
  content: "|";
  margin: 0 0.5rem;
  color: rgba(255, 255, 255, 0.32);
  font-weight: 400;
  pointer-events: none;
}

.breadcrumbs__link {
  color: var(--color-link);
  text-decoration: none;
  transition: color 0.15s ease, text-decoration 0.15s ease;
}

.breadcrumbs__link:hover {
  color: var(--color-link-hover);
  text-decoration: underline;
}

.breadcrumbs__current {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 600;
}

/* Narrow viewports: flow like text so the last crumb wraps mid-title, not as a whole block */
@media (max-width: 768px) {
  .breadcrumbs__list {
    display: block;
  }

  .breadcrumbs__item {
    display: inline;
    vertical-align: baseline;
    max-width: none;
  }

  .breadcrumbs__item + .breadcrumbs__item::before {
    margin: 0 0.35rem;
    white-space: normal;
  }

  .breadcrumbs__link,
  .breadcrumbs__current {
    display: inline;
    word-break: break-word;
    overflow-wrap: anywhere;
  }
}

/* ==========================================================================
   Sidebars
   ========================================================================== */

.sidebare-left {
  position: relative;
  padding-top: 10px;
  flex: 0 0 17%;
  max-width: 17%;
  min-height: 1px;
}

@media (max-width: 1050px) {
  .sidebare-left {
    display: none;
  }
}

.sidebare-left__box {
  position: sticky;
  top: 10px;
  left: 0;
}

.sidebare-left__box:empty {
  display: none;
}

.sidebare-left__title {
  background: var(--color-surface-alt);
  color: #fff;
  padding: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-transform: uppercase;
  font-weight: 700;
}

.sidebare-right {
  flex: 0 0 17%;
  max-width: 17%;
  position: relative;
  padding: 10px 0;
  min-height: 1px;
}

@media (max-width: 1050px) {
  .sidebare-right {
    display: none;
  }
}

.sidebare-right-all:empty,
.sidebare-right__box:empty {
  display: none;
}

.sidebare-right__box {
  position: sticky;
  top: 10px;
}

/* Widget styling in sidebars — Left */
.sidebare-left .widget {
  background: var(--color-surface-alt);
  border-radius: var(--radius);
  padding: 14px 12px;
  margin-bottom: 10px;
  color: var(--color-text-secondary);
}

.sidebare-left .widget:last-child {
  margin-bottom: 0;
}

.sidebare-left .widget-title,
.sidebare-left .widgettitle {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebare-left .widget a {
  color: var(--color-link);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.15s ease;
}

.sidebare-left .widget a:hover {
  color: #7fcfff;
}

.sidebare-left .widget ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebare-left .widget ul li {
  padding: 5px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 13px;
}

.sidebare-left .widget ul li:last-child {
  border-bottom: none;
}

.sidebare-left .widget p {
  font-size: 13px;
  line-height: 1.5;
  margin: 0 0 8px;
}

.sidebare-left .widget p:last-child {
  margin-bottom: 0;
}

/* Widget styling in sidebars — Right */
.sidebare-right .widget {
  background: var(--color-surface-alt);
  border-radius: var(--radius);
  padding: 14px 12px;
  margin-bottom: 10px;
  color: var(--color-text-secondary);
}

.sidebare-right .widget:last-child {
  margin-bottom: 0;
}

.sidebare-right .widget-title,
.sidebare-right .widgettitle {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebare-right .widget a {
  color: var(--color-link);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.15s ease;
}

.sidebare-right .widget a:hover {
  color: #7fcfff;
}

.sidebare-right .widget ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebare-right .widget ul li {
  padding: 5px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 13px;
}

.sidebare-right .widget ul li:last-child {
  border-bottom: none;
}

.sidebare-right .widget p {
  font-size: 13px;
  line-height: 1.5;
  margin: 0 0 8px;
}

.sidebare-right .widget p:last-child {
  margin-bottom: 0;
}

.sidebare-right .widget select {
  width: 100%;
  padding: 6px 8px;
  background: var(--color-surface);
  color: #fff;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  font-size: 13px;
}

.sidebare-right .widget input[type="search"],
.sidebare-right .widget input[type="text"] {
  width: 100%;
  padding: 8px 10px;
  background: var(--color-surface);
  color: #fff;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  font-size: 13px;
  font-family: var(--font-family);
}

.sidebare-left .widget select {
  width: 100%;
  padding: 6px 8px;
  background: var(--color-surface);
  color: #fff;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  font-size: 13px;
}

.sidebare-left .widget input[type="search"],
.sidebare-left .widget input[type="text"] {
  width: 100%;
  padding: 8px 10px;
  background: var(--color-surface);
  color: #fff;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  font-size: 13px;
  font-family: var(--font-family);
}

/* Widget search form */
.widget .search-form {
  display: flex;
  gap: 6px;
}

.widget .search-form .search-field {
  flex: 1;
}

.widget .search-form .search-submit {
  background: linear-gradient(70deg, var(--color-green-start) -8%, var(--color-green-end) 96%);
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 8px 12px;
  font-weight: 700;
  cursor: pointer;
  font-size: 13px;
  font-family: var(--font-family);
  transition: filter 0.15s ease;
}

.widget .search-form .search-submit:hover {
  filter: brightness(1.12);
}

/* Widget calendar */
.widget_calendar table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.widget_calendar th,
.widget_calendar td {
  text-align: center;
  padding: 4px;
}

.widget_calendar th {
  color: var(--color-text-muted);
  font-weight: 700;
}

.widget_calendar td a {
  font-weight: 700;
}

/* Widget tag cloud */
.widget .tagcloud a {
  display: inline-block;
  padding: 4px 8px;
  margin: 0 4px 4px 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  font-size: 12px !important;
  transition: background 0.15s ease;
}

.widget .tagcloud a:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* Left sidebar accordion */
.sidebare-left__titlesub {
  background: var(--color-surface-alt);
  padding: 8px 10px;
  font-size: 13px;
  color: var(--color-text-muted);
}

.sidebare-left__acardion {
  background: var(--color-surface-alt);
}

.ac {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ac-input {
  display: none;
}

.ac-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.ac-label:hover {
  background: rgba(255, 255, 255, 0.05);
}

.ac-label .ico__svg {
  flex-shrink: 0;
}

.ac-text {
  display: none;
  padding-left: 10px;
}

.ac-input:checked ~ .ac-text {
  display: block;
}

.ac-sub {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.ac-sub .ac-label {
  font-size: 13px;
  padding: 8px 10px;
}

.ac-sub .ac-label img {
  width: 16px;
  height: 16px;
  border-radius: 2px;
}

.ac-sub-text {
  display: none;
  padding-left: 15px;
}

.ac-input:checked ~ .ac-sub-text {
  display: block;
}

.ac-sub-text-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 10px;
  font-size: 12px;
  color: var(--color-text-secondary);
}

.ac-sub-text-item img {
  width: 14px;
  height: 14px;
  border-radius: 2px;
  margin-right: 5px;
}

.ac-subnum {
  color: var(--color-text-muted);
  font-size: 11px;
}

/* ==========================================================================
   FAQ Accordion
   ========================================================================== */

.faq-blocks {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 0 0 1.25rem;
}

.faq-block {
  background: var(--color-surface-deep);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-block:hover {
  border-color: rgba(83, 157, 237, 0.35);
}

.faq-block.is-open {
  border-color: var(--color-border-blue);
}

.faq-block__heading {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 600;
}

.faq-block__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1rem 1.1rem;
  border: none;
  background: transparent;
  color: #e8edf5;
  font: inherit;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.faq-block__trigger:hover {
  background: rgba(83, 157, 237, 0.1);
  color: #fff;
}

.faq-block__qtext {
  flex: 1;
  min-width: 0;
}

.faq-block__trigger::after {
  content: "";
  flex-shrink: 0;
  width: 0.5rem;
  height: 0.5rem;
  margin-top: -0.2rem;
  border-right: 2px solid rgba(127, 207, 255, 0.85);
  border-bottom: 2px solid rgba(127, 207, 255, 0.85);
  transform: rotate(45deg);
  transition: transform 0.3s ease;
}

.faq-block.is-open .faq-block__trigger::after {
  transform: rotate(-135deg);
  margin-top: 0.15rem;
}

.faq-block__panel {
  display: grid;
  grid-template-rows: minmax(0, 0fr);
  transition: grid-template-rows 0.35s ease;
  overflow: hidden;
  min-height: 0;
}

.faq-block.is-open .faq-block__panel {
  grid-template-rows: minmax(0, 1fr);
}

.faq-block__inner {
  overflow: hidden;
  min-height: 0;
  max-height: 100%;
  padding: 0 1.1rem 0;
  border-top: none;
}

.faq-block.is-open .faq-block__inner {
  padding: 0.85rem 1.1rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.faq-block__inner p {
  color: var(--color-text-secondary);
  margin-top: 0.85rem;
}

.faq-block__inner p:first-child {
  margin-top: 0;
}

/* ==========================================================================
   Blog Cards / Post List
   ========================================================================== */

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 1.25rem;
  margin: 0 0 2rem;
}

@media (max-width: 964px) {
  .posts-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .posts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .posts-grid {
    grid-template-columns: 1fr;
  }
}

.post-card {
  background: var(--color-surface-deep);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  border-color: rgba(83, 157, 237, 0.35);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  transform: translateY(-3px);
}

.post-card__thumbnail {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0f1526;
}

.post-card__thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  margin: 0;
  border-radius: 0;
}

.post-card__body {
  padding: 1rem 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-card__meta {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.post-card__meta a {
  color: var(--color-link);
  font-weight: 500;
}

.post-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 0.6rem;
}

.post-card__title a {
  color: #fff;
  transition: color 0.15s ease;
}

.post-card__title a:hover {
  color: var(--color-link);
}

.post-card__excerpt {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--color-text-secondary);
  margin: 0;
  flex: 1;
}

.post-card__readmore,
.post-card__readmore:visited,
.post-card__readmore:link {
  margin-top: 1rem;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.2rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff !important;
  background: linear-gradient(70deg, var(--color-green-start) -8%, var(--color-green-end) 96%);
  border-radius: 6px;
  text-decoration: none !important;
  transition: filter 0.2s ease;
}

.post-card__readmore:hover,
.post-card__readmore:focus {
  filter: brightness(1.1);
  color: #fff !important;
  text-decoration: none !important;
}

/* ==========================================================================
   Single Post
   ========================================================================== */

.entry-meta {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.entry-meta a {
  color: var(--color-link);
  font-weight: 500;
}

.entry-meta .sep {
  color: rgba(255, 255, 255, 0.25);
}

.entry-featured-image {
  margin: 0 auto 1.5rem;
  max-width: 900px;
  text-align: center;
}

.entry-featured-image__img,
.entry-featured-image img {
  display: block;
  margin: 0 auto;
  width: auto;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

.entry-thumbnail {
  margin: 0 0 1.5rem;
  border-radius: 12px;
  overflow: hidden;
}

.entry-thumbnail img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0;
  border-radius: 0;
}

.entry-content {
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text-secondary);
}

.entry-content p {
  margin: 0 0 1.25rem;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  color: #fff;
}

.entry-content a {
  color: var(--color-link);
}

.entry-content a:hover {
  color: var(--color-link-hover);
  text-decoration: underline;
}

.entry-content img {
  border-radius: 8px;
}

.entry-content blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--color-border-blue);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--color-text-secondary);
}

.entry-tags {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.entry-tags span {
  font-weight: 600;
  color: var(--color-text-muted);
}

.entry-tags a {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  font-size: 0.8125rem;
  color: var(--color-link);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.entry-tags a:hover {
  background: rgba(83, 157, 237, 0.15);
  border-color: var(--color-border-blue);
  text-decoration: none;
}

/* Post Author Box */
.post-author-box {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-top: 2rem;
  padding: 1.25rem;
  background: var(--color-surface-deep);
  border: 1px solid var(--color-border);
  border-radius: 12px;
}

.post-author-box__avatar {
  flex-shrink: 0;
}

.post-author-box__avatar img,
.post-author-box__avatar .avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid var(--color-border-blue);
  display: block;
}

.post-author-box__info {
  flex: 1;
  min-width: 0;
}

.post-author-box__label {
  display: block;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.2rem;
}

.post-author-box__name-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.post-author-box__name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  transition: color 0.15s ease;
}

.post-author-box__name:hover {
  color: var(--color-link);
  text-decoration: none;
}

.post-author-box__linkedin {
  display: inline-flex;
  align-items: center;
  color: #0a66c2;
  transition: color 0.15s ease, transform 0.15s ease;
}

.post-author-box__linkedin:hover {
  color: #004182;
  transform: scale(1.1);
  text-decoration: none;
}

.post-author-box__bio {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--color-text-secondary);
  margin: 0.4rem 0 0;
}

@media (max-width: 480px) {
  .post-author-box {
    flex-direction: column;
    text-align: center;
  }
}

/* ==========================================================================
   Author Page
   ========================================================================== */

.author-header {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 1.5rem;
  margin-bottom: 2rem;
  background: var(--color-surface-deep);
  border: 1px solid var(--color-border);
  border-radius: 12px;
}

.author-header .avatar {
  border-radius: 50%;
  flex-shrink: 0;
  border: 3px solid var(--color-border-blue);
}

.author-header__info {
  flex: 1;
  min-width: 0;
}

.author-header__name-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}

.author-header__name {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  color: #fff;
}

.author-header__linkedin {
  display: inline-flex;
  align-items: center;
  color: #0a66c2;
  transition: color 0.15s ease, transform 0.15s ease;
}

.author-header__linkedin:hover {
  color: #004182;
  transform: scale(1.1);
  text-decoration: none;
}

.author-header__bio {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--color-text-secondary);
  margin: 0;
}

.author-header__posts-count {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

@media (max-width: 600px) {
  .author-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* ==========================================================================
   Pagination
   ========================================================================== */

.navigation.pagination {
  margin: 2rem 0;
  text-align: center;
}

.navigation.pagination .nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.navigation.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.75rem;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  background: var(--color-surface-deep);
  border: 1px solid var(--color-border);
  transition: all 0.2s ease;
  text-decoration: none;
}

.navigation.pagination .page-numbers:hover {
  border-color: var(--color-border-blue);
  color: #fff;
  background: rgba(83, 157, 237, 0.15);
}

.navigation.pagination .page-numbers.current {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.navigation.pagination .page-numbers.dots {
  border: none;
  background: transparent;
  cursor: default;
  color: var(--color-text-muted);
}

.navigation.pagination .page-numbers.prev,
.navigation.pagination .page-numbers.next {
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 0.8125rem;
}

/* ==========================================================================
   Post Navigation (Single)
   ========================================================================== */

.post-navigation {
  margin: 2rem 0;
  padding: 1.5rem 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.post-navigation .nav-links {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
}

@media (max-width: 600px) {
  .post-navigation .nav-links {
    flex-direction: column;
  }
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
  flex: 1;
  min-width: 0;
}

.post-navigation .nav-next {
  text-align: right;
}

.post-navigation a {
  color: var(--color-text-secondary);
  display: block;
  transition: color 0.15s ease;
}

.post-navigation a:hover {
  color: #fff;
  text-decoration: none;
}

.post-navigation .nav-subtitle {
  display: block;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.post-navigation .nav-title {
  font-weight: 600;
  font-size: 0.9375rem;
}

/* ==========================================================================
   Archive Description
   ========================================================================== */

.archive-description {
  margin-bottom: 1.5rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--color-text-secondary);
}

/* ==========================================================================
   Comments
   ========================================================================== */

.comments-area {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

.comments-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 1.5rem;
  color: #fff;
}

.comment-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.comment-list .comment {
  margin-bottom: 1.5rem;
  padding: 1rem 1.25rem;
  background: var(--color-surface-deep);
  border: 1px solid var(--color-border);
  border-radius: 12px;
}

.comment-list .comment .children {
  list-style: none;
  margin: 1rem 0 0 1.5rem;
  padding: 0;
}

.comment-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.comment-meta .avatar {
  border-radius: 50%;
  flex-shrink: 0;
}

.comment-author {
  font-weight: 700;
  color: #fff;
}

.comment-date {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

.comment-content {
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.comment-content p {
  margin: 0 0 0.5rem;
}

.comment-reply-link {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-link);
  text-transform: uppercase;
}

/* Comment Form */
.comment-respond {
  margin-top: 2rem;
}

.comment-reply-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 1rem;
  color: #fff;
}

.comment-form label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  margin-bottom: 0.35rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  color: #fff;
  font-family: var(--font-family);
  font-size: 0.9375rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  margin-bottom: 1rem;
}

.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: var(--color-border-blue);
  box-shadow: 0 0 0 3px rgba(83, 157, 237, 0.15);
}

.comment-form textarea {
  min-height: 120px;
  resize: vertical;
}

.comment-form .form-submit input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2rem;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(70deg, var(--color-green-start) -8%, var(--color-green-end) 96%);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: filter 0.2s ease, transform 0.2s ease;
}

.comment-form .form-submit input[type="submit"]:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

/* ==========================================================================
   Search
   ========================================================================== */

.search-form-wrapper {
  margin-bottom: 2rem;
}

.search-form {
  display: flex;
  gap: 0.5rem;
  max-width: 500px;
}

.search-form .search-field {
  flex: 1;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  color: #fff;
  font-family: var(--font-family);
  font-size: 0.9375rem;
}

.search-form .search-field:focus {
  outline: none;
  border-color: var(--color-border-blue);
}

.search-form .search-submit {
  padding: 0.75rem 1.5rem;
  background: linear-gradient(70deg, var(--color-green-start) -8%, var(--color-green-end) 96%);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
  font-size: 0.875rem;
}

/* ==========================================================================
   404 Page
   ========================================================================== */

.error-404-section {
  text-align: center;
  padding: 3rem 1rem;
}

.error-404__title {
  font-size: 5rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.1);
  line-height: 1;
  margin: 0 0 1rem;
}

.error-404__text {
  font-size: 1.125rem;
  color: var(--color-text-secondary);
  margin: 0 0 2rem;
}

.error-404__cta,
.error-404__cta:visited,
.error-404__cta:link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2.25rem;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff !important;
  text-decoration: none;
  border-radius: var(--radius);
  background-image: linear-gradient(70deg, var(--color-green-start) -8%, var(--color-green-end) 96%);
  box-shadow: 0 4px 18px rgba(8, 158, 78, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.error-404__cta:hover,
.error-404__cta:focus,
.error-404__cta:active {
  filter: brightness(1.06);
  box-shadow: 0 6px 24px rgba(8, 158, 78, 0.55);
  color: #fff !important;
  text-decoration: none !important;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  background: var(--color-bg);
  padding: 40px 0 20px;
}

.footer__top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  background: var(--color-bg);
}

.footer__logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
}

.footer__logo img {
  width: 70px;
  margin-right: 15px;
}

.footer__line {
  width: 100%;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.2);
}

.footer__topcol {
  width: 100%;
  padding: 25px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@media (max-width: 768px) {
  .footer__topcol {
    flex-direction: column;
  }
}

.social {
  display: flex;
  align-items: center;
  margin-right: 10px;
  padding-left: 0;
  list-style: none;
}

.social__item {
  margin-right: 10px;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease-out;
}

.social__item:hover {
  transform: scale(1.1);
}

.social__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
}

.social__link img {
  width: 21px;
  height: 21px;
}

.bg-tg { background: linear-gradient(240.2deg, #0fb1d6 0%, #08c 61.34%); }
.bg-you { background: linear-gradient(135deg, #ff4f4f 0%, #f00 100%); }
.bg-vk { background: linear-gradient(108.65deg, #91b8ef 2.63%, #4288ed 101.05%); }
.bg-inst { background: linear-gradient(214.99deg, #7e2bf4 7.65%, #ed146e 51.93%, #ffc90c 95.29%); }

.sports {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 700px;
  list-style: none;
  margin: 0;
  padding: 10px 0 0;
  flex-wrap: wrap;
  gap: 8px 0;
}

@media (max-width: 768px) {
  .sports {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start;
    gap: 0;
    max-width: none;
    scrollbar-width: none;
  }

  .sports::-webkit-scrollbar {
    display: none;
  }

  .sports__item {
    flex-shrink: 0;
  }
}

.sports__item {
  margin-right: 10px;
}

.sports__item:hover {
  transform: scale(1.1);
  cursor: pointer;
}

.sports__item img {
  object-fit: contain;
  height: 25px;
}

.pay {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 30px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
}

@media (max-width: 768px) {
  .pay {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start;
    gap: 8px;
    padding: 20px 0;
    scrollbar-width: none;
  }

  .pay::-webkit-scrollbar {
    display: none;
  }

  .pay__item {
    flex-shrink: 0;
  }
}

.pay__item {
  background-color: var(--color-bg);
  opacity: 0.4;
  margin-right: 5px;
  cursor: pointer;
}

.pay__item:hover {
  opacity: 1;
}

.pay__item img {
  height: 19px;
}

.footer__bototm {
  display: block;
  margin: 15px 0 5px;
  width: 100%;
}

.footer__text {
  background: var(--color-surface-alt);
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

.footer__cont {
  padding: 20px 24px;
}

.footer__cont p:first-child {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__text p {
  color: rgba(190, 210, 228, 0.85);
  font-size: 13px;
  line-height: 1.65;
  margin-bottom: 0;
}

.footer__text p a {
  color: var(--color-link);
  font-size: 13px;
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer__text p a:hover {
  color: #7fcfff;
}

@media (max-width: 768px) {
  .footer__cont {
    padding: 16px;
  }

  .footer__cont p:first-child {
    font-size: 13px;
  }
}

/* ==========================================================================
   CTA Bar (Fixed Bottom)
   ========================================================================== */

.content__action {
  padding: 0;
  background: linear-gradient(180deg, #0c1a3d 0%, #132e64 45%, #0e2452 100%);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -6px 28px rgba(0, 0, 0, 0.4);
  width: 100%;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: block;
  z-index: 100;
  backdrop-filter: blur(8px);
  transform: translate3d(0, 100%, 0);
  pointer-events: none;
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.content__action.content__action--visible {
  transform: translate3d(0, 0, 0);
  pointer-events: auto;
}

.action-relative {
  position: relative;
  padding: 14px 0 16px;
}

.content__action__wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1200px;
  padding: 0 30px;
  margin: 0 auto;
}

.content__action__left {
  display: flex;
  align-items: center;
  margin-right: 10px;
  min-width: 0;
}

.content__action__left__wrap {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  min-width: 0;
}

.content__action__logo-col picture {
  max-width: 46px;
  width: 100%;
  flex-shrink: 0;
}

.content__action__logo-col picture img {
  width: 46px;
  height: auto;
  display: block;
  border-radius: var(--radius);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  margin: 0;
}

.content__action__brand strong {
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  color: #fff;
  text-transform: uppercase;
}

.content__rating__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem 0.45rem;
  padding: 0.22rem 0.5rem 0.26rem;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.04) 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
}

.content__rating__score-value {
  font-size: 1.02rem;
  font-weight: 800;
  background: linear-gradient(180deg, #fef9c3 0%, #facc15 40%, #ca8a04 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.content__rating__score-out {
  font-size: 0.62rem;
  font-weight: 600;
  color: rgba(226, 232, 240, 0.5);
}

.content__rating__stars {
  display: flex;
  align-items: center;
  gap: 1px;
}

.content__rating__stars img {
  width: 11px;
  height: auto;
  display: block;
  filter: drop-shadow(0 0 4px rgba(250, 204, 21, 0.85));
  margin: 0;
}

.content__action__btn {
  padding: 10px 22px;
  background: linear-gradient(180deg, #fde047 0%, #F2B707 45%, #ca8a04 100%);
  color: #1a1a1a;
  border-radius: var(--radius);
  text-align: center;
  text-transform: uppercase;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 14px rgba(242, 183, 7, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.content__action__btn:hover {
  filter: brightness(1.05);
  box-shadow: 0 6px 18px rgba(242, 183, 7, 0.55);
  transform: translateY(-1px);
  color: #1a1a1a;
  text-decoration: none;
}

.content__action__descr {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.action__descr__text:first-child {
  display: inline-block;
  width: fit-content;
  padding: 0.35rem 0.65rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  font-weight: 800;
  color: #0f172a;
  background: linear-gradient(135deg, #fef3c7 0%, #fcd34d 40%, #f59e0b 100%);
  border-radius: 6px;
}

.action__descr__text:nth-child(2) {
  font-size: 13px;
  line-height: 1.4;
  color: rgba(226, 232, 240, 0.88);
}

@media (max-width: 640px) {
  .content__action__wrap {
    padding: 0 12px;
    gap: 0.45rem;
  }

  .content__action__btn {
    padding: 8px 14px;
    font-size: 11px;
  }

  .action-relative {
    padding: 10px 0 12px;
  }
}

/* ==========================================================================
   Latest News Block (Gutenberg)
   ========================================================================== */

.wp-block-flavor1winza-latest-news {
  margin: 2rem 0;
}

/* Latest News Block — Grid */
.latest-news-grid {
  display: grid;
  gap: 1rem;
}

.latest-news-cols-2 { grid-template-columns: repeat(2, 1fr); }
.latest-news-cols-3 { grid-template-columns: repeat(3, 1fr); }
.latest-news-cols-4 { grid-template-columns: repeat(4, 1fr); }
.latest-news-cols-5 { grid-template-columns: repeat(5, 1fr); }

@media (max-width: 964px) {
  .latest-news-cols-4,
  .latest-news-cols-5 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 700px) {
  .latest-news-cols-3,
  .latest-news-cols-4,
  .latest-news-cols-5 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .latest-news-grid[class*="latest-news-cols-"] {
    grid-template-columns: 1fr;
  }
}

/* Latest News Block — Card */
.latest-news-card {
  display: flex;
  flex-direction: column;
  background: var(--color-surface-deep);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.latest-news-card:hover {
  border-color: rgba(83, 157, 237, 0.4);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.latest-news-card__thumbnail {
  display: block;
  position: relative;
  width: 100%;
  padding-top: 75%;
  overflow: hidden;
}

.latest-news-card__thumbnail img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  margin: 0;
  transition: transform 0.25s ease;
}

.latest-news-card__thumbnail:hover img {
  transform: scale(1.03);
}

.latest-news-card__body {
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.latest-news-card__title {
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 0.4rem;
}

.latest-news-card__title a {
  color: #fff;
  text-decoration: none;
  transition: color 0.15s ease;
}

.latest-news-card__title a:hover {
  color: var(--color-link);
  text-decoration: none;
}

.latest-news-card__excerpt {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--color-text-secondary);
  margin: 0 0 0.5rem;
}

.latest-news-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.latest-news-card__author {
  font-weight: 600;
  color: var(--color-text-secondary);
}

.latest-news-card__date {
  color: var(--color-text-muted);
}

/* Latest News Block — Pagination */
.latest-news-pagination {
  margin-top: 1.5rem;
}

.latest-news-pagination ul {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.latest-news-pagination li {
  margin: 0;
}

.latest-news-pagination a,
.latest-news-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 0.6rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.latest-news-pagination a {
  color: var(--color-text-secondary);
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
}

.latest-news-pagination a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  text-decoration: none;
}

.latest-news-pagination .current {
  background: linear-gradient(70deg, var(--color-green-start) -8%, var(--color-green-end) 96%);
  color: #fff;
  border: none;
}

/* ==========================================================================
   Gutenberg Block Alignment
   ========================================================================== */

.alignwide {
  margin-left: -2rem;
  margin-right: -2rem;
  max-width: calc(100% + 4rem);
}

.alignfull {
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  max-width: 100vw;
  width: 100vw;
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   WP Block Styles (Gutenberg defaults)
   ========================================================================== */

.wp-block-image figcaption {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  text-align: center;
  margin-top: 0.5rem;
}

.wp-block-quote {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--color-border-blue);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 0 8px 8px 0;
}

.wp-block-quote p {
  font-style: italic;
  color: var(--color-text-secondary);
}

.wp-block-quote cite {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  font-style: normal;
}

.wp-block-separator {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 2rem 0;
}

.wp-block-code {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 1rem;
  overflow-x: auto;
}

.wp-block-code code {
  color: #e8edf5;
  font-family: "Fira Code", "Consolas", monospace;
  font-size: 0.875rem;
}

.wp-block-preformatted {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 1rem;
  color: #e8edf5;
  overflow-x: auto;
}

/* ==========================================================================
   No Results
   ========================================================================== */

.no-results {
  text-align: center;
  padding: 3rem 1rem;
}

.no-results__title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 1rem;
  color: #fff;
}

.no-results__text {
  font-size: 1rem;
  color: var(--color-text-secondary);
  margin: 0 0 1.5rem;
}

/* ==========================================================================
   Accessibility
   ========================================================================== */

.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 {
  background-color: var(--color-surface);
  border-radius: 3px;
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
  clip: auto !important;
  clip-path: none;
  color: #fff;
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}
