/* Floating Button */
.mc-modal-btn {
  position: fixed;
  right: 24px;
  bottom: 24px;
  background: #ff4e00;
  color: #fff;
  border: none;
  padding: 14px 28px;
  border-radius: 40px;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  z-index: 9999;
}

.mc-account-btn {
  position: fixed;
  right: 24px;
  bottom: 24px;
  background: #ff4e00;
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: 40px;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  z-index: 9999;
}

.error-message-subs {
  color: red;
  font-size: 14px;
  margin-top: 8px;
}

.success-message-subs {
  color: green;
  font-size: 14px;
  margin-top: 8px;
}

#mc-sign-in-text,
#mc-sign-up-text {
  text-decoration: underline;
  color: #ff4e00;
  cursor: pointer;
}

.mc-checkbox-option {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
}

.mc-icon {
  width: 24px; /* lebih besar */
  height: 24px;
  object-fit: contain;
  filter: brightness(0) invert(1); /* bikin gambar jadi putih */
}

.mc-modal-btn:hover {
  opacity: 0.9;
}

/* Modal */
.mc-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

/* Modal Content */
.mc-modal-content {
  background: white;
  padding: 36px;
  width: 460px;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  position: relative;
  animation: fadeIn 0.25s ease;
}

.mc-close {
  background: none;
  border: none;
  font-size: 28px;
  position: absolute;
  right: 12px;
  top: 6px;
  cursor: pointer;
}

.mc-modal-header {
  text-align: center;
  margin-bottom: 20px;
}

.mc-logo {
  width: 48px;
  margin-bottom: 8px;
}

.mc-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mc-form input {
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #dcdcdc;
}

.mc-submit {
  background: #ff4e00;
  color: white;
  padding: 12px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  margin-top: 10px;
}

.mc-submit:hover {
  opacity: 0.9;
}

.mc-footer-text {
  text-align: center;
  margin-top: 12px;
  font-size: 14px;
}

.mc-content {
  padding: 1rem;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
}

.mc-account-name {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.mc-email-content {
  font-size: 0.8rem;
  color: #555;
}

.mc-error-message {
  color: red;
  font-size: 0.875rem;
  margin-top: 8px;
  display: none;
}

.mc-account-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

.mc-btn {
  padding: 12px 24px;
  border-radius: 8px;
  border: 1px solid #ff4e00;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
}

.mc-logout-btn,
.mc-cancel-logout {
  background: #fff;
  color: #ff4e00;
}

.mc-logout-btn:hover,
.mc-cancel-logout:hover {
  background: #ff4e00;
  color: #fff;
}

.mc-confirm-logout {
  background: #ff4e00;
  color: #fff;
}

.mc-confirm-logout:hover {
  background: #e04300;
}

.mc-confirm-footer {
  display: flex;
  justify-content: center;
  gap: 16px;
  align-items: center;
  margin-top: 20px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  position: relative;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: right bottom;
  z-index: 1;
}

.hero-left,
.hero-right {
  flex: 1;
  height: 100%;
}

.hero-right {
  background-color: #007bff;
}

.hero-text {
  flex: 1;
  padding-right: 20px;
  z-index: 24;
}

.hero-text div {
  font-size: 40px;
  margin-bottom: 20px;
}

.hero-text {
  font-size: 16px;
  margin-bottom: 30px;
  color: #666;
  padding: 50px;
}

.download {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 40px 30px;
  margin: 40px 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-bottom: 4px solid #ffc72c;
}

.slug-container {
  gap: 5rem;
  max-width: 1600px;
  margin: 2rem auto;
  padding: 1rem;
  background-color: #ffffff;
  border-radius: 12px;
}
.download-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
}
.download-image img {
  max-width: 140px;
  border-radius: 4px;
}

.download-content {
  flex: 1;
  min-width: 250px;
}

.download-content h3 {
  color: #1f70c1;
  font-size: 0.9rem;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 10px;
}

.download-content h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0 0 12px 0;
  color: #000;
}

.download-content p {
  font-size: 1rem;
  color: #333;
  margin-bottom: 20px;
  line-height: 1.6;
}

.btn-download {
  background-color: #ffc72c;
  color: #000;
  padding: 12px 24px;
  text-decoration: none !important;
  font-weight: 700;
  border-radius: 30px;
  display: inline-block;
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}

.btn-download:hover {
  background-color: orange;
  color: #fff;
  text-decoration: none !important;
}

