/* ==========================================================================
   Cleopatra Casino Australia - Main Stylesheet
   Egyptian Dark Theme with Gold Accents
   ========================================================================== */

/* ==========================================================================
   1. CSS Variables
   ========================================================================== */
:root {
  /* Colors - from screenshot */
  --bg-dark: #0D0D0D;
  --bg-darker: #000000;
  --bg-card: #1A1A1A;
  --bg-card-hover: #222222;
  --gold-primary: #C8A962;
  --gold-light: #D4B978;
  --gold-dark: #A08040;
  --orange-btn: #CC8133;
  --orange-btn-hover: #E09040;
  --text-white: #FFFFFF;
  --text-light: #E5E5E5;
  --text-gray: #9A9A9A;
  --text-muted: #666666;
  --border-color: #2A2A2A;
  --border-gold: rgba(200, 169, 98, 0.3);

  /* Typography */
  --font-primary: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-size-base: 16px;
  --line-height-base: 1.7;

  /* Spacing */
  --section-padding: 80px 0;
  --container-width: 1200px;
  --border-radius: 8px;
  --border-radius-lg: 12px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
}

/* ==========================================================================
   2. Reset & Base Styles
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: var(--font-size-base);
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  background-color: var(--bg-dark);
  color: var(--text-light);
  line-height: var(--line-height-base);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--gold-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--gold-light);
}

/* ==========================================================================
   3. Typography
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-white);
  margin-bottom: 20px;
}

h1 {
  font-size: 2.5rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

h2 {
  font-size: 1.875rem;
  color: var(--gold-primary);
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--border-gold);
}

h3 {
  font-size: 1.375rem;
  color: var(--text-white);
  margin-top: 35px;
  margin-bottom: 15px;
}

h4 {
  font-size: 1.125rem;
  color: var(--text-white);
}

p {
  margin-bottom: 18px;
  color: var(--text-light);
}

strong, b {
  font-weight: 600;
  color: var(--text-white);
}

/* ==========================================================================
   4. Container & Layout
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* legacy single-page section padding removed — handled by section 26 */

/* ==========================================================================
   5. Header
   ========================================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--bg-darker);
  border-bottom: 1px solid var(--border-color);
  height: 70px;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  color: var(--text-white);
}

.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-white);
  margin: 5px 0;
  transition: var(--transition-fast);
}

.header-logo img {
  height: 50px;
  width: auto;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* ==========================================================================
   6. Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.btn-login {
  background-color: var(--bg-card);
  color: var(--text-white);
  border: 1px solid var(--border-color);
}

.btn-login:hover {
  background-color: var(--bg-card-hover);
  color: var(--text-white);
}

.btn-signup {
  background-color: var(--gold-primary);
  color: var(--bg-dark);
}

.btn-signup:hover {
  background-color: var(--gold-light);
  color: var(--bg-dark);
}

.btn-primary {
  background: linear-gradient(135deg, var(--orange-btn) 0%, #B06820 100%);
  color: var(--text-white);
  padding: 14px 35px;
  font-size: 15px;
  box-shadow: 0 4px 16px rgba(204, 129, 51, 0.25);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--orange-btn-hover) 0%, var(--orange-btn) 100%);
  color: var(--text-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(204, 129, 51, 0.4);
}

.btn-large {
  padding: 16px 40px;
  font-size: 16px;
}

/* ==========================================================================
   7. Hero Section
   ========================================================================== */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.88) 0%,
    rgba(13, 13, 13, 0.72) 40%,
    rgba(13, 13, 13, 0.5) 70%,
    rgba(0, 0, 0, 0.35) 100%
  );
  z-index: 1;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, var(--bg-dark) 0%, transparent 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 680px;
  padding: 80px 20px 60px;
}

.hero h1 {
  color: var(--text-white);
  margin-bottom: 20px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.6);
  font-size: 2.75rem;
  line-height: 1.15;
  letter-spacing: 1.5px;
}

