/* ============================================
   E&O GLOBAL - DETAIL PAGES STYLES
   Reading Mode Layout with Sidebar
   ============================================ */

.detail-page-container {
  background: var(--bg-content);
  padding-top: var(--spacing-xl);
}

/* Mobile TOC Toggle */
.mobile-toc-toggle {
  display: none;
  padding: var(--spacing-sm) var(--spacing-md);
  background: var(--bg-card);
  border-bottom: 1px solid #E0E0E0;
  position: sticky;
  top: 80px;
  z-index: 100;
}

.mobile-toc-toggle button {
  width: 100%;
  padding: 12px;
  background: var(--primary-main);
  color: white;
  border: none;
  border-radius: var(--radius-small);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
  min-height: 44px;
}

/* Content Wrapper */
.detail-content-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--spacing-md) var(--spacing-2xl);
  display: flex;
  gap: var(--spacing-xl);
  align-items: flex-start;
}

/* Sidebar */
.detail-sidebar {
  width: 300px;
  flex-shrink: 0;
  position: sticky;
  top: 120px;
  background: var(--bg-card);
  border-radius: var(--radius-medium);
  padding: var(--spacing-md);
  box-shadow: var(--shadow-sm);
  max-height: calc(100vh - 140px);
  overflow-y: auto;
}

.sidebar-content h3 {
  font-size: 18px;
  color: var(--primary-main);
  margin-bottom: var(--spacing-md);
  font-weight: 700;
  text-align: left;
}

.table-of-contents ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.table-of-contents li {
  margin-bottom: var(--spacing-sm);
}

.toc-link {
  display: block;
  color: #666;
  text-decoration: none;
  font-size: 15px;
  padding: 8px 12px;
  border-radius: var(--radius-small);
  transition: var(--transition-normal);
  position: relative;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.toc-link:hover {
  background: rgba(10, 26, 60, 0.08);
  color: var(--primary-main);
  text-decoration: none;
}

.toc-link.active {
  background: rgba(10, 26, 60, 0.12);
  color: var(--primary-main);
  font-weight: 600;
}

.sidebar-cta-btn {
  display: block;
  width: 100%;
  margin-top: var(--spacing-md);
  padding: 14px;
  background: var(--secondary-red);
  color: white;
  text-align: center;
  text-decoration: none;
  border-radius: var(--radius-small);
  font-weight: 600;
  transition: var(--transition-normal);
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-cta-btn:hover {
  background: #E63939;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 77, 77, 0.3);
  text-decoration: none;
  color: white;
}

/* Main Content */
.detail-main-content {
  flex: 1;
  min-width: 0;
}

.visa-content {
  padding: var(--spacing-xl);
  max-width: 800px;
}

.content-section {
  margin-bottom: var(--spacing-xl);
  scroll-margin-top: 160px; /* Increased from 120px to prevent navbar overlap */
  transition: background 0.6s ease, box-shadow 0.6s ease; /* Longer transition for highlight */
  padding: var(--spacing-md);
  border-radius: var(--radius-small);
}

.content-section.highlight {
  background: #FFF9E6;
  box-shadow: 0 0 0 3px #FFD700;
  transition: background 0.6s ease, box-shadow 0.6s ease; /* Smooth highlight animation */
}

.content-section h2 {
  font-family: 'DM Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 28px;
  color: var(--primary-main);
  margin: 0 0 var(--spacing-md) 0; /* Reset all margins, only bottom margin */
  padding: 0 0 var(--spacing-sm) 0; /* Only bottom padding */
  font-weight: 600;
  position: relative;
  text-align: left; /* Explicit left alignment */
}

.content-section h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--secondary-red);
}

.content-section h3 {
  font-family: 'DM Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 20px;
  color: var(--primary-main);
  margin: var(--spacing-md) 0 var(--spacing-sm) 0; /* Explicit left margin 0 */
  padding: 0; /* No padding */
  font-weight: 600;
  text-align: left; /* Explicit left alignment */
}

