:root {
  --green: #143d2a;
  --green-soft: #24573d;
  --cream: #fbf8f1;
  --cream-deep: #eee8db;
  --text-dark: #1d1d1b;
  --text-muted: #4f544e;
  --line: rgba(20, 61, 42, 0.16);
  --white: #ffffff;

  --serif:"Noto Serif KR", "Cormorant Garamond",  Georgia, serif; 
  --sans: "Inter", Arial, sans-serif;
}

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

body {
  background: var(--cream);
  color: var(--text-dark);
  font-family: var(--sans);
  line-height: 1.7;
  font-family: 'Noto Serif KR', serif;
}

.blog-page {
  position: relative;
  min-height: 100vh;
  padding: 70px 24px 90px;
  overflow: hidden;
  
  
}


/* =========================
   Article Top Bar
========================= */

.article-topbar {
  width: 100%;
  height: 94px;
  padding: 0 42px;
  background: var(--cream);
  border-bottom: 1px solid rgba(20, 61, 42, 0.12);
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.article-brand-logo {
  color: var(--green);
  text-decoration: none;
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.02em;
  position: relative;
  display: inline-flex;
  min-width: 270px;
}



.article-brand-logo .brand-hover {
  opacity: 0;
  transform: translateY(8px);
  position: absolute;
  left: 0;
  top: 50%;
  translate: 0 -50%;
  font-family: var(--sans);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  transition: 0.25s ease;
  white-space: nowrap;
}

.article-brand-logo .brand-default {
  opacity: 1;
  transition: 0.25s ease;
}

.article-brand-logo:hover .brand-default {
  opacity: 0;
  transform: translateY(-8px);
}

.article-brand-logo:hover .brand-hover {
  opacity: 1;
  transform: translateY(0);
}
/*         end of brand logo             */

/* Optional background image:
   Put leaf-shadow.png in blog/images/leaf-shadow.png
*/
.leaf-shadow {
  position: absolute;
  top: -10px;
  left: -10px;
  width: 720px;
  height: 720px;
  background-image: url("images/leaf-shadow.png");
  background-size: contain;
  background-repeat: no-repeat;
  /* opacity: 100; */
  pointer-events: none;
  z-index: 0;
}

.blog-hero,
.blog-tools,
.latest-notes,
.load-more-wrap,
.no-results {
  position: relative;
  z-index: 1;
}

.blog-hero {
  text-align: center;
  max-width: 980px;
  margin: 0 auto;
}

.blog-eyebrow {
  color: var(--green);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.blog-hero h1 {
  font-family: var(--serif);
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: 24px;
}

.title-decoration {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: var(--green);
  margin-bottom: 28px;
}

.title-decoration span {
  width: 82px;
  height: 1px;
  background: var(--green);
  opacity: 0.7;
}

.title-decoration i {
  font-size: 1rem;
  transform: rotate(-25deg);
}

.blog-subtitle {
  color: var(--text-muted);
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin-bottom: 50px;
}

/* Search */

.blog-search-form {
  max-width: 860px;
  min-height: 86px;
  margin: 0 auto 52px;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(20, 61, 42, 0.18);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(20, 61, 42, 0.05);
}

.search-left-icon {
  color: var(--text-dark);
  font-size: 1.7rem;
  margin-left: 34px;
  margin-right: 26px;
}

.blog-search-form input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  color: var(--text-dark);
  font-size: 1.18rem;
  font-family: var(--sans);
}

.blog-search-form input::placeholder {
  color: rgba(29, 29, 27, 0.55);
}

.search-divider {
  width: 1px;
  height: 42px;
  background: rgba(20, 61, 42, 0.16);
  margin-right: 34px;
}

/* Tools */

.blog-tools {
  max-width: 1060px;
  margin: 0 auto 42px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-dark);
  font-size: 1.05rem;
}

.sort-select {
  border: none;
  background: transparent;
  color: var(--text-dark);
  font-size: 1.05rem;
  font-family: var(--sans);
  cursor: pointer;
  outline: none;
}

/* Blog List */

.latest-notes {
  max-width: 1060px;
  margin: 0 auto;
}

.blog-item {
  display: grid;
  grid-template-columns: 90px 1fr 46px;
  gap: 34px;
  align-items: center;
  padding: 42px 0;
  border-bottom: 1px solid rgba(20, 61, 42, 0.14);
}

.blog-number {
  color: var(--green);
  font-family: var(--serif);
  font-size: 2.35rem;
  font-weight: 600;
  line-height: 1;
}

.blog-content {
  padding-left: 38px;
  border-left: 1px solid rgba(20, 61, 42, 0.14);
}

.blog-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 18px;
}

.blog-category {
  padding: 4px 20px;
  border-radius: 999px;
  background: #e8eddf;
  color: var(--green);
  font-weight: 500;
}

.blog-category.resources {
  background: #eee6d8;
}

.blog-category.life {
  background: #e4eceb;
}

.blog-title {
  color: var(--text-dark);
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3vw, 2.55rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin-bottom: 14px;
}

