/* ===== Reset and Base Styles ===== */

@font-face {
    font-family: 'GmarketSansMedium';
    src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/GmarketSansMedium.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

/* Utility Styles from components.css */
.highlight {
    color: #00BF73;
}

.arrow-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.arrow {
    width: 8px;
    height: 8px;
    border-right: 2px solid white;
    border-bottom: 2px solid white;
    transform: rotate(-45deg);
}

/* 모든 화면 크기에서 적용될 글꼴 크기 조정 */
.hero-section .hero-title, .hero-header .hero-title {
    font-size: 2.2rem !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
}

.hero-section .button-text, .hero-header .button-text {
    font-size: 2.2rem !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
}

.hero-section .cta-button, .hero-header .cta-button {
    font-size: 2.2rem !important;
    padding: 8px 15px !important;
    font-weight: 600 !important;
}

.hero-section .cta-button span, .hero-header .cta-button span {
    font-size: 2.2rem !important;
    font-weight: 600 !important;
}

.hero-description {
    font-size: 1.2rem !important;
    font-weight: 400 !important;
    margin-top: 10px !important;
    color: #666 !important;
}

@media (max-width: 480px) {
    /* From responsive.css for 480px */
    .hero-section .hero-title, .hero-header .hero-title {
        font-size: 1.2rem !important;
    }
    
    .hero-section .button-text, .hero-header .button-text {
        font-size: 2rem !important;
    }
    
    .hero-section .cta-button, .hero-header .cta-button {
        font-size: 1.2rem !important;
        padding: 6px 12px !important;
    }
    
    .hero-description {
        font-size: 0.85rem !important;
    }
}

/* 당일신청 버튼 스타일 */
.apply-today-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    background: none;
    border: none;
    color: #00BF73;
    font-size: 1.2rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0;
    padding-bottom: 5px; /* 밑줄 공간 확보 */
    overflow: visible; /* 중요: overflow를 visible로 변경 */
}

.apply-today-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #00BF73;
    transition: width 0.4s ease;
}

.apply-today-btn:hover::after {
    width: 100%;
}

.apply-today-btn .btn-text {
    position: relative;
}

