/*==============================프로젝트 실적==============================*/
/*==============================프로젝트 실적==============================*/
.history-panel {
  display: flex;
  gap: 60px;
  align-items: stretch;
}

/* ---- Left column: drone + year list ---- */
.history-years {
  position: relative;
  flex: 0 0 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 36px;
}

.history-drone {
  position: absolute;
  top: 0;
  left: 0;
  width: 90px;
  will-change: transform;
  pointer-events: none;
  z-index: 3;
}
.history-drone img { width: 100%; display: block; }

.year-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-left: 50%;
}

.year-item .year-num {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    display: inline-block;
    font-size: 20px;
    font-weight: 500;
    color: #b5b8bd;
    transition: font-size 0.4s ease, color 0.4s ease, font-weight 0.4s ease;
    cursor: pointer;
}

.year-item.active .year-num {
  font-size: 42px;
  font-weight: 800;
  color: var(--teal);
}

/* ---- Nav arrows: hidden on desktop, shown only in the mobile pill layout ---- */
.year-nav-btn {
  display: none;
  background: none;
  border: none;
  color: #b5b8bd;
  cursor: pointer;
  padding: 6px;
  flex-shrink: 0;
}
.year-nav-btn svg { width: 20px; height: 20px; }
.year-nav-btn:hover { color: var(--teal); }

/* ---- Right side: sliding achievement box ---- */
.history-box-wrap {
  position: relative;
  flex: 1;
  min-height: 480px;
  border-radius: 22px;
  overflow: hidden;
}

.history-box {
  position: absolute;
  inset: 0;
  background: #0d0d0d;
  border-radius: 22px;
  padding: 60px 5%;
  display: flex;
  align-items: center;
}

.box-year-bg {
  position: absolute;
  right: 6%;
  top: 50%;
  transform: translateY(-50%);
  font-size: clamp(90px, 12vw, 160px);
  font-weight: 800;
  line-height: 0.85;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(87, 206, 188, 0.35);
  pointer-events: none;
  white-space: pre-line;
}

.achieve-list {line-height: 1.3;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 34px;
  max-width: 60%;
}

.achieve-list li {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.achieve-list .ach-date {
  font-size: 13px;
  color: var(--teal);
  font-weight: 500;
}

.achieve-list .ach-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

/* ---- Tablet breakpoint ---- */
@media (max-width: 860px) {
  .history-box-wrap { min-height: 380px; }
  .box-year-bg { font-size: clamp(60px, 22vw, 100px); }
  .year-list { margin-left: 10px; }
  .history-panel { flex-direction: column; gap: 24px; padding: 0 0; }
  .history-years {flex: 0; flex-direction: row; align-items: center; min-height: 100px!important;
    justify-content: center; gap: 12px; width: 100%;}
  .history-drone {display:none;}
  .year-nav-btn { display: flex; align-items: center; justify-content: center; }
  .year-list {
    flex-direction: row;
    margin-left: 0;
    gap: 12px;
  }

  .year-item .year-num {width: 100px; height:45px; 
    display: block; text-align: center;
    font-size: 18px;
    font-weight: 600;
    color: #8a8d92;
    background: #eceef0;
    padding: 10px 10px;
    border-radius: 10px 0 10px 10px;
    transition: background-color 0.4s ease, color 0.4s ease;
  }

  .year-item.active .year-num {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(120deg, #2a8183, #57cebc);
    box-shadow: 0 6px 16px rgba(42,129,131,0.3);
  }

  .history-box-wrap { min-height: 340px; border-radius: 20px; }
  .history-box { padding: 40px 8%; border-radius: 20px; }

  .box-year-bg {
    right: 8%;
    font-size: clamp(70px, 20vw, 110px);
    -webkit-text-stroke: 1.2px rgba(87, 206, 188, 0.4);
  }

  .achieve-list { max-width: 58%; gap: 28px; }
  .achieve-list .ach-date { font-size: 12px; }
  .achieve-list .ach-title { font-size: 15px; }
}



/*GALLERY*/
/*=====================Project Gallery======================*/
.project-section {
      margin: 0 auto;
      padding: 40px 20px;
      font-family: Arial, sans-serif;
    }

    /* Grid Layout: 3 columns on desktop, responsive down to 1 */
    .project-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 30px;
    }

    /* Card Item */
    .project-card { padding: 20px 15px; border-radius: 15px;
      display: flex;
      flex-direction: column;
    }
    .project-card:hover{background:rgb(234, 234, 234);box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.323);}

    .project-image { border-radius: 15px;
      width: 100%;
      height: 220px;
      object-fit: cover;
      display: block;
    }

    .project-details {
      padding-top: 12px;
    }

    .project-title {
      font-size: 1.1rem;
      font-weight: 700;
      color: #111111;
      margin: 0 0 6px 0;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }

    .project-scope,
    .project-date {
      font-size: 0.9rem;
      color: #555555;
      margin: 0 0 4px 0;
      line-height: 1.3;
    }

    /* Responsive Breakpoints */
    @media (max-width: 900px) {
      .project-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
      }
    }

    @media (max-width: 600px) {.project-grid {grid-template-columns: 1fr;}}