.blog-description {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.blog-link {
  color: var(--green);
  font-size: 2rem;
  text-decoration: none;
  transition: 0.25s ease;
}

.blog-link:hover {
  transform: translateX(6px);
  color:  #b86b3c;
  text-decoration: none;
}

/* blog title link */
.blog-title-link {
  color: var(--green);
  text-decoration: none;
  transition: color 0.25s ease;
}

.blog-title-link:hover {
  color:  #b86b3c;
  text-decoration: none;
}


/* No Results */

.no-results {
  display: none;
  max-width: 760px;
  margin: 50px auto 0;
  text-align: center;
}

.no-results.show {
  display: block;
}

.no-results h2 {
  font-family: var(--serif);
  font-size: 2.4rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.no-results p {
  color: var(--text-muted);
  margin-bottom: 22px;
}

.keyword-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.keyword-btn {
  border: 1px solid rgba(20, 61, 42, 0.18);
  background: rgba(255, 255, 255, 0.55);
  color: var(--green);
  border-radius: 999px;
  padding: 8px 18px;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 0.95rem;
  transition: 0.25s ease;
}

.keyword-btn:hover {
  background: var(--green);
  color: white;
}

/* Load More */

.load-more-wrap {
  text-align: center;
  margin-top: 48px;
}

.load-more-btn {
  border: none;
  background: transparent;
  color: var(--text-dark);
  font-size: 1.15rem;
  font-family: var(--sans);
  display: inline-flex;
  align-items: center;
  gap: 18px;
  cursor: pointer;
}

.load-more-btn i {
  color: var(--green);
}

.load-more-btn.hide {
  display: none;
}



/* =========================
   Footer
========================= */

.site-footer {
  background: var(--green);
  color: var(--white);
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.1fr;
  gap: 0;
  padding: 44px 70px;
}

.footer-column {
  padding: 0 72px;
  border-right: 1px solid rgba(255, 255, 255, 0.22);
}

.footer-column:first-child {
  padding-left: 0;
}

.footer-column:last-child {
  border-right: none;
}

.footer-brand h3 {
  font-family: var(--serif);
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 18px;
}

.footer-column h4 {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.footer-column p,
.footer-column a {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1rem;
  text-decoration: none;
  display: block;
  margin-bottom: 8px;
}

.footer-column a:hover {
  color: var(--white);
}

.social-icons {
  display: flex;
  gap: 22px;
  margin-top: 24px;
}

.social-icons a {
  width: 30px;
  height: 30px;
  color: var(--white);
  font-size: 1.45rem;
}


/* Responsive */

@media (max-width: 760px) {
  .blog-page {
    padding: 54px 20px 70px;
  }

  .leaf-shadow {
    width: 260px;
    height: 260px;
    top: -60px;
    left: -80px;
    opacity: 0.16;
  }

  .blog-hero h1 {
    font-size: clamp(2.8rem, 12vw, 3.8rem);
  }

  .title-decoration span {
    width: 54px;
  }

  .blog-search-form {
    min-height: 72px;
    border-radius: 10px;
    margin-bottom: 38px;
  }

  .search-left-icon {
    font-size: 1.25rem;
    margin-left: 22px;
    margin-right: 18px;
  }

  .blog-search-form input {
    font-size: 1rem;
  }

  .search-divider {
    height: 34px;
    margin-right: 22px;
  }

  .blog-tools {
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 22px;
  }

  .blog-item {
    grid-template-columns: 58px 1fr;
    gap: 18px;
    padding: 34px 0;
    position: relative;
  }

  .blog-number {
    font-size: 1.9rem;
  }

  .blog-content {
    padding-left: 22px;
  }

  .blog-link {
    position: absolute;
    right: 0;
    top: 34px;
    font-size: 1.6rem;
  }

  .blog-meta {
    padding-right: 36px;
  }

  .blog-title {
    padding-right: 14px;
  }
  

}


@media (max-width: 600px) {
  .article-topbar {
    height: 78px;
    padding: 0 24px;
  }

  .article-brand-logo {
    font-size: 2.25rem;
    min-width: 230px;
  }

  .article-brand-logo .brand-hover {
    font-size: 0.68rem;
    letter-spacing: 0.22em;
  }
}

/* =========================
   Footer responsive fix
========================= */

@media (max-width: 900px) {
  .site-footer {
    grid-template-columns: 1fr;
    padding: 34px 28px;
  }

  .footer-column {
    padding: 28px 0;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  }

  .footer-column:first-child {
    padding-left: 0;
  }

  .footer-column:last-child {
    border-bottom: none;
  }
}

@media (max-width: 600px) {
  .site-footer {
    width: 100%;
    padding: 34px 26px;
    overflow: hidden;
  }

  .footer-column {
    width: 100%;
  }

  .footer-brand h3 {
    font-size: 2.2rem;
  }

  .footer-column h4 {
    font-size: 0.78rem;
    letter-spacing: 0.28em;
  }

  .footer-column p,
  .footer-column a {
    font-size: 0.95rem;
  }
}