/* ============================================
   REAL ESTATE PRO - ENHANCED THEME STYLES
   Modern, Professional & Content-Rich Design
   ============================================ */

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

:root {
    --primary-color: #1a2b4a;
    --primary-light: #2d4a7c;
    --primary-dark: #0f1a2d;
    --accent-color: #ff7a00;
    --accent-light: #ff9500;
    --accent-dark: #e66a00;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #f1f3f5;
    --border-color: #e9ecef;
    --border-light: #f1f3f5;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.08);
    --shadow-2xl: 0 24px 64px rgba(0, 0, 0, 0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

[data-theme="dark"] {
    --primary-color: #3d5a80;
    --primary-light: #5a7ba0;
    --primary-dark: #2a4260;
    --accent-color: #ff8c00;
    --accent-light: #ffa500;
    --accent-dark: #cc7000;
    --text-primary: #f3f4f6;
    --text-secondary: #d1d5db;
    --text-muted: #9ca3af;
    --bg-primary: #1a1a2e;
    --bg-secondary: #16162a;
    --bg-tertiary: #12122a;
    --border-color: #2a2a4a;
    --border-light: #2a2a4a;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-primary);
    background: var(--bg-secondary);
    min-height: 100vh;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-base);
}

a:hover {
    color: var(--accent-color);
}

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   Header Styles - Enhanced
   ============================================ */
.site-header {
    background: var(--bg-primary);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.98);
}

.header-main {
    padding: 18px 0;
    border-bottom: 1px solid var(--border-light);
    background: var(--bg-primary);
}

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

.logo h1 {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.8px;
    line-height: 1;
    transition: all var(--transition-base);
}

.logo h1:hover {
    color: var(--accent-color);
    transform: scale(1.02);
}

.main-nav {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-link {
    font-weight: 600;
    padding: 8px 16px;
    position: relative;
    color: var(--text-primary);
    font-size: 15px;
    transition: all var(--transition-base);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 6px;
}

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

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
}

.mobile-menu-toggle:hover {
    background: var(--bg-secondary);
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: all var(--transition-base);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dropdown-content {
    display: none;
    position: absolute;
    background: var(--bg-primary);
    min-width: 240px;
    box-shadow: var(--shadow-xl);
    z-index: 1000;
    border-radius: var(--radius-md);
    padding: 12px 0;
    top: 100%;
    right: 0;
    margin-top: 12px;
    border: 1px solid var(--border-color);
    animation: slideDown 0.3s ease-in-out;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    color: var(--text-primary);
    padding: 14px 24px;
    display: block;
    font-size: 15px;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.dropdown-content a:hover {
    background: linear-gradient(90deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    color: var(--accent-color);
    padding-left: 32px;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   Hero Section - Premium Design
   ============================================ */
.hero-section {
    margin-bottom: 60px;
    padding-top: 40px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.hero-main {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    height: 560px;
    box-shadow: var(--shadow-2xl);
    background: var(--primary-dark);
}

.hero-main::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(30, 58, 95, 0.95) 0%, rgba(30, 58, 95, 0.5) 50%, transparent 100%);
    z-index: 1;
}

.hero-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.hero-main:hover img {
    transform: scale(1.1);
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 50px;
    background: linear-gradient(to top, rgba(30, 58, 95, 0.98) 0%, rgba(30, 58, 95, 0.7) 50%, transparent 100%);
    color: #fff;
    z-index: 2;
}

.hero-overlay .category-badge {
    display: inline-block;
    padding: 10px 22px;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-light) 100%);
    color: #fff;
    border-radius: var(--radius-md);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 16px;
    letter-spacing: 1px;
    box-shadow: var(--shadow-lg);
}

.hero-overlay h2 {
    font-size: 42px;
    font-weight: 900;
    margin-bottom: 16px;
    line-height: 1.2;
    text-shadow: 0 4px 12px rgba(0,0,0,0.4);
    letter-spacing: -1px;
}

.hero-meta {
    font-size: 15px;
    opacity: 0.95;
    display: flex;
    align-items: center;
    gap: 20px;
    font-weight: 600;
}

.hero-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.hero-sub {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.hero-sub-item {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    height: 265px;
    box-shadow: var(--shadow-xl);
    background: var(--primary-dark);
}

.hero-sub-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(30, 58, 95, 0.9) 0%, rgba(30, 58, 95, 0.4) 60%, transparent 100%);
    z-index: 1;
}

