html {
  scroll-behavior: smooth;
}

html, body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}


/* page wrapper between header & footer */
.page-wrap {
  flex: 1;
  display: block;
  padding-top: 88px; /* navbar height */
}








/* =========================================================
   8. PAGE CONTENT
========================================================= */

/* ===== Home Content ===== */

.page {
  max-width: 1100px;   /* same width everywhere */
  margin: 0 auto;
  padding: 0 16px;
}


.page-title {
  font-family: var(--font-heading);
  text-align: center;
}



/* =========================================================
   10. INDEX // HERO (restore old content section feel)
========================================================= */


.hero {
  height: auto;
  position: relative;
  display: flex;
  gap: 40px;
  align-items: center;
  padding: 9px;
  margin-top: 32px;

  background: var(--bg-soft);
  border-radius: 12px;
  overflow: hidden;
}



.hero::after {
  content: "";
  position: absolute;
  width: 100%;
  height: inherit;
  inset: 0;
  background-image: url("/img/site/11.svg");
  opacity: 0.15;
  pointer-events: none;
}



.hero-text {
  position: relative;
  z-index: 1;
  font-family: var(--font-text);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 49px;
}

.hero-text h3 {
  font-family: var(--font-heading);
  margin-bottom: 14px;
}

.hero-text p {
  margin-top: 10px;
  line-height: 1.7;
}


.hero-image {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.hero-image img {
  height: 340px;
  border-radius: 999px;
  border: 2px solid black;
}



/* =========================================================
   11. ARTICLES (restore old spacing + contrast)
========================================================= */


.articles {
  margin-top: 23px;
  padding: 18px;
  background: var(--bg-hard);
  position: relative;
  border-radius: 12px;
}

/* GLOBAL ARTICLE CARD — used everywhere */
.article {
  display: flex;
  gap: 20px;
  padding: 16px;
  margin: 25px;  /* Short The Card */
  margin-bottom: 18px;

  background: var(--bg-article);

  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
    
}

.article:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
}



.article:hover img {
  filter: brightness(1.05);
}



.article img {
  width: 220px;
  object-fit: cover;
  border-radius: 12px;
  flex-shrink: 0;
}

.article-content a {
  text-decoration: none;
  color: var(--text);
}

.article-content {
 
  margin-bottom: 6px;
}


.article h3 {
  margin: 0 0 6px;
  font-size: var(--text-base);
  font-weight: 600;
  line-height: 1.35;
}

.article span {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}



/* Articles Button Effect Independent */


.article .btn {
  margin-top: 6px;
  padding: 6px 14px;
  font-size: 0.8rem;

  border-radius: 10px;

  /*
  transition: border 0.2s ease;   // For border Transition  //inactive for now 
  */
  
  


}


/* Articles Button Hover Effect Independent */

.article .btn:hover {
  background: var(--btn-hover-bg);
  border-color: var(--btn-hover-bg);
}




/* old desktop border */

@media (min-width: 769px) {
  .content::after { 
    inset: 0;
  }
}




.articles-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.2rem;
}


/* =========================================================
   12. ===== YEAR FILTER =====
========================================================= */
/* ===== YEAR FILTER ===== */

.year-filter {
  display: flex;
  gap: 8px 0.5rem;
 
 margin: 12px 0 20px;
 margin-bottom: 18px;
}

.year-btn {
  padding: 6px 14px;
  font-size: 0.85rem;
  border-radius: 999px;

  background: var(--card);
  color: var(--text-muted);
  border: 1px solid var(--border);

  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.15s ease;
}

.year-btn:hover {
  background: var(--bg-yearbtn);
  transform: translateY(-1px);
  color: var(--text);
}

.year-btn.active {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 40%, transparent);
}




/* New Clear Filter container */
.clear-filter-box {
  margin-bottom: 12px;
  text-align: right;
}


/* =========================================================
   13. BUTTON VARIANTS
========================================================= */


/* ===== Button variants ===== */

