/* ===============================================
   SIDEBAR NAVIGATION SYSTEM
   Two-column layout for section pages
   =============================================== */

.page-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  margin-top: 40px;
}

/* ================= SIDEBAR ================= */
.sidebar {
  position: sticky;
  top: 120px;
  height: fit-content;
  background: white;
  border: 2px solid #E2E8F0;
  border-radius: 16px;
  padding: 32px 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.sidebar__header {
  padding: 0 24px 20px;
  border-bottom: 2px solid #F1F5F9;
  margin-bottom: 8px;
}

.sidebar__title {
  font-size: 14px;
  font-weight: 700;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sidebar__nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar__nav li {
  margin: 0;
}

.sidebar__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  color: #475569;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.3s;
  border-left: 3px solid transparent;
  position: relative;
}

.sidebar__link:hover {
  background: #F8FAFC;
  color: #1CAAAC;
  border-left-color: #1CAAAC;
}

.sidebar__link.active {
  background: linear-gradient(90deg, rgba(28, 170, 172, 0.1) 0%, transparent 100%);
  color: #1CAAAC;
  font-weight: 600;
  border-left-color: #1CAAAC;
}

.sidebar__link i {
  font-size: 14px;
  opacity: 0.6;
  transition: all 0.3s;
}

.sidebar__link:hover i,
.sidebar__link.active i {
  opacity: 1;
}

/* Mobile Dropdown */
.sidebar__mobile-toggle {
  display: none;
  width: 100%;
  padding: 16px 20px;
  background: white;
  border: 2px solid #E2E8F0;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  color: #0F172A;
  cursor: pointer;
  margin-bottom: 16px;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s;
}

.sidebar__mobile-toggle:hover {
  border-color: #1CAAAC;
  background: #F8FAFC;
}

.sidebar__mobile-toggle i {
  transition: transform 0.3s;
}

.sidebar__mobile-toggle.active i {
  transform: rotate(180deg);
}

/* ================= MAIN CONTENT ================= */
.main-content {
  min-width: 0; /* Prevent overflow */
}

/* Content Cards - Creative Variations */
.content-block {
  background: white;
  border: 2px solid #E2E8F0;
  border-radius: 16px;
  padding: 40px;
  margin-bottom: 32px;
}

.content-block h2 {
  font-size: 32px;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 16px;
}

.content-block h3 {
  font-size: 24px;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 12px;
}

.content-block p {
  font-size: 16px;
  line-height: 1.8;
  color: #475569;
  margin-bottom: 16px;
}

/* Timeline Component */
.timeline-vertical {
  position: relative;
  padding-left: 40px;
  margin: 32px 0;
}

.timeline-vertical::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, #1CAAAC, #0EA5E9);
}

.timeline-item {
  position: relative;
  margin-bottom: 32px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -35px;
  top: 4px;
  width: 18px;
  height: 18px;
  background: white;
  border: 3px solid #1CAAAC;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(28, 170, 172, 0.1);
}

.timeline-item h4 {
  font-size: 18px;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 8px;
}

.timeline-item p {
  font-size: 15px;
  line-height: 1.7;
  color: #64748B;
  margin: 0;
}

/* Accordion Component */
.accordion {
  margin: 32px 0;
}

.accordion-item {
  background: white;
  border: 2px solid #E2E8F0;
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: all 0.3s;
}

.accordion-item:hover {
  border-color: #CBD5E1;
}

.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  cursor: pointer;
  user-select: none;
  transition: all 0.3s;
}

.accordion-header:hover {
  background: #F8FAFC;
}

.accordion-header h4 {
  font-size: 17px;
  font-weight: 600;
  color: #0F172A;
  margin: 0;
}

.accordion-icon {
  width: 32px;
  height: 32px;
  background: #F1F5F9;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1CAAAC;
  transition: all 0.3s;
}

.accordion-item.active .accordion-icon {
  background: #1CAAAC;
  color: white;
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.accordion-body {
  padding: 0 24px 24px;
  color: #64748B;
  font-size: 15px;
  line-height: 1.7;
}

/* Info Boxes */
.info-box {
  padding: 24px;
  border-radius: 12px;
  margin: 24px 0;
  border-left: 4px solid;
}

.info-box--blue {
  background: #EFF6FF;
  border-color: #3B82F6;
}

.info-box--green {
  background: #F0FDF4;
  border-color: #10B981;
}

.info-box--orange {
  background: #FFF7ED;
  border-color: #F59E0B;
}

.info-box--red {
  background: #FEF2F2;
  border-color: #EF4444;
}

.info-box h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.info-box--blue h4 { color: #1E40AF; }
.info-box--green h4 { color: #065F46; }
.info-box--orange h4 { color: #92400E; }
.info-box--red h4 { color: #991B1B; }

.info-box p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}

.info-box--blue p { color: #1E3A8A; }
.info-box--green p { color: #064E3B; }
.info-box--orange p { color: #78350F; }
.info-box--red p { color: #7F1D1D; }

/* Comparison Table */
.comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 32px 0;
  border: 2px solid #E2E8F0;
  border-radius: 12px;
  overflow: hidden;
}

.comparison-table thead {
  background: linear-gradient(135deg, #1CAAAC, #0EA5E9);
  color: white;
}

.comparison-table th {
  padding: 16px 20px;
  text-align: left;
  font-weight: 600;
  font-size: 15px;
}

.comparison-table td {
  padding: 16px 20px;
  border-bottom: 1px solid #F1F5F9;
  font-size: 15px;
  color: #475569;
}

.comparison-table tbody tr:hover {
  background: #F8FAFC;
}

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

/* Process Steps */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 32px 0;
}

.process-step {
  text-align: center;
  padding: 24px;
  background: white;
  border: 2px solid #E2E8F0;
  border-radius: 12px;
  position: relative;
  transition: all 0.3s;
}

.process-step:hover {
  border-color: #1CAAAC;
  box-shadow: 0 4px 12px rgba(28, 170, 172, 0.15);
  transform: translateY(-4px);
}

.process-step__number {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #1CAAAC, #0EA5E9);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  margin: 0 auto 16px;
}

.process-step h4 {
  font-size: 16px;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 8px;
}

.process-step p {
  font-size: 14px;
  color: #64748B;
  line-height: 1.6;
  margin: 0;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 968px) {
  .page-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .sidebar {
    position: relative;
    top: 0;
    padding: 16px 0;
  }

  .sidebar__mobile-toggle {
    display: none;
  }

  .sidebar__header {
    padding: 0 16px 14px;
  }

  .sidebar__nav {
    display: block;
    padding-top: 8px;
  }

  .sidebar__sub {
    display: none;
  }

  .sidebar__link {
    padding: 10px 16px;
    font-size: 14px;
  }

  .content-block {
    padding: 24px;
  }

  .process-steps {
    grid-template-columns: 1fr;
  }

  .comparison-table {
    font-size: 14px;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 12px 16px;
  }
}
