/* Local styles matching dark casino list + author/footer layout */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Roboto, "Helvetica Neue", Arial, sans-serif;
  background: #0b0c10;
  color: #e8e8ee;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: #c084fc;
  text-decoration: none;
}

a:hover {
  color: #e9d5ff;
}

img {
  max-width: 100%;
  height: auto;
  border: 0;
  vertical-align: middle;
}

.left {
  float: none;
}

.box-25,
.box-33,
.box-40,
.box-50,
.box-60,
.box-75,
.box-100 {
  width: auto;
  float: none;
}

.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

.fixed {
  position: fixed;
}

.text-center {
  text-align: center;
}

.space-box {
  min-height: 100vh;
  overflow: hidden;
}

/* Header */
.space-header-height {
  height: 72px;
}

.space-header-wrap,
.space-header {
  background: #00060a;
}

.space-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.space-header-ins,
.space-wrapper,
.space-page-wrapper,
.space-footer-ins {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.space-header-ins {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}

.space-header-logo,
.space-header-menu {
  display: flex;
  align-items: center;
}

.space-header-logo img {
  width: auto;
  height: 40px;
  object-fit: contain;
}

.space-header-search {
  position: static;
  color: rgba(255, 255, 255, 0.55);
  font-size: 18px;
  cursor: pointer;
}

.space-mobile-menu-icon {
  display: none;
}

.space-header-search-block,
.space-mobile-menu {
  display: none !important;
}

/* Page */
.space-page-section {
  padding: 28px 0 60px;
}

.space-page-content-wrap,
.space-page-content-box-wrap,
.space-page-content {
  width: 100%;
}

.space-page-content h1 {
  margin: 0 0 14px;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
  letter-spacing: -0.02em;
}

.space-page-content h2,
.space-page-content h3 {
  color: #fff;
  margin: 1.6em 0 0.7em;
  line-height: 1.3;
}

.space-page-content p,
.space-page-content li {
  color: #c5c5d0;
  font-size: 16px;
}

.space-page-content ul {
  padding-left: 1.2em;
}

.update-block {
  margin: 0 0 12px;
  color: #9a9aab;
  font-size: 14px;
}

.update-block p {
  margin: 0;
  color: inherit;
}

.author-block {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 28px;
  color: #b8b8c6;
  font-size: 14px;
}

.author-block img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.author-block a {
  color: #e8e8ee !important;
  font-weight: 500;
}

.author-block > a:hover {
  color: #fff !important;
}

/* Casino cards */
.space-shortcode-wrap {
  margin: 0 0 36px;
}

.space-organizations-7-archive-items {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.space-organizations-8-archive-item {
  width: 100%;
}

.space-organizations-8-archive-item-ins,
.space-organizations-8-archive-item-bg {
  width: 100%;
}

.space-organizations-8-archive-item-bg {
  display: grid;
  grid-template-columns: minmax(180px, 1.1fr) minmax(160px, 1.3fr) auto;
  align-items: center;
  gap: 16px 20px;
  background: #171821;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  padding: 16px 18px;
}

.space-organizations-8-archive-item-left,
.space-organizations-8-archive-item-central,
.space-organizations-8-archive-item-right {
  width: 100%;
}

.space-organizations-8-archive-item-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.space-organizations-8-archive-item-brand-logo,
.space-organizations-8-archive-item-brand-name {
  width: auto;
  text-align: left;
}

.space-organizations-8-archive-item-brand-logo-ins {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  overflow: hidden;
  background: #0f1016;
  display: flex;
  align-items: center;
  justify-content: center;
}

.space-organizations-8-archive-item-brand-logo-ins img {
  width: 72px;
  height: 72px;
  object-fit: cover;
}

.space-organizations-8-archive-item-brand-name-link a {
  color: #fff !important;
  font-size: 18px;
  font-weight: 700;
}

.space-organizations-8-archive-item-stars-rating {
  margin-top: 6px;
}

.star-rating {
  display: inline-flex;
  gap: 2px;
}

.star-rating .star {
  width: 14px;
  height: 14px;
  display: inline-block;
  background: #3a3a48;
  clip-path: polygon(
    50% 0%,
    61% 35%,
    98% 35%,
    68% 57%,
    79% 91%,
    50% 70%,
    21% 91%,
    32% 57%,
    2% 35%,
    39% 35%
  );
}

.star-rating .star-full,
.star-rating .star-half {
  background: #f5c518;
}

.space-organizations-8-archive-item-central {
  text-align: center;
}

.space-organizations-8-archive-item-terms span {
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
}

.space-organizations-8-archive-item-buttons,
.space-organizations-8-archive-item-buttons-right,
.space-organizations-8-archive-item-buttons-left {
  width: 100%;
}

.space-organizations-8-archive-item-buttons {
  display: flex;
  justify-content: flex-end;
}

.space-organizations-8-archive-item-button-two a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  padding: 14px 22px;
  border-radius: 10px;
  color: #fff !important;
  font-size: 15px;
  font-weight: 700;
  background: linear-gradient(135deg, #a855f7 0%, #7c3aed 55%, #6d28d9 100%);
  box-shadow: 0 0 18px rgba(168, 85, 247, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.space-organizations-8-archive-item-button-two a:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 24px rgba(168, 85, 247, 0.65);
  color: #fff !important;
}

/* Author card */
.space-page-content-author {
  width: 100%;
  max-width: 900px;
  margin: 48px auto 0;
  padding: 30px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
}

.space-page-content-author-wrapper {
  display: flex;
  align-items: center;
  gap: 28px;
  width: 100%;
}

.space-page-content-author-image img {
  display: block;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
}

.space-page-content-author-text {
  flex: 1;
  width: auto;
  padding: 0;
}

.space-page-content-author-text > h3 {
  margin: 0 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 700;
  color: #0b1324;
}

.space-page-content-author-description {
  margin: 0 0 24px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  line-height: 1.55;
  color: #909090;
}

.author-card__url {
  display: inline-block;
  border: 1px solid #d97559;
  padding: 10px 20px;
  border-radius: 4px;
  color: #d97559 !important;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.25s ease;
}

.author-card__url:hover {
  background: #d97559;
  color: #fff !important;
}

/* White band + footer */
.space-footer {
  margin-top: 0;
  background: #000;
}

.space-footer-top {
  display: none;
}

.space-footer-copy {
  padding: 36px 0 28px;
  background: #000;
}

.footer__logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 28px 36px;
  margin: 0 auto 28px;
  max-width: 900px;
  padding: 0 20px;
}

.footer__logos-item img {
  height: 42px;
  width: auto;
  object-fit: contain;
  filter: brightness(1.05);
}

.space-footer-copy .space-footer-ins {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.space-footer-copy-left {
  color: #6b6b78;
  font-size: 13px;
}

.space-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
}

.space-to-top a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #e24b4b;
  color: #fff !important;
  font-size: 20px;
  box-shadow: 0 6px 18px rgba(226, 75, 75, 0.4);
}

.space-to-top a:hover {
  background: #ff5c5c;
}

/* Hide WP template junk that leaks without WP JS */
.media-modal,
.media-frame,
script[type="text/html"] {
  display: none !important;
}

@media (max-width: 900px) {
  .space-organizations-8-archive-item-bg {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .space-organizations-8-archive-item-brand {
    justify-content: center;
  }

  .space-organizations-8-archive-item-buttons {
    justify-content: center;
  }

  .space-organizations-8-archive-item-button-two a {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .space-page-content-author-wrapper {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .space-page-content-author-text {
    width: 100%;
  }

  .space-footer-copy .space-footer-ins {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}
