/* ===========================
   전역 스타일
   =========================== */

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

/* 구글 번역 위젯 숨기기 (커스텀 스타일링) */
.goog-te-banner-frame.skiptranslate {
    display: none !important;
}

body {
    top: 0px !important;
}

:root {
    /* 색상 변수 */
    --primary-gold: #FFD700;
    --primary-purple: #6B46C1;
    --dark-bg: #1a1a3e;
    --darker-bg: #0f0f2a;
    --text-light: #f0f0f0;
    --text-gold: #FFD700;
    --accent-red: #DC143C;
    --accent-blue: #4169E1;
    
    /* 그라디언트 */
    --gradient-main: linear-gradient(135deg, #1a1a3e 0%, #2d1b4e 50%, #1a1a3e 100%);
    --gradient-card: linear-gradient(145deg, rgba(107, 70, 193, 0.1) 0%, rgba(26, 26, 62, 0.3) 100%);
    --gradient-gold: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    
    /* 그림자 */
    --shadow-soft: 0 4px 20px rgba(107, 70, 193, 0.3);
    --shadow-glow: 0 0 30px rgba(255, 215, 0, 0.5);
    --shadow-deep: 0 10px 40px rgba(0, 0, 0, 0.6);
    
    /* 간격 */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 5rem;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    scroll-padding-top: 80px; /* 네비게이션 높이만큼 오프셋 */
}

body {
    font-family: 'Noto Sans KR', 'Malgun Gothic', sans-serif;
    background: var(--gradient-main);
    background-attachment: fixed;
    color: var(--text-light);
    line-height: 1.7;
    overflow-x: hidden;
    padding-top: 70px; /* 네비게이션 공간 확보 */
}

/* ===========================
   네비게이션
   =========================== */

.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(26, 26, 62, 0.95);
    backdrop-filter: blur(15px);
    border-bottom: 2px solid var(--primary-gold);
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.8rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

/* 로고 (황금 법륜) */
.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.dharma-wheel-logo {
    flex-shrink: 0;
}

/* 데스크톱 메뉴 */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    flex: 1;
    justify-content: center;
}

.nav-menu li a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    color: var(--text-light);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    white-space: nowrap;
}

.nav-menu li a:hover {
    background: rgba(255, 215, 0, 0.2);
    color: var(--primary-gold);
    transform: translateY(-2px);
}

.nav-menu li a i {
    font-size: 1rem;
}

/* 구글 번역 위젯 */
.translate-widget {
    flex-shrink: 0;
}

#google_translate_element {
    background: rgba(107, 70, 193, 0.2);
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
}

#google_translate_element select {
    background: transparent;
    border: 1px solid var(--primary-gold);
    color: var(--text-light);
    padding: 0.3rem;
    border-radius: 5px;
    font-size: 0.85rem;
}

/* 햄버거 버튼 (모바일) */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--primary-gold);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* 모바일 오프캔버스 메뉴 */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(15, 15, 42, 0.98);
    backdrop-filter: blur(20px);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.7);
    z-index: 999;
    padding: 5rem 2rem 2rem;
    transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.close-menu {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    color: var(--primary-gold);
    font-size: 2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-menu:hover {
    transform: rotate(90deg);
    color: #fff;
}

.mobile-nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    color: var(--text-light);
    text-decoration: none;
    background: rgba(107, 70, 193, 0.1);
    border-radius: 12px;
    border-left: 4px solid transparent;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.mobile-nav-link:hover {
    background: rgba(255, 215, 0, 0.2);
    border-left-color: var(--primary-gold);
    color: var(--primary-gold);
    transform: translateX(10px);
}

.mobile-nav-link i {
    font-size: 1.3rem;
    width: 25px;
}

.main-header {
    padding: var(--spacing-xl) var(--spacing-md);
    text-align: center;
    background: rgba(26, 26, 62, 0.5);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--primary-gold);
}

.header-content {
    max-width: 900px;
    margin: 0 auto;
}

.dharma-wheel {
    font-size: 4rem;
    color: var(--primary-gold);
    text-shadow: var(--shadow-glow);
    display: inline-block;
    margin-bottom: var(--spacing-md);
}