.hero-sub-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.hero-sub-item:hover img {
    transform: scale(1.1);
}

.hero-sub-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 28px;
    background: linear-gradient(to top, rgba(30, 58, 95, 0.95) 0%, rgba(30, 58, 95, 0.5) 70%, transparent 100%);
    color: #fff;
    z-index: 2;
}

.hero-sub-overlay h3 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 8px;
    line-height: 1.3;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    letter-spacing: -0.5px;
}

.hero-sub-overlay .meta-info {
    font-size: 13px;
    opacity: 0.9;
    font-weight: 500;
}

/* ============================================
   Category Bar - Modern Pills
   ============================================ */
.category-bar {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    margin-bottom: 40px;
    padding: 12px 0 16px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 12px 16px;
}

.category-bar::-webkit-scrollbar {
    display: none;
}

.category-pill {
    background: var(--bg-primary);
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    border: 1px solid var(--border-color);
    flex-shrink: 0;
    font-size: 14px;
    letter-spacing: 0.2px;
}

.category-pill:hover {
    background: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.category-pill.active {
    background: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
    box-shadow: var(--shadow-md);
}

/* ============================================
   Layout & Main Content
   ============================================ */
.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 50px;
    margin-bottom: 70px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-light);
}

.section-title {
    font-size: 32px;
    font-weight: 900;
    color: var(--primary-color);
    position: relative;
    margin: 0;
    letter-spacing: -1px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -22px;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color) 0%, var(--accent-light) 100%);
    border-radius: 2px;
}

.view-all {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.view-all:hover {
    background: var(--accent-color);
    color: #fff;
}

/* ============================================
   Article List - Enhanced Cards
   ============================================ */
.article-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.article-card-row {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 0;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    border: 1px solid var(--border-color);
}

.article-card-row:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
    border-color: var(--accent-color);
}

.article-card-row .img-wrapper {
    height: 100%;
    min-height: 280px;
    overflow: hidden;
    position: relative;
}

.article-card-row .img-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, transparent 70%, rgba(0,0,0,0.1) 100%);
    z-index: 1;
}

.article-card-row img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.article-card-row:hover img {
    transform: scale(1.15);
}

.article-card-content {
    padding: 32px 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.meta-tag {
    display: inline-block;
    padding: 8px 18px;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-light) 100%);
    color: #fff;
    border-radius: var(--radius-md);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 16px;
    align-self: flex-start;
    letter-spacing: 0.8px;
    box-shadow: var(--shadow-sm);
}

.article-card-content h3 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 14px;
    line-height: 1.35;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.article-card-content h3 a:hover {
    color: var(--accent-color);
}

.article-card-content p {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.75;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    color: var(--text-muted);
    margin-top: auto;
    font-weight: 600;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
}

.article-footer span {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ============================================
   Sidebar Widgets - Enhanced
   ============================================ */
.sidebar-widget {
    background: var(--bg-primary);
    padding: 32px;
    border-radius: var(--radius-lg);
    margin-bottom: 32px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: all var(--transition-base);
}

.sidebar-widget:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
}

.widget-title {
    font-size: 22px;
    font-weight: 900;
    margin-bottom: 26px;
    padding-bottom: 18px;
    border-bottom: 2px solid var(--border-light);
    position: relative;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color) 0%, var(--accent-light) 100%);
    border-radius: 2px;
}

.widget-empty {
    text-align: center;
    padding: 30px 20px;
    color: var(--text-muted);
    font-size: 15px;
    font-weight: 500;
}

.widget-categories {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.category-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    border: 1px solid var(--border-color);
    text-decoration: none;
}

.category-item:hover {
    background: var(--accent-color);
    color: #fff;
    transform: translateX(8px);
    border-color: var(--accent-color);
}

