/* about-style.css */


/* Section 공통 */
section {
  display: flex;
  align-items: center;
  justify-content: center; 
  gap: 50px;
  min-height: 70vh; 
}
section img {
  max-width: 100%;
  height: auto;
}

/* Section1 */
#section1{
  height: 100vh;  
  padding: 0 100px;
  background-color: #151515;
}
#section1 img{
  border-radius:10px;
}
#section1 .text {
  max-width: 730px;
  padding-right: 50px;
  text-align: left; 
}
#section1 .text h1 {
  color:#fff;
  font-size: 3rem;
  margin: 0 0 20px 0;
}
#section1 .text p {
  font-size: 1rem;
  line-height: 30px;
  color: #d1d1d1;
}

/* Section2 */
#section2 {
  align-items: flex-start;
  flex-direction: row;
  gap: 100px;
  padding: 100px 250px;
  background-color: #fcfaf8;
}
#section2 .box {
  position: relative;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;    
  display: flex;
  flex-direction: column; /* 이미지 위 텍스트 */
  gap: 20px;
  
}
#section2 .box .box-img {
  width: 650px;
  height: 300px;
  display: flex;           
  justify-content: center; /* 가로 중앙 */
  align-items: center;     /* 세로 중앙 */
  border: 1px solid rgb(179, 179, 179);  
  background-color: #ffffff;
}
#section2 .box .box-img img {
  width: 300px;
  height: auto;
  display: block; 
}
#section2 .box .title{
  font-size: 24px;
  line-height: 29px;
  margin-bottom: 10px;
  text-align: left;
}

#section2 .box p {
  font-size: 16px;
  line-height: 26px;
  margin: 0;
  text-align: left;
}


/* Section3 */
#section3{
  display: block; 
  padding: 100px 100px;
  background-color: #151515;
}

#section3 .BM-text {
  max-width: 1400px; 
  margin: 0 auto 50px auto;
  padding: 0px 20px;
  text-align: left; 
}
#section3 .BM-text h4 {
  font-size: 24px;
  line-height: 29px;
  margin-bottom: 30px;
  color:#fff;

}
#section3 .BM-text p {
  font-size: 16px;
  line-height: 26px;
  color: #d1d1d1;
}

#section3 .BM-contents {
    max-width: 1400px; 
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
#section3 .BM-contents .BM-box {
	overflow: hidden; 
    background-color:#fff; 
    text-align: center;
    border-radius: 10px;
    padding: 30px;
    height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#section3 .BM-contents .BM-box p {
    color: #4b5563;
    font-size: 1rem;
    line-height: 1.5rem;
    margin: 0;
}

#section3 .BM-contents .BM-box p span {
    font-size: 24px;
    font-weight: bold;
    color: #151515;
    display: block; /* 줄바꿈 */
    margin-bottom: 15px;
}


@media(max-width: 768px) {
  section {
    margin:0px; 
    flex-direction: column;
  }
  #section1 {
    height:auto;    
    padding:100px 20px;    
    flex-direction: column;
    gap: 50px;
  }     
  #section1 .text {
    text-align: center; 
    padding: 0px;
  } 
  #section1 .text h1{
    font-size: 2.5rem;
  }       
  #section2 {
    padding:100px 20px;           
    flex-direction: column;
    gap: 50px;
  }
  #section2 .box .title{
    margin: 0 auto;
  }     
  #section2 .box p{
    text-align: center;
  }        
  #section2 .box .box-img {
    width: auto;
  }    
  
  
  #section3 {
    height: auto;
    padding: 100px 20px; 
    display: block;
  }
  #section3 .BM-text {
    max-width: 100%;
    margin: 0 auto 30px auto;
    text-align: center;
    padding: 0;
  }
  #section3 .BM-contents {
    grid-template-columns: 1fr; /* 한 줄에 하나 */
    gap: 20px;
  }
  #section3 .BM-contents .BM-box {
    height: 120px; 
  }

}