.rotating {
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.main-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-gold);
    text-shadow: 
        0 0 20px rgba(255, 215, 0, 0.8),
        0 0 40px rgba(255, 215, 0, 0.4);
    margin-bottom: var(--spacing-sm);
    letter-spacing: 0.1em;
}

.subtitle {
    font-size: 1.3rem;
    color: var(--text-light);
    opacity: 0.9;
    margin-bottom: var(--spacing-md);
}

.lotus-divider {
    font-size: 2rem;
    color: var(--primary-purple);
    margin: var(--spacing-md) 0;
}

/* ===========================
   컨테이너
   =========================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ===========================
   섹션 공통
   =========================== */

section {
    padding: var(--spacing-xl) 0;
    position: relative;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-gold);
    text-align: center;
    margin-bottom: var(--spacing-md);
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
}

.title-icon {
    font-size: 2rem;
    margin: 0 var(--spacing-sm);
}

.section-intro {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-light);
    opacity: 0.9;
    margin-bottom: var(--spacing-lg);
    line-height: 1.8;
}

.subsection-title {
    font-size: 2rem;
    color: var(--primary-gold);
    text-align: center;
    margin: var(--spacing-lg) 0 var(--spacing-md);
}

/* ===========================
   6도윤회 섹션
   =========================== */

.section-samsara {
    background: rgba(15, 15, 42, 0.5);
}

/* 윤회 바퀴 컨테이너 */
.samsara-wheel-container {
    position: relative;
    width: 600px;
    height: 600px;
    margin: var(--spacing-xl) auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 중앙 심볼 */
.wheel-center {
    position: absolute;
    width: 150px;
    height: 150px;
    background: var(--gradient-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 
        0 0 30px rgba(255, 215, 0, 0.8),
        0 0 60px rgba(255, 215, 0, 0.4),
        inset 0 0 20px rgba(255, 255, 255, 0.3);
}

.center-symbol {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--darker-bg);
    text-align: center;
    line-height: 1.2;
    letter-spacing: 0.1em;
}

.center-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.3) 0%, transparent 70%);
    animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.9;
    }
}

/* 회전하는 윤회 바퀴 - 핵심 애니메이션 */
.wheel-rotation {
    position: absolute;
    width: 100%;
    height: 100%;
    animation: rotate-samsara 60s linear infinite;
    transform-origin: center center;
}

@keyframes rotate-samsara {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* 각 도(道) 원 */
.realm-circle {
    position: absolute;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    border: 3px solid var(--primary-gold);
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(255, 215, 0, 0.3);
}

.realm-circle:hover {
    transform: scale(1.15);
    box-shadow: 
        0 8px 30px rgba(0, 0, 0, 0.7),
        0 0 40px rgba(255, 215, 0, 0.8);
    z-index: 5;
}

/* 6도 위치 (원형 배치) */
.realm-heaven {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.realm-asura {
    top: 15%;
    right: 8%;
}

.realm-human {
    bottom: 15%;
    right: 8%;
}

.realm-animal {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.realm-hungry {
    bottom: 15%;
    left: 8%;
}

.realm-hell {
    top: 15%;
    left: 8%;
}

/* 불교 탱화 이미지 */
.realm-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease;
}

.realm-circle:hover .realm-image {
    transform: scale(1.1);
}

/* 도 이름 라벨 */
.realm-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    color: var(--primary-gold);
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
    padding: var(--spacing-xs);
    letter-spacing: 0.05em;
}

/* 6도 상세 카드 그리드 */
.realms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
}

.realm-card {
    background: var(--gradient-card);
    border: 2px solid rgba(107, 70, 193, 0.3);
    border-radius: 20px;
    padding: var(--spacing-md);
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
}

.realm-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-gold);
    box-shadow: 
        var(--shadow-soft),
        0 0 30px rgba(255, 215, 0, 0.3);
}

.realm-icon {
    font-size: 3rem;
    text-align: center;
    margin-bottom: var(--spacing-sm);
}

.realm-card h3 {
    font-size: 1.8rem;
    color: var(--primary-gold);
    text-align: center;
    margin-bottom: var(--spacing-xs);
}

.realm-hanja {
    text-align: center;
    color: var(--text-light);
    opacity: 0.7;
    font-size: 1rem;
    margin-bottom: var(--spacing-md);
}

.realm-desc {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
}

