/* SRIYAPAI SCIENCE WEEK — public site (poster-inspired) */

.rbx-page {
  --sw-yellow: #ffd200;
  --sw-gold: #f5b800;
  --sw-orange: #ff7a00;
  --sw-red: #c62828;
  --sw-red-deep: #8b0000;
  --sw-ink: #1a0a0a;
  --sw-white: #ffffff;
  --sw-surface: #fff8e7;
  --sw-glow: rgba(255, 210, 0, 0.4);
  /* legacy aliases used by templates */
  --rbx-red: var(--sw-red);
  --rbx-red-dark: var(--sw-red-deep);
  --rbx-yellow: var(--sw-yellow);
  --rbx-yellow-light: var(--sw-surface);
  --rbx-blue: #b71c1c;
  --rbx-green: #a67c00;
  --rbx-orange: var(--sw-orange);
  --rbx-ink: var(--sw-ink);
  --rbx-border: 2px solid rgba(139, 0, 0, 0.35);
  --rbx-shadow: 0 10px 28px rgba(139, 0, 0, 0.18);
  --rbx-shadow-lg: 0 16px 40px rgba(139, 0, 0, 0.22);
  --rbx-shadow-red: 0 12px 32px rgba(198, 40, 40, 0.25);

  font-family: 'Sarabun', sans-serif;
  color: var(--sw-ink);
  min-height: 100vh;
  position: relative;
  background-color: var(--sw-surface);
  background-image:
    radial-gradient(ellipse 90% 55% at 50% -10%, rgba(255, 210, 0, 0.55), transparent 60%),
    radial-gradient(ellipse 70% 40% at 100% 20%, rgba(255, 122, 0, 0.18), transparent 50%),
    radial-gradient(ellipse 60% 35% at 0% 40%, rgba(198, 40, 40, 0.12), transparent 55%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='104' viewBox='0 0 120 104'%3E%3Cg fill='none' stroke='%238b0000' stroke-opacity='0.06' stroke-width='1'%3E%3Cpath d='M60 2l28 16v32L60 66 32 50V18z'/%3E%3Cpath d='M60 38l28 16v32L60 102 32 86V54z'/%3E%3Cpath d='M32 18L4 34v32l28 16 28-16V34z'/%3E%3C/g%3E%3C/svg%3E");
  background-attachment: fixed;
}

.rbx-page h1,
.rbx-page h2,
.rbx-page h3,
.rbx-page .rbx-brand-title,
.rbx-page .rbx-section-title,
.rbx-page .rbx-hero-copy h2,
.rbx-page .rbx-count-num,
.rbx-page .rbx-activity-count-num {
  font-family: 'Prompt', 'Sarabun', sans-serif;
}

/* ---- ambient particles ---- */
.rbx-float-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  opacity: 0.55;
}

.rbx-particle {
  position: absolute;
  border: 1.5px solid rgba(255, 210, 0, 0.65);
  background: rgba(198, 40, 40, 0.35);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  animation-name: rbx-float;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  will-change: transform;
  box-shadow: none;
  border-radius: 0;
}

.rbx-particle--red { background: rgba(198, 40, 40, 0.45); border-color: rgba(255, 210, 0, 0.7); }
.rbx-particle--orange { background: rgba(255, 122, 0, 0.4); border-color: rgba(255, 210, 0, 0.55); }
.rbx-particle--white { background: rgba(255, 255, 255, 0.35); border-color: rgba(255, 210, 0, 0.4); }
.rbx-particle--yellow { background: rgba(255, 210, 0, 0.45); border-color: rgba(139, 0, 0, 0.35); }
.rbx-particle--outline { background: transparent; border-color: rgba(139, 0, 0, 0.25); }

@keyframes rbx-float {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); opacity: 0.7; }
  50% { transform: translate3d(0, -18px, 0) rotate(12deg); opacity: 1; }
}