.category-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.category-name {
    font-weight: 600;
    font-size: 15px;
    color: var(--text-primary);
    flex: 1;
    margin-left: 12px;
}

.category-item:hover .category-name {
    color: #fff;
}

.category-count {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    background: var(--bg-primary);
    padding: 4px 10px;
    border-radius: 20px;
    min-width: 30px;
    text-align: center;
}

.category-item:hover .category-count {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* Trending/Hot List */
.trending-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.trending-item {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-light);
    transition: all var(--transition-base);
}

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

.trending-item:hover {
    transform: translateX(8px);
}

.trending-number {
    font-size: 32px;
    font-weight: 900;
    color: var(--border-color);
    line-height: 1;
    min-width: 36px;
    font-family: Georgia, serif;
    transition: all var(--transition-base);
}

.trending-item:nth-child(-n+3) .trending-number {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.trending-content h4 {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.45;
    margin-bottom: 8px;
    color: var(--primary-color);
    letter-spacing: -0.3px;
}

.trending-content h4:hover {
    color: var(--accent-color);
}

.trending-meta {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
}

.trending-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Newsletter Widget */
.newsletter-widget {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: #fff;
    border: none;
}

.newsletter-widget .widget-title {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
}

.newsletter-widget .widget-title::after {
    background: linear-gradient(90deg, var(--accent-color) 0%, var(--accent-light) 100%);
}

.newsletter-desc {
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 24px;
    font-weight: 500;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.newsletter-input {
    padding: 16px 20px;
    border-radius: var(--radius-md);
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    transition: all var(--transition-base);
    width: 100%;
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.2);
}

.newsletter-btn {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-light) 100%);
    color: #fff;
    border: none;
    padding: 16px 24px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all var(--transition-base);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    box-shadow: var(--shadow-md);
}

.newsletter-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
    background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent-color) 100%);
}

/* Advertisement Widget */
.ad-widget {
    background: var(--bg-secondary);
    border: 2px dashed var(--border-color);
}

.ad-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 16px;
    text-align: center;
}

.ad-placeholder {
    background: var(--bg-tertiary);
    padding: 100px 24px;
    text-align: center;
    color: var(--text-muted);
    font-weight: 700;
    border-radius: var(--radius-md);
}

/* ============================================
   Footer - Premium Design
   ============================================ */
.site-footer {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    color: rgba(255, 255, 255, 0.8);
    margin-top: auto;
}

.footer-main {
    padding: 80px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
}

.footer-col h3 {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 26px;
    letter-spacing: -0.5px;
}

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

.footer-col ul li {
    margin-bottom: 14px;
}

.footer-col ul li a {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    transition: all var(--transition-base);
    padding: 4px 0;
    display: block;
}

.footer-col ul li a:hover {
    color: var(--accent-color);
    transform: translateX(8px);
}

.footer-bottom {
    padding: 30px 0;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
}

/* ============================================
   Breadcrumb Navigation
   ============================================ */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 24px 0;
    font-size: 15px;
    color: var(--text-muted);
    flex-wrap: wrap;
    font-weight: 600;
}

.breadcrumb a {
    color: var(--text-secondary);
    transition: color var(--transition-base);
    padding: 4px 0;
}

.breadcrumb a:hover {
    color: var(--accent-color);
}

.breadcrumb span:last-child {
    color: var(--primary-color);
    font-weight: 700;
}

/* ============================================
   Article Detail Page - Premium Reading
   ============================================ */
.article-detail {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: 60px;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
}

.article-header {
    margin-bottom: 50px;
    padding-bottom: 40px;
    border-bottom: 2px solid var(--border-light);
}

.article-header .category-badge {
    display: inline-block;
    padding: 10px 24px;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-light) 100%);
    color: #fff;
    border-radius: var(--radius-md);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 24px;
    letter-spacing: 1px;
    box-shadow: var(--shadow-md);
}

