/* font-family: "Lucida Grande","Lucida Sans Unicode","Lucida Sans","DejaVu Sans","Bitstream Vera Sans","Liberation Sans",Verdana,"Verdana Ref",sans-serif; */
* {
  box-sizing: border-box;
}
.singlecolumn {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}
.item {
  width: 50%;
  text-align: center;
}

.item img {
  width: 100%;
  height: 250px; 
  object-fit: cover; 
  border-radius: 8px;
}

/* Improved section header style for committee page divisions */
.section-header {
  background-color: #007399;
  background-image: linear-gradient(to right, #007399, #00abd6);
  color: white;
  text-align: center;
  padding: 12px 0;
  border-left: 5px solid #00e1ff;
  /* margin-top: 20px; */
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.section-header h2 {
  margin: 0;
  font-size: 22px;
  font-family: Arial Narrow;
  letter-spacing: 1px;
}

/* Style for role/position text */
.role {
  display: inline-block;
  background-color: #f0f8ff;
  color: #0066cc;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 4px;
  margin-top: 3px;
  font-size: 0.9em;
  border-left: 3px solid #0066cc;
}

body {
  font-family: Arial;
  margin: auto;
  width: 80%;
  max-width: 1100px;
  background: #999999;
  padding-top: 15px;
}

a:link {
  text-decoration: none;
}

a:visited {
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

a:active {
  text-decoration: none;
}

/* Header/Blog Title */
.header {
  padding: 5px;
  text-align: center;
  /*background: #f4f6fb;*/
  background: white;
  color: #002b57;
}

.header h1 {
  font-size: 28px;
  font-family: Arial Narrow;
}

.header h2 {
  font-size: 20px;
  font-family: Arial Narrow;
}

.header p {
  font-size: 20px;
  font-family: Arial Narrow;
}

figure.item {
  /* To correctly align image, regardless of content height: */
  vertical-align: top;
  display: inline-block;
  /* To horizontally center images and caption */
  text-align: center;
  /* The width of the container also implies margin around the images. */
  width: 250px;
}

/* Ensure all images maintain consistency */
figure.item img {
  width: 100% !important;
  height: 300px !important;
  object-fit: cover !important;
  object-position: center 20% !important; /* Adjust to show more of faces */
  border-radius: 8px !important;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1) !important;
  transition: transform 0.3s ease !important;
}

figure.item img:hover {
  transform: scale(1.03) !important;
}

.caption {
  /* Make the caption a block so it occupies its own line. */
  display: block;
  max-width: 250px;
  text-align: center;
  margin-top: 10px;
  line-height: 1.5;
}

/* Left column for topics*/
.firstcolumn {
  text-align: center;
  width: 366px;
  display: table-cell;
}

/* Right column for topics*/
.secondcolumn {
  text-align: center;
  width: 366px;
  display: table-cell;
}

/* Right column for topics*/
.thirdcolumn {
	text-align: center;
  max-width: 366px;
  display: table-cell;
}

/* Single column*/
.singlecolumn {
  max-width: 1100px;
}

table {
  border-collapse: collapse;
  width: 100%;
  table-layout: fixed;
}

th,
td {
  padding: 5px;
  text-align: left;
  border-bottom: 1px solid #ddd;
  border-top: 1px solid #ddd;
}

tr:hover {
  background-color: #d8e5f3;
}

.card1 {
  background-color: white;
  max-width: 1100px;
  padding-top: 5px;
  padding-bottom: 20px;
  font-family: Arial;
  line-height: 22px;
  font-size: 16px;
  text-align: center;
  margin-bottom: 10px;
}

.card1 p {
  font-size: 16px;
  font-family: Arial;
}

.title_card {
  background-color: #ffffff;
  max-width: 1100px;
  /*padding-left: 70px;
	padding-right: 30px;*/
  padding-top: 20px;
  padding-bottom: 20px;
  font-family: Arial;
  line-height: 22px;
  font-size: 20px;
  text-align: center;
  color: #007399;
}

.card1 h2 {
  font-size: 21px;
  color: #007399;
  font-family: Arial Narrow;
}

.card1 h3 {
  font-size: 19px;
  color: #007399;
  font-family: Arial Narrow;
}

/* Add a card effect for articles */
.card_for_important_date {
  padding: 20px;
  margin-top: 20px;
}

/* Clear floats after the columns */
.row::after {
  content: "";
  display: table;
  clear: both;
  width: auto;
}

/* Footer */
.footer {
  padding: 50px;
  text-align: center;
  background: #f4f6fb;
  margin-bottom: 20px;
}

.cfp_download_btn {
  background-color: #0088cc;
  /*background-color: #006699;*/
  border-radius: 6px;
  border: none;
  color: white;
  padding: 10px 32px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 17px;
  cursor: pointer;
}

/* Darker background on mouse-over */
.cfp_download_btn:hover {
  background-color: #005580;
  /*background-color: #008ae6;*/
  transition-duration: 0.25s;
  transform: scale(1.06);
  /*border: 1px solid red;*/
}

.center {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 15px;
}

@media screen and (max-width: 600px) {
  .card1 {
    width: 100%;
    padding: 20px;
  }

  .title_card {
    padding: 5px;
  }

  .singlecolumn {
    width: 100%;
    padding: 0;
  }

  .firstcolumn {
    display: block;
    width: 100%;
    padding-left: 0;
  }

  .spacecolumn {
    display: none;
  }

  .secondcolumn {
    display: block;
    width: 100%;
  }

  /* Fix image display on mobile */
  figure.item {
    width: 100%;
    max-width: 300px;
    margin: 0 auto 20px auto;
  }
  
  figure.item img {
    height: 300px !important;
    object-position: center 25% !important; /* Adjust to show more of faces on mobile */
  }
  
  .caption {
    text-align: center !important;
    margin: 10px auto;
  }
  
  .role {
    font-size: 0.8em;
    display: block;
    margin: 5px auto;
    max-width: 90%;
    text-align: center;
  }
}