/* === Unified Button === */
.btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;

  background: var(--btn-bg);
  color: var(--btn-text);
  border: 1px solid var(--btn-border);

  transition: background 0.2s ease,
              color 0.2s ease,
              border-color 0.2s ease,
              transform 0.15s ease;
}

.btn:hover {
  background: var(--btn-hover-bg);
  color: var(--btn-hover-text);
  border-color: var(--btn-hover-bg);
  transform: translateY(-2px);
}



.btn-primary {
  padding: 8px 14px;

}



.btn-secondary {
  padding: 8px 14px;
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--btn-border);
}



/* ===============================
   PAGINATION (clean left–right)
=============================== */
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;

  width: 100%;
  margin-top: 5px;
  margin-bottom: 0px;
}

.pagination .btn {
  min-width: 110px;
  text-align: center;
}


/* ===============================
   PAGINATION WRAPPER — PREMIUM
=============================== */
.pagination-wrapper {
  margin-top: 15px;
  padding: 16px 12px;

  border-radius: 18px;

  /* soft glass background */
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.04),
    rgba(255,255,255,0.02)
  );

  /* subtle border */
  border: 1px solid rgba(255,255,255,0.08);

  /* premium soft shadow */
  box-shadow:
    0 10px 30px rgba(0,0,0,0.25),
    inset 0 1px 0 rgba(255,255,255,0.05);

  transition: transform .25s ease, box-shadow .25s ease;

  backdrop-filter: blur(6px);
}


.pagination-wrapper:hover {
  transform: translateY(-2px);
  box-shadow:
    0 18px 40px rgba(0,0,0,0.35),
    inset 0 1px 0 rgba(255,255,255,0.06);
}


/* =========================================================
   14. FOOTER
========================================================= */

/* ===== FOOTER (fixed & visible in light/dark) ===== */

.site-footer .btn:hover {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}



.site-footer {
  margin-top: auto;
  padding: 0;                /* IMPORTANT */
  padding-top: 2rem;
  background: transparent;   /* IMPORTANT */
  border-top: none;          /* IMPORTANT */

  text-align: center;
  font-size: 0.9rem;
}


.site-footer .container {
  background: var(--bg-hard);
  border-top: 1px solid var(--border);
  border-radius: 12px 12px 0 0; /* aligns with articles */
  padding: 20px 16px;
  text-align: center;
  font-size: 0.9rem;
}

.site-footer p {
  margin: 10px 0 6px;
}

.site-footer a {
  color: var(--text-muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--text);
}

/* footer buttons */
.footer-nav {
  display: flex;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto 12px;
}



/* HOVER */



/* For future independent footer buttons */
/* Footer navigation buttons */
/*
footer .btn {
  background: var(--btn-bg);
  color: var(--btn-text);
  border: 1px solid var(--btn-border);
}
*/






 


/* =========================================================
   11. MINOR ELEMENTS
========================================================= */

mark {
  background: rgba(245, 197, 66, 0.9);
  color: #000;
  padding: 0 4px;
  border-radius: 4px;

  animation: highlightFade 0.25s ease-out;
}

@keyframes highlightFade {
  from {
    background-color: rgba(245, 197, 66, 0);
  }
  to {
    background-color: rgba(245, 197, 66, 0.9);
  }
}













/* ===============================
   Card fade animation
=============================== */

.article {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

.article.is-hidden {
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
}








/* ===============================
   BACK TO TOP BUTTON
=============================== */

#backToTop {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 999;

  width: 42px;
  height: 42px;
  border-radius: 50%;

  border: none;
  cursor: pointer;

  background: var(--bg-backToTop);
  backdrop-filter: blur(8px);

  color: #fff;
  font-size: 18px;
  font-weight: 600;

  display: flex;
  align-items: center;
  justify-content: center;

  opacity: 0;
  pointer-events: none;
  transform: translateY(10px) scale(0.95);

  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    background 0.25s ease;
}

/* Show button */
#backToTop.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

/* Hover effect */
#backToTop:hover {
  background: #42cef543;
  color: var(--accent);
  
}


