/* ==========================================================================
   Ücretsiz Program İndir - IDM İndir ve Kullanım Rehberi Stylesheet
   Color Palette:
   - Primary Red: #E53935
   - Dark Red: #C62828
   - Background: #FFFFFF
   - Secondary Background: #F8F8F8
   - Main Text: #333333
   - Secondary Text: #666666
   - Light Borders: #EEEEEE
   ========================================================================== */

:root {
  --primary-red: #E53935;
  --dark-red: #C62828;
  --hover-red: #D32F2F;
  --light-red-bg: #FFEBEE;
  --subtle-red-tint: #FFF5F5;
  --border-red: #FFCDD2;
  
  --bg-white: #FFFFFF;
  --bg-secondary: #F8F8F8;
  --bg-card: #FFFFFF;
  --bg-alt: #F4F6F8;
  
  --text-main: #333333;
  --text-secondary: #666666;
  --text-muted: #888888;
  --border-light: #EEEEEE;
  --border-medium: #E0E0E0;
  
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-red: 0 4px 14px rgba(229, 57, 53, 0.25);
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 9999px;
  
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --container-max-width: 1200px;
  --article-measure: 800px;
}

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

html {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-main);
  background-color: var(--bg-white);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-secondary);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
   Reading Progress Bar
   ========================================================================== */
#progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: linear-gradient(90deg, var(--dark-red), var(--primary-red));
  z-index: 9999;
  transition: width 0.1s ease-out;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  background-color: var(--bg-white);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.header-inner {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  transition: opacity 0.2s;
}

.brand-logo:hover {
  opacity: 0.9;
}

.brand-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: var(--shadow-red);
}

.brand-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.brand-title-wrap {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  color: var(--dark-red);
  font-weight: 800;
  font-size: 1.2rem;
}

.brand-tagline {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.main-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 1.25rem;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
}

.nav-link:hover {
  color: var(--primary-red);
  background-color: var(--light-red-bg);
}

.nav-link.active {
  color: var(--primary-red);
  font-weight: 700;
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  padding: 0.5rem;
  cursor: pointer;
  color: var(--text-main);
}

.mobile-nav-toggle svg {
  width: 24px;
  height: 24px;
  display: block;
}

/* ==========================================================================
   Breadcrumb Bar
   ========================================================================== */
.breadcrumb-container {
  max-width: var(--container-max-width);
  margin: 1rem auto 0;
  padding: 0 1.5rem;
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.breadcrumb-item a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb-item a:hover {
  color: var(--primary-red);
  text-decoration: underline;
}

.breadcrumb-separator {
  color: var(--border-medium);
  user-select: none;
}

.breadcrumb-item.current {
  color: var(--primary-red);
  font-weight: 600;
}

/* ==========================================================================
   Main Layout Container
   ========================================================================== */
.site-content {
  flex: 1;
  max-width: var(--container-max-width);
  margin: 1.5rem auto 3rem;
  padding: 0 1.5rem;
  width: 100%;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 2.5rem;
  align-items: start;
}

/* ==========================================================================
   Article Container
   ========================================================================== */
.article-wrapper {
  background-color: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 2.75rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
}

/* Article Header */
.article-header {
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 2rem;
}

.category-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background-color: var(--light-red-bg);
  color: var(--primary-red);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1.25rem;
  border: 1px solid var(--border-red);
}

.article-title {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-main);
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.article-subtitle {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.article-meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  background-color: var(--bg-secondary);
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--primary-red);
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.meta-item svg {
  width: 17px;
  height: 17px;
  color: var(--primary-red);
}

.meta-author strong {
  color: var(--dark-red);
  font-weight: 700;
}

/* Featured Hero Visual */
.featured-hero {
  margin: 2rem 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: linear-gradient(135deg, #1e222a 0%, #2a2f3a 100%);
  border: 1px solid var(--border-light);
}

.featured-hero img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 380px;
}

.hero-caption {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  padding: 0.6rem 1rem;
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-light);
  font-style: italic;
}

/* ==========================================================================
   Table of Contents Box
   ========================================================================== */
.toc-container {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-medium);
  border-left: 4px solid var(--primary-red);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin: 2rem 0 2.5rem;
}

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

