/* ============================================
   LA/OC 부동산 인사이트 - 메인 스타일시트
   ============================================ */

/* ========== 기본 리셋 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

/* ========== 헤더 & 네비게이션 ========== */
header {
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1a365d;
}

.logo span {
    color: #d4af37;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: #d4af37;
}

.nav-admin {
    color: #d4af37 !important;
    font-weight: bold !important;
}

/* ========== 공통 컨테이너 ========== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* ========== 히어로 섹션 ========== */
.hero {
    background: linear-gradient(135deg, #1a365d 0%, #2d5a8e 100%);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
    border-radius: 10px;
    margin-bottom: 3rem;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* ========== 공통 버튼 ========== */
.cta-button {
    display: inline-block;
    background-color: #d4af37;
    color: white;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.cta-button:hover {
    background-color: #b8860b;
}

/* ========== 신뢰도 / 전문가 프로필 섹션 ========== */
.trust-section {
    background-color: white;
    padding: 3rem 2rem;
    border-radius: 10px;
    margin-bottom: 3rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.expert-profile {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.expert-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

/* 이미지 로드 실패 시 폴백 */
.expert-image-fallback {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1a365d 0%, #2d5a8e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    flex-shrink: 0;
}

.expert-info h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.expert-info p {
    margin-bottom: 0.5rem;
    color: #666;
}

.credentials {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.credential-badge {
    background-color: #1a365d;
    color: #d4af37;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* ========== 카테고리 카드 섹션 ========== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.category-card {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    text-decoration: none;
    color: #333;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.category-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.category-card h3 {
    margin-bottom: 0.5rem;
    color: #1a365d;
}

.category-card p {
    color: #666;
    font-size: 0.9rem;
}

/* ========== 피처드 / 블로그 섹션 ========== */
.featured-section {
    margin-bottom: 3rem;
}

.featured-section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #1a365d;
    border-bottom: 3px solid #d4af37;
    padding-bottom: 1rem;
    display: inline-block;
}

/* 가로 스크롤 블로그 그리드 */
.blog-grid {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    padding-bottom: 1rem;
    cursor: grab;
    -webkit-overflow-scrolling: touch;
}

.blog-grid:active {
    cursor: grabbing;
}

.blog-grid .blog-card {
    flex: 0 0 300px;
    min-width: 300px;
}

/* 스크롤바 스타일 */
.blog-grid::-webkit-scrollbar {
    height: 8px;
}

.blog-grid::-webkit-scrollbar-track {
    background: #ecf0f1;
    border-radius: 10px;
}

.blog-grid::-webkit-scrollbar-thumb {
    background: #d4af37;
    border-radius: 10px;
}

.blog-grid::-webkit-scrollbar-thumb:hover {
    background: #b8860b;
}

/* ========== 블로그 카드 ========== */
.blog-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    color: #333;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.blog-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #1a365d 0%, #2d5a8e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    object-fit: cover;
    flex-shrink: 0;
}

.blog-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-category {
    display: inline-block;
    background-color: #1a365d;
    color: #d4af37;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    width: fit-content;
}

.blog-card h3 {
    margin-bottom: 0.5rem;
    color: #1a365d;
    font-size: 1.2rem;
    line-height: 1.4;
}

.blog-card p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.blog-meta {
    font-size: 0.85rem;
    color: #999;
    display: flex;
    gap: 1rem;
}



/* ========== 문의 폼 ========== */
#contact {
    background: #f5f5f5;
    padding: 3rem 2rem;
    border-radius: 8px;
    margin: 3rem 0;
}

#contact h2 {
    font-size: 2rem;
    color: #1a365d;
    margin-bottom: 1rem;
}

#contact p {
    font-size: 1.1rem;
    color: #333;
    margin: 1rem 0;
    line-height: 1.6;
}

#contact a {
    color: #d4af37;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

#contact a:hover {
    color: #1a365d;
    text-decoration: underline;
}

/* ========== 소셜 링크 ========== */
.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #34495e;
    border-radius: 50%;
    text-decoration: none;
    color: #ecf0f1;
    transition: background-color 0.3s;
    font-size: 1.1rem;
}

.social-links a:hover {
    background-color: #d4af37;
}

/* ========== 푸터 ========== */
footer {
    background-color: #1a365d;
    color: #ecf0f1;
    padding: 3rem 2rem;
    margin-top: 3rem;
}

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

.footer-section h3 {
    margin-bottom: 1rem;
    color: #fff;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section p {
    margin-bottom: 0.5rem;
    color: #bdc3c7;
}

.footer-section a {
    color: #ecf0f1;
    text-decoration: none;
    display: block;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #d4af37;
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 2rem;
    text-align: center;
    color: #bdc3c7;
    max-width: 1200px;
    margin: 0 auto;
    line-height: 1.8;
}



/* ========== 계산기 카드 컬러 강조 ========== */
.calc-card--blue,
.calc-card--green,
.calc-card--orange {
    border-left: 5px solid transparent;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.calc-card--blue {
    border-left-color: #3498db;
}

.calc-card--blue:hover {
    box-shadow: 0 8px 24px rgba(52, 152, 219, 0.25);
}

.calc-card--green {
    border-left-color: #27ae60;
}

.calc-card--green:hover {
    box-shadow: 0 8px 24px rgba(39, 174, 96, 0.25);
}

.calc-card--orange {
    border-left-color: #e67e22;
}

.calc-card--orange:hover {
    box-shadow: 0 8px 24px rgba(230, 126, 34, 0.25);
}

/* ========== 반응형 디자인 ========== */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .logo {
        font-size: 1.1rem;
    }

    nav ul {
        gap: 0.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    nav a {
        padding: 0.4rem 0.6rem;
        font-size: 0.85rem;
    }

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

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

    .expert-profile {
        flex-direction: column;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .credentials {
        justify-content: center;
    }

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

    .newsletter-form {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 0.9rem;
    }

    nav ul {
        gap: 0.2rem;
    }

    nav a {
        padding: 0.3rem 0.5rem;
        font-size: 0.75rem;
    }

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

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

    .container {
        padding: 1rem;
    }
}
