/*
Theme Name: SmartMag Child
Theme URI: https://smartmag.theme-sphere.com/
Description: A child theme of SmartMag
Author: ThemeSphere
Author URI: https://theme-sphere.com
Template: smart-mag
Version: 1.1
*/

.glosarium-letter {
  color: #f97316;
  font-weight: 600;
  margin-top: 2em;
}
.glosarium-items {
  list-style: none;
  padding-left: 1rem;
}
.glosarium-items li a {
  color: #333;
  text-decoration: none;
}
.glosarium-items li a:hover {
  color: #f97316;
}

/* ====== GLOSARIUM MOM UUNG ====== */
.glossary-page {
  background-color: #fff;
  max-width: 900px;
  margin: 0 auto;
}

.glossary-page .page-header {
  text-align: center;
  margin-bottom: 2rem;
}

.glossary-page .page-title {
  font-size: 2rem;
  font-weight: 700;
  color: #1f3c2c; /* hijau tua Mom Uung */
}

.glossary-page .page-subtitle {
  font-size: 1rem;
  color: #666;
}

/* ===== Filter Huruf A-Z ===== */
.glossary-filter {
  text-align: center;
  margin: 1.5rem 0 2rem;
  flex-wrap: wrap;
}

.glossary-filter a {
  display: inline-block;
  margin: 3px 6px;
  padding: 4px 10px;
  font-weight: 600;
  color: #6b7280;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.glossary-filter a:hover,
.glossary-filter a.active {
  background-color: #f97316; /* oranye khas Mom Uung */
  color: #fff;
}

/* ===== Pencarian ===== */
#glossary-search {
  display: block;
  width: 100%;
  max-width: 450px;
  margin: 0 auto 30px;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}

#glossary-search:focus {
  border-color: #f97316;
}

/* ===== Huruf & Daftar ===== */
.glossary-letter {
  font-size: 1.4rem;
  font-weight: 700;
  margin-top: 1.8rem;
  color: #1f3c2c;
  border-bottom: 2px solid #e5e7eb;
  padding-bottom: 5px;
}

.glossary-items {
  list-style: none;
  padding-left: 0;
  margin: 12px 0 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 30px;
}

.glossary-items li a {
  text-decoration: none;
  color: #374151;
  font-weight: 500;
  transition: color 0.2s;
}

.glossary-items li a:hover {
  color: #f97316;
}

/* ===== Responsif ===== */
@media (max-width: 600px) {
  .glossary-page {
    padding: 0px 0px;
  }
  .glossary-filter a {
    margin: 2px 4px;
    padding: 4px 8px;
    font-size: 0.9rem;
  }
  #glossary-search {
    width: 90%;
  }
}

/* CLS helpers */
img, video { height: auto; }
html { scroll-behavior: auto; }
body { text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }

/* React-like reveal (opsional)
   Tambahkan class "js-delayed" di section Elementor yang berat
*/
.js-delayed { opacity: 0; transform: translateY(10px); }
.js-ready .js-delayed {
  opacity: 1;
  transform: none;
  transition: opacity .35s ease, transform .35s ease;
}