.ebook-grid {
  display: flex;
  flex-direction: row;
  gap: 40px;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.ebook-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.ebook-content {
  flex: 1;
  min-width: 300px;
  max-width: 60%;
}

.ebook-thumbnail img {
  max-width: 100%;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.ebook-html {
  font-size: 16px;
  margin-top: 24px;
  line-height: 3;
  padding-bottom: 24px;
}
.page-download-sections {
  flex: 1;
  min-width: 300px;
  max-width: 35%;
  background-color: #f4f8ff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
/* Wrapper utama halaman */
.thankyou-wrapper {
  max-width: 1080px;
  margin: 4rem auto;
  padding: 2rem 1.5rem;
}
/* Spin */
.spinner {
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 3px solid rgba(0, 0, 0, 0.1);
  border-left-color: #000;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
}

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

/* Grid flex: teks kiri, ucapan kanan */
.thankyou-grid {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 250px;
}

@media (min-width: 768px) {
  .thankyou-grid {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

/* Kolom kiri - Konten eBook */
.thankyou-content {
  flex: 2;
}

.thankyou-content h1.ebook-title {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.thankyou-content p.ebook-excerpt {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 1rem;
}

/* Kolom kanan - Blok ucapan */
@media (min-width: 768px) {
  .ebook-grid {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }
}

/* Kiri: konten artikel eBook */
.ebook-content {
  flex: 1.7;
  max-width: 65%;
}

/* Kanan: kotak terima kasih */
.thankyou-message-block {
  flex: 1;
  background-color: #fefefe;
  border: 2px dashed #ccc;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: left;
  box-sizing: border-box;
  max-width: 32%;
}

.thankyou-message-block h2 {
  color: #2e7d32;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.thankyou-message-block p {
  font-size: 0.95rem;
  color: #444;
  margin-bottom: 1rem;
}

/* Tombol */
.thankyou-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.thankyou-buttons a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1rem;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

/* Style tombol */
.btn-primary {
  background-color: #1a73e8;
  color: white;
}

.btn-primary:hover {
  background-color: #155cc0;
}

.btn-secondary {
  background-color: #34a853;
  color: white;
}

.btn-secondary:hover {
  background-color: #2c8d45;
}

.btn-outline {
  background-color: transparent;
  border: 2px solid #ccc;
  color: #333;
}

.btn-outline:hover {
  background-color: #f3f3f3;
}

/* Gambar kecil */
.thankyou-image {
  margin-top: 1rem;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.thankyou-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Page donwload */
.download-section {
  background-color: #ffffff;
  padding: 30px;
  margin: 20px 0;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.download-thumbnail img {
  max-width: 150px;
  margin-bottom: 20px;
}

.download-details h2 {
  font-size: 1.8rem;
  margin: 10px 0;
}
.download-checkbox {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  margin-right: 12px;
}
.download-checkbox2 {
  margin-right: 12px;
}
.download-details p {
  margin: 10px 0 20px;
}

.download-form input[type="text"],
.download-form input[type="email"] {
  width: 80%;
  padding: 12px;
  margin: 8px 0;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.download-form .download-consent {
  margin: 15px 0;
  text-align: left;
}

.download-form .download-button {
  background-color: #ffc72c;
  color: #000;
  padding: 12px 24px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}

.download-form .download-button:hover {
  background-color: orange;
  color: #fff;
}

.download-form label {
  display: block;
  margin: 5px 0;
  font-weight: 600;
}

.download-privacy-info,
.download-legal-info {
  font-size: 0.9rem;
  color: #555;
  margin: 10px 0;
}

.download-legal-info {
  font-size: 0.8rem;
  color: #777;
}
/* --- */

.btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: #ff4e00;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: #802700;
}

.hero-image {
  flex: 1;
  text-align: center;
  z-index: 24;
}

.hero-image img {
  width: 100%;
  max-width: 400px;
  height: auto;
}

@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .hero-text {
    /* padding: 0px; */
    margin-bottom: 20px;
  }

  .hero-text div {
    font-size: 30px;
    line-height: 1;
  }

  .hero-text p {
    font-size: 16px;
  }

  .hero-image img {
    max-width: 350px;
  }
}

/* New Search  */
.container {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.search-bar {
  display: flex;
  align-items: center;
  /* padding: 10px; */
  /* margin-top: 70px; */
  /* margin-bottom: 60px; */
  margin-top: 50px;
  margin-bottom: 50px;
}

.logo {
  color: black;
  font-size: 20px;
  font-weight: bold;
  margin-right: 20px;
}

.search-input {
  padding: 8px;
  font-size: 14px;
  border: none;
  margin-right: 15px;
  width: 500px;
  height: 50px;
  background-color: #f5f5f5;
}

.search-button {
  background-color: #ff4e00;
  color: white;
  border: none;
  margin: 5px;
  padding: 15px 20px;
  font-size: 14px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.search-button:hover {
  background-color: #802700;
}
/* Container */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem;
}

/* Footer main section */
.footer-main {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

/* Brand section */
.footer-brand-column {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.brand {
  margin-bottom: 1rem;
}
.logo {
  width: 132px;
}

/* Badges section */
.badges-container {
  margin-bottom: 3rem;
}
.badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  overflow-x: auto;
}
.pse-icon {
  width: 82px;
  height: 72px;
}
.catalogue-icon {
  width: 100px;
  height: 46px;
}
.meta-icon,
.kps-icon {
  width: 100px;
  height: 76px;
}

/* Social media section */
.social-media {
  margin-bottom: 1.5rem;
}
.social-icons {
  display: flex;
  gap: 0.75rem;
  margin-left: 0.5rem;
}
.social-icons svg {
  width: 36px;
  height: 36px;
  aspect-ratio: 1 / 1;
}

/* Footer menus section */
.footer-menu-section {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.footer-menu {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer-menu h3 {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}
.menu-items {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.menu-items a {
  color: #414141;
  text-decoration: none;
  font-size: 1rem;
  line-height: 1.2;
}
.menu-items a:hover {
  color: #ff4e00;
}

/* Footer bottom section */
.footer-bottom {
  background-color: #ff4e00;
  color: white;
  padding: 0.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.copyright {
  font-size: 0.875rem;
  text-align: left;
}
.legal-links {
  display: flex;
  gap: 1rem;
  font-size: 0.875rem;
}
.legal-links a {
  color: white;
  text-decoration: none;
}
.legal-links a:hover {
  color: #ffe0d1;
}

/* Media query for desktop layout */
@media (min-width: 768px) {
  .container {
    padding: 2rem 0;
  }

  .footer-main {
    flex-direction: row;
    justify-content: space-between;
    gap: 6rem;
  }

  .footer-brand-column {
    flex-shrink: 0;
    max-width: 20%;
  }

  .logo {
    width: 168px;
  }

  .footer-menu-section {
    flex-direction: row;
    gap: 2rem;
    flex-grow: 1;
    justify-content: space-between;
  }

  .footer-menu {
    flex: 1;
    min-width: 0;
  }

  .footer-menu h3 {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
  }

  .menu-items {
    gap: 0.375rem;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }

  .copyright {
    font-size: 0.875rem;
  }

  .legal-links {
    padding-right: 4rem;
  }
}
@media (max-width: 767px) {
  .logo {
    display: none;
  }

  .search-bar {
    flex-direction: column;
    display: block;
    align-items: flex-start;
  }

  .search-input {
    width: 100%;
    margin-bottom: 10px;
  }

  .search-button {
    width: 100%;
  }
}

.nav-social-icon a {
  margin: 10px;
  margin-left: 10px;
  margin-right: 5px;
  aspect-ratio: 1 / 1;
  max-width: 100%;
  height: auto;
}

.social-media-list li {
  margin-bottom: 8px;
}

.social-media-list a {
  text-decoration: none;
  color: #007bff;
}

.social-media-list a:hover {
  text-decoration: underline;
}

.maxchat-logo {
  width: auto;
  max-width: 200px;
  /* height: 100%; */
  -o-object-fit: contain;
  object-fit: contain;
}

/* Tag Modal*/
.animate-top {
  position: relative;
  animation: animatetop 0.4s;
}
@keyframes animatetop {
  from {
    top: -300px;
    opacity: 0;
  }
  to {
    top: 0;
    opacity: 1;
  }
}

.modal-active {
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.275);
}

.modal-content {
  margin: 5% auto;
  width: 681px;
  height: 348px;
  max-width: 90%;
  background-color: #fff;
  border: 1px solid rgba(0, 0, 0, 0.175);
  border-radius: 18px;
  outline: 0;
  overflow-y: auto;
}
.modal-header {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: start;
  -ms-flex-align: start;
  align-items: flex-start;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  padding: 1rem;
  border-bottom: 1px solid #e9ecef;
  border-top-left-radius: 0.3rem;
  border-top-right-radius: 0.3rem;
}
.modal-title {
  margin-bottom: 0;
  line-height: 1.5;
  margin-top: 0;
  font-size: 1.25rem;
}
.modal-header .close {
  float: right;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  color: #000;
  text-shadow: 0 1px 0 #fff;
  opacity: 0.5;
  padding: 1rem;
  margin: -1rem -1rem -1rem auto;
  background-color: transparent;
  border: 0;
}
.close:not(:disabled):not(.disabled) {
  cursor: pointer;
}

.modal-body {
  flex: 1 1 auto;
  padding: 1rem;
}
.modal-body p {
  margin-top: 0;
  margin-bottom: 1rem;
}

.modal-footer {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: end;
  -ms-flex-pack: end;
  justify-content: flex-end;
  padding: 1rem;
  border-top: 1px solid #e9ecef;
}

.modal-footer > * {
  margin: 5px;
}

/* Hide the scrollbar but allow scrolling */
.modal-content::-webkit-scrollbar {
  width: 0.5em;
}

.modal-content::-webkit-scrollbar-thumb {
  background-color: #888;
}

/* Optional: add hover styles to the thumb */
.modal-content::-webkit-scrollbar-thumb:hover {
  background-color: #555;
}

.chip {
  display: inline-flex;
  flex-direction: row;
  background-color: #ffe8de;
  border: none;
  cursor: pointer;
  height: 36px;
  outline: none;
  padding: 0;
  font-size: 14px;
  font-color: #414141;
  /* font-family: "Open Sans", sans-serif; */
  white-space: nowrap;
  align-items: center;
  border-radius: 16px;
  vertical-align: middle;
  text-decoration: none;
  justify-content: center;
}

.chip-content {
  cursor: inherit;
  display: flex;
  align-items: center;
  user-select: none;
  white-space: nowrap;
  padding-left: 12px;
  padding-right: 12px;
}

.lang-dropdown {
  transform: translateY(100px);
}
