@media (max-width: 767px) {
  .section-text {
    font-size: 20px !important;
    font-weight: 600;
    text-align: center;
    line-height: 1.3;
  }

  /* Navbar */
  .navbar-nav {
    align-items: center !important;
    text-align: center !important;
  }

  /* section hero */
  #home-banner {
    margin-top: 25% !important;
    padding: 20px 15px !important;
  }

  #home-banner .col-lg-6.order-1 {
    margin-top: 0 !important;
  }

  #home-banner .img-fluid {
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
  }

  .hero-float-card.card-hero-custom {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    position: absolute !important;
    transform: none !important;
    animation: none !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1) !important;
    background: rgba(255, 255, 255, 0.95) !important;
    padding: 4px 8px !important;
    border-radius: 8px !important;
    width: auto !important;
    max-width: 125px !important;
    min-width: auto !important;

    gap: 6px !important;
  }

  .hero-float-card.d-none.d-md-flex {
    display: flex !important;
  }

  .hero-float-card .icon-box-gradient {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    flex-basis: 24px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .hero-float-card .icon-box-gradient i {
    font-size: 10px !important;
    line-height: 1 !important;
  }

  .hero-float-card .text-start {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    line-height: 1 !important;
  }

  .hero-float-card h5 {
    font-size: 10px !important;
    margin: 0 !important;
    font-weight: 600 !important;
    line-height: 1 !important;
  }

  .hero-float-card h6 {
    font-size: 10px !important;
    margin: 0 !important;
    font-weight: 600 !important;
    line-height: 1 !important;
  }

  .hero-float-card span,
  .hero-float-card .text-muted {
    font-size: 9px !important;
    line-height: 1.1 !important;
    display: block;
    white-space: nowrap !important;
    margin-top: 1px !important;
  }

  .hero-float-card.card-pos-1 {
    top: 8% !important;
    left: 5% !important;
    z-index: 20;
  }

  .hero-float-card.card-pos-2 {
    top: 12% !important;
    right: 5% !important;
    z-index: 19;
  }

  .hero-float-card.card-pos-3 {
    bottom: 5% !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    max-width: 140px !important;
    z-index: 21;
    white-space: nowrap !important;
  }

  #home-banner h1 {
    font-size: 20px !important;
    line-height: 1.4 !important;
    margin-top: -20px !important;
    text-align: left !important;
  }

  #home-banner .lead {
    font-size: 14px !important;
    margin-bottom: 20px !important;
    text-align: left !important;
  }

  #home-banner .d-flex.flex-wrap.gap-3 {
    flex-direction: column !important;
    gap: 12px !important;
  }

  #home-banner .btn {
    width: 100%;
    text-align: center;
    padding: 12px 20px;
    font-size: 14px;
  }

  #home-banner p.mb-3 {
    font-size: 13px !important;
    max-width: 100% !important;
    text-align: left !important;
  }

  #home-banner p {
    text-align: left !important;
  }

  .icon-box-gradient {
    width: 50px !important;
    height: 50px !important;
    min-width: 50px !important;
  }

  .icon-box-gradient i {
    font-size: 20px !important;
  }

  .hero-float-card h5 {
    font-size: 18px !important;
  }

  .hero-float-card h6 {
    font-size: 16px !important;
  }

  .hero-float-card span {
    font-size: 12px !important;
  }

  /* section keunggulan */
  .keunggulan-section {
    padding: 40px 25px !important;
  }

  .keunggulan-section .section-text {
    font-size: 24px !important;
    margin-bottom: 1rem !important;
  }

  .feature-card {
    padding: 20px !important;
    margin-bottom: 10px !important;
  }

  .feature-icon-img {
    width: 50px !important;
    margin-bottom: 15px !important;
  }

  .feature-title {
    font-size: 18px !important;
    margin-bottom: 10px !important;
  }

  .feature-desc {
    font-size: 13px !important;
    text-align: left !important;
  }

  /* section skema */
  .skema-section {
    padding: 40px 10px !important;
  }

  .skema-section .card-body {
    padding: 20px !important;
  }

  .skema-section .card-body h5 {
    font-size: 17px !important;
    min-height: 2.5rem !important;
  }

  .skema-section .card > div:first-child {
    height: 180px !important;
  }

  /* section dipercaya industri */
  #mitraTab {
    align-items: center !important;
  }

  #mitraTab .nav-item {
    width: 100% !important;
    display: flex;
    justify-content: center;
  }

  #mitraTab .nav-link {
    width: 90% !important;
    max-width: 300px !important;
    margin: 0 !important;
    text-align: center !important;
  }

  /* Pembelian Skema Page */
  .container-fluid {
    padding: 20px 15px 0 15px !important;
  }

  .px-5 {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  section[style*="margin-top: 100px"] {
    margin-top: 80px !important;
  }

  .row.d-flex.justify-content-center.text-center.mb-5 h1 {
    font-size: 24px !important;
  }

  .row.d-flex.justify-content-center.text-center.mb-5 span {
    font-size: 14px !important;
  }

  /* Cards */
  .card {
    margin-bottom: 15px !important;
  }

  .card .p-4 {
    padding: 20px !important;
  }

  .card h4.fs-20,
  .card h2.fs-20,
  .card h5.fs-20,
  .card h1.fs-20 {
    font-size: 18px !important;
  }

  .card .fs-16 {
    font-size: 14px !important;
  }

  .card .fs-18 {
    font-size: 16px !important;
  }

  .card .row.fs-16 .col-4 {
    flex: 0 0 35% !important;
    max-width: 35% !important;
  }

  .card .row.fs-16 .col-1 {
    flex: 0 0 5% !important;
    max-width: 5% !important;
  }

  /* Tab navigation */
  #myTab {
    flex-wrap: wrap !important;
    gap: 8px !important;
    justify-content: center !important;
  }

  #myTab .nav-item {
    flex: 0 0 auto !important;
  }

  #myTab .nav-link {
    font-size: 12px !important;
    padding: 8px 12px !important;
    white-space: nowrap !important;
  }

  .table-responsive {
    font-size: 12px !important;
  }

  .table th,
  .table td {
    padding: 8px 6px !important;
    font-size: 12px !important;
  }

  .d-flex.flex-wrap > div[style*="width: 120px"] {
    width: 80px !important;
    font-size: 12px !important;
  }

  .d-flex.flex-column.flex-sm-row.justify-content-around .btn {
    font-size: 13px !important;
    padding: 8px 12px !important;
  }

  .form-group label {
    font-size: 14px !important;
  }

  .form-control {
    font-size: 14px !important;
    padding: 10px !important;
  }

  .input-group .btn {
    font-size: 13px !important;
    padding: 8px 12px !important;
  }

  .custom-dropdown .dropdown-selected {
    font-size: 14px !important;
    padding: 10px !important;
  }

  .custom-dropdown .dropdown-option {
    font-size: 14px !important;
    padding: 10px !important;
  }

  .d-flex.justify-content-between span {
    font-size: 14px !important;
  }

  .btn.w-100 {
    font-size: 14px !important;
    padding: 12px !important;
  }

  .ratio.ratio-16x9 {
    margin-bottom: 15px !important;
  }

  .card img[style*="border-radius:10px"] {
    height: auto !important;
    max-height: 300px !important;
  }

  .alert {
    font-size: 13px !important;
    padding: 10px !important;
  }

  /* Form check */
  .form-check-label {
    font-size: 13px !important;
  }

  /* TUK Mandiri Page */
  section[style*="margin-top: 80px"],
  section[style*="margin-top: 100px"] {
    margin-top: 60px !important;
  }

  section[style*="margin-bottom: 80px"] {
    margin-bottom: 60px !important;
  }

  /* Banner Section */
  .section-text {
    font-size: 20px !important;
    line-height: 1.2 !important;
  }

  .section-text br {
    display: none;
  }

  p[style*="font-size: 15px"] {
    font-size: 14px !important;
    text-align: left !important;
  }

  p[style*="font-size: 18px"] {
    font-size: 16px !important;
    text-align: left !important;
  }

  p[style*="font-size: 14px"] {
    text-align: left !important;
  }

  .hero-image-frame {
    margin-bottom: 20px !important;
  }

  .card[style*="border-radius: 16px"] h4 {
    font-size: 18px !important;
    text-align: left !important;
  }

  .card[style*="border-radius: 16px"] p {
    font-size: 13px !important;
    text-align: left !important;
  }

  .card[style*="border-radius: 16px"] .d-flex.align-items-start .flex-shrink-0 {
    margin-right: 15px !important;
  }

  .card[style*="border-radius: 16px"] img[style*="width: 60px"] {
    width: 45px !important;
  }

  .card[style*="border-radius: 16px"] img[style*="width: 20px"] {
    width: 18px !important;
    height: 18px !important;
  }

  .card[style*="border-radius: 16px"] ul li span {
    font-size: 14px !important;
  }

  .card[style*="border-radius: 16px"] .p-4 {
    padding: 20px !important;
  }

  /* TUK Mandiri */
  .card[style*="border-radius: 12px"] .card-body {
    padding: 10px !important;
    height: 80px !important;
  }

  #accordionFAQ .card {
    border-radius: 12px !important;
  }

  #accordionFAQ .btn-faq {
    padding: 16px !important;
  }

  #accordionFAQ .btn-faq h5 {
    font-size: 15px !important;
    line-height: 1.4 !important;
  }

  #accordionFAQ .card-body {
    font-size: 14px !important;
    padding: 16px !important;
  }

  section[style*="background: linear-gradient(180deg"] h2 {
    font-size: 18px !important;
    text-align: center !important;
  }

  section[style*="background: linear-gradient(180deg"] p.fw-semibold {
    font-size: 16px !important;
  }

  section[style*="background: linear-gradient(180deg"]
    p[style*="font-size: 16px"] {
    font-size: 14px !important;
  }

  .btn {
    padding: 10px 20px !important;
    font-size: 14px !important;
  }

  .btn img[style*="width: 20px"] {
    width: 18px !important;
  }

  .col-6.col-md-2 {
    flex: 0 0 50% !important;
    max-width: 50% !important;
  }

  .p-4.p-lg-5[style*="background: linear-gradient"] {
    padding: 20px !important;
    border-radius: 12px !important;
  }

  .p-4.p-lg-5[style*="background: linear-gradient"] h5 {
    font-size: 16px !important;
  }

  /* Tempat Uji Kompetensi Page */
  section[style*="margin-top: 100px"] {
    margin-top: 110px !important;
  }

  .section-text {
    font-size: 22px !important;
  }

  p[style*="max-width: 800px"] {
    font-size: 14px !important;
  }

  .card-body.p-4 {
    padding: 20px !important;
  }

  .col-auto.d-flex.align-items-center span {
    font-size: 13px !important;
  }

  .form-select-sm {
    font-size: 13px !important;
  }

  .table-responsive {
    overflow-x: auto !important;
  }

  .table thead th {
    font-size: 11px !important;
    padding: 10px 8px !important;
    white-space: nowrap !important;
  }

  .table tbody td {
    font-size: 11px !important;
    padding: 10px 8px !important;
  }

  .table tbody td img {
    width: 40px !important;
    height: 40px !important;
  }

  .badge-tuk {
    font-size: 10px !important;
    padding: 0.4em 0.8em !important;
  }

  .btn[onclick*="showAsesiModal"] {
    font-size: 11px !important;
    padding: 6px 10px !important;
  }

  .pagination-btn {
    width: 32px !important;
    height: 32px !important;
    font-size: 12px !important;
  }

  #paginationInfo {
    font-size: 12px !important;
  }

  .modal-dialog.modal-xl {
    max-width: 95% !important;
    margin: 10px auto !important;
  }

  .modal-header {
    padding: 16px !important;
  }

  .modal-title {
    font-size: 16px !important;
  }

  .modal-body {
    padding: 16px !important;
  }

  #tukName {
    font-size: 16px !important;
  }

  #asesiTable thead th {
    font-size: 10px !important;
    padding: 8px 6px !important;
  }

  #asesiTable tbody td {
    font-size: 10px !important;
    padding: 8px 6px !important;
  }

  .modal-footer {
    padding: 12px 16px !important;
  }

  #asesiCount {
    font-size: 11px !important;
  }

  .search-box-wrapper {
    padding: 0 8px !important;
  }

  .search-box-input {
    font-size: 13px !important;
    padding: 6px 0 !important;
  }

  .search-box-icon {
    font-size: 14px !important;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .section-text {
    font-size: 28px !important;
    font-weight: 600;
    text-align: center;
    line-height: 1.3;
  }

  /* Navbar */
  .navbar-nav {
    align-items: center !important;
    text-align: center !important;
  }

  /* section hero */
  #home-banner {
    margin-top: 10% !important;
  }

  #home-banner .col-lg-6.order-1 {
    margin-top: 0 !important;
  }

  #home-banner .img-fluid {
    max-width: 100%;
    height: auto;
    object-fit: contain;
  }

  #home-banner h1 {
    font-size: 28px !important;
    text-align: left !important;
  }

  #home-banner .lead {
    text-align: left !important;
  }

  #home-banner p {
    text-align: left !important;
  }

  #home-banner .d-flex.flex-wrap.gap-3 {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
    justify-content: flex-start !important;
  }

  #home-banner .d-flex.flex-wrap.gap-3 .btn {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: auto !important;
    max-width: none !important;
    padding: 12px 24px !important;
  }

  .hero-float-card.card-hero-custom {
    position: absolute !important;
  }

  /* section keunggulan */
  .keunggulan-section {
    padding: 40px 10px !important;
  }

  .feature-card {
    padding: 20px !important;
    height: 100% !important;
  }

  .feature-title {
    font-size: 17px !important;
  }

  /* section skema */
  .skema-section {
    padding: 30px 15px !important;
  }

  .skema-section h2.section-text {
    font-size: 24px !important;
    margin-bottom: 2rem !important;
  }

  .skema-section .card > div:first-child {
    height: 160px !important;
  }

  .skema-section .card-body {
    padding: 20px !important;
  }

  .skema-section .card-body h5 {
    font-size: 16px !important;
    min-height: auto !important;
    margin-bottom: 15px !important;
  }

  .skema-section .card-body .small {
    font-size: 12px !important;
    gap: 5px !important;
  }

  .skema-section .fw-semibold.fs-5 {
    font-size: 16px !important;
  }

  /* Pembelian Skema Page - Tablet */
  .container-fluid {
    padding: 20px 20px 0 20px !important;
  }

  .px-5 {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  section[style*="margin-top: 100px"] {
    margin-top: 90px !important;
  }

  .row.d-flex.justify-content-center.text-center.mb-5 h1 {
    font-size: 28px !important;
  }

  .row.d-flex.justify-content-center.text-center.mb-5 span {
    font-size: 16px !important;
  }

  .card .p-4 {
    padding: 24px !important;
  }

  .card h4.fs-20,
  .card h2.fs-20,
  .card h5.fs-20,
  .card h1.fs-20 {
    font-size: 19px !important;
  }

  #myTab .nav-link {
    font-size: 13px !important;
    padding: 10px 14px !important;
  }

  .table th,
  .table td {
    padding: 10px 8px !important;
    font-size: 13px !important;
  }

  /* TUK Mandiri Page - Tablet */
  section[style*="margin-top: 80px"],
  section[style*="margin-top: 100px"] {
    margin-top: 70px !important;
  }

  section[style*="margin-bottom: 80px"] {
    margin-bottom: 70px !important;
  }

  .section-text {
    font-size: 30px !important;
  }

  .card[style*="border-radius: 16px"] h4 {
    font-size: 19px !important;
  }

  .card[style*="border-radius: 16px"] img[style*="width: 60px"] {
    width: 55px !important;
  }

  #accordionFAQ .btn-faq h5 {
    font-size: 17px !important;
  }

  #accordionFAQ .card-body {
    font-size: 15px !important;
  }

  section[style*="background: linear-gradient(180deg"] h2 {
    font-size: 30px !important;
  }

  section[style*="background: linear-gradient(180deg"] p.fw-semibold {
    font-size: 18px !important;
  }

  .col-6.col-md-2 {
    flex: 0 0 33.333333% !important;
    max-width: 33.333333% !important;
  }

  /* Tempat Uji Kompetensi Page - Tablet */
  section[style*="margin-top: 100px"] {
    margin-top: 80px !important;
  }

  .section-text {
    font-size: 28px !important;
  }

  p[style*="max-width: 800px"] {
    font-size: 15px !important;
  }

  .table thead th {
    font-size: 12px !important;
    padding: 12px 10px !important;
  }

  .table tbody td {
    font-size: 12px !important;
    padding: 12px 10px !important;
  }

  .table tbody td img {
    width: 45px !important;
    height: 45px !important;
  }

  .badge-tuk {
    font-size: 11px !important;
  }

  .btn[onclick*="showAsesiModal"] {
    font-size: 12px !important;
  }

  .modal-dialog.modal-xl {
    max-width: 90% !important;
  }

  #asesiTable thead th {
    font-size: 11px !important;
  }

  #asesiTable tbody td {
    font-size: 11px !important;
  }
}

@media (min-width: 992px) {
  #home-banner {
    margin-top: 10% !important;
  }

  .hero-float-card.card-pos-1 {
    animation: float 3s ease-in-out infinite;
  }

  .hero-float-card.card-pos-2 {
    animation: float 3s ease-in-out infinite 0.5s;
  }

  .hero-float-card.card-pos-3 {
    animation: float 3s ease-in-out infinite 1s;
  }

  .section-text {
    font-size: 36px !important;
    font-weight: 600;
    text-align: center;
    line-height: 1.3;
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}
