/* Blog and Project Pages Styles for Echo Intérieur */

/* Blog Hero Section */
.blog-hero {
  color: var(--bronze-gold);
  padding: 140px 0 80px;
  margin-bottom: 0px;
  text-align: center;
}

.blog-hero .section-title {
  font-size: 3rem;
  margin-bottom: 20px;
  color: var(--charcoal-deep);
  font-weight: 700;
}

.blog-hero .section-subtitle {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto;
  color: var(--bronze-gold);
  line-height: 1.6;
}

/* Blog Content Layout */
.blog-content {
  padding: 40px 0;
}

.blog-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
}

.blog-main {
  min-height: 500px;
}

/* Blog Posts List */
.blog-posts {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.blog-post {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.blog-post:hover {
  transform: translateY(-5px);
}

.post-image {
  height: 300px;
  overflow: hidden;
}

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

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

.post-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.post-title {
  font-size: 1.8rem;
  margin-bottom: 15px;
}

.post-title a {
  color: var(--silver-gold);
  text-decoration: none;
  transition: color 0.3s ease;
}

.post-title a:hover {
  color: var(--accent-color);
}

.post-meta {
  display: flex;
  gap: 20px;
  color: #777;
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.post-meta i {
  margin-right: 5px;
}

.post-excerpt {
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Blog Sidebar */
.blog-sidebar {
  position: sticky;
  top: 100px;
}

.sidebar-widget {
  background-color: white;
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.widget-title {
  font-size: 1.3rem;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent-color);
}

.recent-posts {
  list-style: none;
}

.recent-posts li {
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.recent-posts li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.recent-posts a {
  text-decoration: none;
  color: var(--silver-gold);
  display: block;
  transition: color 0.3s ease;
}

.recent-posts a:hover {
  color: var(--accent-color);
}

.post-date {
  display: block;
  font-size: 0.85rem;
  color: #777;
  margin-top: 5px;
}

.service-list {
  list-style: none;
}

.service-list li {
  margin-bottom: 10px;
}

.service-list a {
  text-decoration: none;
  color: var(--silver-gold);
  transition: color 0.3s ease;
}

.service-list a:hover {
  color: var(--accent-color);
}

.contact-info p {
  margin-bottom: 10px;
}

.contact-info i {
  margin-right: 10px;
  color: var(--accent-color);
}

.contact-info a {
  color: var(--silver-gold);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 300;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  margin-top: 40px;
  gap: 10px;
}

.page-link {
  display: inline-block;
  padding: 8px 15px;
  background-color: white;
  color: var(--silver-gold);
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.page-link:hover {
  background-color: var(--accent-color);
  color: white;
}

.page-link.active {
  background-color: var(--accent-color);
  color: white;
}

/* Single Article Page */
.article-content {
  padding: 150px 0 80px;
}

.article-title {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.article-meta {
  display: flex;
  gap: 20px;
  color: #777;
  font-size: 0.95rem;
  margin-bottom: 30px;
}

.article-featured-image {
  margin-bottom: 30px;
  border-radius: 8px;
  overflow: hidden;
}

.article-featured-image img {
  width: 100%;
  height: auto;
}

.article-body {
  line-height: 1.8;
  margin-bottom: 40px;
}

.article-body h2 {
  margin-top: 40px;
  margin-bottom: 20px;
}

.article-body h3 {
  margin-top: 30px;
  margin-bottom: 15px;
}

.article-body img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 20px 0;
}

.article-body blockquote {
  border-left: 4px solid var(--accent-color);
  padding-left: 20px;
  margin: 30px 0;
  font-style: italic;
  color: #555;
}

.article-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

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

.share-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: #f5f5f5;
  color: var(--silver-gold);
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.3s ease;
}

.share-link:hover {
  background-color: var(--accent-color);
  color: white;
}

/* Project Detail Page */
.project-content {
  padding: 150px 0 80px;
}

.project-header {
  margin-bottom: 40px;
}

.project-title {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.project-meta {
  display: flex;
  gap: 20px;
  color: #777;
  font-size: 0.95rem;
  margin-bottom: 30px;
}

.project-meta i {
  margin-right: 5px;
}

/* Project Gallery */
.project-gallery {
  margin-bottom: 40px;
}

.single-image {
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 30px;
}

.single-image img {
  width: 100%;
  height: auto;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 200px;
  gap: 15px;
  margin-bottom: 30px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  grid-column: span 4;
  cursor: pointer;
}

.gallery-item.featured {
  grid-column: span 8;
  grid-row: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.project-description {
  line-height: 1.8;
  margin-bottom: 40px;
}

.project-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.other-projects {
  margin-top: 60px;
}

.other-projects h2 {
  text-align: center;
  margin-bottom: 40px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.project-card {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.project-card:hover {
  transform: translateY(-10px);
}

.project-image {
  height: 200px;
  overflow: hidden;
}

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

.project-card:hover .project-image img {
  transform: scale(1.05);
}

.project-info {
  padding: 20px;
  text-align: center;
}

.project-info h3 {
  margin-bottom: 15px;
  font-size: 1.2rem;
}

/* Responsive Styles */
@media (max-width: 480px) {
  .blog-posts {
    padding: 0 5px;
  }
  
  .post-content {
    padding: 15px 12px;
  }
  
  .blog-content {
    padding: 20px 0;
  }
  
  .blog-content .container {
    padding-left: 5px;
    padding-right: 5px;
    width: 100%;
  }
  
  .blog-main {
    padding: 0;
  }
  
  .blog-grid {
    gap: 20px;
  }
}
@media (max-width: 992px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
  
  .gallery-grid {
    grid-auto-rows: 150px;
  }
  
  .gallery-item {
    grid-column: span 6;
  }
  
  .gallery-item.featured {
    grid-column: span 12;
  }
  
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .blog-article {
    margin-top: 100px;
  }

}

@media (max-width: 768px) {
  .blog-hero {
    padding: 250px 0 60px;
  }
  
  .blog-hero .section-title {
    font-size: 2.5rem;
  }
  
  .blog-hero .section-subtitle {
    font-size: 1.1rem;
    padding: 0 20px;
  }
  
  /* Wider blog listing on mobile */
  .blog-posts {
    padding: 0 10px;
  }
  
  .post-content {
    padding: 20px 15px;
  }
  
  /* Target the main blog listing container */
  .blog-content {
    padding: 30px 0;
  }
  
  .blog-content .container {
    padding-left: 10px;
    padding-right: 10px;
    max-width: 100%;
    width: 100%;
  }
  
  .blog-main {
    padding: 0 5px;
  }
  
  .post-image {
    height: 200px;
  }
  
  .article-title, .project-title {
    font-size: 2rem;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }
  
  .gallery-item, .gallery-item.featured {
    grid-column: span 1;
    height: 250px;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
  }
  
  .article-footer, .project-footer {
    flex-direction: column;
    gap: 20px;
  }
  
  .article-share, .project-share {
    justify-content: center;
  }
}

/* Error Messages */
.error-message {
  background-color: #fff3f3;
  border-left: 4px solid #e74c3c;
  padding: 20px;
  margin-bottom: 30px;
  border-radius: 4px;
}

.no-posts {
  text-align: center;
  padding: 40px 0;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* Lightbox Customization */
.lb-data .lb-caption {
  font-family: var(--font-secondary);
  font-size: 1.2rem;
}

.lb-data .lb-details {
  width: 100%;
  text-align: center;
}