.apply-today-btn .btn-arrow {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.apply-today-btn:hover .btn-arrow {
    transform: translateX(5px);
}

/* ===== 3D Flip Button Styles (from button-3d.css) ===== */
.apply-today-3d {
  position: relative;
  display: inline-block;
  margin-top: 48px;
  width: 160px;
  height: 50px;
  line-height: 50px;
  font-size: 20px;
  text-align: center;
  font-family: 'GmarketSansMedium', sans-serif;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 2px;
  background: #ccc;
  color: #222;
  border: none;
  overflow: hidden;
  transition: background 0.3s;
  perspective: 600px;
}
.apply-today-3d .btn-arrow {
  position: relative;
  z-index: 3;
  margin-left: 6px;
  display: inline-block;
  vertical-align: middle;
  color: #fff;
  font-size: 1.1em;
}
.apply-today-3d:before,
.apply-today-3d:after {
  transform-style: preserve-3d;
}
.apply-today-3d:before {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  text-align: center;
  background: #00BF73;
  color: #fff;
  transition: 0.5s;
  transform-origin: bottom;
  transform: translateY(-100%) rotateX(90deg);
  z-index: 2;
}
.apply-today-3d:hover:before {
  transform: translateY(0) rotateX(0deg);
}
.apply-today-3d:after {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  text-align: center;
  background: #009e5a;
  color: #fff;
  transition: 0.5s;
  transform-origin: top;
  transform: translateY(0) rotateX(0deg);
  z-index: 1;
}
.apply-today-3d:hover:after {
  transform: translateY(100%) rotateX(90deg);
}
.apply-today-3d .btn-arrow svg path {
  stroke: #fff;
  transition: stroke 0.3s;
}
.apply-today-3d:hover .btn-arrow svg path {
  stroke: #fff;
}

/* ===== Credit Grid Section Styles (from credit-grid.css) ===== */

/* Credit Grid Styles */
:root {
  --color-bg: transparent;
  --color-primary: #188FED;
}

/* Section Title Styles */
.features .section-title + .section-description + .feature-grid .section-title,
.credit-section-title {
  text-align: center;
  margin-top: 2.5rem;
  font-size: 2.5rem;
  color: #1e40af;
  margin-bottom: 3rem;
  font-weight: 700;
}

/* Credit Grid Layout */
.credit {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.4rem;
  padding: 0.8rem 0.4rem;
  background: #fff;
  border-radius: 24px;
  max-width: 1400px;
  margin: 0.5rem auto 1.5rem auto; /* Adjusted top and bottom margins */
  position: relative;
  justify-items: center;
}

.creditList {
  background: #fff;
  border-radius: 30px;
  box-shadow: 2px 10px 6px #9393932f;
  padding: 20px;
  width: 252px;
  height: 313px;
  text-align: center;
  margin: 10px 2px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all .4s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.creditList .name {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #333;
  font-family: 'GmarketSansMedium', sans-serif;
}

.creditList .main-title {
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
  color: #333;
  font-family: 'GmarketSansMedium', sans-serif;
  font-weight: 500;
}

.creditList .sub-title {
  font-size: 0.85rem;
  line-height: 1.4;
  color: #333;
  font-family: 'GmarketSansMedium', sans-serif;
  font-weight: 500;
}

.creditList img {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  transition: bottom .6s ease;
  bottom: 5px;
  z-index: 3;
  width: 105px;
  height: 105px;
  object-fit: contain;
  border-radius: 12px;
  background: transparent;
  will-change: transform, bottom;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateX(-50%) translateZ(0);
  opacity: 0.9;
  filter: brightness(1.05) contrast(1.05);
}

.creditList:hover {
  transform: scale(1.05);
  z-index: 10;
}

.creditList:hover img {
  bottom: -20px;
}

.creditList .hoverBox {
  padding: 30px 18px 18px 18px;
  text-align: center;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  transition: opacity .3s ease-in-out;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  border-radius: 30px;
  pointer-events: none;
  box-sizing: border-box;
  margin: 0;
}

.creditList .hoverBox .name {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 1rem 0;
  width: 100%;
  padding: 0;
  text-align: center;
  transform: scale(1);
  transition: transform 0.3s ease;
  color: #333;
  font-family: 'GmarketSansMedium', sans-serif;
}

.creditList .hoverBox .main-title {
  font-size: 0.95rem;
  line-height: 1.35;
  margin: 0 0 1rem 0;
  text-align: center;
  width: 100%;
  padding: 0;
  transform: scale(1);
  transition: transform 0.3s ease;
  color: #00BF73; /* Changed to green */
  font-family: 'GmarketSansMedium', sans-serif;
  font-weight: 500;
}

.creditList .hoverBox .sub-title {
  font-size: 0.85rem;
  line-height: 1.4;
  margin: 0 0 1.2rem 0;
  text-align: center;
  width: 100%;
  padding: 0;
  transform: scale(1);
  transition: transform 0.3s ease;
  color: #333;
  font-family: 'GmarketSansMedium', sans-serif;
  font-weight: 500;
}

.creditList:hover .hoverBox .name,
.creditList:hover .hoverBox .main-title {
  transform: scale(1.15);
}

.creditList:hover .hoverBox .sub-title {
  transform: scale(1.1);
}

.creditList:hover .hoverBox {
  opacity: 1;
  pointer-events: auto;
  animation: zoomInEffect 0.3s forwards;
}

@keyframes zoomInEffect {
  0% {
    transform: scale(0.95) translateY(-10px);
  }
  100% {
    transform: scale(1) translateY(0);
  }
}

.hoverBox .main-title span {
  color: #00BF73; /* Changed to green */
  font-weight: 700; /* Adjusted for consistency, can be 900 if very bold is needed */
  font-family: 'GmarketSansMedium', sans-serif;
}

.hoverBox label {
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  color: #fff;
  background-color: #00BF73;
  padding: 8px 16px;
  border-radius: 20px;
  transition: background-color .3s, transform .2s;
  display: inline-block;
  margin-top: auto; 
  margin-bottom: 10px; 
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  font-family: 'GmarketSansMedium', sans-serif;
}

.hoverBox label:hover {
  background-color: #00a566;
  transform: translateY(-2px);
}

/* Responsive Styles for Credit Grid */
@media (max-width: 1200px) {
  .credit {
    grid-template-columns: repeat(3, 1fr);
    max-width: 900px;
  }
}

@media (max-width: 992px) {
  .credit {
    grid-template-columns: repeat(2, 1fr);
    max-width: 600px;
  }
  .creditList {
    width: 260px; /* Slightly adjust width if needed */
    height: auto; /* Auto height for content flow */
    padding-bottom: 120px; /* Ensure space for image */
  }
  .creditList img {
    width: 90px;
    height: 90px;
  }
}

@media (max-width: 768px) {
  .credit-section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
  }
  .credit {
    grid-template-columns: 1fr;
    max-width: 320px; /* Max width for single column */
    gap: 1rem;
  }
  .creditList {
    width: 100%; /* Full width for single column */
    max-width: 300px; /* Max width for card */
    margin-left: auto;
    margin-right: auto;
  }
}

/* ===== Header Banner ===== */
/* 스타일이 있다면 여기에 위치합니다. 없다면 index.html의 .header-banner 클래스에 직접 스타일링 될 수 있습니다. */

/* ===== Top Navigation ===== */

/* Scrolled state for navigation */
.sticky-nav-container.scrolled {
    background-color: #ffffff; /* 스크롤 시 화이트 배경색 */
    box-shadow: none; /* 그림자 제거 */
}

.main-nav.scrolled {
    padding: 0 20px;
    height: 100px; /* 스크롤 시에도 높이 100px 유지 */
    background-color: transparent;
    transform: translateY(0);
}

.main-nav.scrolled .nav-menu {
    background-color: transparent;
}

.main-nav.scrolled .nav-menu li {
    text-shadow: none;
    color: #333;
}

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

body {
    font-family: 'GmarketSansMedium', 'Malgun Gothic', '맑은 고딕', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    font-size: 16px;
    overflow-x: hidden;
    padding-top: 0;
    margin-top: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

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

ul, ol {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 1400px;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
    background-color: transparent;
}

/* Header Banner - Make sticky */
.header-banner {
    background-color: transparent; /* 배경 제거 */
    backdrop-filter: none; /* 블러 효과 제거 */
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: flex-start; /* 중앙 정렬 */
    font-size: 12px;
    color: #666;
    border-bottom: none; /* 하단 테두리 제거 */
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1002;
}

.header-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1400px; /* 네비게이션과 동일한 최대 폭 */
    height: 100%;
    background-color: rgba(224, 224, 224, 0.8);
    backdrop-filter: blur(5px);
    border-bottom: 1px solid rgba(221, 221, 221, 0.5);
    z-index: -1;
}

/* Navigation - Make sticky */
.sticky-nav-container {
    position: fixed;
    top: 20px; /* 헤더 배너 높이만큼 내리기 */
    left: 0;
    z-index: 1000;
    padding: 0;
    width: 100%;
    box-sizing: border-box;
    transition: background-color 0.3s ease;
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100px; /* 네비게이션 높이 100px로 설정 */
    padding: 0 20px;
    position: relative;
    z-index: 1000;
    background-color: transparent; /* 배경 제거 */
    border-radius: 0; /* 둥근 모서리 제거 */
    box-shadow: none; /* 그림자 제거 */
    margin: 0 auto;
    max-width: 1400px; /* 너비 1400px로 조정 */
    transition: all 0.3s ease;
    width: 100%;
}

.logo-image {
    height: 60px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 20px;
    margin: 0;
    padding: 10px 20px;
    background-color: transparent; /* 흰색 배경 제거 */
    border-radius: 0; /* 테두리 둥글기 제거 */
    box-shadow: none; /* 그림자 제거 */
}

.nav-menu li {
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    color: #333;
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
    padding: 5px 10px;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5); /* 텍스트 가독성 향상을 위한 그림자 */
}

