﻿/* ============================================================
   FSCASINO.GR – Main Stylesheet
   Dark Theme | Responsive | Red Buttons | Blue Accents
   ============================================================ */

/* ────────────────────────────────────────────────────────────
   CSS CUSTOM PROPERTIES (Design Tokens)
   Define all colour, spacing and typography variables here so
   they can be changed globally from one place.
   ──────────────────────────────────────────────────────────── */
:root {
  /* Brand colours */
  --color-red:        #d40000;      /* Primary CTA / buttons */
  --color-red-hover:  #ff1a1a;      /* Button hover state */
  --color-blue:       #1a6fd4;      /* Accent colour (links, borders, highlights) */
  --color-blue-light: #3b8fef;      /* Lighter accent for hover states */

  /* Dark background palette */
  --bg-primary:       #0b0d14;      /* Page body background */
  --bg-secondary:     #13172a;      /* Cards, sections */
  --bg-tertiary:      #1c2138;      /* Nested cards, table rows */
  --bg-header:        #0d1020;      /* Header / navbar */
  --bg-footer:        #080a14;      /* Footer background */

  /* Text colours */
  --text-primary:     #e8eaf2;      /* Body text */
  --text-secondary:   #9ea3b8;      /* Muted / secondary text */
  --text-heading:     #ffffff;      /* H1-H6 */
  --text-link:        #3b8fef;      /* Hyperlinks */

  /* Borders */
  --border-default:   #252a45;      /* Default card/section border */
  --border-accent:    #1a6fd4;      /* Accent border */

  /* Spacing scale */
  --space-xs:   4px;
  --space-sm:   8px;
  --space-md:   16px;
  --space-lg:   24px;
  --space-xl:   40px;
  --space-xxl:  64px;

  /* Border radius */
  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  32px;

  /* Transitions */
  --transition: 0.25s ease;

  /* Max content width */
  --max-width:  1200px;
}

/* ────────────────────────────────────────────────────────────
   GLOBAL RESET & BASE
   ──────────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;          /* Smooth anchor scrolling */
  font-size: 16px;
  overflow-x: hidden;               /* Block horizontal scroll at root level */
  max-width: 100%;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Segoe UI', Arial, sans-serif;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;               /* Prevent horizontal scroll on mobile */
  max-width: 100%;
  overflow-wrap: break-word;        /* Break long words/URLs that could overflow */
  word-break: break-word;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--text-link);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-blue-light);
}

ul, ol {
  padding-left: var(--space-lg);
}

/* ────────────────────────────────────────────────────────────
   TYPOGRAPHY
   ──────────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-heading);
  line-height: 1.3;
  font-weight: 700;
}

h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: var(--space-lg); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem);   margin-bottom: var(--space-md); margin-top: var(--space-xl); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); margin-bottom: var(--space-sm); margin-top: var(--space-lg); }

p  { margin-bottom: var(--space-md); }
li { margin-bottom: var(--space-xs); }

/* ────────────────────────────────────────────────────────────
   LAYOUT UTILITIES
   ──────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-xl) 0;
}

/* ────────────────────────────────────────────────────────────
   HEADER / NAVIGATION
   Sticky top bar with logo and nav links
   ──────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--bg-header);
  border-bottom: 2px solid var(--border-accent);
  box-shadow: 0 2px 20px rgba(26, 111, 212, 0.2);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) var(--space-md);
  max-width: var(--max-width);
  margin: 0 auto;
  gap: var(--space-md);
}

/* Logo */
.site-logo {
  flex-shrink: 0;
}

.site-logo img {
  height: 50px;
  width: auto;
}

/* Desktop navigation */
.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.site-nav a {
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.95rem;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}

.site-nav a:hover {
  color: var(--color-blue-light);
  background: rgba(26, 111, 212, 0.1);
}

/* Header CTA button */
.btn-header {
  flex-shrink: 0;
}

/* Mobile hamburger toggle – hidden on desktop */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
}

.nav-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
  margin: 5px 0;
}

/* ────────────────────────────────────────────────────────────
   BUTTONS
   Red primary buttons with smooth hover/focus states
   ──────────────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  text-align: center;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 3px solid var(--color-blue-light);
  outline-offset: 3px;
}

/* Primary – Red */
.btn-primary {
  background-color: var(--color-red);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(212, 0, 0, 0.4);
}

.btn-primary:hover {
  background-color: var(--color-red-hover);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 0, 0, 0.5);
}

