:root {
  ---primary: #285b47;
  ---extra: #e8ffd7;
  ---font: #000;
  ---background: #8cbfa1;
  ---color: #3d7a5d;
  ---navbar: #fff;
}

* {
  padding: 0;
  margin: 0;
  text-decoration: none;
  box-sizing: border-box;
  outline: none;
  border: none;
}

*,
::after,
::before {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(---extra);
  font-family: "Huninn", sans-serif;
  color: var(---font);
}
body.detail-open > *:not(#detail-artikel) {
  display: none !important;
}
body.detail-open #detail-artikel {
  display: block;
}

.navbar {
  background-color: var(---navbar);
  display: flex;
  padding: 0.2rem 1rem;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  z-index: 99999;
  top: 0;
  right: 0;
  left: 0;
  position: fixed;
  border-bottom: 1px solid rgba(0, 0, 0, 0.5);
  box-shadow: 25px 10px 20px -9px rgba(0, 0, 0, 0.75);
  -webkit-box-shadow: 25px 10px 20px -9px rgba(0, 0, 0, 0.75);
  -moz-box-shadow: 25px 10px 20px -9px rgba(0, 0, 0, 0.75);
}

.navbar img {
  width: 6rem;
  overflow: hidden;
}

.navbar .nav-row a {
  margin-left: 2rem;
  font: 700;
  font-size: 1rem;
  color: var(---font);
  border-radius: 1rem;
  padding: 0.6rem;
  transition: background-color 0.6s ease, color 0.6s ease;
}

.navbar .nav-row a {
  height: 1.2rem;
}

.navbar .nav-row a:hover {
  background-color: var(---extra);
  color: var(---color);
}

.hero {
  background-color: var(---navbar);
  position: relative;
  align-items: center;
  margin-top: 6rem;
  margin-bottom: 1rem;
  width: 100%;
  height: 100vh;
  display: flex;
  padding: 2rem;
  z-index: 1;
  justify-content: space-between;
  box-shadow: 25px 10px 20px -9px rgba(0, 0, 0, 0.75);
  -webkit-box-shadow: 25px 10px 20px -9px rgba(0, 0, 0, 0.75);
  -moz-box-shadow: 25px 10px 20px -9px rgba(0, 0, 0, 0.75);
}

.hero .row {
  width: 100%;
  text-align: center;
  margin-left: 5rem;
  color: var(---font);
}

.hero .row h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

.hero .row p {
  font-size: 1.2rem;
  font-weight: 300;
  margin-bottom: 2rem;
}

.hero .row a {
  font-size: 1.1rem;
  background-color: var(---extra);
  padding: 0.4rem;
  border-radius: 0.5rem;
  font-weight: 700;
  color: var(---font);
  transition: background-color 0.6s ease, color 0.6s ease;
}

.hero .row a:hover {
  background-color: var(---color);
  color: #fff;
}

.hero img {
  width: 60%;
  margin-left: 10rem;
}

.about {
  background-color: var(---navbar);
  margin: 1rem 3rem;
  padding: 10rem 2% 1.5rem;
  border-radius: 2rem;
  text-align: center;
  box-shadow: 25px 10px 20px -9px rgba(0, 0, 0, 0.75);
  -webkit-box-shadow: 25px 10px 20px -9px rgba(0, 0, 0, 0.75);
  -moz-box-shadow: 25px 10px 20px -9px rgba(0, 0, 0, 0.75);
}
.about h1 {
  font-size: 3rem;
  margin-bottom: 2rem;
  font-weight: 900;
}

.about h2 {
  justify-self: center;
  opacity: 0.7;
  font-size: 1.4rem;
  width: 50%;
  margin-bottom: 3rem;
  font-weight: 400;
}

.about-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.row-about {
  justify-content: space-between;
}

.row-about svg {
  width: 3rem;
  height: auto;
  margin: 2rem;
}

.row-about h3 {
  margin-bottom: 2rem;
}

.plus {
  text-align: center;
  margin-top: 7rem;
}

.plus h1 {
  font-size: 3rem;
  margin-bottom: 6rem;
}

.plus-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
}

.row-plus {
  justify-content: space-between;
  margin: 0 5rem;
}

.row-plus img {
  margin-bottom: 2rem;
}

.row-plus h2 {
  margin-bottom: 2rem;
  font-weight: 900;
}

.row-plus p {
  font-weight: 400;
}

.container {
  background-color: var(---navbar);
  margin: 1rem 3rem;
  padding: 10rem 2% 1.5rem;
  border-radius: 2rem;
  box-shadow: 25px 10px 20px -9px rgba(0, 0, 0, 0.75);
  -webkit-box-shadow: 25px 10px 20px -9px rgba(0, 0, 0, 0.75);
  -moz-box-shadow: 25px 10px 20px -9px rgba(0, 0, 0, 0.75);
}

