/* ==========================================================================
   ROYAL AUTO PAINTS QATAR — BLOG / TECHNICAL INSIGHTS STYLESHEET
   Design Language: Luxore Automotive Industrial Minimal
   Palette: Pure White (#FFFFFF), Light Gray (#F7F0F2), Master Graphite (#58585A),
            Deep Charcoal (#22272F), Carbon Base (#14171C), Racing Gold (#FFB800)
   Zero Blue / Ashblue. Universal 1320px Container Parity.
   ========================================================================== */

:root {
  --royal-yellow-accent: #FFB800;
  --royal-yellow-gold: #F59E0B;
  --royal-gray-darkest: #14171C;
  --royal-gray-charcoal: #22272F;
  --royal-gray-graphite: #58585A;
  --royal-gray-body: #4A5568;
  --royal-gray-muted: #58585A;
  --royal-gray-light: #F7F0F2;
  --royal-gray-border: #E5E7EB;
}

body#blog-page {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--royal-gray-body);
  background-color: #F7F0F2 !important;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

#blog-page h1,
#blog-page h2,
#blog-page h3,
#blog-page h4 {
  font-family: 'Marcellus', serif;
  font-weight: 600;
  color: var(--royal-gray-graphite);
  letter-spacing: -0.01em;
}

/* ==========================================================================
   1. HERO BANNER SECTION
   ========================================================================== */
.blog-hero-section {
  position: relative;
  background: linear-gradient(135deg, rgba(20,23,28,0.88) 0%, rgba(34,39,47,0.82) 55%, rgba(51,58,69,0.78) 100%), 
              url('../images/Technician_mixing_automotive_paint.jpg') center/cover no-repeat;
  padding-top: 155px;
  padding-bottom: 75px;
  color: #FFFFFF;
  overflow: hidden;
}

.blog-hero-section::before {
  content: "";
  position: absolute;
  top: -25%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 184, 0, 0.12) 0%, transparent 65%);
  pointer-events: none;
  z-index: 1;
}

.blog-hero-inner {
  position: relative;
  z-index: 2;
}

.blog-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #9CA3AF;
  margin-bottom: 18px;
}

.blog-breadcrumb a {
  color: #D1D5DB;
  text-decoration: none;
  transition: color 0.2s ease;
}

.blog-breadcrumb a:hover {
  color: var(--royal-yellow-accent);
}

.blog-breadcrumb .sep,
.blog-breadcrumb .separator {
  color: var(--royal-yellow-accent, #FFB800);
  font-size: 12px;
  font-weight: 700;
}

.blog-breadcrumb .current {
  color: #FFFFFF;
  font-weight: 500;
}

.blog-spec-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #FFFFFF;
  margin-bottom: 16px;
}

.blog-spec-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--royal-yellow-accent);
  box-shadow: 0 0 10px var(--royal-yellow-accent);
}

.blog-hero-title {
  font-family: 'Marcellus', serif !important;
  font-size: clamp(2.4rem, 4.2vw, 3.8rem) !important;
  font-weight: 400 !important;
  line-height: 1.16 !important;
  color: #FFFFFF !important;
  margin-bottom: 16px !important;
}

.blog-hero-lead {
  font-size: 16.5px;
  line-height: 1.7;
  color: #D1D5DB;
  max-width: 760px;
  margin-bottom: 0;
}

/* ==========================================================================
   2. CATEGORY FILTER PILLS (Light Gray & Gold Active Standard)
   ========================================================================== */
.blog-section {
  padding: 65px 0 90px 0;
}

.blog-filter-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 45px;
}

.blog-filter-btn {
  background: #FFFFFF;
  color: var(--royal-gray-graphite);
  border: 1px solid #E5E7EB;
  padding: 10px 22px;
  border-radius: 50px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.blog-filter-btn:hover {
  background: #F1F5F9;
  color: var(--royal-gray-darkest);
  border-color: #D1D5DB;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

/* Active Filter Pill — Light Gray & Racing Gold */
.blog-filter-btn.active {
  background: #58585A !important;
  color: #FFFFFF !important;
  border: 1px solid #58585A !important;
  box-shadow: 0 4px 16px rgba(88, 88, 90, 0.28) !important;
}

.blog-filter-btn.active .filter-count {
  background: var(--royal-yellow-accent, #FFB800) !important;
  color: #14171C !important;
  font-weight: 700 !important;
}

.blog-filter-btn .filter-count {
  font-size: 11px;
  background: #E2E8F0;
  color: #475569;
  padding: 2px 7px;
  border-radius: 20px;
  font-weight: 700;
  transition: all 0.2s ease;
}

/* ==========================================================================
   3. FEATURED ARTICLE HERO CARD
   ========================================================================== */
.blog-featured-card {
  background: #FFFFFF;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid #E5E7EB;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  margin-bottom: 50px;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.blog-featured-card:hover {
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.1);
  border-color: rgba(255, 184, 0, 0.4);
  transform: translateY(-4px);
}

@media (max-width: 991px) {
  .blog-featured-card {
    grid-template-columns: 1fr;
  }
}

.blog-featured-img-wrap {
  position: relative;
  overflow: hidden;
  min-height: 380px;
  background: #22272F;
}

.blog-featured-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.blog-featured-card:hover .blog-featured-img-wrap img {
  transform: scale(1.05);
}

.blog-featured-tag {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(20, 23, 28, 0.85);
  backdrop-filter: blur(8px);
  color: #FFFFFF;
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.blog-featured-body {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.blog-meta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: #6B7280;
  margin-bottom: 14px;
}

.blog-meta-row i {
  color: var(--royal-yellow-accent);
}

.blog-featured-title {
  font-family: 'Marcellus', serif;
  font-size: clamp(1.6rem, 2.2vw, 2.1rem);
  font-weight: 600;
  color: var(--royal-gray-graphite);
  line-height: 1.3;
  margin-bottom: 14px;
}

.blog-featured-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.blog-featured-title a:hover {
  color: #14171C;
}

.blog-featured-excerpt {
  font-size: 15px;
  color: var(--royal-gray-body);
  line-height: 1.7;
  margin-bottom: 24px;
}

.blog-author-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #E5E7EB;
  padding-top: 20px;
  margin-top: auto;
}

.blog-author-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.blog-author-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #E5E7EB;
  color: #58585A;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  border: 1px solid #D1D5DB;
}

.blog-author-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--royal-gray-graphite);
  line-height: 1.2;
}

