.desc-text.limit {
	max-height: 90px; /* Ubah sesuai tinggi yang diinginkan */
	overflow: hidden;
	position: relative;
}

.desc-text.limit::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 30px;
	background: linear-gradient(to bottom, rgba(255,255,255,0), #2C3E50); /* efek fade bawah */
}

.toggle-link {
	display: inline-block;
	margin-top: 5px;
	font-size: 0.9em;
	color: #007bff;
	cursor: pointer;
}

.carousel-inner img {
	width: 100%;
	height: auto;
	object-fit: cover;
}

.desc-dashboardKonten-text.limit {
	max-height: 90px; /* Ubah sesuai tinggi yang diinginkan */
	overflow: hidden;
	position: relative;
}

.desc-dashboardKonten-text.limit::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 30px;
	background: linear-gradient(to bottom, rgba(255,255,255,0), #2C3E50); /* efek fade bawah */
}

.toggle-dashboardKonten-link {
	display: inline-block;
	margin-top: 5px;
	font-size: 0.9em;
	color: #007bff;
	cursor: pointer;
}
#waMessage {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    border: 2px solid #e9ecef;
    transition: border-color 0.3s ease;
}
#waMessage:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}
.form-text {
    font-size: 0.875rem;
    margin-top: 0.5rem;
}
.btn-outline-primary:hover,
.btn-outline-success:hover,
.btn-outline-warning:hover,
.btn-outline-info:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}
.toast {
    position: fixed !important;
}
@media (max-width: 768px) {
    .col-md-4 {
        margin-top: 1rem;
    }
    #waMessage {
        min-height: 120px;
    }
}
.tag-checkbox {
    display: flex;
    align-items: center;
    background: var(--tag-bg, #f1f1f1);
    border-radius: 16px;
    padding: 4px 12px 4px 8px;
    margin: 2px 6px 2px 0;
    border: 1px solid rgba(0,0,0,0.07);
    font-size: 0.92em;
    font-weight: 500;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
    transition: box-shadow 0.2s, border-color 0.2s;
    min-width: 0;
    max-width: 100%;
}
.tag-checkbox:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    border-color: #007bff33;
}
.tag-checkbox .form-check-input {
    margin-right: 6px;
    accent-color: #007bff;
}
.tag-checkbox .form-check-label {
    padding: 0;
    margin: 0;
    font-weight: 500;
    color: var(--tag-color, #222);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.tag-pill {
    display: inline-block;
    background: var(--tag-bg, #f1f1f1);
    border-radius: 16px;
    padding: 4px 14px;
    margin: 2px 6px 2px 0;
    font-size: 0.92em;
    font-weight: 500;
    color: #222;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.07);
    vertical-align: middle;
    white-space: nowrap;
    transition: box-shadow 0.2s, border-color 0.2s;
}
.tag-pill:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    border-color: #007bff33;
}
/* Full Width Container */
.full-width {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  padding-left: 0;
  padding-right: 0;
  box-sizing: border-box;
}

/* Fixed Navbar/Header */
header, .navbar, .main-header, .site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  z-index: 1000;
  background: #ffc107;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}
html, body {
  height: 100%;
  min-height: 100%;
  margin: 0;
  padding: 0;
}
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main, .main-content, .full-width {
  flex: 1 0 auto;
}
footer {
  position: relative;
  width: 100vw;
  margin: 0;
  flex-shrink: 0;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.04);
}
/* HERO SLIDER SPLIDE FULL WIDTH BESAR */
.hero-slider {
  position: relative;
  width: 100%;
  min-height: 90vh;
  height: 90vh;
  max-height: 700px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  box-sizing: border-box;
}

/* Perbaikan agar slider Splide tampil normal */
.hero-slider .splide__track,
.hero-slider .splide__slide {
  height: 100% !important;
  min-height: 80vh !important;
  padding: 0 !important;
  margin: 0 !important;
  display: block !important;
}

