/* ========================================
  기본 스타일 초기화 및 공통 설정
  ========================================
*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth; /* 부드러운 스크롤 효과 추가 */
}

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    background-color: #fff;
    color: #333;
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 50px 0;
    text-align: center;
}

.section-title {
    font-size: 36px;
    font-weight: 900;
    margin-bottom: 30px;
    color: #222;
}

/* ========================================
  상단 고정 헤더 (내비게이션 바)
  ========================================
*/
.main-nav {
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
    padding: 10px 0;
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.nav-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo img {
    padding-top: 7px;
    max-width: 130px;
    height: auto;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-donate-button {
    border: 2px solid #f32121;
    color: #f32121;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.nav-donate-button .heart-icon {
    font-size: 20px;
    line-height: 1;
}

/* ========================================
  1. 히어로 섹션
  ========================================
*/
.hero {
    background-color: #fdfdff;
    background-image: 
        radial-gradient(ellipse at 10% 20%, rgba(205, 47, 47, 0.2) 0%, transparent 60%),
        radial-gradient(ellipse at 90% 80%, rgba(0, 75, 156, 0.2) 0%, transparent 60%);
    
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    overflow: hidden;
}

.hero .hero-banner-image {
    max-width: 300px;
    width: 100%;
}

.hero .hero-passbook-image {
    padding-right: 10px;
    min-width: 600px;
    max-width: 600px;
    width: 80%;
    animation: float 3s ease-in-out infinite;
}

.hero .hero-donate-button {
    background-color: #fff;
    color: #CD2D35;
    padding: 15px 30px;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease-in-out;
}

.hero .hero-donate-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
}

.hero .hero-donate-button:active {
    transform: translateY(2px);
    border-bottom-width: 2px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.hero .hero-donate-button .black-text {
    color: #333;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}

/* ========================================
  2. 기부 참여 섹션 (유튜브 영상)
  ========================================
*/
.intro {
    padding: 100px 20px;
    background-color: #fff;
}

.intro .video-title {
    margin-bottom: 40px;
}

.video-container {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    max-width: 1100px; 
    margin: 0 auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

#youtube-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ========================================
  3. 2단 레이아웃 섹션 (공통 스타일)
  ========================================
*/
.donation-details, .reorganization-details {
    background-color: #fdfdff;
}

.donation-details {
    background-image: radial-gradient(ellipse at 50% 0%, rgba(255, 225, 225, 0.6) 0%, #fdfdff 70%);
}

.details-wrapper {
    display: flex;
    flex-direction: column;
    /* gap: 40px; */
    align-items: center;
}

.details-wrapper .section-title {
    margin-bottom: 20px;
}

.details-image {
    width: 100%;
    max-width: 300px;
}

.details-image img {
    width: 100%;
    border-radius: 10px;
    /* box-shadow: 0 10px 30px rgba(0,0,0,0.1); */
}

.details-text {
    text-align: center;
}

.details-text p {
    font-size: 18px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
}

.reorganization-details .details-text .count-up {
    font-weight: 700;
    color: #CD2D35;
    font-size: 1.1em;
}

/* ========================================
  4. 후원 방법 섹션
  ========================================
*/
.how-to-donate {
    background-color: #f7f9fc;
}

.steps-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 50px;
}

.step-card {
    background-color: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.07);
    display: flex;
    align-items: center;
    gap: 25px;
}

.step-card.step-2 {
    flex-direction: row-reverse;
}

.step-icon {
    height: 85px;
    flex-shrink: 0;
}

.step-text-content {
    text-align: left;
}

.step-number{
    font-size: 16px;
    font-weight: 900;
    color: #CD2D35;
    margin-bottom: 10px;
}

.step-card p {
    font-size: 15px;
    line-height: 1.7;
    color: #555;
}


/* ========================================
  5. 출연자 명단 섹션
  ========================================
*/
.donors-section {
    background-color: #b33939; /* 붉은색 배경 */
    padding: 100px 20px;
}

.donors-title-image {
    max-width: 500px;
    width: 90%;
    margin-bottom: 40px;
}

.donor-card {
    background-color: #fff;
    border-radius: 15px;
    padding: 40px;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.donor-list {
    font-size: 17px;
    line-height: 1.5;
    color: #444;
    text-align: center; 
    margin-bottom: 40px;
}

.donor-summary {
    font-size: 16px;
    font-weight: 500;
    color: #666;
    text-align: center;
    line-height: 1.8;
}
/* ========================================
  스크롤 애니메이션
  ========================================
*/
.reveal-animation {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-animation.is-visible {
    opacity: 1;
    transform: translateY(0);
}


/* ========================================
  6. 푸터 (하단 정보)
  ========================================
*/
.footer {
    background-color: #694949;
    color: #ccc;
    padding: 60px 0;
    text-align: center;
}

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

.footer .footer-info {
    font-size: 13px;
    margin-bottom: 30px;
}

.footer .footer-info p {
    margin-bottom: 5px;
}
.account-icon {
    max-width: 500px;
    height: auto;
    margin: 0;
     box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);

}
.footer .donation-usage {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
    font-size: 14px;
}

.footer .donation-usage strong {
    color: #fff;
    font-size: 16px;
}

.footer .copyright {
    font-size: 12px;
    color: #888;
}

/* ========================================
  7. 법적고지
  ========================================
*/
.legal {
    background-color: #1a2c1a;
    color: #999;
    font-size: 11px;
    padding: 15px 0;
    text-align: center;
}

/* ========================================
  반응형 웹을 위한 미디어 쿼리
  ========================================
*/

/* 모바일 화면 (767px 이하) */
@media (max-width: 767px) {
    .section-title, .intro .video-title {
        font-size: 28px;
        line-height: 1.4;
    }

    .details-text p, .step-card p {
        font-size: 15px;
    }

    .reorganization-details .details-text p {
        font-size: 15px;
    }

    .hero .hero-passbook-image {
        min-width: 90%;
        padding-right: 0;
    }

    .account-icon {
    max-width: 300px;
    width: auto;
    margin: 0;
     box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);

}

    .details-image {
    width: 100%;
    max-width: 250px;
        /* 2단계 카드 텍스트만 오른쪽 정렬 */
    .step-card.step-2 .step-text-content {
    text-align: right;
}
}
}


/* 태블릿 및 PC 화면 (992px 이상) */
@media (min-width: 992px) {
    .section-title, .intro .video-title {
        font-size: 40px;
    }

    .details-wrapper {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0 80px;
        align-items: center;
    }

    .donation-details .details-wrapper {
        grid-template-areas: 
            "title image"
            "text  image";
    }

    .reorganization-details .details-wrapper {
        grid-template-areas: 
            "image title"
            "image text";
    }

    .details-wrapper .section-title {
        grid-area: title;
        text-align: left;
        margin-bottom: 20px;
    }

    .details-text {
        grid-area: text;
        text-align: left;
    }

    .details-image {
        grid-area: image;
        margin: 0;
    }

    .steps-wrapper {
        flex-direction: row;
        justify-content: center;
        align-items: stretch;
    }

    .step-card {
        flex: 1;
        flex-direction: column;
        text-align: center;
    }
    
    .step-card.step-2 {
        flex-direction: column;
    }

    .step-text-content {
        text-align: center;
    }

}
