/* Blog Pages - Modern Elegant Design */

.blog-page,
.blog-post-page {
  background: #000000;
  color: #ffffff;
  min-height: 100vh;
}

/* ===== BLOG HERO SECTION ===== */
.blog-hero,
.blog-post-hero {
  position: relative;
  padding: 6rem 2rem 4rem;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  animation: float 20s ease-in-out infinite;
}

.hero-shape.shape-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #100961 0%, transparent 70%);
  top: -200px;
  right: -200px;
  animation-delay: 0s;
}

.hero-shape.shape-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #2d2da3 0%, transparent 70%);
  bottom: -150px;
  left: -150px;
  animation-delay: 5s;
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(30px, -30px) scale(1.1);
  }
  66% {
    transform: translate(-20px, 20px) scale(0.9);
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.blog-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  background: rgba(16, 9, 97, 0.2);
  border: 1px solid rgba(16, 9, 97, 0.3);
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #b8c0e8;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(10px);
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: linear-gradient(135deg, #100961 0%, #2d2da3 100%);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.2);
  }
}

.blog-title,
.blog-post-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.title-word {
  background: linear-gradient(135deg, #ffffff 0%, #b0b0b0 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 3s ease infinite;
  display: inline-block;
}

@keyframes gradientShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.blog-subtitle {
  font-size: 1.125rem;
  color: #b0b0b0;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ===== BLOG CONTAINER ===== */
.blog-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

/* ===== BLOG GRID ===== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2.5rem;
  margin-bottom: 4rem;
}

/* ===== BLOG CARD ===== */
.blog-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.5rem;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  transform: translateY(30px);
  position: relative;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.blog-card.animated,
.blog-card[data-animate].animated {
  opacity: 1;
  transform: translateY(0);
}

.blog-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #100961 0%, #2d2da3 100%);
  transform: scaleX(0);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

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

.blog-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

.blog-card-image {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-image img {
  transform: scale(1.1);
}

.blog-card-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
  color: #b0b0b0;
  flex-wrap: wrap;
}

.blog-date {
  color: #b8c0e8;
}

.blog-author {
  color: #888;
}

.blog-card-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
}

.blog-card-title a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.blog-card-title a:hover {
  color: #b8c0e8;
}

.blog-card-excerpt {
  color: #b0b0b0;
  line-height: 1.6;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.blog-read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #b8c0e8;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.blog-read-more:hover {
  color: #ffffff;
  gap: 0.75rem;
}

.blog-read-more svg {
  transition: transform 0.3s ease;
}

.blog-read-more:hover svg {
  transform: translateX(4px);
}

.blog-views {
  font-size: 0.875rem;
  color: #888;
}

/* ===== BLOG POST DETAIL ===== */
.blog-post-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.blog-post-featured-image {
  width: 100%;
  margin-bottom: 3rem;
  border-radius: 1.5rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  position: relative;
}

.blog-post-featured-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #100961 0%, #2d2da3 100%);
  z-index: 1;
}

.blog-post-featured-image img {
  width: 100%;
  height: auto;
  display: block;
}

.blog-post-content {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.5rem;
  padding: 3rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  position: relative;
}

.blog-post-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #100961 0%, #2d2da3 100%);
  border-radius: 1.5rem 1.5rem 0 0;
}

.blog-post-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  font-size: 0.95rem;
  color: #b0b0b0;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.blog-post-body {
  font-size: 1.125rem;
  line-height: 1.8;
  color: #d0d0d0;
}

/* Headings */
.blog-post-body h1,
.blog-post-body h2,
.blog-post-body h3,
.blog-post-body h4,
.blog-post-body h5,
.blog-post-body h6 {
  color: #ffffff;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
  line-height: 1.3;
}

.blog-post-body h1 {
  font-size: 2.5rem;
  border-bottom: 2px solid rgba(16, 9, 97, 0.3);
  padding-bottom: 0.5rem;
}

.blog-post-body h2 {
  font-size: 2rem;
  border-bottom: 1px solid rgba(16, 9, 97, 0.2);
  padding-bottom: 0.5rem;
}

.blog-post-body h3 {
  font-size: 1.75rem;
}

.blog-post-body h4 {
  font-size: 1.5rem;
}

.blog-post-body h5 {
  font-size: 1.25rem;
}

.blog-post-body h6 {
  font-size: 1.125rem;
}

/* Paragraphs */
.blog-post-body p {
  margin-bottom: 1.5rem;
}

/* Links */
.blog-post-body a {
  color: #b8c0e8;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.blog-post-body a:hover {
  color: #ffffff;
}

/* Lists */
.blog-post-body ul,
.blog-post-body ol {
  margin: 1.5rem 0;
  padding-left: 2rem;
}

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

.blog-post-body ul li {
  list-style-type: disc;
}