.nav-menu li:hover {
    color: #00a76a;
    transform: translateY(-2px);
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0) rotate(0deg); 
        filter: blur(5px);
    }
    50% { 
        transform: translateY(-20px) rotate(5deg); 
        filter: blur(15px);
    }
}

@keyframes floatReverse {
    0% {
        transform: translateY(0) rotate(0);
    }
    50% {
        transform: translateY(20px) rotate(-2deg);
    }
    100% {
        transform: translateY(0) rotate(0);
    }
}

@keyframes fadeInLeft {
    0% {
        opacity: 0;
        transform: translateX(-20px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    0% {
        opacity: 0;
        transform: translateX(20px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ===== Hero Section Styles ===== */
.hero-section {
    position: relative;
    overflow: hidden;
    padding: 0;
    background: #fff;
    height: 500px; /* 히어로 섹션 높이 500px로 설정 */
    width: 1400px;
    max-width: 100%;
    margin: 0 auto;
}

.hero-header {
    position: relative;
    overflow: visible;
    width: 1400px;
    max-width: 100%;
    height: 500px; /* 히어로 섹션 높이 500px로 설정 */
    margin: 0 auto;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    z-index: 1;
}

/* Animated Background */
.animated-bg {
    position: absolute; /* fixed에서 absolute로 변경 */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    background-color: #F8F8F8;
    pointer-events: none;
}

.circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
}

.green-circle {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 191, 115, 0.5) 0%, rgba(0, 191, 115, 0) 70%);
    top: -100px;
    right: 0;
    animation: float 20s ease-in-out infinite;
    opacity: 0.6;
}

.gray-circle {
    width: 600px;
    height: 500px;
    background: radial-gradient(circle, rgba(153, 153, 153, 0.5) 0%, rgba(153, 153, 153, 0) 70%);
    bottom: -100px;
    left: -100px;
    animation: floatReverse 25s ease-in-out infinite;
    opacity: 0.5;
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0) rotate(0deg); 
        filter: blur(5px);
    }
    50% { 
        transform: translateY(-20px) rotate(5deg); 
        filter: blur(15px);
    }
}

