body {
  background-image: url("https://static.igem.wiki/teams/5641/master/background-highres.webp");
  background-size: 100% auto;
  background-position: center top;
  background-repeat: no-repeat;
  padding-top: 80px; 
  background-color: #d0d4fc;
}


.left-aligned { margin-left: auto; }
.bg-dark { background-color: #343a40 !important; }
.bg-hero { background-color: transparent; }

.custom-title {
    color: #2c3e50; 
    font-size: 2.5rem; 
    font-weight: 700; 
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.custom-lead-wrapper {
    border-bottom: 2px solid #3498db; 
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
    max-width: 80%; 
}

.custom-lead {
    color: #ffffff; 
    font-size: 1.25rem; 
    font-weight: 400; 
    margin-bottom: 0; 
}
/* CALLOUT */
.bd-callout { padding:1.25rem; margin-top:1.25rem; margin-bottom:1.25rem; border:1px solid #e9ecef; border-left-width:.25rem; border-radius:.25rem }
.bd-callout h4 { margin-bottom: 1.25rem }
.bd-callout p:last-child { margin-bottom:0 }
.bd-callout code { border-radius:.25rem }
.bd-callout+.bd-callout { margin-top:-.25rem }
.bd-callout-info { border-left-color:#5bc0de }
.bd-callout-warning { border-left-color:#f0ad4e }
.bd-callout-danger { border-left-color:#d9534f }

/* footer */
footer a { color: white; font-weight: bold; text-decoration: none; }
footer a:hover { color: white; text-decoration: underline; }
footer{
  background-color: #befff7;
  color: white;
  min-height: 400px;
}
/* navbar */

#mainNavbar {
    background-color: #befff7; 
    color: #165085;
    transition: transform 0.3s ease-in-out;
    min-height: 90px;
    max-height: 90px;
    padding: 10px 10px 5px 0px; 
    box-shadow: 0px 8px 5px lightblue;
}
#mainNavbar .navbar-nav .nav-link {
    font-size: 1.2rem;
    font-weight: 900;
    color: #165085;
}
#mainNavbar .navbar-nav .nav-link:hover {
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 4px;
  transform: scale(1.05);
}

#mainNavbar.navbar-hide {
    transform: translateY(-100%);
}

#mainNavbar .dropdown-menu {
  background-color: #ebfdfd;
  border: none;
  margin-top: 0.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1); /*menu 3d*/
}


#mainNavbar .dropdown-menu .dropdown-item {
  color: #165085 !important; 
  padding: 10px 20px; 
  font-weight: 600; 
  transition: all 0.3s ease;
  border-left: 3px solid transparent; 
}

#mainNavbar .dropdown-menu .dropdown-item:hover {
  background-color: #d0f0f0; 
  color: #0b5394; 
  border-left-color: #0b5394; 
  transform: translateX(5px); 
  padding-left: 17px; 
}

#backToTopBtn {
  position: fixed;
  bottom: 40px;
  right: 40px;
  z-index: 999;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

#backToTopBtn img {
  width: 40px; /* adjust as needed */
  height: auto;
  transition: transform 0.3s ease;
}

#backToTopBtn:hover img {
  transform: scale(1.101);
}


.progress-container {
  width: 100%;
  height: 6px;
  position: fixed;
  top: 0px; 
  left: 0;
  z-index: 9999; 
  background-color: white; 
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #a3b8ff, #1b8df7);
  width: 0%;
  transition: width 0.1s ease;
  display: block; 
}
.hk-hcy-pcms-text {
  padding-left: 10px;
  padding-top: 3px;
  color: #0b5394 !important;
}

/* main layout*/
.main-layout-container {
  display: flex;
  min-height: 100vh;
  background-color: transparent;
  gap: 20px;
  justify-content: center 
}

.side-menu {
  min-width: 250px;
  max-width: 250px;
  height: auto;
  max-height: fit-content;
  position: sticky;
  top: 90px;
  background-color: #befff7;
  border-right: 1px solid #dee2e6;
  border-radius: 20px;
  padding: 5px 20px 20px 20px; 
  box-shadow: 8px 8px 5px lightblue;
  overflow-y: auto;
}

.menu-header {
  padding: 0 0 5px 0; 
  margin: 0 0 10px 0; 
  border-bottom: 5px solid #165085;
  font-size: 30px;
  color: #165085;
  line-height: 1; 
}

