/**
 * RISP Minimalist Landing Page
 * Clean, compact, data-driven interface
 */

/* ========================================
   MINIMAL DESIGN SYSTEM
   ======================================== */
:root {
    --primary: #8b4513;
    --primary-dark: #7a3d11;
    --primary-light: #a0522d;
    --accent: #d2691e;
    --accent-dark: #b8651b;
    --secondary: #1e293b;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--gray-900);
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    background-attachment: fixed;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}

.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}

/* ========================================
   NAVIGATION - Minimal
   ======================================== */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    width: 100%;
}

@media (min-width: 768px) {
    .nav-container {
        padding: 0 2rem;
    }
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--secondary);
}

.logo-img {
    height: 40px;
}

.logo-divider {
    width: 1px;
    height: 32px;
    background: var(--gray-300);
}

.logo-text {
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--primary);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link {
    padding: 0.5rem 0.875rem;
    color: var(--gray-700);
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s;
}

.nav-link:hover {
    background: var(--gray-100);
    color: var(--gray-900);
}

.btn-nav {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.875rem;
}

.btn-login {
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
}

.btn-login:hover {
    background: var(--gray-100);
}

.btn-register {
    background: var(--primary);
    color: white;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
}

.btn-register:hover {
    background: var(--primary-dark);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    transform: translateY(-1px);
}

/* ========================================
   HERO - Professional Medical Regulation
   ======================================== */
.hero {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    padding: 0;
    position: relative;
    overflow: hidden;
    min-height: 600px;
}

/* Two Column Grid */
.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 1400px;
    margin: 0 auto;
    min-height: auto;
    width: 100%;
}

@media (min-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr 1fr;
        min-height: 600px;
    }
}

/* Left Panel - Search Components */
.hero-left {
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: white;
    width: 100%;
}

@media (min-width: 768px) {
    .hero-left {
        padding: 3rem 2rem;
    }
}

@media (min-width: 1024px) {
    .hero-left {
        padding: 4rem 3rem;
    }
}

/* Right Panel - Images */
.hero-right {
    position: relative;
    background: #f8fafc;
    overflow: hidden;
    min-height: 300px;
    display: none;
}

@media (min-width: 1024px) {
    .hero-right {
        display: block;
    }
}

/* Image Slider in Right Panel */
.hero-image-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slider-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.slider-image.active {
    opacity: 0.85;
}

/* Placeholder if no images */
.hero-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--gray-400);
}

.hero-placeholder svg {
    margin-bottom: 1rem;
}

.hero-placeholder p {
    font-size: 1rem;
    color: var(--gray-500);
}