@keyframes sw-fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .rbx-float-layer { display: none !important; }
  .rbx-hero-copy,
  .rbx-poster-wrap { animation: none !important; }
}

/* ---- header ---- */
.rbx-header {
  background: linear-gradient(180deg, #9b0000 0%, var(--sw-red-deep) 100%);
  border-bottom: 3px solid var(--sw-gold);
  box-shadow: 0 8px 24px rgba(80, 0, 0, 0.35);
  position: sticky;
  top: 0;
  z-index: 50;
  isolation: isolate;
  color: #fff;
}

.rbx-header-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .rbx-header-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.rbx-header img {
  border-color: var(--sw-gold) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35) !important;
}

.rbx-brand-title {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--sw-yellow);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.35);
}

.rbx-brand-sub {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.88);
}

.rbx-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: center;
}

.rbx-nav-btn {
  border: 1.5px solid rgba(255, 210, 0, 0.45);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.2);
  box-shadow: none;
  transition: background 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
  cursor: pointer;
  color: #fff;
  text-decoration: none;
  display: inline-block;
}

.rbx-nav-btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 210, 0, 0.18);
  border-color: var(--sw-yellow);
  box-shadow: none;
}

.rbx-nav-btn.is-active {
  background: var(--sw-yellow);
  color: var(--sw-red-deep);
  border-color: var(--sw-gold);
}

.rbx-nav-btn.is-login {
  background: linear-gradient(135deg, var(--sw-orange), var(--sw-red));
  border-color: var(--sw-gold);
  color: #fff;
}

.rbx-main {
  max-width: 72rem;
  margin: 0 auto;
  padding: 1.5rem 1rem 2.5rem;
  position: relative;
  z-index: 1;
}

/* ---- hero ---- */
.rbx-hero {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 1.75rem;
  padding: 1.25rem;
  border-radius: 1.25rem;
  background: linear-gradient(135deg, rgba(255, 210, 0, 0.55) 0%, rgba(255, 122, 0, 0.45) 45%, rgba(198, 40, 40, 0.55) 100%);
  border: 2px solid rgba(255, 210, 0, 0.65);
  box-shadow: var(--rbx-shadow-lg);
  overflow: hidden;
  position: relative;
}

.rbx-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.25), transparent 40%),
    radial-gradient(circle at 20% 80%, rgba(139, 0, 0, 0.2), transparent 45%);
  pointer-events: none;
}

@media (min-width: 768px) {
  .rbx-hero {
    grid-template-columns: 1.05fr 0.95fr;
    padding: 1.75rem;
  }
}

.rbx-hero-copy,
.rbx-poster-wrap {
  position: relative;
  z-index: 1;
}

.rbx-hero-copy {
  animation: sw-fade-up 0.55s ease both;
}

.rbx-poster-wrap {
  border: 3px solid var(--sw-gold);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(80, 0, 0, 0.35);
  background: #1a0a0a;
  animation: sw-fade-up 0.65s ease 0.08s both;
}