.menu-header h3 {
  margin: 5px; 
  padding: 5px; 
}


.topic-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.topic-list li {
  margin-bottom: 10px;
}

.topic-list a {
  display: block;
  padding: 8px 12px;
  color: #165085;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.2s;
}

.topic-list a:hover {
  background: #e9ecef;
  box-shadow: 0px 0px 5px 5px lightblue;
}

.topic-list .active a {
  background: #165085;
  color: #befff7;
}

/* Content Area */
.content-container {
  flex: 1;
  padding: 30px;
  background-color: #befff7;
  border-right: 1px solid #dee2e6;
  border-radius: 20px;
  max-width:1300px;
}

.content-section {
  margin-bottom: 40px;
  padding-bottom: 40px;
  color: #165085;
  border-bottom: 1px solid #165085;
}

.content-section h2{
  border-bottom: 3px solid #165085;
}
/* horizontal pics arrangement */
.content-hori-arrange-center {
  display: flex;
  background-color: transparent;
  gap: 20px;
  justify-content: center 
}

.content-hori-arrange-pic-container {
  align-items:center;
  text-align:center;
}
.content-hori-arrange-pic-container img{
  max-height: 300px;
  max-width: 300px;
}

/*horizontal pics+text arrangement */
.content-hori-pic-text {
  display: flex;
  background-color: transparent;
  gap: 20px;
  justify-content: left;
}

.text-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.content-box {
  position:relative;
  gap: 0px 5px 5px 5px;
  padding: 0px;
  border: 3px soild;
  border-radius: 10px;
  background-color:#FFF;
  max-width:1300px;
  margin: 0px;
}
.content-header-box {
  text-align: center;
  background-color: #0FF;
  width:100%;
  font-weight: 900;
  border-radius: 10px;
  padding:10px;
  box-sizing: border-box;
}
.content-box.expanded .content-header-box{
  background-color: #165085;
  color:white;
}
.content-preview {
  color: #000;
}
.content-hidden {
  transition:
    max-height 0.5s ease-in-out,
    opacity 0.2s ease,
    padding 0.3s ease;
  max-height: 0;
  overflow: hidden;
}
.content-box.expanded .content-hidden {
  height:auto;
  transition:
    max-height 0.5s ease-in-out,
    opacity 0.2s ease,
    padding 0.3s ease;
  max-height: fit-content; 
  padding-bottom: 15px; 
  border-top: 2px dotted rgba(0,0,0,0.1); 
}
.content-header-box h3::after {
  content: " ▼";
}
.content-box.expanded .content-header-box h3::after {
  content: " ▲";
}
.content-header-box:hover{
  background-color: #165085;
  color: white;
  cursor: pointer;
}
/*arrow*/
.content-header-box:before {
  content:'';
  position: absolute;
  left: -24px;
  width: 0;
  top: 18px; /*hardcode*/
  height: 0;
  border-top: 17px solid transparent;
  border-bottom: 17px solid transparent;
  border-right: 25px solid #0FF;
  z-index: 999;
}
.content-box p{
  padding:5px 20px 5px 20px;
}

/* dot */
.content-box:before{
  content:'';
  position:absolute;
  width: 35px;
  height: 35px;
  background-color: #FFF;
  border: 8px solid #165085;
  border-radius: 50%;
  left: -60px; /*hardcode need fix*/
  transform:translateY(16px); /*hardcode need fix*/
  z-index:1000;
  box-sizing: border-box;
}
/*member page*/
.member-container{
  margin-top: 50px;
  padding: 30px 0;
  background-color: #f8f9fa;
  border-radius: 10px;
  max-width: 1500px
}
.member-container h2 {
  font-size: 40px;
  margin: 0 10px 25px 10px;  
  padding: 0 0 15px 0;
  border-bottom: 4px solid #e0e0e0; 
}
/* Grid Layout */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 300px));
  justify-content: center;
  gap: 20px;
  padding: 10px;
  background: transparent;
}

/* Individual Card */
.card {
  background: transparent;
  perspective: 1000px;
  height:350px;
  border: none !important;
  outline: none !important; 
}
.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s;
  transform-style: preserve-3d;
  background-color: transparent;
  border-radius:8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.card:hover .card-inner{
  transform: rotateY(180deg);
}