.hero-background,
.hero-overlay {
    display: none;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.tagline {
    font-size: 1.125rem;
    color: var(--gray-600);
    margin-bottom: 2rem;
    font-weight: 400;
}

/* Enhanced Search Box */
.search-box {
    margin-bottom: 2.5rem;
    position: relative;
}

.search-wrapper {
    display: flex;
    align-items: center;
    background: white;
    border: 2px solid #000;
    border-radius: 12px;
    padding: 0.875rem 1.25rem;
    transition: all 0.3s;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.search-wrapper:focus-within {
    border-color: #000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
}

.search-icon-mini {
    color: #000;
    flex-shrink: 0;
    margin-right: 1rem;
    width: 22px;
    height: 22px;
}

.search-input-mini {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    padding: 0.5rem;
    color: var(--gray-900);
    font-weight: 400;
}

.search-input-mini::placeholder {
    color: var(--gray-400);
    font-weight: 400;
}

.search-btn-mini {
    background: #000;
    color: white;
    border: none;
    padding: 0.875rem 2.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.search-btn-mini:hover {
    background: #333;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transform: translateY(-1px);
}

.search-btn-mini:active {
    transform: translateY(0);
}

/* Search Suggestions Dropdown */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid var(--primary);
    border-top: none;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.search-suggestions.active {
    display: block;
}

.suggestion-item {
    padding: 1rem 1.25rem;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 1px solid var(--gray-100);
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover,
.suggestion-item.selected {
    background: var(--gray-50);
}

.suggestion-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.suggestion-details {
    display: flex;
    gap: 1rem;
    font-size: 0.8125rem;
    color: var(--gray-600);
}

.suggestion-manufacturer {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.suggestion-reg {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-family: 'Courier New', monospace;
}

.suggestion-status {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.suggestion-status.approved {
    background: #d1fae5;
    color: #065f46;
}

.suggestion-status.pending {
    background: #fef3c7;
    color: #92400e;
}

.suggestion-loading {
    padding: 1rem;
    text-align: center;
    color: var(--gray-500);
    font-size: 0.875rem;
}

.suggestion-no-results {
    padding: 1rem;
    text-align: center;
    color: var(--gray-500);
    font-size: 0.875rem;
}

/* Quick Links */
.quick-links {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1.25rem;
}

.quick-link {
    padding: 0.5rem 0.875rem;
    background: white;
    color: #000;
    border: 1px solid #000;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.2s;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.quick-link:hover {
    background: #000;
    color: white;
    border-color: #000;
    transform: translateY(-1px);
}

/* App Description */
.app-description {
    margin-top: 2.5rem;
    padding: 1.75rem;
    background: var(--gray-50);
    border-left: 4px solid var(--primary);
    border-radius: 8px;
}

.app-description p {
    font-size: 0.9375rem;
    color: var(--gray-700);
    line-height: 1.8;
    margin: 0;
}

.scroll-indicator {
    display: none;
}

/* ========================================
   STATISTICS SECTION
   ======================================== */
.stats-section {
    padding: 4rem 0;
    background: white;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.stat-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    padding: 1rem 0.75rem;
    text-align: center;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.slider-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.9) 0%, 
        rgba(255, 255, 255, 0.5) 20%, 
        rgba(255, 255, 255, 0.2) 50%, 
        rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

.stat-card:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.12);
    transform: translateY(-4px);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-icon {
    font-size: 1.25rem;
    margin-bottom: 0.375rem;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.6875rem;
    color: var(--gray-600);
    font-weight: 500;
    line-height: 1.3;
}

.stat-trend {
    font-size: 0.625rem;
    color: var(--gray-500);
    margin-top: 0.25rem;
}

.stat-trend.positive {
    color: var(--success);
}

/* ========================================
   DATA SECTION - Tables
   ======================================== */
.data-section {
    margin-bottom: 3rem;
}

.section-header-mini {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.section-header-mini h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
}

.view-all-link {
    font-size: 0.875rem;
    color: var(--primary);
    font-weight: 600;
    transition: all 0.2s;
}

.view-all-link:hover {
    color: var(--primary-dark);
    background: rgba(139, 69, 19, 0.1);
    transform: translateX(4px);
}

.data-table-wrapper {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead {
    background: var(--gray-50);
}

.data-table th {
    padding: 0.875rem 1rem;
    text-align: left;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--gray-700);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--gray-200);
}

.data-table td {
    padding: 1rem;
    font-size: 0.875rem;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-100);
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

.data-table tbody tr:hover {
    background: var(--gray-50);
}

/* Table Badges */
.id-badge {
    font-family: 'Courier New', monospace;
    font-size: 0.8125rem;
    color: var(--gray-600);
    background: var(--gray-100);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.type-badge {
    display: inline-block;
    padding: 0.25rem 0.625rem;
    background: var(--info);
    color: white;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.625rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-approved {
    background: #d1fae5;
    color: #065f46;
}

.status-review {
    background: #fef3c7;
    color: #92400e;
}

.status-pending {
    background: #e0e7ff;
    color: #3730a3;
}

/* ========================================
   CHARTS SECTION
   ======================================== */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
}

.chart-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s;
}

.chart-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.chart-card h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
}

/* Bar Chart */
.chart-bars {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.bar-item {
    display: grid;
    grid-template-columns: 80px 1fr 50px;
    align-items: center;
    gap: 1rem;
}

.bar-label {
    font-size: 0.875rem;
    color: var(--gray-700);
    font-weight: 500;
}

.bar-track {
    background: var(--gray-100);
    height: 24px;
    border-radius: 12px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 12px;
    transition: width 1s ease;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
}

.bar-value {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-700);
    text-align: right;
}

/* Country List */
.country-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.country-item {
    display: grid;
    grid-template-columns: 40px 40px 1fr auto;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--gray-50);
    border-radius: 8px;
    transition: all 0.2s;
}

.country-item:hover {
    background: var(--gray-100);
}

.country-rank {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--gray-500);
    text-align: center;
}

.country-flag {
    font-size: 1.5rem;
}

.country-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700);
}

