/* Blog Template Styles */
:root {
  --brand-blue: #1b50b3;
  --brand-sky: #52ade5;
  --ink: #1f2a44;
  --muted: #6b7280;
  --bg: #f6f8fb;
  --success: #10b981;
  --white: #ffffff;
}

/* Blog Hero Section */
.blog-hero {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  height: 400px;
  position: relative;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/hero-cleaning.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.6));
  z-index: 1;
}

.blog-hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  width: 100%;
  padding: 0 40px;
  color: white;
}

.blog-hero-top {
  margin-bottom: 30px;
}

.hero-meta {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  opacity: 0.9;
}

.blog-hero-title {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 40px 0;
  max-width: 800px;
}

.blog-hero-bottom {
  display: flex;
  justify-content: flex-end;
}

.hero-date {
  font-size: 14px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.2);
  padding: 6px 12px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
}

/* Blog Container */
.blog-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

/* Blog Section */
.blog-section {
  padding: 80px 0;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.blog-section:nth-child(even) {
  background: var(--bg);
}

/* Section Header */
.section-header {
  margin-bottom: 50px;
  position: relative;
}

.section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--brand-blue);
  margin-bottom: 12px;
}

.section-title {
  font-size: 36px;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 8px 0;
  line-height: 1.2;
}

.section-link {
  position: absolute;
  top: 40px;
  right: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-sky);
  text-decoration: none;
  transition: all 0.3s ease;
}

.section-link:hover {
  transform: translateX(4px);
  color: var(--brand-blue);
}

/* Articles Grid */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.featured-grid {
  grid-template-columns: 2fr 1fr;
  grid-template-rows: repeat(2, 1fr);
}

.featured-grid .featured-card {
  grid-row: span 2;
}

.featured-grid .article-card:not(.featured-card) {
  grid-column: 2;
}

/* Article Card */
.article-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.article-image {
  width: 100%;
  height: 240px;
  overflow: hidden;
  position: relative;
}

.featured-card .article-image {
  height: 100%;
  min-height: 400px;
}

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

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

.article-content {
  padding: 24px;
}

.article-category {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--brand-blue);
  background: #f0f9ff;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
}

.article-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 12px 0;
  line-height: 1.4;
}

.article-title a {
  color: var(--ink);
  text-decoration: none;
  transition: color 0.3s ease;
}

.article-title a:hover {
  color: var(--brand-sky);
}

.article-excerpt {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 12px 0;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
}

.article-date {
  font-weight: 500;
}

/* Services Section */
.services-section {
  background: white;
}

.btn-explore {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--brand-sky);
  color: white;
  padding: 10px 24px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-explore:hover {
  background: var(--brand-blue);
  transform: translateY(-2px);
}

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

.service-card-large {
  position: relative;
  height: 400px;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
}

.service-card-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.service-card-large:hover img {
  transform: scale(1.05);
}

.service-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: white;
}

.service-overlay h3 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 12px 0;
  line-height: 1.3;
}

.service-link {
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.3s ease;
}

.service-link:hover {
  transform: translateX(4px);
}

/* CTA Section */
.blog-cta {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 80px 0;
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-sky) 100%);
  color: white;
  text-align: center;
}

.cta-title {
  font-size: 42px;
  font-weight: 800;
  margin: 0 0 32px 0;
  line-height: 1.3;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
}

.btn-primary,
.btn-secondary {
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

.btn-primary {
  background: white;
  color: var(--brand-blue);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.3);
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn-secondary:hover {
  background: white;
  color: var(--brand-blue);
}

/* Brand Footer */
.blog-brand {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 60px 0;
  background: white;
  text-align: center;
}

.brand-logo {
  font-size: 120px;
  font-weight: 900;
  color: #f0f0f0;
  letter-spacing: -4px;
}

/* Responsive Design */
@media (max-width: 992px) {
  .blog-hero-title {
    font-size: 36px;
  }
  
  .articles-grid,
  .featured-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .featured-grid .featured-card {
    grid-row: span 1;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .section-link {
    position: static;
    display: block;
    margin-top: 16px;
  }
  
  .btn-explore {
    position: static;
    display: inline-block;
    margin-top: 16px;
  }
  
  .cta-title {
    font-size: 32px;
  }
}

@media (max-width: 768px) {
  .blog-container {
    padding: 0 20px;
  }
  
  .blog-hero {
    height: 300px;
  }
  
  .blog-hero-content {
    padding: 0 20px;
  }
  
  .blog-hero-title {
    font-size: 28px;
  }
  
  .blog-section {
    padding: 60px 0;
  }
  
  .section-title {
    font-size: 28px;
  }
  
  .articles-grid,
  .featured-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .cta-title {
    font-size: 26px;
  }
  
  .cta-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .btn-primary,
  .btn-secondary {
    width: 100%;
    max-width: 300px;
  }
  
  .brand-logo {
    font-size: 80px;
  }
}

@media (max-width: 480px) {
  .blog-hero {
    height: 250px;
  }
  
  .blog-hero-title {
    font-size: 24px;
  }
  
  .section-title {
    font-size: 24px;
  }
  
  .article-image {
    height: 200px;
  }
  
  .service-card-large {
    height: 300px;
  }
  
  .brand-logo {
    font-size: 60px;
  }
}

/* Single Post Styles */
.site-content .single-post {
  padding: 60px 0;
}

.single-post-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 60px;
  align-items: start;
}

/* Post Content */
.single-post-content {
  background: white;
}

.post-header {
  margin-bottom: 30px;
}

.post-category-main {
  margin-bottom: 16px;
}

.category-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 20px;
  color: white;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.post-title {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 20px 0;
}

.post-meta-top {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--muted);
}

