@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@100..900&display=swap');

:root{
  --bs-primary: #1F96C3;
  --bs-secondary: #29A05B;
  --bs-dark-primary: #21262C;
  --bs-dark: #0A141E;
  --bs-light-dark: #0C1E30;
  --bs-gray: #CED4DA;
  --bs-white-smoke: #FEFEFE; 
}


html {
  scroll-behavior: smooth;
}

body {
  font-family: "Lexend", sans-serif;
}

ul {
  padding: 0;
  margin: 0;
}

ul li {
  list-style: none;
  padding: 0;
  margin: 0;
}

input {
  border: none;
  appearance: none;
}

/* Navbar */

.navbar-clone {
  /* display: none; */
  padding-block: 1rem;
}

.navbar-collapse {
  max-width: max-content;
}

.navbar-collapse-wrapper {
  box-shadow: 0 5px 15px 0 rgba(30, 34, 40, 0.05) !important;
}

.alert {
  padding: 15px;
  position: relative;
}

.alert.alert-success{
  background-color: #d4edda;
  border: 1px solid green;
  color: #155724;
}

.alert.alert-danger{
  border: 1px solid red;
  background-color: #f8d7da;
  color: #721c24;
}

.alert .btn-close {
  position: static !important;
  background: transparent;
  border: none;
  font-size: 16px;
  cursor: pointer;
}

.frm-comment--submit{
  display: flex;
  align-items: center;
  gap: 12px;
}

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

.loading-state {
  font-size: 24px;
  display: none;
}

.loading-state.is-visible {
  display: inline-block;
  animation: spin 1s linear infinite;
}

.custom-dropzone {
  border: 2px dashed #007bff;
  border-radius: 8px;
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.3s ease, background-color 0.3s ease;
  position: relative;
  color: #444;
}

.preview-container {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: end;
  z-index: 10;
  margin-bottom: 12px;
}

.preview-container img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #ccc;
}

.preview-btn{
  color: var(--bs-primary);
}

.delete-btn{
  color: var(--bs-danger);
}

