/* =========================================================
   FONT IMPORTS
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Lora:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:wght@400;700&display=swap');

/* =========================================================
   BASE TYPOGRAPHY
   ========================================================= */
body {
  font-family: 'Lora', Helvetica, Arial, sans-serif;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Roboto Slab', Helvetica, Arial, sans-serif;
}

.navbar-nav > li > a,
.navbar-brand {
  font-family: Lora, 'Roboto Slab', Helvetica, Arial, sans-serif;
}

p {
  text-align: justify;
  text-justify: inter-word; /* even word spacing */
}

/* =========================================================
   ABOUT PAGE IMAGE
   ========================================================= */
.about-image,
.about-image.rounded-circle,
.about-photo {
  width: 150px !important;
  height: 150px !important;
  object-fit: cover;
  border-radius: 50% !important;
  margin: 0 auto 1rem;
  display: block;
}

/* =========================================================
   PUBLICATIONS LAYOUT
   ========================================================= */
.pub-controls {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.pub-controls input,
.pub-controls select {
  padding: 0.5rem 0.75rem;
  border: 1px solid #ccc;
  border-radius: 0.25rem;
  font-size: 0.9rem;
}

.pub-item {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.pub-icon {
  font-size: 1.3rem;
  line-height: 1;
  margin-top: 0.2rem;
}

.pub-content {
  flex: 1;
}

.pub-content em {
  font-style: italic;
  color: #555;
}

.pub-content p {
  margin: 0.2rem 0;
}

/* =========================================================
   BUTTON STYLES
   ========================================================= */
.btn {
  display: inline-block;
  margin-right: 0.5rem;
  padding: 0.3rem 0.8rem;
  border-radius: 0.25rem;
  font-size: 0.85rem;
  text-decoration: none;
  line-height: 1;
}

.btn-primary {
  background-color: #007bff;
  color: #fff;
}

.btn-outline {
  background-color: transparent;
  border: 1px solid #007bff;
  color: #007bff;
}

.btn-outline:hover,
.btn-primary:hover {
  opacity: 0.85;
}

/* =========================================================
   CONTACT PAGE
   ========================================================= */
.container {
  max-width: 960px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.page-header {
  text-align: center;
  margin-bottom: 3rem;
}

.contact-info {
  background-color: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  text-align: center;
  margin-bottom: 2rem;
}

/* Responsive embedded map */
.map-container {
  position: relative;
  padding-bottom: 56.25%;  /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #eee;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.map-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* =========================================================
   HERO / CALL-TO-ACTION
   ========================================================= */
/* === Custom Button Style === */

.btn-custom {
  /* Colors and Text */
  background-color: #800000; /* A dark red/maroon color */
  color: #FFFFFF;            /* White text color */
  font-family: Lora;         /* A serif font like in the image */
  font-weight: bold;          /* Make the text bold */
  text-decoration: none;      /* Remove underline if it's a link */

  /* Spacing and Sizing */
  padding: 10px 20px;         /* Vertical and horizontal padding */
  display: inline-block;      /* Allows setting padding and margins */
  
  /* Border and Shape */
  border: 1px solid #600000;  /* A slightly darker border for depth */
  border-radius: 8px;         /* Rounded corners */

  /* Shadow for the 3D effect */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);

  /* Smooth transition for hover effect */
  transition: all 0.2s ease-in-out;
  
  /* Makes the cursor a pointer on hover */
  cursor: pointer;
}

/* --- Utility Class for Centering --- */

.button-container {
  display: flex;             /* Use the flexbox layout model */
  justify-content: center;   /* Center the items horizontally */
  gap: 80px;
  flex-wrap: wrap;            /* Allow buttons to wrap to the next line on small screens */
  margin-top: 100px;
}


/* --- Hover Effect --- */
/* This style applies when the user moves their mouse over the button */

.btn-custom:hover {
  background-color: #900030; /* A slightly lighter brown on hover */
  
  /* Make the shadow more pronounced to give a "lift" effect */
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.3);

  /* Optional: move the button up slightly */
  transform: translateY(-2px); 
}


.iframe-embed {
  display: block;
  width: 100%;
  height: 500px;
  margin: 8rem 0;
  border: 0;
  max-width: 100%;
}

.embed-container {
  max-width: 100%;
  margin: 0 auto 3rem;
  border: 2px solid #800000; /* Maroon color */
  border-radius: 5px;
  box-sizing: border-box;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}


.list-item-spaced {
  border-bottom: none !important; /* Removes the line */
  padding-bottom: 0 !important;   /* Removes any default space inside the border */
  margin-bottom: 5rem !important; /* Adds a 30px gap below the item */
}

.list-item-spaced1 {
  border-bottom: none !important; /* Removes the line */
  padding-bottom: 0 !important;   /* Removes any default space inside the border */
  margin-bottom: 2rem !important; /* Adds a 30px gap below the item */
}


/* Optional: different spacing on mobile */
@media (max-width: 640px) {
  .iframe-embed {
    margin: 1.25rem 0;
    height: 420px;
  }
}


/* Custom Footer Styling */
.my-footer {
  background-color: #f2f2f2; /* A light gray background like the example */
  color: #555; /* Dark gray text color for good contrast */
  padding-top: 1rem;
  padding-bottom: 1rem;
  margin-top: 3rem; /* Adds some space above the footer */
  border-top: 1px solid #ddd; /* A subtle top border */
}

/* Styling for the "Contact:" heading */
.my-footer h3 {
  color: #900030; /* A reddish color like the example */
  font-weight: bold;
}

/* Styling for the links in the footer */
.my-footer a {
  color: #007bff; /* A standard blue link color */
  text-decoration: none;
}

.my-footer a:hover {
  text-decoration: underline;
}

/* Make dropdown text visible in dark mode */
select {
  color: var(--bs-body-color);       /* adapts to dark/light automatically */
  background-color: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color);
}

/* Two-column layout for publications */
.publication-item {
  display: flex;
  gap: 30px;
  margin-bottom: 30px;
  align-items: flex-start;
}

.pub-image {
  flex: 0 0 200px;
}

.pub-content {
  flex: 1;
}

/* Ensure images don't overflow */
.pub-image img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Button styling */
a.button {
  display: inline-block;
  padding: 8px 16px;
  background-color: #007bff;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.9em;
  margin-top: 8px;
}

a.button:hover {
  background-color: #0056b3;
}

/* Responsive design for mobile */
@media (max-width: 768px) {
  .publication-item {
    flex-direction: column;
    gap: 15px;
  }
  
  .pub-image {
    flex: 0 0 auto;
    text-align: center;
  }
}




/* This file contains all the custom CSS to make your page look like the image.
  It overrides some of Quarto's default styles for a fully custom layout.
*/

/* Reset Quarto's default container padding to allow our layout to fill the screen */
/* Allow the hero to use the full width of the page */
body .container-fluid,
body .container {
  padding-left: 0 !important;
  padding-right: 0 !important;
  max-width: 100% !important;
}

/* ===== Split hero (fixed overlap + full-bleed) ===== */
.page-container {
  display: grid;
  grid-template-columns: minmax(320px, 42%) 1fr; /* left ~42%, right fills */
  min-height: clamp(460px, 80vh, 820px);         /* grow with content */
  position: relative;
  isolation: isolate;                             /* prevent z-index oddities */
  overflow: hidden;                               /* trim any image spill */
  margin-bottom: clamp(20px, 4vw, 48px);          /* space before Markdown */
}

/* Left (text) panel */
.left-panel {
  background-color: #edd713;   /* your yellow */
  color: #0056b3;              /* your blue text */
  padding: clamp(24px, 6vw, 80px);
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* text top, icons bottom */
  box-sizing: border-box;
}

.name-title {
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  font-weight: 300;
  line-height: 1.2;
  margin-bottom: 2rem;
}

/* Paragraph styles */
.details,
.website-link {
  font-size: clamp(1rem, 1vw + 0.6rem, 1.25rem);
  line-height: 1.6;
  color: #0056b3;
}

.website-link { margin-top: 2.5rem; }

/* Link color on yellow */
.website-link a {
  color: #0056b3;
  text-decoration: none;
  word-break: break-word;      /* prevent overflow */
}
.website-link a:hover { text-decoration: underline; }

/* Social icons row */
.social-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 2rem;
}
.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid  #0056b3;
  color:  #0056b3;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s, color 0.3s;
}
.social-icons a:hover {
  background-color:  #0056b3;
  color: #0056b3;
}

