 :root {
  --primary-red: #f00;
  --dark-bg: #111111;
  --nav-bg: #1a1a1a;
  --text-light: #ffffff;
  --max-width: 1800px;
}

body { 
  margin: 0; 
  font-family: 'Poppins', sans-serif; 
}

.header-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 30px;
}

.flex-between { display: flex; justify-content: space-between; }
.align-center { align-items: center; }

/* TOP ROW */
.header-top {
  background-color: var(--dark-bg);
  padding: 25px 0;
}

.brand-logo {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-text { color: var(--text-light); font-size: 2.2rem; font-weight: 800; letter-spacing: -0.5px; }
.logo-accent { color: var(--primary-red); font-size: 1.4rem; font-weight: 700; letter-spacing: 2px; }

.header-ctas { display: flex; align-items: center; gap: 40px; }

/* === NEW GOOGLE TRUST BADGE === */
.trust-badge {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.google-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 4px;
}

.icon-google { width: 18px; height: 18px; }
.stars-container { display: flex; gap: 2px; }
.icon-star { width: 16px; height: 16px; }

.trust-text { color: #fff; font-size: 0.85rem; font-weight: 600; opacity: 0.8; }

/* Phone & Button */
.phone-cta {
  display: flex; flex-direction: column; align-items: flex-end;
  text-decoration: none; color: var(--text-light); transition: color 0.2s;
}
.phone-cta:hover { color: var(--primary-red); }
.phone-label { font-size: 0.9rem; font-weight: 600; color: var(--primary-red); text-transform: uppercase; }
.phone-number { font-size: 1.8rem; font-weight: 800; letter-spacing: -0.5px; }

/* === UPDATED CTA BUTTON (Slightly smaller, still bold) === */
.btn-primary {
  background-color: var(--primary-red);
  color: #fff;
  padding: 14px 30px; /* Reduced from 16px 36px */
  font-size: 1.1rem;  /* Reduced from 1.2rem */
  font-weight: 700;
  text-decoration: none;
  border-radius: 6px;
  text-transform: uppercase;
  transition: transform 0.2s, background-color 0.2s;
}
.btn-primary:hover { background-color: #cc0000; transform: translateY(-2px); }

.mobile-toggle { display: none; background: none; border: none; color: #fff; font-size: 2.5rem; cursor: pointer; padding: 0; }

/* BOTTOM ROW (Navigation) */
.header-nav { background-color: var(--nav-bg); position: relative; }
.main-menu { display: flex; gap: 50px; }
.nav-item { position: relative; }

.nav-link {
  display: block; color: var(--text-light); text-decoration: none;
  font-size: 1.15rem; font-weight: 700; padding: 20px 0;
  background: none; border: none; cursor: pointer;
  font-family: inherit; text-transform: uppercase; transition: color 0.2s;
}
.nav-link:hover { color: var(--primary-red); }

/* === NEW STRESSED "UNSURE" LINK === */
.highlight-urgent {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
}

.highlight-urgent:hover { color: var(--primary-red); }

.pulse-dot {
  width: 12px;
  height: 12px;
  background-color: var(--primary-red);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.7);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(255, 0, 0, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 0, 0, 0); }
}

/* MEGA MENUS */
.mega-menu {
  position: absolute; top: 100%; left: 0; background: #ffffff; color: #111;
  width: 900px; max-width: 90vw; padding: 40px; box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  border-radius: 0 0 12px 12px; opacity: 0; visibility: hidden;
  transform: translateY(10px); transition: all 0.3s ease; z-index: 100;
}
.has-mega:hover .mega-menu { opacity: 1; visibility: visible; transform: translateY(0); }

.mega-grid { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 50px; }
.mega-column h4 { margin: 0 0 20px 0; color: var(--primary-red); font-size: 1.3rem; font-weight: 800; text-transform: uppercase; }
.mega-column a { display: block; color: #333; text-decoration: none; font-size: 1.1rem; font-weight: 600; margin-bottom: 15px; transition: color 0.2s; }
.mega-column a:hover { color: var(--primary-red); }

.promo-column { background-color: #f8f8f8; padding: 20px; border-radius: 8px; }
.mega-img { width: 100%; height: 160px; object-fit: cover; border-radius: 6px; margin-bottom: 15px; }
.promo-text h4 { font-size: 1.1rem; margin-bottom: 5px; color: #111; }
.promo-text p { margin: 0; font-size: 1rem; color: #555; font-weight: 500; }

.specialists-grid { grid-template-columns: 1fr 1fr; gap: 30px 50px; }
.brand-link { display: flex; flex-direction: column; text-decoration: none; background: #f8f8f8; padding: 20px; border-radius: 8px; transition: background 0.2s; }
.brand-link:hover { background: #ffeeee; }
.brand-name { color: #111; font-size: 1.3rem; font-weight: 800; }
.brand-desc { color: #666; font-size: 1rem; font-weight: 600; margin-top: 5px; }

/* MOBILE RESPONSIVENESS */
@media (max-width: 1024px) {
  .hide-mobile { display: none !important; }
  .mobile-toggle { display: block; }
  .header-ctas { gap: 20px; }
  
  .header-nav { position: absolute; min-height:100vh; left: 0; width: 100%; background: var(--dark-bg); display: none; z-index: 99; }
  .header-nav.mobile-active { display: block; }
  .main-menu { flex-direction: column; gap: 0; padding: 0 20px 20px 20px; }
  
  .nav-link { padding: 15px 0; border-bottom: 1px solid #333; width: 100%; text-align: left; }
  .mega-menu { position: static; width: 100%; transform: none; box-shadow: none; padding: 15px 0 25px 0; display: none; background: var(--dark-bg); }
  .has-mega:hover .mega-menu { display: none; }
  .has-mega.active .mega-menu { display: block; opacity: 1; visibility: visible; }
  
  .mega-grid { grid-template-columns: 1fr; gap: 30px; }
  .mega-column h4 { color: #fff; }
  .mega-column a { color: #aaa; }
  .promo-column, .brand-link { background: #222; }
  .brand-name, .promo-text h4 { color: #fff; }
  .brand-desc, .promo-text p { color: #aaa; }
}
/* ==================
   VEHICLE TYPE TAGS
   ================== */
   
/* Adjust grid for this specific menu to give Brands more room than Tags */
.type-specialist-layout {
  grid-template-columns: 1fr 2fr;
  gap: 60px;
}

.type-column {
  border-right: 1px solid #eee;
  padding-right: 40px;
}

/* Styling the Taxonomy Tags as UI Pills */
.type-tag {
  display: flex;
  align-items: center;
  gap: 15px;
  background-color: #f4f4f4;
  padding: 14px 20px;
  border-radius: 8px;
  margin-bottom: 12px;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
}

.type-tag .tag-icon {
  font-size: 1.4rem;
}

.type-tag .tag-text {
  color: #111;
  font-size: 1.1rem;
  font-weight: 700;
}

/* Hover State - Turns Red and text goes White */
.type-tag:hover {
  background-color: var(--primary-red);
  transform: translateX(5px); /* Gentle nudge to the right */
}

.type-tag:hover .tag-text {
  color: #ffffff;
}

/* Make the Fleet tag stand out slightly */
.fleet-tag {
  background-color: #111;
  margin-top: 20px;
}

.fleet-tag .tag-text {
  color: #fff;
}

.fleet-tag:hover {
  background-color: var(--primary-red);
}

/* Mobile Adjustments for the new tags */
@media (max-width: 1024px) {
  .type-specialist-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .type-column {
    border-right: none;
    padding-right: 0;
    border-bottom: 1px solid #333;
    padding-bottom: 20px;
  }
  
  .type-tag {
    background-color: #222;
  }
  
  .type-tag .tag-text {
    color: #fff;
  }
}

.site-footer {
  background-color: var(--dark-bg);
  color: var(--text-light);
  font-family: 'Poppins', sans-serif;
}

/* PRE-FOOTER CTA BANNER */
.footer-cta-banner {
  background-color: var(--primary-red);
  padding: 40px 0;
  border-bottom: 5px solid #cc0000;
}

.cta-title {
  font-size: 2rem;
  font-weight: 800;
  margin: 0 0 5px 0;
  color: #fff;
  letter-spacing: -0.5px;
}

.cta-subtitle {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
}

.cta-banner-action {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.cta-huge-phone {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 2.8rem;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  line-height: 1;
  transition: transform 0.2s;
}

.cta-huge-phone:hover {
  transform: scale(1.05);
}

.cta-huge-phone .pulse-dot {
  width: 16px;
  height: 16px;
  background-color: #fff;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
}

.cta-hours-text {
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.9);
}

/* MAIN FOOTER COLUMNS */
.footer-main {
  padding: 80px 0 50px 0;
  background-color: #111111;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr; /* Bio gets more space, contact gets slightly more */
  gap: 50px;
}

.footer-logo {
  margin-bottom: 20px;
}

.footer-bio {
  color: #aaaaaa;
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 25px;
  max-width: 90%;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-icon {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  padding: 8px 16px;
  background-color: #222;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.social-icon:hover {
  background-color: var(--primary-red);
}

.footer-heading {
  color: #ffffff;
  font-size: 1.3rem;
  font-weight: 800;
  margin: 0 0 25px 0;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 10px;
}

.footer-heading::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 3px;
  background-color: var(--primary-red);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 15px;
}

.footer-links a {
  color: #aaaaaa;
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 600;
  transition: color 0.2s, padding-left 0.2s;
}

.footer-links a:hover {
  color: var(--primary-red);
  padding-left: 8px; /* Smooth indent effect on hover */
}

/* CONTACT COLUMN */
.footer-contact-list {
  list-style: none;
  padding: 0;
  margin: 0 0 30px 0;
}

.footer-contact-list li {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.contact-icon {
  font-size: 1.4rem;
  margin-top: 2px;
}

.contact-detail {
  color: #aaaaaa;
  font-size: 1rem;
  line-height: 1.5;
}

.contact-detail strong {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 700;
}

.contact-detail.link {
  text-decoration: none;
  transition: color 0.2s;
}

.contact-detail.link:hover {
  color: var(--primary-red);
}

.garage-hours {
  background-color: #1a1a1a;
  padding: 20px;
  border-radius: 8px;
  border-left: 4px solid var(--primary-red);
}

.hours-title {
  color: #fff;
  margin: 0 0 10px 0;
  font-size: 1.1rem;
  font-weight: 800;
  text-transform: uppercase;
}

.garage-hours p {
  margin: 0 0 5px 0;
  color: #aaa;
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
}

.garage-hours p strong {
  color: #fff;
}

/* FOOTER BOTTOM */
.footer-bottom {
  background-color: #080808;
  padding: 25px 0;
  border-top: 1px solid #222;
}

.copyright {
  color: #777;
  margin: 0;
  font-size: 0.95rem;
}

.legal-links a {
  color: #777;
  text-decoration: none;
  font-size: 0.95rem;
  margin-left: 20px;
  transition: color 0.2s;
}

.legal-links a:hover {
  color: #fff;
}

/* ==========================================
   MOBILE RESPONSIVENESS
   ========================================== */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr; /* 2 columns on tablets */
  }
}

@media (max-width: 768px) {
  .mobile-col {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .cta-banner-action {
    align-items: flex-start;
    margin-top: 20px;
  }

  .cta-huge-phone {
    font-size: 2.2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr; /* 1 column on mobile */
    gap: 40px;
  }
  
  .footer-bottom .mobile-col {
    align-items: center;
    text-align: center;
    gap: 15px;
  }
  
  .legal-links a {
    margin: 0 10px;
  }
}

/* ==========================================
   GLOBAL BUTTON STYLES (Reusable)
   ========================================== */
.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 6px;
  text-transform: uppercase;
  transition: all 0.2s ease-in-out;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  border: 2px solid transparent; /* Keeps sizing identical between buttons */
}

/* Primary: Red background, white text */
.btn-primary {
  background-color: var(--primary-red, #f00);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: #cc0000;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(204, 0, 0, 0.2);
}

/* Secondary: Dark grey background, white text (matches the header/footer aesthetic) */
.btn-secondary {
  background-color: #111111;
  color: #ffffff;
  border-color: #111111;
}

.btn-secondary:hover {
  background-color: #333333;
  border-color: #333333;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(17, 17, 17, 0.2);
}

/* ==========================================
   404 PAGE SPECIFIC STYLES
   ========================================== */
.error-404-page {
  background-color: #ffffff; /* Crisp white background */
  color: #111111;
  font-family: 'Poppins', sans-serif;
  padding-bottom: 80px;
}

.content-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.text-center {
  text-align: center;
}

/* Hero Section */
.error-hero {
  padding: 100px 0 60px 0;
}

.error-icon {
  margin-bottom: 30px;
  animation: pulse-soft 3s infinite ease-in-out;
}

.error-title {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -1px;
  margin: 0 0 20px 0;
  color: #111111;
}

.error-subtitle {
  font-size: 1.2rem;
  color: #555555;
  max-width: 700px;
  margin: 0 auto 40px auto;
  line-height: 1.6;
}

.button-group {
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* Routing / Helpful Links Section */
.error-routing {
  background-color: #f8f9fa; /* Very subtle off-white to separate sections */
  padding: 60px 0;
  border-radius: 12px;
  margin: 0 20px;
}

.routing-header h2 {
  font-size: 2rem;
  font-weight: 800;
  margin: 0 0 10px 0;
}

.routing-header p {
  color: #555;
  font-size: 1.1rem;
  margin: 0 0 40px 0;
}

/* Dynamic Grid for Services */
.services-routing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.routing-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #ffffff;
  padding: 20px 25px;
  border-radius: 8px;
  text-decoration: none;
  border: 1px solid #e0e0e0;
  transition: all 0.2s ease;
}

.routing-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #111111;
}

.routing-card-arrow {
  font-size: 1.5rem;
  color: #cccccc;
  transition: color 0.2s, transform 0.2s;
}

.routing-card:hover {
  border-color: var(--primary-red, #f00);
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transform: translateY(-3px);
}

.routing-card:hover .routing-card-title {
  color: var(--primary-red, #f00);
}

.routing-card:hover .routing-card-arrow {
  color: var(--primary-red, #f00);
  transform: translateX(5px);
}

/* Subtle animation for the SVG */
@keyframes pulse-soft {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .error-title {
    font-size: 2.2rem;
  }
  
  .button-group {
    flex-direction: column;
    gap: 15px;
  }
  
  .btn-primary, .btn-secondary {
    width: 100%;
  }
  
  .error-routing {
    margin: 0;
    border-radius: 0;
  }
}

/* ==========================================
   URGENT SINGLE PAGE STYLES
   ========================================== */
.urgent-single-page {
  background-color: #f4f5f7;
  padding-bottom: 80px;
  font-family: 'Poppins', sans-serif;
}

/* Breadcrumbs */
.breadcrumb-container {
  background-color: #fff;
  padding: 15px 0;
  border-bottom: 1px solid #eee;
  margin-bottom: 40px;
  font-size: 0.9rem;
  font-weight: 600;
}
.breadcrumbs a { color: #555; text-decoration: none; }
.breadcrumbs a:hover { color: var(--primary-red); }
.breadcrumbs .current { color: #111; }

/* Layout Grid */
.urgent-article-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 50px;
}

/* Header & Badges */
.urgent-h1 {
  font-size: 2.5rem;
  font-weight: 800;
  color: #111;
  margin: 15px 0 25px 0;
  line-height: 1.2;
}

.danger-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 4px;
  font-weight: 800;
  font-size: 0.9rem;
  text-transform: uppercase;
  color: #fff;
}
.badge-warning { background-color: #ff9800; color: #111; }
.badge-critical { background-color: #e91e63; }
.badge-fatal { background-color: var(--primary-red); animation: pulse-border 2s infinite; }

@keyframes pulse-border {
  0% { box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(255, 0, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 0, 0, 0); }
}

/* The AI Snippet Box */
.ai-answer-box {
  background-color: #eef2f9;
  border-left: 5px solid #2196f3;
  padding: 20px;
  font-size: 1.15rem;
  font-weight: 600;
  color: #222;
  border-radius: 0 8px 8px 0;
  margin-bottom: 40px;
  line-height: 1.6;
}
.ai-answer-box strong { color: #0d47a1; text-transform: uppercase; font-size: 0.9rem; display: block; margin-bottom: 5px; }

/* Split View: Image + Steps */
.urgent-split-view {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 30px;
  margin-bottom: 50px;
}

.symptom-visual img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #ddd;
}
.visual-caption { display: block; font-size: 0.85rem; color: #777; text-align: center; margin-top: 8px; }

.immediate-action-list h3 { margin: 0 0 15px 0; color: var(--primary-red); font-weight: 800; }
.action-steps { padding-left: 20px; margin: 0; }
.action-steps li { font-size: 1.1rem; color: #111; font-weight: 600; margin-bottom: 12px; line-height: 1.4; padding-left: 5px; }
.action-steps li::marker { color: var(--primary-red); font-weight: 800; }

/* Process Section */
.repair-process-content {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.03);
  margin-bottom: 40px;
}
.repair-process-content h2 { margin-top: 0; font-size: 1.6rem; font-weight: 800; }
.repair-process-content p { font-size: 1.05rem; color: #444; line-height: 1.7; }

/* Taxonomy Pills */
.tags-title { margin: 0 0 10px 0; font-size: 1rem; color: #777; }
.tags-row { display: flex; gap: 10px; flex-wrap: wrap; }
.vehicle-tag-pill {
  background: #111;
  color: #fff;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}
.vehicle-tag-pill:hover { background: var(--primary-red); }

/* Sidebar */
.emergency-cta-box {
  background: #111;
  color: #fff;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  margin-bottom: 30px;
  border-top: 5px solid var(--primary-red);
}
.pulse-icon { font-size: 3rem; margin-bottom: 15px; }
.emergency-cta-box h3 { margin: 0 0 10px 0; font-size: 1.6rem; font-weight: 800; }
.emergency-cta-box p { margin: 0 0 25px 0; color: #ccc; font-size: 1rem; }
.huge-btn { width: 100%; display: block; box-sizing: border-box; font-size: 1.3rem; padding: 18px 0; margin-bottom: 15px; }
.outline-btn { width: 100%; display: block; box-sizing: border-box; background: transparent; border: 2px solid #fff; color: #fff; }
.outline-btn:hover { background: #fff; color: #111; }

/* Related Widget */
.related-widget { background: #fff; padding: 25px; border-radius: 8px; box-shadow: 0 5px 20px rgba(0,0,0,0.03); }
.related-widget h4 { margin: 0 0 15px 0; font-weight: 800; font-size: 1.2rem; border-bottom: 2px solid #eee; padding-bottom: 10px; }
.related-list { list-style: none; padding: 0; margin: 0; }
.related-list li { margin-bottom: 12px; }
.related-list a { display: flex; justify-content: space-between; text-decoration: none; color: #444; font-weight: 600; transition: color 0.2s; }
.related-list a:hover { color: var(--primary-red); }

/* Mobile */
@media (max-width: 900px) {
  .urgent-article-layout { grid-template-columns: 1fr; }
  .urgent-split-view { grid-template-columns: 1fr; }
  .urgent-sidebar { order: -1; margin-bottom: 30px; } /* Moves the Call CTA to the very top on mobile */
}

/* ==========================================
   ARCHIVE GRID & CARDS
   ========================================== */
.archive-content-section {
  background-color: #f4f5f7;
  padding: 0 0 80px 0;
  margin-top: -40px; /* Pulls the grid up slightly over the dark hero */
  position: relative;
  z-index: 2;
}

.search-results-title {
  text-align: center;
  margin-bottom: 40px;
  font-size: 1.8rem;
  font-weight: 800;
}

.urgent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 30px;
}

.urgent-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.urgent-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

/* Card Image & Overlay Badge */
.urgent-card-image-wrapper {
  position: relative;
  height: 220px;
  width: 100%;
  overflow: hidden;
}

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

.urgent-card:hover .urgent-card-img {
  transform: scale(1.05); /* Slight zoom on hover */
}

.card-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  padding: 6px 12px;
  border-radius: 4px;
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  color: #fff;
  z-index: 10;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Card Text Content */
.urgent-card-content {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.urgent-card-title {
  font-size: 1.4rem;
  font-weight: 800;
  margin: 0 0 10px 0;
  line-height: 1.3;
}

.urgent-card-title a {
  text-decoration: none;
  color: #111;
  transition: color 0.2s;
}

.urgent-card-title a:hover {
  color: var(--primary-red);
}

.urgent-card-question {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary-red);
  margin-bottom: 12px;
  font-style: italic;
}

.urgent-card-answer {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 20px 0;
  flex-grow: 1; /* Pushes the button to the bottom */
}

.read-more-btn {
  width: 100%;
  text-align: center;
  font-size: 0.95rem;
  padding: 12px 0;
}


/* ==========================================
   GENERIC HERO SECTION (Light Theme)
   ========================================== */
.generic-hero-light {
  background-color: #f8f9fa; /* Soft light grey */
  color: #111111;
  padding: 80px 20px 80px 20px;
  position: relative;
  border-bottom: 1px solid #eaeaea;
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 800;
  margin: 0 0 15px 0;
  letter-spacing: -1px;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: #555555;
  max-width: 800px;
  margin: 0 auto 40px auto;
  line-height: 1.6;
}

/* SEARCH FORM IN LIGHT HERO */
.urgent-search-form {
  max-width: 700px;
  margin: 0 auto;
}

.search-input-group {
  display: flex;
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05); /* Softer shadow for light theme */
  border: 1px solid #ddd; /* Added border for contrast */
  padding: 5px;
}

.search-field {
  flex-grow: 1;
  border: none;
  padding: 15px 25px;
  font-size: 1.1rem;
  font-family: 'Poppins', sans-serif;
  color: #111;
  outline: none;
}

.search-submit {
  border: none;
  padding: 15px 35px;
  border-radius: 6px;
}

/* ==========================================
   ARCHIVE GRID & CARDS
   ========================================== */
.archive-content-section {
  background-color: #ffffff;
  padding: 60px 0 80px 0;
  position: relative;
  z-index: 2;
}

/* Card Text Content */
.urgent-card-content {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.urgent-card-title {
  font-size: 1.4rem;
  font-weight: 800;
  margin: 0 0 10px 0;
  line-height: 1.3;
}

.urgent-card-title a { text-decoration: none; color: #111; transition: color 0.2s; }
.urgent-card-title a:hover { color: var(--primary-red); }

.urgent-card-question {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary-red);
  margin-bottom: 12px;
  font-style: italic;
}

.urgent-card-answer {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 15px 0;
}

/* Dynamic Recommendation Box */
.urgent-card-recommendation {
  background-color: #fcfcfc;
  border-left: 4px solid #111;
  padding: 12px 15px;
  font-size: 0.9rem;
  color: #333;
  line-height: 1.5;
  margin-bottom: 20px;
  flex-grow: 1; /* Pushes the CTA to the absolute bottom of the card */
}

.urgent-card-recommendation strong {
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  color: #111;
  margin-bottom: 4px;
}

/* Text-Only CTA Link */
.text-only-cta {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: #111;
  text-decoration: none;
  padding-top: 15px;
  border-top: 1px solid #eee;
  transition: color 0.2s;
}

.text-only-cta .arrow {
  color: var(--primary-red);
  transition: transform 0.2s;
  display: inline-block;
}

.urgent-card:hover .text-only-cta {
  color: var(--primary-red);
}

.urgent-card:hover .text-only-cta .arrow {
  transform: translateX(5px);
}
/* ==========================================
   BOTTOM CTA SECTION (Dark Premium Theme)
   ========================================== */
.archive-cta-bar.dark-cta {
  background-color: #111111; /* Deep charcoal/black */
  color: #ffffff;
  padding: 60px 0;
  border-top: 4px solid var(--primary-red); /* Sharp branded accent line */
}

.archive-cta-bar.dark-cta .cta-text h2 { 
  margin: 0 0 10px 0; 
  font-size: 2rem; 
  font-weight: 800; 
  color: #ffffff;
}

.archive-cta-bar.dark-cta .cta-text p { 
  margin: 0; 
  font-size: 1.1rem; 
  color: #cccccc; 
  max-width: 800px;
}

.archive-cta-bar.dark-cta .cta-text strong {
  color: #ffffff;
}

.archive-cta-bar.dark-cta .cta-subtext {
  margin-top: 15px !important; 
  font-size: 0.95rem !important; 
  color: #888888 !important;
  line-height: 1.6;
}

.archive-cta-bar.dark-cta .cta-buttons { 
  display: flex; 
  gap: 15px; 
}

.archive-cta-bar.dark-cta .cta-btn { 
  font-size: 1.1rem; 
  padding: 14px 28px; 
}

/* Secondary button styling for the dark background */
.archive-cta-bar.dark-cta .outline-dark { 
  background: #222222; 
  border: 2px solid #333333; 
  color: #ffffff; 
}

.archive-cta-bar.dark-cta .outline-dark:hover { 
  background: #ffffff; 
  color: #111111; 
  border-color: #ffffff;
}

/* Mobile Tweaks */
@media (max-width: 768px) {
  .archive-cta-bar.dark-cta .cta-buttons { 
    flex-direction: column; 
    width: 100%; 
    margin-top: 25px; 
  }
  .archive-cta-bar.dark-cta .cta-btn { 
    width: 100%; 
    text-align: center; 
  }
}