@import url('/assets/fonts/exo2.css');

:root {
  --blog-bg: #f7f9f7;
  --blog-surface: #ffffff;
  --blog-text: #1f2937;
  --blog-muted: #6b7280;
  --blog-border: #e5e7eb;
  --blog-primary: #97a87a;
  --blog-primary-600: #7d9063;
  --blog-accent: #00c2a8;
  --blog-shadow-sm: 0 10px 24px rgba(15, 23, 42, 0.08);
  --blog-shadow-md: 0 18px 42px rgba(15, 23, 42, 0.13);
}

body {
  margin: 0;
  background: var(--blog-bg);
  background-image:
    radial-gradient(circle at 8% 0%, rgba(151, 168, 122, 0.2), transparent 36%),
    radial-gradient(circle at 96% 10%, rgba(0, 194, 168, 0.12), transparent 32%),
    linear-gradient(180deg, #fafbf7 0%, #f4f8f6 100%);
  color: var(--blog-text);
}

.site-shell-header,
.site-shell-footer {
  background: #ffffff;
  box-shadow: var(--blog-shadow-sm);
}

.site-shell-header {
  position: sticky;
  top: 0;
  z-index: 20;
}

.site-shell-header .navbar {
  padding: 0.9rem 0;
}

.brand-logo {
  display: block;
  width: auto;
  height: 32px;
}

.brand-text {
  font-family: 'Exo 2', sans-serif;
  color: #243016;
  font-weight: 700;
}

.lang-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.34rem 0.64rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  border: 1px solid rgba(151, 168, 122, 0.35);
  color: #2f3b23;
  background: #f9fcf7;
}

.lang-pill:hover {
  transform: translateY(-1px);
  border-color: var(--blog-primary);
  box-shadow: 0 4px 10px rgba(17, 24, 39, 0.12);
}

.blog-hero {
  text-align: center;
  padding: 32px 0 30px;
}

.blog-hero h1 {
  font-family: 'Exo 2', sans-serif;
  font-size: clamp(1.75rem, 4.2vw, 2.55rem);
  line-height: 1.1;
  color: #1a2610;
  margin-bottom: 18px;
}

.blog-hero p {
  color: var(--blog-muted);
  font-size: 1rem;
  line-height: 1.55;
  max-width: 760px;
  margin: 0 auto;
}

.btn-entry {
  display: inline-block;
  color: #fff;
  border: 0;
  border-radius: 999px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--blog-primary-600), var(--blog-accent));
  padding: 0.65rem 1.1rem;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.18);
}

.btn-entry:hover {
  color: #fff;
  transform: translateY(-1px);
}

.btn-entry-alt {
  display: inline-block;
  color: #1d2a12;
  border: 1px solid rgba(151, 168, 122, 0.45);
  border-radius: 999px;
  font-weight: 700;
  background: #f6faef;
  padding: 0.6rem 1rem;
}

.btn-entry-alt:hover {
  color: #1d2a12;
  background: #eff7e3;
  transform: translateY(-1px);
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
}

.blog-container {
  max-width: 980px;
  margin: 0 auto 70px;
}

.blog-section {
  max-width: 900px;
  background: var(--blog-surface);
  border: 1px solid rgba(151, 168, 122, 0.25);
  border-radius: 18px;
  box-shadow: var(--blog-shadow-sm);
  padding: 24px;
  margin: 0 auto;
}

.blog-posts-grid {
  max-width: 850px;
  margin: 0 auto;
}

.section-head {
  margin-bottom: 20px;
}

.section-head h2 {
  margin-bottom: 8px;
  font-size: 1.35rem;
  color: #1d2a12;
}

.section-head p {
  margin: 0;
  color: #64748b;
  font-size: 0.96rem;
}

