/*--------------------------------------------------------------
# General
--------------------------------------------------------------*/
:root {
  scroll-behavior: smooth;
  --main-color:#fff;
  --second-color:#9c222e;
  --third-color:#C33644;
}

body {
  font-family: "Montserrat", sans-serif;
  background: #f6f9ff;
  color: #444444;
}

.third-color{
    color: var(--third-color);
}


.fs-plus-jakarta {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-optical-sizing: auto;
}


.fs-montserrat {
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
}

.fs-poppins{
  font-family: "Poppins", sans-serif;
  font-optical-sizing: auto;
}

a {
  color: var(--second-color);
  text-decoration: none;
}

a:hover {
  color: var(--third-color);
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Montserrat", sans-serif;
}

.btn.btn-main{
    background-color: var(--third-color);
    border-color: var(--third-color);
    color: var(--main-color);
}

.btn.btn-main:hover{
    background-color: var(--second-color);
}

.table-img{
    max-width: 70px;
}
/*--------------------------------------------------------------
# Main
--------------------------------------------------------------*/
#main {
  margin-top: 60px;
  padding: 20px 30px;
  transition: all 0.3s;
}

@media (max-width: 1199px) {
  #main {
    padding: 20px;
  }
}

/*--------------------------------------------------------------
# Page Title
--------------------------------------------------------------*/
.pagetitle {
  margin-bottom: 10px;
}

.pagetitle h1 {
  font-size: 24px;
  margin-bottom: 0;
  font-weight: 600;
  color: #012970;
}

/*--------------------------------------------------------------
# Back to top button
--------------------------------------------------------------*/
.back-to-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: 15px;
  z-index: 99999;
  background: var(--third-color);
  width: 40px;
  height: 40px;
  border-radius: 4px;
  transition: all 0.4s;
}

.back-to-top i {
  font-size: 24px;
  color: #fff;
  line-height: 0;
}

.back-to-top:hover {
  background: var(--second-color);
  color: #fff;
}

.back-to-top.active {
  visibility: visible;
  opacity: 1;
}

/*--------------------------------------------------------------
# Override some default Bootstrap stylings
--------------------------------------------------------------*/
/* Dropdown menus */
.dropdown-menu {
  border-radius: 4px;
  padding: 10px 0;
  animation-name: dropdown-animate;
  animation-duration: 0.2s;
  animation-fill-mode: both;
  border: 0;
  box-shadow: 0 5px 30px 0 rgba(82, 63, 105, 0.2);
}

.dropdown-menu .dropdown-header,
.dropdown-menu .dropdown-footer {
  text-align: center;
  font-size: 15px;
  padding: 10px 25px;
}

.dropdown-menu .dropdown-footer a {
  color: #444444;
  text-decoration: underline;
}

.dropdown-menu .dropdown-footer a:hover {
  text-decoration: none;
}

.dropdown-menu .dropdown-divider {
  color: #a5c5fe;
  margin: 0;
}

.dropdown-menu .dropdown-item {
  font-size: 14px;
  padding: 10px 15px;
  transition: 0.3s;
}

.dropdown-menu .dropdown-item i {
  margin-right: 10px;
  font-size: 18px;
  line-height: 0;
}

.dropdown-menu .dropdown-item.active,
.dropdown-menu .dropdown-item:hover {
  background-color: var(--third-color);
  color: var(--main-color);
}

@media (min-width: 768px) {
  .dropdown-menu-arrow::before {
    content: "";
    width: 13px;
    height: 13px;
    background: #fff;
    position: absolute;
    top: -7px;
    right: 20px;
    transform: rotate(45deg);
    border-top: 1px solid #eaedf1;
    border-left: 1px solid #eaedf1;
  }
}

@keyframes dropdown-animate {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }

  0% {
    opacity: 0;
  }
}

/* Light Backgrounds */
.bg-primary-light {
  background-color: #cfe2ff;
  border-color: #cfe2ff;
}

.bg-secondary-light {
  background-color: #e2e3e5;
  border-color: #e2e3e5;
}

.bg-success-light {
  background-color: #d1e7dd;
  border-color: #d1e7dd;
}

.bg-danger-light {
  background-color: #f8d7da;
  border-color: #f8d7da;
}

.bg-warning-light {
  background-color: #fff3cd;
  border-color: #fff3cd;
}

.bg-info-light {
  background-color: #cff4fc;
  border-color: #cff4fc;
}

.bg-dark-light {
  background-color: #d3d3d4;
  border-color: #d3d3d4;
}