.preview-btn,
.delete-btn {
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.preview-btn:hover,
.delete-btn:hover {
  background-color: #f8f8f8;
}


.custom-dropzone:hover {
  background-color: #f1f9ff;
  border-color: #0056b3;
}

.custom-dropzone .uil-cloud-upload {
  font-size: 40px;
  color: #007bff;
  margin-bottom: 10px;
}

.custom-dropzone p {
  margin: 0;
  font-size: 14px;
}

.custom-dropzone .browse-btn {
  color: #007bff;
  font-weight: bold;
  text-decoration: underline;
  cursor: pointer;
}

.file-name {
  margin-top: 10px;
  font-size: 13px;
  color: #555;
}

.message-error--dropzone{
  font-size: 12px;
  margin-top: 16px;
  display: inline-block;
  color: var(--bs-danger);
}


.switch {
  position: relative !important;
  display: inline-block;
  width: 40px;
  height: 24px;
}

.switch input { 
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute !important;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

.switch input:checked + .slider {
  background-color: #2196F3;
}

.switch input:focus + .slider {
  box-shadow: 0 0 1px #2196F3;
}

.switch input:checked + .slider:before {
  -webkit-transform: translateX(16px);
  -ms-transform: translateX(16px);
  transform: translateX(16px);
}

/* Rounded sliders */
.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

.switch input:checked + .slider {
  background-color: #2196F3;
}

.join-test-disc{
  width: max-content !important;
}

/* Background Colors */

.gradient-bg {
  background: linear-gradient(135deg, #0C1E30 0%, #0C1D2E 50%, #29A05B 100%);
  color: white;
}

.bg-gradient-primary {
  background: linear-gradient(94deg, #1F96C3 0%, #29A05B 100%);
}

.bg-dark-primary {
  background-color: var(--bs-dark-primary);
}

.bg-light-dark {
  background-color: var(--bs-light-dark);
}

.bg-dark {
  background-color: var(--bs-dark);
}

/* Texts */

.gradient-text {
  background: linear-gradient(90deg, #1F96C3, #29A05B);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-primary {
  display: inline-block; /* penting untuk background-clip bekerja */
  background: linear-gradient(90deg, var(--bs-primary) 0%, var(--bs-secondary) 100%);
  background-size: 100%;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.text-secondary {
  color: var(--bs-secondary) !important;
}

.text-gray-primary {
  color: var(--bs-gray);
}

/* Borders */

.border-gradient-primary {
  position: relative;
  border-radius: 12px;
  z-index: 0; /* supaya pseudo-element berada di belakang */
}

.border-gradient-primary::before {
  content: "";
  position: absolute;
  inset: 0; /* isi seluruh area */
  border-radius: 12px;
  padding: 4px; /* ketebalan border */
  background: linear-gradient(90deg, var(--bs-primary), var(--bs-secondary)); /* gradient border */
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none; /* biar tidak ganggu klik */
  z-index: -1;
}

/* Buttons */

a, button {
  border: none !important;
  appearance: none !important;
  outline: none !important;
}

.btn-white {
  background: white;
}

.btn-secondary {
  background-color: var(--bs-secondary);
  color: white;
}

/* Forms */

.form-group-label {
  font-weight: 600;
}

.form-group-input {
  display: block;
  width: 100%;
  border: 1px solid rgba(8, 60, 130, 0.07);
  box-shadow: 0 0 25px 0 rgba(30, 34, 40, 0.04);
  background: white;
  color: #333;
}

/* Hero Section */
.hero-image-frame {
  width: 100%;
  /* max-width: 500px; */
  aspect-ratio: 4/5;
  border-radius: 20px;
  overflow: hidden;
  margin: 0 auto;
}

.hero-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Konten wrapper */
.content-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Judul */
.gradient-title {
  font-family: 'Lexend', sans-serif;
  font-weight: 700;
  font-size: 70px;
  line-height: 80px;
  background: linear-gradient(90deg, var(--bs-primary), var(--bs-green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-primary-root {
  color: var(--bs-primary);
}

.lead {
  color: white;
  max-width: 500px;
}

/* Swiper */

.swiper-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 1;
  display: flex;
  transition-property: transform;
  transition-timing-function: var(--swiper-wrapper-transition-timing-function, initial);
  box-sizing: content-box;
}
.swiper-android .swiper-slide, .swiper-ios .swiper-slide, .swiper-wrapper {
    transform: translate3d(0, 0, 0);
}
.swiper-horizontal {
    touch-action: pan-y;
}
.swiper-vertical {
    touch-action: pan-x;
}
.swiper-slide {
    flex-shrink: 0;
    width: 100%;
    height: 100%;
    position: relative;
    transition-property: transform;
    display: block;
}
.swiper-button-next, .swiper-button-prev {
    position: absolute;
    top: var(--swiper-navigation-top-offset, 50%);
    width: calc(var(--swiper-navigation-size)/ 44 * 27);
    height: var(--swiper-navigation-size);
    margin-top: calc(0px - (var(--swiper-navigation-size)/ 2));
    z-index: 10;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--swiper-navigation-color, var(--swiper-theme-color));
}
.swiper-button-next.swiper-button-disabled, .swiper-button-prev.swiper-button-disabled {
    opacity: .35;
    cursor: auto;
    pointer-events: none;
}
.swiper-button-next.swiper-button-hidden, .swiper-button-prev.swiper-button-hidden {
    opacity: 0;
    cursor: auto;
    pointer-events: none;
}
.swiper-navigation-disabled .swiper-button-next, .swiper-navigation-disabled .swiper-button-prev {
    display: none!important;
}
.swiper-button-next svg, .swiper-button-prev svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform-origin: center;
}
.swiper-rtl .swiper-button-next svg, .swiper-rtl .swiper-button-prev svg {
    transform: rotate(180deg);
}
.swiper-button-prev, .swiper-rtl .swiper-button-next {
    left: var(--swiper-navigation-sides-offset, 10px);
    right: auto;
}
.swiper-button-next, .swiper-rtl .swiper-button-prev {
    right: var(--swiper-navigation-sides-offset, 10px);
    left: auto;
}
.swiper-button-lock {
    display: none;
}
.swiper-button-next:after, .swiper-button-prev:after {
    font-family: swiper-icons;
    font-size: var(--swiper-navigation-size);
    text-transform: none!important;
    letter-spacing: 0;
    font-variant: initial;
    line-height: 1;
}
.swiper-button-prev:after, .swiper-rtl .swiper-button-next:after {
    content: 'prev'}
.swiper-button-next, .swiper-rtl .swiper-button-prev {
    right: var(--swiper-navigation-sides-offset, 10px);
    left: auto;
}
.swiper-button-next:after, .swiper-rtl .swiper-button-prev:after {
    content: 'next'}
.swiper-pagination {
    position: absolute;
    text-align: center;
    transition: .3s opacity;
    transform: translate3d(0, 0, 0);
    z-index: 10;
}
.swiper-pagination.swiper-pagination-hidden {
    opacity: 0;
}
.swiper-pagination-disabled>.swiper-pagination, .swiper-pagination.swiper-pagination-disabled {
    display: none!important;
}

/* Responsive */
@media (max-width: 992px) {
  .lead {
    max-width: max-content;
  }

  .navbar-collapse {
    max-width: inherit;
  }
  
}
@media (max-width: 768px) {
  .gradient-title {
    font-size: 40px;
    line-height: 50px;
  }
}