/* =====================
   VARIABLES
===================== */
:root {
  --olive: #364025;
  --light-olive: #899064;
  --font: "Poppins", sans-serif;
}

/* =====================
   RESET & GLOBAL
===================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font);
  background: #fff;
  color: #222;
  overflow-x: hidden;
}

/* =====================
   BLOG PAGE WRAPPER
   (scoped only to .blog-page)
===================== */
.blog-page {
  --olive: #364025;
  --ink: #3f3f3f;
  --ink-80: rgba(63,63,63,0.80);
  --muted: #6B6B6B;
  --accent: #636749;
  --paper: #ffffff;
  --radius: 1px;
  --container: 1129px;

  font-family: Poppins, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #222;
  background: #fff;
}

.blog-page .wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 40px 0 40px;
}

/* =====================
   FEATURED ARTICLE
===================== */
.blog-page .featured {
  margin: 0 0 40px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

/* 1129 x 636 approx (= 16:9) */
.blog-page .featured-img {
  width: 100%;
  aspect-ratio: 1129 / 636;
  max-height: 636px;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
}

.blog-page .featured-meta .date {
  display: inline-block;
  color: var(--muted);
  font-weight: 300;
  font-size: 18px;
  line-height: 30px;
  margin-bottom: 6px;
}

.blog-page .featured-meta .title {
  color: var(--accent);
  font-weight: 500;
  font-size: 30px;
  line-height: 35px;
  margin: 4px 0 10px;
  max-width: 966px;
}

.blog-page .featured-meta .excerpt {
  color: var(--ink-80);
  font-weight: 400;
  font-size: 18px;
  line-height: 30px;
  text-align: justify;
  max-width: 1129px;
  margin: 0;
}

.blog-page .cta-row {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

/* Buttons = Read More / Share */
.blog-page .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 22px;
  border-radius: 20px;
  font-family: Poppins, sans-serif;
  font-size: 18px;
  font-weight: 300;
  text-decoration: none;
  color: var(--ink-80);
  border: 1px solid var(--ink-80);
  background: transparent;
  cursor: pointer;
}

.blog-page .btn:hover {
  background: #f3f3f3;
}

/* =====================
   ARTICLE CARDS (2 small images)
===================== */
.blog-page .cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-top: 40px;
}

/* each card is text + image (HTML nimo: img + .card-body) */
.blog-page .card {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 16px;
}

/* 540 x 441 (≈1.22:1) */
.blog-page .card-img {
  width: 100%;
  aspect-ratio: 540 / 441;
  max-height: 441px;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
}

.blog-page .card-body {
  padding-top: 4px;
}

.blog-page .card-body .date {
  display: inline-block;
  color: var(--muted);
  font-weight: 300;
  font-size: 18px;
  line-height: 30px;
  margin-bottom: 4px;
}

.blog-page .card-title {
  color: var(--accent);
  font-weight: 500;
  font-size: 30px;
  line-height: 35px;
  margin: 0 0 8px;
}

.blog-page .card-excerpt {
  color: var(--ink-80);
  font-weight: 400;
  font-size: 18px;
  line-height: 30px;
  text-align: justify;
  margin: 0;
}

.blog-page .card .cta-row {
  margin-top: 16px;
}

/* =========================
   Empty / No Articles Message
========================= */
.articles-empty {
  max-width: 1500px;                 /* same width as .wrap */
  width: 100%;
  margin: 0 auto;                    /* center container */
  min-height: calc(100vh - 280px);   /* adjust depending sa navbar + footer */
  display: flex;
  justify-content: center;           /* center horizontally */
  align-items: center;               /* center vertically */
  padding: 0 16px;
}

.msg-allert {
  background: #B8BEAD;
  color: #3F3F3F;
  text-align: center;
  padding: 12px 20px;
  border-radius: 5px;
  display: block;
  margin: 135px -550px 0 0 !important; /* DESKTOP POSITION – KEEP */
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  font-weight: 400;
  box-shadow: 0 0 8px rgba(0,0,0,0.08);
  max-width: 1500px;
}

/* =========================
   RESPONSIVE LAYOUT
========================= */
/* CENTER FOR SMALLER DEVICES (Laptop 1024px, Tablets, Phones) */
@media (max-width: 1200px) {
  .msg-allert {
    margin: 24px auto 0 !important;
    max-width: 620px;
    width: 100%;
  }
}
/* Center alert on all screens below desktop width */
@media (max-width: 1399px) {
  .msg-allert {
    margin: 24px auto 0 !important;
    max-width: 620px;
    width: 100%;
  }
}

/* 2-column cards sa desktop */
@media (min-width: 900px) {
  .blog-page .cards {
    grid-template-columns: 1fr 1fr;
    column-gap: 40px;
  }
}

/* smaller screens: side padding gamay */
@media (max-width: 768px) {
  .blog-page .wrap {
    padding: 28px 16px 40px;
  }

  .blog-page .featured-meta .title,
  .blog-page .card-title {
    font-size: 24px;
    line-height: 32px;
  }

  .blog-page .featured-meta .excerpt,
  .blog-page .card-excerpt {
    font-size: 16px;
    line-height: 26px;
  }

  .blog-page .btn {
    font-size: 16px;
    padding: 0 18px;
  }
}

/* ✅ NEW: center alert on tablets + phones ONLY */
@media (max-width: 1024px) {
  .msg-allert {
    margin: 24px auto 0 !important;  /* centered horizontally */
    max-width: 620px;
    width: 100%;
  }
}

/* =========================
   SAFE FADE ANIMATION
========================= */
@media (prefers-reduced-motion: no-preference) {
  html.js .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .8s ease, transform .8s ease;
    will-change: opacity, transform;
  }
  html.js .reveal.in {
    opacity: 1;
    transform: none;
  }
}

/* tiny performance tweak */
.blog-page .cards .card {
  contain: layout paint;
}