.hero-intro {
  font-size: 1.15rem;
  margin-bottom: 28px;
  color: var(--text-light);
  line-height: 1.7;
  max-width: 560px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: var(--text-light);
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-cta .btn {
  padding: 15px 36px;
  font-size: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-cta .btn-primary {
  box-shadow: 0 4px 24px rgba(204, 129, 51, 0.35);
}

.hero-cta .btn-primary:hover {
  box-shadow: 0 6px 30px rgba(204, 129, 51, 0.5);
}

.hero .cta-text {
  color: var(--gold-primary);
  font-weight: 500;
  margin-bottom: 25px;
}

/* ==========================================================================
   8. Content with Side Image
   ========================================================================== */
.content-with-image {
  display: flex;
  gap: 50px;
  align-items: flex-start;
  margin: 40px 0;
}

.content-text {
  flex: 1;
}

.content-image {
  flex: 0 0 45%;
  max-width: 45%;
}

.content-image img {
  border-radius: var(--border-radius-lg);
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.content-image-full {
  margin: 40px 0;
}

.content-image-full img {
  width: 100%;
  border-radius: var(--border-radius-lg);
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

/* ==========================================================================
   9. Lists
   ========================================================================== */
ul, ol {
  margin: 20px 0;
  padding-left: 0;
}

ul {
  list-style: none;
}

main ul li,
.legal-page ul li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  color: var(--text-light);
}

main ul li::before,
.legal-page ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  background-color: var(--gold-primary);
  border-radius: 50%;
}

ol {
  list-style: none;
  counter-reset: step-counter;
}

ol li {
  position: relative;
  padding-left: 40px;
  margin-bottom: 15px;
  color: var(--text-light);
  counter-increment: step-counter;
}

ol li::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  background-color: var(--gold-primary);
  color: var(--bg-dark);
  font-weight: 700;
  font-size: 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Checklist style */
.checklist li::before {
  content: '✓';
  background-color: var(--gold-primary);
  color: var(--bg-dark);
  width: 22px;
  height: 22px;
  font-size: 12px;
  border-radius: 4px;
  top: 2px;
}

/* ==========================================================================
   10. Tables
   ========================================================================== */
.table-wrapper {
  overflow-x: auto;
  margin: 30px 0;
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--bg-card);
}

thead {
  background-color: var(--bg-darker);
}

th {
  padding: 18px 20px;
  text-align: left;
  color: var(--gold-primary);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid var(--gold-primary);
}

td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-light);
  font-size: 15px;
}

tr:last-child td {
  border-bottom: none;
}

tr:hover td {
  background-color: rgba(200, 169, 98, 0.05);
}

/* Right-align numeric columns */
td:nth-child(2),
td:nth-child(3),
td:nth-child(4) {
  text-align: right;
}

th:nth-child(2),
th:nth-child(3),
th:nth-child(4) {
  text-align: right;
}

/* ==========================================================================
   11. CTA Boxes
   ========================================================================== */
.cta-box {
  background: linear-gradient(135deg, rgba(200, 169, 98, 0.08) 0%, rgba(200, 169, 98, 0.02) 100%);
  border: 1px solid var(--border-gold);
  border-left: 4px solid var(--gold-primary);
  border-radius: var(--border-radius-lg);
  padding: 28px 32px;
  margin: 30px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cta-box-text {
  flex: 1;
  min-width: 280px;
}

.cta-box-text p {
  margin: 0;
  font-size: 1.05rem;
  color: var(--text-white);
}

.cta-box .btn-primary {
  flex-shrink: 0;
}

/* ==========================================================================
   12. FAQ Accordion (legacy — overridden by section 28)
   ========================================================================== */

.faq-item {
  background-color: var(--bg-dark);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  margin-bottom: 15px;
  overflow: hidden;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 25px;
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.faq-question:hover {
  background-color: var(--bg-card);
}

.faq-question h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-white);
  flex: 1;
  padding-right: 20px;
}

.faq-toggle {
  width: 30px;
  height: 30px;
  background-color: var(--gold-primary);
  color: var(--bg-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
}

.faq-answer {
  display: none;
  padding: 0 25px 25px 25px;
  color: var(--text-light);
  line-height: 1.8;
}

.faq-item.active .faq-answer {
  display: block;
}

/* ==========================================================================
   13. Provider/Partner Badges
   ========================================================================== */
.providers-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0;
}

