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

:root {
    --primary-color: #2D5016;
    --primary-light: #4A7C2A;
    --primary-dark: #1A3009;
    --secondary-color: #F5F7F0;
    --accent-color: #8B9A5B;
    --text-primary: #1A1A1A;
    --text-secondary: #666666;
    --text-light: #999999;
    --white: #FFFFFF;
    --border-color: #E5E5E5;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
}

body {
    font-family: 'Noto Sans KR', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px; /* WhatsApp 렌더링 안정화 */
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 40px;
}

/* Prayer Time Bar */
.prayer-time-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--primary-color);
    color: var(--white);
    padding: 8px 0;
    z-index: 1001;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.prayer-time-content {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 12px;
    justify-content: center;
    padding: 4px 0;
}

.prayer-time.active .time-value {
    background: rgba(255, 215, 0, 0.2);
    padding: 2px 6px;
    border-radius: 4px;
}

.prayer-time-content svg {
    flex-shrink: 0;
}

.prayer-label {
    font-weight: 600;
    opacity: 0.95;
}

.prayer-time {
    display: flex;
    align-items: center;
    gap: 4px;
    opacity: 0.9;
}

.time-value {
    font-weight: 600;
    color: #FFD700;
}

/* Qibla Indicator - WhatsApp 호환성 강화 */
.qibla-indicator {
    position: fixed;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.qibla-compass {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    /* WhatsApp 호환: backdrop-filter 제거, 불투명 배경 사용 */
    background: #FFFFFF;
    /* 그림자 강화로 가시성 향상 */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 0 2px rgba(45, 80, 22, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 4px solid #2D5016;
}

.qibla-compass::before {
    content: 'N';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 14px;
    font-weight: 700;
    color: #2D5016;
}

.qibla-compass::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.compass-needle {
    width: 6px;
    height: 65%;
    background: linear-gradient(to top, #DC2626 0%, #F97316 50%, #2D5016 100%);
    position: absolute;
    transform-origin: bottom center;
    border-radius: 3px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.compass-needle::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 12px solid #DC2626;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.compass-label {
    position: absolute;
    bottom: -24px;
    font-size: 12px;
    font-weight: 700;
    color: #2D5016;
    background: #FFFFFF;
    padding: 4px 10px;
    border-radius: 4px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.qibla-toggle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #2D5016;
    color: #FFFFFF;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
}

.qibla-toggle:hover {
    background: var(--primary-light);
    transform: scale(1.1);
}

.qibla-indicator.hidden .qibla-compass {
    display: none;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 40px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    padding: 16px 0;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    display: flex;
    align-items: center;
}

.brand-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-lang {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.lang-btn {
    padding: 6px 12px;
    border: 1px solid var(--border-color);
    background: var(--white);
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-secondary);
}

.lang-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.lang-btn.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 140px;
    padding-bottom: 80px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #2D5016 0%, #4A7C2A 50%, #8B9A5B 100%);
    z-index: -2;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    z-index: -1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    color: var(--white);
    z-index: 1;
}

.halal-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-radius: 50px;
    margin-bottom: 32px;
    font-size: 14px;
    font-weight: 500;
}

.hero-title {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero-title .highlight {
    color: #FFD700;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 48px;
    opacity: 0.95;
    font-weight: 300;
}

/* Search Container */
.search-container {
    background: var(--white);
    border-radius: 16px;
    padding: 8px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 48px;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 4px 4px 4px 20px;
}

.search-icon {
    color: var(--text-secondary);
    flex-shrink: 0;
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    padding: 16px 0;
    color: var(--text-primary);
    font-family: inherit;
}

.search-input::placeholder {
    color: var(--text-light);
}

.search-btn {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.search-btn:hover {
    background: var(--primary-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(45, 80, 22, 0.3);
}

.search-filters {
    display: flex;
    gap: 8px;
    padding: 12px 20px;
    flex-wrap: wrap;
    border-top: 1px solid var(--border-color);
}

.filter-chip {
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    background: var(--white);
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-secondary);
    font-family: inherit;
}

.filter-chip:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.filter-chip.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* Trust Indicators */
.trust-indicators {
    display: flex;
    justify-content: center;
    gap: 64px;
    margin-top: 48px;
}

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

.trust-number {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #FFD700;
}

.trust-label {
    font-size: 14px;
    opacity: 0.9;
}

/* Features Section */
.features {
    padding: 100px 0;
    background: var(--secondary-color);
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-title {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.feature-card {
    background: var(--white);
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

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

.feature-icon {
    margin-bottom: 24px;
    color: var(--primary-color);
}

.feature-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.feature-description {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* Popular Restaurants Section */
.popular-section {
    padding: 100px 0;
    background: var(--white);
}

.restaurants-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    margin-bottom: 48px;
}

.restaurant-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    cursor: pointer;
}

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

.restaurant-image {
    position: relative;
    width: 100%;
    height: 240px;
    background: linear-gradient(135deg, #E8F5E9 0%, #C8E6C9 100%);
    overflow: hidden;
}

.restaurant-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent-color) 100%);
    opacity: 0.3;
}

.halal-cert-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--primary-color);
    color: var(--white);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.restaurant-info {
    padding: 24px;
}

.restaurant-name {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.restaurant-type {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

/* Halal Tags */
.halal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.halal-tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.tag-official {
    background: #2D5016;
    color: var(--white);
}

.tag-muslim-friendly {
    background: #2563EB;
    color: var(--white);
}

.tag-no-pork {
    background: #F97316;
    color: var(--white);
}

.tag-no-alcohol {
    background: #DC2626;
    color: var(--white);
}

.restaurant-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.stars {
    color: #FFD700;
    font-size: 16px;
}

.rating-text {
    font-size: 14px;
    color: var(--text-secondary);
}

.restaurant-description {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.restaurant-header {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.halal-grade {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.cuisine-type {
    font-size: 13px;
    color: #666;
}

.restaurant-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.map-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 12px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    flex: 1;
}

.map-btn svg {
    flex-shrink: 0;
}

/* 카카오맵 버튼 */
.kakao-btn {
    background: #FAE300;
    border: 1.5px solid #e6d100;
    color: #3A1D1D;
}

.kakao-btn:hover {
    background: #e6d100;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(250, 227, 0, 0.4);
}

/* 구글맵 버튼 */
.google-btn {
    background: var(--white);
    border: 1.5px solid #4285F4;
    color: #4285F4;
}

.google-btn:hover {
    background: #4285F4;
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(66, 133, 244, 0.3);
}

/* 리뷰 버튼 */
.naver-menu-actions {
    margin-top: 8px;
}

.naver-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
    background: var(--white);
    border: 1.5px solid #03C75A;
    color: #03C75A;
    box-sizing: border-box;
}

.naver-menu-btn:hover {
    background: #03C75A;
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(3, 199, 90, 0.3);
}

.review-actions {
    margin-top: 8px;
}

.review-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
    background: var(--white);
    border: 1.5px solid #9C27B0;
    color: #9C27B0;
    box-sizing: border-box;
}

.review-btn:hover {
    background: #9C27B0;
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(156, 39, 176, 0.3);
}
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.comment-item {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #F5F5F5;
}

.comment-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.comment-author {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
}

.comment-date {
    font-size: 12px;
    color: var(--text-light);
}

.comment-rating {
    color: #FFD700;
    font-size: 14px;
    margin-bottom: 8px;
}

.comment-text {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

/* Expert Recommendation */
.expert-recommendation {
    margin-top: 20px;
    padding: 18px;
    background: linear-gradient(135deg, #F5F7F0 0%, #E8F5E9 100%);
    border-left: 5px solid var(--primary-color);
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(45, 80, 22, 0.1);
}

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

.expert-header svg {
    color: var(--primary-color);
    flex-shrink: 0;
    filter: drop-shadow(0 1px 2px rgba(45, 80, 22, 0.2));
}

.expert-title {
    font-size: 14px;
    font-weight: 800;
    color: var(--primary-color);
    font-style: italic;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-shadow: 0 1px 2px rgba(45, 80, 22, 0.1);
}

.expert-text {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-primary);
    margin: 0;
    font-weight: 500;
    letter-spacing: 0.2px;
}

.view-more {
    text-align: center;
}

/* Buttons */
.btn-primary {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 14px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(45, 80, 22, 0.3);
}

.btn-primary.large {
    padding: 18px 40px;
    font-size: 18px;
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 14px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

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

.btn-secondary.large {
    padding: 18px 40px;
    font-size: 18px;
}

/* CTA Section */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: var(--white);
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 16px;
}

.cta-description {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn-secondary {
    color: var(--white);
    border-color: var(--white);
}

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

/* Footer */
.footer {
    background: var(--text-primary);
    color: var(--white);
    padding: 64px 0 32px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-brand .brand-text {
    color: var(--white);
}

.footer-description {
    font-size: 14px;
    line-height: 1.7;
    opacity: 0.8;
}

.footer-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

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

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    font-size: 14px;
}

.footer-links a:hover {
    opacity: 1;
}

.social-links {
    display: flex;
    gap: 16px;
    margin-top: 8px;
}

.social-links a {
    font-size: 14px;
}

/* Expert Guidance Section */
.expert-guidance {
    margin: 48px 0;
    padding: 40px 0;
    border-top: 2px solid rgba(255, 255, 255, 0.15);
    border-bottom: 2px solid rgba(255, 255, 255, 0.15);
    background: linear-gradient(135deg, rgba(45, 80, 22, 0.2) 0%, rgba(74, 124, 42, 0.15) 100%);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.expert-guidance::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.expert-guidance-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
    width: 100%;
}

.expert-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    border-radius: 50%;
    color: var(--text-primary);
    box-shadow: 0 4px 16px rgba(255, 215, 0, 0.3);
    flex-shrink: 0;
    animation: pulse 3s ease-in-out infinite;
    order: 0;
    margin-right: 8px;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 16px rgba(255, 215, 0, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5);
    }
}

.expert-info {
    flex: 0 1 auto;
    text-align: center;
    min-width: 300px;
    order: 2;
    margin: 0 12px;
}

.expert-name-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.expert-images {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.expert-profile-img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.1);
}

.expert-book-img {
    width: 48px;
    height: 64px;
    object-fit: cover;
    border-radius: 4px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.1);
}

.expert-text-content {
    flex: 1;
    min-width: 250px;
}

.expert-guidance-text {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
}

.expert-label {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.8;
    color: rgba(255, 255, 255, 0.9);
}

.expert-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.5px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    margin: 4px 0;
}

.expert-role {
    font-size: 16px;
    font-weight: 500;
    font-style: italic;
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: 0.3px;
}

.expert-verification {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
    font-style: italic;
    margin-top: 8px;
    letter-spacing: 0.5px;
}

.expert-seal {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    color: rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    padding: 8px;
}

.footer-bottom {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    opacity: 0.7;
}

/* Author Images - Inside Expert Guidance */
.author-profile-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    border: 4px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    order: 1;
    margin-right: 8px;
    background: transparent;
}

