/* ============================================
   EXAMFORMTOOLS - MAIN STYLESHEET
   Version: 2.0.0
   Description: Professional, modern, responsive
   ============================================ */

/* Core */
@import 'core/reset.css';
@import 'core/variables.css';
@import 'core/utilities.css';
@import 'core/animations.css';

/* Components */
@import 'components/header.css';
@import 'components/footer.css';
@import 'components/buttons.css';
@import 'components/cards.css';
@import 'components/forms.css';
@import 'components/featured.css';

/* ============================================
   BASE STYLES
   ============================================ */

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Selection */
::selection {
  background: var(--primary);
  color: white;
}

/* Focus Visible */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

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

/* Section Spacing */
.section {
  padding: var(--space-20) 0;
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--space-12);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-4);
}

.section-title {
  font-size: var(--fs-4xl);
  font-weight: var(--fw-extrabold);
  color: var(--text);
  margin-bottom: var(--space-4);
  line-height: var(--lh-tight);
}

.section-description {
  font-size: var(--fs-lg);
  color: var(--text-muted);
  line-height: var(--lh-relaxed);
}

/* Grid Layouts */
.grid {
  display: grid;
  gap: var(--space-6);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* Responsive Grid */
@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

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

  .section {
    padding: var(--space-16) 0;
  }

  .section-title {
    font-size: var(--fs-3xl);
  }
}

/* Flex Layouts */
.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-4 {
  gap: var(--space-4);
}

.gap-6 {
  gap: var(--space-6);
}

.gap-8 {
  gap: var(--space-8);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  position: relative;
  padding: var(--space-24) 0;
  background: var(--gradient-dark);
  color: white;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  margin-bottom: var(--space-6);
  backdrop-filter: blur(10px);
}

.hero-title {
  font-size: var(--fs-5xl);
  font-weight: var(--fw-extrabold);
  line-height: var(--lh-tight);
  margin-bottom: var(--space-6);
}

.hero-title .highlight {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: var(--fs-xl);
  opacity: 0.9;
  line-height: var(--lh-relaxed);
  margin-bottom: var(--space-8);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: center;
  margin-bottom: var(--space-12);
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
  justify-content: center;
  opacity: 0.8;
}

.hero-trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-sm);
}

/* Hero Responsive */
@media (max-width: 768px) {
  .hero {
    padding: var(--space-16) 0;
  }

  .hero-title {
    font-size: var(--fs-3xl);
  }

  .hero-description {
    font-size: var(--fs-lg);
  }
}

/* ============================================
   TOOLS SECTION
   ============================================ */

.tools-section {
  background: var(--bg);
}

.tools-filter {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
  margin-bottom: var(--space-8);
}

.filter-btn {
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-full);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--text-muted);
  background: var(--bg-white);
  border: 1px solid var(--border);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.tools-search {
  max-width: 500px;
  margin: 0 auto var(--space-8);
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-6);
}

/* ============================================
   EXAMS SECTION
   ============================================ */

.exams-section {
  background: var(--bg-white);
}

.exams-filter {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
  margin-bottom: var(--space-8);
}

.exams-search {
  max-width: 500px;
  margin: 0 auto var(--space-8);
}

.exams-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: var(--space-6);
}

.no-results {
  display: none;
  text-align: center;
  padding: var(--space-12);
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  margin: var(--space-8) 0;
}

.no-results.visible {
  display: block;
}

.no-results-icon {
  font-size: var(--fs-4xl);
  margin-bottom: var(--space-4);
  opacity: 0.5;
}

.no-results h3 {
  font-size: var(--fs-xl);
  font-weight: var(--fw-semibold);
  color: var(--text);
  margin-bottom: var(--space-2);
}

.no-results p {
  color: var(--text-muted);
}

/* ============================================
   FEATURES SECTION
   ============================================ */

.features-section {
  background: var(--bg);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-6);
}

/* ============================================
   STATS SECTION
   ============================================ */

.stats-section {
  background: var(--gradient-primary);
  color: white;
  padding: var(--space-16) 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
  text-align: center;
}

