/* Blogs Page Styles */

/* Hero Section */
.blogs-page {
  padding-top: 72px;
}

.hero-section {
  background: #000000;
  padding: 80px 0;
  text-align: center;
}

.hero-section h1 {
  font-size: 2.5rem;
  color: white;
  margin-bottom: 16px;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Blogs Section */
.blogs-section {
  background: #000000;
  padding: 60px 0;
}

/* Blog Card */
.blog-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 20px;
  border: 1px solid rgba(212, 175, 55, 0.2);
  margin-bottom: 40px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border-color: rgba(212, 175, 55, 0.4);
}

/* Featured Blog Card */
.blog-card-featured {
  border: 2px solid rgba(212, 175, 55, 0.4);
}

.blog-card-featured:hover {
  border-color: rgba(212, 175, 55, 0.6);
}

/* Blog Image Container */
.blog-image-container {
  width: 100%;
  overflow: hidden;
}

/* Before/After Image Layout */
.blog-before-after {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  background: rgba(0, 0, 0, 0.3);
}

.before-after-item {
  position: relative;
  overflow: hidden;
}

.before-after-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.blog-card:hover .before-after-item img {
  transform: scale(1.02);
}

.before-after-label {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.before-after-item:last-child .before-after-label {
  background: rgba(212, 175, 55, 0.9);
  color: #000;
  border-color: transparent;
}

/* Blog Content */
.blog-content {
  padding: 32px;
}

/* Blog Meta */
.blog-meta {
  display: flex;
  gap: 16px;
  margin-bottom: 12px;
}

.blog-date,
.blog-read-time {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.blog-date::before {
  content: "";
}

.blog-read-time::before {
  content: "";
}

/* Blog Title */
.blog-title {
  font-size: 1.75rem;
  color: white;
  margin-bottom: 16px;
  line-height: 1.3;
}

/* Blog Tags */
.blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.tag {
  display: inline-block;
  background: rgba(212, 175, 55, 0.2);
  color: rgba(255, 255, 255, 0.9);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid rgba(212, 175, 55, 0.4);
  transition: all 0.2s ease;
}

.tag:hover {
  background: rgba(212, 175, 55, 0.35);
  border-color: rgba(212, 175, 55, 0.6);
}

/* Blog Excerpt */
.blog-excerpt {
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
  font-size: 1rem;
  margin-bottom: 24px;
}

/* Blog Highlights */
.blog-highlights {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
  border-left: 3px solid var(--primary-color);
}

.blog-highlights h3 {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.blog-highlights ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.blog-highlights li {
  color: rgba(255, 255, 255, 0.9);
  padding: 8px 0;
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.blog-highlights li:last-child {
  border-bottom: none;
}

.blog-highlights strong {
  color: var(--primary-color);
  font-weight: 700;
}

/* Blogs Grid (for smaller cards) */
.blogs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.blogs-grid .blog-card {
  margin-bottom: 0;
}

.blogs-grid .blog-title {
  font-size: 1.25rem;
}

.blogs-grid .blog-excerpt {
  font-size: 0.9rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Coming Soon Card */
.blog-card-coming-soon {
  opacity: 0.7;
}

.blog-card-coming-soon:hover {
  transform: none;
  box-shadow: none;
}

.blog-image-placeholder {
  height: 200px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(212, 175, 55, 0.05) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.blog-image-placeholder span {
  color: rgba(255, 255, 255, 0.4);
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* CTA Section */
.cta-section {
  background: #000000;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  padding: 80px 0;
  text-align: center;
}

.cta-section h2 {
  font-size: 2rem;
  color: white;
  margin-bottom: 16px;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 32px;
  font-size: 1.125rem;
}

.btn-large {
  padding: 16px 40px;
  font-size: 1.125rem;
}

/* Read More Button */
.read-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.read-more-btn::after {
  content: "\2192";
  transition: transform 0.2s;
}

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

/* Responsive */
@media (max-width: 1024px) {
  .blogs-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding: 60px 20px;
  }

  .hero-section h1 {
    font-size: 1.75rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .blog-before-after {
    grid-template-columns: 1fr;
  }

  .before-after-item img {
    height: 220px;
  }

  .blog-content {
    padding: 24px;
  }

  .blog-title {
    font-size: 1.5rem;
  }

  .blog-meta {
    flex-wrap: wrap;
    gap: 8px;
  }

  .cta-section h2 {
    font-size: 1.5rem;
  }

  .btn-large {
    padding: 14px 32px;
    font-size: 1rem;
  }
}

/* RTL Support */
html[dir="rtl"] .blog-tags {
  direction: rtl;
}

html[dir="rtl"] .blog-highlights {
  text-align: right;
  border-left: none;
  border-right: 3px solid var(--primary-color);
}

html[dir="rtl"] .before-after-label {
  left: auto;
  right: 16px;
}

html[dir="rtl"] .read-more-btn::after {
  content: "\2190";
}

html[dir="rtl"] .read-more-btn:hover::after {
  transform: translateX(-4px);
}
