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

/* System font stack for zero CLS - no external font loading */

:root {
    --primary: #6B4E9B;
    --primary-light: #8B6EBB;
    --primary-dark: #4B2E7B;
    --secondary: #E8E0F0;
    --accent: #FF6B6B;
    --accent-light: #FF8E8E;
    --text: #2D2D2D;
    --text-muted: #666666;
    --text-light: #999999;
    --bg: #F8F6FC;
    --bg-white: #FFFFFF;
    --border: #E0D8E8;
    --success: #4CAF50;
    --warning: #FFC107;
    --gradient-primary: linear-gradient(135deg, #6B4E9B 0%, #9B6EDB 100%);
    --gradient-accent: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
    --shadow: 0 4px 20px rgba(107, 78, 155, 0.15);
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.08);
    --radius: 16px;
    --radius-sm: 8px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Navigation */
.main-nav {
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--primary);
}

.logo-icon {
    font-size: 1.8rem;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: 0.3s;
}

.nav-menu {
    display: flex;
    gap: 5px;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: block;
    padding: 10px 16px;
    font-weight: 500;
    color: var(--text);
    border-radius: var(--radius-sm);
    transition: all 0.3s;
}

.nav-link:hover {
    background: var(--secondary);
    color: var(--primary);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-white);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    min-width: 160px;
    display: none;
    z-index: 100;
}

.nav-item:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li a {
    display: block;
    padding: 12px 20px;
    color: var(--text);
    transition: all 0.3s;
    font-size: 0.9rem;
    white-space: nowrap;
    text-align: left;
    word-break: keep-all;
}

.dropdown-menu li a:hover {
    background: var(--secondary);
    color: var(--primary);
}

.dropdown-menu li:first-child a {
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.dropdown-menu li:last-child a {
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 70px - 300px);
}

.home-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero {
    background: var(--gradient-primary);
    border-radius: var(--radius);
    margin: 30px 0;
    padding: 60px 40px;
    text-align: center;
    color: white;
}

.hero h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 30px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--bg-white);
    color: var(--primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary);
}

/* Section Title */
.section-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 25px;
    text-align: center;
}

/* Quick Access Cards */
.quick-access {
    margin: 50px 0;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.feature-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 30px 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Categories Section */
.categories {
    margin: 50px 0;
}

.category-section {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}

.category-icon {
    font-size: 1.8rem;
}

.category-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text);
}

.category-items {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 18px 12px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    transition: all 0.3s;
    text-align: center;
    min-height: 100px;
    position: relative;
}

.category-item:hover {
    background: var(--secondary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}

.item-icon {
    font-size: 1.8rem;
}

.item-title {
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.3;
    word-break: keep-all;
}

.item-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.2;
}

.item-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 8px;
    background: var(--primary);
    color: white;
    font-weight: 500;
}

.item-badge.hot {
    background: var(--accent);
}

/* Today's Preview */
.today-preview {
    margin: 50px 0;
    padding: 40px;
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.zodiac-animal-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.animal-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 15px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    transition: all 0.3s;
    cursor: pointer;
}

.animal-card:hover {
    background: var(--secondary);
    transform: scale(1.05);
}

.animal-emoji {
    font-size: 2.5rem;
    margin-bottom: 8px;
}

.animal-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
}

.preview-cta {
    text-align: center;
}

/* Footer */
.footer {
    background: linear-gradient(180deg, #2D2D2D 0%, #1A1A1A 100%);
    color: #ccc;
    padding: 50px 20px 30px;
    margin-top: 60px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}

.footer-section h3 {
    color: var(--primary-light);
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.footer-section h4 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 15px;
}

.footer-section p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: #999;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #999;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    max-width: 1200px;
    margin: 40px auto 0;
    padding-top: 25px;
    border-top: 1px solid #444;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: #666;
}

/* Page Container */
.page-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px 20px;
}

.page-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.page-header p {
    color: var(--text-muted);
}