.toc-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.toc-title svg {
  width: 20px;
  height: 20px;
  color: var(--primary-red);
}

.toc-toggle-btn {
  background: var(--bg-white);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  color: var(--text-secondary);
  padding: 0.3rem 0.65rem;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 600;
}

.toc-toggle-btn:hover {
  background-color: var(--light-red-bg);
  color: var(--primary-red);
  border-color: var(--border-red);
}

.toc-list {
  list-style: none;
}

.toc-list li {
  margin-bottom: 0.5rem;
  position: relative;
  line-height: 1.5;
}

.toc-list a {
  text-decoration: none;
  color: var(--text-main);
  font-size: 0.95rem;
  display: block;
  padding: 0.35rem 0.5rem 0.35rem 1.5rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  position: relative;
}

.toc-list a::before {
  content: "•";
  color: var(--primary-red);
  font-size: 1.2rem;
  position: absolute;
  left: 0.4rem;
  top: 0.25rem;
  line-height: 1;
}

.toc-list a:hover {
  color: var(--primary-red);
  background-color: var(--light-red-bg);
  padding-left: 1.75rem;
}

.toc-sublist {
  list-style: none;
  margin-left: 1.25rem;
  margin-top: 0.35rem;
  border-left: 2px solid var(--border-medium);
  padding-left: 0.75rem;
}

.toc-sublist a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  padding: 0.25rem 0.5rem;
}

.toc-sublist a::before {
  content: "–";
  color: var(--text-muted);
  left: 0;
  top: 0.2rem;
}

.toc-sublist a:hover {
  color: var(--primary-red);
  background-color: var(--light-red-bg);
}

/* ==========================================================================
   Article Content Typography
   ========================================================================== */
.article-body {
  font-size: 1.125rem;
  line-height: 1.85;
  color: var(--text-main);
  word-break: break-word;
}

.article-body p {
  margin-bottom: 1.5rem;
}

.article-body h2 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-main);
  margin-top: 3rem;
  margin-bottom: 1.25rem;
  padding-left: 0.85rem;
  border-left: 5px solid var(--primary-red);
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.article-body h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--dark-red);
  margin-top: 2.25rem;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.article-body h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.article-body ul, 
.article-body ol {
  margin-left: 1.75rem;
  margin-bottom: 1.75rem;
}

.article-body li {
  margin-bottom: 0.65rem;
  padding-left: 0.35rem;
}

.article-body li strong {
  color: var(--text-main);
}

.article-body a {
  color: var(--primary-red);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.article-body a:hover {
  color: var(--dark-red);
  background-color: var(--light-red-bg);
  border-radius: 3px;
  padding: 0 2px;
}

/* Highlighted Anchor for the primary keyword link */
.primary-keyword-link {
  color: var(--primary-red) !important;
  font-weight: 700 !important;
  border-bottom: 2px solid var(--primary-red);
  text-decoration: none !important;
  padding: 1px 3px;
  border-radius: 3px;
  transition: all 0.2s ease;
}

.primary-keyword-link:hover {
  background-color: var(--primary-red) !important;
  color: #ffffff !important;
}

/* Lead Paragraph */
.lead-paragraph {
  font-size: 1.2rem;
  line-height: 1.8;
  color: #222222;
  font-weight: 400;
  margin-bottom: 1.75rem;
}

/* ==========================================================================
   Callout Alert Boxes
   ========================================================================== */
.callout {
  border-radius: var(--radius-md);
  padding: 1.35rem 1.5rem;
  margin: 2rem 0;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  font-size: 1rem;
  line-height: 1.7;
}

.callout-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  margin-top: 0.15rem;
}

.callout-content {
  flex: 1;
}

.callout-title {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.callout-info {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-medium);
  border-left: 5px solid var(--primary-red);
}

.callout-info .callout-icon {
  color: var(--primary-red);
}

.callout-info .callout-title {
  color: var(--dark-red);
}

.callout-warning {
  background-color: #FFF8E1;
  border: 1px solid #FFE082;
  border-left: 5px solid #FFA000;
}

.callout-warning .callout-icon {
  color: #F57C00;
}

