:root {
  --bs-primary: #5b6fa8;
  --bs-primary-rgb: 91, 111, 168;
  --bs-secondary: #9eb3d8;
  --bs-secondary-rgb: 158, 179, 216;
  --bs-dark: #2c365e;
  --bs-dark-rgb: 44, 54, 94;
  --bs-body-font-family: "BPG Glaho WEB", serif;
  --bs-border-radius: 0.75rem;
  --bs-border-radius-lg: 1rem;
  --bs-border-radius-xl: 1.5rem;
}
html[lang="en"] {
  --bs-body-font-family: "Inter", "Segoe UI", sans-serif;
}


html {
  scroll-behavior: smooth;
}

body {
  font-family: "BPG Glaho WEB", serif;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "BPG Glaho WEB", serif;
}

.btn {
  font-family: "BPG Glaho WEB", serif;
}

.bg-primary-custom {
  background-color: #5b6fa8 !important;
}

.text-primary-custom {
  color: #5b6fa8 !important;
}

.bg-primary-dark-custom {
  background-color: #2c365e !important;
}

.text-primary-dark-custom {
  color: #2c365e !important;
}

.bg-secondary-custom {
  background-color: #9eb3d8 !important;
}

.text-secondary-custom {
  color: #9eb3d8 !important;
}

.bg-light-blue {
  background-color: #c8d5ed !important;
}

.text-light-blue {
  color: #c8d5ed !important;
}

