body {
   font-family: Arial, sans-serif;
   margin: 0;
   padding: 0;
}
.banner {
   background-color: #607D8B; /* Blue-grey color */
   color: white;
   padding: 20px;
   display: flex;
   align-items: center;
}
.banner img {
   height: 50px;
   margin-right: 20px;
}
.banner h1 {
   flex-grow: 1;
   font-size: 2em;
   margin: 0;
}
.menu {
   background-color: #455A64; /* Darker blue-grey color */
   overflow: hidden;
}
.menu a {
   float: left;
   display: block;
   color: white;
   text-align: center;
   padding: 14px 16px;
   text-decoration: none;
}
.menu a:hover {
   background-color: #333;
}
.content {
   padding: 20px;
}

/* Section Layout Styles */
.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid #e5e7eb;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 1rem;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6, #1d4ed8);
  border-radius: 2px;
}

.section-description {
  font-size: 1.2rem;
  color: #6b7280;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.stories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.story-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease-in-out;
  position: relative;
  overflow: hidden;
}

.story-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6, #1d4ed8);
  transform: scaleX(0);
  transition: transform 0.3s ease-in-out;
}

.story-card:hover::before {
  transform: scaleX(1);
}

.story-card:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.story-header {
  margin-bottom: 1rem;
}

.story-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.story-title a {
  color: #1f2937;
  text-decoration: none;
  transition: color 0.2s ease-in-out;
}

.story-title a:hover {
  color: #3b82f6;
}

.story-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 1rem;
}

.story-date::before {
  content: '📅 ';
  margin-right: 0.25rem;
}

.story-author::before {
  content: '✍️ ';
  margin-right: 0.25rem;
}

.reading-time::before {
  content: '⏱️ ';
  margin-right: 0.25rem;
}

.quick-read {
  color: #10b981; /* Green for quick reads */
  font-weight: 600;
}

.medium-read {
  color: #f59e0b; /* Amber for medium reads */
  font-weight: 600;
}

.long-read {
  color: #ef4444; /* Red for long reads */
  font-weight: 600;
}

.quick-read::before {
  content: '⚡ ';
}

.medium-read::before {
  content: '📖 ';
}

.long-read::before {
  content: '📚 ';
}

.story-length-indicator {
  margin-top: 0.75rem;
}

.length-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.length-badge.short {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.length-badge.medium {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.length-badge.long {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.story-excerpt {
  margin-bottom: 1.5rem;
  line-height: 1.6;
  color: #374151;
  font-size: 0.95rem;
}

.story-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tag {
  background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
  color: #374151;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid #d1d5db;
  transition: all 0.2s ease-in-out;
}

.tag:hover {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white;
  transform: scale(1.05);
}

.story-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.read-more {
  color: #3b82f6;
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border: 1px solid #3b82f6;
  border-radius: 6px;
  transition: all 0.2s ease-in-out;
  position: relative;
  overflow: hidden;
}

.read-more::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.read-more:hover::before {
  left: 100%;
}

.read-more:hover {
  background: #3b82f6;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.story-stats {
  font-size: 0.75rem;
  color: #9ca3af;
}

.word-count::before {
  content: '📄 ';
  margin-right: 0.25rem;
}

.no-content {
  text-align: center;
  padding: 4rem 2rem;
  color: #6b7280;
}

.no-content-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.no-content h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #374151;
}

.no-content p {
  font-style: italic;
  font-size: 1.1rem;
}

/* Single Story Styles */
.story-single {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
}

.story-single-header {
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid #e5e7eb;
}

.story-single-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.story-single-meta {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.meta-group {
  display: flex;
  gap: 1rem;
  align-items: center;
  font-size: 0.9rem;
  color: #6b7280;
}

.story-single-tags {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.story-single-content {
  line-height: 1.8;
  font-size: 1.1rem;
  color: #374151;
  margin-bottom: 3rem;
}

.story-single-content p {
  margin-bottom: 1.5rem;
}

.story-single-content h1,
.story-single-content h2,
.story-single-content h3 {
  color: #1f2937;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.story-single-content h1 {
  font-size: 2rem;
}

.story-single-content h2 {
  font-size: 1.5rem;
}

.story-single-content h3 {
  font-size: 1.25rem;
}

.story-single-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid #e5e7eb;
}

.story-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.nav-link {
  text-decoration: none;
  padding: 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  transition: all 0.2s ease-in-out;
  display: block;
}

.nav-link:hover {
  border-color: #3b82f6;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
}

.prev-story {
  text-align: left;
}

.next-story {
  text-align: right;
}

.nav-label {
  display: block;
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 0.25rem;
  font-weight: 500;
}

.nav-title {
  display: block;
  color: #1f2937;
  font-weight: 600;
}

.back-to-stories {
  text-align: center;
}

.back-link {
  color: #3b82f6;
  text-decoration: none;
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  border: 2px solid #3b82f6;
  border-radius: 8px;
  transition: all 0.2s ease-in-out;
  display: inline-block;
}

.back-link:hover {
  background: #3b82f6;
  color: white;
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .stories-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .story-meta {
    flex-direction: column;
    gap: 0.25rem;
  }
  
  .story-single-title {
    font-size: 1.8rem;
  }
  
  .story-single-meta {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .meta-group {
    justify-content: center;
  }
  
  .story-navigation {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .next-story,
  .prev-story {
    text-align: center;
  }
  
  .section-container,
  .story-single {
    padding: 0 0.5rem;
  }
  
  .story-single-content {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 1.5rem;
  }
  
  .story-single-title {
    font-size: 1.5rem;
  }
  
  .story-card {
    padding: 1rem;
  }
  
  .story-footer {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }
  
  .read-more {
    text-align: center;
  }
}