.realm-feature {
    background: rgba(255, 215, 0, 0.1);
    border-left: 4px solid var(--primary-gold);
    padding: var(--spacing-sm);
    border-radius: 5px;
    color: var(--text-light);
    line-height: 1.6;
}

/* ===========================
   업보 섹션
   =========================== */

.section-karma {
    background: rgba(26, 26, 62, 0.3);
}

.karma-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.karma-card {
    background: var(--gradient-card);
    border: 2px solid rgba(107, 70, 193, 0.3);
    border-radius: 20px;
    padding: var(--spacing-md);
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
}

.karma-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-gold);
}

.karma-icon {
    font-size: 3rem;
    text-align: center;
    margin-bottom: var(--spacing-sm);
}

.karma-card h3 {
    font-size: 1.8rem;
    color: var(--primary-gold);
    text-align: center;
    margin-bottom: var(--spacing-xs);
}

.karma-hanja {
    text-align: center;
    color: var(--text-light);
    opacity: 0.7;
    font-size: 1rem;
    margin-bottom: var(--spacing-md);
}

.karma-list {
    list-style: none;
    color: var(--text-light);
    line-height: 2;
}

.karma-list li {
    margin-bottom: var(--spacing-sm);
    padding-left: var(--spacing-sm);
    border-left: 3px solid var(--primary-purple);
}

/* 인과응보 플로우 */
.cause-effect {
    background: rgba(107, 70, 193, 0.1);
    border-radius: 20px;
    padding: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.flow-diagram {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-md);
    margin: var(--spacing-lg) 0;
    flex-wrap: wrap;
}

.flow-item {
    text-align: center;
}

.flow-circle {
    width: 100px;
    height: 100px;
    background: var(--gradient-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--darker-bg);
    box-shadow: var(--shadow-glow);
    margin-bottom: var(--spacing-sm);
}

.flow-arrow {
    font-size: 2rem;
    color: var(--primary-gold);
    font-weight: 700;
}

.flow-item p {
    color: var(--text-light);
    font-size: 1.2rem;
}

/* 경전 인용구 */
.sutra-quote {
    background: rgba(0, 0, 0, 0.3);
    border-left: 5px solid var(--primary-gold);
    padding: var(--spacing-md);
    margin: var(--spacing-lg) 0;
    font-size: 1.3rem;
    line-height: 2;
    color: var(--primary-gold);
    text-align: center;
    font-style: italic;
    border-radius: 10px;
}

.quote-source {
    display: block;
    margin-top: var(--spacing-md);
    font-size: 1rem;
    color: var(--text-light);
    opacity: 0.7;
}

.quote-translation {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.8;
    opacity: 0.9;
    margin-top: var(--spacing-sm);
}

/* ===========================
   영가천도 섹션
   =========================== */

.section-chondo {
    background: rgba(15, 15, 42, 0.5);
}

.chondo-meaning {
    margin-bottom: var(--spacing-xl);
}

.meaning-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.meaning-card {
    background: var(--gradient-card);
    border: 2px solid rgba(107, 70, 193, 0.3);
    border-radius: 20px;
    padding: var(--spacing-md);
    text-align: center;
    transition: all 0.3s ease;
}

.meaning-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-gold);
}

.meaning-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
}

.meaning-card h4 {
    font-size: 1.5rem;
    color: var(--primary-gold);
    margin-bottom: var(--spacing-sm);
}

.meaning-card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* 천도재 종류 */
.chondo-types {
    margin: var(--spacing-xl) 0;
}

.types-flex {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
    margin-top: var(--spacing-md);
}

.type-card {
    background: var(--gradient-card);
    border: 2px solid rgba(107, 70, 193, 0.3);
    border-radius: 20px;
    padding: var(--spacing-md);
    width: 350px;
    transition: all 0.3s ease;
}

.type-card:hover {
    transform: scale(1.05);
    border-color: var(--primary-gold);
}

.type-number {
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary-gold);
    text-align: center;
    text-shadow: var(--shadow-glow);
    margin-bottom: var(--spacing-sm);
}

.type-card h4 {
    font-size: 1.8rem;
    color: var(--text-light);
    text-align: center;
    margin-bottom: var(--spacing-xs);
}

.type-period {
    text-align: center;
    color: var(--primary-purple);
    font-size: 1.1rem;
    margin-bottom: var(--spacing-md);
}