.rbx-poster {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.rbx-hero-copy h2 {
  font-size: clamp(1.55rem, 4vw, 2.55rem);
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
  text-shadow:
    0 1px 0 #8b0000,
    2px 3px 0 rgba(0, 0, 0, 0.35),
    0 0 24px rgba(255, 210, 0, 0.35);
  margin-bottom: 0.65rem;
  font-style: italic;
}

.rbx-hero-tag {
  display: inline-block;
  background: linear-gradient(90deg, var(--sw-red-deep), var(--sw-red));
  color: var(--sw-yellow);
  font-family: 'Prompt', sans-serif;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 6px;
  border: 1px solid var(--sw-gold);
  margin-bottom: 0.75rem;
  transform: skewX(-6deg);
}

.rbx-hero-tag > span {
  display: inline-block;
  transform: skewX(6deg);
}

.rbx-hero-kicker {
  color: rgba(255, 255, 255, 0.95);
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.rbx-hero-tagline {
  margin: 0.75rem 0 1rem;
  font-family: 'Prompt', sans-serif;
  font-size: clamp(0.75rem, 2vw, 0.9rem);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sw-yellow);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.rbx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 2px solid var(--sw-gold);
  border-radius: 999px;
  padding: 0.7rem 1.35rem;
  font-family: 'Prompt', 'Sarabun', sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  box-shadow: 0 8px 20px rgba(80, 0, 0, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
  text-decoration: none;
  cursor: pointer;
}

.rbx-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(80, 0, 0, 0.3);
  filter: brightness(1.05);
}

.rbx-btn-primary {
  background: linear-gradient(135deg, var(--sw-red) 0%, var(--sw-red-deep) 100%);
  color: #fff;
}

.rbx-btn-secondary {
  background: rgba(255, 255, 255, 0.92);
  color: var(--sw-red-deep);
}

.rbx-btn-blue {
  background: linear-gradient(135deg, var(--sw-orange), #e65100);
  color: #fff;
}

/* ---- info strip ---- */
.rbx-info-strip {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .rbx-info-strip { grid-template-columns: repeat(3, 1fr); }
}

.rbx-info-card {
  background: linear-gradient(145deg, var(--sw-red-deep), #a00000);
  color: #fff;
  border: 2px solid var(--sw-gold);
  border-radius: 1rem;
  padding: 1rem 1.1rem;
  box-shadow: var(--rbx-shadow);
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.rbx-info-card i,
.rbx-info-card svg {
  flex-shrink: 0;
  color: var(--sw-yellow);
}

.rbx-info-card strong {
  display: block;
  font-size: 0.75rem;
  color: var(--sw-yellow);
  margin-bottom: 0.15rem;
  font-family: 'Prompt', sans-serif;
}

/* ---- countdown ---- */
.rbx-countdown-wrap { margin-bottom: 1.75rem; }

.rbx-section-title {
  font-size: 1.15rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 0.9rem;
  letter-spacing: 0.04em;
  color: var(--sw-red-deep);
  position: relative;
  display: inline-block;
  width: 100%;
}

.rbx-section-title::after {
  content: '';
  display: block;
  width: 4.5rem;
  height: 4px;
  margin: 0.45rem auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--sw-yellow), var(--sw-orange), var(--sw-red));
}

.rbx-countdown {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .rbx-countdown { grid-template-columns: repeat(4, 1fr); }
}

.rbx-count-box {
  border: 2px solid var(--sw-gold);
  border-radius: 1rem;
  padding: 0.9rem 0.5rem;
  text-align: center;
  box-shadow: var(--rbx-shadow);
  background: linear-gradient(180deg, var(--sw-red) 0%, var(--sw-red-deep) 100%);
  color: #fff;
}

.rbx-count-box:nth-child(1),
.rbx-count-box:nth-child(2),
.rbx-count-box:nth-child(3),
.rbx-count-box:nth-child(4) {
  background: linear-gradient(180deg, var(--sw-red) 0%, var(--sw-red-deep) 100%);
  color: #fff;
}

.rbx-count-num {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  color: var(--sw-yellow);
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.25);
}

.rbx-count-label {
  font-size: 0.75rem;
  font-weight: 700;
  margin-top: 0.3rem;
  opacity: 0.95;
}

.rbx-slogan {
  background: linear-gradient(90deg, rgba(255, 210, 0, 0.35), rgba(255, 122, 0, 0.2));
  border: 2px solid rgba(198, 40, 40, 0.35);
  border-radius: 1rem;
  padding: 1.1rem 1.4rem;
  text-align: center;
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  font-weight: 800;
  font-family: 'Prompt', sans-serif;
  color: var(--sw-red-deep);
  box-shadow: var(--rbx-shadow-red);
  margin-bottom: 1.5rem;
}

/* ---- values hex row ---- */
.sw-values {
  margin: 0 0 2rem;
}

.sw-values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem 0.5rem;
  justify-items: center;
}