.stat-value {
  font-size: var(--fs-5xl);
  font-weight: var(--fw-extrabold);
  margin-bottom: var(--space-2);
}

.stat-label {
  font-size: var(--fs-base);
  opacity: 0.9;
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
  }

  .stat-value {
    font-size: var(--fs-3xl);
  }
}

/* ============================================
   TESTIMONIALS SECTION
   ============================================ */

.testimonials-section {
  background: var(--bg-white);
}

.testimonials-slider {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.testimonial-slide {
  display: none;
}

.testimonial-slide.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

.testimonials-nav {
  display: flex;
  justify-content: center;
  gap: var(--space-3);
  margin-top: var(--space-8);
}

.testimonial-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.testimonial-dot.active {
  background: var(--primary);
  transform: scale(1.2);
}

/* ============================================
   BLOG SECTION
   ============================================ */

.blog-section {
  background: var(--bg);
}

.blog-search {
  max-width: 500px;
  margin: 0 auto var(--space-8);
}

.blog-filter {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  align-items: center;
}

.category-buttons,
.sort-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
}

.sort-btn {
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-full);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--text-muted);
  background: var(--bg-white);
  border: 1px solid var(--border);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.sort-btn:hover,
.sort-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: var(--space-6);
}

/* Responsive for blog filters */
@media (max-width: 768px) {
  .blog-filter {
    gap: var(--space-4);
  }

  .category-buttons,
  .sort-buttons {
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .category-buttons::-webkit-scrollbar,
  .sort-buttons::-webkit-scrollbar {
    display: none;
  }
}

/* ============================================
   LATEST SECTION
   ============================================ */

.latest-section {
  margin-bottom: var(--space-12);
}

.latest-section .section-title {
  font-size: var(--fs-2xl);
  font-weight: var(--fw-bold);
  margin-bottom: var(--space-6);
  color: var(--text);
}

.latest-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-6);
  margin-bottom: var(--space-8);
}

.latest-blogs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-6);
}

@media (max-width: 1024px) {
  .latest-blogs-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  }
}

@media (max-width: 768px) {
  .latest-blogs-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   FAQ SECTION
   ============================================ */

.faq-section {
  background: var(--bg-white);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-6) 0;
  font-size: var(--fs-lg);
  font-weight: var(--fw-semibold);
  color: var(--text);
  text-align: left;
  background: transparent;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.faq-question:hover {
  color: var(--primary);
}

.faq-icon {
  width: 24px;
  height: 24px;
  transition: transform var(--transition-base);
}

.faq-item.open .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-base);
}

.faq-item.open .faq-answer {
  max-height: 500px;
}

.faq-answer-content {
  padding-bottom: var(--space-6);
  color: var(--text-muted);
  line-height: var(--lh-relaxed);
}

/* ============================================
   ADS SECTION
   ============================================ */

.ads-section {
  margin: var(--space-8) 0;
  text-align: center;
}

