/* Layout Structure */
.container {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: 320px;
  background: #ffffff;
  color: #111;
  padding: 0 20px;
  position: fixed;
  left: 260px;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 100;
}

.sidebar-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: center;
}

.sidebar-header {
  margin-bottom: 50px;
}

.sidebar-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  line-height: 1.3;
}

.sidebar-subtitle {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.6;
  color: #666;
  margin-bottom: 20px;
}

.sidebar-tagline {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #999;
  opacity: 0.9;
}

/* Navigation */
.sidebar-nav {
  margin-bottom: 0;
}

.nav-item {
  display: block;
  padding: 8px 0;
  font-size: 13px;
  font-weight: 500;
  color: #666;
  cursor: pointer;
  transition: all 0.3s ease;
  border-left: 2px solid transparent;
  padding-left: 12px;
}

.nav-item:hover {
  opacity: 1;
  color: #111;
}

.nav-item.active {
  opacity: 1;
  color: #111;
  border-left-color: #111;
}

.nav-number {
  font-weight: 700;
  color: #999;
  margin-right: 8px;
}

/* Sidebar Footer */
.sidebar-footer {
  border-top: 1px solid #e0e0e0;
  padding-top: 20px;
  font-size: 11px;
  font-weight: 400;
  opacity: 0.6;
  line-height: 1.6;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 20px;
  left: 180px;
  z-index: 200;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  color: #111;
  font-size: 24px;
  cursor: pointer;
  padding: 10px;
  border-radius: 4px;
}

/* Main Content Area */
.main-content {
  margin-left: 660px;
  flex: 1;
  background: #ffffff;
}

.content-inner {
  max-width: 900px;
  padding: 80px 60px;
  margin: 0 auto;
}

/* Section Styles */
.section {
  margin-bottom: 32px;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 28px;
}

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

.section-header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  cursor: pointer;
  user-select: none;
  margin-bottom: 0;
  padding: 20px 0;
  transition: background 0.2s ease;
}

.section-header:hover {
  opacity: 0.85;
}

.section-number {
  font-size: 32px;
  font-weight: 400;
  color: #999;
  line-height: 1;
  min-width: 48px;
}

