:root {
    --color-primary: #e9cc5c;
    --color-primary-light: #1A3A6B;
    --color-accent: #C9A84C;
    --color-accent-light: #E8C97A;
    --color-surface: #F7F4EF;
    --color-surface-card: #FFFFFF;
    --color-text-primary: #1A1A2E;
    --color-text-secondary: #4A5568;
    --color-text-muted: #9CA3AF;
    --color-success: #0D6E4F;
    --color-danger: #C0392B;
    --color-warning: #D97706;
    --color-border: #E2D9CC;
    --risk-low: #0D6E4F;
    --risk-medium: #D97706;
    --risk-high: #C0392B;
    --domain-realestate: #1B4F72;
    --domain-banking: #0D6E4F;
    --domain-gold: #C9A84C;
    --domain-protection: #7D3C98;
    --font-heading: 'Cairo', sans-serif;
    --font-body: 'Noto Naskh Arabic', sans-serif;
    --font-mono: 'DM Mono', monospace;
    --shadow-sm: 0 1px 4px rgba(0, 0, 0, .08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, .12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, .16);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    --transition: .22s cubic-bezier(.4, 0, .2, 1);
}

/* Task 1 — BALANCED CONTENT WIDTH */
.container,
.main-content {
    max-width: 1440px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

body {
    background-color: #F8F6F1;
    /* Matching the content background */
}

/* Indicators Row (Top Design) - COMPACT & ONE ROW */
.hp-indicators-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 0.5rem 0 1.5rem 0;
    justify-content: flex-start;
    width: 100%;
}

.hp-ind-card {
    background: linear-gradient(135deg, #1C1C2E, #2a2a3e);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 12px 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1 1 200px;
    min-width: 180px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
    color: #F5F0E8;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hp-ind-card:hover {
    transform: translateY(-3px);
    border-color: rgba(184, 150, 46, 0.4);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.18);
}

.hp-ind-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-bottom: 2px;
}

.dot-up {
    background-color: #5DCAA5;
    box-shadow: 0 0 10px rgba(93, 202, 165, 0.4);
}

.dot-down {
    background-color: #F0997B;
    box-shadow: 0 0 10px rgba(240, 153, 123, 0.4);
}

.dot-flat {
    background-color: #9CA3AF;
}

.hp-ind-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hp-ind-label {
    font-size: 10px;
    color: #B8962E;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.hp-ind-value {
    font-size: 1.4rem;
    font-weight: 800;
    color: #F5F0E8;
    white-space: nowrap;
    font-family: 'DM Mono', monospace;
}

.hp-ind-change {
    font-size: 12px;
    font-weight: 700;
    font-family: 'DM Mono', monospace;
}

.ticker-up {
    color: #5DCAA5;
}

.ticker-down {
    color: #F0997B;
}

.ticker-flat {
    color: #9CA3AF;
}

/* Nav Improvements */
.nav-section-link {
    color: #4A5568 !important;
    font-weight: 600;
    transition: all 0.2s;
}

.nav-section-link:hover {
    color: #B8962E !important;
    text-decoration: underline;
}

.nav-section-link.active {
    color: #B8962E !important;
    border-bottom: 2px solid #B8962E;
}

.nav-dropdown {
    background-color: #FFFFFF !important;
    border-top: 3px solid #B8962E !important;
    min-width: 200px;
    box-shadow: var(--shadow-lg) !important;
}

.nav-dropdown .dropdown-item {
    color: #1A1A2E !important;
    font-weight: 500;
}

.nav-dropdown .dropdown-item:hover {
    background-color: #F7F4EF !important;
    color: #B8962E !important;
}

/* Homepage Redesign Styles - LIGHT THEME COMPACT */
.hp-main-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding-top: 0;
    padding-bottom: 3rem;
}

/* Section A: Hero - MORE SMALLER */
.hp-hero-card {
    background: linear-gradient(135deg, #0D2545 0%, #1A3A6B 100%);
    border-radius: 16px;
    padding: 1.25rem 2rem;
    color: #FFFFFF;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(13, 37, 69, 0.1);
}

.hp-hero-headline {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    color: #FFFFFF;
}

.hp-hero-summary {
    font-size: 15px;
    color: #E2E8F0;
    margin-bottom: 1rem;
    line-height: 1.5;
    max-width: 800px;
}

.hp-badge-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.hp-badge-gold {
    background-color: #C9A84C;
    color: #0D2545;
}

.hp-badge-muted {
    background-color: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
}

/* Section B: Grid Cards */
.hp-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

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

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

.hp-story-card {
    background: #FFFFFF;
    border: 1px solid #E2D9CC;
    border-radius: 16px;
    padding: 1.25rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.hp-story-card:hover {
    transform: translateY(-4px);
    border-color: #C9A84C;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.hp-domain-tag {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    align-self: flex-start;
    padding: 2px 8px;
    border-radius: 4px;
}

.hp-card-headline {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    color: #1A1A2E;
}

.hp-card-summary {
    font-size: 13px;
    color: #4A5568;
    line-height: 1.5;
}

.hp-card-meta {
    font-size: 11px;
    color: #9CA3AF;
    margin-top: auto;
}

/* Section C: Decision Blocks */
.hp-decision-section {
    background: #F8F6F1;
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid #E2D9CC;
}

.hp-section-title {
    font-size: 20px;
    font-weight: 800;
    color: #0D2545;
    margin-bottom: 1.25rem;
    text-align: right;
}

.hp-decision-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.hp-decision-card {
    background: #FFFFFF;
    border-right: 4px solid #C9A84C;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
}

/* Section D: Bottom Row */
.hp-bottom-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.hp-wealth-card {
    background: #0D2545;
    border-radius: 20px;
    padding: 2rem;
    color: #FFFFFF;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

/* Alert Banner */
.hp-alert-banner {
    background: #C9A84C;
    color: #0D2545;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 10px;
    font-weight: 700;
}

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

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

    100% {
        background-position: -200% 0;
    }
}