.provider-badge {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  color: var(--text-gray);
}

/* Trust badges */
.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 30px 0;
  padding: 25px;
  background-color: var(--bg-card);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 15px;
  background-color: var(--bg-dark);
  border-radius: var(--border-radius);
  font-size: 13px;
  color: var(--text-gray);
}

.trust-badge-icon {
  width: 24px;
  height: 24px;
  background-color: var(--gold-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-dark);
  font-size: 12px;
}

/* ==========================================================================
   14. Decorative Icons Row
   ========================================================================== */
.icons-row {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin: 50px 0;
  flex-wrap: wrap;
}

.icon-item {
  text-align: center;
}

.icon-item img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin: 0 auto 15px;
  filter: drop-shadow(0 5px 15px rgba(200, 169, 98, 0.3));
}

.icon-item span {
  display: block;
  color: var(--gold-primary);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
}

/* ==========================================================================
   15. Section with Background Accent
   ========================================================================== */
.section-with-bg {
  position: relative;
}

.section-bg-accent {
  position: absolute;
  top: 0;
  right: 0;
  width: 40%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0.15;
  pointer-events: none;
}

.section-bg-accent::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, var(--bg-dark) 0%, transparent 100%);
}

/* ==========================================================================
   16. Age Notice
   ========================================================================== */
.age-notice {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: rgba(200, 169, 98, 0.1);
  border: 1px solid var(--gold-primary);
  padding: 15px 25px;
  border-radius: var(--border-radius);
  margin: 30px 0;
}

.age-badge {
  width: 40px;
  height: 40px;
  background-color: var(--gold-primary);
  color: var(--bg-dark);
  font-weight: 700;
  font-size: 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.age-notice span {
  color: var(--text-white);
  font-weight: 500;
}

/* ==========================================================================
   17. Footer (base)
   ========================================================================== */
.footer {
  background-color: var(--bg-darker);
  border-top: 1px solid var(--border-color);
  padding: 0;
}

/* legacy single-page footer classes removed — replaced by section 29 */
.footer-cta {
  display: none;
  margin-bottom: 30px;
}

/* ==========================================================================
   18. Internal Links Placeholder
   ========================================================================== */
.internal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin: 25px 0;
  padding: 20px;
  background-color: var(--bg-card);
  border-radius: var(--border-radius);
  border-left: 3px solid var(--gold-primary);
}

.internal-links a {
  color: var(--gold-primary);
  font-size: 14px;
  font-weight: 500;
}

/* ==========================================================================
   19. Games Preview Strip
   ========================================================================== */
.games-preview {
  margin: 40px 0;
}