/* ----- Responsive ----- */
@media (max-width: 960px) {
  .project-hero { height: auto; padding: 32px 0; }
  .project-hero-content { flex-direction: column; align-items: flex-start; }
  .project-hero-right { align-items: flex-start; width: 100%; }
  .project-hero-thumbs img { width: 90px; height: 90px; }
  .project-grid { grid-template-columns: repeat(2, 1fr); gap: 24px 20px; }
}

@media (max-width: 640px) {
  .project-hero-thumbs img:nth-child(3) { display: none; } /* keep 2 thumbs to avoid overflow on small screens */
  .project-grid { grid-template-columns: 1fr; }
}


/*CERTIFICATES*/
.cert-sect {
  width: 100%;
  height: auto;
  min-height: 500px;
}

.cert-sect ul {
  display: flex;
  flex-wrap: wrap;
  gap: 20px; /* Using a fixed gap makes flex math much easier */
  list-style: none;
  padding: 0;
  margin: 0;
}

.cert-sect ul li {
  /* Desktop (Default): 3 cards per row */
  /* Subtracts the 2 gaps (20px * 2 = 40px) and divides by 3 */
  width: calc((100% - 40px) / 3); 
  height: 500px;
  background: rgb(238, 238, 238);
  border-radius: 20px;
  display: flex;
  padding: 10px;
  box-sizing: border-box;
  transition: transform 0.5s ease;
}

.cert-sect ul li:hover {background:#fbe1a0;
  transform: scale(1.05); /* reduced scale slightly to prevent clipping on smaller screens */
}

/* Tablet Layout: 2 cards per row */
@media (max-width: 960px) {
  .cert-sect ul li {
    /* Subtracts 1 gap between 2 cards (20px) and divides by 2 */
    width: calc((100% - 20px) / 2); 
  }
}

/* Mobile Layout: 1 card per row */
@media (max-width: 600px) {
  .cert-sect ul li {
    width: 100%;
  }
}














/*===================================================고객지원==========================================================*/
/*===================================================고객지원==========================================================*/

/*고객지원*/


/*INQUIRIES*/

.contact-tag {
  display: inline-block;
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: white;
  background:#4ca5a7;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 28px;
}

.contact-heading-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
}

.contact-heading {
  font-size: 56px;
  font-weight: 700;
  color: #111;
  letter-spacing: -1px;
}

.contact-subtext {
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 15px;
  color: var(--gray-text);
  text-align: right;
  line-height: 1.6;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 28px;
  align-items: stretch;
}

.contact-form {
  background: #f7f7f8;
  border-radius: 20px;
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.contact-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.contact-field { display: flex; flex-direction: column; gap: 8px; }
.contact-field-full { margin-top: 4px; }

.contact-field label {
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #333;
}

.contact-field input,
.contact-field select,
.contact-field textarea {
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 16px;
  color: #111;
  background: #eeeef0;
  border: none;
  border-radius: 10px;
  padding: 14px 16px;
  width: 100%;
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
  color: #9a9a9a;
}

.contact-field select {
  appearance: none;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23555" stroke-width="2"><polyline points="6 9 12 15 18 9"/></svg>');
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  cursor: pointer;
}

.contact-field textarea { resize: vertical; min-height: 90px; }

.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
  outline: 2px solid var(--teal);
  outline-offset: -2px;
}