.article-header h1 {
    font-size: 48px;
    font-weight: 900;
    line-height: 1.2;
    color: var(--primary-color);
    margin-bottom: 24px;
    letter-spacing: -1.2px;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 16px;
    color: var(--text-muted);
    font-weight: 600;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-body {
    font-size: 19px;
    line-height: 1.85;
    color: var(--text-primary);
}

.article-body h2 {
    font-size: 36px;
    font-weight: 900;
    color: var(--primary-color);
    margin-top: 50px;
    margin-bottom: 24px;
    letter-spacing: -0.8px;
}

.article-body h3 {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary-light);
    margin-top: 40px;
    margin-bottom: 20px;
    letter-spacing: -0.6px;
}

.article-body p {
    margin-bottom: 24px;
}

.article-body img {
    border-radius: var(--radius-lg);
    margin: 40px 0;
    box-shadow: var(--shadow-xl);
}

.article-body ul, .article-body ol {
    margin: 24px 0;
    padding-left: 36px;
}

.article-body li {
    margin-bottom: 14px;
    line-height: 1.8;
}

.article-body blockquote {
    border-left: 5px solid var(--accent-color);
    padding: 24px 32px;
    margin: 40px 0;
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    font-style: italic;
    color: var(--text-secondary);
    font-size: 18px;
    font-weight: 500;
}

.article-body a {
    color: var(--accent-color);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.article-body a:hover {
    color: var(--accent-dark);
}

/* ============================================
   Related Articles Section
   ============================================ */
.related-articles {
    margin-top: 70px;
    padding-top: 60px;
    border-top: 3px solid var(--border-light);
}

.related-articles h2 {
    font-size: 32px;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 40px;
    letter-spacing: -1px;
    position: relative;
    padding-bottom: 18px;
}

.related-articles h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color) 0%, var(--accent-light) 100%);
    border-radius: 2px;
}

/* ============================================
   Article Grid Layout (Category/Search)
   ============================================ */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 36px;
    margin-bottom: 50px;
}

.article-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    border: 1px solid var(--border-color);
}

.article-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-2xl);
    border-color: var(--accent-color);
}

.article-image {
    display: block;
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/11;
}

.article-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 70%, rgba(0,0,0,0.3) 100%);
    z-index: 1;
    transition: all var(--transition-base);
}

.article-card:hover .article-image::before {
    background: linear-gradient(to bottom, transparent 60%, rgba(0,0,0,0.5) 100%);
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.article-card:hover .article-image img {
    transform: scale(1.15);
}

.article-content {
    padding: 28px;
}

.article-content .category-badge {
    display: inline-block;
    padding: 8px 18px;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-light) 100%);
    color: #fff;
    border-radius: var(--radius-md);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 14px;
    letter-spacing: 0.8px;
}

.article-content h3 {
    font-size: 20px;
    font-weight: 800;
    line-height: 1.4;
    color: var(--primary-color);
    margin-bottom: 14px;
    letter-spacing: -0.5px;
}

.article-content h3 a:hover {
    color: var(--accent-color);
}

.article-content p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 16px;
}

.article-content .article-meta {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ============================================
   Category Header
   ============================================ */
.category-header {
    text-align: center;
    padding: 60px 0;
    margin-bottom: 50px;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
}

.category-header h1 {
    font-size: 52px;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 18px;
    letter-spacing: -1.2px;
}

.category-header p {
    font-size: 19px;
    color: var(--text-secondary);
    max-width: 750px;
    margin: 0 auto;
    line-height: 1.7;
    font-weight: 500;
}

/* ============================================
   Pagination
   ============================================ */
.pagination {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 60px;
}

.pagination .page-link {
    padding: 14px 24px;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    border-radius: var(--radius-md);
    font-weight: 700;
    transition: all var(--transition-base);
    min-width: 50px;
    text-align: center;
}

.pagination .page-link:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-light) 100%);
    color: #fff;
    border-color: var(--accent-color);
    box-shadow: var(--shadow-md);
}

/* ============================================
   Contact Page - Modern Design
   ============================================ */
.contact-page {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: 50px;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
}

.contact-header {
    text-align: center;
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 2px solid var(--border-light);
}