.ad-box {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.ad-label {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: var(--space-2);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.ad-content {
  padding: var(--space-4);
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================
   BREADCRUMB
   ============================================ */

.breadcrumb {
  padding: var(--space-4) var(--container-padding);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}


.breadcrumb-list {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  list-style: none;
  font-size: var(--fs-sm);
}

.breadcrumb-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.breadcrumb-link {
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.breadcrumb-link:hover {
  color: var(--primary);
}

.breadcrumb-separator {
  color: var(--text-light);
}

.breadcrumb-current {
  color: var(--text);
  font-weight: var(--fw-medium);
}

/* ============================================
   PAGE HEADER
   ============================================ */

.page-header {
  padding: var(--space-16) 0 var(--space-8);
  background: var(--gradient-dark);
  color: white;
  text-align: center;
}

.page-header-title {
  font-size: var(--fs-4xl);
  font-weight: var(--fw-extrabold);
  margin-bottom: var(--space-4);
}

.page-header-description {
  font-size: var(--fs-lg);
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================
   BLOG STYLES
   ============================================ */

/* Blog Page Header */
.blog-page-header {
  padding: var(--space-16) 0 var(--space-8);
  background: var(--gradient-dark);
  color: white;
  text-align: center;
}

.blog-page-header .breadcrumb {
  background: transparent;
  border-bottom: none;
  margin-bottom: var(--space-6);
}

.blog-page-header .breadcrumb-link {
  color: rgba(255, 255, 255, 0.7);
}

.blog-page-header .breadcrumb-link:hover {
  color: white;
}

.blog-page-header .breadcrumb-current {
  color: white;
}

.blog-page-header .page-header-title {
  font-size: var(--fs-3xl);
  font-weight: var(--fw-extrabold);
  margin-bottom: var(--space-4);
  line-height: var(--lh-tight);
}

.blog-page-header .page-header-description {
  font-size: var(--fs-lg);
  opacity: 0.9;
  max-width: 700px;
  margin: 0 auto;
}

/* Reading Progress Bar */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--gradient-primary);
  z-index: 10000;
  transition: width 0.1s ease;
}

/* Blog Article Styles */
.blog-article {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-md);
}

.blog-header {
  margin-bottom: var(--space-8);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--border);
}

.blog-title {
  font-size: var(--fs-3xl);
  font-weight: var(--fw-extrabold);
  line-height: var(--lh-tight);
  margin-bottom: var(--space-4);
  color: var(--text);
}

.blog-meta {
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-4);
}

.blog-meta strong {
  color: var(--text);
}

.blog-meta-badges {
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-4);
  align-items: center;
}

.blog-tag {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  background: var(--primary-50);
  color: var(--primary);
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.blog-tag:hover {
  background: var(--primary-100);
  color: var(--primary-dark);
}

/* Blog Content Styles */
.blog-content h2 {
  font-size: var(--fs-2xl);
  font-weight: var(--fw-bold);
  margin-top: var(--space-12);
  margin-bottom: var(--space-4);
  color: var(--text);
  scroll-margin-top: 100px;
}

.blog-content h3 {
  font-size: var(--fs-xl);
  font-weight: var(--fw-semibold);
  margin-top: var(--space-8);
  margin-bottom: var(--space-3);
  color: var(--text);
}

.blog-content p {
  margin-bottom: var(--space-4);
  line-height: var(--lh-relaxed);
  color: var(--text-secondary);
}

.blog-content ul,
.blog-content ol {
  margin-bottom: var(--space-4);
  padding-left: var(--space-6);
}

.blog-content li {
  margin-bottom: var(--space-2);
  line-height: var(--lh-relaxed);
}

/* Specifications Table */
.specs-table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-6) 0;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.specs-table thead {
  background: var(--gradient-primary);
  color: white;
}

.specs-table th {
  padding: var(--space-4);
  text-align: left;
  font-weight: var(--fw-semibold);
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.specs-table td {
  padding: var(--space-4);
  border-bottom: 1px solid var(--border);
  font-size: var(--fs-sm);
}

.specs-table tbody tr:hover {
  background: var(--gray-50);
}

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

/* Callout Boxes */
.callout-box {
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  margin: var(--space-6) 0;
  border-left: 4px solid;
}

.callout-warning {
  background: var(--warning-50);
  border-color: var(--warning);
  color: var(--warning-700);
}

.callout-success {
  background: var(--success-50);
  border-color: var(--success);
  color: var(--success-700);
}

.callout-info {
  background: var(--info-50);
  border-color: var(--info);
  color: var(--info-700);
}

/* Checklist Styles */
.checklist {
  list-style: none;
  padding: 0;
}

.checklist li {
  position: relative;
  padding-left: var(--space-8);
  margin-bottom: var(--space-3);
}

.checklist li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  height: 24px;
  background: var(--success);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
}

/* Step Cards */
.steps-container {
  display: grid;
  gap: var(--space-6);
  margin: var(--space-8) 0;
}

.step-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  position: relative;
  padding-left: calc(var(--space-6) + 60px);
}

.step-number {
  position: absolute;
  left: var(--space-6);
  top: var(--space-6);
  width: 40px;
  height: 40px;
  background: var(--gradient-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--fw-bold);
  font-size: var(--fs-lg);
}

