body {
  font-family: "Poppins", sans-serif;
  background-color: #fff;
  margin: 0;
  padding: 0;
}

.login-container {
  display: flex;
  width: 100%;
  max-width: 1100px;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  margin: 50px auto;
}

.login-left,
.login-right {
  flex: 1;
  padding: 60px 50px;
  background-color: #fff;
}

.login-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.logo img {
  width: 100px;
  height: auto;
  margin-bottom: 40px;
}

h5 {
  font-weight: 600;
  margin-bottom: 8px;
  color: #222;
}

p {
  color: #000;
  margin-bottom: 25px;
}

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

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  padding: 10px;
  cursor: pointer;
  font-weight: 500;
  transition: 0.2s ease;
}

.social-btn:hover {
  background: #f9f9f9;
}

.social-btn img {
  width: 20px;
  height: 20px;
}

.divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 30px 0;
  color: #999;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #ddd;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.login-form input {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #ddd;
  outline: none;
}

.showpw {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: #666;
}

.btn-signin {
  background: #222;
  color: white;
  border: none;
  padding: 10px;
  border-radius: 8px;
  margin-top: 10px;
  cursor: pointer;
  transition: 0.3s;
}

.btn-signin:hover {
  background: #000;
}

.signup-text {
  text-align: center;
  margin-top: 20px;
  font-size: 0.9rem;
}

.signup-text a {
  color: #007bff;
  text-decoration: none;
}

.login-right {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: #222;
  text-align: center;
}

.login-right img {
  width: 100%;
  max-width: 400px;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.brand-title h2 {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
}

.brand-blue {
  color: #1e3a8a;
}

.brand-yellow {
  color: #fbbf24;
}

.brand-sub {
  color: #000;
  margin-top: 8px;
  font-size: 0.95rem;
}

@media (max-width: 900px) {
  .login-container {
    flex-direction: column;
    box-shadow: none;
    border-radius: 0;
  }

  .login-right {
    display: none;
  }

  .login-left {
    padding: 40px 30px;
  }
}

.brand-yellow {
  margin-left: 6px;
}

.brand-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px;
}

.brand-logo img {
  width: 500px;
  height: auto;
  object-fit: contain;
  border-radius: 16px;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
  transition: transform 0.4s ease;
}

.brand-title h2 {
  margin: 0 0 6px 0;
  font-size: 34px;
  line-height: 1;
  font-weight: 700;
  color: #111827;
}

.brand-blue {
  color: #007bff;
}
.brand-yellow {
  color: #ffc107;
}

.brand-sub {
  margin: 0;
  color: #6b7280;
  font-size: 15px;
}

@media (max-width: 768px) {
  .login-right {
    padding: 40px 20px;
  }
  .brand-box {
    padding: 30px 20px;
  }
  .brand-logo img {
    width: 90px;
  }
  .brand-name {
    font-size: 28px;
  }
  .brand-sub {
    font-size: 14px;
  }
}

@media (max-width: 768px) {
  .brand-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .brand-title h2 {
    font-size: 28px;
  }
}

.slider-wrap {
  position: relative;
}

.nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: #ffffff;
  color: #0d6efd;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.nav-arrow:hover {
  background: #0d6efd;
  color: #fff;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 4px 14px rgba(13, 110, 253, 0.4);
}

.nav-arrow.left {
  left: -25px;
}

.nav-arrow.right {
  right: -25px;
}

@media (max-width: 768px) {
  .nav-arrow {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }

  .nav-arrow.left {
    left: -10px;
  }

  .nav-arrow.right {
    right: -10px;
  }
}

.cat-dropdown.show {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.nav-item.categories {
  position: relative;
}

.cat-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  margin-top: 7px;
  background: #fff;
  border-top: 3px solid #5869da;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  padding: 30px 60px;
  display: none;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 1000;
}

.nav-item.categories {
  position: relative;
}

.nav-item.categories::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 20px;
}

.main-menu {
  flex-wrap: nowrap !important;
  white-space: nowrap;
}