.meta-item svg {
  color: var(--brand-sky);
}

.post-featured-image {
  margin: 30px 0;
  border-radius: 12px;
  overflow: hidden;
}

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

.post-content-area {
  font-size: 17px;
  line-height: 1.8;
  color: #374151;
  margin-bottom: 40px;
}

.post-content-area p {
  margin-bottom: 20px;
}

.post-content-area h2,
.post-content-area h3,
.post-content-area h4 {
  color: var(--ink);
  font-weight: 700;
  margin: 32px 0 16px;
  line-height: 1.3;
}

.post-content-area h2 {
  font-size: 32px;
}

.post-content-area h3 {
  font-size: 26px;
}

.post-content-area img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 24px 0;
}

.post-content-area ul,
.post-content-area ol {
  margin: 20px 0;
  padding-left: 30px;
}

.post-content-area li {
  margin-bottom: 8px;
}

/* Tags */
.post-tags {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.tags-label {
  font-weight: 700;
  color: var(--ink);
  font-size: 15px;
}

.tags-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag-item {
  padding: 6px 14px;
  background: #f3f4f6;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  transition: all 0.3s ease;
}

.tag-item:hover {
  background: var(--brand-sky);
  color: white;
}

/* Social Share */
.post-share {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 0;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 40px;
}

.share-label {
  font-weight: 700;
  color: var(--ink);
  font-size: 15px;
}

.share-buttons {
  display: flex;
  gap: 12px;
}

.share-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  text-decoration: none;
}

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

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

.share-btn.pinterest {
  background: #e60023;
  color: white;
}

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

.share-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Sidebar */
.single-post-sidebar {
  position: sticky;
  top: 100px;
}

.sidebar-widget {
  background: white;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.widget-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 20px 0;
}

/* Social Sticky */
.social-share-vertical {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.social-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-icon.facebook {
  background: #1877f2;
  color: white;
}

.social-icon.twitter {
  background: #1da1f2;
  color: white;
}

.social-icon.pinterest {
  background: #e60023;
  color: white;
}

.social-icon.linkedin {
  background: #0077b5;
  color: white;
}

.social-icon:hover {
  transform: scale(1.1);
}

/* Categories List */
.categories-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.category-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  background: #f9fafb;
  text-decoration: none;
  transition: all 0.3s ease;
}

.category-item:hover {
  background: #f3f4f6;
  transform: translateX(4px);
}

.category-color {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.category-name {
  flex: 1;
  font-weight: 600;
  color: var(--ink);
  font-size: 14px;
}

.category-count {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}

/* Recent Posts */
.recent-posts-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.recent-post-item {
  display: flex;
  gap: 12px;
}

.recent-post-thumb {
  width: 70px;
  height: 70px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.recent-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recent-post-content {
  flex: 1;
}

.recent-post-title {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 6px 0;
  line-height: 1.4;
}

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

.recent-post-title a:hover {
  color: var(--brand-sky);
}

.recent-post-date {
  font-size: 12px;
  color: var(--muted);
}

/* Tag Cloud */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cloud-tag {
  padding: 6px 12px;
  background: #f3f4f6;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  transition: all 0.3s ease;
}

.cloud-tag:hover {
  background: var(--brand-sky);
  color: white;
}

/* Newsletter Widget */
.newsletter-widget {
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-sky));
  color: white;
}

.newsletter-widget h3 {
  color: white;
  font-size: 20px;
  margin-bottom: 8px;
}

.newsletter-widget p {
  font-size: 14px;
  margin-bottom: 16px;
  opacity: 0.9;
}

.newsletter-form {
  display: flex;
  gap: 8px;
}

.newsletter-form input {
  flex: 1;
  padding: 10px 14px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
}

.newsletter-form button {
  width: 42px;
  height: 42px;
  background: white;
  color: var(--brand-blue);
  border: none;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.newsletter-form button:hover {
  transform: scale(1.05);
}

/* Related Posts */
.related-posts {
  padding: 80px 0;
  background: var(--bg);
}

.related-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 40px 0;
  text-align: center;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.related-post-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.related-post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.related-post-image {
  width: 100%;
  height: 180px;
  overflow: hidden;
}

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

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

.related-post-content {
  padding: 20px;
}

.related-category {
  display: inline-block;
  padding: 4px 10px;
  background: #ff69b4;
  color: white;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 4px;
  margin-bottom: 12px;
}

.related-post-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
  line-height: 1.4;
}

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

.related-post-title a:hover {
  color: var(--brand-sky);
}

/* Single Post Responsive */
@media (max-width: 992px) {
  .single-post-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .single-post-sidebar {
    position: static;
  }
  
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .single-post-container {
    padding: 0 20px;
  }
  
  .post-title {
    font-size: 32px;
  }
  
  .post-meta-top {
    gap: 16px;
  }
  
  .related-grid {
    grid-template-columns: 1fr;
  }
  
  .related-posts {
    padding: 60px 20px;
  }
}

@media (max-width: 480px) {
  .post-title {
    font-size: 26px;
  }
  
  .post-content-area {
    font-size: 16px;
  }
  
  .share-buttons {
    flex-wrap: wrap;
  }
}
