/* =========================
   sechantec 공통 스타일 (FULL)
   Last update: 2025-10-02
   ========================= */

:root{
  --header-h:72px;
  --shadow:0 4px 16px rgba(0,0,0,0.08);
  --border:#e5e7eb;
  --brand:#0b3a70;
  --text:#111;
  --muted:#6b7280;
  --maxw:1200px;
  --pad:24px;

  /* 히어로/슬라이드 공통 높이 변수 */
  --hero-h:60vh;
  --hero-h-min:360px;
}
@media (max-width:980px){
  :root{
    --header-h:60px;
    --pad:16px;
    --hero-h:46vh;
    --hero-h-min:280px;
  }
}

/* ===== Reset & Base ===== */
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family:-apple-system,BlinkMacSystemFont,"Pretendard","Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  color:var(--text); background:#fff;
  -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale;
}
a{color:inherit;text-decoration:none}
a:hover{text-decoration:underline}

/* (옵션) 스크린리더 전용 유틸 */
.visually-hidden{
  position:absolute !important; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;
}

/* =========================
   Header & Navigation
   ========================= */
.site-header{
  position:fixed; top:0; left:0; right:0; height:var(--header-h);
  background:#fff; display:flex; align-items:center; z-index:30; box-shadow:var(--shadow);
}
.header-inner{
  width:100%; max-width:var(--maxw); margin:0 auto; padding:0 var(--pad);
  display:flex; align-items:center; justify-content:space-between; gap:16px;
}
.brand{ font-weight:800; color:var(--brand); font-size:32px; }
@media (max-width:980px){ .brand{ font-size:24px; } }