.bg-primary-gradient {
  background: linear-gradient(135deg, #5b6fa8, #3d4a7a);
}

.bg-secondary-gradient {
  background: linear-gradient(135deg, #7b8fc4, #5b6fa8);
}

.bg-tertiary-gradient {
  background: linear-gradient(135deg, #9eb3d8, #7b8fc4);
}

.bg-light-gradient {
  background: linear-gradient(135deg, #f0f4f9, #e3ebf4);
}

.bg-page-gradient {
  background: linear-gradient(135deg, #f5f8fc, #e8f0f8);
}

.text-heading {
  color: #1a2342;
}

.text-body-custom {
  color: #4a5578;
}

.shadow-custom {
  box-shadow: 0 0.25rem 0.75rem rgba(44, 54, 94, 0.1);
}

.shadow-custom-lg {
  box-shadow: 0 0.5rem 1.5rem rgba(44, 54, 94, 0.15);
}

.shadow-custom-xl {
  box-shadow: 0 1rem 2rem rgba(44, 54, 94, 0.2);
}

.border-primary-custom {
  border-color: #5b6fa8 !important;
}

.border-primary-dark-custom {
  border-color: #2c365e !important;
}

.border-secondary-custom {
  border-color: #9eb3d8 !important;
}

.border-light-blue {
  border-color: #c8d5ed !important;
}

.border-0 {
  border-width: 0px !important;
}

.border-1 {
  border-width: 2px !important;
}

.border-2 {
  border-width: 4px !important;
}

.border-3 {
  border-width: 6px !important;
}

.border-4 {
  border-width: 8px !important;
}

.border-5 {
  border-width: 10px !important;
}

.rounded-1 {
  border-radius: 0.25rem;
}

.rounded-2 {
  border-radius: 0.5rem;
}

.rounded-3 {
  border-radius: 0.75rem;
}

.rounded-4 {
  border-radius: 1rem;
}

.font-crimson {
  font-family: "Crimson Text", serif;
}

.font-garamond {
  font-family: "EB Garamond", serif;
}

.font-geo {
  font-family: "BPG Glaho WEB", serif;
}

.transition-all {
  transition: all 0.3s ease;
}

.btn-primary-custom {
  background: linear-gradient(135deg, #5b6fa8, #3d4a7a);
  border: none;
  color: white;
  transition: all 0.3s;
}

.btn-primary-custom:hover {
  background: linear-gradient(135deg, #3d4a7a, #2c365e);
  transform: translateY(-2px);
  color: white;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.btn-outline-secondary-custom {
  background: transparent;
  border: 1px solid #9eb3d8;
  color: #9eb3d8;
  transition: all 0.3s;
}

.btn-outline-secondary-custom:hover {
  background: #9eb3d8;
  color: #2c365e;
}

.form-control-custom, .form-select-custom {
  background-color: #f5f8fc;
  border: 1px solid #9eb3d8;
  color: #1a2342;
  border-radius: 0.5rem;
}
.form-control-custom:focus, .form-select-custom:focus {
  box-shadow: 0 0 0 0.25rem rgba(91, 111, 168, 0.25);
}

.form-control-custom.is-invalid,
.was-validated .form-control-custom:invalid {
  border-color: #7a1f1f;
  background-image: none;
  padding-right: 1rem; /* reset the icon's padding-right */
}

.form-control-custom.is-invalid:focus,
.was-validated .form-control-custom:invalid:focus {
  box-shadow: 0 0 0 0.25rem rgba(122, 31, 31, 0.25);
}

/* Valid: identical to the resting/default state, no icon */
.was-validated .form-control-custom:valid,
.form-control-custom.is-valid {
  border-color: #5b6fa8;
  background-image: none;
  padding-right: 1rem;
}

.form-control-custom.is-valid:focus,
.was-validated .form-control-custom:valid:focus {
  box-shadow: 0 0 0 0.25rem rgba(91, 111, 168, 0.25);
}

.invalid-feedback {
  display: none;
  margin-top: 0.35rem;
  font-size: 0.85rem;
}

.form-group:has(.form-control-custom.is-invalid) .invalid-feedback,
.was-validated .mt-4:has(.form-control-custom:invalid) .invalid-feedback,
.position-relative:has(.form-control-custom.is-invalid) ~ .invalid-feedback,
.was-validated .position-relative:has(.form-control-custom:invalid) ~ .invalid-feedback {
  display: block;
}

.form-control-custom.is-valid:focus,
.was-validated .form-control-custom:valid:focus {
  border-color: #5b6fa8;
  box-shadow: 0 0 0 0.25rem rgba(91, 111, 168, 0.25);
}

.form-check-input-custom{
  width: 1.1em;
  height: 1.1em;
  accent-color: #5b6fa8 !important;
  border: 1px solid #9eb3d8 !important;
  cursor: pointer;
}

.form-check-input-custom:focus {
  box-shadow: 0 0 0 0.25rem rgba(91, 111, 168, 0.25) !important;
  border-color: #5b6fa8 !important;
}

.nav-link-custom {
  color: #c8d5ed;
  text-decoration: none;
  position: relative;
  padding-bottom: 0.25rem;
  transition: color 0.3s;
}

.nav-link-custom::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, #9eb3d8, #7b8fc4);
  transition: width 0.3s ease;
  border-radius: 2px;
}

.nav-link-custom:hover {
  color: #9eb3d8;
}

.nav-link-custom.active {
  color: #9eb3d8;
}

.nav-link-custom:hover::after {
  width: 100%;
}

.nav-link-custom.active::after {
  width: 100%;
}

.navbar-toggler {
  filter: invert(1);
}


/* Language Switcher (toggle style) */
.lang-switch {
  position: relative;
  display: inline-flex;
  background: rgba(158, 179, 216, 0.12); /* secondary tint, matches lang-dropdown-item:hover bg */
  border: 1px solid rgba(158, 179, 216, 0.3);
  border-radius: 999px;
  padding: 2px; /* was 3px */
  gap: 1px; /* was 2px */
}

.lang-switch-option {
  position: relative;
  z-index: 2;
  font-family: "BPG Glaho WEB", serif;
  padding: 0.2rem 0.6rem; /* was 0.35rem 0.85rem */
  font-size: 0.75rem; /* was 0.9rem */
  min-width: 28px; /* was 36px */
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #c8d5ed;
  text-decoration: none;
  border-radius: 999px;
  text-align: center;
  transition: color 0.3s;
}

.lang-switch-option:hover,
.lang-switch-option:focus {
  color: #ffffff;
}

.lang-switch-option.active {
  color: #ffffff;
}

.lang-switch-slider {
  position: absolute;
  top: 2px; /* match .lang-switch padding */
  left: 2px;
  height: calc(100% - 4px); /* was -6px */
  width: calc(50% - 2px); /* was -3px */
  background: linear-gradient(135deg, #5b6fa8, #3d4a7a); /* same gradient as .bg-primary-gradient / .btn-primary-custom */
  border-radius: 999px;
  box-shadow: 0 0.25rem 0.75rem rgba(44, 54, 94, 0.1); /* matches .shadow-custom */
  transition: transform 0.3s ease;
  z-index: 1;
}

.lang-switch-slider[data-position="0"] { transform: translateX(0); }
.lang-switch-slider[data-position="1"] { transform: translateX(100%); }

.lang-dropdown-item.active {
  background: linear-gradient(135deg, #5b6fa8, #3d4a7a);
  color: #ffffff;
}

.list-group-item.active {
    background-color: #3d4a7a;
    border-color: #2c365e;
    color: white;
}

.header-custom {
  background: #2c365e;
  border-bottom: 1px solid #3d4a7a;
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.icon-container {
  padding: 0.50rem;
  border-radius: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pagination .page-link {
  background-color: #ffffff;
  border: 1px solid #c8d5ed;
  color: #4a5578;
  border-radius: 0.5rem;
  margin: 0 3px;
  transition: all 0.25s ease;
  min-width: 40px;
  text-align: center;
  font-family: "BPG Glaho WEB", serif;
}

.pagination {
  gap: 2px;
  justify-content: center;
  min-width: 300px; /* prevents shrinking */
}

/* Hover */
.pagination .page-link:hover {
  background-color: #f0f4f9;
  border-color: #9eb3d8;
  color: #1a2342;
  transform: translateY(-1px);
  box-shadow: 0 0.25rem 0.75rem rgba(44, 54, 94, 0.1);
}

/* Active page */
.pagination .page-item.active .page-link {
  background: linear-gradient(135deg, #5b6fa8, #3d4a7a);
  border: none;
  color: white;
  box-shadow: 0 0.5rem 1rem rgba(44, 54, 94, 0.2);
}

/* Disabled */
.pagination .page-item.disabled .page-link {
  background-color: #f5f8fc;
  border-color: #e3ebf4;
  color: #9eb3d8;
}

.pagination .page-link {
  min-width: 38px;
  text-align: center;
}

.jumbotron-hero {
  position: relative;
  background-image: url("../assets/ilia_library.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.jumbotron-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(44, 54, 94, 0.75); /* dark-primary color at 75% opacity */
  z-index: 0;
}

.jumbotron-hero > * {
  position: relative;
  z-index: 1;
}

.card-hover {
  transition: all 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 1rem 2rem rgba(44, 54, 94, 0.2);
}

.link-hover-gap {
  transition: gap 0.3s ease;
}

.link-hover-gap:hover {
  gap: 0.75rem !important;
}

.tag-custom {
  background: #f0f4f9;
  border: 1px solid #9eb3d8;
  color: #1a2342;
  padding: 0.25rem 0.75rem;
  border-radius: 16px;
  font-size: 0.875rem;
}

.tag-active {
  background: linear-gradient(135deg, #5b6fa8, #3d4a7a);
  color: white;
  border: none;
}

.btn-vote-up {
  background: white;
  border: 2px solid #22c55e;
  color: #1a2342;
  transition: all 0.3s;
}

.btn-vote-up:hover {
  background: #f0fdf4;
}

.btn-vote-up.active {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: white;
  border-color: #22c55e;
}

.btn-vote-down {
  background: white;
  border: 2px solid #ef4444;
  color: #1a2342;
  transition: all 0.3s;
}

.btn-vote-down:hover {
  background: #fef2f2;
}

.btn-vote-down.active {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  border-color: #ef4444;
}

.alert-custom {
  background: linear-gradient(135deg, #fff9e6, #fef5dc);
  border-left: 4px solid #9eb3d8;
  border-radius: 0 0.5rem 0.5rem 0;
}

.toggle-password {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  transition: color 0.2s ease;
}
/*# sourceMappingURL=styles.css.map */