.contact-header h1 {
    font-size: 42px;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.contact-header p {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

.success-message {
    display: flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border: 2px solid var(--success-color);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    margin-bottom: 30px;
}

.success-message span {
    font-size: 28px;
}

.success-message p {
    color: #065f46;
    font-weight: 600;
    margin: 0;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-group label {
    font-weight: 700;
    font-size: 14px;
    color: var(--text-primary);
    letter-spacing: 0.3px;
}

.form-group input,
.form-group textarea {
    padding: 16px 20px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    background: var(--bg-secondary);
    transition: all var(--transition-base);
    font-family: inherit;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background: var(--bg-primary);
    box-shadow: 0 0 0 4px rgba(255, 122, 0, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-light) 100%);
    color: #fff;
    border: none;
    padding: 18px 32px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all var(--transition-base);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    box-shadow: var(--shadow-md);
    margin-top: 10px;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
    background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent-color) 100%);
}

.submit-btn:active {
    transform: translateY(-1px);
}

/* ============================================
   About Page - Modern Design
   ============================================ */
.about-page {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: 50px;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
}

.about-hero {
    text-align: center;
    margin-bottom: 50px;
    padding-bottom: 40px;
    border-bottom: 2px solid var(--border-light);
}

.about-hero h1 {
    font-size: 48px;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 16px;
    letter-spacing: -1.2px;
}

.about-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
    font-weight: 500;
}

.about-section {
    margin-bottom: 50px;
}

.about-section:last-child {
    margin-bottom: 0;
}

.about-section h2 {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 24px;
    letter-spacing: -0.8px;
    position: relative;
    padding-bottom: 12px;
}

.about-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color) 0%, var(--accent-light) 100%);
    border-radius: 2px;
}

.about-section p {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

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

.feature-card {
    background: var(--bg-secondary);
    padding: 28px;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all var(--transition-base);
    border: 1px solid var(--border-color);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent-color);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.feature-card p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

.values-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
}

.value-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    border: 1px solid var(--border-color);
}

.value-item:hover {
    background: var(--bg-tertiary);
    border-color: var(--accent-color);
    transform: translateX(8px);
}

.value-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-light) 100%);
    color: #fff;
    border-radius: 50%;
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
}

.value-content h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
    letter-spacing: -0.3px;
}

.value-content p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-light) 100%);
    color: #fff;
    padding: 18px 36px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 16px;
    transition: all var(--transition-base);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    box-shadow: var(--shadow-md);
    margin-top: 10px;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
    background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent-color) 100%);
}

.cta-button:active {
    transform: translateY(-1px);
}

/* ============================================
   Policy Pages (Privacy & Terms) - Modern Design
   ============================================ */
.policy-page {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: 50px;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
}

.policy-hero {
    text-align: center;
    margin-bottom: 50px;
    padding-bottom: 40px;
    border-bottom: 2px solid var(--border-light);
}

.policy-hero h1 {
    font-size: 48px;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 12px;
    letter-spacing: -1.2px;
}

.policy-subtitle {
    font-size: 16px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.policy-section {
    margin-bottom: 45px;
}

.policy-section:last-child {
    margin-bottom: 0;
}

.policy-section h2 {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 20px;
    letter-spacing: -0.6px;
    position: relative;
    padding-bottom: 12px;
}

.policy-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color) 0%, var(--accent-light) 100%);
    border-radius: 2px;
}

.policy-section p {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.policy-section p:last-child {
    margin-bottom: 0;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    border: 1px solid var(--border-color);
}

.info-item:hover {
    background: var(--bg-tertiary);
    border-color: var(--accent-color);
    transform: translateX(8px);
}

.info-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.info-content h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
    letter-spacing: -0.3px;
}

.info-content p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

.policy-list {
    list-style: none;
    padding: 0;
    margin: 24px 0 0;
}

.policy-list li {
    position: relative;
    padding-left: 32px;
    margin-bottom: 16px;
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-secondary);
}

.policy-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--accent-color);
    font-weight: 700;
    font-size: 16px;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-light) 100%);
    color: #fff;
    padding: 16px 28px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 15px;
    transition: all var(--transition-base);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-md);
    margin-top: 10px;
}

.contact-link:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
    background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent-color) 100%);
}