/* Card */
.card {
  margin-bottom: 30px;
  border: none;
  border-radius: 5px;
  box-shadow: 0px 0 30px rgba(1, 41, 112, 0.1);
}

.card-header,
.card-footer {
  border-color: #ebeef4;
  background-color: #fff;
  color: #798eb3;
  padding: 15px;
}

.card-title {
  padding: 20px 0 15px 0;
  font-size: 18px;
  font-weight: 500;
  color: #012970;
  font-family: "Poppins", sans-serif;
}

.card-title span {
  color: #899bbd;
  font-size: 14px;
  font-weight: 400;
}

.card-body {
  padding: 0 20px 20px 20px;
}

.card-img-overlay {
  background-color: rgba(255, 255, 255, 0.6);
}

/* Alerts */
.alert-heading {
  font-weight: 500;
  font-family: "Poppins", sans-serif;
  font-size: 20px;
}

/* Close Button */
.btn-close {
  background-size: 25%;
}

.btn-close:focus {
  outline: 0;
  box-shadow: none;
}

/* Accordion */
.accordion-item {
  border: 1px solid #ebeef4;
}

.accordion-button:focus {
  outline: 0;
  box-shadow: none;
}

.accordion-button:not(.collapsed) {
  color: #012970;
  background-color: #f6f9ff;
}

.accordion-flush .accordion-button {
  padding: 15px 0;
  background: none;
  border: 0;
}

.accordion-flush .accordion-button:not(.collapsed) {
  box-shadow: none;
  color: #4154f1;
}

.accordion-flush .accordion-body {
  padding: 0 0 15px 0;
  color: #3e4f6f;
  font-size: 15px;
}

/* Breadcrumbs */
.breadcrumb {
  font-size: 14px;
  font-family: "Nunito", sans-serif;
  color: #899bbd;
  font-weight: 600;
}

.breadcrumb a {
  color: #899bbd;
  transition: 0.3s;
}

.breadcrumb a:hover {
  color: #51678f;
}

.breadcrumb .breadcrumb-item::before {
  color: #899bbd;
}

.breadcrumb .active {
  color: #51678f;
  font-weight: 600;
}

/* Bordered Tabs */
.nav-tabs-bordered {
  border-bottom: 2px solid #ebeef4;
}

.nav-tabs-bordered .nav-link {
  margin-bottom: -2px;
  border: none;
  color: #2c384e;
}

.nav-tabs-bordered .nav-link:hover,
.nav-tabs-bordered .nav-link:focus {
  color: var(--third-color);
}

.nav-tabs-bordered .nav-link.active {
  background-color: #fff;
  color: var(--third-color);
  border-bottom: 2px solid var(--third-color);
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
.logo {
  line-height: 1;
}

@media (min-width: 1200px) {
  .logo {
    width: 280px;
  }
}

.logo img {
  max-height: 50px;
  margin-right: 6px;
}

.logo span {
  font-size: 26px;
  font-weight: 700;
  color: var(--third-color);
  font-family: "Nunito", sans-serif;
}

.logo div.ruler{
    height: 30px;
    border:2px solid var(--third-color);
}

.header {
  transition: all 0.5s;
  z-index: 997;
  height: 60px;
  box-shadow: 0px 2px 20px rgba(1, 41, 112, 0.1);
  background-color: var(--main-color);
  padding-left: 20px;
}

/* Toggle Sidebar Button */
.header .toggle-sidebar-btn {
  font-size: 32px;
  padding-left: 10px;
  cursor: pointer;
  color: var(--third-color);
}

/*--------------------------------------------------------------
# Header Nav
--------------------------------------------------------------*/
.header-nav ul {
  list-style: none;
}

.header-nav>ul {
  margin: 0;
  padding: 0;
}

.header-nav .nav-profile {
  color: var(--third-color);
}

.header-nav .nav-profile img {
  max-height: 36px;
}

.header-nav .profile {
  min-width: 240px;
  padding-bottom: 0;
  top: 8px !important;
}

.header-nav .profile .dropdown-header h6 {
  font-size: 18px;
  margin-bottom: 0;
  font-weight: 600;
  color: #444444;
}

.header-nav .profile .dropdown-header span {
  font-size: 14px;
}

.header-nav .profile .dropdown-item {
  font-size: 14px;
  padding: 10px 15px;
  transition: 0.3s;
}

.header-nav .profile .dropdown-item i {
  margin-right: 10px;
  font-size: 18px;
  line-height: 0;
}

.header-nav .profile .dropdown-item:hover {
  background-color: #f6f9ff;
}

/*--------------------------------------------------------------
# Sidebar
--------------------------------------------------------------*/
.sidebar {
  position: fixed;
  top: 60px;
  left: 0;
  bottom: 0;
  width: 300px;
  z-index: 996;
  transition: all 0.3s;
  padding: 20px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #aab7cf transparent;
  box-shadow: 0px 0px 20px rgba(1, 41, 112, 0.1);
  background-color: var(--main-color);
}

@media (max-width: 1199px) {
  .sidebar {
    left: -300px;
  }
}

.sidebar::-webkit-scrollbar {
  width: 5px;
  height: 8px;
  background-color: #fff;
}

.sidebar::-webkit-scrollbar-thumb {
  background-color: #aab7cf;
}

@media (min-width: 1200px) {

  #main,
  #footer {
    margin-left: 300px;
  }
}

