/**
 * Content Pages CSS - SEO Dada
 * Shared styles for blogs, webstories, blog_detail, webstory_detail pages
 * Extracted from inline styles for better performance and maintainability
 */

/* ==========================================================================
   CSS Variables for Content Pages
   ========================================================================== */
:root {
  --content-primary: #273879;
  --content-primary-light: #0f74b2;
  --content-primary-dark: #1f2d5f;
  --content-seodada-gradient: linear-gradient(135deg, #273879, #0f74b2);
  --content-text: #1e293b;
  --content-text-light: #64748b;
  --content-surface: #ffffff;
  --content-border: #e5e7eb;
  --content-background: #f8fafc;
  --content-radius: 0.75rem;
  --content-transition: 0.3s ease;
  --content-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --content-shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* ==========================================================================
   Base Body Styles - Scoped to content pages
   ========================================================================== */
body:has(.main-container),
body:has(.page-header),
body:has(.blog-grid),
body:has(.webstory-grid) {
  font-family: 'Poppins', sans-serif;
  padding-top: 70px;
}

/* ==========================================================================
   Main Container
   ========================================================================== */
.main-container {
  margin-top: 4.375rem;
  padding: 2rem;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   Page Header - Modern Hero Style
   ========================================================================== */
.page-header {
  background: var(--content-seodada-gradient);
  color: white;
  padding: 4rem 2rem;
  border-radius: var(--content-radius);
  margin-bottom: 2rem;
  box-shadow: 0 0.625rem 0.9375rem -0.1875rem rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  transform: translate(30%, -30%);
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 50%;
  transform: translate(-30%, 30%);
}

.page-header-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.page-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}

.page-header p {
  opacity: 0.95;
  margin: 0;
  font-size: 1.1rem;
}

/* ==========================================================================
   Category Filter
   ========================================================================== */
.category-filter {
  background: var(--content-surface);
  padding: 1.5rem;
  border-radius: var(--content-radius);
  box-shadow: 0 0.25rem 0.375rem -0.0625rem rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

.category-filter h5 {
  margin-bottom: 1rem;
  font-weight: 600;
  color: var(--content-text);
}

.category-btn {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  margin: 0.25rem;
  border: 2px solid #dee2e6;
  border-radius: 25px;
  color: var(--content-text);
  text-decoration: none;
  transition: all var(--content-transition);
  font-weight: 500;
}

.category-btn:hover,
.category-btn.active {
  background: var(--content-seodada-gradient);
  border-color: transparent;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.05);
}

/* ==========================================================================
   Blog Grid - Modern Card Layout
   ========================================================================== */
.blogs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.blog-card {
  background: var(--content-surface);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0, 0, 0, 0.06);
  position: relative;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.blog-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--content-seodada-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

.blog-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 25px 50px -12px rgba(39, 56, 121, 0.25),
              0 12px 24px -8px rgba(15, 116, 178, 0.15),
              0 0 0 1px rgba(39, 56, 121, 0.05);
  border-color: transparent;
}

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

/* Fade-in animation */
@keyframes contentFadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.blog-card {
  animation: contentFadeInUp 0.6s ease backwards;
}

.blog-card:nth-child(1) { animation-delay: 0.1s; }
.blog-card:nth-child(2) { animation-delay: 0.2s; }
.blog-card:nth-child(3) { animation-delay: 0.3s; }
.blog-card:nth-child(4) { animation-delay: 0.4s; }
.blog-card:nth-child(5) { animation-delay: 0.5s; }
.blog-card:nth-child(6) { animation-delay: 0.6s; }

.blog-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--content-seodada-gradient);
  transition: filter 0.4s ease;
  position: relative;
}

.blog-card:hover .blog-image {
  filter: brightness(1.05) contrast(1.05);
}

.blog-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-category {
  display: inline-block;
  padding: 0.375rem 1rem;
  background: linear-gradient(135deg, rgba(39, 56, 121, 0.1), rgba(15, 116, 178, 0.08));
  color: var(--content-primary);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 1rem;
  width: fit-content;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all var(--content-transition);
  border: 1px solid rgba(39, 56, 121, 0.15);
}

.blog-card:hover .blog-category {
  background: var(--content-seodada-gradient);
  color: white;
  border-color: transparent;
  transform: translateY(-2px);
}

