/* 기본 초기화 및 폰트 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', sans-serif;
}

html {
    scroll-behavior: smooth;
    background-color: #000000;
}

body {
    background-color: #000000;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* 유틸리티 */
.bg-darker { background-color: #050505; }
.section-padding { padding: 150px 10%; }

/* 헤더 */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s ease, border-bottom 0.3s ease;
    border-bottom: 1px solid transparent;
}

header.scrolled {
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #222;
}

.logo {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 1px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 40px;
}

nav a {
    text-decoration: none;
    color: #a0a0a0;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s;
}

nav a:hover { color: #ffffff; }

/* 버튼 스타일 */
.btn-primary {
    display: inline-block;
    padding: 16px 40px;
    background-color: #ffffff;
    color: #000000;
    text-decoration: none;
    font-weight: 600;
    border-radius: 30px;
    font-size: 16px;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    background-color: #e0e0e0;
}

.btn-primary-small {
    padding: 10px 24px;
    border: 1px solid #444;
    color: #fff;
    text-decoration: none;
    border-radius: 20px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.btn-primary-small:hover { border-color: #fff; }

/* 히어로 섹션 */
#hero {
    position: relative; /* 캔버스 위치 기준점 */
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 10%;
    background: radial-gradient(circle at 50% 30%, #111827 0%, #000000 70%);
    overflow: hidden; /* 캔버스가 영역 밖으로 나가는 것 방지 */
}

/* 파티클 캔버스 스타일 */
#particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0; /* 배경으로 배치 */
    opacity: 0.5; /* 은은하게 보이도록 투명도 조절 */
    pointer-events: none; /* 캔버스가 마우스 클릭을 방해하지 않도록 설정 */
}

.hero-content {
    position: relative;
    z-index: 1; /* 캔버스보다 텍스트가 위로 오도록 설정 */
}

.eyebrow {
    color: #4ade80; /* 포인트 그린 컬러 */
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 20px;
}

.hero-title {
    font-size: clamp(3rem, 6vw, 6rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 30px;
}

.hero-desc {
    font-size: 20px;
    color: #9ca3af;
    margin-bottom: 50px;
    font-weight: 400;
}

/* 무한 스크롤 마키 */
.marquee-container {
    width: 100%;
    overflow: hidden;
    background-color: #0a0a0a;
    padding: 30px 0;
    border-top: 1px solid #222;
    border-bottom: 1px solid #222;
    white-space: nowrap;
}

.marquee-content {
    display: inline-block;
    animation: marquee 20s linear infinite;
    font-size: 24px;
    font-weight: 600;
    color: #444;
    letter-spacing: 2px;
}

.marquee-content .dot {
    color: #222;
    margin: 0 40px;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* 큰 텍스트 Overview */
.large-text-container {
    max-width: 1000px;
}

.large-heading {
    font-size: 56px;
    line-height: 1.2;
    margin-bottom: 30px;
    font-weight: 700;
}

.large-text-container p {
    font-size: 22px;
    color: #888;
}

/* 섹션 헤더 공통 */
.section-header {
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 16px;
    color: #4ade80;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.section-header p {
    font-size: 32px;
    font-weight: 600;
    color: #fff;
}

/* 카드 그리드 */
.card-grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.card-grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.product-card, .industry-card {
    background: #0a0a0a;
    border: 1px solid #222;
    padding: 50px 40px;
    border-radius: 12px;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.product-card:hover, .industry-card:hover {
    background: #111;
    border-color: #4ade80;
}

.card-tag {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(74, 222, 128, 0.1);
    color: #4ade80;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    margin-bottom: 20px;
}

.product-card h3, .industry-card h3 {
    font-size: 28px;
    margin-bottom: 20px;
}

.product-card p, .industry-card p {
    font-size: 16px;
    color: #888;
}

/* 에이전트(Tech) 리스트 */
.agents-list {
    border-top: 1px solid #222;
}

.agent-item {
    display: flex;
    padding: 40px 0;
    border-bottom: 1px solid #222;
    transition: padding-left 0.3s ease;
}

.agent-item:hover {
    padding-left: 20px;
}

.agent-title {
    flex: 1;
    font-size: 24px;
    font-weight: 600;
    color: #fff;
}

.agent-desc {
    flex: 2;
    font-size: 18px;
    color: #888;
}

/* CTA */
#cta {
    text-align: center;
    padding: 200px 10%;
    background: linear-gradient(180deg, #000000 0%, #051008 100%);
}

.cta-container h2 {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 20px;
}

.cta-container p {
    font-size: 20px;
    color: #888;
    margin-bottom: 50px;
}

/* 푸터 */
footer {
    padding: 60px 10% 40px;
    border-top: 1px solid #222;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 60px;
}

.footer-logo {
    font-size: 24px;
    font-weight: 800;
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: #666;
    font-size: 14px;
    text-align: right;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    color: #444;
    font-size: 14px;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    margin-left: 20px;
}

.footer-links a:hover { color: #fff; }

/* 애니메이션 */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}



/* ====== Technology 탭 & 아코디언 인터랙티브 CSS ====== */

/* 탭 메뉴 스타일 */
.tab-menu {
    display: flex;
    gap: 20px;
    border-bottom: 1px solid #222;
    margin-bottom: 60px;
}

.tab-btn {
    background: none;
    border: none;
    color: #555;
    font-size: 18px;
    font-weight: 600;
    padding: 20px 10px;
    cursor: pointer;
    letter-spacing: 1px;
    position: relative;
    transition: color 0.3s ease;
}

.tab-btn:hover {
    color: #fff;
}

.tab-btn.active {
    color: #4ade80; /* 마키나락스 시그니처 그린 */
}

/* 활성화 탭 하단 인디케이터 선 */
.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #4ade80;
}

/* 탭 콘텐츠 기본 숨김 처리 */
.tab-content {
    display: none;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.tab-content.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* 아코디언 스타일 (스마트팜 구조) */
.accordion {
    border-top: 1px solid #222;
}

.accordion-item {
    border-bottom: 1px solid #222;
    overflow: hidden;
}

.accordion-header {
    display: flex;
    align-items: center;
    padding: 30px 20px;
    cursor: pointer;
    user-select: none;
    transition: background 0.3s ease;
}

.accordion-header:hover {
    background: #0a0a0a;
}

.layer-num {
    font-size: 14px;
    color: #4ade80;
    font-weight: 600;
    width: 120px;
    letter-spacing: 1px;
}

.accordion-header h3 {
    flex: 1;
    font-size: 20px;
    font-weight: 500;
    color: #ccc;
    transition: color 0.3s;
}

.accordion-item.active .accordion-header h3 {
    color: #fff;
    font-weight: 600;
}

.icon-toggle {
    font-size: 24px;
    color: #444;
    transition: transform 0.3s ease, color 0.3s ease;
}

.accordion-item.active .icon-toggle {
    transform: rotate(45px); /* + 기호가 x나 다르게 회전하게 조절 */
    color: #4ade80;
}

/* 아코디언 본문 닫힘/열림 핵심 */
.accordion-body {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    color: #888;
    font-size: 16px;
    transition: max-height 0.4s cubic-bezier(0.25, 1, 0.5, 1), padding 0.4s ease;
}

.accordion-item.active .accordion-body {
    max-height: 300px; /* 콘텐츠 길이에 맞춰 넉넉하게 설정 */
    padding-bottom: 40px;
}

.accordion-body p {
    margin-bottom: 15px;
}

.accordion-body strong {
    color: #fff;
}

/* 공정 프로세스 그리드 스타일 (배석세포) */
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px 30px;
}

.process-step {
    border-top: 1px solid #222;
    padding-top: 25px;
    transition: border-color 0.3s ease;
}

.process-step:hover {
    border-color: #4ade80;
}

.step-num {
    font-size: 14px;
    color: #4ade80;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.process-step h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #fff;
}

.process-step p {
    font-size: 15px;
    color: #777;
    line-height: 1.6;
}


/* ====== Team 섹션 프로필 카드 CSS ====== */

.team-card {
    background: #0a0a0a;
    border: 1px solid #1a1a1a;
    border-radius: 12px;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.4s ease, box-shadow 0.4s ease;
}

.team-card:hover {
    transform: translateY(-8px);
    border-color: #4ade80; /* 시그니처 그린 광원 */
    box-shadow: 0 10px 30px rgba(74, 222, 128, 0.05);
}

/* 텍스트 아바타 영역 (고급 인더스트리얼 느낌의 흑백 대비) */
.profile-avatar {
    width: 60px;
    height: 60px;
    background: #111;
    border: 1px solid #222;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: #4ade80;
    letter-spacing: 1px;
}

.member-role {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    color: #555;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.team-card h3 {
    font-size: 24px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 15px;
}

.member-bio {
    font-size: 14px;
    color: #888;
    line-height: 1.6;
    margin-bottom: 25px;
    min-height: 90px; /* 카드의 높이를 일정하게 맞추기 위함 */
}

/* 주요 이력 리스트 스타일 */
.member-history {
    list-style: none;
    border-top: 1px solid #1a1a1a;
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.member-history li {
    font-size: 13px;
    color: #666;
    position: relative;
    padding-left: 15px;
}

/* 리스트 앞의 작은 블록 포인트 */
.member-history li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 7px;
    width: 4px;
    height: 4px;
    background-color: #4ade80;
    border-radius: 50%;
}


/* ====== Sustainability & ESG 섹션 스타일 ====== */

.esg-card {
    background: linear-gradient(180deg, #0a0a0a 0%, #050505 100%);
    border: 1px solid #1a1a1a;
    padding: 50px 35px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.esg-card:hover {
    border-color: #4ade80;
    transform: translateY(-5px);
}

.esg-tag {
    font-size: 11px;
    color: #4ade80;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 20px;
    display: inline-block;
    padding: 4px 10px;
    border: 1px solid rgba(74, 222, 128, 0.3);
    border-radius: 4px;
}

.esg-card h3 {
    font-size: 24px;
    margin-bottom: 30px;
    color: #fff;
}

.esg-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.esg-list li {
    font-size: 14px;
    color: #888;
    line-height: 1.6;
    position: relative;
    padding-left: 18px;
}

.esg-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #4ade80;
}

.esg-list li strong {
    color: #ccc;
    display: block;
    margin-bottom: 2px;
}

/* 인증 내역 무한 슬라이더 (Ticker) */
.cert-slider-wrapper {
    margin-top: 100px;
    width: 100%;
    overflow: hidden;
    position: relative;
}

/* 좌우 그림자 페이드 효과 (고급스러움 추가) */
.cert-slider-wrapper::before,
.cert-slider-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    width: 200px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.cert-slider-wrapper::before {
    left: 0;
    background: linear-gradient(to right, #000, transparent);
}

.cert-slider-wrapper::after {
    right: 0;
    background: linear-gradient(to left, #000, transparent);
}

.cert-slider {
    display: flex;
    white-space: nowrap;
    padding: 40px 0;
}

.cert-track {
    display: flex;
    animation: certTicker 40s linear infinite; /* 부드럽게 흐르는 속도 조절 */
}

.cert-item {
    font-size: 32px;
    font-weight: 800;
    color: #1a1a1a; /* 배경색과 대비되는 어두운 톤 */
    margin: 0 60px;
    letter-spacing: 4px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.cert-item:hover {
    color: #4ade80; /* 호버 시 강조 */
}

/* 티커 애니메이션 정의 */
@keyframes certTicker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}


/* ====== Roadmap & Performance (로드맵 & 성과) 섹션 스타일 ====== */

/* 성과 하이라이트 배너 */
.performance-banner {
    display: flex;
    flex-wrap: wrap;
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.05) 0%, rgba(0, 0, 0, 0) 100%);
    border: 1px solid rgba(74, 222, 128, 0.2);
    border-radius: 16px;
    padding: 50px;
    margin-bottom: 80px;
    gap: 40px;
}

.perf-content {
    flex: 2;
    min-width: 300px;
}

.perf-label {
    display: inline-block;
    color: #4ade80;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.perf-number {
    font-size: 56px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 20px;
    line-height: 1;
    text-shadow: 0 0 20px rgba(74, 222, 128, 0.3);
}

.perf-number span {
    font-size: 24px;
    color: #888;
}

.perf-content p {
    font-size: 16px;
    color: #aaa;
    line-height: 1.6;
}

.perf-stats {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    min-width: 200px;
    border-left: 1px solid #222;
    padding-left: 40px;
}

.stat h4 {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 5px;
}

.stat span {
    font-size: 14px;
    color: #666;
    letter-spacing: 1px;
}

/* 3개년 타임라인 (Timeline) */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding-left: 40px;
    border-left: 2px solid #1a1a1a; /* 세로선 */
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

/* 타임라인 초록색 점 */
.timeline-dot {
    position: absolute;
    left: -47px; /* 세로선 중앙에 맞춤 */
    top: 5px;
    width: 12px;
    height: 12px;
    background-color: #000;
    border: 2px solid #4ade80;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(74, 222, 128, 0.5);
    z-index: 2;
}

/* 타임라인 컨텐츠 카드 */
.timeline-content {
    background: #0a0a0a;
    border: 1px solid #1a1a1a;
    padding: 35px 40px;
    border-radius: 12px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.timeline-content:hover {
    transform: translateX(10px);
    border-color: #4ade80;
}

.time-year {
    font-size: 14px;
    font-weight: 700;
    color: #4ade80;
    letter-spacing: 2px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.timeline-content h3 {
    font-size: 24px;
    color: #fff;
    margin-bottom: 15px;
}

.timeline-content p {
    font-size: 16px;
    color: #888;
    line-height: 1.6;
}



/* ====== 마이크로 인터랙션 (Premium UX/UI) ====== */

/* 1. 스크롤 프로그레스 바 */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #00ff87, #60efff);
    z-index: 9999;
    transition: width 0.1s ease-out;
    box-shadow: 0 0 10px rgba(0, 255, 135, 0.5);
}

/* 2. 커스텀 마우스 커서 */
/* PC(마우스 사용 환경)에서만 기본 마우스 포인터 숨기기 */
@media (pointer: fine) {
    body, a, button, .tab-btn, .accordion-header {
        cursor: none !important;
    }
}

.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    border: 2px solid #4ade80;
    border-radius: 50%;
    pointer-events: none; /* 커서가 클릭을 방해하지 않도록 설정 */
    transform: translate(-50%, -50%);
    z-index: 10000;
    transition: width 0.2s ease, height 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
    mix-blend-mode: difference; /* 배경색에 따라 커서 색상이 반전되어 가독성 확보 */
}

/* 마우스가 버튼/링크 등(Hoverable)에 올라갔을 때 커서 이펙트 */
.custom-cursor.hovered {
    width: 50px;
    height: 50px;
    background-color: rgba(74, 222, 128, 0.1);
    border-color: rgba(74, 222, 128, 0.8);
    box-shadow: 0 0 20px rgba(74, 222, 128, 0.4);
}



/* ====== News & Insights 섹션 스타일 ====== */
.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 80px;
}

.col-title {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 30px;
    border-bottom: 1px solid #222;
    padding-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 1열: 최신 뉴스 리스트 */
.news-list {
    display: flex;
    flex-direction: column;
}

.news-item {
    padding: 30px 0;
    border-bottom: 1px solid #1a1a1a;
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
}

.news-item:hover {
    padding-left: 20px;
    border-bottom-color: #4ade80; /* 호버 시 하단 선 초록색 변경 */
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.news-date {
    color: #666;
    font-size: 14px;
    font-weight: 500;
}

.news-tag {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 태그별 컬러 지정 */
.tag-pr { background: rgba(74, 222, 128, 0.1); color: #4ade80; }
.tag-patent { background: rgba(96, 239, 255, 0.1); color: #60efff; }
.tag-notice { background: rgba(255, 255, 255, 0.05); color: #aaa; }

.news-item h4 {
    color: #ccc;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.5;
    transition: color 0.3s ease;
}

.news-item:hover h4 {
    color: #fff; /* 호버 시 텍스트 밝게 */
}

/* 2열: 테크 블로그 카드 */
.blog-cards {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.blog-card {
    background: #0a0a0a;
    border: 1px solid #1a1a1a;
    padding: 40px 35px;
    border-radius: 12px;
    text-decoration: none;
    display: block;
    transition: transform 0.4s ease, border-color 0.4s ease, background 0.4s ease;
}

.blog-card:hover {
    transform: translateY(-8px);
    border-color: #4ade80;
    background: #111;
}

.blog-meta {
    color: #4ade80;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.blog-card h4 {
    color: #fff;
    font-size: 22px;
    margin-bottom: 15px;
    line-height: 1.4;
}

.blog-card p {
    color: #888;
    font-size: 15px;
    line-height: 1.6;
}



/* ====== Contact 섹션 스타일 ====== */
.contact-container {
    max-width: 800px;
    margin: 0 auto;
    background: #0a0a0a;
    border: 1px solid #1a1a1a;
    padding: 60px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.contact-form .form-row {
    display: flex;
    gap: 30px;
}

.contact-form .form-row .form-group {
    flex: 1;
}

.contact-form .form-group {
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
}

.contact-form label {
    color: #ccc;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
}

.contact-form input,
.contact-form textarea {
    background: #111;
    border: 1px solid #222;
    color: #fff;
    padding: 16px;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #4ade80;
    box-shadow: 0 0 15px rgba(74, 222, 128, 0.1);
}

.contact-form textarea {
    resize: vertical;
    min-height: 150px;
}

.btn-submit {
    width: 100%;
    padding: 20px;
    background: #4ade80;
    color: #000;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    margin-top: 10px;
}

.btn-submit:hover {
    background: #38c76f;
    transform: translateY(-2px);
}

.status-msg {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    display: none;
}


/* =========================================
   모바일 반응형 (화면 가로폭이 768px 이하일 때 적용)
========================================= */
@media (max-width: 768px) {
    
    /* 1. 문의하기(Contact) 폼 모바일 최적화 */
    .contact-container {
        padding: 30px 20px; /* 모바일에서는 여백을 줄임 */
    }
    .contact-form .form-row {
        flex-direction: column; /* 가로 배치를 세로 배치로 변경 */
        gap: 0; /* 간격 초기화 (아래 폼 그룹 마진으로 대체) */
    }
    .contact-form .form-group {
        margin-bottom: 20px; /* 모바일 입력창 간격 조정 */
    }

    /* 2. 뉴스 상세 페이지 모바일 최적화 */
    .detail-wrapper {
        margin: 40px auto 80px;
        padding: 0 20px;
    }
    .detail-title {
        font-size: 28px; /* 모바일에서는 제목 크기를 줄임 */
    }
    .detail-meta {
        flex-direction: column; /* 날짜와 작성자 세로 배치 */
        gap: 5px;
    }

    /* 3. 전체 공통 여백 최적화 */
    section.section-padding {
        padding: 60px 20px;
    }
    .section-header h2 {
        font-size: 32px;
    }
}