@font-face {
    font-family: Sans;
    src: url(../assets/DM_Sans/DMSans-VariableFont_opsz\,wght.ttf);
}

/* General Reset */
html {
    scrollbar-width: thin;
    scroll-behavior: smooth;
    /* change to auto to give js full controll over scrolling effects */
    scroll-behavior: smooth;
}
* {
    box-sizing: border-box;
    line-height: 1.5;
    margin: 0;
    padding: 0;
}

body {
    background: #FFF;
    width: 100%;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

.slider {
    width: 100%;
    height: 100%;
    height: 70vh;
    padding: 3rem 2rem;
}
.slide {
    width: 100%;
    height: 100%;
    position: relative;
    border-radius: 5px;
}
.slide > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center right;
    filter: brightness(70%);
}
.overlay {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 2rem;
}
.overlay h4 {
    width: fit-content;
    font-family: "Sans";
    font-size: 14px;
    font-weight: 500;
    color: #111;
    background: #d9d9d9;
    padding: 10px 30px;
    border-radius: 5px;
    text-align: center;
    margin-bottom: 1rem;
    user-select: none;
}
.overlay h2 {
    width: 80%;
    font-family: "Sans", sans-serif;
    font-size: 8vh;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: 1.2px;
    color: white;
    /* color: var(--color-primary); */
    text-transform: capitalize;
    margin-bottom: 3rem;
}
.overlay p {
    width: 50%;
    font-family: "inter", sans-serif;
    font-size: 14px;
    color: white;
    text-transform: capitalize;
}

/* Header */
.blog-hero {
  text-align: center;
  padding: 3rem 1rem;
  background: linear-gradient(to right, #e0f7e9, #d0e8ff);
}

.blog-hero h1 {
  font-size: 2.5rem;
  color: #111;
  font-family: Sans;
}

.blog-hero p {
  font-size: 1.2rem;
  margin-top: 0.5rem;
  color: #333;
  font-family: "Inter", sans-serif;
}

.blog-hero img {
  margin-top: 1.5rem;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Filter Bar */
.blog-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1rem;
  background-color: #ffffff;
  border-bottom: 1px solid #ddd;
}

.blog-filters button {
  background-color: #111;
  color: white;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  font-family: Sans;
  transition: background-color 0.3s ease;
}

.blog-filters button:hover {
  background-color: #27ae60;
}

/* Blog Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  /* grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); */
  gap: 2rem;
  padding: 2rem;
}

.blog-card {
  background-color: #ffffff;
  border-radius: 2px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-5px);
}

.blog-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.blog-card h2 {
  /* font-size: 1.3rem; */
  font-size: 20px;
  font-weight: 600;
  margin: 1rem;
  color: #111;
  font-family: Sans;
}

.blog-card h2 a {
  text-decoration: none;
  color: inherit;
}

.blog-card p {
  margin: 0 1rem 1rem;
  color: #333;
  font-family: "Inter", sans-serif;
}

/* CTA Section */
#cta {
  text-align: center;
  padding: 2rem;
  background-color: #eafaf1;
}

.cta-button {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.8rem 1.5rem;
  background-color: #2ecc71;
  color: white;
  font-family: Sans;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
}