.blog-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--content-text);
  margin-bottom: 0.875rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--content-transition);
}

.blog-title a {
  color: inherit;
  text-decoration: none;
  background: linear-gradient(to right, var(--content-primary), var(--content-primary-light)) no-repeat;
  background-size: 0% 2px;
  background-position: left bottom;
  transition: background-size 0.4s ease, color var(--content-transition);
}

.blog-card:hover .blog-title a {
  color: var(--content-primary);
  background-size: 100% 2px;
}

.blog-excerpt {
  color: var(--content-text-light);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--content-text-light);
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
}

.blog-meta span {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.read-more {
  color: var(--content-primary);
  text-decoration: none;
  font-weight: 600;
  transition: all var(--content-transition);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.read-more:hover {
  color: var(--content-primary-dark);
  gap: 0.5rem;
}

/* ==========================================================================
   Web Stories Grid - Enhanced Instagram-Style
   ========================================================================== */
.stories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.story-card {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 9/16;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: var(--content-seodada-gradient);
}

.story-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0.4) 40%,
    rgba(0, 0, 0, 0.1) 70%,
    transparent 100%
  );
  z-index: 1;
  transition: background 0.4s ease;
}

.story-card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 20px 50px rgba(39, 56, 121, 0.35);
}

.story-card:hover::before {
  background: linear-gradient(
    to top,
    rgba(39, 56, 121, 0.9) 0%,
    rgba(15, 116, 178, 0.5) 40%,
    rgba(0, 0, 0, 0.15) 70%,
    transparent 100%
  );
}

/* Story card animation */
.story-card {
  animation: contentFadeInUp 0.6s ease backwards;
}

.story-card:nth-child(1) { animation-delay: 0.05s; }
.story-card:nth-child(2) { animation-delay: 0.1s; }
.story-card:nth-child(3) { animation-delay: 0.15s; }
.story-card:nth-child(4) { animation-delay: 0.2s; }
.story-card:nth-child(5) { animation-delay: 0.25s; }
.story-card:nth-child(6) { animation-delay: 0.3s; }
.story-card:nth-child(7) { animation-delay: 0.35s; }
.story-card:nth-child(8) { animation-delay: 0.4s; }

.story-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  transition: transform 0.6s ease;
}

.story-card:hover .story-image {
  transform: scale(1.08);
}

.story-card-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem 1.25rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.story-title {
  font-size: 1rem;
  font-weight: 700;
  color: white;
  margin: 0;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.story-title a {
  color: inherit;
  text-decoration: none;
}

.story-excerpt {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

.story-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 0.5rem;
}

.story-meta span {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.story-meta .read-more {
  color: white;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.35rem 0.75rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  backdrop-filter: blur(4px);
  transition: all 0.3s ease;
}

.story-meta .read-more:hover {
  background: white;
  color: var(--content-primary);
}

/* Story play icon overlay */
.story-card::after {
  content: '\f04b';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  font-size: 2rem;
  color: white;
  opacity: 0;
  transition: all 0.4s ease;
  z-index: 2;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.story-card:hover::after {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* No stories empty state */
.no-stories {
  text-align: center;
  padding: 5rem 2rem;
  color: var(--content-text-light);
}

.no-stories i {
  font-size: 5rem;
  margin-bottom: 1.5rem;
  opacity: 0.4;
  background: var(--content-seodada-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.no-stories h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--content-text);
}

.no-stories p {
  font-size: 1rem;
  margin: 0;
}

/* ==========================================================================
   Web Story Detail Page - Full Screen Viewer
   ========================================================================== */

/* Loading Screen */
.loading-screen {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--content-primary-light);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-text {
  color: white;
  margin-top: 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* Story Viewer Container */
.story-viewer {
  position: fixed;
  inset: 0;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Poppins', sans-serif;
}

.story-container {
  position: relative;
  width: 100%;
  max-width: 420px;
  height: 100vh;
  max-height: 100vh;
  overflow: hidden;
  background: #111;
}

@media (min-width: 768px) {
  .story-container {
    height: 90vh;
    max-height: 900px;
    border-radius: 1rem;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
  }
}

/* Story Slides */
.story-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  display: flex;
  flex-direction: column;
}

.story-slide.active {
  opacity: 1;
  visibility: visible;
}

.slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.slide-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.8) 0%,
    rgba(0, 0, 0, 0.2) 40%,
    rgba(0, 0, 0, 0.1) 70%,
    rgba(0, 0, 0, 0.4) 100%
  );
}

/* Story Header with Progress Bars */
.story-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.story-progress {
  display: flex;
  gap: 4px;
}

.progress-bar {
  flex: 1;
  height: 3px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: white;
  width: 0%;
  border-radius: 3px;
}

.progress-bar.completed .progress-fill {
  width: 100%;
}

@keyframes progress {
  from { width: 0%; }
  to { width: 100%; }
}

/* Close Button */
.story-close {
  position: absolute;
  top: 2.5rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  background: rgba(0, 0, 0, 0.4);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
}

.story-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

/* Story Content */
.story-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem 1.5rem 3rem;
  z-index: 5;
}

