:root {
  --primary-color: #0279ab;
  --primary-gradient: linear-gradient(to right, #01467a, #0f7fa1, #26d8d1);
  --dark-gradient: linear-gradient(135deg, #1e1e2f 0%, #2c2c3c 100%);
}

/* tambahkan nilai background-color pada elemen-elemen yang terkait */
.footer {
  background-image: var(--primary-gradient);
  background-color: var(--primary);
}

.sticky-top.navbar {
  background-image: var(--primary-gradient);
  background-color: var(--primary-color);
}

.navbar {
  background-image: var(--primary-gradient);
  background-color: transparent;
}

.service-item:hover {
  box-shadow: none;
  border-color: var(--primary-color);
}

.btn-primary {
  background-image: var(--primary-gradient);
  background-color: var(--primary-color);
  color: #ffffff;
}

.footer .btn-social:hover {
  background-color: #ffffff;
}

/*** Spinner ***/
#spinner {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease-out, visibility 0s linear 0.5s;
  z-index: 99999;
}

#spinner.show {
  transition: opacity 0.5s ease-out, visibility 0s linear 0s;
  visibility: visible;
  opacity: 1;
}

.back-to-top {
  position: fixed;
  display: none;
  right: 45px;
  bottom: 45px;
  z-index: 99;
  margin-bottom: 60px;
}

.my-6 {
  margin-top: 6rem;
  margin-bottom: 6rem;
}

.py-6 {
  padding-top: 6rem;
  padding-bottom: 6rem;
}

/*** Button ***/
.btn {
  font-weight: 500;
  transition: 0.5s;
}

.btn.btn-primary,
.btn.btn-outline-primary:hover {
  color: #ffffff;
}

.btn-square {
  width: 38px;
  height: 38px;
}

.btn-sm-square {
  width: 32px;
  height: 32px;
}

.btn-lg-square {
  width: 48px;
  height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: normal;
  border-radius: 50px;
}

/*** Navbar ***/
.navbar .navbar-nav .nav-link {
  position: relative;
  margin-left: 25px;
  padding: 35px 0;
  color: #ffffff;
  font-weight: 500;
  outline: none;
  transition: 0.5s;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
  color: #ffffff;
}

.sticky-top.navbar .navbar-nav .nav-link {
  padding: 20px 0;
  color: #ffffff;
}

.sticky-top.navbar .navbar-nav .nav-link:hover,
.sticky-top.navbar .navbar-nav .nav-link.active {
  color: #ffffff;
}

.navbar .navbar-brand h1 {
  color: #ffffff;
}

.navbar .navbar-brand img {
  max-height: 60px;
  transition: 0.5s;
}

.sticky-top.navbar .navbar-brand img {
  max-height: 45px;
}

@media (max-width: 991.98px) {
  .sticky-top.navbar {
    position: relative;
    background-image: var(--primary-gradient);
    background-color: var(--primary-color);
  }

  .navbar .navbar-collapse {
    margin-top: 15px;
    border-top: 1px solid #dddddd;
  }

  .navbar .navbar-nav .nav-link,
  .sticky-top.navbar .navbar-nav .nav-link {
    padding: 30px 0;
    margin-left: 0;
    color: #ffffff;
  }

  .navbar .navbar-nav .nav-link:hover,
  .navbar .navbar-nav .nav-link.active {
    background-image: transparent;
    background-color: transparent;
  }

  .navbar .navbar-brand h1 {
    color: #ffffff;
  }

  .navbar .navbar-brand img {
    max-height: 45px;
  }
}