.main-menu li {
  flex: 0 0 auto;
}

.cat-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 50px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cat-label {
  font-weight: 700;
  font-size: 16px;
  color: #000;
  margin-bottom: 10px;
  display: block;
}

.cat-submenu ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.cat-sub-link {
  display: block;
  padding: 5px 0;
  color: #000;
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.cat-sub-link:hover {
  color: #5869da;
}

.cat-empty {
  color: #999;
  font-size: 14px;
  padding: 5px 0;
}

.cat-row:hover .cat-label {
  color: #000;
}

.cat-dropdown {
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.25s ease;
}

.cat-dropdown.show {
  display: block;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.btn-view-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(90deg, #007bff, #0056d2);
  color: #fff;
  font-weight: 500;
  border: none;
  border-radius: 50px;
  padding: 10px 22px;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 123, 255, 0.25);
}

.btn-view-more:hover {
  background: linear-gradient(90deg, #0056d2, #003fa3);
  box-shadow: 0 6px 14px rgba(0, 86, 210, 0.35);
  transform: translateY(-2px);
  color: #fff;
}

.btn-view-more i {
  transition: transform 0.3s ease;
}

.btn-view-more:hover i {
  transform: translateX(4px);
}

.loop-list {
  display: flex;
  justify-content: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}

.dl-item {
  flex: 0 0 23%;
  margin-bottom: 20px;
}

.dl-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  background-color: #fff;
  transition: transform 0.3s ease-in-out;
  overflow: hidden;
}

.dl-card:hover {
  transform: translateY(-10px);
}

.dl-thumb {
  height: 200px;
  background-size: cover;
  background-position: center;
  border-bottom: 2px solid #eee;
}

.dl-body {
  padding: 15px;
  flex-grow: 1;
}

.dl-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 8px;
}

.leading-relaxed {
  line-height: 1.6;
  font-size: 14px;
}

.text-black {
  color: #000;
}

.intro-section {
  background-color: #f9fafb;
  color: #333;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  padding: 60px 0;
}

.intro-heading .intro-title {
  color: #222;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  position: relative;
}

.intro-underline {
  border-radius: 5px;
  width: 50px;
  height: 5px;
  background-color: #007bff;
  margin-top: 10px;
}

.intro-figure img {
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  width: 470px;
  height: auto;
  transition: transform 0.3s ease;
}

.intro-figure img:hover {
  transform: scale(1.2);
}
.intro-text .intro-subtitle {
  font-weight: 600;
  color: #007bff;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.intro-text p {
  max-width: 1500px;
  margin: 0 auto;
  line-height: 1.8;
  color: #000000;
  text-align: justify;
  padding: 0 20px;
}

.intro-card {
  background: #fff;
  border-radius: 12px;
  transition: all 0.3s ease;
  border: 1px solid #e0e0e0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 100%;
  padding: 20px;
}
.intro-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 123, 255, 0.15);
  border-color: #007bff;
}

.intro-card-title {
  color: #000000;
  font-weight: 700;
  text-transform: uppercase;
  border-bottom: 2px solid #007bff;
  padding-bottom: 8px;
  margin-bottom: 15px;
}

.intro-list li {
  display: flex;
  align-items: start;
  gap: 8px;
  margin-bottom: 10px;
  color: #000000;
  line-height: 1.6;
  transition: color 0.2s ease;
}

.intro-list li span:first-child {
  color: #007bff;
  font-weight: bold;
  margin-right: 6px;
}

.intro-list li:hover {
  color: #007bff;
  cursor: default;
}

@media (max-width: 768px) {
  .intro-text p {
    padding: 0 10px;
  }

  .intro-heading .intro-title {
    font-size: 2rem;
  }

  .intro-services .intro-card {
    margin-bottom: 20px;
  }

  .intro-services .intro-card-title {
    margin-bottom: 25px;
  }

  .intro-services .intro-card {
    height: auto;
  }
}
.intro-services .intro-card {
  flex: 1 1 calc(50% - 20px);
  min-height: 300px;
}

