.main-container{
  display: flex;
  gap: 20px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 120px;
}

.item-sub{
  width: 100%;
  height: auto;
}

#content-container{
  background-color: #991b1b;
  color: whitesmoke;
  display: flex;
  align-items: center;
  gap: 30px;
  width: 100%;
  scale: .9;
  transition: 0.5s all;
  text-align: center;
}

#content-container:hover{
  scale: 1;
}

.vijay{
  text-align: center;
  margin-top: 30px;
}

#alter-cont{
  background-color: #facc15;
  width: 100%;
  height: auto;
  color: gray;
  display: flex;
  justify-content: center;
  text-align: center;
}

#alter-cont p{
  color: gray;
}

#container-fluid p{
  color: white;
}

.main{
  margin-top: 110px;
}

.text-content{
  align-items: center;
  justify-content: space-evenly;
  text-align: center;
}

.text-content button{
  background-color: #facc15;
  
}

.text-content button a{
  color: black;
}


#content-container-y{
  background-color: #facc15;
  color: black;
  display: flex;
  align-items: center;
  gap: 30px;
  width: 100%;
  scale: .9;
  transition: 0.5s all;
  text-align: center;
}

#content-container-y div h1,p{
  color: black;
}

#content-container-y:hover{
  scale: 1;
}

#kallanai{
  text-align: center;
  margin-top: 30px;
}

/* ===== BIO TIMELINE ===== */
.bio-timeline {
    position: relative;
    max-width: 1100px;
    margin: 80px auto;
    padding: 40px 0;
}

.bio-timeline::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #991b1b;
    transform: translateX(-50%);
}

.bio-event {
    position: relative;
    width: 50%;
    padding: 20px 40px;
}

.bio-event.left { left: 0; text-align: right; }
.bio-event.right { left: 50%; }

.bio-event::after {
    content: "";
    position: absolute;
    top: 30px;
    width: 18px;
    height: 18px;
    background: #facc15;
    border: 4px solid #991b1b;
    border-radius: 50%;
    z-index: 2;
}

.bio-event.left::after { right: -9px; }
.bio-event.right::after { left: -9px; }

.bio-box {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

.bio-box h3 {
    color: #991b1b;
    margin-bottom: 8px;
    font-weight: bold;
}

/* Mobile */
@media (max-width: 768px) {
    .bio-timeline::before { left: 20px; }
    .bio-event {
        width: 100%;
        left: 0 !important;
        text-align: left;
        padding-left: 60px;
    }
    .bio-event::after { left: 11px; }
}
