/* Base reset */
* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif;
  line-height: 1.6;
  color: #0f172a;
  margin: 0;
  background: #f8fafc
}

a {
  color: #0ea5e9;
  text-decoration: none
}

a:hover {
  text-decoration: underline
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px
}

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #0b1220;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, .1)
}

.header .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px
}

.brand {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: .2px;
  display: flex;
}

.brand img {
  width: 160px;
  height: auto;
}

.nav {
  margin-left: auto;
  display: flex;
  gap: 14px;
  flex-wrap: wrap
}

.nav a {
  color: #cbd5e1;
  font-size: 14px
}

.nav a.active {
  color: #fff;
  text-decoration: underline
}

/* Hero Section */
.page-hero {
  background: linear-gradient(135deg, #0b1220 0%, #1a2942 100%);
  padding: 60px 0;
  color: #fff;
  margin-bottom: 40px;
}

.hero-wrapper {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.hero-title {
  font-size: 36px;
  font-weight: 700;
  margin: 0 0 20px 0;
  line-height: 1.2;
  color: #fff;
}

.hero-description {
  font-size: 17px;
  line-height: 1.6;
  margin: 0 0 30px 0;
  color: #cbd5e1;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-hero {
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s;
  font-size: 14px;
  display: inline-block;
}

.btn-primary {
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.4);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(14, 165, 233, 0.5);
  text-decoration: none;
}

.btn-secondary {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  text-decoration: none;
}

/* Main Content */
.page-main {
  padding: 0 0 40px 0;
}

.author-box {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 30px;
}

.author-image {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 3px solid #0ea5e9;
}

.author-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-text {
  font-size: 14px;
  line-height: 1.6;
}

.content-grid {
  display: grid;
  gap: 30px;
}

.content-card {
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid #e2e8f0;
}

.card-body h2 {
  font-size: 28px;
  margin: 24px 0 16px 0;
  color: #1e293b;
  font-weight: 700;
  padding-bottom: 12px;
  border-bottom: 2px solid #e2e8f0;
}

.card-body h3 {
  font-size: 22px;
  margin: 24px 0 16px 0;
  color: #334155;
  font-weight: 600;
}

.card-body p {
  margin: 0 0 16px 0;
  line-height: 1.7;
  color: #334155;
}

.card-body ul,
.card-body ol {
  margin: 16px 0;
  padding-left: 24px;
}

.card-body li {
  margin: 8px 0;
  line-height: 1.6;
  color: #334155;
}

.card-body strong {
  font-weight: 600;
  color: #1e293b;
}

.card-body a {
  color: #0ea5e9;
  text-decoration: underline;
  transition: color 0.2s;
}

.card-body a:hover {
  color: #0284c7;
  text-decoration: underline;
}

/* FAQ accordion */
.faq .item {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  margin: 10px 0;
  background: #fff
}

.faq .q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 14px 16px;
  background: #f1f5f9;
  border-radius: 12px;
  cursor: pointer
}

.faq .a {
  display: none;
  padding: 14px 16px
}

.faq .item.open .a {
  display: block
}

/* Footer */
.footer {
  margin-top: 32px;
  color: #64748b;
  text-align: center;
  font-size: 13px;
  padding: 24px
}

code,
pre {
  background: #f1f5f9;
  border-radius: 8px;
  padding: .2em .4em
}

table {
  border-collapse: collapse;
  width: 100%;
  margin: 20px 0;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

td,
th {
  border: 2px solid #e2e8f0;
  padding: 12px 16px;
  text-align: left;
}

thead td,
thead th {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  color: #fff;
  font-weight: 600;
  border-color: #475569;
}

tbody tr:nth-child(even) {
  background: #f8fafc;
}

tbody tr:hover {
  background: #f1f5f9;
}

th {
  background: #f1f5f9;
  font-weight: 600;
  color: #1e293b;
}

tr:hover {
  background: #f8fafc;
}

/* ------------------------------ */
/* Mobile navigation and burger  */
/* These styles add a hamburger button for small screens and toggle the primary navigation. */

/* Base burger button: hidden by default on larger screens */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 24px;
  height: 24px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.burger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #fff;
}

/* Ensure the burger is hidden on larger screens */
@media (min-width: 769px) {
  .burger {
    display: none;
  }
}

/* Responsive adjustments for screens 768px and narrower */
@media (max-width: 768px) {

  .btns-group a {
    min-width: auto !important;
  }

  /* Allow header content to wrap so nav appears on a new row */
  .header .wrap {
    flex-wrap: wrap;
  }

  /* Hide nav by default and stack its links vertically when shown */
  .nav {
    display: none;
    flex-direction: column;
    gap: 4px;
    width: 100%;
    margin-left: 0;
    padding: 8px 0;
    background: #0b1220;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  /* Show nav when it has .open class, toggled via JS */
  .nav.open {
    display: flex;
  }

  /* Style nav links for mobile */
  .nav a {
    padding: 8px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
  }

  /* Display the burger button and push it to the right */
  .burger {
    display: flex;
    margin-left: auto;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 28px;
  }
  
  .hero-description {
    font-size: 15px;
  }
  
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .btn-hero {
    width: 100%;
    max-width: 300px;
  }
  
  .content-card {
    padding: 20px;
  }
  
  .author-box {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
}