/*-----------eqdmedia section-----------*/
/********************************************************/
body {
    font-family: prompt;
    margin: 0;
    padding: 0;
    background-image: url('../img/adminhistory_img/bg.png');
    background-size: cover;
    background-position: bottom center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}



/*-----------footer secion-----------*/
/********************************************************/

#footer {
    color: #ffff;
    background-color: #034c96;
}

.Hfooter {
    color: #FFF;
    font-size: 18px;
    padding-bottom: 20px;
    padding-top: 20px;
}

.Hfooter li a {
    color: #EDEDED;
    font-size: 16px;
}

.footer-box {
    color: #FFF;
    padding: 20px;
    text-align: center;
}

.footer-box .fa {
    margin-right: 8px;
    font-size: 25px;
    height: 20px;
}

hr {
    background-color: #ffff;
}

.copyright {
    color: #ffff;
    text-align: center;
    margin-bottom: 0;
    padding-bottom: 20px;
}

/* CARD PROFILE BY MOS */
.container-profile {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    padding: 10 px;
    animation: fadeIn 1.5s ease-in-out;
}

.text-center {
    animation: fadeIn 1.5s ease-in-out;
}

.card-profile {
    width: 300px;
	height: 330px;
    padding: 20px;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.628);
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
    text-align: center;
    margin: 10px;
}

.card-profile2 {
    width: 300px;
	height: 340px;
    padding: 20px;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.628);
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
    text-align: center;
    margin: 10px;
}

.container-profile img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    margin-top: 18px;
    transition: transform 0.3s ease;
}

.card-profile:hover img {
    transform: scale(1.1);
}
.card-profile2:hover img {
    transform: scale(1.1);
}

.container-profile h6 {
    margin-bottom: 10px;
    font-weight: bold;
}

.container-profile .namelong {
    margin-bottom: 5px;
    font-weight: bold;
    font-size: 12.5px;
}

.container-profile .namelong2 {
    margin-bottom: 5px;
    font-weight: bold;
    font-size: 14.3px;
}

.container-profile .position {
    font-size: 16px;
    color: #666;
    margin-bottom: 10px;
}

.container-profile .position2 {
    font-size: 16px;
    color: #7c7b7b;
    margin-bottom: 10px;
}

.card-profile .position3 {
    font-size: 14px;
    color: #7c7b7b;
    margin-bottom: 10px;
}

.container-profile .fa-phone  {
   color: rgb(0, 0, 0) !important;
}

.container-profile .number {
    font-size: 14px;
    color: #333;
    margin-bottom: 1px;
}

.container-profile .time {
    font-size: 14px;
    color: #333;
    margin-bottom: 15px;
}






@media (min-width: 375px) and (max-width: 819px) {
    .card-profile {
        width: 70%;
    }

    .card-profile2 {
        width: 70%;
    }
	
	.navbar .eqd-logo {
		height: 35px;
	}

    .text-center {
        font-size: 17px;
    }
}
@media (min-width: 820px) and (max-width: 1023px) {
    .card-profile {
        width: 35%;
    }
	.card-profile2 {
        width: 35%;
    }
	.navbar .eqd-logo {
		height: 40px;
	}

    .text-center {
        font-size: 17px;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes popUp {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.card-profile,
.card-profile2 {
    opacity: 0; /* ซ่อนก่อนแสดง */
    transform: translateY(40px);
    transition: all 0.5s ease-out;
}

.card-profile.show,
.card-profile2.show {
    animation: popUp 0.6s ease-out forwards;
}


/*-----------footer secion-----------*/
/********************************************************/

#footer {
    color: #ffff;
    background-color: #034c96;
}

.Hfooter {
    color: #FFF;
    font-size: 18px;
    padding-bottom: 20px;
    padding-top: 20px;
}

.Hfooter li a {
    color: #EDEDED;
    font-size: 16px;
}

.footer-box {
    color: #FFF;
    padding: 20px;
    text-align: center;
}

.footer-box .fa {
    margin-right: 8px;
    font-size: 25px;
    height: 20px;
}

hr {
    background-color: #ffff;
}

.copyright {
    color: #ffff;
    text-align: center;
    margin-bottom: 0;
    padding-bottom: 20px;
}

/* VERTICAL TIMELINE */
.timeline {
  position: relative;
  max-width: 100%;
  padding-left: 0;
  margin-left: 70px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0; /* ชิดขอบจริง ๆ */
  top: 0;
  bottom: 0;
  width: 4px;
  background-color: #80ace4;
  border-radius: 2px;
  z-index: 0;
}
.timeline-block {
  position: relative;
  margin: 40px 0;
  padding-left: 40px;
}

.timeline-content {
  display: inline-block;
  padding: 12px 16px;
  background-color: rgba(255, 255, 255, 0.628);
  box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  color: #4b6f94;
  transform: translateX(0);        /* เริ่มจากตำแหน่งเดิม */
  opacity: 0;                      /* ซ่อนไว้ก่อน */
  transition: all 0.6s ease-in-out;
}

/* เมื่อแสดงบนหน้าจอ */
.timeline-content.show {
  transform: translateX(10px);     /* ขยับไปทางขวา */
  opacity: 1;
}

.timeline-block::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  background-color: #fff;
  border: 4px solid #80ace4;
  border-radius: 50%;
  z-index: 2;
}

.timeline-content h5 {
  color: #3c7cd0;
  font-weight: 600;
  margin-bottom: 5px;
}