.modern-navbar {
  background: linear-gradient(90deg,#010508 0%, #24234a 50%, #263a75 100%) !important;
  padding: 0.85rem 1.5rem;  /* slightly increased padding for larger logo */
  transition: background 0.3s ease;
  box-shadow: 0 2px 10px rgba(0,0,0,0.25); /* softer shadow */
}

.modern-navbar .navbar-brand{
  height: var(--nav-h);
  padding: 0;                     /* remove Bootstrap default */
  display: flex;
  align-items: center;            /* vertically center image */
}

/* make the image fill that brand area */
.modern-navbar .brand-logo{
  height: 100%;
  width: auto;
  display: block;
}

.modern-navbar .nav-link {
  color: #ffffff !important;
  font-weight: 500;
  margin-left: 1.25rem;
  position: relative;
  transition: color 0.3s ease;
  padding: 0.5rem 0;
}

.modern-navbar .nav-link:hover {
  color: #b1d6ff !important;
}

.modern-navbar .nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background-color: #b1d6ff;
  transition: width 0.3s ease;
}

.modern-navbar .nav-link:hover::after {
  width: 100%;
}

.navbar-nav.navbar-right {
  margin-left: auto;
  display: flex;
  align-items: center;
}

.navbar-toggler {
  border: none;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba%28255,255,255,0.85%29' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* Size the brand logo nicely in the navbar */
.modern-navbar .brand-logo {
  height: 50px;     /* increased for better visibility */
  width: auto;
  display: block;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));  /* subtle shadow for prominence */
  transition: transform 0.2s ease, filter 0.2s ease;
}

.modern-navbar .brand-logo:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 3px 6px rgba(0,0,0,0.4));
}

@media (min-width: 576px) {
  .modern-navbar .brand-logo { height: 55px; }  /* even larger on desktop */
}

/* Optional: keep the brand area tidy */
.modern-navbar .navbar-brand {
  padding: 0;                 /* tighter vertical spacing */
  gap: .5rem;                 /* if you add text later */
}

.modern-navbar .navbar-brand:hover { opacity: .9; }


// ===== Variables =====
$primary: #4f46e5;   // Indigo
$secondary: #64748b; // Slate gray
$light: #f8fafc;     // Near white
$dark: #1e293b;      // Deep slate
$body-font: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

$border-radius: 0.75rem;
$transition: all 0.2s ease-in-out;

body {
  font-family: $body-font;
  background-color: $light;
  color: $dark;
  line-height: 1.6;
}

a {
  color: $primary;
  text-decoration: none;
  transition: $transition;

  &:hover {
    color: darken($primary, 10%);
    text-decoration: none;
  }
}

.body-content {
  padding: 0;

  hr {
    margin: 2rem 0;
    border-top: 1px solid lighten($secondary, 30%);
  }
}

footer {
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.9rem;
  color: lighten($dark, 25%);
  border-top: 1px solid lighten($secondary, 40%);
}

.btn-modern {
  display: inline-block;
  font-weight: 500;
  font-size: 0.95rem;
  margin-top: 1rem;
  padding: 0.6rem 1.25rem;
  border-radius: 0.75rem;
  border: none;
  color: #fff;
  background: linear-gradient(135deg, #4f46e5, #4338ca); // Indigo gradient
  box-shadow: 0 3px 6px rgba(0,0,0,0.15);
  transition: all 0.2s ease-in-out;
  cursor: pointer;

  &:hover {
    background: linear-gradient(135deg, darken(#4f46e5, 5%), darken(#4338ca, 5%));
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
  }

  &:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
  }

  &:disabled {
    background: #cbd5e1; // grayish
    color: #475569;
    cursor: not-allowed;
    box-shadow: none;
  }
}

.btn-modern-danger {
  display: inline-block;
  font-weight: 500;
  font-size: 0.95rem;
  margin-top: 1rem;
  padding: 0.6rem 1.25rem;
  border-radius: 0.75rem;
  border: none;
  color: #fff;
  background: #fd3030;
  box-shadow: 0 3px 6px rgba(0,0,0,0.15);
  transition: all 0.2s ease-in-out;
  cursor: pointer;

  &:hover {
    background: #ff5454;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
  }

  &:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
  }

  &:disabled {
    background: #cbd5e1; // grayish
    color: #475569;
    cursor: not-allowed;
    box-shadow: none;
  }
}

.btn-modern-outline {
  display: inline-block;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.6rem 1.25rem;
  margin-top: 1rem;
  border-radius: 0.75rem;
  border: 2px solid #4f46e5;
  background: transparent;
  color: #4f46e5;
  transition: all 0.2s ease-in-out;
  cursor: pointer;

  &:hover {
    background: #4f46e5;
    color: #fff;
  }
}

table {
  width: 100%;
  border-collapse: separate; // allows rounded corners
  border-spacing: 0;

th {
  background: #ffffff;
  font-weight: 600;
  text-align: left;
  padding: 0.75rem 1rem;
  border: none;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  white-space: nowrap;
  border-bottom: 2px solid rgba(255,255,255,0.15);

  &:first-child {
    border-top-left-radius: 0.75rem;
  }
  &:last-child {
    border-top-right-radius: 0.75rem;
  }
}

  tr th {
    border-bottom: 2px solid rgba(255,255,255,0.15);
  }

  td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e2e8f0;
  }
}

