@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

body {
  background: #5a0000;
  color: #fffbe6;
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #5a0000 url('../assets/red.jpeg') center/cover no-repeat fixed;
  z-index: -1;
  opacity: 1;
}

.blog-post {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 24px;
  position: relative;
  z-index: 1;
  box-sizing: border-box;
}

.blog-post-header {
  margin-bottom: 3rem;
  max-width: 950px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
  box-sizing: border-box;
}

.blog-post-content {
  background: transparent;
  padding: 1rem 24px;
  line-height: 1.8;
  color: #fffbe6;
  max-width: 950px;
  margin: 0 auto;
  box-sizing: border-box;
}

.blog-post-title {
  font-size: 2.5rem;
  color: #ffcc00;
  margin: 20px 0 24px 0;
  line-height: 1.3;
  font-weight: 700 !important;
  text-align: left !important;
  padding-left: 0 !important;
  display: flex;
  align-items: center;
  gap: 10px;
}

.blog-title-icon {
  color: #FFD700;
  font-size: 2.2rem;
  vertical-align: middle;
  margin-right: 10px;
  font-family: inherit;
  font-weight: 700;
  display: inline-block;
}

.blog-author-line {
  font-size: 1rem;
  color: #ffe9a6;
  margin-top: 2px;
  margin-bottom: 18px;
  margin-left: 2px;
  font-weight: 500;
  letter-spacing: 0.01em;
  opacity: 0.78;
}

.blog-post-featured-image {
  margin: 30px 0;
  text-align: center;
}

.blog-post-featured-image img {
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(90, 0, 0, 0.4);
}

.blog-post-content h1,
.blog-post-content h2,
.blog-post-content h3,
.blog-post-content h4,
.blog-post-content h5,
.blog-post-content h6 {
  text-align: left !important;
  color: #ffcc00;
  font-weight: 600;
  margin: 40px 0 20px;
}

.blog-post-content h2 {
  font-size: 1.8rem;
  position: relative;
  padding-bottom: 10px;
}

.blog-post-content h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(to right, #ffcc00, transparent);
}

.blog-post-content h3 {
  font-size: 1.6rem;
}

.blog-post-content p {
  margin-bottom: 25px;
  line-height: 1.8;
  color: #fffbe6;
}

.blog-post-content ul,
.blog-post-content ol {
  margin: 25px 0;
  padding-left: 25px;
}

.blog-post-content li {
  margin-bottom: 15px;
  line-height: 1.7;
}

.blog-post-content blockquote {
  background: rgba(90, 0, 0, 0.55);
  backdrop-filter: blur(15px);
  border-left: 4px solid #ffcc00;
  padding: 20px 30px;
  margin: 40px 0;
  font-style: italic;
  color: #fffbe6;
  border-radius: 0 15px 15px 0;
  position: relative;
}

.blog-post-content blockquote::before {
  content: '"';
  position: absolute;
  top: -20px;
  left: 20px;
  font-size: 4rem;
  color: rgba(255, 204, 0, 0.1);
  font-family: Georgia, serif;
}

.blog-post-content img {
  max-width: 100%;
  border-radius: 10px;
  margin: 30px 0;
  border: 1px solid rgba(255, 204, 0, 0.2);
  box-shadow: 0 5px 15px rgba(90, 0, 0, 0.3);
}

.blog-post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 40px 0;
}

.blog-post-tags a {
  background: rgba(255, 230, 120, 0.15);
  color: #ffcc00;
  padding: 8px 16px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 204, 0, 0.3);
}

.blog-post-tags a:hover {
  background: rgba(255, 204, 0, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(90, 0, 0, 0.3);
}

/* Blog Post CTA Styling */
.blog-post-cta {
  text-align: center;
  margin: 50px 0;
  padding: 0 20px;
}

.blog-post-cta .cta-button {
  display: inline-block;
  margin-top: 20px;
  padding: 15px 35px;
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 50px;
  background: #FFD700;
  color: #4a0000;
  border: 2px solid #FFD700;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
  text-decoration: none;
  transition: all 0.3s ease;
}

.blog-post-cta .cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
  background: #FFE44D;
  border-color: #FFE44D;
}

/* Related Posts Section */

/* Simplified layout: turn grid of cards into plain list */
.related-posts .blog-grid {
  display: block !important; /* stack items vertically */
  margin: 0 !important;
}

.related-posts .blog-card {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  margin: 0 0 25px 0 !important;
  transition: none !important;
}

.related-posts .blog-card::before,
.related-posts .blog-card:hover::before {
  display: none !important;
}

.related-posts .blog-card-content {
  padding: 0 !important;
  background: transparent !important;
}

.related-posts .blog-card-category,
.related-posts .read-more {
  display: none !important;
}

.related-posts .blog-card h3 {
  font-size: 1rem !important;
  margin: 0 0 8px !important;
}

