/* ============================
   Reset & Base
   ============================ */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700;900&display=swap');

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans KR', 'Nanum Gothic', 'Pretendard', Arial, sans-serif;
  color: #333;
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s;
}

ul { list-style: none; }
img { max-width: 100%; height: auto; }

.container {
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 15px;
}

/* ============================
   Header - 원본 매칭
   ============================ */
.header {
  position: relative;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #fff;
  padding: 40px 0 20px 0;
}

.header.fixed {
  position: fixed;
  padding: 10px 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.header-inner {
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
  height: 110px;
  transition: height 0.3s;
}

.header.fixed .logo-img {
  height: 50px;
}

.logo-text {
  font-family: 'Gmarket Sans', 'Noto Sans KR', sans-serif;
  font-size: 19px;
  font-weight: 700;
  color: #949599;
  letter-spacing: -0.5px;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: #333;
  cursor: pointer;
}

/* Navigation */
.nav-list {
  display: flex;
  gap: 0;
}

.nav-item > a {
  display: block;
  padding: 10px 22px;
  font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #292929;
  transition: color 0.3s;
}

.nav-item > a:hover,
.nav-item.active > a {
  color: #ee445f;
}

.nav-item.has-dropdown {
  position: relative;
}

.nav-item.has-dropdown > a i {
  font-size: 10px;
  margin-left: 3px;
  transition: transform 0.3s;
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 150px;
  background: #fff;
  border: 1px solid #eee;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(5px);
  transition: all 0.3s;
  padding: 5px 0;
  z-index: 100;
}

.nav-item.has-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown li a {
  display: block;
  padding: 8px 20px;
  font-size: 13px;
  color: #555;
  transition: all 0.2s;
  white-space: nowrap;
}

.dropdown li a:hover {
  color: #ee445f;
  background: #f9f9f9;
}

/* ============================
   Buttons - 원본 매칭
   ============================ */
.btn {
  display: inline-block;
  padding: 15px 45px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
  text-align: center;
  letter-spacing: 0.5px;
}

.btn-primary {
  background: #4a6c5d;
  color: #fff;
}

.btn-primary:hover {
  background: #000;
  color: #fff;
}

.btn-white {
  background: #fff;
  color: #333;
}

.btn-white:hover {
  background: #4a6c5d;
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: #4a6c5d;
  border: 2px solid #4a6c5d;
}

.btn-outline:hover {
  background: #4a6c5d;
  color: #fff;
}

.btn-round {
  border-radius: 50px;
}

/* ============================
   Carousel - 원본 매칭
   ============================ */
.carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 10px 0 0 0;
  background: #fff;
}

.carousel .container {
  position: relative;
}

.carousel-inner {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.carousel-slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  opacity: 0;
  transition-property: opacity;
  transition-duration: 0.6s;
  transition-timing-function: ease;
}

.carousel-slide:first-child {
  position: relative;
}

.carousel-slide.active {
  opacity: 1;
  z-index: 1;
}

.carousel-slide img {
  width: 100%;
  display: block;
}

.carousel-dots {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 10px 0;
  z-index: 10;
}

.carousel-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: transparent;
  border: 1px solid rgba(255,255,255,1);
  cursor: pointer;
  transition: background-color 0.3s;
  margin: 0;
}

.carousel-dot.active {
  background-color: rgba(255,255,255,1);
}

.carousel-btn {
  display: none;
}

/* ============================
   Vision Section - 원본 매칭
   ============================ */
.vision-section {
  padding: 40px 0;
  text-align: center;
  background: transparent;
}

.vision-title {
  font-family: 'Nanum Square', 'Noto Sans KR', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: rgb(74, 74, 74);
  line-height: 1.5;
  margin-bottom: 25px;
}

