/* 정책자금 페이지 전용 스타일 */

/* 히어로 섹션 내 perf-grid 스타일 */
.policy-hero .perf-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.policy-hero .perf-card {
  background: rgba(255, 255, 255, 0.1);
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease, background 0.3s ease;
}

.policy-hero .perf-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
}

.policy-hero .perf-card-text-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.policy-hero .perf-card .num {
  font-size: 2.5rem;
  font-weight: 900;
  color: white;
  line-height: 1;
}

.policy-hero .perf-card .label {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
  .policy-hero .perf-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
  }
  
  .policy-hero .perf-card {
    padding: 1.5rem;
  }
  
  .policy-hero .perf-card .num {
    font-size: 2rem;
  }
}

/* 히어로 섹션 */
.policy-hero {
  background: url('../images/sub_bg.png') no-repeat center center;
  background-size: cover;
  color: white;
  padding: 120px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}


.policy-hero .container {
  position: relative;
  z-index: 2;
}

.policy-hero h1 {
  font-size: 3.5rem;
  font-weight: 900;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.policy-hero p {
  font-size: 1.3rem;
  font-weight: 500;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

/* 정책자금 소개 섹션 */
.policy-intro {
  padding: 80px 0;
  background: #f8f9fa;
}

.policy-intro h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #004a92;
  text-align: center;
  margin-bottom: 2rem;
}

.policy-intro p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #666;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

/* === Mobile: move section label to top-right to avoid logo overlap === */
@media (max-width: 767px) {
  .policy-hero {
    position: relative;
    padding-top: 140px;
  }
  .policy-hero .section-label {
    position: absolute !important;
    /* 헤더(로고) 영역 아래로 충분히 더 내림 */
    top: 140px !important;
    right: 16px !important;
    left: auto !important;
    transform: none !important;
    margin: 0 !important;
    z-index: 6 !important;
  }
}

/* 정책자금 유형 섹션 */
.policy-types {
  padding: 80px 0;
}

.policy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.policy-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e9ecef;
  position: relative;
  overflow: hidden;
}

.policy-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #004a92, #0070c0);
}

.policy-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.policy-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #004a92;
  margin-bottom: 1rem;
}

.policy-card p {
  color: #666;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.policy-features {
  list-style: none;
  padding: 0;
}

.policy-features li {
  padding: 0.5rem 0;
  color: #555;
  position: relative;
  padding-left: 1.5rem;
  transition: color 0.3s ease;
}

.policy-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #28a745;
  font-weight: bold;
  font-size: 1.1rem;
}

.policy-features li:hover {
  color: #004a92;
}

/* 프로세스 섹션 */
.process-section {
  padding: 80px 0;
  background: #f8f9fa;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.process-step {
  text-align: center;
  padding: 2rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  position: relative;
}

.process-step:hover {
  transform: translateY(-3px);
}

.step-number {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #004a92, #0070c0);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0 auto 1rem;
  box-shadow: 0 4px 15px rgba(0,74,146,0.3);
}

.process-step h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #004a92;
  margin-bottom: 0.5rem;
}

.process-step p {
  color: #666;
  line-height: 1.6;
}

/* 장점 섹션 */
.benefits-section {
  padding: 80px 0;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-left: 4px solid #004a92;
}

.benefit-item:hover {
  transform: translateX(5px);
  box-shadow: 0 6px 25px rgba(0,0,0,0.15);
}

.benefit-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #004a92, #0070c0);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(0,74,146,0.3);
}

.benefit-item h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #004a92;
  margin-bottom: 0.5rem;
}

.benefit-item p {
  color: #666;
  line-height: 1.6;
  margin: 0;
}

/* CTA 섹션 */
.cta-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #004a92 0%, #0070c0 100%);
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('../images/Policy_funds.png') no-repeat center center;
  background-size: cover;
  opacity: 0.05;
  z-index: 1;
}

.cta-section .container {
  position: relative;
  z-index: 2;
}

.cta-section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.cta-section p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.cta-button {
  display: inline-block;
  background: white;
  color: #004a92;
  padding: 1rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.cta-button:hover {
  background: #f8f9fa;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  color: #004a92;
}

/* 애니메이션 효과 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.policy-card,
.process-step,
.benefit-item {
  animation: fadeInUp 0.6s ease-out;
}

.policy-card:nth-child(2) {
  animation-delay: 0.1s;
}

.policy-card:nth-child(3) {
  animation-delay: 0.2s;
}

.process-step:nth-child(2) {
  animation-delay: 0.1s;
}

.process-step:nth-child(3) {
  animation-delay: 0.2s;
}

.process-step:nth-child(4) {
  animation-delay: 0.3s;
}

.benefit-item:nth-child(2) {
  animation-delay: 0.1s;
}

.benefit-item:nth-child(3) {
  animation-delay: 0.2s;
}

.benefit-item:nth-child(4) {
  animation-delay: 0.3s;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
  .policy-hero {
    padding: 80px 0 60px;
  }
  
  .policy-hero h1 {
    font-size: 2.5rem;
  }
  
  .policy-hero p {
    font-size: 1.1rem;
  }
  
  .policy-intro {
    padding: 60px 0;
  }
  
  .policy-intro h2 {
    font-size: 2rem;
  }
  
  .policy-types,
  .process-section,
  .benefits-section {
    padding: 60px 0;
  }
  
  .policy-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .process-steps {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .policy-card,
  .process-step {
    padding: 1.5rem;
  }
  
  .benefit-item {
    padding: 1rem;
  }
  
  .cta-section {
    padding: 60px 0;
  }
  
  .cta-section h2 {
    font-size: 2rem;
  }
  
  .cta-section p {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .policy-hero h1 {
    font-size: 2rem;
  }
  
  .policy-hero p {
    font-size: 1rem;
  }
  
  .policy-intro h2 {
    font-size: 1.8rem;
  }
  
  .policy-card h3 {
    font-size: 1.3rem;
  }
  
  .process-step h3 {
    font-size: 1.2rem;
  }
  
  .benefit-item h3 {
    font-size: 1.1rem;
  }
  
  .cta-section h2 {
    font-size: 1.8rem;
  }
  
  .cta-button {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
  }
}