/* Secondary – Blue outline */
.btn-secondary {
  background: transparent;
  color: var(--color-blue-light);
  border: 2px solid var(--color-blue);
}

.btn-secondary:hover {
  background: var(--color-blue);
  color: #ffffff;
}

/* Large variant */
.btn-lg {
  padding: 16px 40px;
  font-size: 1.1rem;
  border-radius: var(--radius-md);
}

/* ────────────────────────────────────────────────────────────
   BREADCRUMBS
   Accessible breadcrumb navigation for inner pages
   ──────────────────────────────────────────────────────────── */
.breadcrumbs {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-default);
  padding: var(--space-sm) 0;
}

.breadcrumbs ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-xs);
  font-size: 0.875rem;
}

.breadcrumbs li {
  display: flex;
  align-items: center;
  margin-bottom: 0;
  color: var(--text-secondary);
}

/* Separator arrow between breadcrumb items */
.breadcrumbs li + li::before {
  content: '›';
  margin-right: var(--space-xs);
  color: var(--text-secondary);
}

.breadcrumbs a {
  color: var(--color-blue-light);
}

.breadcrumbs [aria-current="page"] {
  color: var(--text-primary);
  font-weight: 600;
}

/* ────────────────────────────────────────────────────────────
   HERO / BANNER SECTION
   Full-width banner with semi-transparent CTA overlay,
   centred on both mobile and desktop.
   ──────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;          /* Centre CTA block on desktop and mobile */
  overflow: hidden;
  background-color: #0b0d14;        /* Fallback if image fails */
}

/* Banner background image layer */
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../img/Banner/freepik_ultradetailed-3d-render-b_2797551457.png');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  z-index: 0;
}

/* Dark gradient overlay for text readability */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(11, 13, 20, 0.72) 0%,
    rgba(13, 16, 32, 0.55) 100%
  );
  z-index: 1;
}

/* The semi-transparent CTA block – centred on both desktop and mobile */
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;                    /* Centre all text inside the panel */
  background: rgba(11, 13, 30, 0.75);   /* Semi-transparent dark panel */
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(26, 111, 212, 0.35);
  border-radius: var(--radius-xl);
  padding: var(--space-md) var(--space-xl);
  max-width: 480px;
  width: calc(100% - 2 * var(--space-lg));
  margin: var(--space-md) auto;          /* Auto horizontal margins to centre */
}

.hero-content h1 {
  color: #ffffff;
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  text-shadow: 0 2px 12px rgba(0,0,0,0.7);
  margin-bottom: var(--space-sm);
}

.hero-tagline {
  font-size: clamp(0.85rem, 2vw, 1rem);
  color: rgba(255,255,255,0.85);
  margin-bottom: var(--space-sm);
}

.hero-bonus {
  display: inline-block;
  background: var(--color-blue);
  color: #ffffff;
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  font-weight: 800;
  padding: 6px var(--space-md);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
  letter-spacing: 0.5px;
}

.hero-buttons {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;          /* Centre buttons to match centred panel */
  flex-wrap: wrap;
}

/* ────────────────────────────────────────────────────────────
   POPULAR SLOTS SECTION
   12 slot images in rows of 6, with rounded corners.
   On desktop: 6 per row. On mobile: horizontally scrollable.
   ──────────────────────────────────────────────────────────── */
.slots-section {
  background: var(--bg-secondary);
  padding: var(--space-xl) 0;
}

.slots-section .section-title {
  text-align: center;
  margin-bottom: var(--space-lg);
  font-size: clamp(1.4rem, 3vw, 2rem);
  position: relative;
}

/* Decorative underline on section headings */
.slots-section .section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--color-red);
  margin: var(--space-sm) auto 0;
  border-radius: 2px;
}

/* Desktop: 6-per-row grid */
.slots-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-md);
}

/* Each slot card */
.slot-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-default);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  background: var(--bg-tertiary);
  cursor: pointer;
}

.slot-card:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 8px 30px rgba(26, 111, 212, 0.35);
  border-color: var(--color-blue);
}

.slot-card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-md);
}

/* Play overlay on hover */
.slot-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(11, 13, 30, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
  border-radius: var(--radius-md);
}

.slot-card:hover .slot-card-overlay {
  opacity: 1;
}

.slot-play-btn {
  background: var(--color-red);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  text-decoration: none;
}

/* Mobile: horizontal scroll wrapper so images keep their full size.
   Hidden by default on desktop; activated via media query below.
   max-width: 100% ensures the wrapper never widens the page —
   overflow scrolling is contained within the element itself. */
