/* ============================================
   CONTENT PAGES - Enhanced Design
   Modern layout for topic pages
   ============================================ */

:root {
  --primary-gradient: linear-gradient(135deg, #4A90E2 0%, #2d5a87 100%);
  --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --card-shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.12);
}

/* ============================================
   HERO SECTION - Topic-specific headers
   ============================================ */
.page-hero {
  min-height: 400px;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 30% 20%, rgba(74, 144, 226, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 70% 80%, rgba(78, 205, 196, 0.1) 0%, transparent 40%);
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.hero-breadcrumb {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

.hero-breadcrumb a {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.3s ease;
}

.hero-breadcrumb a:hover {
  color: #4A90E2;
}

.page-hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  color: #ffffff;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 16px;
}

.page-hero .hero-subtitle {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.7);
  max-width: 600px;
  line-height: 1.6;
}

.hero-icon {
  position: absolute;
  right: 60px;
  top: 50%;
  transform: translateY(-50%);
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-icon i {
  font-size: 80px;
  color: rgba(255, 255, 255, 0.3);
}

@media (max-width: 968px) {
  .hero-icon {
    display: none;
  }
}

/* ============================================
   CONTENT LAYOUT - Two column asymmetric
   ============================================ */
.content-section {
  padding: 80px 0;
  background: #ffffff;
}

.content-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 60px;
  align-items: start;
}

/* Sidebar navigation */
.content-sidebar {
  position: sticky;
  top: 100px;
  background: #f8fafc;
  border-radius: 16px;
  padding: 30px;
}

.sidebar-title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #64748b;
  margin-bottom: 20px;
}

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

.sidebar-nav li {
  margin-bottom: 4px;
}

.sidebar-nav a {
  display: block;
  padding: 10px 16px;
  font-size: 15px;
  color: #334155;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
  background: #ffffff;
  color: #4A90E2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* Main content area */
.content-main {
  max-width: 720px;
}

.content-main h2 {
  font-size: 32px;
  color: #0f172a;
  font-weight: 700;
  margin: 48px 0 20px;
  line-height: 1.3;
}

.content-main h2:first-child {
  margin-top: 0;
}

.content-main h3 {
  font-size: 22px;
  color: #1e293b;
  font-weight: 600;
  margin: 36px 0 16px;
  line-height: 1.4;
}

.content-main p {
  font-size: 17px;
  line-height: 1.8;
  color: #475569;
  margin-bottom: 20px;
}

.content-main ul {
  margin: 20px 0;
  padding-left: 0;
  list-style: none;
}

.content-main li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  font-size: 16px;
  line-height: 1.7;
  color: #475569;
}

.content-main li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  background: linear-gradient(135deg, #4A90E2 0%, #4ecdc4 100%);
  border-radius: 50%;
}

.content-main a {
  color: #4A90E2;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.content-main a:hover {
  border-bottom-color: #4A90E2;
}

/* Highlight box */
.highlight-box {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border-left: 4px solid #4A90E2;
  border-radius: 12px;
  padding: 24px 28px;
  margin: 32px 0;
}

.highlight-box h4 {
  font-size: 18px;
  color: #0f172a;
  font-weight: 600;
  margin-bottom: 12px;
}

.highlight-box p {
  margin-bottom: 0;
  font-size: 16px;
}

/* Tip cards within content */
.tip-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 32px 0;
}

.tip-card {
  background: #f8fafc;
  border-radius: 12px;
  padding: 24px;
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
}

.tip-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
  border-color: #cbd5e1;
}

.tip-card-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #4A90E2 0%, #4ecdc4 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.tip-card-icon i {
  font-size: 22px;
  color: #ffffff;
}

.tip-card h4 {
  font-size: 17px;
  color: #0f172a;
  font-weight: 600;
  margin-bottom: 8px;
}

.tip-card p {
  font-size: 14px;
  color: #64748b;
  margin-bottom: 0;
  line-height: 1.6;
}

@media (max-width: 640px) {
  .tip-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   RELATED ARTICLES SECTION
   ============================================ */
.related-section {
  padding: 80px 0;
  background: #f1f5f9;
}

.section-header-compact {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.section-header-compact h2 {
  font-size: 28px;
  color: #0f172a;
  font-weight: 700;
}

.view-all-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #4A90E2;
  font-weight: 500;
  font-size: 15px;
  transition: gap 0.3s ease;
}

.view-all-link:hover {
  gap: 12px;
}

/* Article cards horizontal */
.articles-horizontal {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.article-card-compact {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.article-card-compact:hover {
  transform: translateY(-6px);
  box-shadow: var(--card-shadow-hover);
}

.article-card-image {
  height: 160px;
  background: linear-gradient(135deg, #e0f2fe 0%, #dbeafe 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.article-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-card-image i {
  font-size: 48px;
  color: #4A90E2;
  opacity: 0.5;
}

.article-card-body {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.article-card-body .badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #f1f5f9;
  color: #4A90E2;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  width: fit-content;
  margin-bottom: 12px;
}

.article-card-body h3 {
  font-size: 18px;
  color: #0f172a;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 12px;
}

.article-card-body p {
  font-size: 14px;
  color: #64748b;
  line-height: 1.6;
  flex-grow: 1;
  margin-bottom: 0;
}

@media (max-width: 968px) {
  .articles-horizontal {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .articles-horizontal {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   RESPONSIVE CONTENT LAYOUT
   ============================================ */
@media (max-width: 968px) {
  .content-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .content-sidebar {
    position: static;
    order: 2;
  }
  
  .sidebar-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  
  .sidebar-nav li {
    margin-bottom: 0;
  }
  
  .content-main {
    order: 1;
  }
}

@media (max-width: 640px) {
  .page-hero {
    padding: 100px 0 60px;
    min-height: auto;
  }
  
  .content-section {
    padding: 60px 0;
  }
  
  .content-main h2 {
    font-size: 26px;
  }
  
  .content-main h3 {
    font-size: 20px;
  }
  
  .content-main p {
    font-size: 16px;
  }
}