.intro-services .intro-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.intro-list li {
  margin-bottom: 10px;
}

.intro-list {
  list-style: none;
  padding-left: 0;
  flex-grow: 1;
}

.intro-services {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 30px;
}

.main-nav .nav-item {
  position: relative;
}

.main-nav .nav-link {
  transition: all 0.3s ease;
  padding: 10px 15px;
  display: flex;
  align-items: center;
}

.main-nav .nav-item:hover .nav-link,
.main-nav .nav-link:hover {
  background-color: #f1f1f1;
  color: #fff;
  border-radius: 25px;
  transform: translateY(-2px);
}

.main-nav .nav-item:hover .nav-link .elegant-icon {
  color: #5869da;
  transform: scale(1.2);
  transition: transform 0.3s ease, color 0.3s ease;
}

.main-nav .nav-item.categories:hover .nav-link {
  color: #fff;
  background-color: #f1f1f1;
}

.main-nav .cat-dropdown {
  transition: opacity 0.3s ease;
  opacity: 0;
  visibility: hidden;
}

.main-nav .nav-item.categories:hover .cat-dropdown {
  opacity: 1;
  visibility: visible;
}

.main-nav .cat-dropdown .cat-row {
  transition: background-color 0.3s ease;
}

.card-custom {
  transition: all 0.3s ease;
  background: #fff;
}

.card-custom:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.card-custom .post-thumb {
  transition: all 0.4s ease;
  filter: brightness(0.95);
}

.card-custom:hover .post-thumb {
  transform: scale(1.05);
  filter: brightness(1.1);
}

.card-custom .post-title {
  transition: color 0.3s ease;
}

.page-link {
  transition: all 0.3s ease;
}

.page-link:hover {
  background-color: #007bff;
  color: white;
  border-color: #007bff;
}

