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

/* CSS Variables */
:root {
  --primary-color: #8b5cf6;
  --primary-dark: #7c3aed;
  --primary-light: #a78bfa;
  --accent-color: #f59e0b;
  --accent-light: #fbbf24;
  --text-color: #1f2937;
  --text-light: #6b7280;
  --bg-color: #ffffff;
  --bg-secondary: #f9fafb;
  --border-color: #e5e7eb;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Lexend', sans-serif !important;
  font-size: 18px !important;
  line-height: 1.7 !important;
  color: var(--text-color) !important;
  background-color: var(--bg-color) !important;
  min-height: 100vh;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Lexend', sans-serif !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  margin-bottom: 1.5rem !important;
  color: var(--text-color) !important;
}

h1 {
  font-size: 2.5rem !important;
  margin-bottom: 1.5rem !important;
}

h2 {
  font-size: 2rem !important;
  margin-top: 3rem !important;
  margin-bottom: 1.5rem !important;
}

h3 {
  font-size: 1.5rem !important;
  margin-top: 2rem !important;
  margin-bottom: 1rem !important;
}

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

/* Navigation */
.navbar {
  background-color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
  padding: 1rem 0 !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 1000 !important;
}

.navbar-brand {
  display: flex !important;
  align-items: center !important;
  gap: 0.75rem !important;
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  color: var(--primary-color) !important;
}

.navbar-brand img {
  width: 40px !important;
  height: 40px !important;
}

.navbar-menu a {
  font-size: 1rem !important;
  color: var(--text-color) !important;
  padding: 0.5rem 1rem !important;
  transition: all 0.3s ease !important;
  list-style: none !important;
}

.navbar-menu a:hover {
  color: var(--primary-color) !important;
  background-color: var(--bg-secondary) !important;
  border-radius: 6px !important;
}

.navbar-item {
  list-style: none !important;
}

.navbar-item::before,
.navbar-item::after {
  display: none !important;
  content: none !important;
}

.navbar-burger {
  color: var(--primary-color) !important;
}

/* CTA Button in Menu */
.cta-menu-button {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)) !important;
  color: white !important;
  border: none !important;
  padding: 0.75rem 1.5rem !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  font-size: 1rem !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  white-space: nowrap !important;
  text-align: center !important;
  display: inline-block !important;
}

.cta-menu-button:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4) !important;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #f3e8ff 0%, #fef3c7 100%) !important;
  padding: 4rem 0 !important;
  margin-bottom: 3rem !important;
}

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

.hero h1 {
  color: var(--text-color) !important;
  font-size: 2.5rem !important;
  font-weight: 700 !important;
  margin-bottom: 1.5rem !important;
}

.hero p {
  color: var(--text-color) !important;
  font-size: 1.125rem !important;
  margin-bottom: 1.2rem !important;
  line-height: 1.7 !important;
}

.hero-image {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.hero-image img {
  max-width: 100% !important;
  height: auto !important;
  border-radius: 12px !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
}

/* Conversion Buttons */
.cta-button {
  background: linear-gradient(135deg, var(--accent-color), var(--accent-light)) !important;
  color: #1f2937 !important;
  border: none !important;
  padding: 1rem 2.5rem !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  font-size: 1.125rem !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  white-space: nowrap !important;
  text-align: center !important;
  display: inline-block !important;
  margin-top: 1.5rem !important;
}

.cta-button:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4) !important;
}

/* Table of Contents */
.toc-container {
  margin: 2rem 0 3rem 0 !important;
  padding: 0 !important;
}

.toc-buttons {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.75rem !important;
  justify-content: center !important;
}

.toc-button {
  background-color: transparent !important;
  color: var(--primary-color) !important;
  border: 2px solid var(--primary-color) !important;
  padding: 0.75rem 1.5rem !important;
  border-radius: 6px !important;
  font-weight: 500 !important;
  font-size: 1rem !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  white-space: nowrap !important;
  text-align: center !important;
}

.toc-button:hover {
  background-color: var(--primary-color) !important;
  color: white !important;
}

/* Sections */
.section {
  padding: 3rem 0 !important;
}

.content-section {
  background-color: var(--bg-color) !important;
  padding: 2rem !important;
  margin-bottom: 2rem !important;
  border-radius: 12px !important;
}

/* Cards */
.card {
  background-color: white !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08) !important;
  padding: 2rem !important;
  margin-bottom: 1.5rem !important;
  border: 1px solid var(--border-color) !important;
  transition: all 0.3s ease !important;
}

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