.blog-author-role {
  font-size: 12px;
  color: #6B7280;
  line-height: 1.2;
}

.btn-read-featured {
  background: var(--royal-yellow-accent);
  color: #14171C;
  padding: 10px 22px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
}

.btn-read-featured:hover {
  background: var(--royal-yellow-gold);
  color: #14171C;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(255, 184, 0, 0.35);
}

/* ==========================================================================
   4. ARTICLES GRID
   ========================================================================== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 28px;
}

@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.blog-card {
  background: #FFFFFF;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #E5E7EB;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.09);
  border-color: rgba(255, 184, 0, 0.4);
}

.blog-card-img-wrap {
  position: relative;
  width: 100%;
  height: 230px;
  overflow: hidden;
  background-color: #22272F;
}

.blog-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
}

.blog-card:hover .blog-card-img-wrap img {
  transform: scale(1.08);
}

.blog-card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(20, 23, 28, 0.85);
  backdrop-filter: blur(8px);
  color: #FFFFFF;
  padding: 4px 12px;
  border-radius: 30px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.blog-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: #6B7280;
  margin-bottom: 10px;
}

.blog-meta-dot {
  color: #9CA3AF;
  font-size: 14px;
}

.blog-card-title {
  font-family: 'Marcellus', serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--royal-gray-graphite);
  margin-bottom: 10px;
  line-height: 1.35;
}

.blog-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.blog-card:hover .blog-card-title {
  color: var(--royal-gray-darkest);
}

.blog-card-desc {
  font-size: 14px;
  color: var(--royal-gray-body);
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}

.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #E5E7EB;
  padding-top: 14px;
  margin-top: auto;
  font-size: 13px;
}

.blog-card-author {
  font-weight: 600;
  color: var(--royal-gray-graphite);
}

.blog-card-read-link {
  color: var(--royal-gray-graphite);
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.blog-card:hover .blog-card-read-link {
  color: var(--royal-yellow-gold);
  transform: translateX(3px);
}

/* Hide/Show for filtering */
.blog-card.hidden {
  display: none !important;
}

/* ==========================================================================
   5. CTA / NEWSLETTER SECTION
   ========================================================================== */
.blog-cta-section {
  padding: 0 0 85px 0;
}

.blog-cta-card {
  background: linear-gradient(135deg, #58585A 0%, #22272F 100%) !important;
  border-radius: 20px;
  padding: 48px 42px;
  color: #FFFFFF !important;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.blog-cta-content {
  max-width: 650px;
}

#blog-page .blog-cta-title,
.blog-cta-card h3,
.blog-cta-title {
  font-family: 'Marcellus', serif !important;
  font-size: clamp(1.6rem, 2.5vw, 2.2rem) !important;
  font-weight: 500 !important;
  color: #FFFFFF !important;
  margin-bottom: 12px !important;
  line-height: 1.25 !important;
}

#blog-page .blog-cta-subtitle,
.blog-cta-card p,
.blog-cta-subtitle {
  font-size: 15px !important;
  color: #FFFFFF !important;
  line-height: 1.6 !important;
  margin-bottom: 0 !important;
  opacity: 0.95 !important;
}

.blog-cta-form-wrap {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.blog-newsletter-input {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  padding: 12px 20px;
  color: #FFFFFF;
  font-size: 14px;
  min-width: 280px;
  outline: none;
  transition: all 0.25s ease;
}

.blog-newsletter-input:focus {
  background: rgba(255, 255, 255, 0.18);
  border-color: var(--royal-yellow-accent);
}

.blog-newsletter-input::placeholder {
  color: #9CA3AF;
}

.btn-newsletter-submit {
  background: var(--royal-yellow-accent);
  color: #14171C;
  border: none;
  padding: 12px 26px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(255, 184, 0, 0.3);
  transition: all 0.25s ease;
}

.btn-newsletter-submit:hover {
  background: var(--royal-yellow-gold);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 184, 0, 0.4);
}