.container h1 {
  text-align: center;
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.container p {
  font-size: 1.3rem;
  text-align: center;
  font-weight: 500;
}

.container-main {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  width: 100%;
  gap: 1.5rem;
  padding: 2rem;
  text-align: center;
  justify-items: center;
  max-width: 87.5rem;
  margin: 0 auto;
  border-radius: 2rem;
}

.main-artikel {
  background-color: var(---navbar);
  margin: 1rem 3rem;
  padding: 10rem 2% 1.5rem;
  border-radius: 1rem;
  box-shadow: 25px 10px 20px -9px rgba(0, 0, 0, 0.75);
  -webkit-box-shadow: 25px 10px 20px -9px rgba(0, 0, 0, 0.75);
  -moz-box-shadow: 25px 10px 20px -9px rgba(0, 0, 0, 0.75);
}

.main-artikel h1 {
  text-align: center;
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.main-artikel p {
  font-size: 1.3rem;
  text-align: center;
  font-weight: 500;
  margin-bottom: 2rem;
}

.body-artikel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  width: 100%;
  gap: 1.5rem;
  padding: 2rem;
  text-align: center;
  object-fit: cover;
  overflow: hidden;
  max-width: 87.5rem;
  margin: 0 auto;
  border-radius: 2rem;
}

.content-artikel {
  background-color: var(---navbar);
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  color: #000;
  transform: scale(1);
  transform-origin: center;
  transition: transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;
}

.content-artikel:hover {
  transform: scale(1.06);
}

.content-artikel h2 {
  font-size: 1rem;
  font-weight: 700;
  margin: 1rem;
}

.content-artikel p {
  font-size: 0.8rem;
  margin: 2rem;
  font-weight: 300;
}

.content-artikel h3 {
  color: #000;
  text-align: start;
  margin: 1rem;
  font-size: 1rem;
  text-decoration: underline;
}

#detail-artikel {
  background: var(---navbar);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  margin: 2rem auto;
  line-height: 1.8;
  font-size: 1.05rem;
  color: var(---font);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}

/* animasi masuk */
#detail-artikel.enter {
  animation: fadeInUp 0.5s ease forwards;
}

/* animasi keluar */
#detail-artikel.leave {
  animation: fadeOutDown 0.5s ease forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
}

@keyframes fadeOutDown {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
  }
}
#detail-artikel {
  display: none;
}
#detail-artikel h1 {
  font-size: 2rem;
  font-weight: 800;
  color: var(---primary);
  text-align: center;
  margin-bottom: 0.5rem;
}

#detail-artikel small {
  display: block;
  text-align: center;
  color: #555;
  margin-bottom: 1.5rem;
}

#detail-artikel img {
  display: block;
  margin: 1.5rem auto;
  border-radius: 12px;
  max-width: 100%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#detail-artikel article h2,
#detail-artikel article h3 {
  margin-top: 2rem;
  font-weight: 700;
  color: var(---color);
  padding-bottom: 0.3rem;
  border-bottom: 2px solid var(---extra);
}

#detail-artikel article p {
  margin: 1rem 0;
  text-align: justify;
}

#detail-artikel article ul,
#detail-artikel article ol {
  margin: 1rem 2rem;
  padding-left: 1rem;
}

#detail-artikel article blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  background: var(---extra);
  border-left: 4px solid var(---primary);
  font-style: italic;
  color: var(---font);
  border-radius: 0.5rem;
}

.detail-cta {
  margin: 2rem 0;
  padding: 1.2rem;
  border-radius: 0.8rem;
  background: var(---background);
  text-align: center;
  font-weight: bold;
  font-size: 1.1rem;
  color: var(---primary);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.08);
}

#detail-artikel > button {
  position: fixed;
  margin-left: -33rem;
  top: 20px;
  left: 20px;
  background: var(---primary); 
  color: var(---background);
  border: none;
  border-radius: 50%;
  width: 3rem;
  height: 3rem;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: 0.3s;
  z-index: 9999;
}
#detail-artikel > button:hover {
  background: var(---navbar);
}

.scroll-anim {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease-out;
}

.scroll-anim.show {
  opacity: 1;
  transform: translateY(0);
}

.call-center {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  cursor: pointer;
  z-index: 9999;
}

.call-center img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transform: scale(1);
  transform-origin: center;
  transition: transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;
}

.call-center img:hover {
  transform: scale(1.06);
}

.footer {
  background-color: var(---navbar);
  padding: 3rem 2rem 1.5rem;
  margin-top: 3rem;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20rem;
}

.footer-brand img {
  width: 100px;
  margin-bottom: 1rem;
}

.footer-brand p {
  color: #555;
  font-size: 1.2rem;
  line-height: 1.4;
}

.footer-links h2,
.footer-social h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-links ul,
.footer-social ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li,
.footer-social li {
  margin-bottom: 0.5rem;
}

.footer-links a,
.footer-social a {
  color: var(---font);
  text-decoration: none;
  font-size: 1.2rem;
}

.footer-links a:hover,
.footer-social a:hover {
  color: var(---color);
}

.footer-social ul li svg {
  margin-right: 0.5rem;
  vertical-align: middle;
}

.footer-social img {
  width: 1.5rem;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  text-align: center;
  font-size: 0.85rem;
  color: #777;
}

#pagination-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin: 2rem 0;
}

#pagination-controls button {
  background: var(---primary);
  color: #fff;
  border: none;
  border-radius: 2rem;
  padding: 0.6rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

#pagination-controls button:hover {
  background: var(---color);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

#pagination-controls button:disabled {
  background: #ccc;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

#preloader {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}
#preloader { transition: opacity 0.5s ease; }

.spinner {
  width: 60px; height: 60px;
  border: 6px solid #eee;
  border-top: 6px solid #4CAF50;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 10px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.seo-analyzer ul {
  list-style: none;
  padding: 0;
}
.seo-analyzer li {
  margin: 3px 0;
}
.seo-analyzer b {
  color: #e67e22;
}