.card-front, .card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden; 
  backface-visibility: hidden; 
  border-radius:8px;
  border: none !important;   
  outline: none !important; 
}


.card-front {
  background-color: #95a2d1;
  color: white;
}

.card-front h3{
  font-size: 30px; 
  margin: 0 0 5px 0; 
  padding: 0; 
}
.card-front p{
  font-size: 15px; 
  margin: 0 0 5px 0; 
  padding: 10px; 
}
.card-back {
  background-color: #8590c8;
  color: white;
  transform: rotateY(180deg);
}
.card-back h3{
  font-size: 40px; 
  margin: 20px 0 5px 0; 
  padding: 0; 
}
.card-back p{
  font-size: 20px; 
  margin: 0 0 5px 0; 
  padding: 10px; 
}
.card-imgcontainer{
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  margin: 10px auto;
  border: 3px solid white;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}
.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

/*hp*/
.hp-header {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  box-sizing: border-box;
  padding: 300px 50px;
  text-align: center;
  background-color: #d9d9d9;
}

.hp-header h1{
  font-size: 72px;
  color: #2c3e50;
  font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
}

.hp-overview h1{
  font-size: 64px;
  color: #2c3e50;
}

.hp-overview {
  font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
  color: #2c3e50;
  font-size: 1em;
}

.hp-line {
  border-bottom: 2px solid #979fbd;
  margin: 10px 0px 10px;
  width: 100;
}

.overview-box {
  height: auto;
  width: 100%;
  display: flex;
}

.obox {
  width: 300px;
  height: 300px;
  background-color: #eff2fe;
  text-align: center;
  align-items: center;
  border-radius: 10px;
  margin: 30px auto 30px;
}

.obox p {
  margin-top: 70%;
}

.overview-box2 {
  width: 100%;
  height: 300px;
  margin: 30px auto 50px;
  background-color: #eff2fe;
  border-radius: 10px;
  text-align: center;
  align-items: center;
}

.overview-box2 p {
  margin-bottom: 100px;
}