.hero-content {
    height: 100%;
    padding: 40px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    background-color: transparent;
    margin-top: 50px; /* 텍스트를 50px 아래로 내림 */
}

.hero-text {
    flex: 1;
    max-width: 50%;
    padding-right: 40px;
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.title-line {
    margin-bottom: 20px;
}

.hero-image {
    flex: 1;
    max-width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
    margin-top: 50px; /* 이미지를 50px 아래로 내림 */
}

.hero-image img {
    max-height: 420px; /* Slightly less than the 500px container to ensure proper fit */
    width: auto;
    object-fit: contain;
    animation: float 6s ease-in-out infinite;
}

/* ===== Live Status Section ===== */
/* Live Status Section Styles */
.live-status .section-title {
  text-align: center;
  font-size: 2.5rem; /* Consistent with other section titles */
  color: #333;    /* 다른 섹션과 통일된 커러 */
  margin-top: 1rem; /* Reduced spacing */
  margin-bottom: 2rem;
  font-family: 'GmarketSansMedium', sans-serif; /* 다른 섹션과 통일된 폰트 */
  font-weight: 700;
}

.hero-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    line-height: 1.2;
    margin: 0;
    margin-bottom: 8px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease-out forwards;
}

.button-line {
    margin: 10px 0 20px;
}

.cta-buttons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    opacity: 0;
}

.cta-button {
    padding: 15px 25px;
    border: none;
    border-radius: 50px;
    font-size: 1.8rem;
    font-weight: 900;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.cta-button:active {
    transform: translateY(0);
}

.dsr-button {
    background-color: #00a76a;
    color: white;
}

.loan-button {
    background-color: #ff6b6b;
    color: white;
}

.button-text {
    font-size: 3.8rem;
    font-weight: 900;
    line-height: 1.2;
    color: #333;
    white-space: nowrap;
    margin: 0 5px;
    display: inline-block;
    vertical-align: middle;
    position: relative;
    top: -2px;
}

.description-line {
    margin-top: 20px;
}

.hero-description {
    font-size: 1.5rem;
    color: #555;
    margin: 0;
    opacity: 0;
    transform: translateX(-20px);
    animation: fadeInLeft 0.8s ease-out 0.3s forwards;
}

.hero-image {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image img {
    max-height: 420px; /* Slightly less than the 500px container to ensure proper fit */
    width: auto;
    object-fit: contain;
    animation: float 6s ease-in-out infinite;
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0) rotate(0);
    }
    50% {
        transform: translateY(-20px) rotate(2deg);
    }
    100% {
        transform: translateY(0) rotate(0);
    }
}

