.footer-red {
  background: linear-gradient(135deg, #8e1b13, #c0392b);
  color: #fff;
  padding: 40px 0 0;
  margin-top: 40px;
  margin-bottom: 30px;
  margin-left: 5px;
  margin-right: -10px;
}

.footer-red h4 {
  font-weight: 600;
  margin-bottom: 15px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 5px;
}

.footer-red p {
  font-size: 13px;
  line-height: 1.7;
  color: #f5f5f5;
}

/* SOCIAL */
.footer-social a {
  display: inline-block;
  width: 35px;
  height: 35px;
  line-height: 35px;
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 50%;
  margin-right: 8px;
  transition: 0.3s;
}

.footer-social a:hover {
  background: #fff;
  color: #c0392b;
}

/* COPYRIGHT */
.footer-bottom {
  background: #6e130d;
  margin-top: 25px;
  padding: 10px;
  font-size: 12px;
}

.footer-red .col-md-4 h4 {
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
}

.footer-red .col-md-4:last-child {
  border-right: none;
}

.footer-red a {
  color: #fff;
  transition: 0.3s;
}

.footer-red a:hover {
  color: #ffd166;
}

.footer-social a {
  width: 40px;
  height: 40px;
  line-height: 40px;
  font-size: 16px;
}

.floating-wa {
  position: fixed;
  bottom: 55px;
  right: 25px;
  z-index: 9999;
}

.floating-wa img {
  width: 240px;
  /* ukuran gambar */
  height: auto;

  transition: 0.3s;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.25));
}

.floating-wa img:hover {
  transform: scale(1.08);
}

/* ================= MODAL WA ================= */

.wa-modal {
  border-radius: 14px;
  overflow: hidden;
  border: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.wa-header {
  background: linear-gradient(135deg, #128c7e, #25d366);
  color: #fff;
  border: none;
  padding: 18px 20px;
}

.wa-header h4 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
}

.wa-header .close {
  color: #fff;
  opacity: 1;
  font-size: 28px;
}

.wa-avatar {
  width: 120px;
  margin-bottom: 15px;
  transition: 0.3s;
}

.wa-avatar:hover {
  transform: scale(1.05);
}

.wa-modal .modal-body {
  padding: 30px 25px;
}

.wa-modal h5 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #333;
}

.wa-modal p {
  color: #666;
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 25px;
}

.btn-wa {
  display: inline-block;
  background: #25d366;
  color: #fff !important;
  padding: 12px 24px;
  border-radius: 50px;
  text-decoration: none !important;
  font-weight: 700;
  font-size: 15px;
  transition: 0.3s;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.btn-wa:hover {
  background: #128c7e;
  transform: translateY(-2px);
}

.btn-wa i {
  margin-right: 8px;
}

/* ================= MOBILE RESPONSIVE ================= */

@media (max-width: 768px) {
  .floating-wa {
    right: 10px;
    bottom: 70px;
  }

  .floating-wa img {
    width: 160px;
  }
}

/* EXTRA SMALL */

@media (max-width: 480px) {
  .floating-wa {
    right: 5px;
    bottom: 75px;
  }

  .floating-wa img {
    width: 135px;
  }
}

/* ================= FLOATING SOCIAL ================= */

.social-floating {
  position: fixed;
  top: 35%;
  left: 0;
  z-index: 999;
}

.social-btn {
  position: relative;

  display: flex;
  align-items: center;

  width: 52px;
  height: 52px;

  margin-bottom: 8px;

  overflow: hidden;

  color: #fff !important;
  text-decoration: none !important;

  border-radius: 0 10px 10px 0;

  transition: 0.35s ease;

  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.social-btn i {
  width: 52px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding-left: 20px;

  font-size: 20px;
}

.social-btn span {
  white-space: nowrap;
  opacity: 0;
  font-size: 14px;
  font-weight: 600;
  transition: 0.3s;
}

/* HOVER */

.social-btn:hover {
  width: 165px;
}

.social-btn:hover span {
  opacity: 1;
}

/* WARNA */

.facebook {
  background: #1877f2;
}

.twitter {
  background: #1da1f2;
}

.youtube {
  background: #ff0000;
}

.instagram {
  background: linear-gradient(
    45deg,
    #f09433,
    #e6683c,
    #dc2743,
    #cc2366,
    #bc1888
  );
}

/* MOBILE */

@media (max-width: 768px) {
  .social-floating {
    position: fixed;
    top: 35%;
    left: 10px;
    z-index: 999;
  }

  .social-btn {
    width: 45px;
    height: 45px;
  }

  .social-btn i {
    width: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding-left: 15px;

    font-size: 20px;
  }

  .social-btn:hover {
    width: 140px;
  }
}

.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 99999;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 20px;

  animation: fadeIn 0.3s;
}

.popup-box {
  width: 90%;
  max-width: 520px;
  max-height: 90vh;

  background: #fff;
  border-radius: 16px;
  overflow: hidden;

  position: relative;

  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);

  animation: popupUp 0.35s;
}

