/*=============== BLOG POST PAGE ===============*/

/* Loading State */
.blog-loading {
  text-align: center;
  padding: 4rem 0;
}

.blog-loading__spinner {
  width: 50px;
  height: 50px;
  border: 3px solid var(--container-color);
  border-top: 3px solid var(--first-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Error State */
.blog-error {
  text-align: center;
  padding: 4rem 0;
}

.blog-error i {
  font-size: 4rem;
  color: var(--first-color);
  margin-bottom: 1rem;
}

.blog-error h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--title-color);
}

.blog-error p {
  color: var(--text-color);
  margin-bottom: 2rem;
}

/* Blog Post Content */
.blog-post__content {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 0;
}

/* Breadcrumb */
.blog-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  font-size: 0.9rem;
  color: var(--text-color-light);
}

.blog-breadcrumb a {
  color: var(--first-color);
  text-decoration: none;
  transition: color 0.2s;
}

.blog-breadcrumb a:hover {
  color: var(--first-color-alt);
}

.blog-breadcrumb i {
  font-size: 0.8rem;
}

/* Featured Image */
.blog-post__image-container {
  margin-bottom: 2rem;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.1);
}

.blog-post__image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.blog-post__image:hover {
  transform: scale(1.02);
}

/* Post Header */
.blog-post__header {
  margin-bottom: 3rem;
}

.blog-post__title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--title-color);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.blog-post__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  color: var(--text-color-light);
  font-size: 0.9rem;
}

.blog-post__author,
.blog-post__date,
.blog-post__read-time {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.blog-post__meta i {
  color: var(--first-color);
}

/* Post Body */
.blog-post__body {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-color);
  margin-bottom: 3rem;
}

.blog-post__body h2 {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--title-color);
  margin: 2rem 0 1rem;
}

.blog-post__body h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--title-color);
  margin: 1.5rem 0 0.75rem;
}

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

.blog-post__body ul,
.blog-post__body ol {
  margin: 1.5rem 0;
  padding-left: 2rem;
}

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

.blog-post__body blockquote {
  border-left: 4px solid var(--first-color);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--text-color-light);
}

.blog-post__body code {
  background: var(--container-color);
  padding: 0.2rem 0.4rem;
  border-radius: 0.25rem;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
}

.blog-post__body pre {
  background: var(--container-color);
  padding: 1rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.blog-post__body pre code {
  background: none;
  padding: 0;
}

/* Social Share */
.blog-post__share {
  border-top: 1px solid var(--container-color);
  padding-top: 2rem;
  margin-bottom: 2rem;
}

.blog-post__share h3 {
  font-size: 1.2rem;
  color: var(--title-color);
  margin-bottom: 1rem;
}

.blog-post__share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.blog-share-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  text-decoration: none;
  color: white;
  font-weight: 500;
  transition: transform 0.2s, opacity 0.2s;
}

.blog-share-btn:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.blog-share-btn--facebook {
  background: #1877f2;
}

.blog-share-btn--twitter {
  background: #1da1f2;
}

.blog-share-btn--linkedin {
  background: #0077b5;
}

.blog-share-btn--whatsapp {
  background: #25d366;
}

/* Back to Blog */
.blog-post__back {
  text-align: center;
  margin-top: 3rem;
}

.blog-post__back .button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
  .blog-post__title {
    font-size: 2rem;
  }
  
  .blog-post__meta {
    flex-direction: column;
    gap: 1rem;
  }
  
  .blog-post__body {
    font-size: 1rem;
  }
  
  .blog-post__share-buttons {
    justify-content: center;
  }
  
  .blog-share-btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
}

@media screen and (max-width: 480px) {
  .blog-post__content {
    padding: 1rem 0;
  }
  
  .blog-post__title {
    font-size: 1.5rem;
  }
  
  .blog-post__image {
    height: 250px;
  }
  
  .blog-breadcrumb {
    font-size: 0.8rem;
  }
}

