.hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #fdde4c; /* 조금 더 선명한 푸른색 */
    padding: 0 5%;
    height: 100%;
    box-sizing: border-box;
    flex-wrap: wrap;
    overflow: hidden;
}

/* 텍스트 영역 */
.hero-text {
    flex: 1;
    min-width: 250px;
    opacity: 0;
    animation: fadeIn 1s ease-out forwards;
    animation-delay: 0.3s;
}

.hero-text h1 {
    font-size: 3.5vw;
    color: #5c4033; /* 더 진한 블루그레이 계열 */
    font-weight: 800;
    margin-bottom: 1rem;
}

.hero-text p {
    font-size: 1.5vw;
    color: #7b4f2c;
    font-weight: 400;
}

/* 이미지 */
.hero-dog {
    width: 30%;
    max-width: 600px;
    min-width: 250px;
    height: auto;
    object-fit: contain;
    opacity: 0;
    animation: fadeIn 1s ease-out forwards;
}

/* fade-in 공통 애니메이션 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 반응형 대응 */
@media (max-width: 768px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
        padding: 0 1rem;
    }

    .hero-dog {
        width: 60%;
        margin-top: 1.5rem;
    }

    .hero-text h1 {
        font-size: 6vw;
    }

    .hero-text p {
        font-size: 3.5vw;
    }
}



/*---------------------*/
.why-safepat {
    background-color: #fffaf0;
    padding: 4rem 2rem;
    text-align: center;
    font-family: 'Noto Sans KR', sans-serif;
}

.why-title {
    font-size: 2rem;
    font-weight: 800;
    color: #5c4033;
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeIn 1s ease forwards;
    animation-delay: 1s;
}

.why-title span {
    color: #f4a300;
    text-decoration: underline;
}

.why-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.why-card {
    width: 220px;
    background-color: #fdf4d5;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    opacity: 0;
    animation: fadeIn 1s ease forwards;
    animation-delay: 1s;
}

.why-card i {
    font-size: 2.2rem;
    color: #f4a300;
    margin-bottom: 1rem;
}

.why-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #5c4033;
    margin-bottom: 0.5rem;
}

.why-card p {
    font-size: 0.95rem;
    color: #7b4f2c;
    line-height: 1.4;
}

/* fade-in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-delay {
    opacity: 0;
    animation: fadeIn 1s ease-out forwards;
    animation-delay: 1s;
}
@media (max-width: 768px) {
    .why-grid {
        flex-direction: column;
        align-items: center;
    }

    .why-card {
        width: 90%;
    }
}






/* FAQ 전체 섹션 등장 시 fade-in */
.faq-section {
    background: linear-gradient(to bottom, #fffbe8, #fff);
    padding: 60px 20px;
    margin-top: 60px;
    font-family: 'Noto Sans KR', sans-serif;

    /* Fade-in with delay */
    opacity: 0;
    transform: translateY(20px);
    animation: faqFadeIn 1s ease forwards;
    animation-delay: 2s; /* ❗ 다른 요소 등장 후 2초 뒤 등장 */
}


/* 질문 박스 */
.faq-item {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
    transition: box-shadow 0.3s ease;
    overflow: hidden;
    border-left: 6px solid #fdcf25;
}

.faq-item:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

/* 질문 */
.faq-question {
    width: 100%;
    background: none;
    border: none;
    outline: none;
    text-align: left;
    padding: 18px 20px;
    font-size: 17px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s;
}

.faq-question:hover {
    background-color: #fff9d5;
}

.arrow {
    font-size: 18px;
    transition: transform 0.3s ease;
    color: #666;
}

.faq-item.active .arrow {
    transform: rotate(180deg);
    color: #f4a300;
}

/* 답변에 fade-in-out 적용 */
.faq-answer {
    display: block;
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    font-size: 15px;
    color: #555;
    line-height: 1.6;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.4s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px; /* 충분히 큰 값으로 설정 */
    opacity: 1;
    padding-bottom: 20px;
}

/* FAQ 전체 섹션 fade-in 애니메이션 */
@keyframes faqFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