/* Right (image) panel */
.right-panel { overflow: hidden; }
.right-panel img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;           /* fill the panel */
  object-position: center;
}

/* Responsive: stack on small screens */
@media (max-width: 768px) {
  .page-container {
    grid-template-columns: 1fr;  /* stack */
    min-height: auto;            /* let content define height */
  }
  .left-panel {
    padding: 2.5rem 2rem;
    min-height: 60vh;
  }
  .right-panel { height: 42vh; } /* nice image slice on mobile */
}


/* =============================================== */
/* Team Member Card Styles (Updated for Quarto Divs) */
/* =============================================== */
.person-card {
  display: grid;
  grid-template-columns: clamp(140px, 18vw, 220px) 1fr;
  align-items: center;
  gap: clamp(20px, 4vw, 40px);
  padding: clamp(20px, 3vw, 32px);
  background-color: #f4f7ff;
  border: 1px solid #e6ecf7;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}
.person-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  border: 8px solid #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}
.person-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* --- UPDATED TEXT STYLES --- */
/* Target the H3 inside .person-text for the name */
.person-text h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 0.25rem 0;
}
/* Target the first paragraph (which we made bold) for the title */
.person-text p:first-of-type {
  font-size: 1.1rem;
  font-weight: 500;
  margin: 0 0 0.75rem 0;
  color: #333;
}
/* Target all other paragraphs for the bio */
.person-text p {
  margin: 0.3rem 0;
  font-size: 1rem;
  line-height: 1.6;
  color: #444;
}

.team-heading {
  text-align: left;
  font-size: 1.8rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}
@media (max-width: 768px) {
  .person-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .person-photo {
    margin: 0 auto;
    width: 180px;
  }
}