/* Import Jost font */
@import url('https://fonts.googleapis.com/css2?family=Jost:wght@300;400;500;600;700&display=swap');

/* Root variables */
:root {
  --primary-color: ivory;
  --accent-color: gold;
  --text-dark: #2c3e50;
  --text-light: #ffffff;
  --bg-light: #fafafa;
  --bg-dark: #1a1a1a;
  --gold-dark: #B8860B;
}

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Jost', sans-serif !important;
  font-size: 18px !important;
  line-height: 1.7 !important;
  color: var(--text-dark) !important;
  background-color: var(--primary-color) !important;
}

/* Reset list styles globally */
ul, ol {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Navigation and footer - no markers or pseudo-elements */
.navbar ul, .navbar ol,
.footer-links ul, .footer-links ol,
.menu-list {
  list-style: none !important;
}

.navbar ul::before, .navbar ul::after,
.navbar ol::before, .navbar ol::after,
.navbar li::before, .navbar li::after,
.footer-links ul::before, .footer-links ul::after,
.footer-links ol::before, .footer-links ol::after,
.footer-links li::before, .footer-links li::after,
.menu-list::before, .menu-list::after,
.menu-list li::before, .menu-list li::after {
  content: none !important;
  display: none !important;
}

/* Content lists - styled with gold arrows */
.content ul, .section ul:not(.menu-list):not(.footer-links) {
  margin-left: 0 !important;
  padding-left: 30px !important;
}

.content ul li, .section ul:not(.menu-list):not(.footer-links) li {
  position: relative;
  margin-bottom: 12px !important;
  padding-left: 10px !important;
  list-style: none !important;
}

.content ul li::before, .section ul:not(.menu-list):not(.footer-links) li::before {
  content: '→' !important;
  position: absolute;
  left: -20px;
  color: var(--accent-color) !important;
  font-weight: bold !important;
  font-size: 20px !important;
}

/* Ordered lists */
.content ol, .section ol {
  counter-reset: item;
  margin-left: 0 !important;
  padding-left: 30px !important;
}

.content ol li, .section ol li {
  position: relative;
  margin-bottom: 12px !important;
  padding-left: 10px !important;
  list-style: none !important;
}

.content ol li::before, .section ol li::before {
  content: counter(item) '.' !important;
  counter-increment: item;
  position: absolute;
  left: -25px;
  color: var(--accent-color) !important;
  font-weight: bold !important;
  font-size: 18px !important;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Jost', sans-serif !important;
  font-weight: 700 !important;
  color: var(--text-dark) !important;
  margin-bottom: 20px !important;
}

h1 {
  font-size: 42px !important;
  line-height: 1.2 !important;
  margin-bottom: 24px !important;
}

h2 {
  font-size: 36px !important;
  line-height: 1.3 !important;
  margin-top: 48px !important;
  margin-bottom: 24px !important;
  padding-bottom: 12px !important;
  border-bottom: 3px solid var(--accent-color) !important;
}

h3 {
  font-size: 28px !important;
  line-height: 1.4 !important;
  margin-top: 32px !important;
  margin-bottom: 18px !important;
}

p {
  font-size: 18px !important;
  line-height: 1.7 !important;
  margin-bottom: 20px !important;
  color: var(--text-dark) !important;
}

strong {
  font-weight: 600 !important;
  color: var(--gold-dark) !important;
}

/* Links */
a {
  color: var(--gold-dark);
  text-decoration: none;
  transition: all 0.3s ease;
}

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

/* Header/Navbar */
.navbar {
  background-color: var(--bg-dark) !important;
  padding: 0 !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
}

.brand-logo {
  width: 45px;
  height: auto;
}

.brand-name {
  font-size: 26px !important;
  font-weight: 700 !important;
  color: var(--accent-color) !important;
  margin: 0 !important;
}

.navbar-menu {
  background-color: var(--bg-dark) !important;
}

.navbar-item {
  color: var(--primary-color) !important;
  font-size: 17px !important;
  font-weight: 500 !important;
  padding: 18px 20px !important;
  transition: all 0.3s ease;
}

.navbar-item:hover {
  background-color: rgba(255, 215, 0, 0.1) !important;
  color: var(--accent-color) !important;
}

.navbar-burger {
  color: var(--accent-color) !important;
  height: 4rem !important;
}

/* CTA Button in navbar */
.cta-button {
  background-color: var(--accent-color) !important;
  color: var(--bg-dark) !important;
  font-weight: 600 !important;
  padding: 12px 28px !important;
  border-radius: 6px !important;
  border: none !important;
  font-size: 17px !important;
  white-space: nowrap !important;
  transition: all 0.3s ease;
  display: inline-block;
  text-align: center;
}

.cta-button:hover {
  background-color: var(--gold-dark) !important;
  color: var(--text-light) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(184, 134, 11, 0.3);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%) !important;
  padding: 80px 0 !important;
  margin-bottom: 0 !important;
}

.hero-body {
  padding: 3rem 1.5rem !important;
}

.hero h1 {
  color: var(--primary-color) !important;
  font-size: 46px !important;
  font-weight: 700 !important;
  margin-bottom: 24px !important;
  line-height: 1.2 !important;
}

.hero p {
  color: var(--primary-color) !important;
  font-size: 19px !important;
  line-height: 1.7 !important;
  margin-bottom: 28px !important;
}