@media (max-width: 1199px) {
  .toggle-sidebar .sidebar {
    left: 0;
  }
}

@media (min-width: 1200px) {

  .toggle-sidebar #main,
  .toggle-sidebar #footer {
    margin-left: 0;
  }

  .toggle-sidebar .sidebar {
    left: -300px;
  }
}

.sidebar-nav {
  padding: 0;
  margin: 0;
  list-style: none;
}

.sidebar-nav li {
  padding: 0;
  margin: 0;
  list-style: none;
}

.sidebar-nav .nav-item {
  margin-bottom: 5px;
}

.sidebar-nav .nav-heading {
  font-size: 11px;
  text-transform: uppercase;
  color: #899bbd;
  font-weight: 600;
  margin: 10px 0 5px 15px;
}

.sidebar-nav .nav-link {
  display: flex;
  align-items: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--third-color);
  transition: 0.3;
  background: var(--main-color);
  padding: 10px 15px;
  border-radius: 4px;
}

.sidebar-nav .nav-link i {
  font-size: 16px;
  margin-right: 10px;
  color: var(--third-color);
}

.sidebar-nav .nav-link.collapsed {
  color: var(--second-color);
  background: var(--main-color);
}

.sidebar-nav .nav-link.collapsed i {
  color: #899bbd;
}

.sidebar-nav .nav-link:hover {
  color: var(--third-color);
  background: #f6f9ff;
}

.sidebar-nav .nav-link:hover i {
  color: var(--third-color);
}

.sidebar-nav .nav-link .bi-chevron-down {
  margin-right: 0;
  transition: transform 0.2s ease-in-out;
}

.sidebar-nav .nav-link:not(.collapsed) .bi-chevron-down {
  transform: rotate(180deg);
}

.sidebar-nav .nav-content {
  padding: 5px 0 0 0;
  margin: 0;
  list-style: none;
}

.sidebar-nav .nav-content a {
  display: flex;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--second-color);
  transition: 0.3;
  padding: 10px 0 10px 40px;
  transition: 0.3s;
}

.sidebar-nav .nav-content a i {
  font-size: 14px;
  margin-right: 8px;
  line-height: 0;
  border-radius: 50%;
}

.sidebar-nav .nav-content a:hover,
.sidebar-nav .nav-content a.active {
  color: var(--third-color);
}

.sidebar-nav .nav-content a.active i {
  background-color: var(--third-color);
}

/*--------------------------------------------------------------
# Dashboard
--------------------------------------------------------------*/

/* Info Cards */
.dashboard .info-card {
  padding-bottom: 10px;
}

.dashboard .info-card h6 {
  font-size: 28px;
  color: #012970;
  font-weight: 700;
  margin: 0;
  padding: 0;
}

.dashboard .card-icon {
  font-size: 32px;
  line-height: 0;
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  flex-grow: 0;
}

.dashboard .sales-card .card-icon {
  color: var(--third-color);
  background: #f6f6fe;
}

/* Recent Sales */
.dashboard .recent-sales {
  font-size: 14px;
}


/*--------------------------------------------------------------
# Icons list page
--------------------------------------------------------------*/
.iconslist {
  display: grid;
  max-width: 100%;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
  padding-top: 15px;
}

.iconslist .icon {
  background-color: #fff;
  border-radius: 0.25rem;
  text-align: center;
  color: #012970;
  padding: 15px 0;
}

.iconslist i {
  margin: 0.25rem;
  font-size: 2.5rem;
}

.iconslist .label {
  font-family: var(--bs-font-monospace);
  display: inline-block;
  width: 100%;
  overflow: hidden;
  padding: 0.25rem;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #666;
}

/*--------------------------------------------------------------
# Profie Page
--------------------------------------------------------------*/
.profile .profile-card img {
  max-width: 120px;
}