nav.primary{ position:relative; }
nav.primary ul{ list-style:none; margin:0; padding:0; display:flex; gap:22px; align-items:center; }
nav.primary li{ position:relative; }
nav.primary > ul > li > a{ color:#222; padding:10px 6px; display:inline-block; }
nav.primary a[aria-current="page"]{ font-weight:700; color:var(--brand); }

/* 드롭다운 */
.submenu{
  position:absolute; top:100%; left:0; min-width:220px;
  background:#fff; border:1px solid var(--border); box-shadow:var(--shadow);
  display:none; padding:8px 0; border-radius:10px;
}
.submenu a{ display:block; padding:10px 14px; color:#222; white-space:nowrap; }
.submenu a:hover{ background:#f7f7f7; }
nav.primary > ul > li:hover > .submenu{ display:block; }
nav.primary > ul > li:not(:hover) > .submenu{ display:none !important; }

/* 모바일 내비 */
.hamburger{
  display:none; border:1px solid var(--border); border-radius:8px; padding:8px; background:#fff;
}
.hamburger span{ display:block; width:22px; height:2px; background:#333; margin:4px 0; }
@media (max-width:980px){
  nav.primary{
    display:none; position:fixed; top:var(--header-h); left:0; right:0;
    background:#fff; border-top:1px solid var(--border); box-shadow:var(--shadow);
  }
  nav.primary.open{ display:block; }
  nav.primary ul{ flex-direction:column; align-items:stretch; }
  nav.primary li{ border-bottom:1px solid var(--border); }
  .submenu{ position:static; display:none; border:none; box-shadow:none; padding:0; }
  .submenu a{ padding:10px 20px; }
  .hamburger{ display:block; }
}

/* =========================
   Slideshow (메인 히어로 유지)
   ========================= */
.slideshow-wrap{ margin-top:var(--header-h); }
.slideshow-inner{ max-width:var(--maxw); margin:0 auto; padding:0 var(--pad); }
.slideshow-container{
  position:relative; height:var(--hero-h); min-height:var(--hero-h-min);
  overflow:hidden; background:#000; border-radius:16px;
}
@media (max-width:980px){ .slideshow-container{ border-radius:12px; } }

.slide{
  position:absolute; inset:0; opacity:0; transition:opacity 1s ease-in-out;
}
.slide.active{ opacity:1; }
.slide img{
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:center; display:block;
}
.slide .caption{
  position:absolute; left:0; right:0; bottom:0; padding:28px; color:#fff;
  background:linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.45) 100%);
}
.slide .caption h2 {
  margin: 0 0 6px;
  font-size: 1.8rem;
}
.slide .caption p {
  margin: 0;
  opacity: .95;
}

/* ✅ 모바일 전용 */
@media (max-width: 600px) {
  .slide .caption {
    padding: 16px;
  }
  .slide .caption h2 {
    font-size: 1.3rem;   /* ✅ 제목 글자 줄여 한 줄 유지 */
    line-height: 1.2;
  }
  .slide .caption p {
    font-size: 0.9rem;
    line-height: 1.3;   /* ✅ 설명문 줄 간격 타이트하게 */
  }
}

/* =========================
   Bottom Menu (아이콘 + 문구 강화)
   ========================= */
.bottom-menu{ max-width:var(--maxw); margin:28px auto; padding:0 var(--pad); }
.bm-grid{ display:grid; grid-template-columns:1fr; gap:18px; }
@media (min-width:900px){ .bm-grid{ grid-template-columns:repeat(3,1fr); } }

.bm-card{
  border:1px solid var(--border); border-radius:12px; background:#fff; overflow:hidden;
  display:flex; flex-direction:column; align-items:center; text-align:center;
  transition:transform .2s, box-shadow .2s;
}
.bm-card:hover{ transform:translateY(-4px); box-shadow:0 10px 20px rgba(0,0,0,.08); }
.bm-card:focus-visible{ outline:3px solid #c9defa; outline-offset:2px; border-radius:12px; }

.bm-thumb{
  padding:18px 0 10px; display:flex; justify-content:center; align-items:center; background:transparent;
}
.bm-thumb img{ width:72px; height:72px; object-fit:contain; display:block; opacity:.95; }
@media (min-width:900px){ .bm-thumb img{ width:64px; height:64px; } }

.bm-body{ padding:0 16px 20px; }
.bm-card h3{
  margin:6px 0 8px; font-size:1.1rem; line-height:1.25; color:#0b3a70; font-weight:800;
}
.bm-desc{ margin:0; color:#475569; line-height:1.55; font-size:.95rem; }

/* =========================
   Common Content
   ========================= */
main{ max-width:var(--maxw); margin:0 auto; padding:32px var(--pad); }
.section-title{ font-size:22px; margin:24px 0 12px; }

/* 히어로 사용하는 서브페이지 */
.has-hero main{ margin-top:0 !important; padding-top:0 !important; }

/* 페이지 히어로 (about 등) */
.page-hero{
  position:relative; height:320px; max-width:var(--maxw);
  margin:var(--header-h) auto 0; border-radius:16px; overflow:hidden;
  display:flex; align-items:center; justify-content:center; text-align:center; color:#fff;
  background:linear-gradient(135deg, #9aa8b8 0%, #2b4d6d 100%);
}
.page-hero h1{ font-size:2.4rem; margin:0 0 8px; }
.page-hero p{ font-size:1.1rem; color:#f5f7fa; margin:0; }

/* 페이지 본문 */
.page-content{ padding:34px var(--pad) 32px; }

/* 2열 섹션 (좌글/우사진) */
.section-2col{ display:grid; gap:24px; align-items:center; }
@media (min-width:980px){ .section-2col{ grid-template-columns:1.2fr 1fr; } }
.section-2col img{ width:100%; height:auto; border-radius:12px; box-shadow:var(--shadow); }
.about-text{ line-height:1.75; }

/* About 보조 카드(PC 허전함 완화용) */
.about-aside-cards{ max-width:var(--maxw); margin:12px auto 0; padding:0 var(--pad); }
.stat-card{
  border:1px solid var(--border); border-radius:12px; padding:14px 16px; background:#fff;
  box-shadow:0 2px 10px rgba(0,0,0,.03);
}
.stat-card h3{ margin:0 0 8px; font-size:1.05rem; }
.stat-card ul{ margin:0; padding-left:18px; line-height:1.7; }

/* 서비스 카드(예비) */
.services-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(250px,1fr)); gap:20px; }
.service-card{
  border:1px solid #eee; padding:20px; border-radius:8px; text-align:center; background:#fff;
  transition:transform .2s, box-shadow .2s;
}
.service-card:hover{ transform:translateY(-6px); box-shadow:0 6px 16px rgba(0,0,0,0.12); }

/* 가치/이념(예비) */
.values-grid{
  display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:20px; text-align:center; margin-top:40px;
}
.value-item{
  padding:20px; border:1px solid #eee; border-radius:8px; background:#fff;
  transition:transform .2s, box-shadow .2s;
}
.value-item:hover{ transform:translateY(-5px); box-shadow:0 4px 12px rgba(0,0,0,.1); }
.value-item i{ font-size:2.5rem; color:#004080; margin-bottom:12px; display:block; }

/* VISION 섹션(예비 유지) */
.vision-hero{text-align:center; margin:48px 20px 24px;}
.vision-hero i{ font-size:3rem; color:#0A5885; margin-bottom:12px; display:block; }
.vision-hero h2{ font-size:1.9rem; margin:6px 0 10px; }
.vision-hero p{ font-size:1.05rem; color:#445; max-width:760px; margin:0 auto; line-height:1.6; }
.vision-statement{ max-width:900px; margin:12px auto 36px; padding:16px 20px; }
.vision-statement p{ line-height:1.75; color:#334; }

/* Pillars(예비 유지) */
.pillars{ max-width:1100px; margin:0 auto 60px; padding:0 20px; }
.pillars-title{ text-align:center; font-size:1.2rem; color:#223; margin-bottom:18px; letter-spacing:.02em; }
.pillars-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:18px; }
@media (min-width:1280px){ .pillars-grid{ grid-template-columns:repeat(5,1fr); } }
.pillar-card{
  border:1px solid #e8edf2; border-radius:12px; padding:18px 16px; background:#fff;
  box-shadow:0 2px 8px rgba(10,40,70,.05); transition:transform .18s, box-shadow .18s;
}
.pillar-card:hover{ transform:translateY(-4px); box-shadow:0 8px 20px rgba(10,40,70,.10); }
.pillar-card header{ display:flex; align-items:center; gap:10px; margin-bottom:10px; }
.pillar-card header i{ font-size:1.3rem; color:#0A5885; }
.pillar-card h4{ font-size:1.05rem; margin:0; letter-spacing:.02em; }
.pillar-card ul{ margin:10px 0 0 0; padding:0; list-style:none; }
.pillar-card li{
  padding:8px 10px; border-radius:8px; background:#f3f7fb; margin-top:8px;
  font-size:.95rem; color:#2c3e50;
}

/* 타임라인(예비 유지) */
.timeline{ position:relative; max-width:900px; margin:40px auto; padding:0 20px; }
.timeline::before{
  content:""; position:absolute; top:0; bottom:0; left:50%; width:3px; background:#ccc; transform:translateX(-50%);
}
.timeline-item{ position:relative; width:50%; padding:20px 40px; box-sizing:border-box; }
.timeline-item.left{ left:0; text-align:right; }
.timeline-item.right{ left:50%; text-align:left; }
.timeline-item .year{ display:inline-block; font-weight:bold; font-size:1.2rem; color:#0a386a; margin-bottom:6px; }
.timeline-item .content{ background:#f9f9f9; padding:12px 16px; border-radius:8px; display:inline-block; }
@media (max-width:768px){
  .timeline::before{ left:10px; }
  .timeline-item{ width:100%; padding-left:40px; padding-right:0; text-align:left !important; }
  .timeline-item.right{ left:0; }
}

/* =========================
   Footer
   ========================= */
footer{ border-top:1px solid var(--border); background:#fafafa; color:#444; margin-top:32px; }
.footer-inner{ max-width:var(--maxw); margin:0 auto; padding:18px var(--pad); font-size:14px; text-align:center; }

/* =========================
   Utilities
   ========================= */
.company-name{ font-weight:700; font-size:1.5em; color:#000; }
.tight-text{ letter-spacing:-0.5px; line-height:1.4; }

/* 모바일에서만 강제 줄바꿈 */
.br-mobile{ display:none; }
@media (max-width:768px){
  .br-mobile{ display:inline; }
}
/* ===== 메인 하단 카드 메뉴 ===== */
.bottom-menu {
  max-width: var(--maxw);
  margin: 24px auto;
  padding: 0 var(--pad);
}
/* 모바일 전용 줄바꿈 */
.br-mobile { display: none; }
@media (max-width: 768px) {
  .br-mobile { display: inline; }
}

/* PC 전용 줄바꿈 */
.br-pc { display: inline; }
@media (max-width: 768px) {
  .br-pc { display: none; }
}

.bm-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 900px) {
  .bm-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.bm-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  text-align: center;
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.bm-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
}

/* 아이콘 영역 */
.bm-thumb {
  margin-bottom: 14px;
}
.bm-thumb img {
  width: 90px;   /* ✅ 기존보다 크게 */
  height: 90px;
  object-fit: contain;
  display: block;
}

/* 설명문 */
.bm-desc {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.6;
  margin: 0;
  word-break: keep-all; /* ✅ 한국어 줄바꿈 안정화 */
}

@media (max-width: 600px) {
  .bm-thumb img {
    width: 70px;  /* 모바일에서 아이콘 조금 줄임 */
    height: 70px;
  }
  .bm-desc {
    font-size: 0.9rem;
  }
}
.br-mobile {
  display: none;
}
@media (max-width: 768px) {
  .br-mobile {
    display: inline;
  }
}
.footer-pc { display: block; }
.footer-mobile { display: none; }

@media (max-width: 768px) {
  .footer-pc { display: none; }
  .footer-mobile { display: block; }
}