.related-posts .blog-card p {
  margin: 0 0 8px !important;
  color: #ccc !important;
  font-size: 0.875rem !important;
}


.related-posts .container {
  padding: 0 20px !important;
}

.related-posts .section-title,
.blog-related-posts h2 {
  text-align: right !important;
  margin: 60px auto 30px !important;
}


/* Override related article title link color */
.blog-card h3 a {
  color: #ff4d4d !important; /* thematic red */
}

.blog-card h3 a:hover {
  color: #FFD700 !important; /* gold on hover */
}

/* Hide Author Section */
.blog-author {
  display: none !important;
}

/* Responsive Design */

/* Mobile spacing tweaks */
@media (max-width: 480px) {
  /* Add horizontal space for all blog posts except CTR page */
  .blog-post:not(.ctr-page),
  .blog-post-content:not(.ctr-page) {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  .blog-post-content {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  .blog-post-header {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  .blog-share {
    margin-top: 15px !important;
    padding-top: 10px !important;
    margin-bottom: 0 !important;
  }
  .site-footer {
    margin-top: 30px !important;
    padding-top: 20px !important;
  }
  .blog-post-content p:last-child,
  .blog-post-content section:last-child {
    margin-bottom: 20px !important;
  }
}

@media (max-width: 768px) {
  .blog-post {
    padding: 30px 15px;
    margin: 20px 10px;
  }

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

  .blog-post-content h2 {
    font-size: 1.6rem;
  }

  .blog-post-content h3 {
    font-size: 1.4rem;
  }
}

/* ---- BLOG POST PAGE: Remove card/glass styling and unify header/content ---- */

.blog-post {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Consistent width for header and content containers */
.blog-post-container .container {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 15px;
}
.blog-post-header .container, .blog-post-content .container, .blog-post > .container, .blog-post-container > .container {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 15px;
}
.blog-post-container {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.blog-post,
.blog-post-content,
.blog-post-header {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

.blog-post-header {
  text-align: left !important;
  margin-top: 60px !important;
  margin-bottom: 40px !important;
  padding: 0 15px !important;
  border-bottom: none !important;
}

.blog-post-title {
  text-align: left !important;
  margin: 20px 0 30px !important;
}

.blog-post-content {
  padding: 0 0 40px 0 !important;
}

.blog-post-title {
  margin-top: 32px;
  margin-bottom: 24px;
  color: #ffcc00;
  text-shadow: none;
}


/* ---- BLOG POST FOOTER: Enhanced, modern, and visually appealing ---- */
.site-footer {
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-top: none !important;
  box-shadow: none !important;
  margin-top: 60px !important;
  padding: 40px 20px 20px !important;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
}

.footer-logo {
  flex: 0 0 100%;
  margin-bottom: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.footer-logo img {
  max-width: 250px;
  max-height: 80px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 5px rgba(255, 204, 0, 0.3)) !important;
  transition: transform 0.3s ease;
}

.footer-logo img:hover {
  transform: scale(1.05);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  flex: 1 1 auto;
  gap: 20px;
}

.footer-column {
  flex: 1 1 auto;
  min-width: 160px;
}

.footer-column h3 {
  color: #FFD700 !important;
  font-size: 1.2rem;
  margin-bottom: 15px;
  position: relative;
  padding-bottom: 10px;
}

.footer-column h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: linear-gradient(to right, #FFD700, transparent);
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column li {
  margin-bottom: 10px;
}

.footer-column a {
  color: #fffbe6 !important;
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  display: inline-block;
  position: relative;
}

.footer-column a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -2px;
  left: 0;
  background-color: #FFD700;
  transition: width 0.3s ease;
}

.footer-column a:hover {
  color: #FFD700 !important;
  transform: translateX(3px);
}

.footer-column a:hover::after {
  width: 100%;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex: 0 0 100%;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 204, 0, 0.15) !important;
  color: #FFD700 !important;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 204, 0, 0.3) !important;
}

.footer-social a:hover {
  background: rgba(255, 204, 0, 0.3) !important;
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(255, 204, 0, 0.2) !important;
  color: #fff !important;
}

.footer-bottom {
  text-align: center;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 204, 0, 0.15) !important;
  color: rgba(255, 255, 255, 0.7) !important;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .footer-links {
    flex-direction: column;
    gap: 30px;
  }
  
  .footer-column {
    text-align: center;
    min-width: 100%;
  }
  
  .footer-column h3::after {
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
  }
  
  .footer-column a:hover {
    transform: translateY(-2px);
  }
  
  .footer-social {
    margin-top: 20px;
  }
}

@media (max-width: 480px) {
  .blog-nav-links {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 4px !important;
    justify-content: flex-start !important;
    overflow-x: auto;
    padding-bottom: 10px;
    align-items: center !important;
    width: 100% !important;
    margin: 8px 0 0 0 !important;
    display: flex !important;
  }
  .page-numbers {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 2px !important;
    margin: 0 2px !important;
    align-items: center !important;
  }
  .page-number {
    width: 15px;
    height: 15px;
    font-size: 0.7rem;
    padding: 0;
  }
  .blog-nav-button {
    padding: 4px 10px;
    font-size: 0.92rem;
    min-width: unset;
    border-radius: 14px;
  }

  .blog-post {
    padding: 20px 15px;
  }
  /* Ensure .blog-post-content also gets padding for mobile if not CTR */
  .blog-post-content:not(.ctr-page) {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

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

  .blog-post-content h2 {
    font-size: 1.4rem;
  }

  .blog-post-content h3 {
    font-size: 1.2rem;
  }
  
  .site-footer {
    padding: 30px 15px 15px !important;
    background: transparent !important;
    border: none !important;
  }
  
  .footer-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    width: 100%;
  }
  
  .footer-logo img {
    max-height: 70px;
    max-width: 220px;
    object-fit: contain;
    margin: 0 auto;
  }
  
  .footer-social {
    gap: 15px;
  }
  
  .footer-social a {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
  }
  
  .footer-bottom {
    margin-top: 30px;
    font-size: 0.8rem;
  }
}

@keyframes shimmer {
  0% { background-position: -100% 0; }
  100% { background-position: 200% 0; }
}

/* Blog Post Navigation Styles */
.blog-post-navigation {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 16px 0;
  padding: 6px 0;
  gap: 10px;
}

.blog-post-navigation > a:first-child {
  align-self: flex-start;
}

.blog-nav-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  position: relative;
  width: 100%;
  margin: 25px 0;
  padding: 0 10px;
}

.page-numbers {
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 0 10px;
  justify-content: center;
  align-items: center;
  margin: 0 15px;
}

.page-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: rgba(255, 215, 0, 0.2);
  color: #ffd700;  /* Brighter gold for better visibility */
  border: 1px solid rgba(255, 215, 0, 0.3);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-number:hover {
  background-color: rgba(255, 215, 0, 0.4);
  color: #fff;  /* White text on hover for better contrast */
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(255, 215, 0, 0.2);
  border-color: #ffd700;
}

.page-number.current {
  background-color: #ffd700;
  color: #000;  /* Black text for current page for maximum contrast */
  font-weight: 700;
  box-shadow: 0 2px 12px rgba(255, 215, 0, 0.3);
  border-color: #ffd700;
  transform: scale(1.1);
}

/* Pagination Navigation Buttons */
.blog-nav-button {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  background: rgba(255, 215, 0, 0.1);
  color: #ffd700;
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 25px;
  font-weight: 500;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  min-width: 90px;
  justify-content: center;
}

.blog-nav-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(255, 215, 0, 0.2), rgba(255, 215, 0, 0.4));
  z-index: 0;
  border-radius: 25px;
  transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
  transform: translateX(-100%);
}

.blog-nav-button:hover::before {
  transform: translateX(0);
}

.blog-nav-button.prev::before {
  transform: translateX(100%);
}

.blog-nav-button.prev:hover::before {
  transform: translateX(0);
}

.blog-nav-button span,
.blog-nav-button i {
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}

.blog-nav-button:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.2);
  border-color: rgba(255, 215, 0, 0.5);
}

