/* Quarto footer styling */
.footer, .nav-footer {
  font-size: 0.8rem !important;
  color: #2774AE !important;  /* UCLA blue */
  text-align: right !important;
  padding: 1rem 0 !important;
}

.quarto-grid .card-img-top {
  width: 100%;
  height: auto;          /* let height adjust to the image */
  object-fit: contain;   /* show the whole image */
}
.text-justify {
  text-align: justify;
}
/* Header background color */
.navbar {
  background-color: #0b3d91 !important; /* Deep academic blue */
  border-bottom: 2px solid #072c6b;
}

/* Navbar brand / name */
.navbar-brand {
  color: #ffffff !important;
  font-weight: 600;
  font-size: 1.15rem;
}

/* Navbar links (Home, About, Research…) */
.navbar-nav .nav-link {
  color: #e6e6e6 !important;
  font-weight: 500;
  padding: 0.6rem 1rem;
  transition: color 0.2s ease, background-color 0.2s ease;
}

/* Hover effect */
.navbar-nav .nav-link:hover {
  color: #ffffff !important;
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 6px;
}

/* Active page highlight */
.navbar-nav .nav-link.active {
  color: #ffffff !important;
  background-color: rgba(255, 255, 255, 0.25);
  border-radius: 6px;
}

/* ----------------------------- */
/*   RIGHT SIDE HEADER LINKS     */
/* (GitHub – Email – CV – GS)    */
/* ----------------------------- */

.header-links a {
  color: #e6e6e6 !important;
  margin-left: 1rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

.header-links a:hover {
  color: #ffffff !important;
}

/* Optional: Add slight spacing below header */
header.navbar {
  margin-bottom: 25px;
}


/* Global body text */
body {
  font-family: "Merriweather", "Georgia", serif;   /* formal academic feel */
  font-size: 0.95rem;                              /* smaller and cleaner */
  line-height: 1.65;
  color: #1f1f1f;
}

/* -------------------------------------------------- */
/*                     HEADINGS                       */
/* -------------------------------------------------- */

/* Main page title */
h1 {
  font-family: "Merriweather", "Georgia", serif;
  font-size: 1.8rem;            /* smaller than before */
  font-weight: 700;
  color: #0b3d91;
  margin-bottom: 0.75rem;
}

/* Section headers */
h2 {
  font-family: "Merriweather", "Georgia", serif;
  font-size: 1.35rem;           /* more formal, not oversized */
  font-weight: 600;
  color: #0b3d91;
  margin-top: 1.6rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid #d7d7d7;
  padding-bottom: 3px;
}

/* Sub-sections */
h3 {
  font-family: "Merriweather", "Georgia", serif;
  font-size: 1.15rem;
  font-weight: 600;
  margin-top: 1rem;
  color: #0b3d91;
}

/* -------------------------------------------------- */
/*                PARAGRAPH TEXT                      */
/* -------------------------------------------------- */

p {
  font-size: 0.95rem;        /* smaller */
  color: #2a2a2a;
  margin-bottom: 0.7rem;
  max-width: 800px;
}

/* -------------------------------------------------- */
/*                     LINKS                           */
/* -------------------------------------------------- */

a {
  color: #0b3d91;
  text-decoration: none;
  font-weight: 500;
}

a:hover {
  text-decoration: underline;
  color: #072c6b;
}

/* -------------------------------------------------- */
/*                   LIST STYLING                      */
/* -------------------------------------------------- */

ul, ol {
  font-size: 0.95rem;
  padding-left: 1.2rem;
  line-height: 1.55;
}

/* -------------------------------------------------- */
/*             OPTIONAL CONTENT WRAPPER               */
/* -------------------------------------------------- */
/* ------------------------------------------ */
/*        STYLED TABLE: header + rows         */
/* ------------------------------------------ */

.styled-table table {
  font-size: 0.80rem;        /* smaller text */
  border-collapse: collapse;
  width: 100%;
}

.styled-table th {
  background-color: #e8eef7;   /* light blue shaded header */
  color: #0b3d91;
  font-weight: 600;
  text-align: left;
  padding: 6px;
  border-bottom: 2px solid #c8d4e3;
}

.styled-table td {
  padding: 5px 6px;           /* compact spacing */
  vertical-align: top;
}

/* alternating background rows */
.styled-table tr:nth-child(even) {
  background-color: #f6f8fb;
}

.styled-table tr:nth-child(odd) {
  background-color: #ffffff;
}

/* center the No column */
.styled-table td:first-child,
.styled-table th:first-child {
  text-align: center;
  width: 40px;
}