@keyframes floatReverse {
    0% {
        transform: translateY(0) rotate(0);
    }
    50% {
        transform: translateY(20px) rotate(-2deg);
    }
    100% {
        transform: translateY(0) rotate(0);
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    0% {
        opacity: 0;
        transform: translateX(-20px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    0% {
        opacity: 0;
        transform: translateX(20px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .button-text {
        font-size: 3.2rem;
    }
    
    .cta-button {
        font-size: 1.5rem;
        padding: 12px 20px;
    }
    
    .hero-description {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
        padding: 0 15px;
    }
    
    .hero-text {
        padding-right: 0;
        margin-bottom: 40px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .button-text {
        font-size: 2.8rem;
    }
    
    .cta-buttons {
        justify-content: center;
    }
    
    .hero-image img {
        max-height: 50vh;
    }
    
    .green-circle {
        width: 400px;
        height: 400px;
        top: -100px;
        right: -100px;
    }
    
    .gray-circle {
        width: 500px;
        height: 400px;
        bottom: -250px;
        left: -150px;
    }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

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

ul, ol {
    list-style: none;
}

/* Layout */

/* Header Banner */
.header-banner .container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 100%;
    width: 100%;
    max-width: 1400px; /* 네비게이션과 동일한 최대 폭 */
    margin: 0 auto; /* 중앙 정렬 */
    padding: 0 20px; /* 네비게이션과 동일한 패딩 */
}

/* Hero Text */
.hero-text {
    flex: 1;
    max-width: 50%;
    padding-right: 40px;
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.button-text {
    font-size: 3.8rem;
    font-weight: 900;
    line-height: 1.2;
    color: #333;
    white-space: nowrap;
    margin: 0 5px;
    display: inline-block;
    vertical-align: middle;
    position: relative;
    top: -2px;
}

/* 각 줄의 기본 스타일 */
.title-line,
.button-line,
.description-line {
    display: flex;
    align-items: center;
    min-height: 60px; /* 각 줄의 최소 높이 */
    margin: 0;
    padding: 10px 0;
}

.button-line {
    margin: 0;
    padding: 0;
    line-height: 1;
    margin-top: -10px;
    display: flex;
    align-items: center;
    font-size: 2rem;
}

/* 제목 라인 스타일 */
.title-line {
    align-items: flex-end; /* 하단 정렬 */
    margin-bottom: 0;
}

.hero-title {
    font-size: 3.8rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    color: #333;
    margin-bottom: 10px;
}

/* 왼쪽에서 오른쪽으로 스르륵 나타나는 애니메이션 */
@keyframes slideInFromLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* 설명 라인 스타일 */
.description-line {
    align-items: flex-start;
    margin-top: 10px;
    animation: slideInFromLeft 1s ease-out forwards;
    opacity: 0;
    font-size: 1.75rem;
}

.hero-description {
    font-size: 20px;
    margin: 0;
    color: #666;
    font-weight: 400;
    line-height: 1.5;
}

.highlight {
    color: #00BF73;
}

.cta-buttons {
    display: flex;
    align-items: center;
    gap: 5px;
    height: 100%;
    margin: 0;
    padding: 0;
}

.cta-button {
    padding: 8px 20px;
    border: none;
    border-radius: 30px;
    font-size: 28px; /* 버튼 텍스트 크기 증가 */
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    height: auto;
    line-height: 1.2;
    vertical-align: baseline; /* 베이스라인에 맞춤 */
    margin: 0 3px;
    position: relative;
    top: -2px; /* 약간 위로 올림 */
}

.dsr-button {
    background-color: #333333; /* 검정에 가까운 진한 회색 */
    color: #00BF73;
    position: relative;
    top: -5px; /* DSR 버튼 5px 위로 올림 */
}

.loan-button {
    background-color: #00BF73; /* 초록색 배경 */
    color: #FFFFFF; /* 흰색 텍스트 */
    border: none; /* 테두리 제거 */
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.cta-button:active {
    transform: translateY(0);
}

/* ===== Features Section ===== */
.features {
    padding: 2.5rem 0; /* Reduced spacing */
    text-align: center;
}

.section-title {
    font-size: 36px;
    margin-bottom: 10px;
}

.features .section-description {
    text-align: center;
    color: #555;
    margin-bottom: 0.5rem; /* Reduced spacing */
    font-size: 1.1rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.feature-item {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    min-height: 200px;
}

.features {
    padding: 2.5rem 0; /* Added padding for the features section */
    text-align: center;
}

/* ===== Contact Section ===== */
.contact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2.5rem 0; /* Reduced spacing */
    background-color: #f9f9f9;
}

/* 카카오 문의 섹션 스타일 */
.kakao-section {
    background-color: #04DB95;
    padding: 0;
    margin: 2rem 0;
    color: #fff;
    height: 350px; /* 높이를 350px로 설정 */
    position: relative; /* 자식 요소의 절대 위치 지정을 위해 추가 */
    overflow: hidden; /* 넘치는 요소 숨김 */
}

.kakao-section .contact-content {
    padding-left: 50px; /* 왼쪽 여백 50px 설정 */
}

.kakao-section .contact-title,
.kakao-section .contact-description {
    color: #fff;
}

.kakao-section .highlight {
    color: #FAE100; /* 카톡 강조 색상을 카카오 노란색으로 변경 */
    font-weight: 700;
}

.kakao-image {
    position: absolute; /* 절대 위치로 변경 */
    right: 0; /* 오른쪽 정렬 */
    bottom: 0; /* 하단 정렬 */
    max-width: 40%;
    height: auto;
}

.kakao-image img {
    max-width: 100%;
    height: auto;
}

.contact-content {
    max-width: 50%;
}

.contact-title {
    font-size: 32px;
    margin-bottom: 20px;
}

.contact-description {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
}

.contact-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    background-color: #00BF73;
    color: #333;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
}

/* 카카오 섹션의 문의하기 버튼 스타일 */
.kakao-section .contact-button {
    background-color: #FAE100; /* 카카오 노란색 */
    color: #333;
    border-radius: 25px; /* 더 크게 라운딩 */
    font-weight: 600;
    position: relative;
    padding-left: 50px; /* 카카오 로고를 위한 공간 */
}

.kakao-section .arrow-icon .arrow {
    border-right: 2px solid #333; /* 검은색 화살표 */
    border-bottom: 2px solid #333; /* 검은색 화살표 */
}

/* 카카오 로고 픽토그램 */
.kakao-section .contact-button::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 208 191"><path fill="%23000000" d="M104,0C46.56,0,0,36.71,0,82c0,29.28,19.47,55,48.75,69.48-1.59,5.49-10.24,35.34-10.58,37.69,0,0-.21,1.76.93,2.43a3.14,3.14,0,0,0,2.48.15c3.28-.46,38.21-25.57,44-29.75,6.06.79,12.34,1.26,18.65,1.26,57.44,0,104-36.71,104-82S161.44,0,104,0Z"/></svg>');
    background-repeat: no-repeat;
    background-size: contain;
}

.contact-button:hover {
    background-color: #00a566;
}

/* ===== 1등 섹션 스타일 ===== */
.number-one-section {
    padding: 4rem 0;
    background-color: #fff;
}

.number-one-grid {
    display: flex;
    gap: 40px;
}

/* 1등 섹션 그리드 */
.number-one-section {
    padding: 60px 0;
    background-color: #fff;
    overflow: hidden;
}

.number-one-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr; /* 3단 그리드 */
    gap: 30px;
    position: relative;
}

/* 1단: 텍스트 영역 */
.number-one-text {
    grid-column: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-right: 20px;
}

.number-one-image {
    max-width: 200px;
    height: auto;
    margin-bottom: 25px;
}

.number-one-title {
    font-size: 2.5rem;
    font-weight: 600;
    line-height: 1.3;
    color: #333;
    margin: 0 0 15px 0;
    text-align: left;
}

.number-one-title .highlight {
    color: #00BF73; /* 초록색 강조 */
    font-weight: 700;
}

.number-one-desc {
    font-size: 1.1rem;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

/* 2단 & 3단: 카드 컨테이너 */
.loan-cards-container {
    height: 400px;
    overflow: hidden;
    position: relative;
}

.loan-cards-container:nth-child(2) {
    grid-column: 2;
}

.loan-cards-container:nth-child(3) {
    grid-column: 3;
}

/* 카드 스타일 */
.loan-card {
    width: 100%;
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
    overflow: hidden;
    position: relative;
}

.loan-card-inner {
    display: flex;
    padding: 20px;
    align-items: center;
}

.loan-icon {
    width: 60px;
    height: 60px;
    margin-right: 15px;
    object-fit: contain;
}

.loan-content {
    flex: 1;
}

.loan-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #00BF73;
    margin: 0 0 5px 0;
}

.loan-desc {
    font-size: 0.95rem;
    color: #333;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.loan-features {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.85rem;
    color: #666;
}

.loan-features li {
    margin-bottom: 3px;
}

/* 애니메이션 */
.loan-cards-container {
    position: relative;
}

.loan-cards-container:nth-child(2)::before,
.loan-cards-container:nth-child(2)::after,
.loan-cards-container:nth-child(3)::before,
.loan-cards-container:nth-child(3)::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 100%;
    z-index: 1;
}

.loan-cards-container:nth-child(2)::before {
    top: -100%;
}

.loan-cards-container:nth-child(2)::after {
    top: 100%;
}

.loan-cards-container:nth-child(3)::before {
    top: -100%;
}

.loan-cards-container:nth-child(3)::after {
    top: 100%;
}

/* 위로 올라가는 카드 */
.loan-cards-container:nth-child(2) {
    animation: slideUp 20s linear infinite;
}

/* 아래로 내려가는 카드 */
.loan-cards-container:nth-child(3) {
    animation: slideDown 20s linear infinite;
}

@keyframes slideUp {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-100%);
    }
    50.01% {
        transform: translateY(100%);
    }
    100% {
        transform: translateY(0);
    }
}

@keyframes slideDown {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(100%);
    }
    50.01% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(0);
    }
}

