/* 공통 스타일 - 모든 페이지에서 사용되는 기본 스타일 */

/* 변수 정의 */
:root {
    --primary: #FCB913;
    --secondary: #FCB913;
    --dark: #333333;
    --light: #F8F9FA;
    --accent: #FF0848;
    --gray: #6c757d;
    --light-gray: #FAFBFC;
}

/* 기본 요소 스타일 */
body {
    font-family: 'Noto Sans KR', sans-serif;
    color: var(--dark);
    overflow-x: hidden;
    position: relative;
}

/* 색상 클래스 */
.bg-primary { background-color: var(--primary) !important; }
.bg-secondary { background-color: var(--secondary) !important; }
.text-primary { color: var(--primary) !important; }
.text-secondary { color: var(--secondary) !important; }

/* 버튼 스타일 */
.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: #e9aa11;
    border-color: #e9aa11;
}

.btn-outline-primary {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-outline-primary:hover {
    background-color: var(--primary);
    color: white;
}

/* 헤더 네비게이션 */
.navbar {
    padding: 15px 0;
    transition: all 0.3s ease;
}

.navbar-brand img {
    height: 40px;
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    color: var(--dark);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary);
}

/* 푸터 */
footer {
    background-color: var(--primary);
    color: white;
    padding: 60px 0 30px;
}

.footer-logo {
    max-height: 60px;
    margin-bottom: 20px;
}

/* 공통 CTA 섹션 */
.cta-section {
    background-color: var(--secondary);
    color: white;
    padding: 60px 0;
}

/* 애니메이션 효과 */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.show {
    opacity: 1;
    transform: translateY(0);
}

/* 고정 CTA 버튼 */
.fixed-cta {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.cta-bubble {
    background-color: var(--primary);
    color: white;
    border-radius: 50px;
    padding: 15px 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    display: inline-block;
}

.cta-bubble:hover {
    transform: scale(1.05);
    text-decoration: none;
    color: white;
}

/* 유틸리티 클래스 */
.highlight-box {
    background-color: var(--primary);
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    display: inline-block;
}

.section-divider {
    height: 2px;
    background-color: var(--primary);
    width: 80px;
    margin: 30px 0;
}

/* 기본 반응형 조정 */
@media (max-width: 768px) {
    .display-4 {
        font-size: 2rem;
    }

    .h2, h2 {
        font-size: 1.75rem;
    }
}

/* 모바일 풋터 스타일 */
.mobile-footer {
    background-color: var(--primary);
    color: #fff;
    padding: 2.5rem 0 4rem;
    font-family: 'Noto Sans KR', sans-serif;
}

.mobile-footer .container {
    padding: 0 1.5rem;
}

/* 로고 및 브랜드 설명 */
.footer-brand {
    margin-bottom: 2rem;
    text-align: center;
}

.footer-logo {
    height: 40px;
    margin-bottom: 0.75rem;
}

.brand-desc {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 1rem;
}

/* 소셜 미디어 아이콘 */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
}

.social-icons a {
    color: #fff;
    font-size: 1.2rem;
    transition: opacity 0.2s;
}

.social-icons a:hover {
    opacity: 0.7;
}

/* 링크 섹션 스타일링 */
.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.footer-section {
    width: calc(50% - 1rem);
    margin-bottom: 1.5rem;
}

.footer-section h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-section h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 2rem;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.4);
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 0.95rem;
    opacity: 0.9;
    transition: opacity 0.2s;
}

.footer-section ul li a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* 연락처 정보 스타일링 */
.contact-info {
    margin-bottom: 2rem;
}

.contact-info h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.contact-info h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 2rem;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.4);
}

.contact-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-info ul li {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.contact-info ul li i {
    width: 20px;
    margin-right: 0.5rem;
    opacity: 0.9;
}

.contact-info ul li a {
    color: #fff;
    text-decoration: none;
}

/* 하단 저작권 및 법적 링크 */
.footer-bottom {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    opacity: 0.8;
}

.legal-links {
    display: flex;
    gap: 1.5rem;
}

.legal-links a {
    color: #fff;
    font-size: 0.85rem;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.legal-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* 고정 상담 버튼 */
.floating-cta {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 100;
}

.cta-button {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    color: var(--primary);
    font-weight: 700;
    padding: 0.75rem 1.25rem;
    border-radius: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.cta-button i {
    margin-right: 0.5rem;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* 태블릿 이상 디바이스 반응형 */
@media (min-width: 768px) {
    .footer-brand {
        text-align: left;
    }

    .social-icons {
        justify-content: flex-start;
    }

    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }

    .footer-bottom p {
        margin-bottom: 0;
    }
}