 /* =====================
   Base + Layout
===================== */

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: #f5f5f5;
  margin: 0;
  padding: 0;
  color: #333;
}

html, body {
  width: 100%;
  overflow-x: hidden;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem;
  background: none !important;
  box-shadow: none !important;
}


.profile-contact {
  margin-top: 1rem;
  font-size: 0.95rem;
  text-align: left;
}

.profile-contact a {
  display: block;
  color: #0056b3;
  text-decoration: none;
  margin-bottom: 0.25rem;
}

.profile-contact a:hover {
  text-decoration: underline;
}

/* =====================
   Banner + Hero
===================== */

.banner {
  width: 100%;
  height: 300px;
  background-image: url("assets/gallery2.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-bottom: 4px solid #eee;
  margin-bottom: 1rem;
}

.banner::after {
  content: "";
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.15), rgba(255,255,255,0.7));
}

.hero {
  position: relative;
  width: 100%;
  height: 320px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
}

.hero-overlay {
  background: rgba(0, 0, 0, 0.4);
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  color: white;
  backdrop-filter: blur(3px);
}

.hero-overlay h1 {
  font-size: 2.25rem;
  margin: 0;
  font-weight: 600;
}

.hero-overlay h2 {
  font-size: 1.2rem;
  margin: 0.5rem 0 0 0;
  font-weight: 400;
}

@media (max-width: 600px) {
  .hero {
    height: 240px;
  }

  .hero-overlay h1 {
    font-size: 1.5rem;
  }

  .hero-overlay h2 {
    font-size: 1rem;
  }
}

/* =====================
   Profile / Bio Section
===================== */

.profile-section {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  align-items: flex-start;
  margin-bottom: 3rem;
  text-align: justify;
}

 
  
.profile-left {
  flex: 0 0 180px;
}