.nav-label {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  display: block;
  color: #1e293b;
}

.hover-gif {
    width: 200px; /* or whatever max width you want */
    aspect-ratio: 63 / 88; /* playing card ratio */
    overflow: hidden;
    display: inline-block;
    position: relative;
}

.hover-gif img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* fills container without distorting */
    display: block;
}

.about-container {
    display: flex;
    flex-wrap: wrap;         /* stack on smaller screens */
    gap: 2rem;               /* space between text and GIF */
    align-items: flex-start; /* align tops */
}

.about-text {
    flex: 1 1 500px; /* text fills available space, min width 500px */
}

.about-gif {
    flex: 0 0 300px;       /* fixed width for card */
    width: 300px;
    max-height: 600px;     
    aspect-ratio: 63 / 88; /* card ratio */
    overflow: hidden;
}

.about-gif img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Responsive: stack text and GIF on smaller screens */
@media (max-width: 900px) {
    .about-container {
        flex-direction: column;
        align-items: center;
    }

    .about-text, .about-gif {
        flex: 1 1 auto;
        width: 100%;
    }

    .about-gif {
        max-width: 300px;
        margin-top: 1.5rem;
    }
}

html, body {
    height: 100%;
    margin: 0;
}

.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.body-content {
    flex: 1; /* pushes footer down */
}

/* Footer */
.site-footer {
    width: 100%;
    background: #1e1e2f;
    color: #ddd;
    padding: 0.75rem 1rem; /* thinner */
    border-top: 2px solid #4a4a6a;
    text-align: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

/* Sections inside footer */
.footer-brand, .footer-links, .footer-social, .footer-copy {
    margin: 0.25rem 0;
}

/* Footer links */
.footer-links a {
    margin: 0 0.5rem;
    color: #bbb;
    text-decoration: none;
}

.footer-links a:hover {
    color: #fff;
}

/* Social icons */
.footer-social a {
    margin: 0 0.25rem;
    font-size: 1.2rem;
    color: #bbb;
    text-decoration: none;
}

.footer-social a:hover {
    color: #fff;
}

/* Compact inline layout for our custom checkbox + label */
.tm-form-check{
  display:inline-flex;
  align-items:center;
  gap:.5rem;
}

/* Custom checkbox (no Bootstrap styles) */
.tm-check {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  cursor: pointer;
}

/* Hide native box but keep it accessible/focusable */
.tm-check-input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Draw the box via label */
.tm-check-label {
  position: relative;
  cursor: pointer;
}

/* Box */
.tm-check-label::before {
  content: "";
  display: inline-block;
  width: 1.15rem;
  height: 1.15rem;
  margin-right: .5rem;
  border: 2px solid #cbd5e1;          /* light gray */
  border-radius: .35rem;
  background: #fff;
  vertical-align: middle;
  transition: background .15s, border-color .15s, box-shadow .15s;
}

/* Tick */
.tm-check-label::after {
  content: "";
  position: absolute;
  left: .18rem;
  top: .18rem;
  width: .72rem;
  height: .72rem;
  transform: scale(0);
  transition: transform 120ms ease-in-out;
  clip-path: polygon(14% 44%, 0 62%, 44% 100%, 100% 22%, 82% 6%, 44% 66%);
  background: #fff;
}

/* Checked state uses the adjacent-sibling relation */
.tm-check-input:checked + .tm-check-label::before {
  background: #4f46e5;                /* your brand purple/indigo */
  border-color: #4f46e5;
}
.tm-check-input:checked + .tm-check-label::after {
  transform: scale(1);
}

/* Focus ring on keyboard focus */
.tm-check-input:focus + .tm-check-label::before {
  box-shadow: 0 0 0 3px rgba(79, 70, 229, .25);
}

/* Disabled (optional) */
.tm-check-input:disabled + .tm-check-label {
  opacity: .6;
  cursor: not-allowed;
}