.story-heading {
  font-size: 1.75rem;
  font-weight: 800;
  color: white;
  margin-bottom: 0.75rem;
  line-height: 1.25;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  animation: slideUp 0.5s ease;
}

.story-text {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  margin-bottom: 1rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  animation: slideUp 0.5s ease 0.1s backwards;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Learn More Link */
.story-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: white;
  color: var(--content-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 50px;
  transition: all 0.3s ease;
  animation: slideUp 0.5s ease 0.2s backwards;
}

.story-link:hover {
  background: var(--content-seodada-gradient);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Navigation Areas */
.story-navigation {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 25%;
  z-index: 6;
  cursor: pointer;
}

.nav-prev { left: 0; }
.nav-next { right: 0; }

/* Pause Indicator */
.pause-indicator {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  width: 70px;
  height: 70px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 20;
  backdrop-filter: blur(4px);
}

.pause-indicator.show {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.pause-indicator i {
  color: white;
  font-size: 1.5rem;
}

/* Legacy webstory classes for compatibility */
.webstories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.webstory-card {
  background: var(--content-surface);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0, 0, 0, 0.06);
  position: relative;
  cursor: pointer;
}

.webstory-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--content-seodada-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

.webstory-card:hover {
  transform: translateY(-10px) scale(1.01);
  box-shadow: 0 20px 40px -12px rgba(39, 56, 121, 0.2);
  border-color: transparent;
}

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

.webstory-image {
  width: 100%;
  height: 320px;
  object-fit: cover;
  background: var(--content-seodada-gradient);
  transition: filter 0.4s ease;
}

.webstory-card:hover .webstory-image {
  filter: brightness(1.05);
}

.webstory-card-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.webstory-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--content-text);
  margin-bottom: 0.5rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.webstory-title a {
  color: inherit;
  text-decoration: none;
  transition: color var(--content-transition);
}

.webstory-card:hover .webstory-title a {
  color: var(--content-primary);
}

/* ==========================================================================
   Pagination
   ========================================================================== */
.pagination-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
}

.pagination {
  display: flex;
  list-style: none;
  padding: 0;
  gap: 0.5rem;
}

.page-item {
  margin: 0;
}

.page-link {
  padding: 0.5rem 1rem;
  border: 2px solid #dee2e6;
  border-radius: 0.5rem;
  color: var(--content-text);
  text-decoration: none;
  transition: all var(--content-transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.page-link:hover {
  background: var(--content-seodada-gradient);
  border-color: transparent;
  color: white;
}

.page-item.active .page-link {
  background: var(--content-seodada-gradient);
  border-color: transparent;
  color: white;
}

.page-item.disabled .page-link {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ==========================================================================
   Empty State
   ========================================================================== */
.no-blogs,
.no-webstories {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--content-text-light);
}

.no-blogs i,
.no-webstories i {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

/* ==========================================================================
   Scroll to Top Button
   ========================================================================== */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--content-seodada-gradient);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 4px 15px rgba(39, 56, 121, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--content-transition);
  z-index: 999;
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(39, 56, 121, 0.4);
}

/* ==========================================================================
   Blog Detail Page Styles - Enhanced
   ========================================================================== */

/* Reading Progress Bar */
.reading-progress {
  position: fixed;
  top: 70px;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(39, 56, 121, 0.1);
  z-index: 1000;
}

.reading-progress-bar {
  height: 100%;
  background: var(--content-seodada-gradient);
  width: 0%;
  transition: width 0.1s ease-out;
}

/* Back Button */
.back-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: var(--content-surface);
  color: var(--content-text);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 500;
  font-size: 0.9rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all var(--content-transition);
  margin-bottom: 1.5rem;
  border: 1px solid var(--content-border);
}

