/* =================================== */
/* BLOG ARCHIVE PAGES ONLY */
/* Wrapped in .page-blogfull to prevent conflicts */
/* =================================== */
.page-blogfull {

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Force blog styles to override WordPress defaults */
body.blog &,
body.archive &,
body.single-post & {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    background-color: #f4f1e8;
}

/* Blog Section */
.blog-section {
  background: linear-gradient(135deg, #f4f1e8 0%, #e8e4d9 100%);
  padding: 8rem 2rem;
  position: relative;
  overflow-x: clip;
  overflow-y: visible;
}

.blog-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #C09853, transparent);
  opacity: 0.6;
}

.blog-container {
  max-width: 1400px;
  margin: 0 auto;
}

.blog-header {
  text-align: center;
  margin-bottom: 5rem;
  margin-top: 2rem;
  opacity: 0;
  animation: fadeInUp 1s ease-out 0.2s forwards;
}

.blog-subtitle {
  font-family: 'Open Sans', sans-serif;
  font-size: 1.1rem;
  color: #C09853;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.blog-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: #2C4A6B;
  font-weight: 600;
  margin-bottom: 1.5rem;
  position: relative;
}

.blog-description {
  font-size: 1.3rem;
  color: #5a6c7d;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Blog Navigation */
.blog-nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 3rem 0;
  flex-wrap: wrap;
}

.blog-nav a {
  padding: 0.8rem 1.5rem;
  background: transparent;
  border: 2px solid #2C4A6B;
  color: #2C4A6B;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.blog-nav a:hover,
.blog-nav a.active {
  background: #2C4A6B;
  color: #f4f1e8;
  transform: translateY(-2px);
}

/* Blog Grid */
.blog-grid {
  width: 100%;
  margin-bottom: 3rem;
  display: block;
}

.blog-grid .blog-post.featured {
  width: 100%;
  display: block;
}

/* Featured Post */
.blog-post.featured {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(44, 74, 107, 0.08);
  animation: fadeInUp 1s ease-out 0.4s forwards;
  margin-bottom: 5rem;
  height: auto;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  background: #fff;
  overflow: hidden;
}

.blog-post.featured:hover {
  transform: translateY(-12px);
  box-shadow: 0 30px 60px rgba(44, 74, 107, 0.15);
}

.blog-post.featured .post-image {
  width: 100%;
  height: 400px;
  position: relative;
  overflow: hidden;
}

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

.blog-post.featured:hover .post-image img {
  transform: scale(1.05);
}

.blog-post.featured .post-content {
  padding: 3rem;
}

.blog-post.featured .post-meta {
  font-size: 0.9rem;
  color: #C09853;
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.blog-post.featured h3 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: #2C4A6B;
  margin-bottom: 1.5rem;
  line-height: 1.3;
  font-weight: 600;
}

.blog-post.featured p {
  font-size: 1.2rem;
  color: #5a6c7d;
  margin-bottom: 2rem;
  line-height: 1.8;
}

/* Content Layout */
.blog-content {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 4rem;
  margin-bottom: 4rem;
  align-items: start;  /* ADD THIS LINE */
}

/* Posts Grid */
.blog-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2.5rem;
}

/* Regular Posts */
.blog-post {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(44, 74, 107, 0.06);
  transition: all 0.4s ease;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: flex;
  flex-direction: column;
}

.blog-post.visible {
  opacity: 1;
  transform: translateY(0);
}

.blog-post:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 45px rgba(44, 74, 107, 0.12);
}

.blog-post .post-image {
  position: relative;
  overflow: hidden;
  height: 200px;
  flex-shrink: 0;
}

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

.blog-post:hover .post-image img {
  transform: scale(1.08);
}

.blog-post .post-content {
  padding: 1.8rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-post .post-meta {
  font-size: 0.85rem;
  color: #C09853;
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.blog-post h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: #2C4A6B;
  margin-bottom: 1rem;
  line-height: 1.4;
  font-weight: 600;
}

.blog-post p {
  font-size: 0.95rem;
  color: #5a6c7d;
  margin-bottom: auto;
  line-height: 1.7;
}

/* Read More Button */
.read-more {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  color: #C09853;
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  position: relative;
  margin-top: 1rem;
}

.read-more::after {
  content: '→';
  margin-left: 0.5rem;
  transition: transform 0.3s ease;
}

.read-more:hover {
  color: #2C4A6B;
}

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

/* Clickable Card Link */
.blog-post .card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.blog-post .card-link:hover {
    text-decoration: none;
}

.blog-post .card-link h3 {
    color: inherit;
}

/* Pagination */
.pagination-container {
  text-align: center;
  margin-top: 4rem;
  opacity: 0;
  animation: fadeInUp 1s ease-out 1.4s forwards;
}

.pagination {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border: 2px solid #2C4A6B;
  color: #2C4A6B;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.pagination a:hover,
.pagination .current {
  background: #2C4A6B;
  color: #f4f1e8;
}

.pagination .prev,
.pagination .next {
  width: auto;
  padding: 0 1rem;
  font-size: 0.9rem;
}

.pagination .dots {
  border: none;
  color: #5a6c7d;
}

/* Sidebar */
.blog-sidebar {
  background: #fff;
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 12px 30px rgba(44, 74, 107, 0.06);
  height: fit-content;
  opacity: 0;
  position: sticky;
  top: 100px;
}

.sidebar-widget h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: #2C4A6B;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.sidebar-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e8e4d9;
}

.sidebar-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.sidebar-item img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.sidebar-item-content h5 {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  color: #2C4A6B;
  margin-bottom: 0.5rem;
  font-weight: 600;
  line-height: 1.3;
}

.sidebar-item-content .sidebar-meta {
  font-size: 0.8rem;
  color: #C09853;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sidebar-item a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

.sidebar-item a:hover h5 {
  color: #C09853;
}

/* Newsletter Widget */
.newsletter-widget {
  background: linear-gradient(135deg, #2C4A6B, #3a5a7a);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
  margin-top: 2rem;
  opacity: 0;
}

.newsletter-widget h4 {
  font-family: 'Playfair Display', serif;
  color: #f4f1e8;
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.newsletter-widget p {
  color: rgba(244, 241, 232, 0.8);
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  line-height: 1.6;
}

.main-newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.newsletter-form input {
  padding: 0.9rem 1rem;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.1);
  color: #f4f1e8;
  backdrop-filter: blur(10px);
}

.newsletter-form input::placeholder {
  color: rgba(244, 241, 232, 0.6);
}

.newsletter-form button {
  padding: 0.9rem 1.5rem;
  background: #C09853;
  color: #2C4A6B;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.newsletter-form button:hover {
  background: #8B9D7A;
  color: #f4f1e8;
}

/* Visibility animations */
.blog-sidebar.visible,
.newsletter-widget.visible {
  opacity: 1;
  animation: fadeInUp 1s ease-out forwards;
}

/* Article Badge */
.article-badge {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  background: #C09853;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 2;
}

/* Reading Time */
.reading-time {
  font-size: 0.8rem;
  color: #8B9D7A;
  margin-left: 1rem;
  position: relative;
}

.reading-time::before {
  content: '•';
  margin-right: 0.5rem;
  color: #C09853;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .blog-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .blog-posts-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
  }

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

  .blog-post.featured .post-image {
    height: 300px;
  }

  .blog-nav {
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  .blog-section {
    padding: 5rem 1.5rem;
  }

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

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

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

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

  .blog-sidebar,
  .newsletter-widget {
    padding: 2rem;
  }
}

} /* End .page-blogfull wrapper */