@media (min-width: 768px) {
  .sw-values-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 0.75rem;
  }
}

.sw-hex {
  width: 5.25rem;
  text-align: center;
  transition: transform 0.18s ease, filter 0.18s ease;
}

.sw-hex:hover {
  transform: translateY(-3px) scale(1.04);
  filter: drop-shadow(0 0 10px var(--sw-glow));
}

.sw-hex-shape {
  width: 3.75rem;
  height: 3.35rem;
  margin: 0 auto 0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--sw-red) 0%, var(--sw-red-deep) 100%);
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
  border: none;
  box-shadow: 0 0 0 2px var(--sw-gold);
  color: #fff;
}

.sw-hex-shape i,
.sw-hex-shape svg {
  width: 1.25rem;
  height: 1.25rem;
}

.sw-hex-label {
  font-family: 'Prompt', sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--sw-red-deep);
}

/* ---- featured activities ---- */
.sw-featured {
  margin-bottom: 2rem;
  padding: 1.25rem 1rem 1.5rem;
  border-radius: 1.25rem;
  background: linear-gradient(180deg, rgba(255, 210, 0, 0.2), rgba(255, 255, 255, 0.7));
  border: 2px solid rgba(198, 40, 40, 0.2);
  position: relative;
}

.sw-featured-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 1.5rem;
  margin-bottom: 1.25rem;
}

.sw-count-badge {
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 35% 30%, #fff59d, var(--sw-gold) 45%, #c79100 100%);
  border: 3px solid #fff;
  box-shadow:
    0 0 0 3px var(--sw-red),
    0 10px 28px rgba(198, 40, 40, 0.35),
    0 0 24px var(--sw-glow);
  flex-shrink: 0;
}

.rbx-activity-count-num,
.sw-count-badge-num {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  color: var(--sw-red-deep);
}

.sw-count-badge-label {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--sw-red-deep);
  text-transform: uppercase;
}

.sw-featured-title-wrap {
  text-align: center;
}

.sw-featured-title-wrap .rbx-section-title {
  margin-bottom: 0.25rem;
}

.sw-featured-title-wrap .rbx-section-title::after {
  margin-top: 0.35rem;
}

.sw-featured-sub {
  font-size: 0.85rem;
  color: #5c2b2b;
}

.sw-activity-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .sw-activity-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .sw-activity-grid { grid-template-columns: repeat(3, 1fr); }
}

.sw-activity-card {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  background: linear-gradient(135deg, var(--sw-red-deep), var(--sw-red));
  color: #fff;
  border: 2px solid var(--sw-gold);
  border-radius: 0.85rem;
  padding: 0.9rem 1rem;
  box-shadow: var(--rbx-shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  text-align: left;
  width: 100%;
  cursor: pointer;
}

.sw-activity-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--rbx-shadow-lg);
}

.sw-activity-num {
  flex-shrink: 0;
  width: 1.85rem;
  height: 1.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sw-yellow);
  color: var(--sw-red-deep);
  font-family: 'Prompt', sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  border-radius: 0.35rem;
  border: 1px solid #fff;
}

.sw-activity-body {
  min-width: 0;
  flex: 1;
}

.sw-activity-title {
  font-family: 'Prompt', sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.3;
  margin-bottom: 0.2rem;
}

.sw-activity-meta {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.85);
}

/* ---- highlight poster gallery ---- */
.sw-poster-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 768px) {
  .sw-poster-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.sw-poster-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 0;
  margin: 0;
  border: 2px solid var(--sw-gold);
  border-radius: 0.9rem;
  overflow: hidden;
  background: linear-gradient(160deg, var(--sw-red-deep), var(--sw-red));
  box-shadow: var(--rbx-shadow);
  cursor: zoom-in;
  text-align: left;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.sw-poster-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--rbx-shadow-lg);
}

