::-webkit-scrollbar {
  display: none;
}

*{
  margin: 0;
  padding: 0;
  box-sizing: border-box
}

body{
  font-family: Montserrat;
  display: grid;
  justify-items:center;
  background-color: white;
  min-height: 100vh;
  
}

/* Nav Section */

.header{
  background-color: white;
  display: flex;
  flex-direction: column;
  justify-items: center;
  align-items: center;
  width: 100%;
  position: sticky;
  top: 0;
  font-weight: 650;
  font-size: 18px;
  z-index: 1;
}

li.nav{
  display: flex;
  align-content: center;
}

nav.main-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 96%;
  padding: 15px;
}

.checkbtn{
  font-size: 30px;
  cursor: pointer;
  display: none;
}

#check{
  display: none;
}

ul.main-list {
  width: 60%;
  list-style-type: none;
  display: flex;
justify-content: space-around;
}

a.nav-items:hover{
  transition-duration: 0.4s;
  text-decoration: underline #950000;
  color:#950000;
  cursor: pointer;
}


a.nav-items{
  display: block;
  align-content: center;
  text-decoration: none;
  color: black;

}

button.CVbutton{
  height: 50px;
  width: 130px;
  color:white;
  background-color: #950000;
  box-shadow: 3.5px 3.5px black;
  border-radius: 25px; 
  overflow: hidden;
  cursor: pointer;
  transition-duration: 0.3s;
  font-size: 16px;
  font-weight: 650;
  
}

li.mobile-button{
  display: none;
}

.CVbutton:hover {
  background-color: white;
  color: #950000;
}


hr.nav{
  width: 100%;
  height: 3px;
  color: #950000;
  background-color: #950000; 
}


main{
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    width:90%;
}


/* table */
section.academic-performance {
  margin: 2% 0 5% 0;
  display: block;
  justify-content: center;
}

table, tr, th, td, caption {
  font-size: clamp(0.938rem, 0.843rem + 0.337vw, 1.125rem);
  border: 2px  solid #eee;
  border-collapse: collapse;
  padding: 0.5rem;
}

ul.undecorated{
  list-style-type: none; 
}

table.participationTable {
  width:100%;
  border-collapse: collapse;
}
th, td {
  border: 3px solid red;

  padding: 8px;
  text-align: left;
}


ul.experience-items{
  list-style:circle;
  padding: 10px;
  li {
    padding: 5px;
    font-size: clamp(0.938rem, 0.843rem + 0.337vw, 1.125rem);

  }
}

/* timeline */
section.main-experience {
  width: 90%;
  display: flex;
  flex-direction: column;
  margin: 0 auto; /* Center the section */
}

.experience {
  font-size: 18px;
  display: flex;
  flex-direction: column; /* Stack items vertically */
  align-items: center;
  padding: 20px 0; /* Add padding instead of fixed height */
}

.list-wrapper {
  position: relative;
}

.list-item-wrapper {
  margin-top: 20px; /* Add space between items */
  position: relative;
  display: flex; /* Use flexbox for alignment */
  align-items: flex-start; /* Align items at the start */
}

.list-bullet {
  margin-right: 15px; /* Adjust margin to avoid overlap */
  background: #FF4949;
  height: 30px;
  width: 30px;
  line-height: 30px;
  border-radius: 100px;
  font-weight: 700;
  color: white;
  text-align: center;
}

.list-item {
  display: block; /* Use block instead of table-row for better responsiveness */
  position: relative; /* Position relative for absolute children */
}

.list-title {
  font-weight: 700;
}

.list-text {
  font-weight: 400;
}

.red-line {
  background: #FF4949;
  z-index: -1; /* Ensure it stays behind other elements */
  width: 2px; /* Adjust width for better visibility */
  height: calc(100% + 20px); /* Extend height to cover all items */
  position: absolute;
  left: 15px; /* Align with bullets */
}

.white-line {
  background: #FFF;
  z-index: -1;
  top: 0px;
  width: 1px;
  height: 100%;
  position: absolute;
  left: 15px; /* Align with red line */
}

h2 {
  padding: 1%;
  color: #D00000;
  font-size: 35px;
  font-weight: 300;
  margin: 1% 0 1% 0;
}

/* Footer Section */

footer.footer-container {
  height: 55vh;
  min-height: 450px;
  width: 100%;
  background-color: #950000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  margin-top: 5%;
  font-size: 18px;
}
  
div.footer-content{
  width: 75%;
  height: 80%;
  align-content: center;
}
  
div.links-section{
  height: 50%;
  display: flex;
  justify-content: space-around;
}
  
ul.footer-ul{
  list-style: none;
  
  li{
  margin-bottom: 13px;
  }
}

a.footer {
  color: white;
  text-decoration: none;
}

a.footer:hover {
  color: yellow;
  transition: 0.3s;
  text-decoration: underline;
}
  
div.links{
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  }
  
.footer-h3{
  margin-bottom: 20px;
  }
  
div.footer-links {
  margin-top: 15px;
  display: flex;
  justify-content: center;
  }
  
hr.footer{
  margin: 3% 0 3% 0;
  height: 3px;
  color: white;
  background-color: white;
  }
 
p.footer{
  text-align: center;
  font-size: 15px;
  }

div.logoFooter{
  width:20%;
  display: block;
  align-content: center;
}

img.logoFooter{
  width: 100%;
  height:auto;
  object-fit: cover;
}

@media only screen and (max-width: 1340px) {
  *{
      margin: 0;
      padding: 0;
      box-sizing: border-box
  }
  
  body{
      font-family: Montserrat;
      justify-items:center;
      background-color: white;
      min-height: 100vh;
      
  }

  .checkbtn {
      display: block; /* Show hamburger menu */
  }

  ul.main-list {
      flex-direction: column;
      align-items: center;
      justify-content: space-evenly;
      font-size: 25px;
      position: fixed;
      width: 50%;
      height: 100vh;
      background-color: #FFF3F3;
      top: 6.9%;
      left: -100%; /* Hide menu by default */
      transition: all 0.5s ease-in-out;
  }

  /* Show menu when checkbox is checked */
  #check:checked ~ ul {
      left: 0; /* Slide menu into view */
  }
  section.main-experience {
    width: 95%; /* Adjust width for smaller screens */
    margin-bottom: 20px; /* Add spacing below the section */
    padding-bottom: 20px; /* Add padding below content */
    box-sizing: border-box; /* Include padding in width calculations */
}

.experience {
    flex-direction: column; /* Stack items vertically */
    align-items: flex-start; /* Align items to the start */
    padding-left: 10px; /* Add padding for mobile view */
    overflow-y:auto;/* Enable scrolling if content exceeds screen size*/

}}