.step-card h3 {
  margin-top: 0;
  font-size: var(--fs-lg);
  font-weight: var(--fw-semibold);
}

/* Tool Cards in Blog */
.tool-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin-bottom: var(--space-6);
}

.tool-card h3 {
  margin-top: 0;
  color: var(--primary);
}

/* FAQ in Blog */
.blog-faq .faq-item {
  border-bottom: 1px solid var(--border);
}

.blog-faq .faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) 0;
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  color: var(--text);
  text-align: left;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.blog-faq .faq-question:hover {
  color: var(--primary);
}

.blog-faq .faq-toggle {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-50);
  color: var(--primary);
  border-radius: var(--radius-full);
  font-size: var(--fs-lg);
  transition: transform var(--transition-fast);
}

.blog-faq .faq-item.open .faq-toggle {
  transform: rotate(45deg);
}

.blog-faq .faq-answer {
  display: none;
  padding-bottom: var(--space-4);
  color: var(--text-muted);
  line-height: var(--lh-relaxed);
}

.blog-faq .faq-item.open .faq-answer {
  display: block;
}


/* Author Section */
.blog-author {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-6);
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  margin: var(--space-8) 0;
}

.blog-author-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: var(--fs-2xl);
  font-weight: var(--fw-bold);
}

.blog-author-info h4 {
  margin: 0 0 var(--space-1) 0;
  font-size: var(--fs-lg);
  font-weight: var(--fw-semibold);
}

.blog-author-info p {
  margin: 0;
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

/* Related Posts */
.related-posts {
  margin-top: var(--space-12);
  padding-top: var(--space-8);
  border-top: 1px solid var(--border);
}

.related-posts h3 {
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  margin-bottom: var(--space-6);
}

.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-6);
}

/* CTA Box */
.cta-box {
  background: var(--gradient-primary);
  color: white;
  padding: var(--space-8);
  border-radius: var(--radius-lg);
  text-align: center;
  margin: var(--space-8) 0;
}

.cta-box h3 {
  margin-top: 0;
  color: white;
}

.cta-box p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-6);
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: center;
}

/* Blog Sidebar */
.blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  position: sticky;
  top: 100px;
  height: fit-content;
}

.sidebar-widget {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
}

.sidebar-widget h4 {
  margin-top: 0;
  margin-bottom: var(--space-4);
  font-size: var(--fs-base);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text);
  border-bottom: 2px solid var(--primary-100);
  padding-bottom: var(--space-3);
}

/* Table of Contents - Enhanced Styling */
.blog-toc {
  background: var(--bg-white);
  border: 2px solid var(--primary-100);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-md);
}

.blog-toc h3 {
  margin-top: 0;
  margin-bottom: var(--space-4);
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  border-bottom: 2px solid var(--primary-100);
  padding-bottom: var(--space-3);
}

.blog-toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.blog-toc li {
  margin-bottom: var(--space-1);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.blog-toc a {
  display: block;
  padding: var(--space-3) var(--space-4);
  color: var(--text-muted);
  text-decoration: none;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  transition: all var(--transition-fast);
  border-left: 3px solid transparent;
  background: transparent;
  line-height: var(--lh-snug);
}

.blog-toc a:hover {
  color: var(--primary);
  background: var(--primary-50);
  border-left-color: var(--primary);
  padding-left: var(--space-5);
}

.blog-toc a.active {
  color: var(--primary);
  background: var(--primary-100);
  border-left-color: var(--primary);
  font-weight: var(--fw-semibold);
  padding-left: var(--space-5);
}

/* Sidebar CTA Widget */
.sidebar-cta {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  text-align: center;
  border: none;
}

.sidebar-cta h4 {
  color: white;
  border-bottom-color: rgba(255, 255, 255, 0.3);
}

.sidebar-cta p {
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--fs-sm);
  margin-bottom: var(--space-4);
}

.sidebar-cta .btn {
  width: 100%;
  margin-bottom: var(--space-3);
  display: block;
  background: white;
  color: var(--primary);
  border: none;
  font-weight: var(--fw-semibold);
}