@media (min-width: 992px) {
  .navbar {
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    border-bottom: 1px solid rgba(256, 256, 256, 0.2);
    z-index: 999;
  }

  .sticky-top.navbar {
    position: fixed;
    background-image: var(--primary-gradient);
    background-color: var(-- primary-color);
  }

  .navbar .navbar-nav .nav-link::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 2px;
    bottom: 10px;
    left: 0;
    background: #ffffff;
    opacity: 0;
    transition: 0.5s;
  }

  .sticky-top.navbar .navbar-nav .nav-link::before {
    background-image: var(--primary-gradient);
    background-color: var(--primary-color);
  }

  .navbar .navbar-nav .nav-link:hover::before,
  .navbar .navbar-nav .nav-link.active::before {
    bottom: -1px;
    left: 0;
    opacity: 1;
  }

  .navbar .navbar-nav .nav-link.nav-contact::before {
    display: none;
  }

  .sticky-top.navbar .navbar-brand h1 {
    background-image: var(--primary-gradient);
    background-color: var(--primary-color);
  }

  .navbar .nav-item .dropdown-menu {
    display: block;
    visibility: hidden;
    top: 100%;
    transform: rotateX(-75deg);
    transform-origin: 0% 0%;
    transition: 0.5s;
    opacity: 0;
    background-color: #dddddd;
  }

  .navbar .nav-item:hover .dropdown-menu {
    transform: rotateX(0deg);
    visibility: visible;
    transition: 0.5s;
    opacity: 1;
    background-color: var(--primary-color);
  }
}

.whatsapp-cta {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  align-items: center;
  /*background: #25d366;*/
  background: linear-gradient(to right, #1ca54e, #20c997);
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  padding: 10px 15px;
  max-width: 320px;
  width: 100%;
}

.cta-avatar {
  background-color: rgba(0, 0, 0, 0.247);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  object-fit: cover;
  margin-right: 10px;
}

.cta-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cta-question {
  font-size: 12px;
  font-weight: 500;
  color: #333;
  margin: 0;
}

.cta-button {
  margin-top: 5px;
  background-color: white;
  color: #25d366;
  padding: 8px 12px;
  border-radius: 20px;
  text-decoration: none;
  font-weight: bold;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-width: 120px;
  height: 35px;
  transition: background 0.3s ease;
}

.cta-button i {
  margin-right: 6px;
}

.cta-button:hover {
  background-color: #17a589;
}

.logo-background {
  background-color: white;
  border-radius: 50%;
  padding: 10px;
  display: inline-block;
  margin-top: 10px;
  margin-left: 10px;
}

.logo {
  display: block;
  max-width: 100%;
  height: auto;
}

/*** Hero Header ***/
.hero-header {
  margin-bottom: 6rem;
  padding: 12rem 0 9rem 0;
}

.page-header {
  margin-bottom: 6rem;
  padding: 12rem 0 6rem 0;
}

@media (max-width: 991.98px) {
  .hero-header {
    padding: 6rem 0 9rem 0;
  }

  .page-header {
    padding: 6rem 0;
  }
}

.page-header .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(256, 256, 256, 0.5);
}

/*** Features ***/
.text-left {
  text-align: left;
}

h2.mb-4 {
  margin-left: 0;
}

.feature-list {
  position: relative;
}

.feature-item {
  padding: 20px 0;
  position: relative;
}

.divider {
  height: 2px;
  background-color: #007bff;
  margin: 0;
  position: relative;
}

.feature-item:not(:last-child) .divider {
  margin-top: 10px;
}

/*** Service ***/
.service-section {
  background-color: #f7f9fc; /* Warna abu-abu muda */
}

.card {
  position: relative;
  width: 250px;
  height: 300px;
  background-image: var(--primary-gradient);
  background-color: transparent;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: background-color 0.5s ease;
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.5);
  transition: 0.5s;
  opacity: 0.1;
}

.card:hover img {
  filter: grayscale(0.2) brightness(0.4);
  transform: scale(1.05);
}

.card .title,
.card .description {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 20px;
  text-align: center;
  color: white;
  font-weight: bold;
  z-index: 2;
  transition: 0.5s;
}

.card .title {
  font-size: 20px;
  opacity: 1;
  visibility: visible;
}

.card:hover {
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
}

