/* --- NEW: PROFILE BOX STYLING --- */
.profile-box {
  /* CHANGE: Adjusted bottom padding to 0.5rem to reduce space below icons. */
  /* Format is: top | right | bottom | left */
  padding: 2.5rem 3.5rem 0.1rem 3.5rem; 
  
  border-radius: 0; 
  /* box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05); */
  text-align: center; 
}

/* --- Hero Layout Container (Mostly for Gap and Centering) --- */
.columns.hero-wrap {
  display: flex !important;
  align-items: flex-start;
  justify-content: center;
  gap: 3rem;                   
  margin: 3rem auto;           
  max-width: 960px;            
}

/* Override Quarto's automatic column sizing for this section */
.columns.hero-wrap > .column:first-child {
  flex: 0 0 auto !important;
  width: auto !important;
  max-width: none !important;
}

/* --- Profile Photo Styling --- */
.profile-photo {
  display: block;
  width: 300px; 
  height: auto;
  border-radius: 0;
  object-fit: cover;
  padding: 3.2rem 0.0rem 0.0rem 0.0rem;
  margin: 0 auto 0.75rem auto; 
  box-shadow: none;
}

/* --- Social Icons Styling --- */
.social-links {
  text-align: center;
}
.social-links a {
  margin: 0 0.5rem;
  font-size: 1.5rem;
  text-decoration: none;
  transition: color 0.3s ease; 
} 
/* Removed: .social-links a:hover (handled by brand.scss) */

/* --- Responsive Tweak for mobile view --- */
@media (max-width: 768px) { 
  .columns.hero-wrap {
    flex-direction: column;
    gap: 2rem;
  }

  /* Force BOTH stacked columns to span full width */
  .columns.hero-wrap > .column,
  .columns.hero-wrap > div {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
  }

  .profile-box {
    width: 80%; 
    max-width: 300px;
    margin: 0 auto; 
  }

  .hero-name, .about {
    text-align: center;
  }

  /* If your about text is inside a narrower wrapper, force it full width */
  .about {
    width: 100%;
    max-width: 100%;
  }
}


/* --- Font Imports (Removed, handle in index.qmd or brand.scss if needed) --- */
/* You had font imports here, but they are in index.qmd's header now. */
/* Removing duplicate font-family declarations to avoid conflicts. */
/* If you need to set fonts, use brand.scss for a global effect. */

/* --- Right Column Content Styling --- */
.hero-name {
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
  /* NEW: Explicitly apply the 'Libre Baskerville' font */
  font-family: 'Libre Baskerville', serif;
  border-bottom: none; 
}


.about {
  font-size: 1.0rem;
  line-height: 1.6;
  text-align: justify;
  font-family: 'Lato', sans-serif;
}

.about a {
  text-decoration: none;
  color: var(--color-link-hover);
}

.about a:hover {
  text-decoration: underline;
  color: var(--color-link);
}


.navbar {
  font-size: 1.15rem; 
  font-weight: 400;
}

.navbar a {
  text-decoration: none;
  color: var(--color-link-hover);
}

.navbar a:hover {
  text-decoration: underline;
  color: var(--color-link);
}

/* Active (current page) link */
.navbar .nav-link.active {
  color: var(--color-link);
  /* text-decoration: none; */
}


footer.footer {
  font-size: 1.1rem;
  color: var(--color-neutral-text);
}

footer.footer a {
  text-decoration: none;
  color: var(--color-link-hover);
}

footer.footer a:hover {
  text-decoration: underline;
  color: var(--color-link);
}

/*
footer.footer .footer-quarto {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

footer.footer .footer-quarto img {
  height: 1rem;
  width: auto;
  display: block;
  transform: translateY(3.0px); 
}

footer.footer .footer-github {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

footer.footer .footer-github i {
  height: 1rem;
  width: auto;
  display: block;
  transform: translateY(0px); 
}
*/


/* --- GLOBAL HEADING --- */
.page-title {
  text-align: center;
  font-size: 2.3rem; 
  font-weight: 400; 
  margin-top: 2rem;
  border-bottom: none !important;
  margin-bottom: 2rem; 
  font-family: 'Libre Baskerville', serif;
  }

/* --- Mobile-only navbar fixes (desktop unchanged) --- */
@media (max-width: 576px) {
  .navbar-brand img {
    height: 16px !important;
    width: auto;
  }

  .navbar-title {
    margin-left: 0.5rem;      /* <-- THIS is the key */
    flex: 1 1 auto;
    min-width: 0;             /* must be 0, not 1 */
    font-size: 1rem;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .navbar-toggler {
    margin-left: auto;
  }
}

/* Structural/layout behaviour (phones landscape + tablets) */
@media (max-width: 768px) {

  /* Ensure this element is actually controlling layout */
  .columns.hero-wrap {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;  /* centers children horizontally */
    gap: 2rem;
  }

  /* Make both "columns" full width when stacked */
  .columns.hero-wrap > .column,
  .columns.hero-wrap > div {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Center the profile container itself */
  .profile-box {
    width: 80%;
    max-width: 300px;
    margin: 0 auto !important;
  }

  /* Center the actual image */
  .profile-box img {
    display: block;
    margin: 0 auto !important;
  }
}