.card h3 {
  color: var(--primary-color) !important;
  margin-top: 0 !important;
}

/* Lists */
ul, ol {
  margin-left: 0 !important;
  padding-left: 0 !important;
  list-style: none !important;
  margin-bottom: 1.5rem !important;
}

ul li, ol li {
  position: relative !important;
  padding-left: 2rem !important;
  margin-bottom: 0.75rem !important;
  font-size: 18px !important;
  line-height: 1.7 !important;
  list-style: none !important;
}

ul li::before {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  top: 0.6rem !important;
  width: 0 !important;
  height: 0 !important;
  border-top: 6px solid transparent !important;
  border-bottom: 6px solid transparent !important;
  border-left: 10px solid var(--accent-color) !important;
}

ol {
  counter-reset: custom-counter !important;
}

ol li::before {
  counter-increment: custom-counter !important;
  content: counter(custom-counter) !important;
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  background-color: var(--accent-color) !important;
  color: white !important;
  width: 1.5rem !important;
  height: 1.5rem !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
}

/* Navbar and Footer - NO markers */
.navbar ul,
.navbar ol,
.navbar li,
.footer ul,
.footer ol,
.footer li {
  list-style: none !important;
  padding-left: 0 !important;
}

.navbar li::before,
.navbar li::after,
.footer li::before,
.footer li::after {
  display: none !important;
  content: none !important;
}

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

table {
  width: 100% !important;
  border-collapse: collapse !important;
  background-color: white !important;
  font-size: 18px !important;
}

thead {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)) !important;
}

thead th {
  color: white !important;
  padding: 1rem !important;
  text-align: left !important;
  font-weight: 600 !important;
  font-size: 1rem !important;
}

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

tbody tr:hover {
  background-color: var(--bg-secondary) !important;
}

tbody td {
  padding: 1rem !important;
  color: var(--text-color) !important;
}

/* Images */
picture, img {
  display: block !important;
  max-width: 100% !important;
  height: auto !important;
  border-radius: 8px !important;
}

.content-section picture,
.content-section img {
  margin: 1.5rem 0 !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
}

/* Footer */
.footer {
  background-color: #1f2937 !important;
  color: white !important;
  padding: 3rem 0 1.5rem 0 !important;
  margin-top: 4rem !important;
}

.footer h4 {
  color: white !important;
  font-size: 1.25rem !important;
  margin-bottom: 1rem !important;
}

.footer a {
  color: #d1d5db !important;
  transition: color 0.3s ease !important;
  font-size: 1rem !important;
  list-style: none !important;
}

.footer a:hover {
  color: var(--accent-color) !important;
}

.footer-bottom {
  text-align: center !important;
  padding-top: 2rem !important;
  margin-top: 2rem !important;
  border-top: 1px solid #374151 !important;
  color: #9ca3af !important;
  font-size: 0.9rem !important;
}

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

.footer li {
  margin-bottom: 0.5rem !important;
  list-style: none !important;
  padding-left: 0 !important;
}

/* Bootstrap Icons Integration */
.bi {
  color: var(--primary-color) !important;
  font-size: 1.5rem !important;
  margin-right: 0.5rem !important;
}

/* Responsive Design */
@media screen and (max-width: 1023px) {
  .navbar-menu {
    background-color: white !important;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1) !important;
  }

  .navbar-menu.is-active {
    display: block !important;
  }

  h1 {
    font-size: 2rem !important;
  }

  h2 {
    font-size: 1.75rem !important;
  }

  h3 {
    font-size: 1.35rem !important;
  }
}

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

  h1 {
    font-size: 1.75rem !important;
  }

  h2 {
    font-size: 1.5rem !important;
  }

  h3 {
    font-size: 1.25rem !important;
  }

  p, ul li, ol li, tbody td {
    font-size: 16px !important;
  }

  .hero {
    padding: 2rem 0 !important;
  }

  .section {
    padding: 2rem 0 !important;
  }

  .card {
    padding: 1.5rem !important;
  }

  .cta-button {
    padding: 0.875rem 2rem !important;
    font-size: 1rem !important;
  }

  .toc-buttons {
    flex-direction: column !important;
  }

  .toc-button {
    width: 100% !important;
  }
}

/* Contrast and Readability */
.has-background-light {
  background-color: var(--bg-secondary) !important;
}

.has-text-dark {
  color: var(--text-color) !important;
}

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

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

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