.toolbar {
  border-radius: 0.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

@media (max-width: 576px) {
  .toolbar > .text-end {
    text-align: left !important;
    width: 100%;
  }
}

.fixed-width {
  max-width: 1000px;
  white-space: normal;
  word-wrap: break-word;
}

.cat-item {
  color: #000000;
  transition: color 0.3s ease;
  cursor: pointer;
}

.cat-item:hover {
  color: #007bff;
}

.sidebar-toggle-wrapper {
  position: fixed;
  right: 20px;
  top: 4%;
  transform: translateY(-50%);
  z-index: 1050;
  background: transparent;
  border: 0;
  padding: 0;
  line-height: 1;
}

@media (min-width: 992px) {
  .sidebar-toggle-wrapper {
    display: none;
  }
}

.logo-wrap {
  position: relative;
  width: 150px;
  height: 50px;
  overflow: hidden;
  right: 100px;
}

.col-6.d-flex {
  justify-content: flex-start !important;
  padding-left: 0 !important;
}

.subcategory-wrapper {
  max-height: 1000px;
  opacity: 1;
  transform: translateY(0);
  transition: max-height 0.5s ease-in-out, opacity 0.4s ease-in-out,
    transform 0.4s ease-in-out, padding 0.3s ease-in-out,
    margin 0.3s ease-in-out;
  overflow: hidden;
  will-change: max-height, opacity, transform;
}

.subcategory-wrapper.hidden {
  max-height: 0;
  opacity: 0;
  transform: translateY(-15px);
  padding: 0;
  margin: 0;
}

.create-category-wrapper {
  background-color: #f8f9fa;
  border-radius: 0 0 10px 10px;
  transition: all 0.4s ease-in-out;
}

.hover-up {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hover-up:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.card-header {
  background-color: #f8f9fa;
  border-bottom: 1px solid #e0e0e0;
}

.card-header i {
  font-size: 1rem;
}

.card-header .btn {
  transition: all 0.25s ease;
}

.card-header .btn:hover {
  transform: translateY(-1px);
}

.modal {
  display: block !important;
  background: rgba(0, 0, 0, 0.5);
}

.modal-dialog {
  margin-top: 10vh;
}

.img-clickable {
  cursor: pointer;
  transition: transform 0.2s ease;
}

.img-clickable:hover {
  transform: scale(1.05);
}

.hover-zoom {
  cursor: pointer;
  transition: transform 0.2s ease;
}

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

.toggle-switch {
  width: 40px;
  height: 20px;
  border-radius: 20px;
  display: inline-block;
  position: relative;
  cursor: pointer;
  transition: background-color 0.3s;
}

.toggle-switch.inactive {
  background-color: #e74c3c;
}

.toggle-switch.active {
  background-color: #2ecc71;
}

.toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: white;
  transition: transform 0.3s;
}

.toggle-switch.active .toggle-thumb {
  transform: translateX(20px);
}

.action-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.icon-cus {
  display: inline-block;
  transition: transform 0.3s ease;
  animation: floatIcon 2s ease-in-out infinite;
}

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

.icon-cus:nth-child(1) {
  animation-delay: 0s;
}

.icon-cus:nth-child(2) {
  animation-delay: 0.4s;
}

.icon-cus:nth-child(3) {
  animation-delay: 0.8s;
}

.icon-cus:hover {
  animation: shakeIcon 0.4s ease-in-out;
  transform: scale(1.15);
}

@keyframes shakeIcon {
  0%,
  100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(5deg);
  }
  75% {
    transform: rotate(-5deg);
  }
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.post-card:hover img {
  transform: scale(1.05);
}

.hover-lift-sm {
  transition: all 0.2s ease;
}

.hover-lift-sm:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.hover-zoom:hover {
  transform: scale(1.05);
  filter: brightness(1.15);
}

@media (max-width: 768px) {
  .hide-mobile {
    display: none !important;
  }

  table.table {
    font-size: 14px;
  }

  .table td,
  .table th {
    padding: 8px;
    vertical-align: middle;
  }

  .table button.btn {
    padding: 4px 6px;
    font-size: 13px;
  }
}

@media (max-width: 991px) {
  .translate-x-0 {
    transform: translateX(0) !important;
  }

  .-translate-x-full {
    transform: translateX(-100%) !important;
  }
}

@media (max-width: 768px) {
  #layoutSidenav_nav {
    position: fixed;
    left: -250px;
    top: 56px;
    width: 250px;
    height: calc(100% - 56px);
    background: #343a40;
    transition: left 0.3s ease;
    z-index: 1040;
  }

  body.sb-sidenav-toggled #layoutSidenav_nav {
    left: 0;
  }

  body.sb-sidenav-toggled::before {
    display: none !important;
  }
}

.sidebar-logo-wrapper {
  width: 100%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo-wrapper {
  position: relative;
  width: 120px;
  height: 45px;
  display: flex;
  justify-content: center;
  align-items: center;
}

@media (max-width: 767px) {
  .logo-wrapper {
    width: 90px;
    height: 35px;
  }

  .sidebar-logo-wrapper {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
  }
}

.sidebar-light {
  background-color: #cfcfcf;
  border-right: 1px solid #ddd;
}

.sidebar-light .nav-link {
  color: #333;
}

.sidebar-light .nav-link:hover {
  background-color: #f5f5f5;
}

.nav-item.dropdown {
  position: relative;
}

.nav-item.dropdown {
  position: relative;
}

:root {
  --header-h: 80px;
}

.main-header.is-fixed {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1050;
  background: #fff;
}

.header-spacer {
  height: var(--header-h);
}

.logo-wrap {
  position: relative;
  width: 160px;
  height: 48px;
}

.header-sticky {
  overflow: visible !important;
  transform: none !important;
}

/* html, body { height: auto; overflow: auto; }

main { overflow-y: auto; } */

.break-line {
  white-space: pre-wrap;
  word-wrap: break-word;
  max-width: 700px;
}

.dl-card-link {
  text-decoration: none;
}