.slots-scroll-wrapper {
  display: none;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: var(--space-sm);
  scroll-snap-type: x mandatory;
  max-width: 100%;                  /* Never wider than the viewport */
  /* Scrollbar styling for dark theme */
  scrollbar-color: var(--color-red) var(--bg-tertiary);
  scrollbar-width: thin;
}

.slots-scroll-inner {
  display: flex;
  gap: var(--space-md);
  width: max-content;
}

/* Keep slot cards at the original 200 × 200 size – do not reduce */
.slots-scroll-inner .slot-card {
  width: 200px;
  flex-shrink: 0;
  scroll-snap-align: start;
}

/* ────────────────────────────────────────────────────────────
   CONTENT SECTION (Main Article)
   ──────────────────────────────────────────────────────────── */
.content-section {
  padding: var(--space-xl) 0;
}

.content-section .container {
  display: grid;
  grid-template-columns: 1fr minmax(0, 260px);
  gap: var(--space-xl);
  align-items: start;
}

/* Sidebar sticky panel */
.content-sidebar {
  position: sticky;
  top: 90px;
}

.sidebar-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.sidebar-card h3 {
  font-size: 1rem;
  color: var(--color-blue-light);
  margin-bottom: var(--space-md);
  margin-top: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sidebar-nav a {
  display: block;
  padding: var(--space-xs) 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border-default);
  transition: color var(--transition), padding-left var(--transition);
}

.sidebar-nav a:last-child {
  border-bottom: none;
}

.sidebar-nav a:hover {
  color: var(--color-blue-light);
  padding-left: var(--space-xs);
}

/* Bonus highlight card in sidebar */
.bonus-highlight {
  text-align: center;
}

.bonus-highlight .bonus-amount {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-blue-light);
  margin-bottom: var(--space-xs);
}

.bonus-highlight p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

/* ────────────────────────────────────────────────────────────
   TABLE STYLES
   Responsive tables that stack/scroll on mobile
   ──────────────────────────────────────────────────────────── */

/* Outer wrapper enables horizontal scroll on mobile */
.table-responsive {
  width: 100%;
  max-width: 100%;              /* Never wider than its parent */
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-default);
  margin-bottom: var(--space-lg);
}

table {
  width: 100%;
  min-width: 480px;             /* Force internal scroll rather than squishing */
  border-collapse: collapse;
  background: var(--bg-secondary);
}

thead {
  background: var(--bg-tertiary);
  border-bottom: 2px solid var(--color-blue);
}

th {
  padding: var(--space-md);
  text-align: left;
  font-weight: 700;
  color: var(--color-blue-light);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

td {
  padding: var(--space-md);
  border-bottom: 1px solid var(--border-default);
  color: var(--text-primary);
  font-size: 0.95rem;
  vertical-align: top;
}

tr:last-child td {
  border-bottom: none;
}

/* Zebra striping for readability */
tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.025);
}

tbody tr:hover {
  background: rgba(26, 111, 212, 0.08);
}

/* Small label shown above table on mobile for context */
.table-scroll-hint {
  display: none;
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-align: right;
  margin-bottom: var(--space-xs);
}

/* ────────────────────────────────────────────────────────────
   FAQ / ACCORDION SECTION
   ──────────────────────────────────────────────────────────── */
.faq-section {
  background: var(--bg-secondary);
  padding: var(--space-xl) 0;
}

.faq-list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: faq-counter;
}

.faq-item {
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
  overflow: hidden;
  transition: border-color var(--transition);
}

.faq-item:hover {
  border-color: var(--color-blue);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-lg);
  cursor: pointer;
  background: var(--bg-tertiary);
  font-weight: 600;
  font-size: 1rem;
  user-select: none;
  gap: var(--space-md);
  list-style: none;
}

.faq-question::marker,
.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question strong {
  color: var(--text-heading);
}

/* Rotating arrow icon */
.faq-icon {
  color: var(--color-blue-light);
  font-size: 1.2rem;
  transition: transform var(--transition);
  flex-shrink: 0;
}

details[open] .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  padding: var(--space-md) var(--space-lg);
  color: var(--text-primary);
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-default);
}

/* ────────────────────────────────────────────────────────────
   TEXT IMAGE BLOCK (illustrated section)
   ──────────────────────────────────────────────────────────── */
.text-img-section {
  padding: var(--space-xl) 0;
}

.text-img-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.text-img-grid img {
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}