.author-profile-img:hover {
    transform: scale(1.05);
}

.author-cover-img {
    height: 160px;
    width: auto;
    object-fit: contain;
    border-radius: 8px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    order: 4;
    margin-left: 8px;
}

.author-cover-img:hover {
    transform: scale(1.05);
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding-top: 80px;
    }

    .prayer-time-bar {
        padding: 6px 0;
    }

    .prayer-time-content {
        font-size: 10px;
        gap: 8px;
    }

    .prayer-time {
        flex-direction: column;
        gap: 2px;
        align-items: flex-start;
    }

    .navbar {
        top: 80px;
    }

    .hero {
        padding-top: 180px;
    }

    .qibla-indicator {
        right: 10px;
    }

    .qibla-compass {
        width: 70px;
        height: 70px;
    }

    .qibla-compass::before {
        font-size: 10px;
        top: 6px;
    }

    .qibla-toggle {
        width: 36px;
        height: 36px;
    }

    .nav-menu {
        display: none;
    }

    .hero-title {
        font-size: 36px;
    }

    .expert-guidance {
        margin: 32px 0;
        padding: 32px 20px;
    }

    .expert-guidance-content {
        gap: 20px;
    }

    .expert-badge,
    .expert-seal {
        width: 50px;
        height: 50px;
    }

    .expert-badge svg,
    .expert-seal svg {
        width: 22px;
        height: 22px;
    }

    .expert-info {
        min-width: auto;
    }

    .expert-name-section {
        flex-direction: column;
        gap: 12px;
    }

    .expert-images {
        gap: 10px;
    }

    .expert-profile-img {
        width: 56px;
        height: 56px;
    }

    .expert-book-img {
        width: 42px;
        height: 56px;
    }

    .expert-text-content {
        min-width: auto;
    }

    .expert-guidance-text {
        font-size: 16px;
    }

    .expert-name {
        font-size: 20px;
    }

    .expert-role {
        font-size: 15px;
    }

    .expert-verification {
        font-size: 12px;
    }

    .author-profile-img {
        width: 80px;
        height: 80px;
    }

    .author-cover-img {
        height: 120px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .search-box {
        flex-direction: column;
        padding: 16px;
    }

    .search-input {
        width: 100%;
        padding: 12px;
    }

    .search-btn {
        width: 100%;
    }

    .trust-indicators {
        flex-direction: column;
        gap: 32px;
    }

    .section-title {
        font-size: 28px;
    }

    .features-grid,
    .restaurants-grid {
        grid-template-columns: 1fr;
    }

    .cta-title {
        font-size: 28px;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-buttons button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .prayer-time-content {
        font-size: 9px;
        gap: 4px;
        padding: 0 8px;
    }

    .prayer-time {
        font-size: 9px;
    }

    .qibla-indicator {
        right: 8px;
    }

    .qibla-compass {
        width: 60px;
        height: 60px;
    }

    .qibla-compass::before {
        font-size: 9px;
        top: 5px;
    }

    .compass-label {
        font-size: 9px;
        bottom: -20px;
        padding: 2px 6px;
    }

    .qibla-toggle {
        width: 32px;
        height: 32px;
    }

    .qibla-toggle svg {
        width: 16px;
        height: 16px;
    }

    .hero {
        padding-top: 180px;
        padding-bottom: 60px;
    }

    .hero-title {
        font-size: 28px;
    }

    .features,
    .popular-section,
    .cta-section {
        padding: 60px 0;
    }

    .halal-tags {
        gap: 4px;
    }

    .halal-tag {
        font-size: 10px;
        padding: 3px 8px;
    }

    .expert-guidance {
        margin: 24px 0;
        padding: 24px 16px;
    }

    .expert-guidance-content {
        flex-direction: column;
        gap: 16px;
    }

    .expert-badge,
    .expert-seal {
        width: 44px;
        height: 44px;
    }

    .expert-badge svg,
    .expert-seal svg {
        width: 18px;
        height: 18px;
    }

    .expert-info {
        min-width: auto;
    }

    .expert-name-section {
        flex-direction: column;
        gap: 10px;
    }

    .expert-images {
        gap: 8px;
    }

    .expert-profile-img {
        width: 48px;
        height: 48px;
    }

    .expert-book-img {
        width: 36px;
        height: 48px;
    }

    .expert-text-content {
        min-width: auto;
    }

    .expert-guidance-text {
        font-size: 14px;
    }

    .expert-label {
        font-size: 11px;
        letter-spacing: 1px;
    }

    .expert-name {
        font-size: 18px;
    }

    .expert-role {
        font-size: 13px;
    }

    .expert-verification {
        font-size: 11px;
    }

    .author-profile-img {
        width: 100px;
        height: 100px;
    }

    .author-cover-img {
        height: 140px;
    }
}


/* ===== PWA 설치 배너 ===== */
.install-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #2D5016 0%, #1E3610 100%);
    color: white;
    padding: 16px 20px;
    z-index: 9999;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.install-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    max-width: 600px;
    margin: 0 auto;
}