/* Card Styles */
.card {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.card h2 {
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--secondary);
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.submit-btn {
    width: 100%;
    padding: 16px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Radio Group */
.radio-group {
    display: flex;
    gap: 15px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 10px 20px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    transition: all 0.3s;
}

.radio-label:has(input:checked) {
    border-color: var(--primary);
    background: var(--secondary);
}

.radio-label input {
    display: none;
}

/* Loading */
.loading {
    display: none;
    text-align: center;
    padding: 60px;
}

.loading.active {
    display: block;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

/* Result Section */
.result-section {
    display: none;
}

.result-section.active {
    display: block;
}

/* Responsive */
@media (max-width: 992px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .zodiac-animal-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

    .category-items {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--bg-white);
        flex-direction: column;
        padding: 20px;
        gap: 0;
        box-shadow: var(--shadow);
        display: none;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-item {
        border-bottom: 1px solid var(--border);
    }

    .nav-link {
        padding: 15px;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        display: none;
        padding-left: 20px;
        background: var(--bg);
    }

    .dropdown-menu li a {
        padding: 12px 15px;
        font-size: 0.9rem;
        border-radius: 0;
    }

    .nav-item.active .dropdown-menu {
        display: block;
    }

    .nav-link {
        text-align: left;
        word-break: keep-all;
    }

    .hero {
        padding: 40px 25px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .zodiac-animal-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .category-items {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .category-item {
        min-height: 90px;
        padding: 15px 10px;
    }

    .item-icon {
        font-size: 1.5rem;
    }

    .item-title {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.6rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

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

    .section-title {
        font-size: 1.3rem;
    }

    .category-items {
        gap: 8px;
    }

    .category-item {
        min-height: 80px;
        padding: 12px 8px;
    }

    .item-icon {
        font-size: 1.3rem;
    }

    .item-title {
        font-size: 0.8rem;
    }

    .item-badge {
        font-size: 0.55rem;
        padding: 2px 4px;
        top: 5px;
        right: 5px;
    }

    .item-desc {
        display: none;
    }
}

/* Global Language Selector */
.global-lang-selector {
    position: fixed;
    top: 15px;
    right: 20px;
    display: flex;
    gap: 8px;
    z-index: 1100;
    background: var(--bg-white);
    padding: 8px 12px;
    border-radius: 30px;
    box-shadow: var(--shadow-sm);
}

.global-lang-selector .lang-btn {
    background: transparent;
    border: 2px solid transparent;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 50%;
    transition: all 0.3s;
    opacity: 0.6;
}

.global-lang-selector .lang-btn:hover {
    opacity: 1;
    transform: scale(1.1);
}

.global-lang-selector .lang-btn.active {
    opacity: 1;
    border-color: var(--primary);
    background: var(--secondary);
}

@media (max-width: 768px) {
    .global-lang-selector {
        top: auto;
        bottom: 20px;
        right: 15px;
        padding: 6px 10px;
    }

    .global-lang-selector .lang-btn {
        font-size: 1rem;
        padding: 3px 6px;
    }
}

/* ===================== */
/* SEO Content Section   */
/* ===================== */
.seo-section {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 40px;
    margin-top: 40px;
    box-shadow: var(--shadow-sm);
}

.seo-section h2 {
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--secondary);
}

.seo-section h3 {
    color: var(--text);
    font-size: 1.2rem;
    margin: 25px 0 15px;
}

.seo-section p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 15px;
}

.seo-section ul {
    list-style: disc;
    margin-left: 20px;
    color: var(--text-muted);
}

.seo-section ul li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* FAQ Section */
.faq-section {
    margin-top: 30px;
}

.faq-section h2 {
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.faq-item {
    background: var(--bg);
    border-radius: var(--radius-sm);
    margin-bottom: 15px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 18px 20px;
    background: none;
    border: none;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s;
}

.faq-question:hover {
    background: var(--secondary);
}

.faq-question::after {
    content: '+';
    font-size: 1.4rem;
    color: var(--primary);
    transition: transform 0.3s;
}

.faq-item.active .faq-question::after {
    content: '−';
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 20px 20px;
}

.faq-answer p {
    color: var(--text-muted);
    line-height: 1.8;
    text-align: left;
    word-break: keep-all;
    overflow-wrap: break-word;
}

@media (max-width: 768px) {
    .seo-section {
        padding: 25px 20px;
        margin-top: 30px;
    }

    .seo-section h2 {
        font-size: 1.3rem;
    }

    .seo-section h3 {
        font-size: 1.1rem;
    }

    .faq-question {
        padding: 15px;
        font-size: 0.95rem;
    }
}

/* ================================
   Core Web Vitals Optimization
   ================================ */

/* Content Visibility - Improve rendering performance */
.footer,
.seo-section,
.faq-section {
    content-visibility: auto;
    contain-intrinsic-size: auto 300px;
}

/* Image optimization - CLS prevention */
img {
    max-width: 100%;
    height: auto;
    /* Reserve space for images to prevent CLS */
    aspect-ratio: attr(width) / attr(height);
}

/* Lazy loading placeholder */
img[loading="lazy"] {
    background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
}

/* Button/Interactive elements - FID optimization */
button,
.btn,
.submit-btn,
.nav-link,
a {
    /* Ensure touch targets are at least 44x44px for mobile */
    min-height: 44px;
    /* Ensure fast response */
    touch-action: manipulation;
}

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

/* Font display optimization */
@font-face {
    font-family: 'Noto Sans KR';
    font-display: swap;
}

/* Skeleton loading animation */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Will-change optimization for animations */
.dropdown-menu,
.nav-menu,
.faq-answer {
    will-change: transform, opacity;
}

/* GPU acceleration for smooth animations */
.card:hover,
.animal-card:hover {
    transform: translateZ(0);
}

/* Prevent layout shifts from dynamic content */
.fortune-result,
.result-section,
#resultSection {
    min-height: 100px;
}

/* Reserve space for common elements */
.page-header {
    min-height: 120px;
}

.card {
    min-height: 50px;
}

/* Optimize scrolling performance */
.main-content {
    overflow-anchor: auto;
}

/* ================================
   Breadcrumb Navigation
   ================================ */
.breadcrumb {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.breadcrumb-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.breadcrumb-list {
    display: flex;
    flex-wrap: nowrap;
    align-items: baseline;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.9rem;
}

.breadcrumb-item {
    display: inline;
    flex-shrink: 0;
}

.breadcrumb-item:not(:last-child)::after {
    content: '>';
    margin: 0 8px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.breadcrumb-item a,
.breadcrumb-item span {
    color: var(--primary);
    white-space: nowrap;
    font-size: 0.9rem;
}

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

.breadcrumb-item.active span,
.breadcrumb-item:not(:first-child) span {
    color: var(--text-muted);
}

/* ================================
   SEO Content Section
   ================================ */
.seo-content {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 40px;
    margin-top: 40px;
    box-shadow: var(--shadow-sm);
}

.seo-content h2 {
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--secondary);
}

.seo-content h3 {
    color: var(--text);
    font-size: 1.2rem;
    margin: 25px 0 15px;
}

.seo-content p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 15px;
}

.seo-content ul, .seo-content ol {
    margin: 15px 0 15px 20px;
    color: var(--text-muted);
    line-height: 1.8;
}

.seo-content li {
    margin-bottom: 8px;
}

.seo-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.seo-content th, .seo-content td {
    padding: 12px 15px;
    text-align: left;
    border: 1px solid var(--border);
}

.seo-content th {
    background: var(--secondary);
    font-weight: 600;
    color: var(--primary);
}

.seo-content tr:nth-child(even) {
    background: var(--bg);
}

/* ================================
   Related Fortune Section
   ================================ */
.related-fortune {
    background: var(--secondary);
    border-radius: var(--radius);
    padding: 30px;
    margin-top: 40px;
}

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

.related-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.related-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    background: var(--bg-white);
    border-radius: var(--radius-sm);
    color: var(--text);
    transition: all 0.3s;
    box-shadow: var(--shadow-sm);
}

.related-link:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    color: var(--primary);
}

.related-link-icon {
    font-size: 1.5rem;
}

.related-link-text {
    font-weight: 500;
}

@media (max-width: 768px) {
    .seo-content {
        padding: 25px 20px;
    }

    .seo-content h2 {
        font-size: 1.3rem;
    }

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

/* ================================
   Social Share Buttons
   ================================ */
.social-share {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 30px 0;
    padding: 20px;
    background: var(--bg);
    border-radius: var(--radius-sm);
}

.social-share-label {
    font-weight: 600;
    color: var(--text);
    margin-right: 10px;
    white-space: nowrap;
}

.share-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.3rem;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.share-btn.kakao {
    background: #FEE500;
    color: #391B1B;
}

.share-btn.facebook {
    background: #1877F2;
    color: white;
}

.share-btn.twitter {
    background: #1DA1F2;
    color: white;
}

.share-btn.line {
    background: #00B900;
    color: white;
}

.share-btn.copy-link {
    background: var(--primary);
    color: white;
}

.share-btn.copy-link.copied {
    background: #4CAF50;
}

/* Floating Share Button */
.floating-share {
    position: fixed;
    bottom: 100px;
    right: 20px;
    z-index: 998;
}

.floating-share-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(107, 78, 155, 0.4);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-share-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(107, 78, 155, 0.5);
}

.floating-share-menu {
    position: absolute;
    bottom: 60px;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s;
}

.floating-share.active .floating-share-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.floating-share-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--primary);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 9999;
}

.toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

@media (max-width: 768px) {
    .social-share {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .share-btn {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .floating-share {
        bottom: 80px;
        right: 15px;
    }

    .floating-share-btn {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }

    .toast {
        bottom: 80px;
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* ================================
   Saju (Four Pillars) Page Styles
   ================================ */

/* Saju Form */
.saju-form .form-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.saju-form .radio-group {
    display: flex;
    gap: 10px;
}

.saju-form .radio-label {
    flex: 1;
    justify-content: center;
    padding: 10px 15px;
}

/* Saju Pillars */
.pillars {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 22px;
}

.pillar {
    text-align: center;
    width: 85px;
}

.pillar-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    font-weight: 500;
}

.pillar-chars {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pillar-char {
    width: 65px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    font-weight: 600;
    border-radius: 12px;
    margin: 0 auto;
    transition: all 0.2s ease;
}

.pillar-char:hover {
    transform: scale(1.05);
}

.pillar-char.gan {
    background: linear-gradient(135deg, #f8f0ff 0%, #efe0ff 100%);
    border: 2px solid var(--primary);
    color: var(--primary);
}

.pillar-char.ji {
    background: linear-gradient(135deg, #fff0f5 0%, #ffe0eb 100%);
    border: 2px solid var(--accent);
    color: var(--accent);
}

.birth-info {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
    padding: 12px 15px;
    background: var(--bg);
    border-radius: var(--radius-sm);
}

/* Oheng Chart */
.oheng-chart {
    margin-bottom: 22px;
}

.oheng-bar {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.oheng-label {
    width: 70px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text);
}

.oheng-progress {
    flex: 1;
    height: 24px;
    background: var(--bg);
    border-radius: 12px;
    overflow: hidden;
    margin: 0 12px;
    border: 1px solid var(--border);
}

.oheng-fill {
    height: 100%;
    border-radius: 12px;
    transition: width 0.6s ease;
}

.oheng-percent {
    width: 45px;
    text-align: right;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.oheng-balance {
    background: var(--bg);
    padding: 15px 18px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    color: var(--text);
}

/* Personality */
.personality-content {
    line-height: 1.9;
}

.personality-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 22px;
}

.ilgan-badge {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    border-radius: 50%;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.personality-title {
    flex: 1;
}

.personality-title h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--text);
}

.personality-title p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.personality-traits {
    margin-bottom: 18px;
}

.trait-row {
    display: flex;
    gap: 15px;
    margin-top: 18px;
}

.trait-item {
    flex: 1;
    background: var(--bg);
    padding: 18px;
    border-radius: var(--radius-sm);
}

.trait-item h4 {
    font-size: 0.85rem;
    color: var(--primary);
    margin-bottom: 8px;
    font-weight: 600;
}

.trait-item p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Yongsin */
.yongsin-content .yongsin-item {
    background: var(--bg);
    padding: 22px;
    border-radius: var(--radius);
    margin-bottom: 15px;
}

.yongsin-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.yongsin-badge {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 700;
    border-radius: 10px;
    color: white;
}

.yongsin-header h4 {
    font-size: 1rem;
    color: var(--text);
    font-weight: 600;
}

.yongsin-item p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.yongsin-advice {
    font-size: 0.9rem;
    color: var(--text);
    padding: 12px 14px;
    background: rgba(107, 78, 155, 0.08);
    border-radius: var(--radius-sm);
    margin-top: 10px;
    border-left: 3px solid var(--primary);
}

/* Daeun Timeline */
.daeun-timeline {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    padding: 10px 0;
}

.daeun-item {
    flex-shrink: 0;
    width: 105px;
    text-align: center;
    padding: 18px 12px;
    background: var(--bg);
    border-radius: var(--radius);
    border: 2px solid var(--border);
    transition: all 0.2s ease;
}

.daeun-item:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.daeun-age {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.daeun-chars {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.daeun-relation {
    font-size: 0.72rem;
    padding: 4px 8px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 15px;
    margin-bottom: 8px;
    display: inline-block;
    color: var(--text-muted);
}

.daeun-score {
    font-size: 0.82rem;
    color: var(--primary);
    font-weight: 600;
}

/* Overall Score */
.overall-content {
    text-align: center;
}

.overall-score {
    width: 130px;
    height: 130px;
    margin: 0 auto 22px;
    position: relative;
}

.score-circle {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(var(--primary) calc(var(--score) * 1%), var(--bg) 0);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

.score-inner {
    width: 100px;
    height: 100px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.overall-description {
    font-size: 1rem;
    margin-bottom: 25px;
    padding: 0 15px;
    color: var(--text-muted);
    line-height: 1.8;
}

.lucky-items {
    display: flex;
    justify-content: center;
    gap: 35px;
}

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

.lucky-item span {
    display: block;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.lucky-badge {
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 auto;
    border: 2px solid var(--border);
}

/* Tojeong Card */
.tojeong-card {
    background: linear-gradient(135deg, #f8f6fc 0%, #f0ecf8 100%);
}

.tojeong-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border);
}

.tojeong-gwa {
    display: flex;
    gap: 12px;
}

.gwa-item {
    text-align: center;
    padding: 14px;
    background: white;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    min-width: 75px;
}

.gwa-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.gwa-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
}

.tojeong-info {
    flex: 1;
}

.tojeong-info h3 {
    font-size: 1.15rem;
    margin-bottom: 4px;
    color: var(--text);
}

.tojeong-info p {
    font-size: 0.88rem;
    color: var(--text-muted);
}

.tojeong-fortune {
    background: white;
    padding: 22px;
    border-radius: var(--radius);
    margin-bottom: 18px;
    border: 1px solid var(--border);
}

.tojeong-fortune h4 {
    font-size: 1rem;
    color: var(--primary);
    margin-bottom: 12px;
    font-weight: 600;
}

.tojeong-fortune p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 8px;
}

.tojeong-years {
    margin-top: 22px;
}

.tojeong-years h4 {
    font-size: 0.95rem;
    color: var(--text);
    margin-bottom: 14px;
    font-weight: 600;
}

.tojeong-year-list {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 8px 0;
}

.tojeong-year-item {
    flex-shrink: 0;
    width: 130px;
    padding: 16px 12px;
    background: white;
    border-radius: var(--radius);
    text-align: center;
    border: 1px solid var(--border);
    transition: all 0.2s ease;
}

.tojeong-year-item:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.tojeong-year-item .year {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 6px;
}

.tojeong-year-item .gwa {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.tojeong-year-item .fortune-preview {
    font-size: 0.78rem;
    color: var(--primary-light);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Decade Fortunes */
.decade-fortunes {
    margin-top: 15px;
}

.decade-fortune-item {
    background: var(--bg);
    border-radius: var(--radius);
    margin-bottom: 15px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.2s ease;
}

.decade-fortune-item:hover {
    border-color: var(--primary);
}

.decade-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    background: white;
    cursor: pointer;
}

.decade-badge {
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: 50%;
    font-size: 0.9rem;
    font-weight: 700;
    color: white;
}

.decade-title {
    flex: 1;
}

.decade-title h4 {
    font-size: 1.05rem;
    color: var(--text);
    margin-bottom: 3px;
    font-weight: 600;
}

.decade-title p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.decade-toggle {
    font-size: 1.3rem;
    color: var(--text-muted);
    transition: transform 0.3s ease;
}

.decade-fortune-item.expanded .decade-toggle {
    transform: rotate(180deg);
}

.decade-body {
    display: none;
    padding: 0 18px 18px;
    background: white;
}

.decade-fortune-item.expanded .decade-body {
    display: block;
}

.decade-fortunes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 12px;
}

.decade-fortune-box {
    background: var(--bg);
    padding: 16px;
    border-radius: var(--radius-sm);
}

.decade-fortune-box h5 {
    font-size: 0.88rem;
    color: var(--text);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

.fortune-icon {
    font-size: 1rem;
}

.decade-fortune-box .score {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.decade-fortune-box p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.decade-overall {
    margin-top: 14px;
    padding: 16px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--primary);
}

.decade-overall h5 {
    font-size: 0.92rem;
    color: var(--primary);
    margin-bottom: 8px;
    font-weight: 600;
}

.decade-overall p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Fortune Content Common */
.fortune-content {
    line-height: 1.8;
}

.fortune-content .fortune-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 18px;
}

.fortune-content .fortune-score {
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.95rem;
    font-weight: 700;
    color: white;
}

.fortune-content .fortune-title h3 {
    font-size: 1.15rem;
    margin: 0;
    color: var(--text);
}

.fortune-content .fortune-body p {
    margin-bottom: 12px;
    color: var(--text-muted);
}

.fortune-content .fortune-advice {
    background: var(--bg);
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    border-left: 3px solid var(--primary);
}

/* Yearly Fortune */
.yearly-content .yearly-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 22px;
}

.yearly-content .score-badge {
    padding: 10px 22px;
    border-radius: 22px;
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
}

.yearly-content h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--text);
}

.yearly-keyword {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
}

.yearly-desc {
    margin-bottom: 22px;
}

.yearly-desc p {
    margin-bottom: 10px;
    color: var(--text-muted);
}

.yearly-general {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.monthly-chart h4 {
    font-size: 0.92rem;
    margin-bottom: 15px;
    color: var(--text);
    font-weight: 600;
}

.monthly-bars {
    display: flex;
    gap: 6px;
    height: 90px;
    align-items: flex-end;
    padding: 12px;
    background: var(--bg);
    border-radius: var(--radius-sm);
}

.month-bar {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.month-fill {
    width: 100%;
    border-radius: 4px 4px 0 0;
    transition: height 0.4s ease;
}

.month-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 6px;
}

/* Jobs List */
.suitable-jobs {
    margin-top: 15px;
}

.jobs-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.job-tag {
    background: var(--bg);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.88rem;
    border: 1px solid var(--border);
    transition: all 0.2s ease;
}

.job-tag:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Love Fortune */
.love-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.love-item {
    background: var(--bg);
    padding: 18px;
    border-radius: var(--radius);
    text-align: center;
}

.love-item h4 {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.love-level {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.love-level.대길, .love-level.길 { background: #d4edda; color: #155724; }
.love-level.보통 { background: #fff3cd; color: #856404; }
.love-level.흉, .love-level.대흉 { background: #f8d7da; color: #721c24; }

.love-item p {
    font-size: 0.88rem;
    color: var(--text-muted);
}

.ideal-partner {
    background: var(--bg);
    padding: 18px;
    border-radius: var(--radius);
}

.ideal-partner h4 {
    font-size: 0.92rem;
    margin-bottom: 10px;
    color: var(--text);
    font-weight: 600;
}

.ideal-partner p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Health Fortune */
.health-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 18px;
}

.health-weak, .health-advice-box {
    background: var(--bg);
    padding: 18px;
    border-radius: var(--radius);
}

.health-weak h4, .health-advice-box h4 {
    font-size: 0.92rem;
    margin-bottom: 10px;
    color: var(--primary);
    font-weight: 600;
}

.symptoms {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-top: 8px;
}

.health-warnings {
    background: #fff5f5;
    padding: 18px;
    border-radius: var(--radius);
    margin-bottom: 18px;
    border: 1px solid #ffe0e0;
}

.health-warnings h4 {
    font-size: 0.92rem;
    color: var(--accent);
    margin-bottom: 10px;
    font-weight: 600;
}

.health-warnings ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.health-warnings li {
    font-size: 0.88rem;
    padding: 6px 0;
    color: var(--text-muted);
    border-bottom: 1px solid #ffe0e0;
}

.health-warnings li:last-child {
    border-bottom: none;
}

.health-overall {
    background: var(--bg);
    padding: 14px;
    border-radius: var(--radius-sm);
    text-align: center;
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Age Fortune */
.age-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 22px;
}

.age-badge {
    width: 65px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: 50%;
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
}

.age-group {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text);
}

.age-body h4 {
    font-size: 1.05rem;
    color: var(--primary);
    margin-bottom: 10px;
    font-weight: 600;
}

.age-body p {
    color: var(--text-muted);
    margin-bottom: 15px;
}

.age-advice {
    background: var(--bg);
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    border-left: 3px solid var(--primary);
}

/* Oheng Table */
.oheng-table-wrapper {
    overflow-x: auto;
    margin: 20px 0;
}

.oheng-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 500px;
}

.oheng-table th,
.oheng-table td {
    padding: 12px 15px;
    text-align: center;
    border: 1px solid var(--border);
}

.oheng-table th {
    background: var(--secondary);
    font-weight: 600;
    color: var(--primary);
}

.oheng-table tr:nth-child(even) {
    background: var(--bg);
}

/* Related Fortune */
.related-fortune h2 {
    color: var(--primary);
    font-size: 1.3rem;
    margin-bottom: 20px;
    text-align: center;
}

.related-link-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 15px;
    background: var(--bg-white);
    border-radius: var(--radius);
    text-align: center;
    transition: all 0.3s;
    box-shadow: var(--shadow-sm);
}

.related-link-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    color: var(--primary);
}

.related-icon {
    font-size: 2rem;
}

.related-title {
    font-weight: 600;
    color: var(--text);
}

.related-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Reset Button */
.reset-btn {
    width: 100%;
    padding: 16px;
    background: white;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.reset-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--secondary);
}

/* Hidden */
.hidden {
    display: none !important;
}

/* Saju Page Responsive */
@media (max-width: 768px) {
    .saju-form .form-row {
        grid-template-columns: 1fr;
    }

    .pillars {
        gap: 12px;
    }

    .pillar-char {
        width: 52px;
        height: 52px;
        font-size: 1.3rem;
    }

    .trait-row {
        flex-direction: column;
    }

    .daeun-item {
        width: 90px;
    }

    .love-grid {
        grid-template-columns: 1fr;
    }

    .health-main {
        grid-template-columns: 1fr;
    }

    .monthly-bars {
        height: 70px;
    }

    .decade-fortunes-grid {
        grid-template-columns: 1fr;
    }

    .tojeong-gwa {
        flex-wrap: wrap;
    }

    .gwa-item {
        min-width: 65px;
    }

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

@media (max-width: 480px) {
    .pillar {
        width: 65px;
    }

    .pillar-char {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
    }

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

/* ================================
   Homepage SEO Content Section
   ================================ */
.seo-content-section {
    margin-top: 40px;
}

.seo-content-section .section-title {
    position: relative;
    display: inline-block;
    width: 100%;
}

.seo-content-section .section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    margin: 12px auto 0;
    border-radius: 2px;
}

.seo-text {
    max-width: 800px;
    margin: 0 auto;
}

.seo-text p {
    color: var(--text-muted);
    line-height: 1.9;
    margin-bottom: 20px;
    text-align: center;
}

.seo-text h3 {
    color: var(--primary);
    font-size: 1.15rem;
    margin: 30px 0 15px;
    text-align: center;
    font-weight: 600;
}

.seo-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 20px 0;
}

.seo-list li {
    background: var(--bg);
    padding: 15px 18px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    color: var(--text-muted);
    transition: all 0.3s;
    border-left: 3px solid var(--primary);
}

.seo-list li:hover {
    transform: translateX(5px);
    background: var(--secondary);
}

.seo-list li strong {
    color: var(--text);
    display: block;
    margin-bottom: 3px;
}

@media (max-width: 768px) {
    .seo-list {
        grid-template-columns: 1fr;
    }

    .seo-text p {
        text-align: left;
    }

    .seo-text h3 {
        text-align: left;
    }
}

/* ================================
   Homepage Blog/Guide Preview
   ================================ */
.blog-preview {
    margin-top: 40px;
}

.blog-preview .section-title {
    position: relative;
}

.blog-preview .section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--gradient-accent);
    margin: 12px auto 0;
    border-radius: 2px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.blog-card {
    background: var(--bg);
    padding: 25px;
    border-radius: var(--radius);
    transition: all 0.3s;
    border: 1px solid transparent;
    text-decoration: none;
}

.blog-card:hover {
    background: var(--secondary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-sm);
    border-color: var(--primary-light);
}

.blog-card h4 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 10px;
    line-height: 1.4;
}

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

.blog-cta {
    text-align: center;
}

.blog-cta .btn-secondary {
    background: var(--bg);
    color: var(--primary);
    border: 2px solid var(--primary);
}

.blog-cta .btn-secondary:hover {
    background: var(--primary);
    color: white;
}

@media (max-width: 992px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .blog-card {
        padding: 20px;
    }
}