.callout-warning .callout-title {
  color: #E65100;
}

.callout-danger {
  background-color: var(--subtle-red-tint);
  border: 1px solid var(--border-red);
  border-left: 5px solid var(--dark-red);
}

.callout-danger .callout-icon {
  color: var(--dark-red);
}

.callout-danger .callout-title {
  color: var(--dark-red);
}

/* ==========================================================================
   Features Cards Grid
   ========================================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
}

.feature-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary-red);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-red);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background-color: var(--light-red-bg);
  color: var(--primary-red);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.feature-icon-wrapper svg {
  width: 24px;
  height: 24px;
}

.feature-card h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 0;
}

/* ==========================================================================
   Numbered Step Cards (Installation / Usage)
   ========================================================================== */
.step-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin: 2rem 0;
}

.step-card {
  display: flex;
  gap: 1.25rem;
  background-color: var(--bg-white);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  align-items: flex-start;
  transition: border-color 0.2s ease;
}

.step-card:hover {
  border-color: var(--primary-red);
}

.step-badge {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
  color: #ffffff;
  font-weight: 800;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-red);
}

.step-details {
  flex: 1;
}

.step-details h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin-top: 0;
  margin-bottom: 0.4rem;
}

.step-details p {
  font-size: 0.98rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 0;
}

/* ==========================================================================
   Responsive Tables
   ========================================================================== */
.table-responsive {
  overflow-x: auto;
  margin: 2rem 0;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  background-color: var(--bg-white);
}

.styled-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}

.styled-table thead {
  background-color: var(--bg-secondary);
  border-bottom: 2px solid var(--border-medium);
}

.styled-table th {
  padding: 1rem 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
}

.styled-table td {
  padding: 0.95rem 1.25rem;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-secondary);
  vertical-align: middle;
}

.styled-table tbody tr:hover {
  background-color: var(--subtle-red-tint);
}

.styled-table tbody tr:last-child td {
  border-bottom: none;
}

.styled-table td strong {
  color: var(--text-main);
}

.table-badge-yes {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  background-color: #E8F5E9;
  color: #2E7D32;
  font-weight: 600;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
}

.table-badge-partial {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  background-color: #FFF8E1;
  color: #F57F17;
  font-weight: 600;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
}

.table-badge-idm {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  background-color: var(--light-red-bg);
  color: var(--dark-red);
  font-weight: 700;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
}

/* System Requirements Grid */
.req-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}

.req-item {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  text-align: center;
}

.req-item-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}

.req-item-val {
  font-size: 1.05rem;
  color: var(--text-main);
  font-weight: 700;
}

/* ==========================================================================
   FAQ Accordion Section
   ========================================================================== */
.faq-section {
  margin: 3rem 0;
}

.accordion-group {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.accordion-item {
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  background-color: var(--bg-white);
  overflow: hidden;
  transition: all 0.2s ease;
}

.accordion-item.active {
  border-color: var(--primary-red);
  box-shadow: 0 4px 12px rgba(229, 57, 53, 0.1);
}

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  text-align: left;
  cursor: pointer;
  gap: 1rem;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.accordion-trigger:hover {
  color: var(--primary-red);
  background-color: var(--subtle-red-tint);
}

.accordion-item.active .accordion-trigger {
  color: var(--dark-red);
  background-color: var(--subtle-red-tint);
}

.accordion-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
  color: var(--primary-red);
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0, 1, 0, 1);
  background-color: var(--bg-white);
}