.vision-text {
  font-family: 'Nanum Square', 'Noto Sans KR', sans-serif;
  font-size: 14px;
  color: #666;
  line-height: 1.8;
  margin-bottom: 35px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================
   Center Image Section
   ============================ */
.center-image-section {
  padding: 0;
  text-align: center;
}

.center-image-section img {
  width: 100%;
  display: block;
}

/* ============================
   Center Intro Section - 원본 매칭
   ============================ */
.center-intro-section {
  padding: 38px 0 36px 0;
  text-align: center;
  background: transparent;
}

.center-intro-title {
  font-family: 'Nanum Square', 'Noto Sans KR', sans-serif;
  font-size: 30px;
  font-weight: 700;
  color: rgb(74, 74, 74);
  line-height: 1.5;
  margin-bottom: 20px;
}

.center-intro-text {
  font-family: 'Nanum Square', 'Noto Sans KR', sans-serif;
  font-size: 14px;
  color: #666;
  line-height: 1.8;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================
   Intro Cards Section
   ============================ */
.intro-section {
  padding: 60px 0;
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.intro-card {
  text-align: center;
  padding: 40px 25px;
  border-radius: 0;
  background: #fff;
  border: 1px solid #f0f0f0;
  transition: all 0.3s;
}

.intro-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.intro-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 18px;
  background: #4a6c5d;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #fff;
}

.intro-card h3 {
  font-family: 'Nanum Square', 'Noto Sans KR', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #333;
  margin-bottom: 12px;
}

.intro-card p {
  font-size: 13px;
  color: #777;
  line-height: 1.7;
}

/* ============================
   Divider - 원본 매칭
   ============================ */
.divider {
  height: 1px;
  background: #e1e1e1;
  margin: 0;
}

/* ============================
   Posts Section - 원본 매칭
   ============================ */
.posts-section {
  padding: 20px 0;
  background: #fff;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.posts-column {
  max-width: 100%;
}

.posts-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 12px;
  border-bottom: 2px solid #333;
}

.posts-header h3 {
  font-family: 'Nanum Square', 'Noto Sans KR', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #28292c;
}

.more-btn {
  font-size: 12px;
  color: #999;
  display: flex;
  align-items: center;
  gap: 4px;
}

.more-btn:hover { color: #ee445f; }

.post-item {
  display: flex;
  gap: 15px;
  padding: 15px 0;
  border-bottom: 1px solid #f1f1f1;
  cursor: pointer;
  transition: background 0.2s;
}

.post-item:hover {
  background: #fafafa;
}

.post-info {
  flex: 1;
  min-width: 0;
}

.post-title {
  font-family: 'Nanum Square', 'Noto Sans KR', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #28292c;
  margin-bottom: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.post-excerpt {
  font-family: 'Nanum Square', 'Noto Sans KR', sans-serif;
  font-size: 12px;
  color: #888;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-meta {
  display: flex;
  gap: 10px;
  margin-top: 8px;
  font-size: 12px;
  color: #848692;
}

.post-meta .comments {
  color: #ee445f;
}

.post-thumb {
  width: 90px;
  height: 90px;
  flex-shrink: 0;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ccc;
  font-size: 24px;
  overflow: hidden;
}

.post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.loading {
  text-align: center;
  padding: 30px;
  color: #999;
  font-size: 13px;
}

/* ============================
   Quick Menu - 원본 매칭
   ============================ */
.quick-menu {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  z-index: 999;
}

.quick-item {
  width: 55px;
  height: 55px;
  background: #4a6c5d;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  font-size: 16px;
  transition: all 0.3s;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}

.quick-item:hover {
  background: #333;
}

.quick-item span {
  font-size: 9px;
  margin-top: 3px;
}

/* ============================
   Footer - 원본 매칭
   ============================ */
.footer {
  background: rgba(255,255,255,1);
  padding: 70px 0 65px 0;
  text-align: center;
}

.footer-inner {
  text-align: center;
}

.footer-logo {
  margin-bottom: 20px;
}

.footer-logo .logo-text {
  font-family: 'Gmarket Sans', 'Noto Sans KR', sans-serif;
  font-size: 19px;
  font-weight: 700;
  color: #949599;
}

.footer-logo img {
  height: 83px;
  margin-bottom: 10px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.footer-info {
  margin-bottom: 15px;
}

.footer-info p {
  font-family: 'Roboto', 'Nanum Gothic', sans-serif;
  font-size: 13px;
  color: rgb(130, 130, 130);
  line-height: 2;
}

.footer-info strong {
  color: #555;
  font-weight: 500;
}

.footer-copyright {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.footer-copyright p {
  font-family: 'Roboto', 'Nanum Gothic', sans-serif;
  font-size: 12px;
  color: #aaa;
}

/* ============================
   Page Header (sub-pages)
   ============================ */
.page-header {
  background: linear-gradient(135deg, #4a6c5d 0%, #2d4a3e 100%);
  padding: 60px 0;
  text-align: center;
  color: #fff;
}

.page-header h1 {
  font-family: 'Nanum Square', 'Noto Sans KR', sans-serif;
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 10px;
}

.page-header p {
  font-size: 15px;
  opacity: 0.8;
}

/* ============================
   Portfolio Page
   ============================ */
.portfolio-section {
  padding: 50px 0;
}

.portfolio-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 35px;
  justify-content: center;
}

.tab-btn {
  padding: 8px 28px;
  border: 1px solid #ddd;
  background: #fff;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  color: #666;
}

.tab-btn.active,
.tab-btn:hover {
  border-color: #4a6c5d;
  background: #4a6c5d;
  color: #fff;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.portfolio-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid #f0f0f0;
  transition: all 0.3s;
  cursor: pointer;
}

.portfolio-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.portfolio-card-thumb {
  width: 100%;
  height: 200px;
  background: #e8e8e8;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ccc;
  font-size: 36px;
  overflow: hidden;
}

.portfolio-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portfolio-card-body {
  padding: 18px;
}

.portfolio-card-category {
  font-size: 11px;
  color: #4a6c5d;
  font-weight: 600;
  margin-bottom: 6px;
}

.portfolio-card-title {
  font-size: 15px;
  font-weight: 700;
  color: #333;
  margin-bottom: 6px;
}

.portfolio-card-excerpt {
  font-size: 12px;
  color: #888;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.portfolio-card-date {
  font-size: 11px;
  color: #bbb;
  margin-top: 10px;
}

/* ============================
   Profile Page
   ============================ */
.profile-section {
  padding: 50px 0;
}

.profile-block {
  margin-bottom: 55px;
}

.profile-block h2 {
  font-family: 'Nanum Square', 'Noto Sans KR', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: #333;
  margin-bottom: 25px;
  padding-bottom: 12px;
  border-bottom: 3px solid #4a6c5d;
  display: inline-block;
}

.profile-content {
  font-size: 14px;
  color: #555;
  line-height: 2;
}

.profile-values {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 25px;
}

.value-card {
  padding: 28px;
  background: #f9f9f9;
  border-left: 4px solid #4a6c5d;
}

.value-card h4 {
  font-size: 16px;
  color: #333;
  margin-bottom: 8px;
}

.value-card p {
  font-size: 13px;
  color: #666;
  line-height: 1.7;
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 30px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #4a6c5d;
}

.timeline-item {
  position: relative;
  margin-bottom: 28px;
  padding-left: 28px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -36px;
  top: 5px;
  width: 12px;
  height: 12px;
  background: #4a6c5d;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px #4a6c5d;
}

.timeline-year {
  font-size: 17px;
  font-weight: 700;
  color: #4a6c5d;
  margin-bottom: 4px;
}

.timeline-desc {
  font-size: 13px;
  color: #666;
  line-height: 1.8;
}

/* Map */
.map-container {
  margin-top: 18px;
  overflow: hidden;
  box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

.map-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 25px;
}

.map-info-item {
  text-align: center;
  padding: 22px;
  background: #f9f9f9;
}

.map-info-item i {
  font-size: 24px;
  color: #4a6c5d;
  margin-bottom: 10px;
}

.map-info-item h4 {
  font-size: 13px;
  color: #333;
  margin-bottom: 6px;
}

.map-info-item p {
  font-size: 12px;
  color: #888;
}

/* ============================
   Contact Page
   ============================ */
.contact-section {
  padding: 50px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 45px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
}

.form-group label .required {
  color: #ee445f;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ddd;
  font-size: 13px;
  font-family: inherit;
  transition: border-color 0.3s;
  background: #fff;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #4a6c5d;
  outline: none;
}

.form-group textarea {
  height: 140px;
  resize: vertical;
}

.contact-info-list { list-style: none; }

.contact-info-item {
  display: flex;
  gap: 14px;
  padding: 20px 0;
  border-bottom: 1px solid #f1f1f1;
}

.contact-info-item i {
  width: 42px;
  height: 42px;
  background: #4a6c5d;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.contact-info-item h4 {
  font-size: 13px;
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
}

.contact-info-item p {
  font-size: 13px;
  color: #888;
}

/* Alert */
.alert {
  padding: 12px 16px;
  margin-bottom: 16px;
  font-size: 13px;
  display: none;
}

.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* ============================
   Post Detail Modal
   ============================ */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.modal-overlay.active { display: flex; }

.modal {
  background: #fff;
  max-width: 680px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 35px;
}

.modal-close {
  float: right;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: #999;
}

.modal-close:hover { color: #333; }

.modal h2 {
  font-size: 22px;
  font-weight: 700;
  color: #333;
  margin-bottom: 8px;
  padding-right: 30px;
}

.modal-meta {
  font-size: 12px;
  color: #999;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f1f1;
}

.modal-body {
  font-size: 14px;
  color: #555;
  line-height: 1.8;
}

/* ============================
   Pagination
   ============================ */
.pagination {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-top: 35px;
}

.page-btn {
  width: 36px;
  height: 36px;
  border: 1px solid #ddd;
  background: #fff;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  color: #666;
}

.page-btn.active,
.page-btn:hover {
  background: #4a6c5d;
  color: #fff;
  border-color: #4a6c5d;
}

/* ============================
   Responsive
   ============================ */
@media (max-width: 1024px) {
  .intro-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .map-info { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .mobile-menu-btn { display: block; }

  .header { padding: 15px 0; }
  .logo-img { height: 40px !important; }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    padding: 10px 0;
    border-top: 1px solid #eee;
  }

  .nav.active { display: block; }

  .nav-list {
    flex-direction: column;
    padding: 0;
  }

  .nav-item > a {
    padding: 12px 20px;
  }

  .dropdown {
    position: static;
    box-shadow: none;
    border: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    padding-left: 20px;
    display: none;
  }

  .nav-item.has-dropdown.open .dropdown {
    display: block;
  }

  .vision-title { font-size: 22px; }
  .center-intro-title { font-size: 20px; }
  .vision-section { padding: 30px 0; }

  .intro-grid { grid-template-columns: 1fr; }
  .posts-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .profile-values { grid-template-columns: 1fr; }

  .page-header h1 { font-size: 24px; }

  .quick-menu { display: none; }

  .footer { padding: 40px 0; }
}

@media (max-width: 480px) {
  .carousel-btn { display: none; }
  .vision-title { font-size: 20px; }
  .logo-text { font-size: 16px; }
}
