/* ======================= GLOBAL STYLES ======================= */
body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', Arial, sans-serif;
  background-color: #f8f9fb;
  color: #222;
  line-height: 1.7;
}

/* ===== HEADINGS ===== */
h1, h2, h3 {
  font-weight: 700;
  line-height: 1.3;
  margin-top: 1.5rem;
}

h1 { font-size: 2.2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.2rem; }

p {
  font-size: 1rem;
  margin-bottom: 1rem;
}

/* ======================= BLOG CARDS (HOMEPAGE) ======================= */
.blog-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  margin-bottom: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* ======================= BLOG CARD IMAGES ======================= */
.blog-card a {
  display: block;
}

.blog-card img {
  width: 100%;
  height: 130px;              /* controls image size */
  object-fit: cover;          /* crops nicely */
  border-radius: 10px;
  display: block;
  cursor: pointer;            /* hand cursor */
  transition: transform 0.25s ease;
}

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

}

/* ======================= BLOG POST ======================= */
.blog-post {
  max-width: 1100px;
  margin: 30px auto;
  padding: 20px;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.blog-post img {
  width: 100%;
  border-radius: 14px;
  margin-bottom: 20px;
  display: block;
  cursor: pointer;           /* makes cursor a hand */
  transition: transform 0.25s ease; /* hover zoom effect */
}

.blog-post img:hover {
  transform: scale(1.02);     /* subtle zoom on hover */
}

/* ======================= BUTTONS & LINKS ======================= */
.blog-card a,
.blog-post a.button {
  display: inline-block;
  margin-top: 12px;
  padding: 10px 18px;
  background-color: #0077ff;
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  border-radius: 6px;
  border: 2px solid #0077ff;
  cursor: pointer;
  transition: all 0.25s ease;
}

.blog-card a:hover,
.blog-post a.button:hover {
  background-color: #ffffff;
  color: #0077ff;
  transform: translateY(-2px);
}
/* === REMOVE FOCUS RING FROM READ MORE LINKS ONLY === */
.read-more:focus,
.read-more:focus-visible,
.read-more:active {
  outline: none;
  box-shadow: none;
}
/* === READ MORE BUTTON (FINAL) === */
.read-more {
  background-color: #0077ff;
  color: #ffffff;
  border: 2px solid #0077ff;
  padding: 10px 18px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.read-more:hover {
  background-color: #ffffff;
  color: #0077ff;
  transform: translateY(-2px);
}

.read-more:focus,
.read-more:active {
  outline: none;
  box-shadow: none;
}
/* === BLOG CARD CLICK FIX === */
.blog-card {
  position: relative;
}

.blog-card a {
  position: relative;
  z-index: 10;          /* puts image link on top */
  display: block;
}

.blog-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  cursor: pointer;
}

.read-more {
  position: relative;
  z-index: 5;
}