.card .description {
  font-size: 13px;
  padding: 22px;
  text-align: justify;
  text-align-last: left;
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  letter-spacing: 0.3px;

  width: 96%;
  max-width: 500px;
  margin: 0 auto;
  word-break: break-word;
  overflow-wrap: break-word;
  white-space: normal;
  hyphens: auto;
  min-inline-size: 0;
  widows: 2;
  box-sizing: border-box;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.card .description2 {
  opacity: 0;
  visibility: hidden;
  font-size: 13px;
  padding: 1px;
  text-align: center;
  text-align-last: center;
  width: 100%;
  height: -100%;
  display: block;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  box-sizing: border-box;
}

.card:hover .title {
  opacity: 0;
  visibility: hidden;
}

.card:hover .description {
  opacity: 1;
  visibility: visible;
}

.card:hover .description2 {
  opacity: 1;
  visibility: visible;
}

.card .p-5 {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card .p-5 h5 {
  margin-bottom: 10px;
}

.service-item {
  box-shadow: 0 0 45px rgba(0, 0, 0, 0.07);
  border: 1px solid transparent;
  transition: 0.5s;
}

/** about us **/

.expertise-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.expertise-box {
  padding: 10px 20px;
  border: 1px solid var(--primary-color, #007bff);
  border-radius: 10px;
  background-color: #fff;
  color: var(--primary-color, #007bff);
  font-weight: 600;
  font-size: 14px;
  transition: 0.3s;
}

.expertise-box:hover {
  background-color: var(--primary-color, #007bff);
  color: #fff;
  cursor: default;
}

.about-img {
  border-radius: 20px;
  border: 3px solid #dee2e6;
  box-shadow: 0 30px 12px rgba(0, 0, 0, 0.1);
}

.service-item:hover {
  box-shadow: none;
  border-color: black;
  background: black;
  transition: 2s;
}

.service-item .service-icon,
.service-item .service-btn {
  margin: -1px 0 0 -1px;
  width: 65px;
  height: 65px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: var(--primary-color);
  border-radius: 5px 0;
  transition: 0.5s;
}

.service-item .service-btn {
  margin: -1px -1px 0 0;
  border-radius: 0 5px;
  opacity: 0;
}

.service-item:hover .service-btn {
  opacity: 1;
}

/*** Testimonial ***/
.section-title {
  color: #ffffff;
  font-family: "Poppins", sans-serif;
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  position: relative;
  display: inline-block;
  text-align: center;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.section-title::after {
  content: "";
  position: absolute;
  width: 60%;
  height: 3px;
  background: linear-gradient(to right, #fbfcfc, #ecf4ff);
  bottom: -10px;
  left: 20%;
  border-radius: 5px;
}

/* Untuk section dengan latar terang */
.section-title2 {
  color: #345d9b;
  font-family: "Poppins", sans-serif;
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  position: relative;
  display: inline-block;
  text-align: center;
}

.section-title2::after {
  content: "";
  position: absolute;
  width: 60%;
  height: 3px;
  background: linear-gradient(to right, #345d9b, #4a8bd2);
  bottom: -10px;
  left: 20%;
  border-radius: 5px;
}

.testimonial-section {
  background-image: var(--primary-gradient);
  background-color: transparent;
}

.testimonial {
  max-width: 100%;
  text-align: center;
  margin-bottom: 30px;
  color: #ffff;
}

.testimonial .name {
  font-size: 18px;
  color: #ffffff;
}

.testimonial .img-wrap img {
  margin: 0 auto;
  width: 2px;
  border-radius: 50%;
}

.img-wrap img {
  max-width: 20%;
  height: auto;
  margin: 0 auto;
}

.testimonial-dots {
  display: flex;
  justify-content: center;
}

.dot {
  height: 10px;
  width: 10px;
  margin: 0 5px;
  background-color: #ffffff;
  border-radius: 50%;
  opacity: 0.5;
  transition: opacity 0.3s;
}

.dot.active {
  opacity: 1;
}

/* Pricing */
.pricing-cards {
  padding: 80px 0;
  font-family: "Inter", sans-serif;
}

.pricing-title {
  text-align: center;
  font-size: 1rem;
  letter-spacing: 2px;
  font-weight: 600;
  color: #888;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.h2-heading {
  text-align: center;
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 50px;
  color: #222;
}

.pricing-card {
  background-color: #ffffff;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease;
  padding: 35px 30px;
  margin-bottom: 30px;
  border-top: 5px solid transparent;
}

.pricing-card:hover {
  transform: translateY(-10px);
}

.pricing-card:nth-child(1) {
  border-top-color: #2196f3;
}
.pricing-card:nth-child(2) {
  border-top-color: #4caf50;
}
.pricing-card:nth-child(3) {
  border-top-color: #ff9800;
}

.pricing-card-title {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #222;
}

.pricing-price {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 10px;
}

.pricing-frequency {
  text-align: center;
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 20px;
}

.pricing-divider {
  height: 2px;
  background-color: #eee;
  margin: 20px 0;
}

.pricing-list {
  list-style: none;
  padding: 0;
  font-size: 0.95rem;
  line-height: 1.7;
}

.pricing-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  color: #444;
}

.pricing-list li.included::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #4caf50;
  font-weight: bold;
}

.pricing-list li.excluded::before {
  content: "✖";
  position: absolute;
  left: 0;
  color: #d32f2f;
  font-weight: bold;
}

.pricing-list li.section-heading {
  font-weight: bold;
  color: #333;
  margin-top: 25px;
  padding-left: 0;
  background-color: #f1f1f1;
  padding: 10px;
  border-radius: 6px;
}

.button-wrapper {
  margin-top: 25px;
  text-align: center;
}

.btn-solid-reg {
  background-color: #222;
  color: #fff;
  padding: 12px 30px;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s ease;
  display: inline-block;
}

.btn-solid-reg:hover {
  background-color: #000;
}

.pricing-card.highlighted {
  border-top-color: #673ab7 !important;
  box-shadow: 0 10px 40px rgba(103, 58, 183, 0.15);
  position: relative;
}

.pricing-card.highlighted::after {
  content: "Recommended";
  position: absolute;
  top: -5px;
  right: 16px;
  background-color: #673ab7;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 0 0 6px 6px;
  line-height: 1.4;
  z-index: 10;
  box-shadow: 0 2px 6px rgba(103, 58, 183, 0.2);
}

/* Pricing end */

.how-to-use-section {
  padding: 60px 20px;
  font-family: "Inter", sans-serif;
}

.steps-wrapper {
  padding: 3rem 1rem;
  background-color: #f7f9fc;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 2rem;
}

.step-card {
  background: #fff;
  border-left: 6px solid #2b66f6;
  padding: 1.8rem;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease;
}

.step-card:hover {
  transform: translateY(-4px);
}

.step-card .icon {
  font-size: 2rem;
  margin-bottom: 10px;
}

.step-card h3 {
  font-size: 1.2rem;
  color: #2b2b2b;
  margin-bottom: 10px;
  text-align: center;
}

.step-card p {
  font-size: 0.95rem;
  color: #555;
  text-align: justify;
}

.step-card h5 {
  font-size: 0.95rem;
  color: #555;
  text-align: center;
}

.steps-section {
  background-color: #f7f9fc;
  padding: 60px 20px;
  font-family: "Inter", sans-serif;
}

.pricingsection-title {
  text-align: center;
  font-size: 2.2rem;
  color: #2d2d2d;
  margin-bottom: 10px;
}

.section-subtitle {
  text-align: center;
  color: #6c6c6c;
  margin-bottom: 40px;
}

.final-step-info {
  background: #fff;
  border-left: 6px solid #2b66f6;
  padding: 1.4rem;
  margin: 2rem auto;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease;
  max-width: 780px;
}

.final-step-info h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: black;
  text-align: center;
}

.final-step-info p,
.final-step-info ul {
  color: #333;
  font-size: 1rem;
}

.final-step-info ul {
  padding-left: 1.2rem;
  margin-top: 0.5rem;
}

.final-step-info li::before {
  color: #2b66f6;
}

.final-step-info:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.contact-whatsapp {
  background-image: var(--primary-gradient);
  background-color: var(--primary);
  color: #fff;
  padding: 4rem 2rem;
  border-radius: 20px;
  margin: 4rem auto;
  max-width: 900px;
  font-family: "Inter", sans-serif;
}

.contact-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.contact-text {
  max-width: 500px;
}

.contact-text h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: whitesmoke;
}

.contact-text p {
  margin-bottom: 0.8rem;
  font-size: 1.1rem;
}

.contact-button {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  background: white;
  color: #2b66f6;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.contact-button:hover {
  background: #2b66f6;
  color: #fff;
}

.note {
  font-size: 0.95rem;
  margin-top: 1.2rem;
  font-style: italic;
  color: #e2e2e2;
}

.contact-image img {
  width: 200px;
  max-width: 100%;
  border-radius: 12px;
}

/*** Footer ***/
footer {
  background-color: #333;
  color: #fff;
  text-align: center;
  padding: 10px;
  position: relative; /* Changed from fixed to relative */
  width: 100%;
}

.footer-title {
  font-size: 1.5em;
}

footer ul {
  list-style-type: none;
  padding: 0;
  text-align: left;
}

footer ul li {
  margin: 10px 10px;
}

footer ul li a {
  color: #fff;
  text-decoration: none;
}

.socials {
  display: flex;
  justify-content: center;
  margin-block: 20px;
  width: 100%;
}

.socials a {
  color: #a5a3a3;
  font-size: 1.1em;
}

.socials a:hover {
  color: #fff;
}

.info {
  display: flex;
  justify-content: center;
  margin-block: 20px;
  gap: 20px;
}

.footer-list_header {
  font-size: 0.9em;
  color: #949393;
}

.btnfooter-link {
  color: #fff;
  text-decoration: none;
}

@media screen and (max-width: 600px) {
  .info {
    flex-direction: column;
  }

  footer {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

/* article */

.artcard {
  background: rgba(50, 50, 70, 0.8);
  border: 1px solid #555;
  border-radius: 20px;
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
  width: 600px;
  max-height: 500px;
  overflow-y: auto;
  padding: 20px;
  box-sizing: border-box;
  animation: fadeIn 0.8s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.user-info {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.name {
  font-size: 18px;
  font-weight: bold;
  color: #fff;
}

.profile {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ccc;
}

.article p {
  color: #e0e0e0;
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 15px;
}

.action-links {
  display: flex;
  justify-content: flex-start;
  gap: 12px;
  padding-left: 5px;
}

.action-links button {
  background-color: transparent;
  color: #cfcfcf;
  font-size: 18px;
  border: none;
  cursor: pointer;
  transition: color 0.3s, transform 0.2s;
}

.action-links button:hover {
  color: #ffd369;
  transform: scale(1.2);
}

.artcard::-webkit-scrollbar {
  width: 8px;
}
.artcard::-webkit-scrollbar-track {
  background: transparent;
}
.artcard::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

/* === Mode Switch === */
.mode-toggle {
  position: fixed;
  top: 15px;
  right: 20px;
  font-size: 14px;
  color: #fff;
  z-index: 1000;
}

/* === Loading Spinner === */
.loading-overlay {
  position: fixed;
  z-index: 999;
  background: #0d0d0f;
  opacity: 0.95;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spinner {
  border: 5px solid #333;
  border-top: 5px solid #ffd369;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* === Light Mode === */
body.light-mode {
  background-color: #f2f2f2;
}

body.light-mode .artcard {
  background-color: rgba(255, 255, 255, 0.85);
  color: #222;
}

body.light-mode .article p {
  color: #222;
}

body.light-mode .name {
  color: #222;
}

body.light-mode .action-links button {
  color: #333;
}
body.light-mode .action-links button:hover {
  color: #f39c12;
}

/* === Like Effect === */
.action-links .liked i {
  color: #ff4d4f !important;
  animation: pop 0.3s ease;
}
@keyframes pop {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.3);
  }
  100% {
    transform: scale(1);
  }
}

/* === Theme Switch Custom === */
.theme-switch-wrapper {
  position: fixed;
  top: 20px;
  right: 25px;
  z-index: 1000;
}

.theme-switch input {
  display: none;
}

.theme-switch .slider {
  width: 60px;
  height: 30px;
  background-color: #444;
  border-radius: 50px;
  position: relative;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.theme-switch .slider .icon {
  position: absolute;
  top: 4px;
  width: 22px;
  height: 22px;
  text-align: center;
  line-height: 22px;
  font-size: 14px;
  transition: all 0.3s ease;
}

.theme-switch .slider .moon {
  left: 6px;
  opacity: 1;
}

.theme-switch .slider .sun {
  right: 6px;
  opacity: 0;
}

.theme-switch input:checked + .slider {
  background-color: #ffd369;
}

.theme-switch input:checked + .slider .moon {
  opacity: 0;
  transform: translateX(-10px);
}

.theme-switch input:checked + .slider .sun {
  opacity: 1;
  transform: translateX(10px);
}

/* === Smooth Theme Transition === */
body {
  transition: background-color 0.5s ease, color 0.5s ease;
}

.light-mode {
  background-image: var(--primary-gradient);
  background-color: var(--primary-color);
  color: #111;
}

.dark-mode {
  background-image: var(--dark-gradient);
  background-color: var(--dark-color);
  color: #fff;
}

.light-mode .artcard {
  background-color: rgba(255, 255, 255, 0.9);
  color: #111;
}

.light-mode .article p,
.light-mode .name {
  color: #222;
}

.light-mode .action-links button {
  color: #444;
}

/* --- Article --- */
.article {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid #ccc;
  border-radius: 20px;
  padding: 16px;
  margin-bottom: 24px;
  transition: transform 0.2s ease;
}

.article:hover {
  transform: scale(1.01);
  background-color: rgba(255, 255, 255, 0.08);
}

/* --- Artcard --- */
.artcard {
  background-color: #6c6e70d8;
  border: 1px solid #ababab;
  backdrop-filter: blur(10px);
  border-radius: 30px;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  width: 90%;
  max-width: 800px;
  height: 90vh;
  margin: 40px auto;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* --- Article Image --- */
.article-image {
  margin-top: 20px;
  text-align: center;
}

.article-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

/* --- User Info --- */
.user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.user-info img.profile {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

/* --- Top Bar --- */
.top-bar {
  position: sticky;
  top: 0;
  background-color: #ffffff;
  border-bottom: 1px solid #e0e0e0;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  z-index: 1000;
}

body.dark-mode .top-bar,
body.light-mode .top-bar {
  background-color: #1e1e1e00;
  border-bottom: 1px solid #333;
}

/* --- Button Home --- */
.btn-home {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: #0056b3;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: background-color 0.3s ease, transform 0.2s ease;
  font-size: 14px;
}

.btn-home:hover {
  background-color: #003d80;
  transform: translateY(-1px);
}

.btn-home i {
  font-size: 16px;
}

/* --- Action Links --- */
.action-links button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.action-links button.liked svg {
  stroke: #0d6efd; /* Biru profesional saat liked */
}

.action-links button svg {
  width: 20px;
  height: 20px;
  stroke: #666;
  transition: stroke 0.3s;
}

/* --- Theme Switch --- */
.theme-switch-wrapper {
  position: fixed;
  bottom: 20px;
  right: 20px;
}

/* --- Loading Overlay --- */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.spinner {
  border: 4px solid #ccc;
  border-top: 4px solid #333;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

.action-links button.liked svg {
  stroke: #0d6efd;
}

body.dark-mode .action-links button svg {
  stroke: #fff;
}

body.dark-mode .action-links button.liked svg {
  stroke: #0d6efd;
}

body.light-mode .action-links button svg {
  stroke: #666;
}

body.light-mode .action-links button.liked svg {
  stroke: #0d6efd;
}

body.light-mode .btn-home {
  background-color: #0056b3;
  color: #fff;
}

body.light-mode .btn-home:hover {
  background-color: #003d80;
}

/* Dark Mode */
body.dark-mode .btn-home {
  background-color: #ffffff;
  color: #1a1a1a;
}

body.dark-mode .btn-home:hover {
  background-color: #e4e4e4;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
