/* ============================================
   VARIABLES
============================================ */
:root {
  --color-primary: #2fad39;
  --color-secondary: #0f4e9b;
  --color-dark: #212326;
  --color-gray: #434549;
  --color-light: #f2f3f5;
  --color-white: #ffffff;
  --font-main: 'Work Sans', sans-serif;
  --max-width: 1248px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-main);
  color: var(--color-dark);
  background: var(--color-white);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img {height: auto; display: block; }

/* ============================================
  
/* ============================================
   BLOG INDEX
============================================ */
.blog-hero {
  position: relative;
  color: var(--color-white);
  padding: 100px 60px 90px;
  min-height: 520px;

  background-image:
    linear-gradient(
      rgba(0, 0, 0, 0.45),
      rgba(0, 0, 0, 0.45)
    ),
    url("../images/blog/home-header-background.jpg");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
    align-content: end;
    flex-wrap: wrap;
}

.blog-hero__inner {
  max-width: var(--max-width);
  margin: 0  0 0 80px;
}

.breadcrumb {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb a { color: rgba(255,255,255,0.6); }
.breadcrumb a:hover { color: var(--color-white); }

.blog-hero h1 {
  font-size: 82px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 12px;
}

.blog-hero p {
  font-size: 18px;
  color: rgba(255,255,255,0.8);
}

.blog-grid__wrapper {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 60px 24px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.blog-card {
  background: var(--color-white);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.blog-card__img-link { display: block; aspect-ratio: 16/10; overflow: hidden; }

.blog-card__img-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.blog-card:hover .blog-card__img-link img { transform: scale(1.03); }

.blog-card__img-placeholder {
  width: 100%;
  height: 100%;
  background: var(--color-light);
}

.blog-card__body { padding: 20px 24px 24px; }

.blog-card__title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 12px;
}

.blog-card__title a:hover { color: var(--color-primary); }

.blog-card__excerpt {
  font-size: 14px;
  color: var(--color-gray);
  line-height: 1.6;
}

.blog-card__excerpt p { margin: 0; }

/* ============================================
   BLOG POST
============================================ */
.blog-post__hero {
  width: 100%;
  max-height: 480px;
  overflow: hidden;
}

.blog-post__hero img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}

.blog-post__wrapper {
  max-width: 860px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}

.blog-post__content h1 {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 32px;
  color: var(--color-secondary);
}

.blog-post__body { font-size: 17px; line-height: 1.75; color: #333; }

.blog-post__body h2 {
  font-size: 36px;
  font-weight: 700;
  margin: 40px 0 16px;
  color: var(--color-secondary);
  line-height: 1.2;
}

.blog-post__body h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 28px 0 12px;
  color: var(--color-dark);
}

.blog-post__body p { margin-bottom: 18px; }

.blog-post__body strong { font-weight: 700; }

.blog-post__body a {
  color: var(--color-secondary);
  text-decoration: underline;
}

.blog-post__body a:hover { color: var(--color-primary); }

.blog-post__body img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  margin: 24px 0;
}

/* ============================================
   RELATED POSTS
============================================ */
.blog-related {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--color-light);
}

.blog-related h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 28px;
  color: var(--color-secondary);
}

.blog-related__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.blog-card--small .blog-card__img-link { aspect-ratio: 4/3; }

.blog-card--small .blog-card__title { font-size: 15px; margin-bottom: 6px; }

.blog-card__date { font-size: 13px; color: var(--color-gray); }

/* ============================================
   FOOTER
============================================ */


/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 1024px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-related__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .submenu { position: static; box-shadow: none; padding-left: 16px; }
  .has-submenu:hover .submenu { display: none; }
  .has-submenu.open .submenu { display: block; }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-related__grid { grid-template-columns: 1fr; }
  .blog-hero h1 { font-size: 28px; }
  .blog-post__content h1 { font-size: 26px; }
  .footer__inner { grid-template-columns: 1fr; }

  .blog-hero {
    padding: 70px 24px 60px;
    min-height: 420px;
    background-position: center;
  }
}