.country-count {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--gray-900);
    background: white;
    padding: 0.25rem 0.625rem;
    border-radius: 12px;
}

/* ========================================
   QUICK ACCESS
   ======================================== */
.quick-access {
    padding: 4rem 0;
    background: var(--gray-50);
}

.section-header-mini {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header-mini h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.about-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.about-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
    box-shadow: 0 4px 12px rgba(139, 69, 19, 0.2);
}

.about-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.about-card p {
    color: var(--gray-600);
    line-height: 1.7;
    font-size: 0.9375rem;
}

/* ========================================
   PLATFORM FEATURES
   ======================================== */
.features {
    padding: 4rem 0;
    background: white;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--gray-600);
}

.features-tabs {
    max-width: 1200px;
    margin: 0 auto;
}

.tabs-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 0.75rem 2rem;
    background: var(--gray-100);
    border: 2px solid transparent;
    border-radius: 8px;
    font-weight: 600;
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    background: var(--gray-200);
    color: var(--gray-900);
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(139, 69, 19, 0.25);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--gray-50);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
}

.feature-card:hover {
    background: white;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(139, 69, 19, 0.15);
    transform: translateY(-2px);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
    box-shadow: 0 4px 12px rgba(139, 69, 19, 0.2);
}

.feature-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--gray-600);
    line-height: 1.7;
    font-size: 0.9375rem;
}

/* ========================================
   BENEFITS SECTION
   ======================================== */
.benefits {
    padding: 4rem 0;
    background: var(--gray-50);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.benefit-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.benefit-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.benefit-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
}

.benefit-card p {
    color: var(--gray-600);
    line-height: 1.7;
    font-size: 0.9375rem;
}

/* ========================================
   PARTNERS SECTION
   ======================================== */
.partners {
    padding: 4rem 0;
    background: white;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    align-items: center;
}

.partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: var(--gray-50);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.partner-logo:hover {
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.partner-logo img {
    max-width: 150px;
    max-height: 80px;
    object-fit: contain;
}

.partner-text {
    text-align: center;
    padding: 1.5rem;
}

.partner-text h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.partner-text p {
    color: var(--gray-600);
    font-size: 0.9375rem;
}

/* ========================================
   CTA SECTION
   ======================================== */
.cta {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.0625rem;
}

.btn-primary {
    background: white;
    color: var(--primary);
}

.btn-primary:hover {
    background: var(--gray-100);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.btn-outline {
    background: transparent;
    color: white;
    border-color: white;
}

.btn-outline:hover {
    background: white;
    color: var(--primary);
    transform: translateY(-2px);
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: var(--gray-900);
    color: var(--gray-300);
    padding: 3rem 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col h4 {
    color: white;
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col ul li a {
    color: var(--gray-400);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: white;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-logo img {
    height: 40px;
}

.footer-logo span {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.footer-col p {
    color: var(--gray-400);
    line-height: 1.7;
    font-size: 0.9375rem;
}

.footer-bottom {
    border-top: 1px solid var(--gray-700);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: var(--gray-500);
    font-size: 0.875rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--gray-500);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

/* ========================================
   BACK TO TOP BUTTON
   ======================================== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(37, 99, 235, 0.4);
}

.back-to-top.show {
    display: flex;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-left {
        padding: 3rem 2rem;
    }
    
    .hero-right {
        min-height: 400px;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .stat-value {
        font-size: 2rem;
    }
    
    .data-table-wrapper {
        overflow-x: auto;
    }
    
    .data-table {
        min-width: 600px;
    }
    
    .charts-grid {
        grid-template-columns: 1fr;
    }
    
    .bar-item {
        grid-template-columns: 60px 1fr 40px;
        gap: 0.5rem;
    }
    
    .search-wrapper {
        flex-direction: column;
        border-radius: 12px;
    }
    
    .search-input-mini {
        width: 100%;
        text-align: center;
    }
    
    .search-btn-mini {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-left {
        padding: 2rem 1.5rem;
    }
    
    .hero-right {
        min-height: 300px;
    }
    
    .page-title {
        font-size: 1.75rem;
    }
    
    .tagline {
        font-size: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-menu {
        display: none;
    }
}

/* ========================================
   BLOOMBERG-STYLE NEWS WIDGET
   ======================================== */
.news-widget-hero {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
}

/* Latest updates: 3/4 + 1/4 layout with right-side links */
 .updates-layout {
     display: grid;
     grid-template-columns: 3fr 1fr;
     gap: 1.5rem;
     align-items: start;
 }

 .updates-main {
     min-width: 0;
 }

 .updates-links {
     position: sticky;
     top: 90px;
 }

 .updates-links-card {
     background: white;
     border-radius: 12px;
     padding: 1.5rem;
     box-shadow: 0 2px 8px rgba(0,0,0,0.08);
     border: 1px solid var(--gray-200);
 }

 .updates-links-title {
     font-size: 1.125rem;
     font-weight: 700;
     color: var(--gray-900);
     margin-bottom: 0.25rem;
 }

 .updates-links-subtitle {
     font-size: 0.875rem;
     color: var(--gray-600);
     margin-bottom: 1rem;
 }

 .updates-links-list {
     display: flex;
     flex-direction: column;
     gap: 0.75rem;
 }

 .updates-link {
     display: flex;
     justify-content: space-between;
     align-items: baseline;
     gap: 1rem;
     text-decoration: none;
     padding: 0.9rem 1rem;
     border-radius: 10px;
     background: var(--gray-50);
     border: 1px solid var(--gray-200);
     transition: all 0.2s ease;
 }

 .updates-link:hover {
     background: white;
     border-color: var(--primary);
     transform: translateY(-1px);
     box-shadow: 0 8px 18px rgba(37, 99, 235, 0.12);
 }

 .updates-link-name {
     font-size: 0.95rem;
     font-weight: 700;
     color: var(--gray-900);
 }

 .updates-links-meta {
     font-size: 0.75rem;
     font-weight: 600;
     color: var(--gray-600);
     background: var(--gray-100);
     padding: 0.2rem 0.5rem;
     border-radius: 999px;
     white-space: nowrap;
 }

 .updates-cta {
     grid-column: 1 / -1;
     display: flex;
     justify-content: flex-start;
     margin-top: 1.25rem;
 }

 .updates-cta-btn {
     display: inline-flex;
     align-items: center;
     justify-content: center;
     padding: 0.9rem 1.5rem;
     border-radius: 10px;
     font-weight: 700;
     text-decoration: none;
     color: #ffffff;
     background: #8b4513;
     box-shadow: 0 6px 16px rgba(139, 69, 19, 0.25);
     transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
 }

 .updates-cta-btn:hover {
     background: #7a3d11;
     transform: translateY(-1px);
     box-shadow: 0 10px 24px rgba(139, 69, 19, 0.32);
 }

/* Main Hero Card */
.widget-hero-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-decoration: none;
    display: block;
    transition: all 0.3s;
}

.widget-hero-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    transform: translateY(-4px);
}

.widget-hero-image {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.widget-hero-icon {
    font-size: 4rem;
    opacity: 0.3;
}

.widget-hero-content {
    padding: 1.5rem;
}

.widget-hero-category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    background: rgba(139, 69, 19, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
}

.widget-hero-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.3;
    margin-bottom: 0.75rem;
}

.widget-hero-excerpt {
    font-size: 0.9375rem;
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.widget-hero-meta {
    display: flex;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: #6b7280;
}

/* Side Updates */
.widget-side-updates {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.widget-side-card {
    background: white;
    padding: 1.25rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-decoration: none;
    display: block;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.widget-side-card:hover {
    border-left-color: var(--primary);
    transform: translateX(4px);
}

.widget-side-category {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--primary);
    background: rgba(139, 69, 19, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.widget-side-title {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.4;
    margin: 0;
}

@media (max-width: 1024px) {
    .updates-layout {
        grid-template-columns: 1fr;
    }
    
    .updates-links {
        position: static;
    }
 
    .news-widget-hero {
        grid-template-columns: 1fr;
    }
    
    .widget-hero-image {
        height: 300px;
    }
    
    .widget-side-updates {
        grid-template-columns: repeat(2, 1fr);
        display: grid;
    }
}

@media (max-width: 768px) {
    .widget-hero-image {
        height: 250px;
    }
    
    .widget-hero-title {
        font-size: 1.25rem;
    }
    
    .widget-side-updates {
        grid-template-columns: 1fr;
    }
}