.type-card p:not(.type-period) {
    color: var(--text-light);
    line-height: 1.8;
}

/* 천도재 절차 타임라인 */
.chondo-procedure {
    margin-top: var(--spacing-xl);
}

.procedure-timeline {
    position: relative;
    max-width: 800px;
    margin: var(--spacing-lg) auto;
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: var(--spacing-lg);
    position: relative;
}

.timeline-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 30px;
    top: 60px;
    width: 3px;
    height: calc(100% + var(--spacing-lg));
    background: linear-gradient(to bottom, var(--primary-gold), var(--primary-purple));
}

.timeline-dot {
    width: 60px;
    height: 60px;
    background: var(--gradient-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--darker-bg);
    box-shadow: var(--shadow-glow);
    flex-shrink: 0;
    z-index: 1;
}

.timeline-content {
    margin-left: var(--spacing-md);
    background: var(--gradient-card);
    border: 2px solid rgba(107, 70, 193, 0.3);
    border-radius: 15px;
    padding: var(--spacing-md);
    flex-grow: 1;
}

.timeline-content h4 {
    font-size: 1.5rem;
    color: var(--primary-gold);
    margin-bottom: var(--spacing-xs);
}

.timeline-content p {
    color: var(--text-light);
    line-height: 1.7;
}

/* ===========================
   상담 문의 섹션
   =========================== */

.section-contact {
    background: rgba(26, 26, 62, 0.5);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.contact-card {
    background: var(--gradient-card);
    border: 2px solid rgba(107, 70, 193, 0.3);
    border-radius: 20px;
    padding: var(--spacing-md);
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.contact-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-gold);
}

.contact-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
}

.contact-card h3 {
    font-size: 1.5rem;
    color: var(--primary-gold);
    margin-bottom: var(--spacing-sm);
}

.contact-value {
    font-size: 1.3rem;
    color: var(--text-light);
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

.contact-desc {
    color: var(--text-light);
    opacity: 0.7;
    font-size: 0.95rem;
}

.office-info {
    background: rgba(107, 70, 193, 0.1);
    border-radius: 20px;
    padding: var(--spacing-lg);
    text-align: center;
}

.office-slogan {
    font-size: 1.3rem;
    color: var(--primary-gold);
    font-style: italic;
    margin: var(--spacing-md) 0;
    line-height: 1.8;
}

.office-history {
    color: var(--text-light);
    opacity: 0.7;
    font-size: 0.95rem;
    margin-top: var(--spacing-md);
}

/* ===========================
   푸터
   =========================== */

.main-footer {
    background: rgba(15, 15, 42, 0.8);
    border-top: 2px solid var(--primary-gold);
    padding: var(--spacing-lg) var(--spacing-md);
    text-align: center;
}

.footer-mantra {
    font-size: 1.5rem;
    color: var(--primary-gold);
    margin-bottom: var(--spacing-sm);
}

.footer-copyright {
    color: var(--text-light);
    opacity: 0.7;
}

/* ===========================
   스크롤 탑 버튼
   =========================== */

.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--gradient-gold);
    border: none;
    border-radius: 50%;
    color: var(--darker-bg);
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: var(--shadow-glow);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top-btn:hover {
    transform: translateY(-5px);
    box-shadow: 
        var(--shadow-glow),
        0 10px 30px rgba(255, 215, 0, 0.5);
}

