header {
  background-color: #f4f4f4;
  padding: 20px;
  border-bottom: 2px solid #ccc;
}

.header-container {
  display: flex;
  align-items: center;      /* vertically center logo + text */
  justify-content: center;  /* center the whole block */
  flex-wrap: wrap;          /* allow wrapping if needed */
}

.logo {
  height: 60px;
  margin-right: 15px;
}

.header-text h1 {
  margin: 0;
  font-size: 2em;
  color: #333;
}

.header-text p {
  margin: 5px 0 0;
  font-size: 1.2em;
  color: #666;
}

.main-content {
    margin-top: 48px;        /* pushes content below navbar */
    padding-top: 40px;     /* keeps vertical spacing inside main */
    padding-bottom: 1.5rem;  /* same as py-4 */
}


/* 📱 Responsive behavior */
@media (max-width: 600px) {
  .header-container {
    flex-direction: column;   /* stack logo above text */
    text-align: center;
  }

  .logo {
    margin: 0 0 10px 0;       /* space below logo */
    height: 50px;             /* slightly smaller logo */
  }

  .header-text h1 {
    font-size: 1.5em;         /* scale down text */
  }

  .header-text p {
    font-size: 1em;
  }
}

footer {
  color: rgb(225, 232, 237);
  padding: 20px;
  border-top: 2px solid #ccc;
  background: linear-gradient(160deg, rgb(13, 34, 56), rgb(26, 58, 92), rgb(19, 48, 80)) !important;
  font-family: Outfit, sans-serif;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;   /* allows wrapping on small screens */
}

.footer-container p {
  margin: 0;
  font-size: 0.9em;
}

.footer-links {
  list-style: none;
  display: flex;
  gap: 15px;
  margin: 0;
  padding: 0;
}

.footer-links li a {
  color: #fff;
  text-decoration: none;
  font-size: 0.9em;
}

.footer-links li a:hover {
  text-decoration: underline;
}

.bi {
  color: #c8943a !important;
}

.copyright-bar {
  font-size: 14px;
  background: rgb(13, 34, 56);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgb(255, 255, 255);
  padding: 12px 0px;  
}

.footer-social-row {
    display: flex;
    margin-top: 10px;
    gap: 20px;
}

#flash_card_holder {
  display: flex;
  flex-wrap: wrap;          /* allow cards to wrap to next line */
  gap: 1rem;                /* spacing between cards */
  justify-content: center;  /* center cards horizontally */
  align-items: stretch;     /* make cards equal height if possible */
  padding: 1rem;
}

#flash_card_holder .card {
  flex: 1 1 250px;          /* grow/shrink, minimum width 250px */
  max-width: 300px;         /* prevent cards from getting too wide */
}

#flash_card_holder_grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;                /* spacing between cards */
  padding: 1rem;
}

#flash_card_holder_grid .card {
  min-height: 150px;        /* optional: consistent card height */
}

.card-tall {
  min-height: 300px;
}

/* 📱 Responsive behavior */
@media (max-width: 600px) {
  .footer-container {
    flex-direction: column;   /* stack items vertically */
    text-align: center;
  }

  .footer-links {
    margin-top: 10px;
    flex-direction: column;   /* links stacked vertically */
    gap: 8px;
  }
}

/* Sidebar container */
aside {
  position: sticky;   /* keeps it fixed while scrolling */
  top: 0;             /* stick to the top of the viewport */
  height: 100vh;      /* full viewport height */
  overflow-y: auto;   /* scroll if content exceeds height */
  background-color: #fff; /* clean background */
  border-right: 1px solid #ddd;
}

/* Sidebar nav links */
aside .nav-link {
  color: #333;
  padding: 8px 12px;
  border-radius: 4px;
  transition: background-color 0.2s, color 0.2s;
}

/* Active link */
aside .nav-link.active {
  background-color: #007bff; /* Bootstrap primary */
  color: #fff;
}

/* Hover effect */
aside .nav-link:hover {
  background-color: #f0f0f0;
  color: #000;
  text-decoration: none;
}