.section-header-content {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.section-title {
  font-size: 18px;
  font-weight: 700;
  color: #111;
  line-height: 1.3;
}

.section-toggle {
  font-size: 20px;
  font-weight: 400;
  color: #999;
  cursor: pointer;
  user-select: none;
  line-height: 1;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.section-toggle.collapsed {
  transform: rotate(0deg);
}

.section-toggle.expanded {
  transform: rotate(0deg);
}

.section-body {
  display: none;
  padding-left: 48px;
  padding-top: 20px;
}

.section-body.visible {
  display: block;
}

.section-body p {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 20px;
  color: #333;
}

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

/* Subtitles */
.subtitle {
  font-size: 15px;
  font-weight: 700;
  color: #333;
  margin-top: 24px;
  margin-bottom: 16px;
}

/* Special Boxes */
.box {
  padding: 20px;
  margin: 24px 0;
  border-radius: 4px;
  font-size: 15px;
  line-height: 1.7;
}

.box p {
  margin-bottom: 12px;
  font-size: 15px;
}

.box p:last-child {
  margin-bottom: 0;
}

.key-insight {
  background: #f7f7f7;
  border-left: 3px solid #111;
}

.pro-tip {
  background: #f5f5f5;
  border-left: 3px solid #1a1a1a;
}

.common-mistake {
  background: #ffe6e6;
  border-left: 3px solid #d32f2f;
}

/* Tables */
.table-wrapper {
  overflow-x: auto;
  margin: 24px 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.6;
}

thead {
  background: #f9f9f9;
}

th {
  padding: 16px 12px;
  text-align: left;
  font-weight: 700;
  color: #333;
  border-bottom: 2px solid #e8e8e8;
}

td {
  padding: 16px 12px;
  border-bottom: 1px solid #f0f0f0;
  color: #333;
}

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

tbody tr:hover {
  background: #f5f5f5;
}

/* Before/After Comparison */
.comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 24px 0;
}

.comparison-box {
  padding: 20px;
  border-radius: 4px;
  font-size: 14px;
  line-height: 1.6;
}

.comparison-label {
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
  display: block;
}

.before {
  background: #fff0f0;
  border: 1px solid #ffcccc;
}

.after {
  background: #f0fff0;
  border: 1px solid #ccffcc;
}

/* Do/Don't Table */
.do-dont {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 24px 0;
}

.do-dont-box {
  padding: 16px;
  border-radius: 4px;
  font-size: 14px;
  line-height: 1.6;
}

.do-section {
  background: #f0fff0;
  border-left: 4px solid #4caf50;
}

.dont-section {
  background: #ffe6e6;
  border-left: 4px solid #d32f2f;
}

.do-dont-label {
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
  display: block;
}

.do-dont-item {
  font-size: 14px;
  margin-bottom: 8px;
  padding-left: 20px;
  position: relative;
}

.do-dont-item:before {
  content: '\2713';
  position: absolute;
  left: 0;
  font-weight: 700;
}

.dont-section .do-dont-item:before {
  content: '\2715';
  color: #d32f2f;
}

.do-section .do-dont-item:before {
  color: #4caf50;
}

/* Blockquote */
.blockquote {
  font-style: italic;
  padding: 20px;
  background: #f9f9f9;
  border-left: 4px solid #111;
  margin: 24px 0;
  font-size: 15px;
  line-height: 1.7;
  color: #555;
}

/* Checklists */
.checklist {
  margin: 24px 0;
}

.checklist-group {
  margin-bottom: 24px;
}

.checklist-group-title {
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #333;
  margin-bottom: 12px;
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  font-size: 15px;
  line-height: 1.5;
}

.checklist-item input[type="checkbox"] {
  margin-top: 4px;
  cursor: pointer;
  width: 18px;
  height: 18px;
  accent-color: #111;
  flex-shrink: 0;
}

.checklist-item label {
  cursor: pointer;
  flex: 1;
  color: #333;
}

.checklist-item input[type="checkbox"]:checked + label {
  opacity: 0.6;
  text-decoration: line-through;
}

/* Reference Card */
.reference-card {
  background: #f5f5f5;
  color: #111;
  padding: 40px;
  border-radius: 4px;
  margin: 24px 0;
}

.reference-card-item {
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid #e0e0e0;
}

.reference-card-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.reference-card-title {
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #111;
  margin-bottom: 8px;
}

.reference-card-text {
  font-size: 15px;
  line-height: 1.6;
  opacity: 0.95;
}

.golden-rule {
  background: #f5f5f5;
  color: #111;
  padding: 30px;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
  margin: 40px 0;
  text-align: center;
}

.reference-footer {
  font-size: 12px;
  opacity: 0.6;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #e0e0e0;
}

/* Controls */
.controls {
  display: flex;
  gap: 12px;
  margin-bottom: 40px;
  position: sticky;
  top: 0;
  background: #ffffff;
  padding: 20px 0;
  z-index: 50;
}

.btn {
  padding: 8px 16px;
  border: 1px solid #e0e0e0;
  background: #fff;
  color: #666;
  font-family: 'Circular Std', sans-serif;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  border-radius: 2px;
  transition: all 0.2s ease;
}

.btn:hover {
  background: #f5f5f5;
  color: #111;
}

/* Three-Step Strategy */
.strategy-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 24px 0;
}

.strategy-step {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 4px;
  border-left: 4px solid #111;
}

.strategy-step-title {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 10px;
  color: #333;
}

.strategy-step-content {
  font-size: 14px;
  line-height: 1.6;
  color: #555;
}

/* Lists */
.section-body ul {
  margin: 20px 0 20px 20px;
}

.section-body li {
  margin-bottom: 10px;
  font-size: 15px;
  line-height: 1.6;
}

.section-body ol {
  margin: 20px 0 20px 20px;
}

/* Email Template */
.email-template {
  background: #f5f5f5;
  padding: 20px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  line-height: 1.8;
  margin: 24px 0;
  color: #333;
}

/* Responsive Design */
@media (max-width: 768px) {
  .sidebar {
    width: 320px;
    height: auto;
    position: fixed;
    top: 48px;
    left: 0;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    padding: 60px 40px;
    z-index: 150;
    max-height: 100vh;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .mobile-menu-toggle {
    display: block;
    left: 20px;
  }

  .main-content {
    margin-left: 0;
  }

  .content-inner {
    padding: 40px 24px;
    padding-top: 60px;
  }

  .section-number {
    font-size: 24px;
    min-width: 36px;
  }

  .section-title {
    font-size: 16px;
  }

  .section-body {
    padding-left: 32px;
  }

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

  .do-dont {
    grid-template-columns: 1fr;
  }

  .controls {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}

@media (max-width: 900px) {
  .footer-community {
    flex-direction: column;
    gap: 24px;
  }

  .footer-subscribe input[type="email"] {
    width: 180px;
  }

  .sidebar {
    left: 0;
    width: 320px;
    padding: 60px 40px;
  }

  .main-content {
    margin-left: 0;
  }

  .mobile-menu-toggle {
    left: 20px;
  }

  .side-nav {
    display: none;
  }

  .site-footer {
  }

  .footer-inner {
    padding: 30px 24px 0;
  }

  .cookie-banner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
    padding: 16px 24px;
  }

  .cookie-banner-btn {
    margin-left: 0;
  }
}
