/*
Theme Name: KETRA Full Copy Theme
Theme URI: http://ketra.or.kr
Description: 한국에너지기술연구조합 홈페이지 테마
Version: 1.0
*/

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

body { font-family: 'Malgun Gothic', '맑은 고딕', sans-serif; font-size: 18px; color: #333; }

a { text-decoration: none; color: inherit; }

/* ===== 상단 TNB ===== */
.tnb { background: #fff; border-bottom: 1px solid #e0e0e0; padding: 6px 0; }
.tnb .container { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; justify-content: flex-end; gap: 15px; }
.tnb a { font-size: 15px; color: #666; }
.tnb a:hover { color: #1a5276; }

/* ===== 헤더 ===== */
header { background: #fff; border-bottom: 2px solid #1a5276; position: sticky; top: 0; z-index: 1000; }
.header-inner { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; height: 80px; }
.logo { flex-shrink: 0; }
.logo a { display: flex; align-items: center; gap: 10px; }
.logo-img { height: 45px; }
.logo-text { font-size: 22px; font-weight: 700; color: #1a5276; }

/* ===== GNB 메뉴 ===== */
.gnb { margin-left: auto; }
.gnb > ul { display: flex; list-style: none; }
.gnb > ul > li { position: relative; }
.gnb > ul > li > a {
  display: block; padding: 0 28px; height: 80px; line-height: 80px;
  font-size: 19px; font-weight: 600; color: #222;
}
.gnb > ul > li:hover > a { color: #1a5276; }
.gnb > ul > li > a::after {
  content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 0; height: 3px; background: #1a5276; transition: width 0.3s;
}
.gnb > ul > li:hover > a::after { width: 100%; }

/* 드롭다운 */
.gnb .dropdown {
  display: none; position: absolute; top: 80px; left: 0;
  background: #fff; border: 1px solid #ddd; border-top: 2px solid #1a5276;
  min-width: 150px; box-shadow: 0 4px 10px rgba(0,0,0,0.1); list-style: none; z-index: 999;
}
.gnb > ul > li:hover .dropdown { display: block; }
.gnb .dropdown li a {
  display: block; padding: 12px 20px; font-size: 17px; color: #444; border-bottom: 1px solid #f0f0f0;
}
.gnb .dropdown li a:hover { background: #f0f5fb; color: #1a5276; }

/* ===== 슬라이더 ===== */
.slider { position: relative; overflow: hidden; height: 500px; }
.slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1s; }
.slide.active { opacity: 1; }
.slide-bg {
  width: 100%; height: 100%; background-size: cover; background-position: center;
  display: flex; align-items: center;
}
.slide-bg-1 { background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('https://images.unsplash.com/photo-1497366216548-37526070297c?w=1400&q=80'); }
.slide-bg-2 { background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('https://images.unsplash.com/photo-1473341304170-971dccb5ac1e?w=1400&q=80'); }
.slide-content { max-width: 1200px; margin: 0 auto; padding: 0 40px; color: #fff; }
.slide-content h2 { font-size: 54px; font-weight: 700; margin-bottom: 20px; line-height: 1.3; }
.slide-content p { font-size: 22px; margin-bottom: 30px; opacity: 0.9; line-height: 1.6; }
.slide-btn { display: inline-block; padding: 12px 30px; background: #1a5276; color: #fff; font-size: 14px; font-weight: 600; border-radius: 2px; }
.slide-btn:hover { background: #154360; }

/* 슬라이더 컨트롤 */
.slider-dots { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.5); cursor: pointer; border: none; }
.dot.active { background: #fff; }

/* ===== ABOUT US ===== */
.about { padding: 80px 0; background: #fff; }
.about .container { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; gap: 60px; align-items: center; }
.about-text { flex: 1; }
.about-text .label { font-size: 13px; font-weight: 700; color: #1a5276; letter-spacing: 2px; margin-bottom: 10px; }
.about-text h2 { font-size: 40px; font-weight: 700; color: #111; margin-bottom: 20px; }
.about-text p { font-size: 19px; color: #555; line-height: 1.9; margin-bottom: 25px; }
.about-btn { display: inline-block; padding: 10px 25px; border: 2px solid #1a5276; color: #1a5276; font-size: 14px; font-weight: 600; }
.about-btn:hover { background: #1a5276; color: #fff; }
.about-img { flex: 1; }
.about-img img { width: 100%; border-radius: 4px; }

/* ===== 주요사업 ===== */
.business { padding: 70px 0; background: #f4f6f9; }
.section-header { text-align: center; margin-bottom: 50px; }
.section-header .label { font-size: 13px; font-weight: 700; color: #1a5276; letter-spacing: 2px; margin-bottom: 8px; }
.section-header h2 { font-size: 34px; font-weight: 700; color: #111; margin-bottom: 12px; }
.section-header p { font-size: 14px; color: #777; }
.business .container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.biz-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.biz-card { background: #fff; padding: 35px 25px; text-align: center; border-top: 3px solid #1a5276; box-shadow: 0 2px 10px rgba(0,0,0,0.06); }
.biz-card .icon { font-size: 36px; margin-bottom: 15px; }
.biz-card h3 { font-size: 20px; font-weight: 700; color: #222; margin-bottom: 12px; }
.biz-card p { font-size: 17px; color: #666; line-height: 1.7; margin-bottom: 20px; }
.biz-link { font-size: 13px; color: #1a5276; font-weight: 600; }
.biz-link:hover { text-decoration: underline; }

/* ===== 공지/사업/서비스 3단 ===== */
.notice-section { padding: 70px 0; background: #fff; }
.notice-section .container { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 25px; }
.notice-box { border: 1px solid #e0e0e0; padding: 30px; }
.notice-box h3 { font-size: 22px; font-weight: 700; color: #222; padding-bottom: 15px; border-bottom: 2px solid #1a5276; margin-bottom: 20px; }
.notice-list { list-style: none; }
.notice-list li { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px solid #f0f0f0; }
.notice-list li a { font-size: 17px; color: #444; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 200px; }
.notice-list li a:hover { color: #1a5276; }
.notice-list li span { font-size: 13px; color: #999; flex-shrink: 0; margin-left: 8px; }
.service-list { list-style: none; }
.service-list li { margin-bottom: 12px; }
.service-list li a { display: block; padding: 14px 18px; background: #f4f6f9; font-size: 15px; color: #333; font-weight: 600; text-align: center; }
.service-list li a:hover { background: #1a5276; color: #fff; }

/* ===== 푸터 ===== */
footer { background: #1e2a35; color: #aaa; padding: 40px 0 20px; }
footer .container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.footer-top { display: flex; gap: 60px; padding-bottom: 30px; border-bottom: 1px solid #2e3d4a; margin-bottom: 25px; }
.footer-logo img { height: 35px; filter: brightness(0) invert(1); opacity: 0.7; margin-bottom: 12px; }
.footer-logo p { font-size: 14px; line-height: 1.8; }
.footer-menu h4 { font-size: 15px; color: #ddd; font-weight: 700; margin-bottom: 12px; }
.footer-menu ul { list-style: none; }
.footer-menu ul li { margin-bottom: 7px; }
.footer-menu ul li a { font-size: 14px; color: #999; }
.footer-menu ul li a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; }
.footer-bottom p { font-size: 14px; color: #666; }
.footer-bottom-links { display: flex; gap: 15px; }
.footer-bottom-links a { font-size: 12px; color: #888; }

/* ===== 반응형 ===== */
@media (max-width: 768px) {
  .gnb { display: none; }
  .slide-content h2 { font-size: 26px; }
  .about .container { flex-direction: column; }
  .biz-grid { grid-template-columns: repeat(2, 1fr); }
  .notice-section .container { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; gap: 30px; }
  .about .container,
  .business .container,
  .notice-section .container,
  footer .container { padding: 0 12px; }
  .slide-content { padding: 0 20px; }
}
