/* Reset styles for consistent rendering across browsers */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Default body text color */
body {
  color: #111;
}

/* Preloader: Full-screen overlay for loading animation */
.preloader {
  position: fixed;
  inline-size: 100%;
  block-size: 100%;
  background-color: #fff;
  display: grid;
  place-items: center;
}

/* Dark theme for preloader */
.theme-dark .preloader {
  background-color: #111;
  color: #FFF;
}

/* Style for the loading GIF */
.preloader-img {
  display: block;
  animation: animloaderimg 2000ms ease-in-out infinite;
  /* Optional: keep animation */
}

/* Center the GIF in the preloader */
.preloader-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-block-end: 5rem;
}

/* Header: Fixed navigation bar */
.header {
  position: fixed;
  inset-block-start: 0;
  inset-inline-start: 0;
  inline-size: 100%;
  background-color: #fff;
  box-shadow: 0px 6px 12px -3px rgba(4, 97, 165, 0.1);
}

/* Dark theme for header */
.theme-dark .header {
  background-color: #222;
  color: #FFF;
}

/* Invert header icons in dark theme */
.theme-dark .header-icon {
  filter: invert(1);
}

/* Header container with max width */
.header-container {
  max-inline-size: 1290px;
  margin-inline: auto;
  padding: 0.9rem 1.6rem;
  border-radius: 0 0 0.625rem 0.625rem;
}

/* Header top line styling */
.header-top-line {
  padding: 0.1rem;
}

/* Header secondary line with border */
.header-top-line-next {
  padding: 0.8rem;
  height: 0.5px;
  border-bottom: 1px solid #F5F5F5;
}

/* Dark theme for header line */
.theme-dark .header-top-line-next {
  border-color: #F5F5F550;
}

/* Logo sizing */
.header .logo {
  max-block-size: 2.315rem;
}

/* Hide header on smaller screens */
@media (max-width: 1024px) {
  .header {
    display: none;
  }
}

/* Placeholder for UI elements */
.placeholder {
  block-size: 0.825rem;
  inline-size: 3rem;
  background-color: #F5F5F5;
  border-radius: 0.3rem;
}

/* Dark theme for placeholders */
.theme-dark .placeholder {
  background-color: #555;
}

/* Wider placeholder */
.placeholder-wide {
  inline-size: 12rem;
}

/* Common utility classes */
.d-flex {
  display: flex;
}

.align-items-center {
  align-items: center;
}

.justify-content-center {
  justify-content: center;
}

.justify-content-between {
  justify-content: space-between;
}

.flex-column {
  flex-direction: column;
}

.text-center {
  text-align: center;
}

.gap-3 {
  gap: 1rem;
}

.gap-4 {
  gap: 1.5rem;
}

.gap-5 {
  gap: 3rem;
}

/* Animation for the loading GIF (optional) */
@keyframes animloaderimg {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-1rem);
  }

  100% {
    transform: translateY(0);
  }
}