/* CSS Variables - Design System */
:root {
  --color-bg: #ffffff;
  --color-text: #2f2e2c;
  --color-white: #ffffff;
  --color-muted: #6b7280;
  --color-primary: #159967;
  --color-border: rgba(0, 0, 0, 0.1);

  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --container-max: 1000px;
  --container-padding: 1.5rem;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: 'Google Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100%;
}


/* Container */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* Header */
.site-header {
  background: #ffffff !important;
  border-bottom: none !important;
  padding: 0.75rem 0;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: none !important;
}

header.site-header {
  background: #ffffff !important;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none !important;
  color: var(--color-text);
  cursor: pointer;
}

.logo-link:hover {
  text-decoration: none !important;
}

.logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  transition: opacity 0.2s;
}

.logo:hover {
  opacity: 0.8;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 800;
  font-family: 'Google Sans', 'Inter', sans-serif;
  color: #000000;
  outline: none;
  text-decoration: none !important;
  line-height: 1.2;
  display: inline-block;
}

a.logo-link,
a.logo-link:visited,
a.logo-link:hover,
a.logo-link:active {
  text-decoration: none !important;
}

.main-nav ul {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  align-items: center;
  margin: 0;
  padding: 0;
}

.main-nav a {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  font-family: 'Google Sans', 'Inter', sans-serif;
  padding: 0.5rem 1rem;
  border-radius: 12px;
  transition: all 0.3s ease;
  text-transform: capitalize;
  box-shadow: none;
  position: relative;
  overflow: hidden;
}

.main-nav a:hover {
  background-color: rgba(81, 112, 255, 0.1);
  color: var(--color-text);
  box-shadow: none;
}

.main-nav a:focus {
  background-color: rgba(81, 112, 255, 0.2);
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  box-shadow: none;
}

/* Breadcrumbs */
.breadcrumb {
  padding: var(--spacing-md) 0;
  font-size: 0.875rem;
}

.breadcrumb ol {
  display: flex;
  gap: var(--spacing-xs);
  list-style: none;
  flex-wrap: wrap;
}

.breadcrumb li {
  display: flex;
  align-items: center;
}

.breadcrumb li::after {
  content: "/";
  margin-left: var(--spacing-xs);
  color: var(--color-muted);
}

.breadcrumb li:last-child::after {
  content: "";
}

.breadcrumb a {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb span {
  color: var(--color-muted);
}

/* Main Content */
main {
  padding: var(--spacing-xl) 0;
  min-height: 60vh;
}

/* Tutorial Article */
.tutorial-article {
  background: var(--color-white);
  border-radius: 0;
  padding: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
  border: none;
  box-shadow: none;
}

/* Hero Section */
.tutorial-hero {
  margin-top: 2rem;
  margin-bottom: 5rem;
  text-align: center;
}

.tutorial-hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: var(--spacing-md);
  line-height: 1.2;
  color: var(--color-text);
}

.tutorial-hero .lead {
  font-size: 1.25rem;
  color: var(--color-muted);
  margin-bottom: var(--spacing-lg);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Info Section */
.info-section {
  margin-bottom: 5rem;
  text-align: left;
  width: 100%;
}

.info-paragraph {
  font-size: 1.125rem;
  color: var(--color-muted);
  line-height: 1.7;
  margin: 0;
  max-width: 100%;
  font-weight: 400;
  font-family: 'Google Sans', 'Inter', sans-serif;
  width: 100%;
  box-sizing: border-box;
}

.hero-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin: 0 auto;
  display: block;
}

.hero-video {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin: 0 auto;
  display: block;
}

/* Table of Contents */
.table-of-contents {
  background: transparent;
  border-radius: 8px;
  padding: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
  border: none;
  box-shadow: none;
}

.table-of-contents h2 {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-md);
}

.table-of-contents ol {
  list-style: decimal;
  padding-left: var(--spacing-lg);
}

.table-of-contents li {
  margin-bottom: var(--spacing-sm);
}

.table-of-contents a {
  color: var(--color-primary);
  text-decoration: none;
}

.table-of-contents a:hover {
  text-decoration: underline;
}

/* Tutorial Steps */
.tutorial-steps {
  margin-bottom: var(--spacing-xl);
}

.step {
  margin-bottom: var(--spacing-xl);
  padding-bottom: var(--spacing-xl);
  border-bottom: 1px solid var(--color-border);
}

.step:last-child {
  border-bottom: none;
}

.step h3 {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: var(--spacing-md);
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: 50%;
  font-size: 1.25rem;
  font-weight: 700;
  flex-shrink: 0;
}

.step-content {
  margin-bottom: var(--spacing-md);
}

.step-content p {
  margin-bottom: var(--spacing-md);
  font-size: 1.125rem;
}

.step-content ul {
  list-style: disc;
  padding-left: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
}

.step-content li {
  margin-bottom: var(--spacing-xs);
}

.step-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--color-border);
}

/* Tips & Best Practices */
.tips-section,
.issues-section {
  background: var(--color-white);
  border-radius: 8px;
  padding: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
  border: 1px solid var(--color-border);
  box-shadow: none;
}

.tips-section h2,
.issues-section h2 {
  font-size: 1.75rem;
  margin-bottom: var(--spacing-md);
}

.tips-section ul,
.issues-section ul {
  list-style: disc;
  padding-left: var(--spacing-lg);
}

.tips-section li,
.issues-section li {
  margin-bottom: var(--spacing-md);
  font-size: 1.125rem;
}

.tips-section strong,
.issues-section strong {
  color: var(--color-primary);
}