/* ===========================
   페이드인 애니메이션
   =========================== */

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===========================
   반응형 디자인
   =========================== */

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    .main-title {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-intro {
        font-size: 1rem;
    }
    
    /* 윤회 바퀴 모바일 최적화 */
    .samsara-wheel-container {
        width: 350px;
        height: 350px;
    }
    
    .wheel-center {
        width: 100px;
        height: 100px;
    }
    
    .center-symbol {
        font-size: 1.8rem;
    }
    
    .realm-circle {
        width: 90px;
        height: 90px;
        border-width: 2px;
    }
    
    .realm-label {
        font-size: 0.75rem;
    }
    
    .realm-heaven {
        top: -10px;
    }
    
    .realm-asura {
        top: 10%;
        right: 0;
    }
    
    .realm-human {
        bottom: 10%;
        right: 0;
    }
    
    .realm-animal {
        bottom: -10px;
    }
    
    .realm-hungry {
        bottom: 10%;
        left: 0;
    }
    
    .realm-hell {
        top: 10%;
        left: 0;
    }
    
    .realms-grid {
        grid-template-columns: 1fr;
    }
    
    .karma-grid {
        grid-template-columns: 1fr;
    }
    
    .meaning-grid {
        grid-template-columns: 1fr;
    }
    
    .types-flex {
        flex-direction: column;
        align-items: center;
    }
    
    .type-card {
        width: 100%;
        max-width: 350px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .flow-diagram {
        flex-direction: column;
    }
    
    .flow-arrow {
        transform: rotate(90deg);
    }
    
    .scroll-top-btn {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    .samsara-wheel-container {
        width: 300px;
        height: 300px;
    }
    
    .wheel-center {
        width: 80px;
        height: 80px;
    }
    
    .center-symbol {
        font-size: 1.5rem;
    }
    
    .realm-circle {
        width: 75px;
        height: 75px;
    }
}

/* ===========================
   알림 토스트
   =========================== */

.toast-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: var(--gradient-gold);
    color: var(--darker-bg);
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: 15px;
    box-shadow: var(--shadow-deep);
    font-size: 1.2rem;
    font-weight: 700;
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s ease;
}

.toast-notification.show {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

/* ===========================
   접근성 개선
   =========================== */

:focus-visible {
    outline: 3px solid var(--primary-gold);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===========================
   상담 분야 섹션
   =========================== */

.section-consulting {
    background: rgba(26, 26, 62, 0.3);
}

.consulting-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.consulting-card {
    background: var(--gradient-card);
    border: 2px solid rgba(107, 70, 193, 0.3);
    border-radius: 20px;
    padding: var(--spacing-md);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.consulting-card:hover {
    transform: translateY(-15px) scale(1.05);
    border-color: var(--primary-gold);
    box-shadow: 
        0 15px 40px rgba(255, 215, 0, 0.3),
        0 0 30px rgba(255, 215, 0, 0.2);
}

.consulting-icon {
    font-size: 3.5rem;
    margin-bottom: var(--spacing-sm);
    transition: transform 0.3s ease;
}

.consulting-card:hover .consulting-icon {
    transform: scale(1.2) rotate(5deg);
}

.consulting-card h3 {
    font-size: 1.5rem;
    color: var(--primary-gold);
    margin-bottom: var(--spacing-xs);
}

.consulting-card p {
    color: var(--text-light);
    line-height: 1.6;
    opacity: 0.9;
}

/* ===========================
   AI 챗봇 섹션
   =========================== */

.section-chatbot {
    background: rgba(15, 15, 42, 0.5);
}

.chatbot-container {
    max-width: 800px;
    margin: var(--spacing-lg) auto;
    background: var(--gradient-card);
    border: 2px solid rgba(107, 70, 193, 0.3);
    border-radius: 25px;
    overflow: hidden;
    box-shadow: var(--shadow-deep);
}

.chatbot-header {
    background: linear-gradient(135deg, #6B46C1 0%, #4a2f7a 100%);
    padding: var(--spacing-md);
    text-align: center;
    border-bottom: 2px solid var(--primary-gold);
}

.chatbot-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: var(--spacing-sm);
    font-size: 0.9rem;
    color: var(--text-light);
}

.status-dot {
    width: 12px;
    height: 12px;
    background: #4caf50;
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.2);
    }
}

.chatbot-header h3 {
    color: var(--primary-gold);
    font-size: 1.8rem;
    font-weight: 700;
}

.chatbot-messages {
    padding: var(--spacing-md);
    min-height: 400px;
    max-height: 500px;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.2);
}

.message {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    animation: fadeInUp 0.4s ease;
}

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

.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: var(--gradient-gold);
}

.user-message {
    flex-direction: row-reverse;
}

.user-message .message-avatar {
    background: linear-gradient(135deg, #4169E1 0%, #2c4b8a 100%);
}

.message-content {
    background: rgba(107, 70, 193, 0.2);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: 15px;
    max-width: 70%;
}

.user-message .message-content {
    background: rgba(65, 105, 225, 0.2);
}

.message-content p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.message-content p:last-child {
    margin-bottom: 0;
}

.chatbot-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
    padding: var(--spacing-md);
    background: rgba(0, 0, 0, 0.1);
}

