@import "header.css";
@import "footer.css";
@import "responsive.css";

:root {
  --primary-color: #007ACC;
  --secondary-color: #005FA3;
  --dark-color: #1C2530;
  --gray: #D9D9D9;
  --dark-gray: #666;
  --background-color: #F5F5F5;
  --text-color: #000000;
  --orange-color: #be5000;
  --font-heading: 'Roboto', sans-serif;
  --max-width: 1100px;
  --image-width: 200px;
  --image-height: 250px;
  --border-radius: 10px;
  --image-card-height: 400px;
}

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

body {
  font-family: var(--font-heading);
  color: var(--text-color);
  line-height: 1.6;
  font-size: 1rem;
  font-weight: 350;

  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
}

header,
main,
footer {
  width: 100%;
  max-width: var(--max-width);
}

main {
  flex: 1;
  width: 100%;
  margin: 1rem;
  padding: 0rem 2rem;
  box-shadow: 0 4px 20px var(--gray);
  /* subtle shadow */
}

h1 {
  text-align: center;
  font-size: 3rem;
  margin: 0.5rem 0 0.5rem;
}

h1 .highlight {
  color: var(--primary-color);
}

h2 {
  margin: 0.5rem 0 0.5rem;
  scroll-margin-top: var(--header-height, 0px); /* Uses the JS variable, with a fallback of 80px */
}

h3 {
  margin: 0.5rem 0 0.5rem;
}


/* --------------- INTRO text ------------------ */
.section-intro {
  width: 100%;
  margin: auto;

  text-align: justify;
}

.section-intro h2{
  padding: 1rem 0;
}


.section-intro h3{
  padding: 1rem 0 0 0;
}

.section-intro p {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.section-intro a {
  text-decoration: none;
  color: var(--primary-color);
}

.section-intro ul {
  margin-left: 2rem;
}

.border {
  border-top: 1px solid var(--gray);
}

/* --------------- STATS boxes ------------------ */
.stats {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin: 1rem 0;
  width: 100%;
}

.stat-box {
  width: 100%;
  /* max-width: var(--image-width); */
  margin: 1rem auto;
  display: flex;
  align-items: center;
  /* vertical centering */
  justify-content: space-between;
  /* space between text and arrow */
  padding: 0.3rem 1rem 0.3rem 1.5rem;


  background: var(--dark-color);
  color: white;
  border-radius: var(--border-radius);
  text-align: justify;

  transition: all 0.5s ease;
}

.stat-box:hover {
  /* box-shadow: 4px 4px 4px var(--primary-color); */
  /* transform: scale(1.1); */
  transform: translateY(-10px);

}

.stat-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.2rem;
}

.stat-text h2 {
  margin: 0;
  padding-bottom: 0;
  font-size: 2.25rem;
  color: var(--primary-color);
}

.stat-text p {
  margin: 0;
  padding-bottom: 0.1rem;
  color: var(--gray);
}

.stat-box a {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;

  background-color: var(--gray);
  border-radius: 50%;
  color: var(--primary-color);
  font-size: 2.5rem;
  text-decoration: none;
}

/* --------------- CALL TO ACTION - hiring box ------------------ */
.cta {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  /* vertical centering */
  padding: 1rem 2rem;
  flex-wrap: wrap;
  /* allows responsiveness */
  gap: 0.5rem;

  background: var(--secondary-color);
  color: white;
  border-radius: var(--border-radius);
}