.contact-link:active {
    transform: translateY(-1px);
}
@media (max-width: 1200px) {
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
    .hero-main {
        height: 480px;
    }
    .hero-sub {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
    .hero-sub-item {
        height: 240px;
    }
    .section-title {
        font-size: 28px;
    }
    .article-card-row {
        grid-template-columns: 320px 1fr;
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
    .article-detail {
        padding: 50px 40px;
    }
    .article-header h1 {
        font-size: 40px;
    }
    .article-body {
        font-size: 18px;
    }
    .article-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 30px;
    }
    .contact-page {
        padding: 40px 35px;
    }
    .contact-header h1 {
        font-size: 36px;
    }
    .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .about-page {
        padding: 40px 35px;
    }
    .about-hero h1 {
        font-size: 38px;
    }
    .about-subtitle {
        font-size: 18px;
    }
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }
    .mobile-menu-toggle {
        display: flex;
    }
    .hero-main {
        height: 400px;
    }
    .hero-sub {
        grid-template-columns: 1fr;
    }
    .article-card-row {
        grid-template-columns: 1fr;
    }
    .article-card-row .img-wrapper {
        height: 260px;
        min-height: 260px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }
    .section-title {
        font-size: 24px;
    }
    .article-card-content h3 {
        font-size: 20px;
    }
    .article-detail {
        padding: 40px 30px;
        border-radius: var(--radius-lg);
    }
    .article-header h1 {
        font-size: 32px;
    }
    .article-body {
        font-size: 17px;
    }
    .article-body h2 {
        font-size: 28px;
    }
    .article-body h3 {
        font-size: 24px;
    }
    .category-header h1 {
        font-size: 38px;
    }
    .category-header {
        padding: 40px 30px;
    }
    .article-grid {
        grid-template-columns: 1fr;
    }
    .container {
        padding: 0 20px;
    }
    .contact-page {
        padding: 35px 25px;
    }
    .contact-header h1 {
        font-size: 30px;
    }
    .contact-header p {
        font-size: 16px;
    }
    .submit-btn {
        padding: 16px 24px;
        font-size: 15px;
    }
    .about-page {
        padding: 35px 25px;
    }
    .about-hero h1 {
        font-size: 32px;
    }
    .about-subtitle {
        font-size: 16px;
    }
    .about-section h2 {
        font-size: 26px;
    }
    .features-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .value-item {
        flex-direction: column;
        text-align: center;
    }
    .cta-button {
        width: 100%;
    }
    .policy-page {
        padding: 35px 25px;
    }
    .policy-hero h1 {
        font-size: 32px;
    }
    .policy-section h2 {
        font-size: 22px;
    }
    .info-item {
        flex-direction: column;
        text-align: center;
    }
    .policy-list li {
        font-size: 16px;
    }
    .contact-link {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 28px;
    }
    .hero-overlay h2 {
        font-size: 28px;
    }
    .article-header h1 {
        font-size: 26px;
    }
    .category-header h1 {
        font-size: 32px;
    }
    .article-card-content {
        padding: 24px;
    }
    .article-detail {
        padding: 30px 20px;
    }
    .footer-main {
        padding: 50px 0;
    }
    .contact-page {
        padding: 30px 20px;
    }
    .contact-header h1 {
        font-size: 26px;
    }
    .form-group input,
    .form-group textarea {
        padding: 14px 16px;
    }
    .about-page {
        padding: 30px 20px;
    }
    .about-hero h1 {
        font-size: 28px;
    }
    .about-subtitle {
        font-size: 15px;
    }
    .about-section h2 {
        font-size: 22px;
    }
    .about-section p {
        font-size: 15px;
    }
    .feature-card {
        padding: 24px;
    }
    .feature-icon {
        font-size: 40px;
    }
    .feature-card h3 {
        font-size: 18px;
    }
    .value-item {
        padding: 16px;
    }
    .policy-page {
        padding: 30px 20px;
    }
    .policy-hero h1 {
        font-size: 28px;
    }
    .policy-section h2 {
        font-size: 20px;
    }
    .policy-section p {
        font-size: 15px;
    }
    .info-item {
        padding: 20px;
    }
    .info-icon {
        font-size: 28px;
    }
    .info-content h4 {
        font-size: 16px;
    }
    .info-content p {
        font-size: 14px;
    }
    .policy-list li {
        font-size: 15px;
        padding-left: 28px;
    }
    .policy-list li::before {
        font-size: 14px;
    }
}