.hero-image img {
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  width: 100%;
  height: auto;
}

/* Table of Contents */
.toc {
  background-color: #ffffff;
  border: 2px solid var(--accent-color);
  border-radius: 8px;
  padding: 32px;
  margin: 48px 0;
}

.toc ul {
  padding-left: 0 !important;
}

.toc li {
  margin-bottom: 14px !important;
  font-size: 18px !important;
  padding-left: 0 !important;
}

.toc li::before {
  display: none !important;
  content: none !important;
}

.toc a {
  color: var(--text-dark);
  font-weight: 500;
  display: block;
  padding: 8px 12px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.toc a:hover {
  background-color: rgba(255, 215, 0, 0.15);
  color: var(--gold-dark);
  padding-left: 20px;
}

/* Sections */
.section {
  padding: 60px 0 !important;
  background-color: var(--primary-color);
}

.section:nth-child(even) {
  background-color: var(--bg-light);
}

.content-section {
  max-width: 1200px;
  margin: 0 auto;
}

/* Cards */
.card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  padding: 32px;
  margin-bottom: 28px;
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  transform: translateY(-4px);
}

/* Tables */
.table-container {
  overflow-x: auto;
  margin: 28px 0;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

table {
  width: 100% !important;
  background-color: #ffffff !important;
  border-collapse: collapse !important;
  font-size: 17px !important;
}

thead {
  background-color: var(--gold-dark) !important;
}

thead th {
  color: var(--text-light) !important;
  font-weight: 600 !important;
  padding: 18px 16px !important;
  text-align: left !important;
  font-size: 18px !important;
  border: none !important;
}

tbody tr {
  border-bottom: 1px solid #e0e0e0 !important;
  transition: background-color 0.2s ease;
}

tbody tr:hover {
  background-color: rgba(255, 215, 0, 0.08) !important;
}

tbody td {
  padding: 16px !important;
  color: var(--text-dark) !important;
  font-size: 17px !important;
}

/* Images */
picture, img {
  max-width: 100%;
  height: auto;
  display: block;
}

.section picture img,
.section img {
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

/* Icons */
.icon {
  color: var(--accent-color) !important;
  font-size: 24px;
  margin-right: 12px;
}

.section .icon {
  color: var(--gold-dark) !important;
}

/* Footer */
.footer {
  background-color: var(--bg-dark) !important;
  color: var(--primary-color) !important;
  padding: 60px 0 32px !important;
  margin-top: 80px;
}

.footer h3 {
  color: var(--accent-color) !important;
  font-size: 22px !important;
  margin-bottom: 20px !important;
  font-weight: 600 !important;
}

.footer-links {
  margin-bottom: 32px;
}

.footer-links ul {
  list-style: none !important;
  padding: 0 !important;
}

.footer-links li {
  margin-bottom: 12px !important;
  list-style: none !important;
}

.footer-links li::before {
  display: none !important;
  content: none !important;
}

.footer-links a {
  color: var(--primary-color) !important;
  font-size: 17px !important;
  transition: all 0.3s ease;
  display: inline-block;
}

.footer-links a:hover {
  color: var(--accent-color) !important;
  padding-left: 8px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 215, 0, 0.3);
  padding-top: 24px;
  margin-top: 32px;
  text-align: center;
  color: rgba(255, 255, 240, 0.8) !important;
  font-size: 16px !important;
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
  h1 {
    font-size: 36px !important;
  }

  h2 {
    font-size: 30px !important;
  }

  h3 {
    font-size: 24px !important;
  }

  .hero h1 {
    font-size: 38px !important;
  }

  body {
    font-size: 17px !important;
  }

  p {
    font-size: 17px !important;
  }
}

@media screen and (max-width: 768px) {
  h1 {
    font-size: 32px !important;
  }

  h2 {
    font-size: 26px !important;
  }

  h3 {
    font-size: 22px !important;
  }

  .hero {
    padding: 48px 0 !important;
  }

  .hero h1 {
    font-size: 32px !important;
  }

  .hero p {
    font-size: 17px !important;
  }

  .section {
    padding: 40px 0 !important;
  }

  .card {
    padding: 24px;
  }

  .toc {
    padding: 24px;
  }

  .navbar-item {
    padding: 14px 16px !important;
  }

  .navbar-menu {
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  }

  table {
    font-size: 16px !important;
  }

  thead th {
    font-size: 16px !important;
    padding: 14px 12px !important;
  }

  tbody td {
    font-size: 16px !important;
    padding: 12px !important;
  }
}

@media screen and (max-width: 480px) {
  h1 {
    font-size: 28px !important;
  }

  h2 {
    font-size: 24px !important;
  }

  h3 {
    font-size: 20px !important;
  }

  .hero h1 {
    font-size: 28px !important;
  }

  body {
    font-size: 16px !important;
  }

  p {
    font-size: 16px !important;
  }

  .brand-name {
    font-size: 22px !important;
  }

  .cta-button {
    padding: 10px 20px !important;
    font-size: 16px !important;
  }
}

/* Utility classes */
.mt-4 {
  margin-top: 2rem !important;
}

.mb-4 {
  margin-bottom: 2rem !important;
}

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

.has-text-centered {
  text-align: center !important;
}