/* Next/Previous button icons */
.blog-nav-button i {
  font-size: 0.9em;
  transition: all 0.3s ease;
  margin: 0 5px;
}

/* Previous button icon */
.blog-nav-button.prev i {
  margin-right: 8px;
  transform: translateX(0);
}

/* Next button icon */
.blog-nav-button.next i {
  margin-left: 8px;
  transform: translateX(0);
}

/* Previous button fill from right to left */
.blog-nav-button.prev {
  position: relative;
  overflow: hidden;
  display: inline-block;
  color: #fff; /* or whatever text color */
  z-index: 1;
}

/* Before pseudo-element: initial hidden bar from right */
.blog-nav-button.prev::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.2); /* your hover color */
  transform: scaleX(0);
  transform-origin: right center; /* animate from right */
  transition: transform 0.3s ease;
  z-index: -1; /* stay behind text */
}

/* Hover state: animate fill from right to left */
.blog-nav-button.prev:hover::before {
  transform: scaleX(1);
}


/* Next button fill from left to right */
.blog-nav-button.next::before {
  left: 0;
  transform: scaleX(0);
  transform-origin: left center;
}

.blog-nav-button.next:hover::before {
  transform: scaleX(1);
}

/* Icon animations */
.blog-nav-button:hover i.prev {
  transform: translateX(-5px);
}

.blog-nav-button:hover i.next {
  transform: translateX(5px);
}



.blog-share {
  display: flex;
  align-items: center;
  gap: 10px;
}

.blog-share span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.social-share {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  color: #FFD700;
  border-radius: 50%;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-share:hover {
  background: rgba(255, 215, 0, 0.2);
  transform: translateY(-3px);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
  color: #FFF;
}
