/* ===================================================
   VoltAIR Pro — Blog Styles
   Extends the existing design system
   =================================================== */

/* ============================
   BLOG HERO / PAGE HEADER
   ============================ */
.blog-hero {
  padding: calc(var(--section-pad) + 3rem) 0 var(--section-pad);
  background: var(--clr-dark-blue);
  position: relative;
  overflow: hidden;
}

.blog-hero .bg-glow {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.08;
  pointer-events: none;
}

.blog-hero .bg-glow-1 {
  background: var(--clr-green);
  top: -150px;
  right: -100px;
}

.blog-hero-content {
  text-align: center;
}

.blog-hero-content .section-subtitle {
  justify-content: center;
}

.blog-hero-content .section-title {
  margin-inline: auto;
}

.blog-hero-content .section-desc {
  margin-inline: auto;
}

/* ============================
   BREADCRUMBS
   ============================ */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--clr-gray);
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.breadcrumbs a {
  color: var(--clr-gray);
  transition: color var(--trans-fast);
}

.breadcrumbs a:hover {
  color: var(--clr-green-accent);
}

.breadcrumbs .sep {
  color: var(--clr-gray-dark);
  user-select: none;
}

.breadcrumbs .current {
  color: var(--clr-light-2);
  font-weight: 500;
}

/* ============================
   BLOG LISTING LAYOUT
   ============================ */
.blog-section {
  padding: var(--section-pad) 0;
  background: var(--clr-dark);
  overflow: hidden;
}

.blog-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  align-items: start;
}

/* ============================
   BLOG CARDS GRID
   ============================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.blog-card {
  background: var(--gradient-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--trans-med);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-4px);
  border-color: rgba(26, 157, 92, 0.25);
  box-shadow: var(--shadow-glow-green);
}

.blog-card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--trans-slow);
}

.blog-card:hover .blog-card-image img {
  transform: scale(1.06);
}

.blog-card-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(11, 15, 26, 0.7) 100%);
}

.blog-card-category {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(26, 157, 92, 0.85);
  color: var(--clr-white);
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

[dir="rtl"] .blog-card-category {
  left: auto;
  right: 1rem;
}

.blog-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
  font-size: 0.78rem;
  color: var(--clr-gray-dark);
}

.blog-card-meta span {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.blog-card-meta svg {
  width: 14px;
  height: 14px;
  opacity: 0.6;
}

.blog-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--clr-white);
  margin-bottom: 0.6rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-excerpt {
  font-size: 0.85rem;
  color: var(--clr-gray);
  line-height: 1.65;
  margin-bottom: 1.25rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--ff-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--clr-green-accent);
  transition: all var(--trans-fast);
}

.blog-card-link svg {
  width: 16px;
  height: 16px;
  transition: transform var(--trans-fast);
}

[dir="rtl"] .blog-card-link svg {
  transform: rotate(180deg);
}

.blog-card-link:hover {
  color: var(--clr-green-light);
}

.blog-card-link:hover svg {
  transform: translateX(4px);
}

[dir="rtl"] .blog-card-link:hover svg {
  transform: translateX(-4px) rotate(180deg);
}

/* Featured card (first one spans full width) */
.blog-card.featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.blog-card.featured .blog-card-image {
  height: 100%;
  min-height: 280px;
}

.blog-card.featured .blog-card-body {
  padding: 2rem;
  justify-content: center;
}

.blog-card.featured h3 {
  font-size: 1.35rem;
  -webkit-line-clamp: 3;
}

.blog-card.featured .blog-card-excerpt {
  -webkit-line-clamp: 4;
}

/* ============================
   BLOG SIDEBAR
   ============================ */
.blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: sticky;
  top: 100px;
}

.sidebar-widget {
  background: var(--gradient-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.sidebar-widget h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--clr-white);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sidebar-widget h4 svg {
  width: 18px;
  height: 18px;
  color: var(--clr-green-accent);
}

/* Categories widget */
.category-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.category-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--trans-fast);
  font-size: 0.88rem;
  color: var(--clr-gray);
}

