/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  background: #ffffff;
  color: #333333; /* darker gray text */
  display: flex;
  min-height: 100vh;
}

/* Layout */
.wrapper {
  display: flex;
  width: 100%;
}

/* Sidebar */
.sidebar {
  width: 250px;
  background: #f7f7f7;
  border-right: 1px solid #d0d0d0;
}
.sidebar-inner {
  padding: 2rem;
  position: sticky;
  top: 0;
}
.name {
  font-weight: 600;
  color: #c5050c;
  margin-bottom: 2rem;
}
.nav-links {
  list-style: none;
}
.nav-links li {
  margin-bottom: 1rem;
}
.nav-links a {
  text-decoration: none;
  color: #555555;
  padding: 0.4rem 0.5rem;
  display: block;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}
.nav-links a:hover, .nav-links a.active {
  color: #c5050c;
  border-color: #c5050c;
}

/* Main Content */
.content {
  flex: 1;
  padding: 3rem;
  overflow-y: auto;
}
h2 {
  color: #222222;
  margin-bottom: 1rem;
}
h3 {
  color: #c5050c;
  margin-bottom: 0.5rem;
}
p {
  margin-bottom: 1rem;
  line-height: 1.6;
  color: #333333;
}
a {
  color: #c5050c;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* Buttons */
.button {
  display: inline-block;
  border: 1px solid #c5050c;
  color: #c5050c;
  padding: 0.4rem 0.8rem;
  border-radius: 3px;
  transition: all 0.2s ease;
}
.button:hover {
  background: #c5050c;
  color: #fff;
}

/* Images */
.images {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
}
.images img {
  max-width: 220px;
  border-radius: 4px;
}

/* PDF Container */
.pdf-container {
  width: 300%;
  max-width: 1200px;
  height: 90vh;
  margin: 0 auto;
  border-radius: 8px;
  overflow: hidden;
}
.pdf-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Intro Section */
.intro-wrapper {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
}
.intro-text {
  flex: 1;
  min-width: 300px;
}
.profile-pic {
  width: 250px;
  height: 300px;
  object-fit: cover;
  border-radius: 0px;
  flex-shrink: 0;
}
#research {
  margin-top: 1rem;
}

/* Responsive */
@media (max-width: 800px) {
  .wrapper {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #d0d0d0;
  }
}

/* Timeline */
.timeline-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 2rem 1rem;
  width: 100vw;
  box-sizing: border-box;
  position: relative;
  scroll-behavior: smooth;
}
.timeline-event {
  position: relative;
  padding: 1rem;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  flex: 1;
  text-align: center;
  min-width: 100px;
  color: #333333;
}
.timeline-line {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 4px;
  background-color: #bbbbbb;
  z-index: 0;
}
.timeline-event {
  z-index: 1;
}

/* Responsive timeline */
@media (max-width: 768px) {
  .timeline-container {
    flex-direction: column;
    align-items: flex-start;
  }
  .timeline-line {
    display: none;
  }
}

/* --- Base presentation box style --- */
.box {
  background: #fdfdfd;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

/* --- UW–Madison Theme --- */
.uw {
  background: #fff7f7; /* subtle light red background */
}

.uw h3 {
  color: #c5050c; /* Wisconsin red */
}

.uw p {
  color: #3b3b3b; /* dark gray text */
}

.uw a.button {
  border-color: #c5050c;
  color: #c5050c;
}

.uw a.button:hover {
  background: #c5050c;
  color: #fff;
}

/* --- UT Austin Theme --- */
.ut-austin {
  background: #fffaf5; /* warm off-white */
}

.ut-austin h3 {
  color: #bf5700; /* UT orange */
}

.ut-austin p {
  color: #4a3c31; /* dark brown-gray */
}

.ut-austin a.button {
  border-color: #bf5700;
  color: #bf5700;
}

.ut-austin a.button:hover {
  background: #bf5700;
  color: #fff;
}


/* === Section Styling === */
.year-section {
  border-radius: 10px;
  padding: 1.5em;
  margin-bottom: 2em;
}

.ap-section {
  background: #fff5f5; /* light reddish */
}

.uw-section {
  background: #fff5f5; /* lighter tone */
}

/* === AP Section Grid === */
.ap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1em;
}

/* === Semesters === */
.semester-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5em;
}

.semester h4 {
  border-bottom: 2px solid #ccc;
  padding-bottom: 0.3em;
}

/* === Course Styling === */
.course {
  margin-bottom: 0.8em;
}

.course-header {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
}

.course-name {
  font-style: italic;
  margin-left: 0.5em;
}

/* === Color Themes === */
.color-red { color: #d9534f; }
.color-blue { color: #0275d8; }
.color-green { color: #5cb85c; }
.color-orange { color: #f0ad4e; }
.color-purple { color: #9b59b6; }
.color-brown { color: #8e5a2d; }
.color-yellow { color: #FFD700; }

a {
  color: #d43f3a;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* ==============================
   Life Experience Cards
   ============================== */
.experience-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
}

.experience-cards .card {
  display: block;
  background-color: #f5f5f5; /* light gray; can adjust to match site theme */
  border-radius: 10px;
  padding: 20px;
  width: 350px;
  text-decoration: none;
  color: #333;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.experience-cards .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.experience-cards .card h3 {
  margin-top: 0;
  font-size: 1.2rem;
}

.experience-cards .card p {
  font-size: 0.95rem;
}


/* ---------- REU Blog Section Styles ---------- */

.reu-blog {
  margin-top: 2em;
  line-height: 1.7;
  color: #222;
  font-family: 'Montserrat', sans-serif;
  max-width: 900px;
}

.reu-blog h2 {
  font-size: 2em;
  color: #9b0000; /* Wisconsin red for main title */
  margin-bottom: 0.3em;
  border-bottom: 2px solid #9b0000;
  padding-bottom: 0.2em;
}

.reu-blog h3 {
  font-size: 1.5em;
  color: #bf5700; /* UT Austin burnt orange for subheadings */
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

.reu-blog p {
  margin-bottom: 1em;
}

.reu-blog em {
  color: #555;
}

.reu-blog strong {
  color: #000;
}

.reu-blog table {
  width: 100%;
  border: 1px solid black;
  margin-top: 1em;
  margin-bottom: 1.5em;
  font-size: 0.95em;
}

.reu-blog th,
.reu-blog td {
  border: 1px solid #ddd;
  padding: 0.6em 0.8em;
  /* center horizontally */
  text-align: center;

  /* center vertically (flex is reliable for multi-line content) */
  display: flex;
  align-items: center;    /* vertical centering */
  justify-content: center; /* horizontal centering */

  /* allow wrapped text to break onto multiple lines */
  white-space: normal;
}

/* optional: ensure header cells keep readable padding if they wrap */
.reu-blog th {
  font-weight: 600;
  padding: 0.8em 1em;
}


.reu-blog th {
  background-color: #9b0000; /* Wisconsin red header */
  color: #fff;
}

.reu-blog tr:nth-child(even) {
  background-color: #f9f9f9;
}

.reu-blog tr:hover {
  background-color: #f1f1f1;
}

.reu-blog .disclaimer {
  font-style: italic;
  font-size: 0.9em;
  color: #666;
  border-left: 3px solid #bf5700;
  padding-left: 0.8em;
  margin-top: 1em;
  background: #fff8f3;
  padding-top: 0.5em;
  padding-bottom: 0.5em;
}