.accordion-content-inner {
  padding: 0 1.5rem 1.25rem;
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

.accordion-content-inner p {
  margin-bottom: 0.75rem;
}

.accordion-content-inner p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   Sidebar Widgets
   ========================================================================== */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.widget {
  background-color: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.widget-sticky {
  position: sticky;
  top: 5rem;
}

.widget-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 1.25rem;
  padding-bottom: 0.65rem;
  border-bottom: 2px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.widget-title svg {
  color: var(--primary-red);
  width: 20px;
  height: 20px;
}

.quick-facts-list {
  list-style: none;
}

.quick-facts-list li {
  display: flex;
  justify-content: space-between;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.9rem;
}

.quick-facts-list li:last-child {
  border-bottom: none;
}

.fact-label {
  color: var(--text-secondary);
}

.fact-value {
  font-weight: 700;
  color: var(--text-main);
  text-align: right;
}

/* Security Checklist Widget */
.checklist-widget ul {
  list-style: none;
}

.checklist-widget li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.checklist-widget li svg {
  width: 18px;
  height: 18px;
  color: var(--primary-red);
  flex-shrink: 0;
  margin-top: 0.15rem;
}

/* Sticky Sidebar TOC */
.sidebar-toc {
  max-height: calc(100vh - 8rem);
  overflow-y: auto;
}

.sidebar-toc-list {
  list-style: none;
}

.sidebar-toc-item {
  margin-bottom: 0.35rem;
}

.sidebar-toc-link {
  display: block;
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-sm);
  border-left: 3px solid transparent;
  transition: all 0.2s ease;
  line-height: 1.4;
}

.sidebar-toc-link:hover {
  color: var(--primary-red);
  background-color: var(--light-red-bg);
}

.sidebar-toc-link.active {
  color: var(--dark-red);
  background-color: var(--light-red-bg);
  border-left-color: var(--primary-red);
  font-weight: 700;
}

/* ==========================================================================
   Back To Top Button
   ========================================================================== */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 46px;
  height: 46px;
  background-color: var(--primary-red);
  color: #ffffff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-red);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 990;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--dark-red);
  transform: translateY(-3px);
}

.back-to-top svg {
  width: 22px;
  height: 22px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background-color: #1a1a1a;
  color: #e0e0e0;
  margin-top: auto;
  border-top: 4px solid var(--primary-red);
}

.footer-top {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 3.5rem 1.5rem 2.5rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
}

.footer-brand {
  max-width: 440px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: #ffffff;
  font-weight: 800;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.footer-icon {
  width: 36px;
  height: 36px;
  background-color: var(--primary-red);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-icon svg {
  width: 20px;
  height: 20px;
  fill: #ffffff;
}

.footer-desc {
  font-size: 0.95rem;
  color: #aaaaaa;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.footer-col h5 {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-col h5::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 30px;
  height: 2px;
  background-color: var(--primary-red);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.65rem;
}

.footer-links a {
  color: #bbbbbb;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s, padding-left 0.2s;
  display: inline-block;
}

.footer-links a:hover {
  color: var(--primary-red);
  padding-left: 4px;
}

.footer-bottom {
  background-color: #111111;
  border-top: 1px solid #2a2a2a;
  padding: 1.5rem;
}

.footer-bottom-inner {
  max-width: var(--container-max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: #888888;
}

.footer-disclaimer {
  font-size: 0.8rem;
  color: #777777;
  line-height: 1.6;
  margin-top: 0.5rem;
}

/* ==========================================================================
   Responsive Media Queries
   ========================================================================== */
@media (max-width: 1024px) {
  .content-grid {
    grid-template-columns: 1fr;
  }
  
  .sidebar {
    display: none;
  }
  
  .article-wrapper {
    padding: 2rem;
  }
}

@media (max-width: 768px) {
  .header-inner {
    padding: 0.75rem 1rem;
  }
  
  .mobile-nav-toggle {
    display: block;
  }
  
  .main-nav {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-medium);
    padding: 1.25rem 1.5rem;
    box-shadow: var(--shadow-md);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
  }
  
  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  
  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    width: 100%;
  }
  
  .nav-link {
    width: 100%;
    padding: 0.75rem 1rem;
  }
  
  .article-wrapper {
    padding: 1.5rem 1.15rem;
    border-radius: var(--radius-md);
  }
  
  .article-title {
    font-size: 1.85rem;
  }
  
  .article-subtitle {
    font-size: 1.05rem;
  }
  
  .article-meta-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 1rem;
  }
  
  .article-body h2 {
    font-size: 1.45rem;
    margin-top: 2.25rem;
  }
  
  .article-body h3 {
    font-size: 1.2rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2.5rem 1.25rem;
  }
  
  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
  }
  
  .back-to-top {
    bottom: 1.25rem;
    right: 1.25rem;
    width: 40px;
    height: 40px;
  }
}
