/* main.css */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Pretendard', sans-serif;
}

body {
  background: #fff;
  color: #222;
  line-height: 1.6;
}

/* Hero Section */
.hero {
  background: url('../img/mainbg_대지\ 1.png') no-repeat center/cover;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  padding: 20px;
}
.hero-content .logo {
  width: 120px;
  margin-bottom: 20px;
}
.hero-content h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.hero-content p {
  font-size: 1.1rem;
  margin-bottom: 20px;
}
.hero-buttons .btn {
  display: inline-block;
  padding: 12px 24px;
  margin: 0 10px;
  border: 2px solid #fff;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s;
}
.hero-buttons .btn:hover {
  background: rgba(255,255,255,0.2);
}

/* Opportunity Section */
.opportunity {
  background: #111;
  color: #fff;
  padding: 60px 20px;
  text-align: center;
}
.opportunity h2 span {
  color: #ffc400;
  font-size: 1.4rem;
}
.opportunity p {
  margin: 16px auto;
  max-width: 800px;
  font-size: 1rem;
}

/* Overview Section */
.overview {
  padding: 80px 20px;
  text-align: center;
  background: #f6f6f6;
}
.overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 40px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}
.overview-item {
  background: #fff;
  border: 1px solid #ddd;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.overview-item h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

/* Animation */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}
.fade-up.show {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2rem;
  }
  .hero-content p {
    font-size: 1rem;
  }
  .hero-buttons .btn {
    padding: 10px 20px;
    margin: 6px 4px;
    font-size: 0.9rem;
  }
  .text{
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: center;
    padding:20px;
  }
}

/* 경쟁력 */
.strength {
  padding: 80px 20px;
  background: #fff;
  text-align: center;
}
.strength-list {
  max-width: 1000px;
  margin: 40px auto 0;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.strength-item {
  display: flex;
  align-items: center;
  gap: 20px;
}
.strength-item img {
  width: 160px;
  border-radius: 8px;
}
.strength-item .text {
  text-align: left;
}
.strength-item h3 {
  margin-bottom: 6px;
}
/* 대표소개 */
.ceo-intro {
  background: #fff;
  color: #111;
}
.ceo-top {
  padding: 80px 20px 40px;
  text-align: center;
  max-width: 100%;
  margin: 0 auto;
  background-color:#f1f1f1;
  background-image: url("../img/ceotopbg-07.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}
.ceo-top p {
  margin: 16px 0;
  line-height: 1.6;
  font-size: 1.05rem;
}
.ceo-top p strong {
  font-size: 1.2rem;
}
.ceo-buttons {
  margin-top: 24px;
}
.ceo-buttons .btn {
  display: inline-block;
  margin: 6px;
  padding: 10px 20px;
  border: 2px solid #333;
  color: #333;
  background: #fff;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s;
}
.ceo-buttons .btn:hover {
  background: #333;
  color: #fff;
}
.ceo-carousel {
  background: #222;
  background-image: url("../img/ceobg-03.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: bottom;
  position: relative;
  padding-top: 120px; /* 위로 사진이 침범할 수 있도록 여백 확보 */
  padding-bottom: 100px;
  overflow: visible;
}

.ceo-slide {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 40px;
  position: absolute;
  top: 0;
  width: 100%;
  opacity: 0;
  transition: opacity 1s ease;
}

.ceo-slide.active {
  opacity: 1;
  z-index: 1;
}

.ceo-photo {
  position: relative;
  z-index: 2;
}

.ceo-photo img {
  height: 340px;
  object-fit: contain;
  margin-top: -120px; /* 회색 배경으로 침범 */
  border-radius: 12px;
}

.ceo-text {
  color: white;
  z-index: 2;
  max-width: 900px;
  margin-top: -80px;
}

.ceo-text h3 {
  font-size: 1.1rem;
  margin-bottom: 2px;
}

.ceo-text h4 {
  font-size: 1.6rem;
  margin-bottom: 14px;
}

.ceo-text ul {
  list-style: none;
  padding: 0;
  font-size: 0.95rem;
  margin-bottom: 30px;
  padding-right: 300px;
}

@media (max-width: 768px) {
  .ceo-slide {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
.ceo-carousel{
  height: 450px;
  background-position: left;
  background-size: cover;
}
  .ceo-photo img {
    height: 280px;
    margin-top: -10px;
    margin-bottom: 30px;
  }
  .ceo-text {
  color: white;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-content: center;
}
.ceo-text ul {
  width: auto;
  max-width: 768px;
  padding: 0;
}


}
@media (max-width: 768px) {
  .strength-list{
    display: flex;
    flex-direction: column;
    text-align: center;
  }
  .strength-item{
    display: flex;
    flex-direction: column;
    text-align: center;
    justify-content: center;
    align-items: center;
  }
}

/* 후원사 섹션 */
.partners {
  background: #fff;
  padding: 60px 20px;
  text-align: center;
}
.partners h2 {
  margin-bottom: 30px;
}
.partner-logos {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}
.partner-logos img {
  max-height: 60px;
  max-width: 140px;
  object-fit: contain;
}

/* 문의폼 */
.contact {
  background: #f6f6f6;
  padding: 80px 20px;
  text-align: center;
}
.contact-form {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-form input,
.contact-form textarea {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}
.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}
.contact-form button {
  background: #111;
  color: white;
  padding: 12px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.2s ease-in-out;
}
.contact-form button:hover {
  background: #2c2c2c;
}

/* 푸터 */
.footer {
  background: #111;
  color: #ccc;
  padding: 40px 20px 20px;
  font-size: 0.9rem;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
}
.footer-logo {
  height: 36px;
  margin-bottom: 10px;
}
.footer-links a {
  color: #ccc;
  text-decoration: none;
  margin-right: 12px;
  font-size: 0.9rem;
}
.footer-links a:hover {
  text-decoration: underline;
}
.footer-bottom {
  text-align: center;
  margin-top: 30px;
  font-size: 0.85rem;
}
@media (max-width: 768px) {
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
  .footer-links {
    margin-top: 10px;
  }
}