.blog-card {
  max-width: 410px;
  border: 1px solid rgba(151, 168, 122, 0.25);
  border-radius: 14px;
  padding: 0;
  box-shadow: var(--blog-shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  margin: 0 auto;
  width: 100%;
  overflow: hidden;
}

.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--blog-shadow-md);
  border-color: rgba(151, 168, 122, 0.5);
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.card-cover {
  display: block;
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.article-cover-image {
  display: block;
  float: left;
  max-width: 360px;
  width: 45%;
  height: auto;
  border-radius: 12px;
  margin: 0 20px 12px 0;
}

.card-date {
  font-size: 0.86rem;
  color: #64748b;
  letter-spacing: 0.2px;
}

.card-badge {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 4px 10px;
}

.badge-video {
  color: #0f766e;
  background: rgba(0, 194, 168, 0.14);
}

.badge-article {
  color: #334155;
  background: rgba(151, 168, 122, 0.16);
}

.card-title {
  margin: 0 0 12px;
  font-size: 1.15rem;
  line-height: 1.3;
}

.card-title a,
.blog-list a {
  color: #1e293b;
  text-decoration: none;
  font-weight: 700;
}

.card-title a:hover,
.card-link:hover,
.blog-list a:hover {
  color: #334f18;
}

.card-link {
  display: inline-block;
  font-size: 0.86rem;
  color: #334155;
  text-decoration: none;
  font-weight: 600;
}

.blog-container .blog-article {
  background: var(--blog-surface);
  border: 1px solid rgba(151, 168, 122, 0.24);
  border-radius: 18px;
  box-shadow: var(--blog-shadow-md);
  padding: 28px;
}

.meta-date {
  color: #64748b;
  font-size: 0.84rem;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.7px;
}

.blog-title {
  font-family: 'Exo 2', sans-serif;
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  line-height: 1.12;
  margin-bottom: 24px;
  color: #192312;
}

.article-content {
  font-size: 0.99rem;
  line-height: 1.72;
  color: #1f2937;
  overflow: auto;
}

.article-content p,
.article-content ul,
.article-content ol,
.article-content blockquote {
  margin-bottom: 1.2rem;
}

.article-content h2,
.article-content h3,
.article-content h4 {
  margin: 1.8rem 0 1rem;
  color: #1d2a12;
  line-height: 1.25;
}

.article-content a {
  color: #2e4a16;
  text-decoration: underline;
}

.article-content strong {
  color: #111827;
}

.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: var(--blog-shadow-md);
  margin: 12px auto 28px;
  border: 1px solid rgba(151, 168, 122, 0.3);
}

.video-container iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.blog-cta {
  margin-top: 42px;
  border-radius: 14px;
  border: 1px solid rgba(151, 168, 122, 0.38);
  background: linear-gradient(135deg, rgba(151, 168, 122, 0.16), rgba(0, 194, 168, 0.12));
  padding: 26px;
  text-align: center;
  box-shadow: var(--blog-shadow-sm);
}

.blog-cta h3 {
  margin: 0 0 10px;
  font-size: 1.22rem;
  color: #1d2a12;
}

.blog-cta p {
  font-size: 0.95rem;
  color: #374151;
  margin: 0 0 18px;
}

.blog-cta .btn-cta {
  display: inline-block;
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blog-primary-600), var(--blog-accent));
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-cta .btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 24px rgba(15, 23, 42, 0.24);
}

.site-shell-footer {
  margin-top: 24px;
}

.site-shell-footer .container {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.site-shell-footer p {
  margin-bottom: 0.35rem;
  color: #6b7280;
}

@media (max-width: 900px) {
  .blog-section {
    padding: 16px;
    max-width: 100%;
  }

  .blog-posts-grid {
    max-width: 100%;
  }

  .blog-card {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .blog-hero {
    padding: 40px 14px 24px;
  }

  .blog-container {
    padding: 0 10px;
    margin-bottom: 50px;
  }

  .blog-card,
  .blog-container .blog-article {
    padding: 16px;
    border-radius: 12px;
  }

  .blog-cta {
    margin-top: 28px;
    padding: 18px;
  }

  .article-content {
    font-size: 1rem;
    line-height: 1.7;
  }

  .article-cover-image {
    float: none;
    width: 100%;
    max-width: 100%;
    margin: 0 0 16px;
  }

  .card-cover {
    height: 140px;
  }
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 20;
  padding: 0;
}

.cookie-banner.is-hidden {
  display: none;
}

.cookie-banner__content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px;
  padding-right: 56px;
  border: 1px solid var(--blog-border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px) saturate(180%);
  box-shadow: var(--blog-shadow-md);
}

.cookie-banner__text {
  max-width: 640px;
}

.cookie-banner__text h2 {
  margin: 0 0 6px;
  font-size: 18px;
}

.cookie-banner__text p {
  margin: 0;
  color: var(--blog-muted);
}

.cookie-banner__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.cookie-banner__link {
  white-space: nowrap;
}

.cookie-banner__close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 1px solid var(--blog-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--blog-muted);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.blog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 40px;
}

.blog-pagination .page-numbers {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.blog-pagination .page-nav,
.blog-pagination .page-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--blog-border);
  border-radius: 12px;
  background: var(--blog-surface);
  color: var(--blog-text);
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.blog-pagination a.page-nav:hover,
.blog-pagination a.page-number:hover {
  border-color: var(--blog-primary);
  color: var(--blog-primary-600);
}

.blog-pagination .page-number.is-current {
  background: linear-gradient(135deg, var(--blog-primary-600), var(--blog-accent));
  border-color: transparent;
  color: #ffffff;
}

.blog-pagination .page-nav.is-disabled {
  opacity: 0.45;
  cursor: default;
  pointer-events: none;
}

@media (max-width: 575.98px) {
  .blog-pagination .page-nav {
    padding: 0 12px;
  }
}