/* ────────────────────────────────────────────────────────────
   FEATURES / HIGHLIGHTS ROW
   Icon cards showing key casino features
   ──────────────────────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

.feature-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  text-align: center;
  transition: transform var(--transition), border-color var(--transition);
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: var(--color-blue);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: var(--space-sm);
}

.feature-title {
  font-weight: 700;
  color: var(--color-blue-light);
  margin-bottom: var(--space-xs);
}

.feature-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* ────────────────────────────────────────────────────────────
   FOOTER
   Dark footer with payment logos and navigation links
   ──────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--bg-footer);
  border-top: 2px solid var(--border-accent);
  padding: var(--space-xl) 0 var(--space-lg);
}

.footer-inner {
  display: block;               /* Single column: brand block only */
  margin-bottom: var(--space-xl);
}

.footer-brand img {
  height: 44px;
  margin-bottom: var(--space-md);
}

.footer-brand p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.footer-col h4 {
  color: var(--color-blue-light);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--space-md);
  margin-top: 0;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col li {
  margin-bottom: var(--space-xs);
}

.footer-col a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer-col a:hover {
  color: var(--color-blue-light);
}

/* Payment logos grid */
.payment-logos {
  border-top: 1px solid var(--border-default);
  padding-top: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.payment-logos h4 {
  color: var(--text-secondary);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--space-md);
}

.payment-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  align-items: center;
}

/* Individual payment logo badge */
.payment-logo {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  transition: background var(--transition), border-color var(--transition);
}

.payment-logo:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--color-blue);
}

.payment-logo img {
  height: 22px;
  width: auto;
  filter: brightness(0.9) saturate(0.8);   /* Subtle desaturation for visual harmony */
  transition: filter var(--transition);
}

.payment-logo:hover img {
  filter: brightness(1.1) saturate(1);
}

/* Footer bottom bar */
.footer-bottom {
  border-top: 1px solid var(--border-default);
  padding-top: var(--space-md);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin: 0;
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer-legal-links a {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.footer-legal-links a:hover {
  color: var(--color-blue-light);
}

/* Age restriction badge */
.age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-secondary);
  flex-shrink: 0;
}

/* ────────────────────────────────────────────────────────────
   RESPONSIBLE GAMBLING WARNING BANNER
   ──────────────────────────────────────────────────────────── */
.gambling-warning {
  background: rgba(212, 0, 0, 0.08);
  border-top: 1px solid rgba(212, 0, 0, 0.25);
  padding: var(--space-sm) 0;
  text-align: center;
}

.gambling-warning p {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin: 0;
}

/* ────────────────────────────────────────────────────────────
   POLICY PAGES (Cookies, Terms, Privacy)
   Clean article layout for legal text
   ──────────────────────────────────────────────────────────── */
.policy-page {
  padding: var(--space-xl) 0 var(--space-xxl);
}

.policy-content h1 {
  border-bottom: 2px solid var(--color-blue);
  padding-bottom: var(--space-md);
  margin-bottom: var(--space-xl);
}

.policy-content h2 {
  color: var(--color-blue-light);
  border-left: 4px solid var(--color-red);
  padding-left: var(--space-md);
}

.policy-content section {
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--border-default);
}

.policy-content section:last-child {
  border-bottom: none;
}

/* Table of contents for policy pages */
.policy-toc {
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.policy-toc h3 {
  margin-top: 0;
  color: var(--color-blue-light);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.policy-toc ol {
  margin: 0;
  padding-left: var(--space-lg);
}

.policy-toc li {
  margin-bottom: var(--space-xs);
}

.policy-toc a {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.policy-toc a:hover {
  color: var(--color-blue-light);
}

/* ────────────────────────────────────────────────────────────
   SKIP TO CONTENT (Accessibility)
   Visible only on keyboard focus for screen readers
   ──────────────────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-md);
  background: var(--color-blue);
  color: #fff;
  padding: var(--space-sm) var(--space-md);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  z-index: 9999;
  font-weight: 700;
  transition: top var(--transition);
}

.skip-link:focus {
  top: 0;
}

/* ────────────────────────────────────────────────────────────
   SECTION TITLE DECORATIONS
   ──────────────────────────────────────────────────────────── */
.section-label {
  display: inline-block;
  background: var(--color-blue);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 3px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-sm);
}

/* ────────────────────────────────────────────────────────────
   BACK-TO-TOP BUTTON
   ──────────────────────────────────────────────────────────── */
#back-to-top {
  position: fixed;
  bottom: var(--space-lg);
  right: var(--space-lg);
  background: var(--color-blue);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  font-size: 1.3rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition), transform var(--transition);
  z-index: 500;
  box-shadow: 0 4px 15px rgba(26, 111, 212, 0.5);
}

