:root {
  --forest: #1a3a32;
  --cream: #fbf8f3;
  --cream-dark: #f5f0e8;
  --orange: #d4774b;
  --text: #1a1a1a;
  --text-muted: #666;
  --border: #e5e0d8;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

.header {
position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1rem 2rem;
}

.header-container {
width: 80%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 100px;
    padding: 0.75rem 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 1.25rem;
}

.nav {
  display: flex;
  gap: 2rem;
  font-size: 0.95rem;
}
.nav a {
    color: #374151;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}
.nav a:hover { color: var(--forest); }
.nav-blog { font-weight: 600; color: var(--forest); }

.header-actions { display: flex; gap: 1rem; align-items: center; }
.btn-login { 
  font-size: 0.9rem;
    font-weight: 600;
}
.btn-start {
  background: var(--forest);
  color: white;
  padding: 0.625rem 1.25rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

main { min-height: 60vh; margin-top: 5rem;}

/* Hero Section */
.hero {
  padding: 3rem 2rem 1rem 2rem;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: white;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.hero-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--orange);
  border-radius: 50%;
}

.hero h1 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 3.5rem;
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* Category Nav */
.category-nav {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  padding: 0 2rem 3rem;
  flex-wrap: wrap;
}

.category-nav a {
  padding: 0.6rem 1.25rem;
  border-radius: 2rem;
  font-size: 0.9rem;
  font-weight: 500;
  background: white;
  border: 1px solid var(--border);
  transition: all 0.2s;
}

.category-nav a:hover,
.category-nav a.active {
  background: var(--forest);
  color: white;
  border-color: var(--forest);
}

/* Featured Article */
.featured {
  max-width: 1000px;
  margin: 0 auto 4rem;
  padding: 0 2rem;
}

.featured-card {
  background: white;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.featured-image {
  background: #1a3a320a;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.featured-image img{
      width: 100%;
    height: 100%;
    object-fit: contain;
}
.featured-image svg {
  width: 80px;
  height: 80px;
  color: white;
  opacity: 0.5;
}

.featured-content {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--orange);
  font-weight: 600;
  margin-bottom: 1rem;
}

.featured-label::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--orange);
  border-radius: 50%;
}

.featured-content h2 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.featured-content p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.featured-meta {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Article Grid */
.articles-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem 5rem;
}

.articles-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.articles-header h2 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 1.75rem;
  font-weight: 400;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
}

.article-card {
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.article-thumb{
    background: #fff;
    height: 410px;
    width: 100%;
    border-radius: 0.75rem;
    overflow: hidden;
    margin: 0 0 30px 0;
}
.article-thumb img {
  width: 100%;
    height: 100% !important;
    object-fit: contain;
    margin: 0 !important;
}

.article-card-image {
  height: 180px;
  background: #1a3a320a;
  display: flex;
  align-items: center;
  justify-content: center;
}
.article-card-image img {
  width: 100%;
    height: 100%;
    object-fit: fill;
}

.article-card-image svg {
  width: 48px;
  height: 48px;
  color: white;
  opacity: 0.4;
}

.article-card-content {
  padding: 1.5rem;
}

.article-category {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--orange);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.article-card-content h3 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

.article-card-content p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Single Article */
.article-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
}

.article-page .back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.article-page .back-link:hover { color: var(--forest); }

.article-header {
  text-align: center;
  margin-bottom: 3rem;
}

.article-header .article-category { margin-bottom: 1rem; }

.article-header h1 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 3rem;
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.article-header .article-meta {
  font-size: 0.95rem;
}

.article-body {
  font-size: 1.1rem;
  line-height: 1.8;
}

.article-body h2 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 1.75rem;
  margin: 2.5rem 0 1rem;
}

.article-body h3 {
  font-size: 1.25rem;
  margin: 2rem 0 0.75rem;
}

.article-body p { margin-bottom: 1.5rem; }
.article-body ul { margin: 0 0 1.5rem 1.5rem; }
.article-body li { margin-bottom: 0.5rem; }
.article-body code {
  background: var(--cream-dark);
  padding: 0.2em 0.4em;
  border-radius: 4px;
  font-size: 0.9em;
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
}

.article-body pre {
  background: #1e1e1e;
  color: #d4d4d4;
  padding: 1.25rem;
  border-radius: 0.75rem;
  overflow-x: auto;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  line-height: 1.6;
  border: 1px solid rgba(0,0,0,0.1);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.article-body pre code {
  background: none;
  padding: 0;
  border-radius: 0;
  font-size: inherit;
  color: inherit;
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
}

/* Code block wrapper with copy button */
.code-block-wrapper {
  position: relative;
  margin-bottom: 1.5rem;
}

.code-block-wrapper pre {
  margin-bottom: 0;
}

.copy-btn {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.75rem;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
  opacity: 0;
}

.code-block-wrapper:hover .copy-btn {
  opacity: 1;
}

.copy-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.copy-btn.copied {
  background: rgba(34, 197, 94, 0.2);
  border-color: rgba(34, 197, 94, 0.4);
  color: #4ade80;
}

.copy-btn svg {
  flex-shrink: 0;
}

/* Tables */
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  background: white;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  font-size: 0.95rem;
}