.suggestion-btn {
    background: rgba(107, 70, 193, 0.3);
    border: 1px solid rgba(255, 215, 0, 0.3);
    color: var(--text-light);
    padding: 0.6rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.suggestion-btn:hover {
    background: rgba(255, 215, 0, 0.2);
    border-color: var(--primary-gold);
    color: var(--primary-gold);
    transform: translateY(-2px);
}

.chatbot-input-area {
    display: flex;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    background: rgba(0, 0, 0, 0.2);
}

.chatbot-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(107, 70, 193, 0.3);
    border-radius: 25px;
    padding: 0.8rem 1.5rem;
    color: var(--text-light);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.chatbot-input:focus {
    outline: none;
    border-color: var(--primary-gold);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.chatbot-input::placeholder {
    color: rgba(240, 240, 240, 0.5);
}

.chatbot-send-btn {
    width: 50px;
    height: 50px;
    background: var(--gradient-gold);
    border: none;
    border-radius: 50%;
    color: var(--darker-bg);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chatbot-send-btn:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.6);
}

.chatbot-footer {
    padding: var(--spacing-sm) var(--spacing-md);
    background: rgba(0, 0, 0, 0.3);
    text-align: center;
}

.chatbot-footer p {
    color: var(--text-light);
    opacity: 0.7;
    font-size: 0.85rem;
}

/* ===========================
   홈페이지 제작 지원
   =========================== */

.homepage-support {
    background: rgba(107, 70, 193, 0.1);
    border-radius: 15px;
    padding: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.homepage-support h4 {
    color: var(--primary-gold);
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
    text-align: center;
}

.homepage-support p {
    text-align: center;
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
}

.support-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-sm);
}

.support-list li {
    background: rgba(0, 0, 0, 0.2);
    padding: var(--spacing-sm);
    border-radius: 10px;
    border-left: 4px solid var(--primary-gold);
    color: var(--text-light);
}

/* ===========================
   모바일 반응형 추가
   =========================== */

@media (max-width: 992px) {
    .nav-menu {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .translate-widget {
        display: none;
    }
    
    .consulting-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .chatbot-messages {
        max-height: 400px;
    }
}

@media (max-width: 768px) {
    .consulting-grid {
        grid-template-columns: 1fr;
    }
    
    .message-content {
        max-width: 80%;
    }
    
    .chatbot-suggestions {
        flex-direction: column;
    }
    
    .suggestion-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0.8rem 1rem;
    }
    
    .logo span:first-child {
        font-size: 1rem !important;
    }
    
    .logo span:last-child {
        font-size: 0.65rem !important;
    }
    
    .chatbot-input {
        font-size: 0.9rem;
    }
}

/* ===========================
   6도 이미지 모달
   =========================== */

.realm-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.realm-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    background: rgba(26, 26, 62, 0.9);
    border: 3px solid var(--primary-gold);
    border-radius: 15px;
    padding: var(--spacing-md);
    animation: zoomIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 50px;
    height: 50px;
    background: var(--gradient-gold);
    border: none;
    border-radius: 50%;
    color: var(--darker-bg);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.8);
}

#modalImage {
    width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 10px;
    border: 2px solid rgba(255, 215, 0, 0.3);
}

.modal-caption {
    margin-top: var(--spacing-md);
    text-align: center;
}

.modal-caption h3 {
    font-size: 2rem;
    color: var(--primary-gold);
    margin-bottom: var(--spacing-sm);
}

.modal-caption p {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
}

/* ===========================
   공덕력 시스템
   =========================== */

.section-merit {
    background: rgba(26, 26, 62, 0.4);
}

.merit-sutra {
    background: rgba(107, 70, 193, 0.1);
    border-radius: 20px;
    padding: var(--spacing-lg);
    margin: var(--spacing-lg) 0;
}

.merit-calculator {
    background: var(--gradient-card);
    border: 2px solid rgba(107, 70, 193, 0.3);
    border-radius: 20px;
    padding: var(--spacing-lg);
    margin: var(--spacing-lg) 0;
}