.content-section p {
  font-size: 16px;
  line-height: 1.8;
  color: #333;
  margin: 0 0 var(--spacing-sm) 0; /* Reset all margins, only bottom margin */
  padding: 0; /* No padding */
  text-align: left; /* Explicit left alignment */
  text-indent: 0; /* No text indentation */
}

.content-section ul,
.content-section ol {
  margin: var(--spacing-sm) 0;
  padding-left: var(--spacing-md); /* Keep padding for list markers */
  text-align: left; /* Explicit left alignment */
}

.content-section li {
  font-size: 16px;
  line-height: 1.8;
  color: #333;
  margin: 0 0 var(--spacing-xs) 0; /* Reset left margin, only bottom margin */
  padding: 0; /* No padding */
  text-align: left; /* Explicit left alignment */
  text-indent: 0; /* No text indentation */
}

.info-box {
  background: var(--primary-light);
  border-left: 4px solid var(--primary-main);
  padding: var(--spacing-md);
  border-radius: var(--radius-small);
  margin: var(--spacing-md) 0;
}

.info-box p {
  margin: 0 0 var(--spacing-sm) 0; /* Consistent margin with other paragraphs */
  padding: 0; /* No padding */
  text-align: left; /* Explicit left alignment */
  text-indent: 0; /* No text indentation */
}

.info-box p:last-child {
  margin-bottom: 0; /* Remove bottom margin from last paragraph */
}

/* SSS Section - Remove extra padding and prevent accordion behavior */
#sss.content-section {
  padding: var(--spacing-md); /* Same padding as other content sections */
  margin-bottom: var(--spacing-md);
}

/* Override accordion styles from style.css for detail pages */
.detail-page-container .faq-item {
  margin-bottom: var(--spacing-sm);
  padding-bottom: var(--spacing-sm);
  border-bottom: 1px solid #E0E0E0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
  cursor: default;
}

.detail-page-container .faq-item:hover {
  box-shadow: none;
  background: transparent;
}

.detail-page-container .faq-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.detail-page-container .faq-item h3 {
  font-size: 18px;
  color: var(--primary-main);
  margin-bottom: var(--spacing-xs);
  font-weight: 600;
  cursor: default;
  padding: 0;
  display: block;
  user-select: text;
}

.detail-page-container .faq-item h3:hover {
  background: transparent;
  color: var(--primary-main);
}

.detail-page-container .faq-item p {
  margin: 0; /* Reset all margins */
  padding: 0; /* No padding */
  display: block;
  max-height: none !important;
  overflow: visible !important;
  text-align: left; /* Explicit left alignment */
  text-indent: 0; /* No text indentation */
}

/* SSS Question Number Styling */
.detail-page-container .faq-item h3 {
  position: relative;
}

.faq-number {
  color: var(--secondary-red);
  font-weight: 700;
  margin-right: 4px;
}

/* Responsive */
@media (max-width: 1024px) {
  .detail-sidebar {
    width: 250px;
  }
  
  .visa-content {
    padding: var(--spacing-lg);
  }
}

@media (max-width: 768px) {
  .mobile-toc-toggle {
    display: none; /* Toggle butonunu gizle */
  }
  
  .detail-sidebar {
    position: relative; /* Fixed yerine relative yap */
    top: auto;
    left: auto;
    width: 100%;
    height: auto;
    z-index: auto;
    transform: none; /* Transform'u kaldır */
    transition: none; /* Transition'ı kaldır */
    max-height: none;
    border-radius: var(--radius-medium);
    margin-bottom: var(--spacing-md);
  }
  
  .sidebar-content h3 {
    text-align: left; /* Mobil için başlıkları sola hizala */
  }
  
  .table-of-contents {
    text-align: left; /* Mobil için linkleri sola hizala */
  }
  
  .detail-content-wrapper {
    flex-direction: column;
    padding-top: 0;
  }
  
  .visa-content {
    padding: var(--spacing-sm);
  }
  
  .content-section h2 {
    font-size: 24px;
  }
  
  .content-section {
    padding: var(--spacing-xs);
    scroll-margin-top: 120px; /* Slightly less on mobile but still enough space */
  }
}