#back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

#back-to-top:hover {
  transform: translateY(-3px);
  background: var(--color-blue-light);
}

/* ────────────────────────────────────────────────────────────
   MOBILE NAVIGATION OVERLAY (off-canvas)
   ──────────────────────────────────────────────────────────── */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}

.mobile-nav.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-nav-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(300px, 85vw);
  height: 100%;
  background: var(--bg-secondary);
  border-left: 2px solid var(--color-blue);
  padding: var(--space-xl) var(--space-lg);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
}

.mobile-nav.open .mobile-nav-panel {
  transform: translateX(0);
}

.mobile-nav-close {
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
}

.mobile-nav-links {
  list-style: none;
  padding: 0;
  margin-top: var(--space-xl);
}

.mobile-nav-links li {
  border-bottom: 1px solid var(--border-default);
  margin-bottom: 0;
}

.mobile-nav-links a {
  display: block;
  padding: var(--space-md) 0;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 500;
}

.mobile-nav-links a:hover {
  color: var(--color-blue-light);
}

/* ────────────────────────────────────────────────────────────
   RESPONSIVE BREAKPOINTS
   ──────────────────────────────────────────────────────────── */

/* ── Tablet (≤ 1024px) ── */
@media (max-width: 1024px) {
  /* Collapse the two-column content layout to single column */
  .content-section .container {
    grid-template-columns: 1fr;
  }

  .content-sidebar {
    position: static;
    order: -1;              /* Show sidebar above article on tablet */
  }

  /* Footer already 2-column, no change needed at tablet */

  /* Slots: keep 6 per row on tablet but allow smaller images */
  .slots-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

/* ── Mobile (≤ 768px) ── */
@media (max-width: 768px) {
  /* ─ Header ─ */
  .site-nav,
  .btn-header {
    display: none;            /* Hide desktop nav */
  }

  .nav-toggle {
    display: block;           /* Show hamburger */
  }

  .mobile-nav {
    display: block;
  }

  /* ─ Hero Banner – keep centred on mobile (already centred on desktop) ─ */
  .hero {
    min-height: 420px;
    /* justify-content already: center (inherited from desktop rule) */
  }

  .hero-content {
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-lg);
    width: calc(100% - 2 * var(--space-md));
    margin: var(--space-sm) auto;   /* Auto horizontal + small vertical margin */
    /* text-align already: center (inherited from desktop rule) */
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .hero-buttons .btn {
    width: 100%;
    max-width: 320px;
  }

  /* ─ Slots: hide the desktop grid on mobile, show the horizontal
       scroll wrapper instead so images keep their full 200 px size ─ */
  .slots-grid {
    display: none;
  }

  .slots-scroll-wrapper {
    display: block;           /* Enable horizontal scroll strip on mobile */
  }

  /* ─ Table: show scroll hint ─ */
  .table-scroll-hint {
    display: block;
  }

  /* ─ Text/image grid collapses to single column ─ */
  .text-img-grid {
    grid-template-columns: 1fr;
  }

  /* ─ Footer collapses to single column ─ */
  .footer-inner {
    grid-template-columns: 1fr;
  }

  /* ─ Back-to-top moves a bit inward on mobile ─ */
  #back-to-top {
    right: var(--space-md);
    bottom: var(--space-md);
  }

  /* ─ Hard-clamp everything to viewport width on mobile ─ */
  body, html {
    width: 100%;
    max-width: 100vw;
  }

  .container {
    padding: 0 var(--space-md);
    max-width: 100%;
  }

  /* Tables scroll internally; the wrapper must never exceed the screen */
  .table-responsive {
    max-width: calc(100vw - 2 * var(--space-md));
  }

  /* Prevent any image from protruding past the viewport */
  img {
    max-width: 100%;
    height: auto;
  }
}

/* ── Small Mobile (≤ 480px) ── */
@media (max-width: 480px) {
  .hero {
    min-height: 380px;
  }

  .hero-content {
    padding: var(--space-sm);
  }

  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.2rem; }

  .btn-lg {
    padding: 14px 24px;
    font-size: 1rem;
  }

  /* Stack footer legal links on very small screens */
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-legal-links {
    justify-content: center;
  }
}