/* Related Tutorials */
.related-tutorials {
  margin-bottom: 6rem;
  width: 100%;
}

.related-tutorials h2 {
  font-size: 1.75rem;
  margin-bottom: var(--spacing-lg);
  text-align: center;
}

.tutorial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-md);
  width: 100%;
  box-sizing: border-box;
}

.tutorial-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: var(--color-text);
  transition: all 0.3s ease;
  box-shadow: none;
}

.tutorial-card:hover {
  transform: translateY(-2px);
  box-shadow: none;
  border-color: var(--color-border);
}

.tutorial-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.tutorial-card-content {
  padding: 1rem;
}

.tutorial-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--color-text);
}

.tutorial-card p {
  color: var(--color-muted);
  font-size: 0.875rem;
  line-height: 1.5;
}

/* CTA Section - full width (edge to edge) like subtitle-styles.html */
.cta-section {
  background: #159967;
  color: var(--color-white);
  border-radius: var(--radius-md);
  padding: var(--spacing-xl);
  text-align: center;
  border: none;
  margin-top: 2.5rem;
}

.cta-section h2 {
  font-size: 2rem;
  margin-bottom: var(--spacing-md);
  font-weight: 700;
  color: var(--color-white);
}

.cta-section p {
  font-size: 1.125rem;
  margin-bottom: var(--spacing-lg);
  color: rgba(255, 255, 255, 0.9);
}

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

.btn {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  border-radius: 24px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.875rem;
  text-transform: none;
  box-shadow: none;
  font-family: 'Google Sans', 'Inter', sans-serif;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-primary {
  background: var(--color-white);
  color: #000000;
}

.btn-primary:hover {
  background: rgba(255, 255, 255, 0.9);
}

.btn-secondary {
  background: transparent;
  color: var(--color-white);
  border: 2px solid var(--color-white);
  border-radius: 24px;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--color-white);
}

/* Footer */
.site-footer {
  background: transparent;
  color: var(--color-text);
  padding: 4rem 0 3rem 0;
  margin-top: 4rem;
  border-radius: 20px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  box-sizing: border-box;
}

.site-footer .container {
  width: 100%;
  max-width: 100%;
  padding: 0 2rem;
  box-sizing: border-box;
}

.site-footer .footer-content {
  display: grid !important;
  grid-template-columns: repeat(5, 1fr) !important;
  gap: 0.5rem !important;
  margin-bottom: var(--spacing-xl);
  text-align: left;
  width: 100%;
  box-sizing: border-box;
}

.footer-content {
  display: grid !important;
  grid-template-columns: repeat(5, 1fr) !important;
  gap: 0.5rem !important;
  margin-bottom: var(--spacing-xl);
  text-align: left;
  width: 100%;
  box-sizing: border-box;
}

.footer-section {
  min-width: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box;
  overflow: hidden;
}


.footer-brand h3 {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--color-text);
  margin-bottom: 0;
  font-family: 'Google Sans', 'Inter', sans-serif;
  text-shadow: 0.5px 0.5px 0.5px rgba(0, 0, 0, 0.1);
  letter-spacing: -0.02em;
  -webkit-font-smoothing: antialiased;
}

.footer-section h3 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 1rem;
  font-family: 'Google Sans', 'Inter', sans-serif;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-section li {
  margin: 0;
  font-size: 0.8rem;
  color: var(--color-muted);
  line-height: 1.4;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.footer-section:last-child li {
  font-size: 0.75rem;
  line-height: 1.3;
}

.footer-section a {
  color: var(--color-muted);
  text-decoration: none;
  transition: color 0.2s;
  font-size: 0.8rem;
}

.footer-section a:hover {
  color: var(--color-primary);
}

.footer-bottom {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding-top: 2.5rem;
  border-top: 1px solid var(--color-border);
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-bottom p {
  color: var(--color-muted);
  font-size: 0.875rem;
  margin: 0;
}

.footer-policies {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-policies a {
  color: var(--color-muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-policies a:hover {
  color: var(--color-primary);
}

/* Responsive Footer */
@media (max-width: 1024px) {
  .footer-content {
    grid-template-columns: repeat(3, 1fr) !important;
  }

  .footer-brand {
    grid-column: 1 / -1;
    margin-bottom: 1rem;
  }
}

@media (max-width: 768px) {
  .site-footer {
    border-radius: 20px;
    padding: 3rem 1.5rem 2rem 1.5rem;
    margin: 2rem 1rem 0 1rem;
  }

  .footer-content {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem !important;
  }

  .footer-brand {
    grid-column: 1 / -1;
    margin-bottom: 1rem;
  }

  .footer-brand h3 {
    font-size: 1.2rem;
  }

  .footer-section h3 {
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
  }

  .footer-section ul {
    gap: 0.5rem;
  }

  .footer-section li,
  .footer-section a {
    font-size: 0.75rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    padding-top: 2rem;
    gap: 1.5rem;
  }

  .footer-policies {
    gap: 1rem;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .tutorial-hero h1 {
    font-size: 2rem;
  }

  .tutorial-hero .lead {
    font-size: 1.125rem;
  }

  .main-nav ul {
    gap: 0.25rem;
    font-size: 0.8rem;
  }

  .main-nav a {
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
  }

  .tutorial-article {
    padding: var(--spacing-md);
  }

  .step h3 {
    font-size: 1.5rem;
  }

  .step-number {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .tutorial-grid {
    grid-template-columns: 1fr;
  }

  .info-paragraph {
    font-size: 1rem;
  }
}