/* 반응형 */
@media (max-width: 992px) {
    .number-one-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .number-one-text,
    .loan-cards-container:nth-child(2),
    .loan-cards-container:nth-child(3) {
        grid-column: 1;
    }
    
    .number-one-text {
        align-items: center;
        text-align: center;
        padding-right: 0;
    }
}

/* 슬라이더 컨테이너 */
.number-one-slider-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
    overflow: hidden;
}

/* ===== 실시간 현황 및 FAQ 섹션 ===== */
.live-status-faq-section {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.section-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.live-status-faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 30px;
}

.live-status-column,
.faq-column {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.live-status-column .section-title,
.faq-column .section-title {
    margin-bottom: 20px;
}

/* 실시간 현황 스타일 */
.live-status-container {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 20px;
    height: 500px;
    overflow: hidden;
    position: relative;
}

.live-status-scroll {
    animation: scrollUp 30s linear infinite;
    position: relative;
}

.live-status-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.live-status-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 10px;
}

.live-status-date {
    flex: 0 0 100px;
    color: #888;
    font-size: 0.9rem;
}

.live-status-name {
    flex: 0 0 100px;
    font-weight: 500;
}

.live-status-name .highlight {
    color: #00BF73;
}

.live-status-product {
    flex: 1;
    font-weight: 500;
}