.popup-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 75vh;
  object-fit: contain;
}

.popup-content {
  padding: 30px;
  text-align: center;
}

.popup-content h2 {
  font-size: 32px;
  font-weight: 800;
  color: #222;
  margin-bottom: 15px;
}

.popup-content p {
  font-size: 15px;
  line-height: 1.8;
  color: #666;
  margin-bottom: 25px;
}

.popup-btn {
  display: inline-block;
  padding: 12px 24px;

  background: linear-gradient(to right, #c0392b, #e74c3c);

  color: #fff !important;
  text-decoration: none !important;

  border-radius: 50px;

  font-weight: 700;

  transition: 0.3s;
}

.popup-btn:hover {
  transform: translateY(-2px);
}

@media (max-width: 1366px) {
  .popup-box {
    max-width: 430px;
  }
}

@media (max-width: 992px) {
  .popup-box {
    max-width: 380px;
  }
}

@media (max-width: 768px) {
  .popup-box {
    width: 95%;
    max-width: 340px;
  }

  .popup-image {
    max-height: 65vh;
  }
}

@keyframes popupUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .popup-content {
    padding: 20px;
  }

  .popup-content h2 {
    font-size: 24px;
  }
}

.popup-footer {
  padding: 16px;
  text-align: center;
  background: #fafafa;
  border-top: 1px solid #eee;
}

.btn-hide-popup {
  border: none;
  background: #c0392b;
  color: #fff;
  padding: 10px 18px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
}

.btn-hide-popup:hover {
  background: #962d22;
}

#speakButton {
  position: absolute;

  display: none;

  width: 50px;
  height: 50px;

  background: #0d6efd;
  color: #fff;

  border-radius: 50%;

  align-items: center;
  justify-content: center;

  font-size: 22px;

  cursor: pointer;

  z-index: 999999;

  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.25);

  transition: 0.2s;
}

#speakButton:hover {
  transform: scale(1.08);
}

/* ANIMASI SAAT MEMBACA */

#speakButton.reading {
  animation: pulseSpeak 1s infinite;

  background: #dc3545;
}

@keyframes pulseSpeak {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.6);
  }

  70% {
    transform: scale(1.1);
    box-shadow: 0 0 0 15px rgba(220, 53, 69, 0);
  }

  100% {
    transform: scale(1);
  }
}

/* =========================
   WRAPPER
========================= */

.accessibility-wrapper {
  position: fixed;

  top: 20px;
  right: 20px;

  z-index: 999999;
}

/* =========================
   BUTTON
========================= */

.accessibility-toggle {
  border: none;

  background: linear-gradient(to right, #0d6efd, #3b82f6);

  color: #fff;

  padding: 12px 18px;

  border-radius: 50px;

  font-size: 14px;
  font-weight: 700;

  cursor: pointer;

  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);

  transition: 0.25s;
}

.accessibility-toggle:hover {
  transform: translateY(-2px);
}

/* =========================
   PANEL
========================= */

.accessibility-panel {
  width: 240px;

  background: #fff;

  margin-top: 12px;

  border-radius: 14px;

  padding: 15px;

  display: none;

  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.18);

  border: 1px solid #eee;
}

/* =========================
   BUTTON PANEL
========================= */

.accessibility-panel button {
  width: 100%;

  border: none;

  background: #f7f7f7;

  padding: 12px 14px;

  margin-bottom: 10px;

  border-radius: 10px;

  text-align: left;

  font-size: 14px;
  font-weight: 600;

  cursor: pointer;

  transition: 0.2s;
}

.accessibility-panel button:hover {
  background: #0d6efd;

  color: #fff;

  transform: translateX(2px);
}

/* =========================
   HIGH CONTRAST
========================= */

body.high-contrast {
  background: #000 !important;
  color: #fff !important;
}

body.high-contrast * {
  background-color: #000 !important;
  color: #fff !important;
  border-color: #555 !important;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {
  .accessibility-wrapper {
    top: 15px;
    right: 15px;
  }

  .accessibility-toggle {
    font-size: 12px;

    padding: 10px 14px;
  }

  .accessibility-panel {
    width: 210px;
  }
}

.marquee-container {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 99999;

  overflow: hidden;

  background: rgba(0, 0, 0, 0.92);
  color: #fff;

  /* border-top: 3px solid #ff9800; */

  padding: 5px 0;

  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.25);
}