.hero-slider .splide__list {
  display: flex !important;
  height: 100% !important;
  min-height: 80vh !important;
  padding: 0 !important;
  margin: 0 !important;
}

.hero-slider img,
.hero-slider .hero-slide-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 2;
}
.hero-slide-content {
  position: relative;
  z-index: 3;
  color: #2C3E50;
  text-align: center;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  padding: 2rem 1rem;
}
.hero-slide-content h1 {
  font-size: 3rem;
  font-weight: bold;
  line-height: 1.1;
}
.hero-slide-content h2 {
  font-size: 1.3rem;
  color: #ffc107;
  margin-bottom: 1rem;
  letter-spacing: 1px;
}
/* Floating navigation for Splide arrows */
.hero-slider .splide__arrow {
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  z-index: 10;
  background: rgba(0,0,0,0.35);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
  color: #2C3E50;
  border: none;
  transition: background 0.2s, box-shadow 0.2s;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Pastikan panah benar-benar di dalam gambar dan di tengah vertikal */
.hero-slider .splide__arrow--prev {
  left: 8px !important;
}
.hero-slider .splide__arrow--next {
  right: 8px !important;
}
.hero-slider .splide__arrow:focus,
.hero-slider .splide__arrow:hover {
  background: rgba(255,193,7,0.85);
  color: #222;
  outline: none;
}
@media (max-width: 600px) {
  .hero-slider {
    min-height: 220px;
    height: 220px;
    max-height: none;
  }
  .hero-slider .splide__slide,
  .hero-slider .splide__track,
  .hero-slider .splide__list {
    height: 100% !important;
    min-height: 220px !important;
    display: block !important;
  }
  .hero-slider .splide__arrow {
    width: 36px;
    height: 36px;
    top: 50% !important;
    transform: translateY(-50%) !important;
  }
  .hero-slider .splide__arrow--prev {
    left: 2px !important;
  }
  .hero-slider .splide__arrow--next {
    right: 2px !important;
  }
  .hero-slide-content {
    padding: 1rem 0.5rem;
  }
  .hero-slide-content h1 { font-size: 1.2rem; }
  .hero-slide-content h2 { font-size: 1rem; }
  .hero-slide-content .btn {
    font-size: 0.9rem;
    padding: 0.5rem 1.2rem;
  }
  /*  */
}
/* Prudential Red */
.bg-prudential {
  background-color:#ed1b2e;
  color: #fff !important;
}

.btn-prudential { background-color: #ed1b2e !important; border-color: #ed1b2e !important; color: #2C3E50 !important; }
.btn-outline-prudential { background-color: transparent !important; border-color: #ed1b2e !important; color: #ed1b2e !important; }
.btn-prudential:hover, .btn-prudential:focus { background-color: #b8000f !important; border-color: #b8000f !important; color: #2C3E50 !important; }
.badge-prudential { background-color: #ed1b2e !important; color: #2C3E50 !important; }
.btn-theme{
    background: #ffd6b0;
    border-radius: 18px;
    box-shadow: 0 2px 8px #0001;
    width: 220px;
    padding: 18px 14px;
    cursor: pointer;
    transition: box-shadow 0.2s;
    text-align: center;
}
.custom-navbar {
  box-shadow: 0 4px 24px 0 rgba(230,0,25,0.08);
  position: relative;
  z-index: 2;
}
.navbar-wave {
  margin-top: -8px;
  line-height: 0;
  z-index: 1;
  position: relative;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', 'Segoe UI', Arial, sans-serif !important;
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* Custom Tabs A */
.custom-tabs .nav-link {
  border: none;
  background: transparent;
  color: #2C3E50;
  position: relative;
  font-weight: 600;
  transition: color 0.2s;
}
.custom-tabs .nav-link.active,
.custom-tabs .nav-link:focus {
  color: #2C3E50;
  background-color: #ffe5d0;
  border-bottom: #2C3E50 solid;
}
.custom-tabs .nav-link.active::after {
  content: '';
  display: block;
  height: 3px;
  width: 100%;
  /* background: #ffd6b0; */
  border-radius: 2px 2px 0 0;
  position: absolute;
  left: 0;
  bottom: -1px;
  transition: width 0.3s;
  background-color: #ffd6b0;
}
/* Custom Accordion A */
.custom-accordion .accordion-button {
  border-left: 4px solid transparent;
  background: #ffd6b0;
  color: #2C3E50;
  font-weight: 600;
  transition: border-color 0.2s, background 0.2s;
}
.custom-accordion .accordion-button:not(.collapsed) {
  border-left: 4px solid #ffd6b0;
  background: #ffd6b0;
  color: #2C3E50;
}
.custom-accordion .accordion-item {
  background-color:#ffd6b0;
  border-radius: 1rem;
  margin-bottom: 1rem;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
/* Tinggi konsisten untuk custom-tabs */
.custom-tabs .nav-item {
  display: flex;
  align-items: stretch;
  height: 100%;
}
.custom-tabs .nav-link {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  box-sizing: border-box;
}
/* Tinggi konsisten dan rata untuk custom-tabs */
.custom-tabs {
  align-items: stretch;
}
.custom-tabs .nav-item {
  display: flex;
  align-items: stretch;
  height: 100%;
}
.custom-tabs .nav-link,
.custom-tabs .nav-link.active,
.custom-tabs .nav-link:focus {
  min-height: 56px;
  padding-top: 0;
  padding-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 1.15em;
  box-sizing: border-box;
  transition: background 0.2s, color 0.2s;
}

/* Responsive mobile tabs - proper display for 4 tabs */
@media (max-width: 768px) {
  .custom-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
  }
  
  .custom-tabs::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
  }
  
  .custom-tabs .nav-item {
    flex: 0 0 auto;
    min-width: 0;
  }
  
  .custom-tabs .nav-link,
  .custom-tabs .nav-link.active,
  .custom-tabs .nav-link:focus {
    min-height: 60px;
    font-size: 0.85em;
    padding: 0.75rem 0.5rem;
    white-space: normal;
    text-align: center;
    min-width: 140px;
    max-width: 160px;
    line-height: 1.2;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
  }
  
  .custom-tabs .nav-link i {
    font-size: 1em;
    margin-right: 0;
    margin-bottom: 0.2rem;
    flex-shrink: 0;
  }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
  .custom-tabs .nav-link,
  .custom-tabs .nav-link.active,
  .custom-tabs .nav-link:focus {
    font-size: 0.8em;
    padding: 0.6rem 0.4rem;
    min-width: 120px;
    max-width: 140px;
    min-height: 56px;
    line-height: 1.15;
  }
  
  .custom-tabs .nav-link i {
    font-size: 0.9em;
    margin-right: 0;
    margin-bottom: 0.15rem;
  }
}

/* Override nav-justified on mobile for better tab display */
@media (max-width: 768px) {
  .custom-tabs.nav-justified .nav-item {
    flex: 0 0 auto !important;
  }
  
  .custom-tabs.nav-justified .nav-link {
    flex: 0 0 auto !important;
  }
}

/* Custom scroll hint popover */
.scroll-hint-popover {
  --bs-popover-bg: #2C3E50;
  --bs-popover-border-color: #ffc107;
  --bs-popover-border-width: 2px;
}

.scroll-hint-popover .popover-arrow::before {
  border-bottom-color: #ffc107;
}

.scroll-hint-popover .popover-body {
  color: #fff;
  font-weight: 500;
  font-size: 0.9em;
  padding: 0.75rem 1rem;
  text-align: center;
  background: #2C3E50;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Animation for popover */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.scroll-hint-popover.show {
  animation: slideInUp 0.3s ease-out;
}

/* DataTables spacing and responsive font */
.dataTables_wrapper .dt-buttons {
  margin-bottom: 0.5rem;
  margin-right: 1rem;
}
.dataTables_wrapper .dataTables_filter {
  margin-bottom: 0.5rem;
}
@media (max-width: 768px) {
  .dataTables_wrapper .dt-buttons,
  .dataTables_wrapper .dataTables_filter {
    float: none !important;
    display: block;
    text-align: center;
    margin-right: 0;
    width: 100%;
  }
  .dataTables_wrapper .dt-buttons .btn,
  .dataTables_wrapper .dataTables_filter input {
    width: 100% !important;
    max-width: 100%;
    margin-bottom: 0.5rem;
  }
  .dataTables_wrapper .dataTables_filter {
    margin-top: 0.5rem;
  }
}

/* Ukuran font DataTables */
table.dataTable,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate,
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter label,
.dataTables_wrapper .dt-buttons .btn {
  font-size: 0.97em;
}
@media (max-width: 768px) {
  table.dataTable,
  .dataTables_wrapper .dataTables_info,
  .dataTables_wrapper .dataTables_paginate,
  .dataTables_wrapper .dataTables_length,
  .dataTables_wrapper .dataTables_filter label,
  .dataTables_wrapper .dt-buttons .btn {
    font-size: 0.92em;
  }
}

/* Jarak antar baris dan cell */
table.dataTable td, table.dataTable th {
  padding: 0.5rem 0.6rem;
}
@media (max-width: 768px) {
  table.dataTable td, table.dataTable th {
    padding: 0.4rem 0.3rem;
  }
}

/* Custom navbar-toggler dengan efek menarik */
.navbar-toggler {
  border: none;
  padding: 0.5rem;
  /* background: linear-gradient(45deg, #ed1b2e, #ff6b6b); */
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.navbar-toggler::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.3s ease;
}

.navbar-toggler:hover {
  transform: scale(1.05);
}

.navbar-toggler:hover::before {
  width: 40px;
  height: 40px;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.navbar-toggler-icon {
  background-image: none !important;
  position: relative;
  width: 20px;
  height: 2px;
  background-color: white;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 2px;
  background-color: white;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.navbar-toggler-icon::before {
  transform: translateY(-6px);
}

.navbar-toggler-icon::after {
  transform: translateY(6px);
}

/* Animasi saat menu terbuka */
/* .navbar-toggler[aria-expanded="true"] { */
  /* background: linear-gradient(45deg, #ff6b6b, #ed1b2e); */
/* } */

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
  background-color: transparent;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::before {
  transform: rotate(45deg);
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::after {
  transform: rotate(-45deg);
}

.navbar-brand img {
  height: 42px;
  max-height: 44px;
  width: auto;
  object-fit: contain;
  margin-right: 8px;
}
@media (max-width: 768px) {
  .navbar-brand img {
    height: 42px;
    max-height: 44px;
  }
}

.footer-brand img {
  height: 62px;
  max-height: 64px;
  width: auto;
  object-fit: contain;
}
@media (max-width: 768px) {
  .navbar-brand img {
    height: 62px;
    max-height: 64px;
  }
}

.survey-list-item {
  text-align: center;
  padding-top: 1.2rem;
  padding-bottom: 1.2rem;
}
.survey-list-item h6 {
  font-size: 1.15em;
  font-weight: 600;
  margin-bottom: 1.2rem;
}
.survey-list-item .btn {
  font-size: 1em;
  padding: 0.7rem 1.2rem;
}
.survey-list-item .d-grid.gap-2.d-md-flex {
  display: flex !important;
  flex-wrap: nowrap;
  gap: 0.5rem;
  justify-content: center;
}
.survey-list-item .btn {
  flex: 1 1 0;
  min-width: 0;
  margin-bottom: 0 !important;
  width: auto !important;
  max-width: 100%;
  font-size: 1em;
  padding: 0.7rem 0.5rem;
}
@media (max-width: 480px) {
  .survey-list-item .btn {
    font-size: 0.95em;
    padding: 0.6rem 0.3rem;
  }
}