.games-preview img {
  width: 100%;
  border-radius: var(--border-radius-lg);
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

/* ==========================================================================
   20. Media Queries
   ========================================================================== */

/* Large tablets and below */
@media (max-width: 992px) {
  :root {
    --section-padding: 60px 0;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.625rem;
  }

  .content-with-image {
    flex-direction: column;
  }

  .content-image {
    flex: 0 0 100%;
    max-width: 100%;
    order: -1;
  }

  .hero {
    min-height: 420px;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero h1 {
    font-size: 2.25rem;
  }
}

/* Tablets portrait */
@media (max-width: 768px) {
  :root {
    --section-padding: 50px 0;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .header {
    height: 60px;
  }

  .header-logo img {
    height: 40px;
  }

  .btn {
    padding: 10px 20px;
    font-size: 13px;
  }

  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  .hero {
    min-height: 380px;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .hero-intro {
    font-size: 1rem;
  }

  .hero-content {
    padding: 50px 20px 40px;
  }

  .hero-cta .btn {
    padding: 12px 28px;
    font-size: 14px;
  }


  .legal-hero {
    padding: 50px 0 40px;
  }

  .cta-box {
    flex-direction: column;
    text-align: center;
    padding: 25px 20px;
  }

  .cta-box-text {
    min-width: 100%;
  }

  table {
    font-size: 14px;
  }

  th, td {
    padding: 12px 15px;
  }

  .icons-row {
    gap: 25px;
  }

  .icon-item img {
    width: 80px;
    height: 80px;
  }

  .faq-question {
    padding: 18px 20px;
  }

  .faq-question h4 {
    font-size: 0.95rem;
  }
}

/* Mobile phones */
@media (max-width: 480px) {
  :root {
    --section-padding: 40px 0;
    --font-size-base: 15px;
  }

  .container {
    padding: 0 15px;
  }

  h1 {
    font-size: 1.5rem;
    letter-spacing: 1px;
  }

  h2 {
    font-size: 1.35rem;
  }

  h3 {
    font-size: 1.15rem;
  }

  .header-right {
    gap: 10px;
  }

  .btn {
    padding: 8px 14px;
    font-size: 12px;
  }

  .hero {
    min-height: 350px;
  }

  .hero h1 {
    font-size: 1.4rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .btn-primary {
    padding: 12px 25px;
    font-size: 14px;
    width: 100%;
  }

  .cta-box .btn-primary {
    width: 100%;
  }

  ul li {
    padding-left: 24px;
  }

  ol li {
    padding-left: 35px;
  }

  ol li::before {
    width: 24px;
    height: 24px;
    font-size: 12px;
  }

  .table-wrapper {
    margin: 20px -15px;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }

  th, td {
    padding: 10px 12px;
    font-size: 13px;
  }

  .trust-badges {
    padding: 15px;
    gap: 10px;
  }

  .trust-badge {
    padding: 8px 12px;
    font-size: 12px;
  }

  .icons-row {
    gap: 20px;
  }

  .icon-item img {
    width: 60px;
    height: 60px;
  }

  /* footer-links handled by section 29 responsive */
}

/* Very small phones */
@media (max-width: 374px) {
  h1 {
    font-size: 1.3rem;
  }

  h2 {
    font-size: 1.25rem;
  }

  .hero {
    min-height: 320px;
  }

  .icon-item img {
    width: 50px;
    height: 50px;
  }
}

/* ==========================================================================
   21. Utility Classes
   ========================================================================== */
.text-gold {
  color: var(--gold-primary);
}

.text-center {
  text-align: center;
}

.mb-0 {
  margin-bottom: 0;
}

.mt-40 {
  margin-top: 40px;
}

.hidden {
  display: none;
}

/* ==========================================================================
   22. Multi-page Navigation
   ========================================================================== */
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--border-radius);
  transition: color var(--transition-fast), background-color var(--transition-fast);
  white-space: nowrap;
}

.nav-item:hover {
  color: var(--gold-primary);
  background-color: rgba(200, 169, 98, 0.08);
}

.nav-item[aria-current="page"] {
  color: var(--gold-primary);
  background-color: rgba(200, 169, 98, 0.12);
  font-weight: 600;
}

.nav-icon {
  font-size: 1rem;
}

/* ==========================================================================
   23. Breadcrumbs
   ========================================================================== */
.breadcrumbs {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  padding: 12px 0;
  font-size: 0.875rem;
}

.breadcrumbs .container {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.breadcrumbs a {
  color: var(--gold-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.breadcrumbs a:hover {
  color: var(--gold-light);
  text-decoration: underline;
}

.breadcrumbs .sep {
  color: var(--text-muted);
  margin: 0 2px;
}

.breadcrumbs span:last-child {
  color: var(--text-gray);
}

/* ==========================================================================
   24. Legal / Utility Pages
   ========================================================================== */
.legal-hero {
  position: relative;
  background: url('../img/banner-2--desk.jpg') center / cover no-repeat;
  padding: 70px 0 60px;
  text-align: center;
  overflow: hidden;
}

.legal-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(13, 13, 13, 0.92) 0%,
    rgba(13, 13, 13, 0.85) 100%
  );
}

.legal-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
}

.legal-hero .container {
  position: relative;
  z-index: 1;
}

.legal-hero h1 {
  color: var(--gold-primary);
  margin-bottom: 0.75rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.legal-hero .hero-intro {
  color: var(--text-gray);
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.05rem;
}

.legal-page {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 0 60px;
}

.legal-section {
  margin-bottom: 2.5rem;
}

.legal-section h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--gold-primary);
  border-bottom: 2px solid var(--border-gold);
  padding-bottom: 0.5rem;
}

.legal-section p,
.legal-section ul,
.legal-section ol {
  margin-bottom: 1rem;
  color: var(--text-light);
  line-height: 1.8;
}

/* ==========================================================================
   25. Content Figures (Inline Images)
   ========================================================================== */
/* Shared figure styles */
.content-figure a {
  display: block;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
}

.content-figure a:hover {
  transform: scale(1.01);
  box-shadow: 0 10px 36px rgba(200, 169, 98, 0.15);
  border-color: var(--border-gold);
}

.content-figure img {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius-lg);
  display: block;
}

/* Side-floating content images */
.content-figure--side {
  margin-bottom: 20px;
}

/* Full-width content images */
.content-figure--wide {
  margin: 2.5rem 0 3rem;
  text-align: center;
}

/* ==========================================================================
   26. Content Sections
   ========================================================================== */
.content-section {
  padding: 40px 0;
  border-bottom: 1px solid var(--border-color);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.content-section:last-of-type {
  border-bottom: none;
}

.content-section.fade-in {
  opacity: 1;
  transform: translateY(0);
}

.content-section h2 {
  font-size: 1.75rem;
  color: var(--gold-primary);
  margin-bottom: 1.25rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--border-gold);
}

.content-section p {
  margin-bottom: 1rem;
  color: var(--text-light);
  line-height: 1.8;
}

.content-section ul,
.content-section ol {
  margin-bottom: 1rem;
  padding-left: 0;
}

.content-section li {
  margin-bottom: 0.5rem;
  color: var(--text-light);
  line-height: 1.7;
}

.content-section h3 {
  font-size: 1.3rem;
  color: var(--text-white);
  margin: 1.5rem 0 0.75rem;
}

.content-section blockquote {
  border-left: 4px solid var(--gold-primary);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: rgba(200, 169, 98, 0.05);
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.content-section blockquote p {
  color: var(--text-light);
  font-style: italic;
}

.content-section a {
  color: var(--gold-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--transition-fast);
}

.content-section a:hover {
  color: var(--gold-light);
}

/* ==========================================================================
   27. CTA Banner / Wrapper
   ========================================================================== */
.cta-wrapper {
  text-align: center;
  margin: 2rem 0;
}

.cta-wrapper .btn {
  padding: 14px 32px;
  font-size: 1rem;
}

.cta-banner {
  position: relative;
  background: url('../img/banner-2--desk.jpg') center / cover no-repeat;
  border-radius: var(--border-radius-lg);
  text-align: center;
  padding: 60px 30px;
  margin: 3rem 0;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(13, 13, 13, 0.9) 0%,
    rgba(13, 13, 13, 0.78) 50%,
    rgba(13, 13, 13, 0.85) 100%
  );
  border-radius: var(--border-radius-lg);
}

.cta-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid var(--border-gold);
  border-radius: var(--border-radius-lg);
  pointer-events: none;
}