.back-button:hover {
  background: var(--content-seodada-gradient);
  color: white;
  border-color: transparent;
  transform: translateX(-5px);
}

.back-button i {
  transition: transform var(--content-transition);
}

.back-button:hover i {
  transform: translateX(-3px);
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--content-text-light);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.breadcrumbs a {
  color: var(--content-primary);
  text-decoration: none;
  transition: color var(--content-transition);
}

.breadcrumbs a:hover {
  color: var(--content-primary-dark);
  text-decoration: underline;
}

.breadcrumbs .separator {
  color: var(--content-text-light);
  opacity: 0.5;
}

.breadcrumbs .current {
  color: var(--content-text);
  font-weight: 500;
}

/* Blog Header Card */
.blog-header-card {
  background: var(--content-surface);
  padding: 2.5rem;
  border-radius: 1rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.blog-header-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--content-seodada-gradient);
}

.blog-category-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, rgba(39, 56, 121, 0.1), rgba(15, 116, 178, 0.08));
  color: var(--content-primary);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid rgba(39, 56, 121, 0.15);
}

.blog-header-card h1 {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--content-text);
  line-height: 1.3;
  margin-bottom: 1.25rem;
  letter-spacing: -0.5px;
}

.blog-header-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  color: var(--content-text-light);
  font-size: 0.9rem;
}

.blog-header-meta span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.blog-header-meta i {
  color: var(--content-primary);
  opacity: 0.7;
}

/* Reading Time Badge */
.reading-time {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  background: rgba(39, 56, 121, 0.08);
  border-radius: 50px;
  font-size: 0.8rem;
  color: var(--content-primary);
  font-weight: 500;
}

/* Blog Content Card */
.blog-content-card {
  background: var(--content-surface);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
  margin-bottom: 2rem;
}

.blog-featured-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-body {
  padding: 2.5rem;
  font-size: 1.1rem;
  line-height: 1.9;
  color: var(--content-text);
}

.blog-body h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--content-text);
  position: relative;
  padding-left: 1rem;
}

.blog-body h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.25rem;
  bottom: 0.25rem;
  width: 4px;
  background: var(--content-seodada-gradient);
  border-radius: 2px;
}

.blog-body h3 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.875rem;
  color: var(--content-text);
}

.blog-body h4 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--content-text);
}

.blog-body p {
  margin-bottom: 1.5rem;
}

.blog-body ul,
.blog-body ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.blog-body li {
  margin-bottom: 0.5rem;
}

.blog-body blockquote {
  margin: 2rem 0;
  padding: 1.5rem 2rem;
  background: linear-gradient(135deg, rgba(39, 56, 121, 0.05), rgba(15, 116, 178, 0.03));
  border-left: 4px solid var(--content-primary);
  border-radius: 0 var(--content-radius) var(--content-radius) 0;
  font-style: italic;
  color: var(--content-text);
}

.blog-body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--content-radius);
  margin: 1.5rem 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.blog-body a {
  color: var(--content-primary);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all var(--content-transition);
}

.blog-body a:hover {
  color: var(--content-primary-dark);
  border-bottom-color: var(--content-primary-dark);
}

.blog-body code {
  background: rgba(39, 56, 121, 0.08);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.9em;
  color: var(--content-primary);
}

.blog-body pre {
  background: #1e293b;
  color: #e2e8f0;
  padding: 1.5rem;
  border-radius: var(--content-radius);
  overflow-x: auto;
  margin: 1.5rem 0;
}

.blog-body pre code {
  background: transparent;
  padding: 0;
  color: inherit;
}

/* FAQ Section */
.faq-section {
  background: var(--content-surface);
  padding: 2rem;
  border-radius: 1rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.faq-section h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--content-text);
  display: flex;
  align-items: center;
}

.faq-section h3 i {
  color: var(--content-primary);
}