.profile .profile-card h2 {
  font-size: 24px;
  font-weight: 700;
  color: #2c384e;
  margin: 10px 0 0 0;
}

.profile .profile-card h3 {
  font-size: 18px;
}

.profile .profile-overview .row {
  margin-bottom: 20px;
  font-size: 15px;
}

.profile .profile-overview .card-title {
  color: #012970;
}

.profile .profile-overview .label {
  font-weight: 600;
  color: rgba(1, 41, 112, 0.6);
}

.profile .profile-edit label {
  font-weight: 600;
  color: rgba(1, 41, 112, 0.6);
}

.profile .profile-edit img {
  max-width: 120px;
}

/*--------------------------------------------------------------
# F.A.Q Page
--------------------------------------------------------------*/
.faq .basic h6 {
  font-size: 18px;
  font-weight: 600;
  color: #4154f1;
}

.faq .basic p {
  color: #6980aa;
}

/*--------------------------------------------------------------
# Contact
--------------------------------------------------------------*/
.contact .info-box {
  padding: 28px 30px;
}

.contact .info-box i {
  font-size: 38px;
  line-height: 0;
  color: #4154f1;
}

.contact .info-box h3 {
  font-size: 20px;
  color: #012970;
  font-weight: 700;
  margin: 20px 0 10px 0;
}

.contact .info-box p {
  padding: 0;
  line-height: 24px;
  font-size: 14px;
  margin-bottom: 0;
}

.contact .php-email-form .error-message {
  display: none;
  color: #fff;
  background: #ed3c0d;
  text-align: left;
  padding: 15px;
  margin-bottom: 24px;
  font-weight: 600;
}

.contact .php-email-form .sent-message {
  display: none;
  color: #fff;
  background: #18d26e;
  text-align: center;
  padding: 15px;
  margin-bottom: 24px;
  font-weight: 600;
}

.contact .php-email-form .loading {
  display: none;
  background: #fff;
  text-align: center;
  padding: 15px;
  margin-bottom: 24px;
}

.contact .php-email-form .loading:before {
  content: "";
  display: inline-block;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  margin: 0 10px -6px 0;
  border: 3px solid #18d26e;
  border-top-color: #eee;
  animation: animate-loading 1s linear infinite;
}

.contact .php-email-form input,
.contact .php-email-form textarea {
  border-radius: 0;
  box-shadow: none;
  font-size: 14px;
  border-radius: 0;
}

.contact .php-email-form input:focus,
.contact .php-email-form textarea:focus {
  border-color: #4154f1;
}

.contact .php-email-form input {
  padding: 10px 15px;
}

.contact .php-email-form textarea {
  padding: 12px 15px;
}

.contact .php-email-form button[type=submit] {
  background: #4154f1;
  border: 0;
  padding: 10px 30px;
  color: #fff;
  transition: 0.4s;
  border-radius: 4px;
}

.contact .php-email-form button[type=submit]:hover {
  background: #5969f3;
}