.sw-poster-num {
  position: absolute;
  top: 0.55rem;
  left: 0.55rem;
  z-index: 2;
  width: 1.75rem;
  height: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sw-yellow);
  color: var(--sw-red-deep);
  font-family: 'Prompt', sans-serif;
  font-weight: 800;
  font-size: 0.9rem;
  border-radius: 0.35rem;
  border: 1px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.sw-poster-thumb {
  width: 100%;
  aspect-ratio: 1414 / 2000;
  object-fit: cover;
  object-position: center top;
  display: block;
  background: #2a0a0a;
}

.sw-poster-caption {
  display: block;
  padding: 0.55rem 0.65rem;
  font-family: 'Prompt', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.35;
  color: #fff;
  background: rgba(80, 0, 0, 0.55);
}

/* ---- lightbox ---- */
[x-cloak] { display: none !important; }

.sw-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(10, 0, 0, 0.88);
  backdrop-filter: blur(4px);
}

.sw-lightbox-figure {
  margin: 0;
  max-width: min(92vw, 720px);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
}

.sw-lightbox-img {
  max-width: 100%;
  max-height: calc(92vh - 3rem);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 0.5rem;
  border: 2px solid var(--sw-gold);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
  background: #111;
}

.sw-lightbox-caption {
  color: var(--sw-yellow);
  font-family: 'Prompt', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.sw-lightbox-close {
  position: absolute;
  top: 0.75rem;
  right: 0.85rem;
  width: 2.5rem;
  height: 2.5rem;
  border: 2px solid var(--sw-gold);
  border-radius: 999px;
  background: var(--sw-red-deep);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.sw-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.75rem;
  height: 2.75rem;
  border: 2px solid var(--sw-gold);
  border-radius: 999px;
  background: rgba(139, 0, 0, 0.85);
  color: var(--sw-yellow);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.sw-lightbox-prev { left: 0.6rem; }
.sw-lightbox-next { right: 0.6rem; }

@media (max-width: 640px) {
  .sw-lightbox-nav {
    width: 2.25rem;
    height: 2.25rem;
    font-size: 1.4rem;
  }
  .sw-lightbox-prev { left: 0.25rem; }
  .sw-lightbox-next { right: 0.25rem; }
}

/* ---- howto / activity cards (legacy class) ---- */
.rbx-activities {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr;
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .rbx-activities { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .rbx-activities { grid-template-columns: repeat(3, 1fr); }
  .rbx-activities .rbx-activity-card:last-child:nth-child(odd) { grid-column: span 2; }
}

.rbx-activity-card {
  background: rgba(255, 255, 255, 0.92);
  border: 2px solid rgba(198, 40, 40, 0.22);
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: var(--rbx-shadow);
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.rbx-activity-icon {
  width: 2.5rem;
  height: 2.5rem;
  border: 2px solid var(--sw-gold);
  border-radius: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--sw-yellow), var(--sw-orange));
  color: var(--sw-red-deep);
  flex-shrink: 0;
}

.rbx-howto { margin-top: 0.5rem; margin-bottom: 1.75rem; }

.rbx-howto .rbx-section-title,
.rbx-home-competitions .rbx-section-title,
.rbx-news-section .rbx-section-title {
  text-align: left;
}

.rbx-howto .rbx-section-title::after,
.rbx-home-competitions .rbx-section-title::after,
.rbx-news-section .rbx-section-title::after,
.rbx-tab-panel .rbx-section-title::after,
.rbx-tab-panel h2::after {
  margin-left: 0;
  margin-right: auto;
}

/* ---- news ---- */
.rbx-news-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .rbx-news-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .rbx-news-grid { grid-template-columns: repeat(3, 1fr); }
}

.rbx-news-card {
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid rgba(198, 40, 40, 0.18);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--rbx-shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.rbx-news-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--rbx-shadow-lg);
}

.rbx-news-img-wrap {
  position: relative;
  height: 11rem;
  overflow: hidden;
  border-bottom: 2px solid rgba(198, 40, 40, 0.15);
}

