:root {
  --text-main: #e5ece2;
  --text-soft: #c6d1c2;
  --glass-bg: rgba(14, 28, 13, 0.8);
  --glass-bg-soft: rgba(16, 34, 15, 0.7);
  --glass-border: rgba(172, 208, 160, 0.42);
  --panel-shadow: 0 14px 30px rgba(0, 0, 0, 0.52);
  --nav-glow: rgba(162, 223, 132, 0.45);
  --accent: #8bd966;
}

body {
  font-family: "Noto Sans", sans-serif !important;
  color: var(--text-main);
  min-height: 100vh;
  margin: 0;
  position: relative;
  overflow-x: hidden;
  background: #0d2c0a;
  
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(rgba(24, 63, 15, 0.2), rgba(7, 20, 6, 0.45)),
    url("/bg.jpg") center/cover no-repeat;
  opacity: 1;
  pointer-events: none;
  z-index: -1;
}

/* ── Navbar ── */

.navbar {
  background: transparent !important;
  padding-top: 0.6rem;
  padding-bottom: 0.4rem;
}

.topbar-shell {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  border-radius: 14px;
  padding: 0.5rem 0.85rem;
  background:
    radial-gradient(circle at 7% 18%, rgba(157, 210, 125, 0.24), transparent 22%),
    linear-gradient(to bottom, rgba(144, 188, 120, 0.4), rgba(38, 58, 29, 0.78) 48%, rgba(9, 14, 7, 0.94));
  border: 1px solid rgba(194, 232, 171, 0.28);
  box-shadow: 0 2px 0 rgba(255, 255, 255, 0.16) inset, 0 10px 20px rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

.navbar-brand {
  color: #dce8d8 !important;
  font-weight: 600;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.8);
  letter-spacing: 0.35px;
  text-transform: lowercase;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-right: 1rem;
  text-decoration: none;
}

.brand-orb {
  width: 32px;
  height: 32px;
  filter: drop-shadow(0 0 10px rgba(142, 223, 109, 0.55));
  flex-shrink: 0;
}

.brand-copy {
  display: grid;
  line-height: 1.02;
}

.brand-title {
  font-size: 1.03rem;
}

.brand-subtitle {
  font-size: 0.66rem;
  letter-spacing: 0.75px;
  text-transform: uppercase;
  color: #bdd8cb;
  opacity: 0.9;
}

.navbar-nav {
  gap: 0.35rem;
  align-items: center;
  margin-left: auto;
}

.navbar-collapse {
  flex-grow: 1;
  align-items: center;
  justify-content: flex-end;
}

.navbar-toggler {
  border-color: rgba(180, 234, 147, 0.45);
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(105, 166, 79, 0.35);
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.18rem rgba(148, 220, 115, 0.28);
}

.nav-link {
  color: #d6e3d2 !important;
  font-weight: 500;
  letter-spacing: 0.2px;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.8);
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.3rem 0.7rem !important;
  transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent) !important;
  text-shadow: 0 0 10px var(--nav-glow);
  border-color: rgba(166, 225, 135, 0.35);
  background: linear-gradient(to bottom, rgba(144, 193, 113, 0.2), rgba(39, 58, 29, 0.2));
}

/* ── Layout ── */

.main-container {
  max-width: 980px;
  margin: 1.6rem auto 2.4rem;
  padding: 0 1rem;
}

.nav-wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 1rem;
  width: 100%;
}

/* ── Welcome card ── */

.welcome-card {
  background:
    radial-gradient(circle at 22% 16%, rgba(132, 183, 106, 0.14), transparent 44%),
    linear-gradient(to bottom, rgba(76, 110, 64, 0.36), var(--glass-bg));
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 2rem 2.1rem 1.6rem;
  box-shadow: var(--panel-shadow);
  text-align: left;
  margin-bottom: 1.6rem;
}

.welcome-card h1 {
  font-size: clamp(2rem, 3.7vw, 3rem);
  font-weight: 300;
  color: #cad4c8;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.28);
  margin-bottom: 0.7rem;
}

.welcome-card p {
  font-size: 1.03rem;
  line-height: 1.35;
  color: var(--text-soft);
  max-width: 92ch;
}

/* ── Buttons ── */

.aero-btn {
  background:
    radial-gradient(circle at 18% 18%, rgba(172, 234, 140, 0.72), rgba(112, 172, 77, 0.25) 50%),
    linear-gradient(to bottom, #3e6828, #20351a 56%, #10200f);
  border: 1px solid rgba(181, 229, 154, 0.4);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 400;
  box-shadow: 0 2px 10px rgba(12, 21, 8, 0.6), 0 1px 0 rgba(255, 255, 255, 0.18) inset;
  transition: all 0.3s ease;
  margin: 0.55rem 0 0;
}

.aero-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(22, 44, 16, 0.65), 0 1px 0 rgba(255, 255, 255, 0.2) inset;
}

