/* 텍스트 디자인 스타일 */
.main-ad__text-design {
    position: relative;
    padding: 30px 0 0;
    overflow: hidden;
}

.text-design-container {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-design-main {
    font-size: clamp(1.8rem, 4vw, 2.0rem);
    font-family: var(--font-primary);
    color: #000;
    margin-bottom: 15px;
    position: relative;
    display: block;
    font-weight: 500;
    line-height: 1.4;
}

.text-design-highlight {
    background: #ffd700;
    color: #333333;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 700;
    display: inline-block;
    margin: 0 4px;
}

/* 추가 보조메뉴 스타일 */
.sub-text-design-container {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    margin-top: 20px;
}

.sub-text-design {
    font-size: clamp(1rem, 2.2vw, 1.3rem);
    font-family: var(--font-primary);
    color: #666666;
    margin-bottom: 0;
    font-weight: 400;
    line-height: 1.6;
    position: relative;
    display: block;
}

.sub-text-highlight {
    background: linear-gradient(135deg, #00b6e4, #00688f);
    color: #ffffff;
    padding: 3px 10px;
    border-radius: 6px;
    font-weight: 600;
    display: inline-block;
    margin: 0 3px;
    box-shadow: 0 2px 8px rgba(0, 182, 228, 0.3);
}

.text-design-sub {
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    font-family: var(--font-primary);
    color: #ffffff;
    margin-bottom: 0;
    font-weight: 400;
    line-height: 1.5;
}

/* 애니메이션 효과 */
.text-design-main {
    animation: fadeInUp 1s ease-out;
}

.text-design-sub {
    animation: fadeInUp 1s ease-out 0.2s both;
}

.sub-text-design {
    animation: fadeInUp 1s ease-out 0.4s both;
}

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

/* 호버 효과 */
.text-design-highlight:hover {
    background: #ffed4e;
    transform: scale(1.05);
    transition: all 0.3s ease;
}

.sub-text-highlight:hover {
    background: linear-gradient(135deg, #00688f, #00b6e4);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 182, 228, 0.4);
    transition: all 0.3s ease;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .main-ad__text-design {
        padding: 40px 0;
    }
    
    .text-design-container {
        padding: 0 15px;
    }
    
    .sub-text-design-container {
        padding: 0 15px;
        margin-top: 15px;
    }
    
    .text-design-main::after {
        width: 60px;
        height: 3px;
    }
}

@media (max-width: 480px) {
    .main-ad__text-design {
        padding: 30px 0;
    }
    
    .text-design-main {
        font-size: 2.5rem;
    }
    
    .text-design-sub {
        font-size: 1.1rem;
    }
    
    .text-design-description {
        font-size: 0.9rem;
    }
    
    .sub-text-design-container {
        padding: 0 10px;
        margin-top: 10px;
    }
    
    .sub-text-design {
        font-size: 1rem;
    }
}

/* 고대비 모드 지원 */
@media (prefers-contrast: high) {
    .text-design-main,
    .text-design-sub {
        color: #ffffff;
    }
    
    .text-design-highlight {
        background: #ffff00;
        color: #000000;
    }
    
    .sub-text-design {
        color: #ffffff;
    }
    
    .sub-text-highlight {
        background: #00b6e4;
        color: #ffffff;
        border: 2px solid #ffffff;
    }
}