.contact-submit-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.contact-submit {
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: #23407a;
  border: none;
  border-radius: 30px;
  padding: 16px 32px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.contact-submit:hover { background: var(--navy); }

.contact-submit-icon {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  border-radius: 50%;
  border: none;
  background: #111;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.contact-submit-icon svg { width: 18px; height: 18px; color: white; }

.contact-photo {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  min-height: 320px;
}

.contact-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.contact-photo-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.8);
  border-radius: 20px;
  padding: 8px 18px;
  backdrop-filter: blur(4px);
}

/* ----- Responsive ----- */
@media (max-width: 900px) {
  .contact-heading { font-size: 40px; }
  .contact-heading-row { flex-direction: column; align-items: flex-start; gap: 12px; }
  .contact-subtext { text-align: left; }
  .contact-layout { grid-template-columns: 1fr; }
  .contact-photo { min-height: 220px; order: -1; }
}

@media (max-width: 560px) {
  .contact-heading { font-size: 32px; }
  .contact-form { padding: 24px; }
  .contact-field-row { grid-template-columns: 1fr; gap: 18px; }
}


/*카드뉴스*/
.slider-section {
      background: linear-gradient(135deg, #1b7373 0%, #3cae9f 100%);
      padding: 60px 40px;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 20px;
      position: relative;
    }

    .nav-btn {
      width: 48px;
      height: 48px;
      border-radius: 50%;
      border: none;
      background: rgba(255, 255, 255, 0.8);
      color: #1b7373;
      font-size: 20px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      transition: background 0.3s, transform 0.2s;
      z-index: 2;
    }

    .nav-btn:hover {
      background: #ffffff;
      transform: scale(1.05);
    }

    /* Scroll Container */
    .cards-wrapper {
      width: 100%;
      max-width: 1100px;
      overflow-x: auto;
      scroll-behavior: smooth;
      scrollbar-width: none; /* Hide scrollbar Firefox */
    }

    .cards-wrapper::-webkit-scrollbar {
      display: none; /* Hide scrollbar Chrome/Safari */
    }

    .cards-container {
      display: flex;
      gap: 20px;
      padding: 10px 5px;
    }

    /* Card Item */
    /* Card Item Base Style */
.news-card {
  flex: 0 0 calc(25% - 15px);
  min-width: 230px;
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  border: 3px solid transparent;
  display: flex;
  flex-direction: column;
}

/* Active State styling - High contrast border and glow effect */
.news-card.active {
  border-color: #FCE19B; /* Gold or high-contrast accent color */
  transform: translateY(-6px);
  box-shadow: 0 10px 8px rgba(0, 0, 0, 0.34)
}

    .news-card:hover {
      transform: translateY(-4px);
    }

    .card-img {
      width: 100%;
      height: 180px;
      object-fit: cover;
    }

    .card-title {
      padding: 16px;
      font-size: 0.95rem;
      font-weight: 700;
      color: #1a2b3c;
      line-height: 1.4;
      flex-grow: 1;
      background-color: #ffffff;
    }

    /* Bottom Details Section */
    .details-section {
      max-width: 1100px;
      margin: 40px auto;
      padding: 40px;
      background: #f9f9f9;
      border-radius: 12px;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    }

    .details-title {
      font-size: 1.6rem;
      font-weight: 700;
      margin-bottom: 24px;
      color: #111;
      line-height: 1.3;
    }

    .details-content {
      font-size: 0.95rem;
      color: #555;
      line-height: 1.8;
      display: flex;
      flex-direction: column;
      gap: 16px;
    }

    /* Responsive Adjustments */
    @media (max-width: 768px) {
      .slider-section {
        padding: 40px 10px;
      }
      .news-card {
        flex: 0 0 calc(50% - 10px); min-width: 200px;
      }
      .details-section {
        margin: 20px;
        padding: 24px;
      }
	  .nav-btn {width:30px; height: 30px;}
    }


