/* ======================================
   Modern White Theme - Clean Design
   ====================================== */

/* CSS Variables */
:root {
    /* White Background Colors */
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --bg-gray: #e9ecef;

    /* Primary Colors */
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #5dade2;

    /* Text Colors */
    --text-primary: #2c3e50;
    --text-secondary: #6c757d;
    --text-light: #adb5bd;

    /* Border & Shadow */
    --border-color: #dee2e6;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.15);

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
}

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

body {
    font-family: 'Playfair Display', 'Noto Serif KR', 'Nanum Myeongjo', serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-white);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
}

/* ======================================
   Header with Hamburger Menu
   ====================================== */
body > header {
    background: transparent;
    border-bottom: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: none;
}

.header-container {
    padding: 1rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.logo img {
    height: 50px;
    object-fit: contain;
}

/* PC 화면에서 로고 더 크게 */
@media (min-width: 769px) {
    .header-container {
        padding: 1.5rem 2rem;
    }

    .logo img {
        height: 70px;
    }

    /* PC 네비게이션 표시 */
    nav {
        display: flex;
        gap: 0.5rem;
        align-items: center;
    }

    nav a {
        color: #ffffff;
        text-decoration: none;
        font-size: 1.1rem;
        font-weight: 600;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
        transition: color 0.3s ease;
    }

    nav a:hover {
        color: #e0e0e0;
    }

    /* 햄버거 메뉴 숨김 */
    .hamburger {
        display: none;
    }
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    background: transparent;
    border: none;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: #ffffff;
    border-radius: 3px;
    transition: all 0.3s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

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

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

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

/* Desktop Navigation - Hidden by default */
nav {
    display: none;
}

/* Mobile Sidebar Menu */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.sidebar-overlay.active {
    display: block;
}

.sidebar {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100%;
    background: var(--bg-white);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: right 0.3s ease;
    overflow-y: auto;
    padding: 5rem 0 2rem;
}

.sidebar.active {
    right: 0;
}

.sidebar-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    padding: 1rem 1.5rem;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 1rem;
}

.sidebar a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.sidebar a:hover {
    background: var(--bg-light);
    border-left-color: var(--secondary-color);
    color: var(--primary-color);
}

.sidebar a .emoji {
    font-size: 1.5rem;
}

/* ======================================
   Main Banner Slider (Full Width)
   ====================================== */
.banner-section {
    width: 100%;
    background: var(--bg-light);
    padding: 0;
    margin: 0;
}

.swiper-container {
    width: 100%;
    overflow: hidden;
    background: var(--bg-white);
    position: relative;
}

.swiper-slide {
    aspect-ratio: 4 / 3;  /* 모바일 기본값 */
    position: relative;
    overflow: hidden;
}

/* PC에서는 21:9 */
@media (min-width: 768px) {
    .swiper-slide {
        aspect-ratio: 21 / 9;
    }
}

.swiper-slide picture {
    width: 100%;
    height: 100%;
    display: block;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slide-content {
    position: absolute;
    bottom: 40px;
    left: 60px;
    text-align: left;
    color: white;
    text-shadow: 2px 2px 12px rgba(0,0,0,0.8);
    max-width: 500px;
}

.slide-content h2 {
    font-size: 1.5rem;  /* 모바일 기본값 */
    font-weight: 700;
    margin-bottom: 0.4rem;
    font-family: 'Nanum Myeongjo', serif;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.slide-content p {
    font-size: 0.9rem;  /* 모바일 기본값 */
    font-family: 'Noto Serif KR', serif;
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

.slide-content .banner-btn {
    display: inline-block;
    margin-top: 0.8rem;  /* 모바일 기본값 */
    padding: 8px 18px;  /* 모바일 기본값 */
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;  /* 모바일 기본값 */
    font-family: 'Noto Serif KR', serif;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.slide-content .banner-btn:hover {
    background: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.swiper-pagination {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    width: auto;
}

.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
    margin: 0 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.swiper-pagination-bullet:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.swiper-pagination-bullet-active {
    background: #ffffff !important;
    transform: scale(1.3);
}

/* ======================================
   Main Content
   ====================================== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Services Section */
.services-section {
    padding: 4rem 0;
}

.services-section .container {
    max-width: 2000px;
    width: 95%;
}

.section-title {
    text-align: left;
    font-size: 1.625rem;  /* 모바일: 1.5rem + 0.125rem (2px) */
    font-weight: 700;
    color: #2c3e50;  /* 신년운세 페이지와 동일한 색상 */
    margin-bottom: 2rem;
}

/* PC에서 제목 크기 복원 */
@media (min-width: 768px) {
    .section-title {
        font-size: 2.125rem;  /* PC: 2rem + 0.125rem (2px) */
        margin-bottom: 3rem;
    }
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: 100%;  /* 모바일에서 전체 너비 사용 */
    margin: 0 auto;
}

.service-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

/* 모바일에서 5번째 서브배너 숨김 */
.service-card-5 {
    display: none;
}

/* PC에서 5번째 서브배너 표시 */
@media (min-width: 1024px) {
    .service-card-5 {
        display: flex;
    }
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary-color);
}

.service-image {
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    position: relative;
}

.service-image img,
.service-image video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-placeholder {
    width: 100%;
    height: 100%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-emoji {
    font-size: 4rem;
    display: block;
}

.service-content {
    padding: 1.5rem;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-title {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    font-size: 1.1rem;  /* 모바일 기본값 */
    font-weight: 700;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.7);
    padding: 0.6rem 0.8rem;
    margin: 0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.service-subtitle {
    font-size: 0.95rem;  /* 모바일 기본값 */
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    word-break: keep-all;
    overflow-wrap: break-word;
    line-height: 1.3;
}

.service-description {
    font-size: 0.8rem;  /* 모바일 기본값 */
    color: var(--text-secondary);
    line-height: 1.4;
}

/* PC에서 서브배너 글자 크기 증가 */
@media (min-width: 768px) {
    .services-grid {
        max-width: 2000px;
        gap: 1.5rem;
    }

    .service-title {
        font-size: 1.6rem;
        padding: 0.8rem 1rem;
    }

    .service-subtitle {
        font-size: 1.4rem;
    }

    .service-description {
        font-size: 1.1rem;
    }
}

/* Zodiac & Dream Preview Sections */
.zodiac-preview-section,
.dream-preview-section {
    padding: 3rem 0;
    background: var(--bg-white);
}

.dream-preview-section {
    background: var(--bg-light);
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-top: 0.5rem;
}

.preview-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: 1000px;
    margin: 0 auto 2rem;
}

.preview-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.preview-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    z-index: 0;
}

.preview-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--secondary-color);
}

.preview-icon {
    display: none;
}

.preview-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    color: var(--text-primary);
    position: relative;
    z-index: 1;
}

.preview-card p {
    font-size: 0.85rem;
    color: #555;
    margin: 0;
    position: relative;
    z-index: 1;
}

.section-footer {
    text-align: center;
}

.view-all-btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: var(--secondary-color);
    color: white;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.view-all-btn:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* 띠별 배경 이미지 (zodiac-preview-section용) */
.zodiac-preview-section .preview-card[href*="쥐띠"] { background-image: url('/static/images/zodiac/쥐띠.webp'); }
.zodiac-preview-section .preview-card[href*="소띠"] { background-image: url('/static/images/zodiac/소띠.webp'); }
.zodiac-preview-section .preview-card[href*="범띠"] { background-image: url('/static/images/zodiac/범띠.webp'); }
.zodiac-preview-section .preview-card[href*="토끼띠"] { background-image: url('/static/images/zodiac/토끼띠.webp'); }
.zodiac-preview-section .preview-card[href*="용띠"] { background-image: url('/static/images/zodiac/용띠.webp'); }
.zodiac-preview-section .preview-card[href*="뱀띠"] { background-image: url('/static/images/zodiac/뱀띠.webp'); }
.zodiac-preview-section .preview-card[href*="말띠"] { background-image: url('/static/images/zodiac/말띠.webp'); }
.zodiac-preview-section .preview-card[href*="양띠"] { background-image: url('/static/images/zodiac/양띠.webp'); }
.zodiac-preview-section .preview-card[href*="원숭이띠"] { background-image: url('/static/images/zodiac/원숭이띠.webp'); }
.zodiac-preview-section .preview-card[href*="닭띠"] { background-image: url('/static/images/zodiac/닭띠.webp'); }
.zodiac-preview-section .preview-card[href*="개띠"] { background-image: url('/static/images/zodiac/개띠.webp'); }
.zodiac-preview-section .preview-card[href*="돼지띠"] { background-image: url('/static/images/zodiac/돼지띠.webp'); }

/* PC: 가로 배치 */
@media (min-width: 768px) {
    .preview-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

    .preview-card {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1.5rem;
    }

    .preview-icon {
        font-size: 3.5rem;
    }

    .preview-card h3 {
        font-size: 1.4rem;
    }

    .preview-card p {
        font-size: 0.9rem;
    }
}

/* Quick Fortune Section */
.quick-fortune-section {
    background: var(--bg-light);
    padding: 4rem 0;
}

.quick-fortune-form {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #333333;
    margin-bottom: 8px;
    font-size: 18px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    background: #ffffff;
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    font-size: 16px;
    color: #333333;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23333' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

.btn-primary {
    width: 100%;
    padding: 16px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 8px;
}

.btn-primary:hover {
    background: #8e44ad;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(142, 68, 173, 0.3);
}

/* ======================================
   Footer
   ====================================== */
/* ======================================
   Footer Styles
   ====================================== */
.site-footer {
    background: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 100%);
    border-top: 2px solid #dee2e6;
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
    color: var(--text-secondary);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-content-simple {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.footer-content-split {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6rem;
}

.footer-left {
    flex: 0 0 auto;
    text-align: center;
}

.footer-left h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.footer-right {
    flex: 0 0 auto;
    text-align: center;
    padding-top: 1.5rem;
}

.footer-right .footer-links {
    text-align: center;
}

.footer-bottom-center {
    text-align: center;
    margin-top: 1.5rem;
}

.footer-section h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-section h4 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.footer-section-center {
    margin-bottom: 2rem;
}

.footer-section-center h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.footer-section-center h4 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    margin-top: 1.5rem;
    font-weight: 600;
}

.footer-section-center .footer-links {
    display: inline-block;
    text-align: center;
    margin: 1.5rem 0;
}

.footer-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 1rem 0;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.footer-divider {
    max-width: 1200px;
    margin: 2rem auto 1.5rem;
    height: 1px;
    background: var(--border-color);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.disclaimer {
    font-size: 0.85rem;
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
}

.copyright {
    font-size: 0.85rem;
    color: #adb5bd;
    margin-top: 1.5rem;
}

/* Old footer style for backwards compatibility */
footer:not(.site-footer) {
    background: var(--bg-light);
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    margin-top: 4rem;
    text-align: center;
    color: var(--text-secondary);
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-section {
        text-align: center;
    }

    .site-footer {
        padding: 2rem 0 1rem;
    }

    /* 모바일에서는 2단 레이아웃을 세로로 */
    .footer-content-split {
        flex-direction: column;
        gap: 2rem;
    }

    .footer-left,
    .footer-right {
        text-align: center;
    }

    .footer-right .footer-links {
        text-align: center;
    }
}

/* ======================================
   Scroll to Top Button
   ====================================== */
#scrollToTop:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.95);
}

#scrollToTop:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

/* ======================================
   Responsive Design
   ====================================== */
/* Mobile-specific adjustments */
@media (max-width: 767px) {
    .slide-content {
        bottom: 30px;
        left: 20px;
        right: 20px;
        max-width: calc(100% - 40px);
    }

    .slide-content p[style*="font-size: 1.05rem"] {
        font-size: 0.8rem !important;
        line-height: 1.3;
    }

    .swiper-pagination {
        bottom: 10px;
    }

    .swiper-pagination-bullet {
        width: 8px;
        height: 8px;
        margin: 0 4px;
    }
}

@media (min-width: 768px) {
    .hamburger {
        display: none;
    }

    nav {
        display: flex;
        gap: 2rem;
    }

    nav a {
        color: var(--text-secondary);
        text-decoration: none;
        font-weight: 500;
        padding: 0.5rem 0;
        border-bottom: 2px solid transparent;
        transition: all 0.3s;
    }

    nav a:hover {
        color: var(--primary-color);
        border-bottom-color: var(--secondary-color);
    }

    .sidebar {
        display: none;
    }

    .sidebar-overlay {
        display: none !important;
    }

    .slide-content h2 {
        font-size: 4rem;
    }

    .slide-content p {
        font-size: 1.8rem;
    }

    .slide-content .banner-btn {
        padding: 16px 40px;
        font-size: 1.3rem;
        margin-top: 2rem;
    }

    .swiper-pagination {
        bottom: 20px;
    }

    .swiper-pagination-bullet {
        width: 12px;
        height: 12px;
        margin: 0 6px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* ======================================
   Mobile Bottom Ad (Sticky Footer Ad)
   ====================================== */
.mobile-bottom-ad {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 999;
    padding: 8px;
    transition: transform 0.3s ease;
}

.mobile-bottom-ad.hidden {
    transform: translateY(100%);
}

.ad-close-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.ad-close-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* 모바일에서만 표시 */
@media (max-width: 768px) {
    .mobile-bottom-ad {
        display: block;
    }

    /* 하단 광고로 인해 콘텐츠가 가려지지 않도록 body에 padding 추가 */
    body {
        padding-bottom: 100px;
    }
}

/* ======================================
   Utility Classes
   ====================================== */
.text-center {
    text-align: center;
}

.mb-4 {
    margin-bottom: 2rem;
}

/* ======================================
   Result Actions Buttons (Global)
   ====================================== */
.actions {
    text-align: center;
    margin: 40px auto;
    max-width: 1100px;
    padding: 0 20px;
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.actions .btn {
    padding: 0;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    line-height: 54px;
    transition: all 0.3s;
    display: inline-block;
    text-align: center;
    width: 160px;
    height: 54px;
    box-sizing: border-box;
    vertical-align: top;
    margin: 0;
}

.actions .btn-primary {
    background: #667eea;
    color: white;
    border: none;
}

.actions .btn-primary:hover {
    background: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.actions .btn-secondary {
    background: #34495e;
    color: white;
    border: none;
}

.actions .btn-secondary:hover {
    background: #2c3e50;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(44, 62, 80, 0.4);
}

@media (max-width: 768px) {
    .actions .btn {
        width: 160px;
        min-width: 160px;
    }
}

/* ======================================
   Breadcrumb Navigation (내부 링크 SEO)
   ====================================== */
.breadcrumb {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    font-size: 14px;
    color: var(--text-secondary);
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-item a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb-item a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: var(--text-primary);
    font-weight: 500;
}

.breadcrumb-separator {
    margin: 0 8px;
    color: var(--text-light);
}

@media (max-width: 768px) {
    .breadcrumb {
        font-size: 13px;
        margin: 15px auto;
    }
}

/* ======================================
   Related Services Links (관련 서비스 내부 링크)
   ====================================== */
.related-services {
    max-width: 1200px;
    margin: 60px auto;
    padding: 40px 20px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
}

.related-services h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--text-primary);
    text-align: center;
}

.related-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.related-service-card {
    background: white;
    padding: 20px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
    text-decoration: none;
    color: var(--text-primary);
}

.related-service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.related-service-card .icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.related-service-card h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.related-service-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

@media (max-width: 768px) {
    .related-services {
        margin: 40px auto;
        padding: 30px 15px;
    }

    .related-services-grid {
        grid-template-columns: 1fr;
    }
}


