/* /assets/css/program_intro.css */
:root {
    --primary-color: #0A2342; /* Deep Blue */
    --secondary-color: #f4f7fa; /* Light Gray Background */
    --accent-color: #007bff; /* Bright Blue */
    --text-color: #333;
    --heading-color: #0A2342;
    --card-bg: #ffffff;
    --card-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

body {
    background-color: #fff;
    color: var(--text-color);
}

.page-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* --- Hero Section --- */
#main-hero {
    text-align: center;
    padding: 80px 20px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 0 0 20px 20px;
    margin-bottom: 60px;
    padding-bottom: 100px; /* 키워드 영역 확보 */
}

#main-hero h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.3;
}

#main-hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
    line-height: 1.6;
}

/* --- General Section Styling --- */
section {
    padding: 60px 0;
}

section:nth-child(even) {
    background-color: var(--secondary-color);
}

section h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 50px;
}

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

.card {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card h3 {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.card p, .card ul {
    font-size: 1rem;
    line-height: 1.7;
    color: #555;
}

.card ul {
    list-style: none;
    padding-left: 0;
}

.card ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
}

.card ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

/* [개선] 히어로 섹션 - 원형 키워드 */
.radial-keywords-container {
    position: relative;
    width: 400px;
    height: 400px;
    margin: 70px auto 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.central-circle {
    position: absolute;
    width: 130px;
    height: 130px;
    background: #fff;
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.3;
    z-index: 10;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.3);
    animation: fadeIn 1s ease-out;
}

.keyword-item {
    position: absolute;
    list-style: none;
    transform: rotate(calc(360deg / 6 * var(--i))) translateY(-200px);
    transform-origin: center;
    opacity: 0;
    animation: fadeInAndScale 0.5s ease-out forwards;
    animation-delay: calc(0.2s * var(--i));
}

.keyword-item span {
    display: block;
    transform: rotate(calc(-360deg / 6 * var(--i)));
    background-color: rgba(255, 255, 255, 0.15);
    color: #fff;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(5px);
    cursor: pointer;
    position: relative; /* 툴팁 기준점 */
}

.keyword-item::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 135px; /* Distance from keyword-item center to circle edge */
    background: rgba(255, 255, 255, 0.4);
    transition: background-color 0.3s;
    z-index: -1; /* Place it behind the span */
}

.keyword-item .tooltip-text {
    visibility: hidden;
    opacity: 0;
    width: 240px;
    background-color: #0A2342;
    color: #fff;
    text-align: left;
    border-radius: 8px;
    padding: 15px;
    position: absolute;
    z-index: 10;
    bottom: 125%;
    left: 50%;
    margin-left: -120px;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    font-size: 0.95rem;
    line-height: 1.6;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    pointer-events: none;
}

.keyword-item span:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

.keyword-item:hover::before, .keyword-item span:hover::before {
    background: rgba(255, 255, 255, 0.7);
}
/* --- Consultant Profiles --- */
.consultant-profile {
    text-align: center;
}

.consultant-profile img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin-bottom: 20px;
    border: 4px solid var(--accent-color);
}

.consultant-profile .title {
    display: block;
    color: #777;
    margin-bottom: 15px;
    font-weight: 500;
}

.consultant-profile p {
    text-align: left;
    font-size: 0.95rem;
}

.consultant-profile p strong {
    color: var(--heading-color);
}

/* --- Testimonials --- */
.testimonial {
    display: flex;
    flex-direction: column;
}

/* [추가] 후기 별점 스타일 */
.testimonial .rating {
    margin-bottom: 15px;
    color: #ffc107; /* 별점 색상 */
    font-size: 1.3rem;
    text-align: left; /* 별점을 왼쪽 정렬 */
}
.testimonial .rating .star {
    letter-spacing: 2px; /* 별 사이 간격 */
}

.testimonial blockquote {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--heading-color);
    border-left: 4px solid var(--accent-color);
    padding-left: 15px;
    margin: 0 0 15px 0;
}

.testimonial p {
    flex-grow: 1;
    margin-bottom: 20px;
}

.testimonial cite {
    font-style: normal;
    font-weight: 600;
    color: #333;
    align-self: flex-end;
}

/* --- FAQ Section --- */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
    border-top: 2px solid #e9ecef; /* 상단 구분선 */
}

.faq-container details {
    background: transparent;
    border-radius: 0;
    margin-bottom: 0;
    border: none;
    border-bottom: 1px solid #e9ecef; /* 하단 구분선 */
}

.faq-container summary {
    padding: 25px 20px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    position: relative;
    color: var(--heading-color);
    transition: background-color 0.2s ease;
}

.faq-container summary:hover {
    background-color: #f8f9fa;
}

.faq-container summary::-webkit-details-marker {
    display: none;
}

.faq-container summary::after {
    content: '❯'; /* 아이콘 변경 */
    position: absolute;
    right: 20px;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--accent-color);
    transition: transform 0.3s ease;
}

.faq-container details[open] summary::after {
    transform: rotate(90deg);
}

.faq-container details[open] summary {
    font-weight: 700;
    color: var(--accent-color);
}

@keyframes fadeInAndScale {
    from {
        opacity: 0;
        transform: rotate(calc(360deg / 6 * var(--i))) translateY(-170px) scale(0.5);
    }
    to {
        opacity: 1;
        transform: rotate(calc(360deg / 6 * var(--i))) translateY(-200px) scale(1);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.faq-container .answer {
    padding: 10px 40px 30px 20px;
    line-height: 1.7;
    color: #495057;
    background-color: #fdfdff;
}
.faq-container .answer p {
    margin: 0;
}

/* --- CTA Section --- */
#cta {
    background: linear-gradient(45deg, var(--accent-color), #0056b3);
    color: #fff;
    text-align: center;
    padding: 80px 20px;
}

#cta h2 {
    color: #fff;
    margin-bottom: 15px;
}

#cta p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    background-color: #fff;
    color: var(--accent-color);
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.cta-button:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    #main-hero h1 {
        font-size: 2.2rem;
    }
    section h2 {
        font-size: 2rem;
    }
    .card-grid {
        grid-template-columns: 1fr;
    }

    /* Radial Keywords Responsive */
    .radial-keywords-container {
        width: 320px;
        height: 320px;
        margin-top: 50px;
    }
    .central-circle {
        width: 100px;
        height: 100px;
        font-size: 1.1rem;
    }
    .keyword-item {
        transform: rotate(calc(360deg / 6 * var(--i))) translateY(-160px);
    }
    .keyword-item span {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    .keyword-item::before {
        height: 110px; /* 160px - 50px */
    }
    /* Redefine animation for mobile */
    @keyframes fadeInAndScale {
        from {
            opacity: 0;
            transform: rotate(calc(360deg / 6 * var(--i))) translateY(-130px) scale(0.5);
        }
        to {
            opacity: 1;
            transform: rotate(calc(360deg / 6 * var(--i))) translateY(-160px) scale(1);
        }
    }
}