.faq-item {
  border: 1px solid var(--content-border);
  border-radius: var(--content-radius);
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: all var(--content-transition);
}

.faq-item:last-child {
  margin-bottom: 0;
}

.faq-item:hover {
  border-color: rgba(39, 56, 121, 0.3);
}

.faq-question {
  padding: 1.25rem 1.5rem;
  background: var(--content-background);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: var(--content-text);
  transition: all var(--content-transition);
}

.faq-question:hover {
  background: linear-gradient(135deg, rgba(39, 56, 121, 0.05), rgba(15, 116, 178, 0.03));
}

.faq-question i {
  color: var(--content-primary);
  transition: transform var(--content-transition);
  font-size: 0.8rem;
}

.faq-item.active .faq-question {
  background: var(--content-seodada-gradient);
  color: white;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
  color: white;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  background: var(--content-surface);
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 1.25rem 1.5rem;
}

.faq-answer p {
  margin: 0;
  color: var(--content-text-light);
  line-height: 1.7;
}

/* Share Card */
.share-card {
  background: var(--content-surface);
  padding: 1.5rem 2rem;
  border-radius: 1rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.share-card h5 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--content-text);
  display: flex;
  align-items: center;
}

.share-card h5 i {
  color: var(--content-primary);
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: white;
  text-decoration: none;
  transition: all var(--content-transition);
  font-size: 1.1rem;
}

.share-btn:hover {
  transform: translateY(-3px) scale(1.1);
  color: white;
}

.share-facebook { background: #1877f2; }
.share-facebook:hover { box-shadow: 0 8px 20px rgba(24, 119, 242, 0.4); }

.share-twitter { background: #1da1f2; }
.share-twitter:hover { box-shadow: 0 8px 20px rgba(29, 161, 242, 0.4); }

.share-linkedin { background: #0077b5; }
.share-linkedin:hover { box-shadow: 0 8px 20px rgba(0, 119, 181, 0.4); }

.share-whatsapp { background: #25d366; }
.share-whatsapp:hover { box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4); }

/* Related Posts */
.related-posts {
  margin-top: 2rem;
}

.related-posts h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--content-text);
  display: flex;
  align-items: center;
}

.related-posts h3 i {
  color: var(--content-primary);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.related-card {
  background: var(--content-surface);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all var(--content-transition);
}

.related-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(39, 56, 121, 0.15);
}

.related-image {
  width: 100%;
  height: 160px;
  object-fit: cover;
  background: var(--content-seodada-gradient);
}

.related-card-body {
  padding: 1.25rem;
}

.related-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-title a {
  color: var(--content-text);
  text-decoration: none;
  transition: color var(--content-transition);
}

.related-title a:hover {
  color: var(--content-primary);
}

.related-date {
  font-size: 0.8rem;
  color: var(--content-text-light);
  margin: 0;
}

/* ==========================================================================
   Terms of Service / Privacy Policy Page Styles
   ========================================================================== */

/* Section Title */
.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--content-text);
  margin-top: 2rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--content-primary);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-title i {
  color: var(--content-primary);
}

/* Restriction Box (Acceptable Use) */
.restriction-box {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.08), rgba(220, 38, 38, 0.05));
  border-left: 4px solid #dc2626;
  border-radius: 0 var(--content-radius) var(--content-radius) 0;
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.restriction-box h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #dc2626;
  margin-bottom: 1rem;
}

.restriction-box ul {
  margin: 0;
  padding-left: 1.25rem;
}

.restriction-box li {
  margin-bottom: 0.5rem;
  color: var(--content-text);
}

/* Alert Box */
.alert-box {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: var(--content-radius);
  margin: 2rem 0;
}

.alert-box.warning {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(217, 119, 6, 0.05));
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.alert-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.alert-icon.warning {
  color: #f59e0b;
}

.alert-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--content-text);
  margin-bottom: 0.5rem;
}

.alert-content p {
  margin: 0;
  color: var(--content-text-light);
  line-height: 1.6;
}

/* Contact Notice */
.contact-notice {
  background: linear-gradient(135deg, rgba(39, 56, 121, 0.08), rgba(15, 116, 178, 0.05));
  border-radius: var(--content-radius);
  padding: 1.5rem;
  text-align: center;
  margin-top: 2rem;
}