.live-status-status {
    flex: 0 0 80px;
    text-align: center;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.live-status-status.approved {
    background-color: #e6f7f0;
    color: #00BF73;
}

.live-status-status.pending {
    background-color: #fff4e6;
    color: #ff9500;
}

.live-status-status.completed {
    background-color: #e7f5ff;
    color: #0080ff;
}

.live-status-status.loan-complete {
    background-color: #f3f0ff;
    color: #7950f2;
}

.live-status-status.in-review {
    background-color: #fff0f6;
    color: #e64980;
}

/* FAQ 스타일 */
.faq-container {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 15px;
    height: 470px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

/* FAQ 제목 삭제 - 섹션 제목으로 대체 */

.faq-item {
    margin-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
    overflow: visible;
}

.faq-item:last-child {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: none;
    overflow: visible;
}

.faq-question {
    padding: 10px 0;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-toggle {
    font-size: 1.5rem;
    color: #00BF73;
    transition: transform 0.3s;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 0 10px 0;
    color: #666;
    line-height: 1.5;
    display: none;
    overflow: visible;
}

.faq-item.active .faq-answer {
    display: block;
}

/* 슬라이드 애니메이션 */
@keyframes scrollUp {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-50%);
    }
}

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

/* 반응형 스타일 */
@media (max-width: 992px) {
    .section-container {
        max-width: 100%;
        padding: 0 15px;
    }
    
    .live-status-faq-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .live-status-container {
        height: 400px;
    }
    
    .faq-container {
        max-height: 400px;
    }
    
    .live-status-item {
        flex-wrap: wrap;
    }
    
    .live-status-date,
    .live-status-name {
        flex: 0 0 50%;
        margin-bottom: 5px;
    }
    
    .live-status-product {
        flex: 1;
        margin-bottom: 5px;
    }
    
    .live-status-status {
        flex: 0 0 auto;
    }
}

/* 슬라이더 스타일 */
.number-one-slider {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
}

.slider-track {
    display: flex;
    flex-direction: column;
    gap: 20px;
    animation: slideUp 20s linear infinite;
    width: 100%;
}

.slider-track.reverse {
    animation: slideDown 20s linear infinite;
}

@keyframes slideUp {
    0% {
        transform: translateY(100%);
    }
    100% {
        transform: translateY(-100%);
    }
}

@keyframes slideDown {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(100%);
    }
}

.number-one-card {
    flex: 0 0 auto;
    width: 300px;
    display: flex;
    flex-direction: column;
    background-color: #f9f9f9;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    margin-bottom: 20px;
}

.number-one-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.number-one-card img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    margin: 20px 0 0 20px;
}