/* ============================================
   Theme Toggle Button
   ============================================ */
.theme-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
    font-size: 18px;
}

.theme-toggle:hover {
    background: var(--bg-tertiary);
    border-color: var(--accent-color);
    transform: scale(1.05);
}

.theme-icon-moon,
.theme-icon-sun {
    transition: all var(--transition-base);
}

[data-theme="dark"] .theme-icon-moon {
    display: none;
}

:not([data-theme="dark"]) .theme-icon-sun {
    display: none;
}

/* ============================================
   Reading Progress Bar
   ============================================ */
.reading-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color) 0%, var(--accent-light) 100%);
    width: 0;
    z-index: 9999;
    transition: width 0.1s ease;
    box-shadow: 0 2px 10px rgba(255, 122, 0, 0.3);
}

/* ============================================
   Back to Top Button
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-light) 100%);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
    background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent-color) 100%);
}

/* ============================================
   Enhanced Mobile Menu
   ============================================ */
.main-nav.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    padding: 20px;
    box-shadow: var(--shadow-xl);
    border-top: 2px solid var(--border-color);
    animation: slideDown 0.3s ease-in-out;
}

.main-nav.active .nav-link {
    padding: 12px 16px;
    border-radius: var(--radius-md);
}

.main-nav.active .nav-link:hover {
    background: var(--bg-secondary);
}

/* ============================================
   Social Sharing Buttons
   ============================================ */
.social-share {
    display: flex;
    gap: 12px;
    margin: 30px 0;
    padding: 24px 0;
    border-top: 2px solid var(--border-light);
    border-bottom: 2px solid var(--border-light);
}