.calculator-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.calculator-input {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.calculator-input label {
    color: var(--primary-gold);
    font-weight: 700;
    font-size: 1.1rem;
}

.calculator-input input,
.calculator-input select {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(107, 70, 193, 0.3);
    border-radius: 10px;
    padding: 0.8rem;
    color: var(--text-light);
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.calculator-input input:focus,
.calculator-input select:focus {
    outline: none;
    border-color: var(--primary-gold);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.calculate-btn {
    grid-column: 1 / -1;
    background: var(--gradient-gold);
    border: none;
    border-radius: 15px;
    padding: 1rem 2rem;
    color: var(--darker-bg);
    font-size: 1.3rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.calculate-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.6);
}

.merit-result {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    padding: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.merit-result h4 {
    color: var(--primary-gold);
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: var(--spacing-md);
}

.result-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.stat-item {
    background: rgba(107, 70, 193, 0.2);
    border-radius: 15px;
    padding: var(--spacing-md);
    text-align: center;
    border: 2px solid rgba(255, 215, 0, 0.3);
}

.stat-label {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: var(--spacing-xs);
    opacity: 0.9;
}

.stat-value {
    color: var(--primary-gold);
    font-size: 2.5rem;
    font-weight: 700;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
}

.merit-abilities {
    background: rgba(107, 70, 193, 0.1);
    border-radius: 15px;
    padding: var(--spacing-md);
}

.merit-abilities h5 {
    color: var(--primary-gold);
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
    text-align: center;
}

.merit-abilities ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-sm);
}

.merit-abilities li {
    background: rgba(0, 0, 0, 0.3);
    padding: var(--spacing-sm);
    border-radius: 10px;
    border-left: 4px solid var(--primary-gold);
    color: var(--text-light);
    font-size: 1.1rem;
}

/* 공덕 등급표 */
.merit-levels {
    margin: var(--spacing-xl) 0;
}

.levels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.level-card {
    background: var(--gradient-card);
    border: 2px solid rgba(107, 70, 193, 0.3);
    border-radius: 20px;
    padding: var(--spacing-md);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.level-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient-gold);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.level-card:hover::before {
    transform: scaleX(1);
}

.level-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-gold);
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.3);
}

.level-badge {
    display: inline-block;
    background: var(--gradient-gold);
    color: var(--darker-bg);
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

.level-card h4 {
    color: var(--primary-gold);
    font-size: 1.5rem;
    margin-bottom: var(--spacing-xs);
}

.level-desc {
    color: var(--text-light);
    opacity: 0.8;
    margin-bottom: var(--spacing-md);
}

.level-abilities {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.level-abilities li {
    background: rgba(0, 0, 0, 0.2);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: 8px;
    color: var(--text-light);
    border-left: 3px solid var(--primary-purple);
}

/* 수행 년차별 테이블 */
.merit-timeline {
    margin: var(--spacing-xl) 0;
}

.timeline-table {
    overflow-x: auto;
    border-radius: 15px;
    background: rgba(0, 0, 0, 0.2);
    padding: var(--spacing-sm);
}

.merit-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--gradient-card);
    border-radius: 15px;
    overflow: hidden;
}

.merit-table thead {
    background: linear-gradient(135deg, #6B46C1 0%, #4a2f7a 100%);
}

.merit-table th {
    color: var(--primary-gold);
    padding: var(--spacing-md);
    text-align: center;
    font-size: 1.1rem;
    border-bottom: 2px solid var(--primary-gold);
}

.merit-table td {
    color: var(--text-light);
    padding: var(--spacing-md);
    text-align: center;
    border-bottom: 1px solid rgba(107, 70, 193, 0.2);
}

.merit-table tbody tr:hover {
    background: rgba(255, 215, 0, 0.1);
}

.merit-table tbody tr:last-child td {
    border-bottom: none;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .calculator-grid {
        grid-template-columns: 1fr;
    }
    
    .result-stats {
        grid-template-columns: 1fr;
    }
    
    .levels-grid {
        grid-template-columns: 1fr;
    }
    
    .merit-abilities ul {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        max-width: 95%;
        padding: var(--spacing-sm);
    }
    
    .modal-caption h3 {
        font-size: 1.5rem;
    }
    
    .modal-caption p {
        font-size: 0.95rem;
    }
}

/* ===========================
   천도 한자 의미
   =========================== */

.chondo-hanja {
    background: rgba(107, 70, 193, 0.1);
    border-radius: 20px;
    padding: var(--spacing-lg);
    margin: var(--spacing-lg) 0;
}

.hanja-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin: var(--spacing-md) 0;
}