.marquee-text {
  display: inline-block;
  white-space: nowrap;

  padding-left: 100%;

  animation: marquee 45s linear infinite;

  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.marquee-text:hover {
  animation-play-state: paused;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-100%);
  }
}

body {
  padding-bottom: 30px;
}

/* ==========================================
   FOOTER PN PARIGI
========================================== */

.pn-footer {
  width: 100%;
  margin-top: 0 !important;
  background: #68190f;
  color: #fff;
  border-top: 4px solid #c89a45;
}

.pn-footer-main {
  padding: 42px 0 35px;
  background: linear-gradient(115deg, #68190f, #812218, #68190f);
}

.pn-footer-column {
  padding: 0 25px;
  min-height: 170px;
}

.pn-footer-column + .pn-footer-column {
  border-left: 1px solid rgba(255, 255, 255, 0.16);
}

.pn-footer-column h3 {
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.pn-footer-column p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  line-height: 1.9;
}

.pn-footer-tagline {
  margin-top: 15px;
  color: #e4bd73;
  font-size: 11px;
}

.pn-footer-contact {
  padding: 0;
  margin: 0;
  list-style: none;
}

.pn-footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 15px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  line-height: 1.8;
}

.pn-footer-contact li i {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #e4bd73;
  background: rgba(215, 168, 76, 0.15);
}

.pn-footer-contact a {
  color: #fff;
}

.pn-footer-social {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.pn-footer-social a {
  width: 39px;
  height: 39px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 5px;
  text-decoration: none;
  transition: 0.2s;
}

.pn-footer-social a:hover {
  color: #54150e;
  background: #d7a84c;
  border-color: #d7a84c;
}

.pn-footer-bottom {
  padding: 14px 0;
  background: #48110c;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.pn-footer-bottom p {
  margin: 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.75);
  font-size: 11px;
}

/* ==========================================
   PERTAHANKAN FLOATING WHATSAPP
========================================== */

.floating-wa {
  position: fixed !important;
  right: 25px !important;
  bottom: 65px !important;
  z-index: 10000 !important;
  width: 190px;
  max-width: 22vw;
}

.floating-wa img {
  display: block;
  width: 100% !important;
  height: auto !important;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.25));
}

/* ==========================================
   PERTAHANKAN SOCIAL FLOATING
========================================== */

.social-floating {
  position: fixed !important;
  top: 35% !important;
  left: 0 !important;
  z-index: 10000 !important;
}

.social-btn {
  display: flex;
  align-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 8px;
  overflow: hidden;
  color: #fff !important;
  text-decoration: none !important;
  border-radius: 0 8px 8px 0;
  transition: width 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.social-btn i {
  flex: 0 0 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  padding: 0;
}

.social-btn span {
  white-space: nowrap;
  opacity: 0;
  font-size: 13px;
  font-weight: 600;
  transition: opacity 0.2s;
}

.social-btn:hover {
  width: 165px;
}

.social-btn:hover span {
  opacity: 1;
}

.social-btn.facebook {
  background: #1877f2;
}
.social-btn.twitter {
  background: #1da1f2;
}
.social-btn.youtube {
  background: #ff0000;
}

.social-btn.instagram {
  background: linear-gradient(
    45deg,
    #f09433,
    #e6683c,
    #dc2743,
    #cc2366,
    #bc1888
  );
}

/* ==========================================
   PERTAHANKAN RUNNING TEXT
========================================== */

.marquee-container {
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 100% !important;
  z-index: 10001 !important;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.94);
  color: #fff;
  padding: 6px 0;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.25);
}

.marquee-text {
  display: inline-block;
  white-space: nowrap;
  padding-left: 100%;
  animation: marquee 45s linear infinite;
  font-size: 14px;
  font-weight: 600;
}

.marquee-text:hover {
  animation-play-state: paused;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}

/* Ruang untuk running text */
body {
  padding-bottom: 35px !important;
}

/* ==========================================
   RESPONSIVE
========================================== */

@media (max-width: 767px) {
  .pn-footer-main {
    padding: 30px 0 20px;
  }

  .pn-footer-column {
    min-height: auto;
    padding: 0 20px 22px;
    margin-bottom: 22px;
    border-left: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  }

  .pn-footer-column:last-child {
    border-bottom: none;
    margin-bottom: 0;
  }

  .floating-wa {
    width: 125px;
    max-width: 35vw;
    right: 8px !important;
    bottom: 55px !important;
  }

  .social-floating {
    left: 0 !important;
  }

  .social-btn {
    width: 45px;
    height: 45px;
  }

  .social-btn i {
    flex-basis: 45px;
  }
}

/* Hilangkan jarak putih sebelum footer */
.website-main-container {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.website-content-shell {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.pn-footer {
  margin-top: 0 !important;
}