.article-body thead {
  background: var(--forest);
  color: white;
}

.article-body th {
  padding: 1rem 1.25rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.article-body td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.article-body tbody tr:last-child td {
  border-bottom: none;
}

.article-body tbody tr:hover {
  background: var(--cream-dark);
}

/* Blockquotes */
.article-body blockquote {
  border-left: 4px solid var(--orange);
  background: white;
  padding: 1.25rem 1.5rem;
  margin: 0 0 1.5rem 0;
  border-radius: 0 0.5rem 0.5rem 0;
  font-style: italic;
  color: var(--text-muted);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.article-body blockquote p:last-child {
  margin-bottom: 0;
}

/* Info/Note boxes */
.article-body .note,
.article-body .info,
.article-body .warning,
.article-body .tip {
  padding: 1rem 1.25rem;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.article-body .note,
.article-body .info {
  background: #e8f4fd;
  border-left: 4px solid #0969da;
}

.article-body .warning {
  background: #fff8e6;
  border-left: 4px solid #d4a72c;
}

.article-body .tip {
  background: #e6f9ed;
  border-left: 4px solid #1a7f37;
}

/* Horizontal rule */
.article-body hr {
  border: none;
  height: 1px;
  background: var(--border);
  margin: 2.5rem 0;
}

/* Images */
.article-body img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
  margin: 1.5rem 0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

/* Definition lists */
.article-body dl {
  margin-bottom: 1.5rem;
}

.article-body dt {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.article-body dd {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-muted);
}

/* Keyboard keys */
.article-body kbd {
  background: var(--cream-dark);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.15em 0.4em;
  font-size: 0.85em;
  font-family: inherit;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.article-body a {
  color: var(--forest);
  text-decoration: none;
}

/* Related Articles */
.related {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
}

.related h2 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
}

/* Category Page */
.category-header {
  text-align: center;
  padding: 4rem 2rem 3rem;
}

.category-header h1 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 2.5rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
}

.category-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* Footer */
.footer {
  background: var(--forest);
  color: white;
  padding: 4rem 0 2rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-text {
  font-style: italic;
  color: rgba(255,255,255,0.8);
  margin-bottom: 3rem;
  font-size: 1.1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 4rem;
}

.footer-column h3 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.6);
  margin-bottom: 1rem;
}

.footer-column ul { list-style: none; }
.footer-column li { margin-bottom: 0.75rem; }
.footer-column a {
  color: rgba(255,255,255,0.9);
  font-size: 0.95rem;
  transition: color 0.2s;
}
.footer-column a:hover { color: white; }

.footer-giant-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin: 3rem 0;
  opacity: 0.9;
}

.giant-logo-icon svg {
  width: 100px;
  height: 100px;
}

.giant-logo-text {
  font-size: 6rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.footer-social a {
  color: rgba(255,255,255,0.7);
  transition: color 0.2s;
}
.footer-social a:hover { color: white; }
.footer-social svg { width: 24px; height: 24px; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
}

/* Responsive */
@media (max-width: 900px) {
  .featured-card { grid-template-columns: 1fr; }
  .featured-image { min-height: 200px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .giant-logo-text { font-size: 3rem; }
  .giant-logo-icon svg { width: 60px; height: 60px; }
}

@media (max-width: 600px) {
  .header-container { padding: 1rem; }
  .nav { display: none; }
  .hero { padding: 3rem 1.5rem; }
  .hero h1 { font-size: 2.25rem; }
  .articles-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}

/* CardGroup Component */
.card-group {
  display: grid;
  grid-template-columns: repeat(var(--card-cols, 3), 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

.doc-card {
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--border);
  border-top: 3px solid var(--card-border-color, #10b981);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

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

.doc-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--card-border-color, #10b981);
  padding: 1.25rem 1.25rem 0.75rem;
}

.doc-card-image {
  background: #1a1a1a;
  margin: 0 1.25rem;
  border-radius: 0.5rem;
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.doc-card-image img,
.doc-card-image video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.doc-card-stats {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.doc-card-stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.doc-card-stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.doc-card-stat-value {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--card-border-color, #10b981);
  line-height: 1.1;
}

.doc-card-progress {
  padding: 0 1.25rem 1.25rem;
  margin-top: auto;
}

.doc-card-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.doc-card-progress-header span:first-child {
  color: var(--text-muted);
}

.doc-card-progress-bar {
  height: 6px;
  background: var(--cream-dark);
  border-radius: 3px;
  overflow: hidden;
}

.doc-card-progress-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.3s ease;
}

@media (max-width: 900px) {
  .card-group {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .card-group {
    grid-template-columns: 1fr;
  }
}