.contact-notice p {
  margin-bottom: 0.75rem;
  color: var(--content-text);
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--content-primary);
  text-decoration: none;
  font-weight: 600;
  transition: all var(--content-transition);
}

.contact-email:hover {
  color: var(--content-primary-dark);
}

/* Last Updated */
.last-updated {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--content-border);
}

.last-updated p {
  color: var(--content-text-light);
  font-size: 0.875rem;
  margin: 0;
}

/* ==========================================================================
   Static Pages (About, Terms, Contact)
   ========================================================================== */
.static-page-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.static-page-header {
  text-align: center;
  margin-bottom: 3rem;
}

.static-page-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--content-text);
  margin-bottom: 1rem;
}

.static-page-subtitle {
  font-size: 1.1rem;
  color: var(--content-text-light);
}

.static-page-content {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--content-text);
}

.static-page-content h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--content-text);
}

.static-page-content p {
  margin-bottom: 1.25rem;
}

.static-page-content ul,
.static-page-content ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.static-page-content li {
  margin-bottom: 0.5rem;
}

/* Contact Form Styles */
.contact-form {
  background: var(--content-surface);
  padding: 2rem;
  border-radius: var(--content-radius);
  box-shadow: var(--content-shadow);
}

.contact-form .form-group {
  margin-bottom: 1.5rem;
}

.contact-form label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--content-text);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--content-border);
  border-radius: 0.5rem;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color var(--content-transition), box-shadow var(--content-transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--content-primary);
  box-shadow: 0 0 0 3px rgba(39, 56, 121, 0.1);
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-form button {
  background: var(--content-seodada-gradient);
  color: white;
  border: none;
  padding: 0.875rem 2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--content-transition);
}

.contact-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(39, 56, 121, 0.3);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 1024px) {
  .blogs-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

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

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

@media (max-width: 768px) {
  .page-header h1 {
    font-size: 1.75rem;
  }

  .page-header p {
    font-size: 0.95rem;
  }

  .page-header {
    padding: 2.5rem 1.25rem;
    margin-bottom: 1.5rem;
  }

  .main-container {
    padding: 1rem;
    margin-top: 3.5rem;
  }

  .blogs-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

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

  .blog-image {
    height: 200px;
  }

  .webstory-image {
    height: 280px;
  }

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

  .story-title {
    font-size: 0.9rem;
  }

  .story-excerpt {
    display: none;
  }

  .story-card-body {
    padding: 1rem;
  }

  .scroll-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }

  .blog-detail-title {
    font-size: 1.75rem;
  }

  .blog-detail-content {
    font-size: 1rem;
  }

  .static-page-title {
    font-size: 1.75rem;
  }
}

@media (max-width: 480px) {
  .page-header h1 {
    font-size: 1.5rem;
  }

  .blogs-grid,
  .webstories-grid {
    grid-template-columns: 1fr;
  }

  .blog-title {
    font-size: 1.1rem;
  }

  .blog-card-body {
    padding: 1rem;
  }

  .webstory-image {
    height: 240px;
  }

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

  .story-card::after {
    font-size: 1.5rem;
  }

  .story-card-body {
    padding: 0.875rem;
  }

  .story-title {
    font-size: 0.85rem;
    -webkit-line-clamp: 2;
  }

  .story-meta {
    display: none;
  }

  .contact-form {
    padding: 1.5rem;
  }
}

/* ==========================================================================
   Accessibility - Reduced Motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .blog-card,
  .webstory-card,
  .category-btn,
  .scroll-to-top,
  .page-link {
    animation: none !important;
    transition: none !important;
  }

  .blog-card:hover,
  .webstory-card:hover {
    transform: none !important;
  }

  .blog-card::before,
  .webstory-card::before {
    transition: none !important;
  }
}

/* ==========================================================================
   Accessibility - High Contrast
   ========================================================================== */
@media (prefers-contrast: high) {
  .blog-card,
  .webstory-card {
    border: 2px solid #000;
  }

  .category-btn {
    border: 2px solid #000;
  }

  .page-link {
    border: 2px solid #000;
  }
}

/* ==========================================================================
   Dark Mode Support - DISABLED to enforce light theme
   ========================================================================== */
/* Light theme is always used regardless of system preference */