.mini-btn {
  background: linear-gradient(to bottom, rgba(147, 203, 112, 0.4), rgba(44, 72, 31, 0.45));
  border: 1px solid rgba(184, 234, 155, 0.45);
  border-radius: 999px;
  color: #eef7ea;
  font-size: 0.8rem;
  padding: 0.28rem 0.72rem;
  text-decoration: none;
  display: inline-block;
  margin-top: auto;
  align-self: flex-start;
  box-shadow: 0 2px 8px rgba(12, 21, 8, 0.42), 0 1px 0 rgba(255, 255, 255, 0.15) inset;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.mini-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 14px rgba(11, 22, 9, 0.55), 0 1px 0 rgba(255, 255, 255, 0.2) inset;
  background: linear-gradient(to bottom, rgba(161, 221, 120, 0.5), rgba(52, 83, 37, 0.52));
}

/* ── Blog grid & cards ── */

h1, h2 {
    filter: drop-shadow(0px -2px 1px rgba(0, 0, 0, 0.25));
    background: linear-gradient(180deg, #b5bbb5 0%, #D3D4D3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.35rem;
  margin: 1.6rem 0 1.4rem;
}

.blog-card {
  background: linear-gradient(to bottom, rgba(84, 120, 66, 0.3), var(--glass-bg-soft));
  backdrop-filter: blur(7px);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--panel-shadow);
  padding: 0.8rem;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: none;
  box-shadow: var(--panel-shadow);
}

.blog-card img {
  width: 100%;
  height: 255px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(228, 244, 218, 0.35);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset;
}

.blog-card.post-card > img {
  height: auto;
  object-fit: contain;
}

.blog-content {
  padding: 0.8rem 0.15rem 0.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-title {
  color: #d4ded3;
  font-size: 1.06rem;
  margin: 0;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.8);
  font-weight: bold;
}

.blog-meta {
  color: #b8c6b5;
  font-size: 0.83rem;
  margin: 0.4rem 0 0.45rem;
  text-transform: uppercase;
  letter-spacing: 0.35px;
}

.blog-excerpt {
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.32;
  margin-bottom: 0.7rem;
}

/* ── Show more / load more (page 1 vs page 2 variants) ── */

.show-more-card {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 100%;
  padding: 1.1rem;
  background:
    radial-gradient(circle at 20% 16%, rgba(164, 210, 140, 0.2), transparent 38%),
    linear-gradient(to bottom, rgba(82, 117, 62, 0.36), rgba(14, 29, 13, 0.86));
}

.show-more-title {
  font-size: 1.2rem;
  margin-bottom: 0.45rem;
  color: #dce8d8;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.7);
}

.show-more-text {
  color: var(--text-soft);
  font-size: 0.95rem;
  margin-bottom: 0.7rem;
}

.posts-subtitle {
  color: var(--text-soft);
  margin: 0 0 1rem;
}

.load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 0.45rem;
}

.load-more-btn {
  font-size: 0.92rem;
  padding: 0.42rem 1rem;
}

.load-more-btn[hidden] {
  display: none !important;
}

.posts-count {
  text-align: center;
  color: var(--text-soft);
  font-size: 0.9rem;
  margin-top: 0.55rem;
}

/* ── Related / info section ── */

.related-section {
  background:
    radial-gradient(circle at 66% 20%, rgba(122, 170, 98, 0.12), transparent 44%),
    linear-gradient(to bottom, rgba(76, 113, 61, 0.28), rgba(11, 25, 11, 0.82));
  backdrop-filter: blur(8px);
  border-radius: 14px;
  padding: 1.8rem;
  margin-top: 1.4rem;
  border: 1px solid var(--glass-border);
  box-shadow: var(--panel-shadow);
}

/* ── Typography ── */

h2,
h3 {
  color: #c2cdc0;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
  font-weight: 300;
  margin-bottom: 0.55rem;
}

.section-text {
  color: var(--text-soft);
  line-height: 1.38;
  margin-bottom: 0;
}

/* ── Responsive ── */

@media (max-width: 991px) {
  .topbar-shell {
    flex-wrap: wrap;
    border-radius: 10px;
    padding: 0.45rem 0.55rem;
  }

  .navbar-brand {
    font-size: 1rem;
  }

  .brand-orb {
    width: 28px;
    height: 28px;
  }

  .brand-subtitle {
    font-size: 0.62rem;
    letter-spacing: 0.62px;
  }

  .navbar-nav {
    margin-top: 0.45rem;
    align-items: flex-start;
    margin-left: 0;
  }

  .navbar-collapse {
    width: 100%;
    justify-content: flex-start;
  }

  .nav-link {
    width: 100%;
  }

  .main-container {
    margin-top: 1rem;
  }

  .welcome-card {
    padding: 1.25rem;
  }

  .blog-card img {
    height: 220px;
  }
}

@media (max-width: 560px) {
  .brand-subtitle {
    display: none;
  }
}