.sidebar-cta .btn:hover {
  background: var(--gray-100);
  transform: translateY(-2px);
}

.sidebar-cta .btn:last-child {
  margin-bottom: 0;
}

/* Sidebar Newsletter */
.sidebar-newsletter p {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-4);
}

.sidebar-newsletter input {
  width: 100%;
  margin-bottom: var(--space-3);
}

.sidebar-newsletter button {
  width: 100%;
}

/* Sidebar Tags */
.sidebar-tags .tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.sidebar-tags .blog-tag {
  cursor: default;
}

.sidebar-tags .blog-tag:hover {
  background: var(--primary);
  color: white;
}


/* Newsletter Section */
.blog-newsletter {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  text-align: center;
}

.blog-newsletter h3 {
  margin-top: 0;
  font-size: var(--fs-lg);
}

.blog-newsletter p {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-4);
}

/* Blog Container Layout */
.blog-container {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--space-8);
  align-items: start;
}

/* Feedback Widget */
.feedback-widget {
  margin: var(--space-8) 0;
  text-align: center;
  padding: var(--space-6);
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.feedback-widget h4 {
  margin-top: 0;
  margin-bottom: var(--space-4);
  font-size: var(--fs-lg);
  font-weight: var(--fw-semibold);
}

.feedback-buttons {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
}

/* Newsletter Section */
.blog-newsletter-section {
  margin-top: var(--space-12);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  padding: var(--space-8);
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.blog-newsletter-section h3 {
  margin-top: 0;
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  margin-bottom: var(--space-4);
}

.blog-newsletter-section p {
  color: var(--text-muted);
  margin-bottom: var(--space-6);
}

.newsletter-form {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

.newsletter-form input {
  max-width: 300px;
}


/* Blog Banner */
.blog-banner {
  margin-bottom: var(--space-6);
  margin-top: var(--space-6);
}

.blog-banner-img {
  width: 100%;
  border-radius: var(--radius-lg);
  display: block;
}

/* Tool Links Grid */
.tool-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-4);
}

.tool-link {
  display: block;
  padding: var(--space-3) var(--space-4);
  background: rgba(255, 255, 255, 0.1);
  color: white;
  text-decoration: none;
  border-radius: var(--radius-md);
  font-weight: var(--fw-medium);
  transition: all var(--transition-fast);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.tool-link:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Mobile TOC */
.mobile-toc {
  display: none;
  width: 100%;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-md);
  grid-column: 1 / -1;
}

/* Blog Responsive */
@media (max-width: 1024px) {

  .blog-container {
    grid-template-columns: 1fr 280px;
    gap: var(--space-6);
  }
}

@media (max-width: 900px) {
  .blog-container {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
  }

  .mobile-toc {
    display: block;
    order: -1;
  }

  .blog-sidebar {
    position: static;
    margin-top: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    order: 2;
  }

  .blog-sidebar .blog-toc {
    display: none;
  }

  .blog-article {
    order: 1;
  }
}


@media (max-width: 768px) {
  .blog-article {
    padding: var(--space-5);
  }

  .mobile-toc {
    padding: var(--space-5);
  }

  .blog-title {
    font-size: var(--fs-2xl);
  }

  .specs-table {
    font-size: var(--fs-xs);
  }

  .specs-table th,
  .specs-table td {
    padding: var(--space-2);
  }

  .blog-sidebar {
    grid-template-columns: 1fr;
  }
}


@media (max-width: 768px) {
  .blog-page-header .page-header-title {
    font-size: var(--fs-2xl);
  }
  
  .blog-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
  }
  
  .step-card {
    padding-left: var(--space-5);
    padding-top: calc(var(--space-5) + 50px);
  }
  
  .step-number {
    left: var(--space-5);
    top: var(--space-5);
  }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {

  .site-header,
  .site-footer,
  .floating-buttons,
  .announcement-bar,
  .ads-section {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }

  .card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ddd;
  }
}

/* ============================================
   REDUCED MOTION
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