.blog-post-body ol li {
  list-style-type: decimal;
}

.blog-post-body li::marker {
  color: #b8c0e8;
}

/* Nested lists */
.blog-post-body ul ul,
.blog-post-body ol ol,
.blog-post-body ul ol,
.blog-post-body ol ul {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

/* Images */
.blog-post-body img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
  margin: 2rem auto;
  display: block;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Blockquotes */
.blog-post-body blockquote {
  border-left: 4px solid #100961;
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: #b0b0b0;
  background: rgba(16, 9, 97, 0.1);
  border-radius: 0 0.5rem 0.5rem 0;
}

.blog-post-body blockquote p {
  margin-bottom: 0.5rem;
}

.blog-post-body blockquote p:last-child {
  margin-bottom: 0;
}

/* Code */
.blog-post-body code {
  background: rgba(16, 9, 97, 0.3);
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-family: monospace;
  font-size: 0.9em;
  color: #ffffff;
}

.blog-post-body pre {
  background: rgba(0, 0, 0, 0.3);
  padding: 1.5rem;
  border-radius: 0.75rem;
  overflow-x: auto;
  margin: 2rem 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.blog-post-body pre code {
  background: none;
  padding: 0;
  color: #e0e0e0;
}

/* Text formatting */
.blog-post-body strong {
  font-weight: 700;
  color: #ffffff;
}

.blog-post-body em {
  font-style: italic;
}

.blog-post-body u {
  text-decoration: underline;
}

.blog-post-body s {
  text-decoration: line-through;
  opacity: 0.7;
}

/* Horizontal rule */
.blog-post-body hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin: 2.5rem 0;
}

/* Subscript and Superscript */
.blog-post-body sub,
.blog-post-body sup {
  font-size: 0.75em;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

.blog-post-body sup {
  top: -0.5em;
}

.blog-post-body sub {
  bottom: -0.25em;
}

/* Alignment */
.blog-post-body [style*="text-align: center"] {
  text-align: center;
}

.blog-post-body [style*="text-align: right"] {
  text-align: right;
}

.blog-post-body [style*="text-align: justify"] {
  text-align: justify;
}

/* Video embeds */
.blog-post-body iframe {
  max-width: 100%;
  border-radius: 0.75rem;
  margin: 2rem 0;
  display: block;
}

/* Tables (if used) */
.blog-post-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 0.5rem;
  overflow: hidden;
}

.blog-post-body table th,
.blog-post-body table td {
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.blog-post-body table th {
  background: rgba(16, 9, 97, 0.3);
  color: #ffffff;
  font-weight: 600;
  text-align: left;
}

.blog-post-body table td {
  color: #e0e0e0;
}

/* ===== BLOG POST FOOTER ===== */
.blog-post-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.back-to-blog {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: #b8c0e8;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.back-to-blog:hover {
  color: #ffffff;
  gap: 1rem;
}

.back-to-blog svg {
  transition: transform 0.3s ease;
}

.back-to-blog:hover svg {
  transform: translateX(-4px);
}

/* ===== PAGINATION ===== */
.blog-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.pagination-btn {
  padding: 0.75rem 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0.5rem;
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.pagination-btn:hover {
  background: linear-gradient(135deg, #100961 0%, #2d2da3 100%);
  border-color: rgba(16, 9, 97, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(16, 9, 97, 0.3);
}

.pagination-info {
  color: #b0b0b0;
  font-size: 0.95rem;
}

/* ===== EMPTY STATE ===== */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: #888;
  font-size: 1.125rem;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
  }

  .blog-post-container {
    padding: 3rem 1.5rem;
  }

  .blog-post-content {
    padding: 2.5rem;
  }
}

@media (max-width: 768px) {
  .blog-hero,
  .blog-post-hero {
    padding: 4rem 1.5rem 3rem;
  }

  .blog-title,
  .blog-post-title {
    font-size: 2.5rem;
    flex-direction: column;
    gap: 0.5rem;
  }

  .blog-container {
    padding: 3rem 1.5rem;
  }

  .blog-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .blog-card-content {
    padding: 1.5rem;
  }

  .blog-post-container {
    padding: 2rem 1rem;
  }

  .blog-post-content {
    padding: 2rem 1.5rem;
  }

  .blog-post-body {
    font-size: 1rem;
  }

  .blog-post-body h1 {
    font-size: 2rem;
  }

  .blog-post-body h2 {
    font-size: 1.75rem;
  }

  .blog-post-body h3 {
    font-size: 1.5rem;
  }

  .blog-pagination {
    flex-direction: column;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .blog-hero,
  .blog-post-hero {
    padding: 3rem 1rem 2rem;
  }

  .blog-title,
  .blog-post-title {
    font-size: 2rem;
  }

  .blog-card-image {
    height: 200px;
  }

  .blog-post-meta {
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
  }
}