.social-share-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: 16px;
    padding-top: 8px;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    color: #fff;
    text-decoration: none;
    font-size: 20px;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.share-btn:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.share-btn.facebook { background: #1877f2; }
.share-btn.twitter { background: #1da1f2; }
.share-btn.linkedin { background: #0a66c2; }
.share-btn.whatsapp { background: #25d366; }
.share-btn.pinterest { background: #bd081c; }

.share-btn.facebook:hover { background: #0d65d9; }
.share-btn.twitter:hover { background: #0c85d0; }
.share-btn.linkedin:hover { background: #084b8c; }
.share-btn.whatsapp:hover { background: #1ebe57; }
.share-btn.pinterest:hover { background: #960616; }

/* ============================================
   Enhanced Article Reading Experience
   ============================================ */
.article-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding: 16px 20px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.font-size-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.font-size-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.font-size-btn {
    width: 36px;
    height: 36px;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
}

.font-size-btn:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: scale(1.1);
}

.article-body.enhanced-readability {
    font-size: 20px;
    line-height: 2;
    letter-spacing: 0.01em;
}

/* ============================================
   Live Search Suggestions
   ============================================ */
.search-container {
    position: relative;
    max-width: 600px;
    margin: 40px auto;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    width: 100%;
    padding: 18px 24px;
    padding-right: 60px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-xl);
    font-size: 16px;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md);
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(255, 122, 0, 0.1);
}

.search-icon {
    position: absolute;
    right: 20px;
    font-size: 22px;
    color: var(--text-muted);
    pointer-events: none;
}

.search-suggestions {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-2xl);
    border: 1px solid var(--border-color);
    z-index: 100;
    display: none;
    max-height: 400px;
    overflow-y: auto;
}

.search-suggestions.active {
    display: block;
    animation: slideDown 0.2s ease-in-out;
}

.suggestion-item {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-light);
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 16px;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background: var(--bg-secondary);
}

.suggestion-image {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    object-fit: cover;
    flex-shrink: 0;
}

.suggestion-content {
    flex: 1;
    min-width: 0;
}

.suggestion-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.suggestion-meta {
    font-size: 13px;
    color: var(--text-muted);
}

.suggestion-category {
    display: inline-block;
    padding: 4px 10px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-left: 8px;
}

/* ============================================
   Real Estate Special Features
   ============================================ */
.market-data-widget {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    padding: 32px;
    border-radius: var(--radius-lg);
    margin-bottom: 40px;
    border: 2px solid var(--border-color);
}

.market-data-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.market-data-header h3 {
    font-size: 24px;
    font-weight: 900;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.market-data-last-update {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 600;
}

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

.data-card {
    background: var(--bg-primary);
    padding: 24px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    transition: all var(--transition-base);
}

.data-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

.data-card-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.data-card-value {
    font-size: 28px;
    font-weight: 900;
    color: var(--primary-color);
    line-height: 1;
}

.data-card-change {
    font-size: 14px;
    font-weight: 700;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.data-card-change.positive { color: var(--success-color); }
.data-card-change.negative { color: var(--danger-color); }

.calculator-widget {
    background: var(--bg-primary);
    padding: 40px;
    border-radius: var(--radius-xl);
    margin-bottom: 40px;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
}

.calculator-title {
    font-size: 28px;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 32px;
    text-align: center;
    letter-spacing: -0.6px;
}

.calculator-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.calc-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.calc-form-group label {
    font-weight: 700;
    font-size: 14px;
    color: var(--text-primary);
}

.calc-form-group input {
    padding: 16px 20px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 16px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    transition: all var(--transition-base);
}

.calc-form-group input:focus {
    outline: none;
    border-color: var(--accent-color);
    background: var(--bg-primary);
}

.calc-result {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    padding: 32px;
    border-radius: var(--radius-lg);
    color: #fff;
    text-align: center;
}

.calc-result-label {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    opacity: 0.9;
}

.calc-result-value {
    font-size: 48px;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 8px;
}

.calc-result-detail {
    font-size: 15px;
    opacity: 0.85;
}

.map-widget {
    background: var(--bg-primary);
    padding: 32px;
    border-radius: var(--radius-xl);
    margin-bottom: 40px;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
}

.map-widget h3 {
    font-size: 24px;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}

.map-placeholder {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    border: 2px dashed var(--border-color);
}

.map-placeholder-icon {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.map-placeholder-text {
    font-size: 18px;
    font-weight: 600;
}

.map-placeholder-sub {
    font-size: 14px;
    margin-top: 8px;
    opacity: 0.7;
}

/* ============================================
   Accessibility Improvements
   ============================================ */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

:focus-visible {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}

/* ============================================
   Loading Spinner
   ============================================ */
.spinner {
    border: 4px solid var(--border-light);
    border-top: 4px solid var(--accent-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ============================================
   Dark Mode Specific Styles
   ============================================ */
[data-theme="dark"] .site-header {
    background: rgba(26, 26, 46, 0.98);
}

[data-theme="dark"] .hero-overlay {
    background: linear-gradient(to top, rgba(20, 30, 50, 0.98) 0%, rgba(20, 30, 50, 0.7) 50%, transparent 100%);
}

[data-theme="dark"] .hero-sub-overlay {
    background: linear-gradient(to top, rgba(20, 30, 50, 0.95) 0%, rgba(20, 30, 50, 0.5) 70%, transparent 100%);
}

[data-theme="dark"] .site-footer {
    background: linear-gradient(135deg, #0a0a15 0%, #151525 100%);
}

[data-theme="dark"] .article-detail,
[data-theme="dark"] .contact-page,
[data-theme="dark"] .about-page,
[data-theme="dark"] .policy-page {
    background: var(--bg-primary);
}

.savePrompt {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.85rem;
    border-radius: 9999px;
    border: 1px solid rgba(37, 99, 235, 0.35);
    background: rgba(59, 130, 246, 0.12);
    color: #1d4ed8;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    transition: all 0.2s ease;
}

.savePrompt:hover {
    border-color: #2563eb;
    background: rgba(59, 130, 246, 0.18);
    color: #1e40af;
    box-shadow: 0 6px 12px -8px rgba(37, 99, 235, 0.6);
}

.savePromptIcon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