.category-item:hover,
.category-item.active {
  background: rgba(26, 157, 92, 0.08);
  color: var(--clr-white);
}

.category-item.active {
  color: var(--clr-green-accent);
}

.category-count {
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(255,255,255,0.06);
  padding: 0.15rem 0.5rem;
  border-radius: 50px;
  color: var(--clr-gray-dark);
  min-width: 24px;
  text-align: center;
}

.category-item.active .category-count {
  background: rgba(26, 157, 92, 0.15);
  color: var(--clr-green-accent);
}

/* Recent articles widget */
.recent-article {
  display: flex;
  gap: 0.85rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: all var(--trans-fast);
}

.recent-article:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.recent-article:first-child {
  padding-top: 0;
}

.recent-article-image {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}

.recent-article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recent-article-text h5 {
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--clr-light-2);
  line-height: 1.35;
  margin-bottom: 0.3rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--trans-fast);
}

.recent-article:hover .recent-article-text h5 {
  color: var(--clr-green-accent);
}

.recent-article-text span {
  font-size: 0.72rem;
  color: var(--clr-gray-dark);
}

/* Sidebar CTA */
.sidebar-cta {
  background: linear-gradient(145deg, rgba(10, 110, 58, 0.15) 0%, rgba(20, 184, 166, 0.08) 100%);
  border-color: rgba(26, 157, 92, 0.2);
  text-align: center;
}

.sidebar-cta-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(26, 157, 92, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.sidebar-cta-icon svg {
  width: 24px;
  height: 24px;
  color: var(--clr-green-accent);
}

.sidebar-cta h4 {
  border: none;
  padding: 0;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.sidebar-cta p {
  font-size: 0.85rem;
  color: var(--clr-gray);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.sidebar-cta .btn {
  width: 100%;
  justify-content: center;
  font-size: 0.88rem;
}

/* ============================
   ARTICLE PAGE
   ============================ */
.article-section {
  padding: var(--section-pad) 0;
  background: var(--clr-dark);
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  align-items: start;
}

.article-main {
  max-width: 100%;
}

/* Article Header */
.article-header {
  margin-bottom: 2.5rem;
}

.article-header-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.article-category-tag {
  background: rgba(26, 157, 92, 0.85);
  color: var(--clr-white);
  padding: 0.35rem 1rem;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.article-date,
.article-readtime {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: var(--clr-gray);
}

.article-date svg,
.article-readtime svg {
  width: 15px;
  height: 15px;
  opacity: 0.6;
}

.article-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--clr-white);
  margin-bottom: 1rem;
}

.article-header-desc {
  font-size: 1.1rem;
  color: var(--clr-gray);
  line-height: 1.7;
}

/* Article Featured Image */
.article-featured-image {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 2.5rem;
  max-height: 420px;
}

.article-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Article Content */
.article-content {
  font-size: 1rem;
  color: var(--clr-light-2);
  line-height: 1.85;
}

.article-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--clr-white);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.article-content h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--clr-white);
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}

.article-content p {
  margin-bottom: 1.25rem;
}

.article-content ul {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

[dir="rtl"] .article-content ul {
  padding-left: 0;
  padding-right: 1.5rem;
}

.article-content li {
  margin-bottom: 0.5rem;
  position: relative;
  list-style: none;
  padding-left: 1.25rem;
}

[dir="rtl"] .article-content li {
  padding-left: 0;
  padding-right: 1.25rem;
}

.article-content li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--clr-green-accent);
}

[dir="rtl"] .article-content li::before {
  left: auto;
  right: 0;
}

.article-content a {
  color: var(--clr-green-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--trans-fast);
}

.article-content a:hover {
  color: var(--clr-teal-light);
}

.article-content strong {
  color: var(--clr-white);
  font-weight: 600;
}

/* ============================
   FAQ BLOCK
   ============================ */
.faq-section {
  margin-top: 3rem;
  padding: 2rem;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
}