.cta-banner h3 {
  position: relative;
  color: var(--gold-primary);
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.cta-banner p {
  position: relative;
  color: var(--text-light);
  margin-bottom: 1.5rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-banner .btn {
  position: relative;
  box-shadow: 0 4px 20px rgba(204, 129, 51, 0.3);
}

/* ==========================================================================
   28. FAQ Section (details/summary)
   ========================================================================== */
.faq-section details {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  margin-bottom: 8px;
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-section details:hover {
  border-color: var(--border-gold);
}

.faq-section details[open] {
  border-color: var(--gold-primary);
}

.faq-section summary {
  padding: 18px 50px 18px 20px;
  cursor: pointer;
  font-weight: 600;
  color: var(--text-white);
  list-style: none;
  position: relative;
  font-size: 1rem;
  line-height: 1.5;
  transition: color var(--transition-fast);
}

.faq-section summary::-webkit-details-marker {
  display: none;
}

.faq-section summary::after {
  content: '+';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--gold-primary);
  transition: transform var(--transition-fast);
}

.faq-section details[open] summary::after {
  content: '\2212';
}

.faq-section details p,
.faq-section details ul,
.faq-section details ol {
  padding: 0 20px 18px;
  color: var(--text-light);
  line-height: 1.7;
}

/* ==========================================================================
   29. Footer (Multi-page)
   ========================================================================== */
.footer .footer-content {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 50px 0 40px;
  text-align: left;
}

.footer-col h4 {
  color: var(--gold-primary);
  font-size: 0.9rem;
  margin-bottom: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-logo-img {
  margin-bottom: 1rem;
  display: block;
}

.footer-text {
  color: var(--text-gray);
  font-size: 0.875rem;
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.footer-license {
  color: var(--gold-dark);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer .footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: block;
}

.footer .footer-links li {
  margin-bottom: 10px;
  padding-left: 0;
  position: static;
}

.footer .footer-links li::before {
  display: none;
}

.footer-authorities-grid li {
  padding-left: 0;
  position: static;
}

.footer-authorities-grid li::before {
  display: none;
}

.footer .footer-links a {
  color: var(--text-gray);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color var(--transition-fast), padding-left var(--transition-fast);
  display: inline-block;
}

.footer .footer-links a:hover {
  color: var(--gold-primary);
  padding-left: 4px;
}

.footer-authorities {
  border-top: 1px solid var(--border-color);
  padding: 28px 0;
}

.footer-authorities-title {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-authorities-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-authorities-grid li a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.75rem;
  transition: color var(--transition-fast), opacity var(--transition-fast);
  opacity: 0.7;
}

.footer-authorities-grid li a:hover {
  color: var(--gold-primary);
  opacity: 1;
}

.footer-authorities-grid img {
  border-radius: 6px;
  filter: grayscale(30%);
  transition: filter var(--transition-fast);
}

.footer-authorities-grid li a:hover img {
  filter: grayscale(0%);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding: 24px 0 20px;
  text-align: center;
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.6;
  margin-bottom: 15px;
}

.footer-bottom a {
  color: var(--gold-primary);
  text-decoration: none;
}

.footer-bottom a:hover {
  text-decoration: underline;
}

.footer-badges {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.badge {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  color: var(--text-gray);
  font-weight: 500;
}

/* ==========================================================================
   30. Scroll to Top
   ========================================================================== */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  background: var(--gold-primary);
  color: var(--bg-darker);
  border: none;
  border-radius: 50%;
  font-size: 1.25rem;
  font-weight: 700;
  cursor: pointer;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.scroll-to-top:hover {
  background: var(--gold-light);
  transform: translateY(-3px);
}

/* ==========================================================================
   31. Responsive Overrides for Multi-page
   ========================================================================== */
@media (max-width: 992px) {
  .nav {
    display: none;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-darker);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    flex-direction: column;
    padding: 10px 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  }

  .nav.active {
    display: flex;
  }

  .nav-item {
    padding: 12px 24px;
    border-radius: 0;
    width: 100%;
  }

  .nav-item:hover {
    background-color: rgba(200, 169, 98, 0.08);
  }

  .mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 40px 0 30px;
  }

  .footer-authorities-grid {
    gap: 20px;
  }

  .scroll-to-top {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
  }

  .content-section h2 {
    font-size: 1.5rem;
  }

  .legal-hero {
    padding: 35px 0 30px;
  }

  .cta-banner {
    padding: 35px 20px;
  }
}

@media (max-width: 480px) {
  .nav-item {
    font-size: 0.85rem;
    padding: 10px 20px;
  }

  .content-section h2 {
    font-size: 1.35rem;
  }

  .cta-banner h3 {
    font-size: 1.25rem;
  }

  .footer-bottom p {
    font-size: 0.75rem;
  }
}

/* ==========================================================================
   32. Print Styles
   ========================================================================== */
@media print {
  .header,
  .cta-box,
  .cta-banner,
  .cta-wrapper,
  .scroll-to-top,
  .btn {
    display: none;
  }

  body {
    background: white;
    color: black;
  }

  h2, h3 {
    color: black;
  }

  .content-section {
    opacity: 1;
    transform: none;
  }
}