.install-content span {
    font-size: 15px;
    font-weight: 500;
}

.install-btn {
    background: white;
    color: #2D5016;
    border: none;
    padding: 10px 24px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.install-btn:hover {
    background: #E8F5E9;
    transform: scale(1.05);
}

.close-banner {
    background: transparent;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 4px 8px;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.close-banner:hover {
    opacity: 1;
}

/* 모바일 반응형 */
@media (max-width: 480px) {
    .install-content {
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .install-content span {
        font-size: 14px;
        text-align: center;
        width: 100%;
    }
}

/* ===================================================================
   왓츠앱 인앱 브라우저 호환성 수정
   WhatsApp In-App Browser Compatibility Fixes
   =================================================================== */

/* 왓츠앱 WebView 기본 리셋 */
html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* 언어 버튼 레이아웃 수정 - 겹침 방지 */
.nav-lang {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
    align-items: center;
    max-width: 100%;
}

.lang-btn {
    padding: 5px 10px;
    font-size: 12px;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: auto;
}

/* 네비게이션 바 왓츠앱 호환성 */
.navbar .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

/* Qibla 나침반 왓츠앱 호환성 */
.qibla-indicator {
    position: fixed;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    z-index: 999;
}

/* 왓츠앱 전용 모바일 스타일 */
@media screen and (max-width: 480px) {
    /* 기본 폰트 크기 최적화 */
    html {
        font-size: 14px;
    }
    
    body {
        padding-top: 70px;
        font-size: 14px;
        line-height: 1.5;
    }
    
    /* 기도시간 바 컴팩트화 */
    .prayer-time-bar {
        padding: 4px 0;
    }
    
    .prayer-time-content {
        font-size: 9px;
        gap: 4px;
        padding: 0 4px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .prayer-label {
        font-size: 9px;
        display: block;
        width: 100%;
        text-align: center;
        margin-bottom: 2px;
    }
    
    .prayer-time {
        font-size: 8px;
        flex-direction: row;
        gap: 2px;
    }
    
    .time-value {
        font-size: 9px;
    }
    
    /* 네비게이션 컴팩트화 */
    .navbar {
        top: 55px;
        padding: 8px 0;
    }
    
    .navbar .container {
        padding: 0 8px;
        flex-direction: column;
        gap: 6px;
    }
    
    .nav-brand {
        gap: 8px;
    }
    
    .brand-text {
        font-size: 16px;
    }
    
    .logo svg {
        width: 24px;
        height: 24px;
    }
    
    /* 언어 버튼 왓츠앱 최적화 - 겹침 방지 강화 */
    .nav-lang {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
        width: 100%;
        padding: 6px 4px;
        margin-top: 4px;
    }
    
    .lang-btn {
        padding: 6px 10px;
        font-size: 12px;
        border-radius: 4px;
        flex: 0 0 auto;
        min-width: 60px;
        text-align: center;
        background: #FFFFFF;
        border: 1px solid #E5E5E5;
        color: #666666;
        /* WhatsApp 호환: 명확한 박스 모델 */
        box-sizing: border-box;
        margin: 2px;
    }
    
    .lang-btn.active {
        background: #2D5016;
        color: #FFFFFF;
        border-color: #2D5016;
    }
    
    /* 히어로 섹션 컴팩트화 */
    .hero {
        padding-top: 140px;
        padding-bottom: 40px;
        min-height: auto;
    }
    
    .hero-title {
        font-size: 24px;
        margin-bottom: 12px;
    }
    
    .hero-subtitle {
        font-size: 14px;
        margin-bottom: 24px;
    }
    
    .halal-badge {
        padding: 6px 12px;
        font-size: 11px;
        margin-bottom: 16px;
    }
    
    .halal-badge svg {
        width: 16px;
        height: 16px;
    }
    
    /* 검색 컨테이너 컴팩트화 */
    .search-container {
        padding: 6px;
        margin-bottom: 24px;
    }
    
    .search-box {
        padding: 8px;
    }
    
    .search-input {
        font-size: 14px;
        padding: 10px;
    }
    
    .search-btn {
        padding: 10px 16px;
        font-size: 14px;
    }
    
    /* 필터 칩 컴팩트화 */
    .search-filters {
        padding: 8px;
        gap: 4px;
    }
    
    .filter-chip {
        padding: 6px 10px;
        font-size: 11px;
    }
    
    /* 신뢰 지표 컴팩트화 */
    .trust-indicators {
        gap: 16px;
        margin-top: 24px;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .trust-item {
        flex: 0 0 auto;
        min-width: 80px;
    }
    
    .trust-number {
        font-size: 28px;
        margin-bottom: 4px;
    }
    
    .trust-label {
        font-size: 11px;
    }
    
    /* Qibla 나침반 - WhatsApp에서 잘 보이도록 크기 증가 */
    .qibla-indicator {
        right: 10px;
    }
    
    .qibla-compass {
        width: 70px;
        height: 70px;
        border-width: 3px;
        box-shadow: 0 3px 15px rgba(0, 0, 0, 0.35);
    }
    
    .qibla-compass::before {
        font-size: 10px;
        top: 6px;
    }
    
    .compass-label {
        font-size: 10px;
        bottom: -20px;
        padding: 3px 8px;
    }
    
    .qibla-toggle {
        width: 32px;
        height: 32px;
    }
    
    .qibla-toggle svg {
        width: 16px;
        height: 16px;
    }
    
    /* 식당 카드 컴팩트화 */
    .restaurants-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .restaurant-card {
        padding: 12px;
    }

    .restaurant-header {
        margin-bottom: 8px;
        gap: 6px;
    }

    .restaurant-name {
        font-size: 16px !important;
        margin-top: 4px;
    }
    
    .restaurant-name-sub {
        font-size: 12px !important;
    }
    
    .restaurant-region,
    .restaurant-address,
    .restaurant-phone {
        font-size: 12px;
    }
    
    .halal-grade {
        font-size: 11px;
        padding: 3px 8px;
    }
    
    .cuisine-type {
        font-size: 11px;
    }
    
    .map-btn {
        padding: 8px 6px;
        font-size: 11px;
        gap: 4px;
    }
    
    /* 섹션 헤더 컴팩트화 */
    .section-title {
        font-size: 22px;
    }
    
    .section-subtitle {
        font-size: 14px;
    }
    
    /* CTA 섹션 컴팩트화 */
    .cta-section {
        padding: 40px 0;
    }
    
    .cta-title {
        font-size: 22px;
    }
    
    .cta-description {
        font-size: 14px;
    }
    
    /* 푸터 컴팩트화 */
    .footer {
        padding: 32px 0 16px;
    }
    
    .footer-content {
        gap: 24px;
    }
    
    .expert-guidance {
        padding: 16px 12px;
        margin: 16px 0;
    }
    
    .expert-badge {
        width: 40px;
        height: 40px;
    }
    
    .expert-name {
        font-size: 16px;
    }
    
    .expert-role {
        font-size: 12px;
    }
}

/* 매우 작은 화면 (왓츠앱 구형 WebView 대응) */
@media screen and (max-width: 360px) {
    html {
        font-size: 13px;
    }
    
    body {
        padding-top: 65px;
    }
    
    .prayer-time-content {
        font-size: 8px;
    }
    
    .navbar {
        top: 50px;
    }
    
    .lang-btn {
        padding: 5px 8px;
        font-size: 10px;
        min-width: 48px;
        margin: 2px;
    }
    
    .hero {
        padding-top: 120px;
    }
    
    .hero-title {
        font-size: 20px;
    }
    
    .trust-number {
        font-size: 24px;
    }
    
    /* Qibla - 360px 이하에서도 잘 보이도록 */
    .qibla-compass {
        width: 60px;
        height: 60px;
        border-width: 3px;
    }
    
    .qibla-compass::before {
        font-size: 9px;
    }
    
    .compass-label {
        font-size: 9px;
    }
}


/* ===================================================================
   Author Images — 모바일/왓츠앱 최적화
   =================================================================== */

/* 푸터 expert-guidance 전체 레이아웃 */
.expert-guidance-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    padding: 8px 16px;
}

/* 프로필 사진 */
.author-profile-img {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: contain;
    object-position: center center;
    background: #6b7a6b;
    border: 4px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    flex-shrink: 0;
    transition: transform 0.3s ease;
}
.author-profile-img:hover { transform: scale(1.05); }

/* 책 표지 */
.author-cover-img {
    height: 150px;
    width: auto;
    max-width: 110px;
    object-fit: cover;
    border-radius: 6px;
    border: 3px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    flex-shrink: 0;
    transition: transform 0.3s ease;
}
.author-cover-img:hover { transform: scale(1.05) rotate(1deg); }

/* 모바일 (왓츠앱 포함) — 이미지 크기 축소 */
@media screen and (max-width: 480px) {
    .expert-guidance-content {
        gap: 12px;
        padding: 8px;
    }

    .author-profile-img {
        width: 72px;
        height: 72px;
        border-width: 3px;
        object-fit: contain;
        background: #6b7a6b;
    }

    .author-cover-img {
        height: 96px;
        max-width: 68px;
        border-width: 2px;
    }

    .expert-info {
        min-width: unset;
        flex: 1;
        text-align: center;
    }

    .expert-name {
        font-size: 15px !important;
    }

    .expert-role {
        font-size: 11px !important;
    }
}

/* 초소형 화면 (360px 이하) */
@media screen and (max-width: 360px) {
    .author-profile-img {
        width: 58px;
        height: 58px;
    }

    .author-cover-img {
        height: 80px;
        max-width: 56px;
    }
}

/* 왓츠앱 다크모드 대응 */
@media (prefers-color-scheme: dark) {
    .search-container {
        background: rgba(255, 255, 255, 0.95);
    }
    
    .search-input {
        background: transparent;
        color: var(--text-primary);
    }
}

/* ===== Near Me Button & Region Filter ===== */
.filter-row {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.near-me-btn {
    flex: 1;
    padding: 10px 16px;
    border: 2px solid #388E3C;
    border-radius: 25px;
    background: #fff;
    color: #388E3C;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.near-me-btn:hover {
    background: #388E3C;
    color: #fff;
}

.near-me-btn.active {
    background: #388E3C;
    color: #fff;
}

.region-filter {
    flex: 1;
    padding: 10px 16px;
    border: 2px solid #388E3C;
    border-radius: 25px;
    background: #fff;
    color: #388E3C;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23388E3C' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 32px;
}

.region-filter:focus {
    outline: none;
    border-color: #2D5016;
}

.near-me-info {
    margin-top: 8px;
    padding: 6px 12px;
    background: #E8F5E9;
    border-radius: 20px;
    font-size: 13px;
    color: #2D5016;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Distance badge on cards */
.distance-badge {
    display: inline-block;
    background: #E8F5E9;
    color: #2D5016;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 6px;
}
