/* ---------------------------------------
   Color Palette (uses your new brand colors)
---------------------------------------- */
:root {
  --brand-blue:   #3a85c5;
  --brand-green:  #53a95b;
  --brand-purple: #9079ab;
  --brand-yellow: #edcb4d;
  --brand-brown:  #83531e;
  --brand-orange: #ce8141;

  --darker-blue:   #2f6ba0;
  --darker-green:  #448949;
  --darker-purple: #755f8a;
  --darker-orange: #a56734;
}

/* ---------------------------------------
   Hero Section
---------------------------------------- */
.hero-home {
  padding: 2rem 0;
  background: #f7f9fc;
  text-align: center;
}

.hero-title {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.hero-subtitle {
  max-width: 650px;
  margin: 0 auto 2.5rem;
  font-size: 1.1rem;
  color: #444;
}

/* ---------------------------------------
   2×2 Icon Grid
---------------------------------------- */
.hero-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.hero-card {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-card img {
  width: 70px;
  height: auto;
  margin-bottom: 1rem;
}

.hero-card h3 {
  margin-bottom: 0.5rem;
}

.hero-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Color accents */
.hero-card.qms { border-top: 6px solid var(--brand-blue); }
.hero-card.ems { border-top: 6px solid var(--brand-green); }
.hero-card.ohs { border-top: 6px solid var(--brand-orange); }
.hero-card.ims { border-top: 6px solid var(--brand-purple); }

/* ---------------------------------------
   Old Content Section
---------------------------------------- */
.old-content {
  background: #fafafa;
  text-align: center;
}

.old-content .card-grid .card {
  border-left: 6px solid var(--navy);
}

/* ---------------------------------------
   CTA Section
---------------------------------------- */
.cta-section {
  text-align: center;
}

.cta-section .card-grid .card {
  border-left: 6px solid var(--blue);
}

/* Circle inside hero cards */
.hero-card .circle {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 90px;
  height: 90px;

  border-radius: 50%;
  font-weight: 700;
  font-size: 1.1rem;
  color: white;
  text-decoration: none;

  margin: 0 auto 1rem;
}

/* Glow + scale on hover */
.hero-card:hover .circle {
  box-shadow: 0 0 12px rgba(0,0,0,0.15);
  transform: scale(1.06);
}

/* Remove underline */
.hero-card,
.hero-card:hover,
.hero-card .circle {
  text-decoration: none;
}

/* Circle colors */
.hero-card.qms .circle {
  background: var(--brand-blue);
}

.hero-card.ems .circle {
  background: var(--brand-green);
}

.hero-card.ohs .circle {
  background: var(--brand-orange);
}

.hero-card.ims .circle {
  background: var(--brand-purple);
}

.hero-card.qms:hover .circle {
  background: var(--darker-blue);
}

.hero-card.ems:hover .circle {
  background: var(--darker-green);
}

.hero-card.ohs:hover .circle {
  background: var(--darker-orange);
}

.hero-card.ims:hover .circle {
  background: var(--darker-purple);
}

/* Base circle icon */
.blog-icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 22px;
  height: 22px;

  border-radius: 50%;
  background: var(--brand-orange);
  color: white;

  font-size: 0.75rem;
  font-weight: 700;

  margin-right: 0.45rem;
  vertical-align: middle;

  transition: 
    background 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

/* Hover effect: darken + glow + scale */
.card :hover .blog-icon-circle {
  background: var(--darker-orange); /* your darker hover variant */
  box-shadow: 0 0 10px rgba(0,0,0,0.18);
  transform: scale(1.08);
}

/* ---------------------------------------
   Responsive
---------------------------------------- */
@media (max-width: 900px) {
  .hero-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .hero-grid-4 {
    grid-template-columns: 1fr;
  }
}