.card-content {
    padding: 15px 20px 20px 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.card-name {
    font-size: 1rem;
    font-weight: 700;
    color: #00BF73;
    margin-bottom: 5px;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.3;
}

.card-desc {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

/* 반응형 스타일 */
@media (max-width: 992px) {
    .number-one-grid {
        flex-direction: column;
    }
    
    .number-one-left {
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .number-one-cards-row {
        flex-direction: column;
    }
    
    .number-one-card {
        margin-bottom: 15px;
    }
}

.arrow {
    width: 8px;
    height: 8px;
    border-right: 2px solid white;
    border-bottom: 2px solid white;
    transform: rotate(-45deg);
}

/* ===== Testimonials Section ===== */
.testimonials {
    padding: 2.5rem 0; /* Reduced spacing */
    text-align: center;
    /* background-color: #fff; */ /* Uncomment if white background is needed */
}

/* ===== Footer Styles */
.footer {
    background-color: #444;
    color: #ddd;
    padding: 40px 0 0 0;
}

/* 푸터 좌우 레이아웃 */
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.footer-left {
    flex: 1;
    padding-right: 40px;
    min-width: 300px;
}

.footer-right {
    flex: 1;
    padding: 20px;
    min-width: 300px;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo-img {
    max-width: 180px;
    height: auto;
    object-fit: contain;
    display: block;
}

.footer-links {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.footer-links a {
    color: #aaa;
    text-decoration: none;
    font-weight: 600;
}

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

.company-info p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #aaa;
    margin-bottom: 5px;
}

/* 푸터 공지사항 스타일 */
.footer-notice {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.finance-association-link {
    margin-bottom: 15px;
}

.finance-association-link a {
    display: inline-block;
    text-decoration: none;
    color: #aaa;
    font-weight: 600;
    transition: color 0.3s;
}

.finance-association-link a:hover {
    color: #ddd;
}

.legal-notice {
    font-size: 0.85rem;
    line-height: 1.6;
    color: #aaa;
}

.legal-notice p {
    margin-bottom: 8px;
}

.copyright-container {
    background-color: #333;
    padding: 15px 0;
    margin-top: 30px;
}

.copyright {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    font-size: 0.8rem;
    color: #aaa;
    text-align: center;
}

/* 반응형 스타일 */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
    }
    
    .footer-left {
        padding-right: 0;
        margin-bottom: 30px;
    }
    
    .footer-right {
        width: 100%;
    }
}

/* Responsive Design */
@media (max-width: 1240px) {
    .container,
    .footer-content {
        width: 100%;
        padding: 0 20px;
        box-sizing: border-box;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .contact {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-content {
        max-width: 100%;
        margin-bottom: 30px;
    }
}

@media (max-width: 1024px) {
    .nav-menu {
        gap: 10px;
        padding: 5px 10px;
    }
    
    .nav-menu li {
        font-size: 14px;
        padding: 5px;
    }

    /* From responsive.css for 1024px */
    .section-title {
        font-size: 30px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none; /* 모바일에서는 햄버거 메뉴로 대체 */
    }

    .hero-title {
        font-size: 28px;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .cta-button {
        width: 100%;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }

    /* Hero-specific responsive styles from hero.css */
    .hero-content {
        flex-direction: column;
        text-align: center;
        padding: 0 15px;
    }

    .hero-text {
        order: 1;
        margin-bottom: 30px;
    }

    /* Overriding general .hero-title for hero section specifically */
    .hero-section .hero-title, .hero-header .hero-title { /* Make it specific to hero */
        font-size: 2rem;
    }

    .hero-content .button-line { /* Specific to hero */
        font-size: 2rem;
        justify-content: center;
    }

    .hero-content .cta-buttons {
        justify-content: center;
    }

    .hero-content .cta-button,
    .hero-content .button-text {
        font-size: 1.5rem;
    }

    .hero-content .cta-button span {
        font-size: 1.5rem !important;
    }
    
    .hero-description {
        font-size: 16px;
    }

    .hero-image {
        display: block;
        order: 2;
        max-width: 80%;
        margin: 0 auto;
    }

    .hero-image img {
        max-height: 250px;
    }

    /* Assuming .animated-bg in hero context */
    .hero-section .animated-bg, .hero-header .animated-bg {
        height: 120%;
    }

    /* Assuming circles are in hero context */
    .hero-section .green-circle, .hero-header .green-circle,
    .hero-section .gray-circle, .hero-header .gray-circle {
        width: 300px;
        height: 300px;
    }

    /* From responsive.css for 768px */
    .section-title {
        font-size: 26px;
    }
    
    .section-description {
        font-size: 14px;
    }
    
    .contact-title {
        font-size: 24px;
    }
}

/* Adding hero animation class */
.hero-content.animate .hero-title {
    animation: fadeInUp 0.8s ease-out forwards;
}

.hero-content.animate .hero-description {
    animation: fadeInLeft 0.8s ease-out 0.3s forwards;
}

.hero-content.animate .cta-buttons {
    animation: fadeInRight 0.8s ease-out 0.2s forwards;
}

/* 스크롤 시 네비게이션 스타일 - 흰색 배경으로 변경 */
.main-nav.scrolled {
    padding: 10px 20px;
    background-color: rgba(255, 255, 255, 0.95); /* 히어로 배경색에서 흰색으로 변경 */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* 그림자 추가 */
    transform: translateY(-2px);
}

/* 스크롤 시 메뉴 스타일 조정 */
.main-nav.scrolled .nav-menu {
    background-color: transparent; /* 메뉴 배경은 투명 유지 */
}

/* 스크롤 시 메뉴 항목 스타일 */
.main-nav.scrolled .nav-menu li {
    text-shadow: none; /* 텍스트 그림자 제거 */
    color: #333; /* 텍스트 색상 진하게 */
}