.hp-title {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hp-title-row {
  display: flex;
  gap: 30px;
  justify-content: center;
}

.circle {
  width: 150px;
  height: 150px;
  background: #eff2fe;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2c3e50;
  box-shadow: 6px 8px 3px 0px #7a89a6;
}

.circle:hover {
  box-shadow: 12px 16px 12px 0px #7a89a6;
  background: #eff2fe;
  transform: scale(1.1);
}

.hp-t-container {
  max-width: 800px;
  margin: 20px auto;
  padding: 0;
  font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
}
.hp-t-section {
  background: #eaeef8;
  border-radius: 12px;
  padding: 22px 25px 30px 25px;
  margin-bottom: 22px;
  box-sizing: border-box;
  box-shadow: 0 1px 4px #0001;
}
.section-title {
  font-size: 1.1em;
  font-weight: bold;
  margin-bottom: 12px;
  margin-top: 0;
}
.reflective-title {
  margin: 0 0 8px 0;
  font-size: 1em;
  font-weight: bold;
  border-bottom: 1px solid #aab7d9;
  padding-bottom: 4px;
}
.input-label {
  font-size: 0.97em;
  margin-bottom: 3px;
  display: block;
}
.line-textarea {
  width: 100%;
  min-height: 20px;
  background: none;
  border: none;
  border-bottom: 1px dashed #888;
  margin-bottom: 16px;
  font-family: inherit;
  font-size: 1em;
  resize: none;
  outline: none;
  color: #3a4460;
  padding-top: 6px;
}
.img-row {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin: 24px 0;
}
.img-placeholder {
  width: 140px;
  height: 110px;
  background: #d4d4d4;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #969696;
  font-size: 1.1em;
  font-weight: 500;
}
/* Reflective cycle section */
.reflective-cycle {
  background: #e3e8fa;
  border-radius: 10px;
  padding: 22px 18px 28px 18px;
  margin-bottom: 18px;
  box-sizing: border-box;
}
.reflective-row {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}
.reflective-textbox {
  flex: 2 1 220px;
  background: #f8f9fd;
  border-radius: 8px;
  padding: 14px 12px 10px 12px;
  border: 1px solid #dee3f3;
  display: flex;
  flex-direction: column;
  font-size: 0.97em;
}
.reflective-img {
  flex: 1 1 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #d4d4d4;
  border-radius: 8px;
  min-width: 100px;
  min-height: 100px;
  font-size: 1.2em;
  color: #969696;
  font-weight: 500;
}
.columns-row {
  display: flex;
  gap: 16px;
}
.column-box {
  flex: 1 1 0;
  background: #f3f6fb;
  border-radius: 10px;
  padding: 14px 10px 14px 14px;
  border: 1px solid #dee3f3;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.column-heading {
  font-size: 1em;
  font-weight: bold;
  margin-bottom: 5px;
  color: #3a4460;
}
.column-label {
  font-size: 0.97em;
  margin-bottom: 3px;
}
@media (max-width: 700px) {
  .img-row, .reflective-row, .columns-row {
    flex-direction: column;
    gap: 14px;
  }
  .img-placeholder, .reflective-img {
    width: 100%;
    min-width: 0;
  }
}

/*education*/

.edu-header {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  padding: 250px 50px;
  background-color: #d3d3d3;
  box-sizing: border-box;
  font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
}

.edu-header h1 {
  font-size: 64px;
  font-weight: bold;
  color: #2C3E50;
  text-align: center;
}

.edu-overview {
  width: 100%;
  text-align: left;
  padding-bottom: 10px;
  padding-top: 50px;
  margin-bottom: 20px;
  color: #2C3E50;
  font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
}

.edu-overview h1 {
  margin: 50px 0;
  font-size: 50px;
  font-weight: bold;
  border-bottom: 3.5px solid #b3b3b3;
}

.edu-overview p {
  margin-left: 30px;
  font-size: 20px;
  margin-top: 10px;
  text-align: justify;
  word-break: normal;
  white-space: normal;
}


.edu-div {
  width: 100%;
  margin: 0 auto 15px;
  padding: 15px 0 0;
  background-color: #ededed;
  border-radius: 25px;
  font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
  box-sizing: border-box;
  font-size: 200%;
  text-align: center;
  font-weight: bold;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 10px;
}
#edu-box-2-4,
#edu-box-3-4,
#edu-box-1-4 {
  margin-bottom: 0px !important;
}

.edu-hidden-div {
  background-color: #b0b0b0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.8s ease;
  box-sizing: border-box;
  width: 100%;
  padding-left: 30px;
  padding-right: 30px;
  padding-top: 0px;
}

.edu-hidden-div.show {
  max-height: 3000px;
}

.edu-hidden-div p {
  font-size: 0.5em;
  text-align: justify;
  word-break: normal;
  white-space: normal;
  margin: 0;
}

.edu-button-div {
  width: 100%;
  display: flex;
  justify-content: center;
}


.edu-box-container {
  display: flex;
  gap: 40px;
  justify-content: center;
  margin-top: 200px;
}

.edu-flip-card {
  width: 450px;
  height: 450px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px;
  font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
  font-weight: bold;
  font-size: 2em;
  perspective: 1000px;
}

.edu-flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

.edu-flip-card:hover .edu-flip-card-inner {
  transform: rotateY(180deg);
}

.edu-flip-card-front,
.edu-flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
  font-size: 1.2em;
}

.edu-flip-card-front {
  background-color: #ededed;
  color: #2C3E50;
}

.edu-flip-card-back {
  background-color: #b0b0b0;
  color: #fff;
  transform: rotateY(180deg);
}

.edu-big-box {
  color: #2C3E50;
  font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
  margin-bottom: 30px;
  padding: 20px;
  border-radius: 15px;
}

.edu-big-box h1 {
  font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
  text-align: center;
  margin-bottom: 20px;
}

.add-div {
  width: 100%;
  margin: 0 auto 15px;
  padding: 15px 0 0;
  background-color: #eeeeee;
  border-radius: 25px;
  font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
  box-sizing: border-box;
  font-size: 200%;
  text-align: center;
  font-weight: bold;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 10px;
}


button {
  background-color: #ccc;
  border: none;
  border-radius: 0 0 25px 25px;
  cursor: pointer;
  font-size: 0.4em;
  transition: background-color 0.5s;
  width: 100%;
  height: 30px;
}

button:hover {
  background-color: #bbb;
}