/* Animation for content reveal */
.blog-post__content {
  animation: fadeInUp 0.8s ease-out;
}

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

/* Dark theme adjustments */
body.light-theme .blog-post__body {
  color: var(--text-color);
}

body.light-theme .blog-post__title {
  color: var(--title-color);
} 

/* --- Responsive improvements for category.html --- */

@media screen and (max-width: 768px) {
  .blog-breadcrumb {
    flex-wrap: wrap;
    font-size: 1rem;
    gap: 0.25rem;
    margin-bottom: 1.2rem;
    word-break: break-word;
  }
  .blog-loading, .blog-error {
    padding: 2rem 0.5rem;
  }
  .blog-error i {
    font-size: 2.5rem;
  }
  .blog-error h2 {
    font-size: 1.3rem;
  }
  .blog-post__content, #category-content {
    padding: 1rem 0.5rem;
  }
}

@media screen and (max-width: 480px) {
  .blog-breadcrumb {
    font-size: 0.95rem;
    gap: 0.15rem;
    padding: 0.5rem 0.2rem;
  }
  .blog-loading__spinner {
    width: 36px;
    height: 36px;
  }
  .blog-error i {
    font-size: 2rem;
  }
  .blog-error h2 {
    font-size: 1.1rem;
  }
  .blog-post__content, #category-content {
    padding: 0.5rem 0.1rem;
  }
  .button {
    font-size: 1rem;
    padding: 0.7rem 1.2rem;
  }
}

/* Make sure blog grid is always responsive */
#category-content.blog__container {
  display: grid;
    grid-template-columns: repeat(3, minmax(280px, 1fr));
  gap: 1.2rem;
  margin-top: 1.2rem;
}

/* Improve touch targets for links/buttons in category */
.blog-breadcrumb a, .button {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
} 

/* --- Modern, unified responsive grid for category.html --- */
#category-content.blog__container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
  width: 100%;
  justify-items: stretch;
}

/* --- Refined card/content styling for category.js output --- */
.blog__card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--container-color);
  border-radius: 1.25rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}
.blog__card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  transform: translateY(-4px) scale(1.02);
}

.blog__image, .blog__card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 1.25rem 1.25rem 0 0;
  margin: 0;
  display: block;
}

.blog__content {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  padding: 1.2rem 1rem 1rem 1rem;
  background: none;
}

.blog__meta {
  font-size: 0.95rem;
  color: var(--text-color-light);
  margin-bottom: 0.5rem;
  word-break: break-word;
}

.blog__title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--title-color);
  word-break: break-word;
}

.blog__excerpt {
  font-size: 1rem;
  color: var(--text-color);
  margin-bottom: 0.7rem;
  word-break: break-word;
  flex: 1 1 auto;
}

.blog__readmore {
  color: var(--first-color);
  font-weight: 600;
  text-decoration: none;
  margin-top: auto;
  align-self: flex-start;
  border-radius: 0.4rem;
  transition: background 0.2s, color 0.2s;
  font-size: 0.98rem;
}
.blog__readmore:hover {
  background: var(--first-color);
  color: #fff;
}

@media screen and (max-width: 900px) {
  .blog__image, .blog__card img {
    height: 140px;
  }
}
@media screen and (max-width: 600px) {
  .blog__image, .blog__card img {
    height: 110px;
  }
  .blog__content {
    padding: 0.8rem 0.5rem 0.7rem 0.5rem;
  }
}

/* Center the Back to Categories button below the grid */
#category-content + div[style] {
  text-align: center !important;
  margin-top: 2rem !important;
}

@media screen and (max-width: 900px) {
  #category-content.blog__container {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.2rem;
  }
}
@media screen and (max-width: 600px) {
  #category-content.blog__container {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .category-header {
    margin-bottom: 1rem;
    padding: 0 0.5rem;
  }
  .blog__card img {
    height: 140px;
  }
} 

.uagb-faq-icon-wrap {
  display: none;
}