@keyframes animate-loading {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/*--------------------------------------------------------------
# Error 404
--------------------------------------------------------------*/
.error-404 {
  padding: 30px;
}

.error-404 h1 {
  font-size: 180px;
  font-weight: 700;
  color: #4154f1;
  margin-bottom: 0;
  line-height: 150px;
}

.error-404 h2 {
  font-size: 24px;
  font-weight: 700;
  color: #012970;
  margin-bottom: 30px;
}

.error-404 .btn {
  background: #51678f;
  color: #fff;
  padding: 8px 30px;
}

.error-404 .btn:hover {
  background: #3e4f6f;
}

@media (min-width: 992px) {
  .error-404 img {
    max-width: 50%;
  }
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.footer{
    background-color: var(--main-color);
    position: relative;
    transition: all 0.3s;
    min-height: 47vh;
  box-shadow: 0px 0 30px rgba(1, 41, 112, 0.1);

}

/* .footer img{
    height: 75px;
} */

/*--------------------------------------------------------------
# DataTable
--------------------------------------------------------------*/
.active>.page-link, .page-link.active{
    color: var(--main-color) !important;
    background-color: var(--third-color) !important;
    border-color: var(--third-color) !important;
}

div.dt-buttons.btn-group.flex-wrap button{
    background-color: var(--second-color);
    border: var(--second-color);
}

.paginate_button.page-item .page-link{
    color: var(--second-color);
}

/*--------------------------------------------------------------
# Login
--------------------------------------------------------------*/
.col-lg-6.main-color{
    background-color: var(--third-color);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.carousel {
    animation: fadeIn 2s;
}

.carousel-inner {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.carousel-item {
    height: auto !important;
    align-self: center;
}

.carousel img {
    max-height: 630px;
    width: 300px;
    display: block;
    margin: 0;
}

.anchor:hover{
    color: black;
}

.spasi-atas {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;  /* Menyelaraskan konten secara horizontal di tengah */
    height: 100%;  /* Anda mungkin perlu menyesuaikan ini sesuai kebutuhan */
    text-align: center;
}

/*--------------------------------------------------------------
# Register
--------------------------------------------------------------*/
.step {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    text-align: center;
    cursor: pointer;
}

.step.active {
    background-color: #007bff;
    color: var(--main-color);
}

/* Menyembunyikan semua bagian dari formulir */
.form-section {
    display: none;
}

/* Menampilkan bagian pertama dari formulir sebagai default */
.form-section.current {
    display: block;
}

/*--------------------------------------------------------------
# Header landing page
--------------------------------------------------------------*/
#landing-nav{
    font-family: "Poppins", sans-serif;
}

/* Global Styles (untuk layar di bawah 992px) */
#landing-nav .nav-pills .nav-item .nav-link {
    color: var(--third-color); /* Warna teks default */
    background-color: transparent; /* Background default transparan */
    position: relative;
    transition: background-color 0.3s ease, color 0.3s ease; /* Animasi untuk background dan teks */
}

#landing-nav .nav-pills .nav-item .nav-link:hover,
#landing-nav .nav-pills .nav-item .nav-link.active {
    background-color: var(--third-color); /* Warna background merah saat hover dan aktif */
    color: var(--main-color); /* Warna teks putih saat hover dan aktif */
}

/* Styles untuk layar di atas 992px */
@media (min-width: 992px) {
    #landing-nav .nav-pills .nav-item .nav-link::after,
    #landing-nav .nav-pills .nav-item .nav-link.active::after {
        content: "";
        display: block;
        width: 0;
        height: 2px; /* Tebal underline */
        background-color: var(--third-color); /* Warna underline */
        position: absolute;
        bottom: -5px; /* Jarak underline dari teks */
        left: 50%;
        transition: width 0.4s ease-in-out; /* Animasi underline dari kiri ke kanan */
        transform: translateX(-50%);
        border-radius: 2px;
    }

    #landing-nav .nav-pills .nav-item .nav-link:hover::after {
        width: 80%; /* Lebar underline saat hover */
    }

    #landing-nav .nav-pills .nav-item .nav-link.active::after {
        width: 80%; /* Lebar underline saat aktif */
    }
}

/*--------------------------------------------------------------
# footer landing page
--------------------------------------------------------------*/
.footer-map iframe{
    width: 360px;
}

@media (min-width: 768px) {
    #footer-landing .footer-map iframe{
        width: 600px;
    }
}

@media (min-width: 1200px) {
    #footer-landing .footer-map iframe{
        width: 1000px;
    }
}


@media (min-width: 1400px) {
    #footer-landing .footer-map iframe{
        width: 400px;
    }

    #footer .footer-map iframe{
        width: 400px;
    }
}

/*--------------------------------------------------------------
# beranda landing page
--------------------------------------------------------------*/
.single-carousel{
    height: 700px;
    width: 100%;
}

.single-carousel .card {
    /* height: 290px; */
    width: 100%; /* Pastikan card mengambil 100% lebar container */
    display: flex;
    align-items: center; /* Untuk memastikan konten gambar di-center */
    justify-content: center; /* Untuk memastikan konten gambar di-center */
}


.slick-prev,
.slick-next{
    /* color: var(--main-color); */
    background-color: transparent;
    border: 0px solid transparent;
}

.single-carousel .slick-slide {
    transition: transform 0.3s ease, opacity 0.3s ease; /* Efek transisi */
    opacity: 0.5;
    transform: scale(0.93);
}

.single-carousel .card.slick-slide.slick-current.slick-active.slick-center {
    transform: scale(1); /* Memperbesar gambar di tengah */
    opacity: 1; /* Opacity penuh untuk gambar di tengah */
}

@media (max-width: 993px) {
    .single-carousel{
        height: 400px;
        width: 100%;
    }
}

@media (max-width: 769px) {
    .single-carousel{
        height: 100%;
        width: 100%;
    }
}

/*--------------------------------------------------------------
# agenda landing page
--------------------------------------------------------------*/
button.no-outline:focus,
button.no-outline:active {
    outline: none;
    border: none;
    box-shadow: none;
}