.faq-section h2 {
  margin-top: 0 !important;
  border: none !important;
  padding: 0 !important;
  margin-bottom: 1.5rem !important;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.faq-section h2 svg {
  width: 24px;
  height: 24px;
  color: var(--clr-green-accent);
}

.faq-item {
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding: 1rem 0;
}

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

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  gap: 1rem;
  transition: color var(--trans-fast);
}

.faq-question h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--clr-light-2);
  margin: 0;
  line-height: 1.5;
}

.faq-question:hover h3 {
  color: var(--clr-green-accent);
}

.faq-toggle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--trans-fast);
}

.faq-toggle svg {
  width: 16px;
  height: 16px;
  color: var(--clr-gray);
  transition: transform var(--trans-fast);
}

.faq-item.open .faq-toggle {
  background: rgba(26, 157, 92, 0.12);
}

.faq-item.open .faq-toggle svg {
  transform: rotate(180deg);
  color: var(--clr-green-accent);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding-top: 0.75rem;
}

.faq-answer p {
  font-size: 0.9rem;
  color: var(--clr-gray);
  line-height: 1.7;
  margin: 0;
}

/* ============================
   ARTICLE CTA BLOCK
   ============================ */
.article-cta-block {
  margin-top: 3rem;
  padding: 2.5rem;
  border-radius: var(--radius-xl);
  background: linear-gradient(145deg, rgba(10, 110, 58, 0.12) 0%, rgba(20, 184, 166, 0.06) 100%);
  border: 1px solid rgba(26, 157, 92, 0.2);
  text-align: center;
}

.article-cta-block h2 {
  margin-top: 0 !important;
  border: none !important;
  padding: 0 !important;
  text-align: center;
  font-size: 1.4rem !important;
  margin-bottom: 0.75rem !important;
}

.article-cta-block p {
  color: var(--clr-gray);
  font-size: 0.95rem;
  max-width: 480px;
  margin-inline: auto;
  margin-bottom: 1.5rem;
}

.article-cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.article-cta-buttons .btn-whatsapp {
  background: #25d366;
  color: var(--clr-white);
  box-shadow: 0 0 20px rgba(37, 211, 102, 0.25);
}

.article-cta-buttons .btn-whatsapp:hover {
  box-shadow: 0 0 30px rgba(37, 211, 102, 0.45);
  transform: translateY(-2px);
}

/* ============================
   RELATED ARTICLES
   ============================ */
.related-section {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.related-section h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--clr-white);
  margin-bottom: 1.5rem;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.related-grid .blog-card h3 {
  font-size: 0.95rem;
}

.related-grid .blog-card-image {
  height: 150px;
}

/* ============================
   BLOG CATEGORY FILTER PILLS (mobile)
   ============================ */
.blog-filter-pills {
  display: none;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.filter-pill {
  padding: 0.45rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--clr-gray);
  cursor: pointer;
  transition: all var(--trans-fast);
  white-space: nowrap;
}

.filter-pill:hover,
.filter-pill.active {
  background: rgba(26, 157, 92, 0.12);
  border-color: rgba(26, 157, 92, 0.3);
  color: var(--clr-green-accent);
}

/* ============================
   NO RESULTS
   ============================ */
.blog-no-results {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--clr-gray);
  font-size: 1rem;
  grid-column: 1 / -1;
}

.blog-no-results svg {
  width: 48px;
  height: 48px;
  color: var(--clr-gray-dark);
  margin-bottom: 1rem;
}

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 992px) {
  .blog-layout,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .blog-sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .sidebar-cta {
    grid-column: 1 / -1;
  }

  .blog-filter-pills {
    display: flex;
  }

  .blog-card.featured {
    grid-template-columns: 1fr;
  }

  .blog-card.featured .blog-card-image {
    min-height: 200px;
  }

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

@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }

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

  .related-grid {
    grid-template-columns: 1fr;
  }

  .article-cta-buttons {
    flex-direction: column;
  }

  .article-cta-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  .faq-section {
    padding: 1.25rem;
  }

  .article-cta-block {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .article-header h1 {
    font-size: 1.5rem;
  }

  .article-header-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  [dir="rtl"] .article-header-meta {
    align-items: flex-end;
  }
}