.hanja-card {
    background: var(--gradient-card);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 15px;
    padding: var(--spacing-md);
    text-align: center;
}

.hanja-char {
    font-size: 5rem;
    color: var(--primary-gold);
    font-weight: 700;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.6);
    margin-bottom: var(--spacing-sm);
}

.hanja-reading {
    font-size: 1.8rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
}

.hanja-meaning {
    text-align: left;
    color: var(--text-light);
    line-height: 1.8;
}

.hanja-meaning p {
    margin-bottom: var(--spacing-xs);
}

.chondo-etymology {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    padding: var(--spacing-lg);
    margin-top: var(--spacing-md);
}

.chondo-etymology h4 {
    color: var(--primary-gold);
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: var(--spacing-md);
}

.etymology-text {
    color: var(--text-light);
    line-height: 2;
    font-size: 1.1rem;
}

.highlight-gold {
    color: var(--primary-gold);
    font-weight: 700;
}

/* 천도 경전 섹션 */
.chondo-scripture {
    margin: var(--spacing-xl) 0;
}

.scripture-section {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.scripture-section h4 {
    color: var(--primary-gold);
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
}

.chondo-meaning-summary {
    background: rgba(107, 70, 193, 0.1);
    border-radius: 20px;
    padding: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.chondo-meaning-summary h4 {
    color: var(--primary-gold);
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.meaning-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
}

.summary-card {
    background: var(--gradient-card);
    border: 2px solid rgba(107, 70, 193, 0.3);
    border-radius: 15px;
    padding: var(--spacing-md);
    text-align: center;
    transition: all 0.3s ease;
}

.summary-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-gold);
}

.summary-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
}

.summary-card h5 {
    color: var(--primary-gold);
    font-size: 1.3rem;
    margin-bottom: var(--spacing-sm);
}

.summary-card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* ===========================
   고승 공덕 수치
   =========================== */

.masters-merit {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    padding: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.masters-intro {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: var(--spacing-lg);
    text-align: center;
}

.masters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-md);
}

.master-card {
    background: var(--gradient-card);
    border: 3px solid rgba(255, 215, 0, 0.5);
    border-radius: 20px;
    padding: var(--spacing-lg);
    transition: all 0.4s ease;
}

.master-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-gold);
    box-shadow: 0 20px 50px rgba(255, 215, 0, 0.4);
}

.master-portrait {
    font-size: 4rem;
    text-align: center;
    margin-bottom: var(--spacing-sm);
}

.master-card h5 {
    color: var(--primary-gold);
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: var(--spacing-md);
}

.master-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    background: rgba(0, 0, 0, 0.3);
    padding: var(--spacing-md);
    border-radius: 10px;
}

.master-stats .stat {
    color: var(--text-light);
    font-size: 0.95rem;
}

.merit-value {
    color: var(--primary-gold);
    font-size: 1.3rem;
}

.merit-level {
    color: #FFD700;
    font-size: 1.2rem;
}

.master-reason {
    background: rgba(107, 70, 193, 0.1);
    border-radius: 10px;
    padding: var(--spacing-md);
}

.master-reason strong {
    color: var(--primary-gold);
    display: block;
    margin-bottom: var(--spacing-sm);
}

.master-reason ul {
    list-style: none;
    margin: var(--spacing-sm) 0;
}

.master-reason li {
    color: var(--text-light);
    padding: var(--spacing-xs) 0;
    line-height: 1.7;
}

.reason-desc {
    color: var(--text-light);
    line-height: 1.8;
    margin-top: var(--spacing-sm);
    padding-top: var(--spacing-sm);
    border-top: 1px solid rgba(255, 215, 0, 0.2);
}

.masters-conclusion {
    background: rgba(255, 215, 0, 0.1);
    border-radius: 15px;
    padding: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.masters-conclusion h5 {
    color: var(--primary-gold);
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: var(--spacing-md);
}

.conclusion-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
}

.conclusion-item {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: var(--spacing-md);
    border-left: 4px solid var(--primary-gold);
}

.conclusion-item strong {
    color: var(--primary-gold);
    display: block;
    margin-bottom: var(--spacing-xs);
    font-size: 1.1rem;
}

.conclusion-item p {
    color: var(--text-light);
    line-height: 1.7;
}