.rbx-news-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rbx-pin-badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: linear-gradient(135deg, var(--sw-red), var(--sw-red-deep));
  color: var(--sw-yellow);
  border: 1px solid var(--sw-gold);
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  font-size: 0.7rem;
  font-weight: 800;
}

.rbx-news-body { padding: 1rem; }

.rbx-news-title {
  font-family: 'Prompt', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.35rem;
  line-height: 1.35;
  color: var(--sw-red-deep);
}

.rbx-news-date {
  font-size: 0.8rem;
  color: #6b3a3a;
  margin-bottom: 0.5rem;
}

.rbx-news-excerpt {
  font-size: 0.875rem;
  color: #333;
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.rbx-link {
  color: var(--sw-red);
  font-weight: 800;
  font-size: 0.85rem;
  text-decoration: none;
}

.rbx-link:hover { text-decoration: underline; color: var(--sw-red-deep); }

/* ---- home competition list cards ---- */
.rbx-home-competitions .card,
.rbx-tab-panel .card {
  background: rgba(255, 255, 255, 0.95) !important;
  border: 2px solid rgba(198, 40, 40, 0.16);
  border-radius: 1rem !important;
  box-shadow: var(--rbx-shadow) !important;
}

.rbx-home-competitions .card:hover,
.rbx-tab-panel .card:hover {
  box-shadow: var(--rbx-shadow-lg) !important;
  border-color: rgba(198, 40, 40, 0.35);
}

/* ---- footer ---- */
.rbx-footer {
  background: linear-gradient(180deg, #a00000 0%, var(--sw-red-deep) 100%);
  color: #fff;
  border-top: 3px solid var(--sw-gold);
  padding: 2rem 1rem;
  position: relative;
  z-index: 1;
}

.rbx-footer-inner {
  max-width: 72rem;
  margin: 0 auto;
}

.rbx-footer-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .rbx-footer-grid { grid-template-columns: repeat(3, 1fr); }
}

.rbx-footer h3 {
  font-family: 'Prompt', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: var(--sw-yellow);
}

.rbx-footer-copy {
  border-top: 1px solid rgba(255, 210, 0, 0.3);
  margin-top: 1.5rem;
  padding-top: 1rem;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.9;
}

/* ---- tabs / lists (whole public site) ---- */
.rbx-tab-panel {
  background: rgba(255, 255, 255, 0.92);
  border: 2px solid rgba(198, 40, 40, 0.18);
  border-radius: 1.1rem;
  padding: 1.25rem;
  box-shadow: var(--rbx-shadow);
}

.rbx-tab-panel h2 {
  font-family: 'Prompt', sans-serif;
  color: var(--sw-red-deep) !important;
  border-color: var(--sw-orange) !important;
}

.rbx-tab-panel .text-primary { color: var(--sw-red) !important; }
.rbx-tab-panel .border-primary { border-color: var(--sw-orange) !important; }
.rbx-tab-panel .btn-primary,
.rbx-tab-panel .bg-primary { background-color: var(--sw-red) !important; }

.rbx-tab-panel select,
.rbx-tab-panel input {
  border-color: rgba(198, 40, 40, 0.25) !important;
}

.rbx-tab-panel select:focus,
.rbx-tab-panel input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 210, 0, 0.45);
  border-color: var(--sw-orange) !important;
}

.rbx-tab-panel table thead {
  background: linear-gradient(90deg, rgba(255, 210, 0, 0.35), rgba(255, 122, 0, 0.15)) !important;
}

.rbx-tab-panel .bg-primary,
.rbx-tab-panel span.bg-primary {
  background: linear-gradient(135deg, var(--sw-red), var(--sw-red-deep)) !important;
}

.rbx-loader {
  border-top-color: var(--sw-red);
  animation: rbx-spin 1s linear infinite;
}

@keyframes rbx-spin {
  to { transform: rotate(360deg); }
}

.rbx-empty {
  text-align: center;
  padding: 2.5rem 1rem;
  color: #6b3a3a;
}
