/* =========================
   GLOBAL COLORS & BRANDING
   ========================= */
:root {
  --unired: rgb(124, 0, 63);       /* University Red */
  --uniteal: rgb(33, 138, 134);    /* University Teal */
  --unired-dark: #96004e;          /* Darker hover variant */
  --uniteal-dark: #1f7e7b;         /* Darker hover variant */
  --text-color: #222;
  --muted-color: #555;
}

/* =========================
   BASE STYLES
   ========================= */
body {
  background-color: #f7f9fa;
  font-family: "Inter", sans-serif;
  color: var(--text-color);
  margin: 0;
  padding: 0;
}

/* =========================
   NAVBAR
   ========================= */
.navbar {
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.navbar .nav-link {
  color: var(--text-color);
  font-weight: 500;
  transition: color 0.2s ease-in-out;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
  color: var(--unired);
}

/* =========================
   HERO SECTION
   ========================= */
.hero {
  padding: 4rem 1rem;
  text-align: center;
  background-color: #fff;
}
@media (min-width: 992px) {
  .hero {
    padding-top: 3rem;
  }
}
.hero h1 {
  font-weight: 700;
  font-size: 2.5rem;
  color: var(--unired);
}

.hero p {
  font-size: 1.1rem;
  color: var(--muted-color);
}

.hero .btn {
  background-color: var(--uniteal);
  color: #fff;
  font-weight: 600;
  margin-top: 1rem;
  border: none;
  transition: background-color 0.2s ease-in-out;
}

.hero .btn:hover {
  background-color: var(--uniteal-dark);
}

/* =========================
   TERMINAL DIVIDER
   ========================= */
.terminal-divider {
  font-family: monospace;
  font-size: 1.1rem;
  color: var(--uniteal);
  margin: 2rem 0 1rem;
  border-bottom: 2px solid var(--unired);
  padding-bottom: 4px;
}

/* =========================
   CARDS
   ========================= */
.card {
  border: none;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease-in-out;
  border-top: 4px solid var(--uniteal);
}

.card:hover {
  transform: scale(1.02);
}

.card-title {
  font-weight: 600;
  color: var(--unired);
}

/* =========================
   BUTTONS
   ========================= */
.btn-unired {
  background-color: var(--unired);
  color: #fff;
  border: none;
}
.btn-unired:hover {
  background-color: var(--unired-dark);
}

.btn-uniteal {
  background-color: var(--uniteal);
  color: #fff;
  border: none;
}
.btn-uniteal:hover {
  background-color: var(--uniteal-dark);
}

.btn-outline-unired {
  background: transparent;
  color: var(--unired);
  border: 1px solid var(--unired);
}
.btn-outline-unired:hover {
  background: var(--unired);
  color: #fff;
}

.btn-outline-uniteal {
  background: transparent;
  color: var(--uniteal);
  border: 1px solid var(--uniteal);
}
.btn-outline-uniteal:hover {
  background: var(--uniteal);
  color: #fff;
}

/* =========================
   FOOTER
   ========================= */
footer {
  margin-top: 3rem;
  background-color: #fff;
  text-align: center;
  padding: 1.5rem;
  font-size: 0.9rem;
  color: #777;
  border-top: 3px solid var(--uniteal);
}

footer .social-icons .icon-link {
  font-size: 1.25rem;
  margin-left: 12px;
  color: var(--unired);
  text-decoration: none;
  transition: color 0.2s ease-in-out, opacity 0.2s ease-in-out;
}
footer .social-icons .icon-link:hover {
  color: var(--uniteal);
  opacity: 0.85;
}

/* =========================
   CODE BLOCKS
   ========================= */
pre code {
  border-radius: 5px;
  padding: 1rem;
  background: #2e3a46;
  color: #f5f5f5;
}

/* =========================
   BADGE ROWS & IMAGES
   ========================= */
.badge-row img {
  margin: 6px 8px 0 0;
  height: 28px;
}


::selection {
  background: var(--uniteal);
  color: #fff;
}
/* styles.css additions */
#categoryFilter { border-color: var(--uniteal); }
#searchInput:focus { border-color: var(--unired); box-shadow: 0 0 0 .2rem rgba(124,0,63,.15); }
footer .social-icons .icon-link {
  font-size: 1.4rem;
  margin-left: 12px;
  color: #2e3a46; /* default neutral */
  transition: color 0.2s ease-in-out;
}

/* Hover colors for individual platforms */
footer .social-icons .icon-link:hover[aria-label="GitHub"] {
  color: #333;
}
footer .social-icons .icon-link:hover[aria-label="LinkedIn"] {
  color: #1f7e7b;
}
footer .social-icons .icon-link:hover[aria-label="Google Scholar"] {
  color: #1f7e7b;
}
footer .social-icons .icon-link:hover[aria-label="X"] {
  color: #1f7e7b; /* X brand uses solid black */
}

/* Posts small texts for credits */
.references {
  font-size: 0.8rem;
  color: #6c757d;
}
.references a {
  color: #6c757d;
  text-decoration: none;
}
.references a:hover {
  text-decoration: underline;
}
/* Base images */
.row.g-3 img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 0.5rem;
}

/* Portrait images: override to show full person */
.row.g-3 img.portrait,
.row.g-3 img[data-orientation="portrait"] {
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: center center;
}