.cta-text {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cta-text.long {
  width: 75%;
}

.cta h3 {
  margin: 0;
  text-align: left;
  font-size: 2rem;
  padding-bottom: 0;
}

.cta p {
  padding: 0;
  margin: 0 0 1rem 0;
}

.cta-buttons {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
}

.cta-buttons a {
  padding: 0.5rem 1rem;
  width: 100%;
  /* max-height: 15px; */

  background: var(--primary-color);
  border-radius: var(--border-radius);
  color: white;
  text-decoration: none;
  font-size: 0.8rem;
  text-align: center;
  white-space: nowrap;
}

.cta-buttons a:hover {
  /* color: var(--text-color);
  background-color: var(--gray); */
  /* transform: scale(1.1); */
  transform: translateY(-5px);
}

.cta-link-button a {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;

  background-color: var(--gray);
  border-radius: 50%;
  color: var(--primary-color);
  font-size: 2.5rem;
  text-decoration: none;
}

.cta-link-button a:hover {
  transform: scale(1.3);
}

/* --------------- IMAGES boxes ------------------ */
.images-grid {
  display: grid;
  grid-template-columns: auto auto;
  gap: 2rem;
  margin: 2rem auto;
  align-content: center;
  width: 100%;
}

.image-card {
  height: var(--image-card-height);
  width: 100%;
  position: relative;
  overflow: hidden;

  border-radius: var(--border-radius);
}

.image-card img {
  /* align-items: center; */
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-card .fill img {
  align-items: center;
  display: block;
  object-fit: none;
}


.image-card p {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;

  margin: 0;
  padding: 0.5rem;

  background: var(--dark-color);
  color: white;
  text-align: center;
  /* text-transform: capitalize; */
  border-radius: var(--border-radius);

  opacity: 0;
  transition: opacity 0.3s ease;
}


.image-card:hover p{
 opacity: 1;
}

.small .image-card {
  width: 80%;
}

/* --------------- LINKS ------------------ */
.back-link {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.back-link a {
  color: var(--primary-color);
  font-size: 0.9rem;
  text-decoration: none;
}

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

.apply-link {
  color: #007acc;
  text-decoration: none;
}

.apply-link:hover {
  text-decoration: underline;
}

/* --------------- PROJECT lists ------------------ */
.project-list {
  padding: 0;
  width: 100%;
  margin: 0 auto;
}

.project-list ul {
  margin: 0;
  list-style: none;
}

.project-list li {
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #eee;
  padding-bottom: 2em;
}


.project-list li:last-child {
  border: none;
}

.project-list p {
  font-weight: 300;
  text-align: justify;
}

.project-list a {
  color: var(--primary-color);
  text-decoration: none;
  float: right;
}

.project-list a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

.project-list h2 {
  padding-top: 0.5rem;
}

.project-list h3 {
  margin: 0 auto;
  padding: 1rem 0;
}

/* --------------- PUBLICATION lists ------------------ */
.publication {
  font-weight: 300;
}

.publication h3 {
  text-align: left;
  padding-top: 0.5rem;
}

.publication h5 {
  margin: 0;
}

.publication ul {
  margin: 0rem 0.1rem;
  padding: 0 0 0 0.2rem;
  color: var(--dark-gray);
}

.publication ul li {
  margin: 0.7rem 0;
}

.publication p {
  margin: 2px;
}

.publication a {
  text-decoration: none;
  cursor: pointer;
  color: var(--orange-color);
  padding-right: 0.1rem;
}

.publication .material-icons {
  color: var(--dark-color);
  font-size: 1.3em;
}

.copy-btn {
  float: right;
  margin: 0.1rem;
  padding: 0.3rem 0.6rem;

  font-size: 0.8rem;
  color: var(--dark-color);
  background-color: var(--background-color);
  border: none;
  border-radius: 5px;

  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.copy-btn:hover {
  opacity: 1;
}

pre {
  white-space: pre-wrap;
  font-family: "Courier New", monospace;
  background-color: var(--background-color);
  padding: 1.1rem 1rem 0 1rem;
  border-radius: var(--border-radius);
  border: 1px solid var(--gray);
}

.post-content {
  display: none;
}

.show-content {
  display: block;
}

/* --------------- IMAGE grid------------------ */
.image-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(var(--image-height), 1fr));
  grid-auto-rows: auto;
  gap: 1.1rem;
  width: 100%;
  padding-bottom: 1rem;
}

.image-info-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%; /* Ensures cards in a row have the same height */
  transition: all 0.3s ease;
  border: 1px solid var(--gray);
  border-radius: var(--border-radius);
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.image-info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.image-info-card img {
  height: var(--image-height);  /* This defines the container height (e.g., 250px) */
  width: 100%;                  /* This defines the container width */
  object-fit: contain;          /* This fits the whole image inside the container */
  background-color: white;      /* This creates the "white padding" effect */
  
  /* Your other styles like border-radius remain unchanged */
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

/* New container for text to apply padding and alignment */
.card-content {
  padding: 1rem;
  text-align: left; /* Key change for readability */
  display: flex;
  flex-direction: column;
  flex-grow: 1; /* Allows the content to fill the card height */
}

.card-content strong {
  font-size: 1.1rem;.image-info-card img {
    height: var(--image-height);  /* Keep this as 250px */
    width: 100%;                  /* Change from 'auto' to '100%' */
    object-fit: cover;            /* Change from 'fill' to 'cover' */
  
    /* Your other styles like border-radius remain unchanged */
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }
  color: var(--dark-color);
  margin-bottom: 0.1rem;
}

.card-content .affiliation {
  font-size: 0.9rem;
  color: var(--dark-gray);
  margin-bottom: 0.75rem;
}

.card-content i {
  color: var(--text-color);
  font-style: italic;
  margin-bottom: auto; /* Pushes the button to the bottom */
}

/* Style for the (online) badge */
.online-badge {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  font-size: 0.7rem;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 12px;
  vertical-align: middle;
  margin-left: 5px;
}

/* Style for the Abstract button */
.abstract-btn {
  margin-top: 1rem;
  padding: 8px 12px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--primary-color);
  background-color: transparent;
  border: 1px solid var(--primary-color);
  border-radius: 5px;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease-in-out;
}

.abstract-btn:hover {
  background-color: var(--primary-color);
  color: white;
}

/* Style for the abstract content itself */
.abstract-content {
  font-size: 0.9em;
  text-align: justify;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--gray);
  color: var(--dark-gray);
}

/* --------------- TEAM/ROBOT members ------------------ */
.member-grid {
  min-height: 300px;
}

.member-photo {
  float: left;
  width: 30%;
  padding-top: 1.5rem;
}

.member-info {
  float: right;
  width: 70%;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 10;
  -webkit-box-orient: vertical;
}

.member-info-cont {
  width: 100%;
}
.member-info .section-intro h3 {
  padding-bottom: 0;
}

.member-info .section-intro p {
  padding: 0;
}

.member-info-cont .section-intro h3 {
  padding-bottom: 0;
}

.member-info-cont .section-intro p {
  padding: 0;
}


.member-photo-card {
  display: flex;
  align-items: center;
  flex-direction: column;
  width: 100%;
  flex-shrink: 0;
/* 
  border: 1px solid var(--gray);
  border-radius: var(--border-radius);
  box-shadow: 0 2px 6px var(--gray); */

  transition: box-shadow 0.3s ease;
}

.member-photo-card img {
  height: var(--image-height);
  width: var(--image-width);
  object-fit: cover;
  /* padding: 1rem; */

  border-radius: var(--border-radius);
  opacity: 0.75;

  transition: .5s ease;
}

.member-links {
  display: flex;
  align-items: center;
  justify-content: space-around;
  overflow: hidden;
  z-index: 1;
  padding-left: 0;
  padding-bottom: 1em;
  text-transform: uppercase;
}

.member-links a {
  color: var(--dark-color);
  text-decoration: none;
  position: relative;
}

.member-links a:hover {
  border-bottom: 1px solid var(--dark-color);
  color: var(--secondary-color);
}

/* --------------- CONTACT ------------------ */
.contact-list ul {
  display: flex;
  gap: 2rem; /* spacing between items */
  list-style: none; /* optional: remove bullets */
  padding: 0;
  margin: 0;
}

.contact-list a {
  color: var(--primary-color);
  text-decoration: none;
}

.contact-list img {
    height: var(--image-width);
    border-radius: var(--border-radius);
}

.contact-map {
  width: 100%;
  max-width: 800px;
  margin: 2rem auto;
  border: 1px solid var(--gray);
  border-radius: 8px;
  overflow: hidden;
}

.contact-map iframe {
  width: 100%;
  height: var(--image-height);
}

/* --------------- POPUP banner ------------------ */
.event-banner.corner {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  background:  var(--primary-color); /*linear-gradient(to right, var(--primary-color), var(--orange-color));*/
  color: var(--background-color);
  padding: 0.75rem 1.25rem;
  border-radius: var(--border-radius);
  font-weight: bold;
  width: max-content;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  text-align: center;
}

.event-banner.corner a {
  text-decoration: none;
  color: var(--dark-color);
}

.event-banner.corner:hover {
  transform: scale(1.1);
}

.cta-button-wrapper {
  text-align: center;
  margin: 20px 0;
}

.cta-button {
  background-color: #007bff;
  color: white;
  padding: 15px 25px;
  text-decoration: none;
  border-radius: 5px;
  font-size: 1.2em;
  font-weight: bold;
}

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

.date-list {
  list-style-type: none;
  padding: 0;
}
.date-list li {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}
.date-list .date-label {
  font-weight: bold;
  margin-right: 20px;
}

/* --- CSS for the Program Schedule --- */

/* Basic layout for each row */
.date-list li {
  display: flex;
  justify-content: space-between;
  padding: 10px 15px; /* Adds some nice spacing */
  border-bottom: 1px solid #eee;
  border-radius: 5px; /* Rounds the corners */
  margin-bottom: 5px; /* Adds space between rows */
}

.date-list .date-label {
  font-weight: bold;
  margin-right: 20px;
}

/* Light background colors for each event type */
li.event-speech {
  background-color: rgba(40, 167, 69, 0.1); /* Light Green */
}
li.event-poster {
  background-color: rgba(0, 123, 255, 0.1); /* Light Blue */
}
li.event-break {
  background-color: rgba(108, 117, 125, 0.1); /* Light Grey */
}