.profile-pic {
  width: 180px;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.profile-right {
  flex: 1;
}

.profile-right h1 {
  margin: 0;
  font-size: 1.75rem;
}

.profile-right h2 {
  font-weight: normal;
  color: #555;
  font-size: 1.1rem;
  margin-top: 0.25rem;
}

.profile-header {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 1rem;
}

.profile-header img {
  width: 250px;
  height: auto;
  border-radius: 8px;
}

  .bio {
    text-align: justify;
  }
  .hidden {
    display: none;
  }
  
  .text-justify {
  text-align: justify;
}

.profile-links {
  margin-top: 0.75rem;
  font-size: 0.95rem;
}

.profile-links a {
  display: inline-flex;
  align-items: center;
  color: #004080;
  text-decoration: none;
  margin-right: 0.75rem;
  font-size: 1rem;
  white-space: nowrap;
}

.profile-links a::first-letter {
  margin-right: 0.3rem;
}

.profile-links a:hover {
  text-decoration: underline;
}

.profile-institutions {
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.profile-institutions a {
  background-color: #e9eef5;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  color: #004080;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background-color 0.2s;
}

.institution-item a {
  color: #004080;        /* A deep professional blue */
  font-size: 1.05rem;    /* Slightly larger text */
  text-decoration: none; /* Removes underline */
  font-weight: 500;      /* Adds a little emphasis */
}

.institution-item a:hover {
  color: #002a5c;         /* Even darker on hover */
  text-decoration: none;  /* Keeps it clean */
}

.institution-item a:visited {
  color: #004080;  /* Same as unvisited   color: #222; if you want black*/
}

#bio-container p {
  margin-bottom: 1em;
}

@media (max-width: 768px) {
  .profile-section {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .profile-left {
    margin-bottom: 1rem;
  }

  .profile-right h2 a {
    display: inline-block;
  }
}

/* =====================
   Section Wrappers
===================== */

section {
  width: 100%;
  padding: 2rem 0;
}

.section-light {
  background-color: #ffffff;
}

.section-dark {
  background-color: #f4f4f4;
}

.section-accent {
  background-color: #eef6ff;
}

.section-image {
  background-image: url("assets/gallery1.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
    display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 4rem 1rem;
  

}

.section-image {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4rem 1rem;
  text-align: center;
  min-height: 400px;
}

.section-image .overlay-text {
  background-color: rgba(0, 0, 0, 0.5);
  padding: 2rem;
  border-radius: 12px;
  color: white;
  max-width: 700px;
  width: 100%;
}

.section-image .overlay-text p {
  font-size: 1.25rem;
  margin: 1rem 0 0;
}

.section-image .container {
  background-color: rgba(0, 0, 0, 0.4);
  padding: 2rem;
  border-radius: 12px;
}

/* =====================
   Teaching Section (Overlay on Partial Background)
===================== */

.section-image-overlay {
  position: relative;
  height: 400px;
  padding: 4rem 1rem;
  display: flex;
  align-items: center;
  /* Change this value to align shadow box */
  justify-content: flex-end; /* left-aligned flex-start, center, or flex-end */
  /* options: center | flex-start | flex-end */
  overflow: hidden;
}

/* Background image over 2/3 of the screen */
.section-image-overlay::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 66.66%; /* for 2/3 — change to 50% for half */
  background-image: url("assets/gallery1.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
}

/* Keeps content above the image layer */
.section-image-overlay .container {
  position: relative;
  z-index: 2;
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Shadow box */
.overlay-text {
  background-color: rgba(0, 0, 0, 0.5);
  padding: 2rem;
  color: white;
  border-radius: 12px;
  text-align: left;
  width: 100%;
}

/* Typography inside shadow box */
.overlay-text h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.overlay-text p {
  font-size: 1.25rem;
  margin: 0;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .section-image-overlay {
    flex-direction: column;
    height: auto;
  }

  .overlay-text {
    padding: 1rem;
  }

  .overlay-text h2 {
    font-size: 1.5rem;
  }

  .overlay-text p {
    font-size: 1rem;
  }
}


/* =====================
   Teaching reverse split
===================== */

.section-split-reverse {
  display: flex;
  height: auto;
  width: 100%;
  min-height: 400px;
}

.section-split-reverse .text-side {
  width: 35%;
  padding: 3rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f5f5f5;
}

.section-split-reverse .text-content {
  max-width: 600px;
  text-align: left;
  color: #333;
}

.section-split-reverse .image-side {
  width: 65%;
  background-image: url('assets/gallery1.jpg'); /* swap in your image */
  background-size: cover;
  background-position: left center;
  background-repeat: no-repeat;
}

/* =====================
   Research
===================== */

#research h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 1.5rem;
  color: #002a5c;
  border-bottom: 2px solid #ccc;
  padding-bottom: 0.5rem;
  letter-spacing: 0.3px;
}


/* =====================
   New exciting  
===================== */

.section-split {
  display: flex;
  height: 400px;
  width: 100%;
}

.image-side {
  width: 60%; /* 2/3 of the screen */
  background-image: url("assets/gallery3.jpg") ;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% auto;
}

.text-side {
  width: 40%; /* 1/3 of the screen */
  background-color: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
}

.text-content {
  max-width: 100%;
  width: 100%;
  color: #333;
  text-align: left;
}

.text-content h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.text-content p {
  font-size: 1.25rem;
  margin: 0;
}


/* =====================
  media responsive styling 
===================== */


@media (max-width: 768px) {
  .section-split {
    flex-direction: column;
    height: auto;
  }

  .image-side,
  .text-side {
    width: 100%;
    height: 200px;
  }

  .text-side {
    height: auto;
    padding: 1.5rem;
  }
}

@media (max-width: 768px) {
  .section-split-reverse {
    flex-direction: column;
    height: auto;
  }

  .section-split-reverse .image-side,
  .section-split-reverse .text-side {
    width: 100%;
    height: auto;
  }

  .section-split-reverse .image-side {
    height: 200px;
  }

  .section-split-reverse .text-side {
    padding: 1.5rem;
  }
}

@media (max-width: 768px) {
  #filters {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  #filters label {
    display: flex;
    flex-direction: column;
    font-size: 1rem;
  }

  /* Specifically target the checkbox label */
  #filters .checkbox-label {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
  }

  #filters select {
    margin-top: 0.25rem;
  }
}

/* =====================
   Papers, Gallery, Filters
===================== */

.paper {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: none; /* clean modern look */
  background-color: #ffffff;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.paper .title {
  font-weight: bold;
}

.abstract {
  display: none;
  margin-top: 0.5rem;
  font-style: italic;
}

.abstract.show {
  display: block;
}

.links a {
  display: inline-block;
  background-color: #004080;
  color: white;
  padding: 0.4rem 0.8rem;
  margin-right: 0.5rem;
  margin-top: 0.5rem;
  border-radius: 5px;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.links a:hover {
  background-color: #002a5c;
  transform: translateY(-1px);
}
#filters {
  margin-bottom: 2rem;
}

.gallery {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 2rem;
}

.gallery img {
  height: 200px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}


 

/*Button */
#toggle-button {
  background-color: #004080;
  color: white;
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  font-weight: 500;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  margin-top: 1rem;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

#toggle-button:hover {
  background-color: #002a5c;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}


.project-link {
  margin-bottom: 1rem;
  font-size: 1.05rem;
}


/* Teaching */
.teaching-section h3 {
  font-size: 1.4rem;
  color: #004080;
  margin-top: 1.5rem;
}

.teaching-section ul {
  list-style-type: none;
  padding-left: 0;
  margin: 0.5rem 0 1rem;
}

.teaching-section li {
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

/* Awards */

#awards-list {
  margin-top: 1rem;
}

.award-item {
  margin-bottom: 1.5rem;
}

.award-item h4 {
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

.award-item p {
  margin: 1rem;
   font-size: 0.95rem;
}


@media (max-width: 768px) {
  .banner {
    margin-left: 0;
    margin-right: 0;
    width: 100vw;
  }
}
