
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
    --bg-dark: #0a0f1c; /* Dark Navy */
    --bg-body: #f4f6f9; /* Light gray-white */
    --bg-card: #ffffff;
    --accent: #fbbf24; /* Yellow */
    --accent-hover: #f59e0b;
    --text-dark: #1e293b;
    --text-light: #ffffff;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --radius: 8px;
    --transition: all 0.3s ease;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Manrope', sans-serif; }
body { background-color: var(--bg-body); color: var(--text-dark); line-height: 1.6; overflow-x: hidden; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; border-radius: var(--radius);}

.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.fade-up { animation: fadeUp 0.6s ease-out forwards; opacity: 0; transform: translateY(20px); }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

/* HEADER */
.header { 
    background: var(--bg-dark);
    border-bottom: 2px solid var(--accent);
    position: sticky; top: 0; z-index: 1000;
}
.header-inner { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; max-width: 1280px; margin: 0 auto;}
.logo { font-size: 22px; font-weight: 800; color: #fff; display: flex; align-items: center; gap: 10px; letter-spacing: 0.5px;}
.logo span { color: var(--accent); }
.nav-links { display: flex; gap: 30px; align-items: center;}
.nav-links a { font-weight: 600; font-size: 13px; color: #cbd5e1; text-transform: uppercase; letter-spacing: 1px;}
.nav-links a:hover { color: var(--accent); }
.btn-primary { 
    background: var(--accent); color: #000 !important; 
    padding: 10px 24px; border-radius: 4px; font-weight: 700; font-size: 13px; text-transform: uppercase;
}
.btn-primary:hover { background: var(--accent-hover); }

/* HERO */
.hero { background: var(--bg-dark); color: #fff; padding: 80px 20px 100px; text-align: center; }
.hero h1 { font-size: 48px; font-weight: 800; margin-bottom: 20px; color: #fff;}
.hero h1 span { color: var(--accent); }
.hero p { font-size: 16px; color: #94a3b8; max-width: 700px; margin: 0 auto; line-height: 1.8;}

/* INFOGRAPHICS (YELLOW LINE ART) */
.infographics { background: var(--bg-dark); padding: 0 20px 60px; margin-top: -30px;}
.ig-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; max-width: 1000px; margin: 0 auto;}
.ig-item { text-align: center; color: #cbd5e1; }
.ig-item svg { width: 100px; height: 100px; margin: 0 auto 20px; stroke: var(--accent); fill: none; stroke-width: 1.5;}
.ig-item p { font-size: 14px; font-weight: 500;}

/* BROKER LIST RANKING */
.list-section { padding: 0 20px 80px; margin-top: -40px; position: relative; z-index: 10;}
.table-header {
    display: grid; grid-template-columns: 80px 250px 1.5fr 1fr 1fr 1fr 1fr 180px; gap: 15px;
    padding: 20px 25px; background: var(--bg-dark); color: #fff;
    border-radius: 8px 8px 0 0; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
}
.broker-list { display: flex; flex-direction: column; background: var(--bg-body); }
.list-item { 
    display: grid; grid-template-columns: 80px 250px 1.5fr 1fr 1fr 1fr 1fr 180px; gap: 15px;
    align-items: center; padding: 20px 25px; background: #fff;
    border-bottom: 1px solid var(--border-color);
}
.list-item:hover { background: #f8fafc; }

.rank-wrapper { display: flex; align-items: center; gap: 8px; }
.rank-number { font-size: 20px; font-weight: 800; color: var(--text-muted); }
.trend-up { color: #10b981; }
.trend-down { color: #ef4444; }
.trend-same { color: #94a3b8; }

.li-brand { display: flex; align-items: center; gap: 15px; }
.li-logo { width: 45px; height: 45px; border-radius: 6px; border: 1px solid #e2e8f0; padding: 2px; display: flex; align-items: center; justify-content: center; background: #fff;}
.li-logo img { max-height: 100%; max-width: 100%; border-radius: 4px; }
.li-brand strong { font-size: 16px; color: var(--text-dark); font-weight: 800;}

.data-cell { display: flex; flex-direction: column; font-size: 14px;}
.data-cell span { display: none; }
.data-cell strong { color: var(--text-dark); font-weight: 600;}

.rating-badge { border: 1px solid var(--accent); color: var(--accent); padding: 6px 15px; border-radius: 50px; font-weight: 700; font-size: 13px; display: inline-block; text-align: center;}

.li-actions { display: flex; gap: 10px; }
.btn-outline { border: 1px solid #cbd5e1; color: var(--text-muted); text-align: center; padding: 8px; border-radius: 4px; font-weight: 600; font-size: 13px; width: 50%;}
.btn-outline:hover { border-color: var(--text-dark); color: var(--text-dark); }
.btn-solid { background: var(--accent); color: #000; text-align: center; padding: 8px; border-radius: 4px; font-weight: 700; font-size: 13px; width: 50%; border: none;}
.btn-solid:hover { background: var(--accent-hover); }

/* EXTRA HOME SECTIONS */
.section-heading { font-size: 32px; font-weight: 800; margin-bottom: 40px; color: var(--text-dark); text-align: center;}
.section-heading span { color: var(--accent); }

.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-bottom: 80px;}
.feature-card { background: #fff; padding: 40px 30px; border-radius: var(--radius); border: 1px solid var(--border-color); text-align: center; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);}
.feature-card img { width: 60px; height: 60px; margin: 0 auto 20px;}
.feature-card h3 { font-size: 20px; margin-bottom: 15px; font-weight: 800;}
.feature-card p { color: var(--text-muted); font-size: 15px;}

.image-text-block { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; margin-bottom: 80px; background: #fff; padding: 50px; border-radius: var(--radius); border: 1px solid var(--border-color);}
.image-text-block img { width: 100%; height: 400px; object-fit: cover; border-radius: var(--radius);}
.image-text-block h3 { font-size: 28px; font-weight: 800; margin-bottom: 20px;}
.image-text-block p { color: var(--text-muted); font-size: 16px; margin-bottom: 15px; line-height: 1.8;}

/* BROKER DETAIL PAGE */
.detail-header { background: var(--bg-dark); padding: 50px 20px; border-bottom: 2px solid var(--accent); margin-bottom: 40px;}
.dh-inner { max-width: 1280px; margin: 0 auto; display: flex; align-items: center; gap: 30px;}
.dh-logo { width: 100px; height: 100px; background: #fff; padding: 10px; border-radius: 12px;}
.dh-info h1 { font-size: 36px; font-weight: 800; margin-bottom: 10px; color: #fff;}
.dh-info .badges { display: flex; gap: 10px;}
.dh-info .badge { background: rgba(255,255,255,0.1); color: #fff; padding: 6px 15px; border-radius: 50px; font-size: 12px; font-weight: 600;}
.dh-info .badge-rating { border: 1px solid var(--accent); color: var(--accent); }
.dh-action { margin-left: auto; }
.dh-action .btn-primary { width: 220px; padding: 14px; font-size: 15px; border-radius: 50px; text-align: center;}

.detail-layout { display: grid; grid-template-columns: 1fr 350px; gap: 40px; margin-bottom: 80px; align-items: start;}

/* MAIN CONTENT */
.content-section { background: #fff; border: 1px solid var(--border-color); border-radius: var(--radius); padding: 40px; margin-bottom: 30px; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);}
.content-section h2 { font-size: 24px; font-weight: 800; color: var(--text-dark); margin-bottom: 25px; display: flex; align-items: center; gap: 10px;}
.content-section h2::before { content: ''; display: block; width: 5px; height: 24px; background: var(--accent); border-radius: 2px;}
.content-section p { margin-bottom: 18px; color: var(--text-muted); font-size: 16px; line-height: 1.8;}
.content-section img.inline-img { width: 100%; height: 350px; object-fit: cover; border-radius: var(--radius); margin: 25px 0;}

/* INFO TABLE */
.info-table { width: 100%; border-collapse: collapse; margin-bottom: 20px;}
.info-table th, .info-table td { padding: 15px; text-align: left; border-bottom: 1px solid var(--border-color); font-size: 15px;}
.info-table th { color: var(--text-muted); font-weight: 600; width: 40%;}
.info-table td { color: var(--text-dark); font-weight: 700;}

/* REVIEWS */
.reviews-grid-broker { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px;}
.rev-box { background: var(--bg-body); border: 1px solid var(--border-color); padding: 25px; border-radius: var(--radius);}
.rev-top { display: flex; justify-content: space-between; margin-bottom: 15px; align-items: center;}
.rev-user { display: flex; align-items: center; gap: 15px;}
.avt { width: 45px; height: 45px; border-radius: 50%; background: var(--accent); color: #000; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px;}
.rev-user-info strong { display: block; font-size: 16px; color: var(--text-dark);}
.rev-user-info span { font-size: 12px; color: var(--text-muted);}
.stars { color: var(--accent); font-size: 16px; letter-spacing: 2px;}

/* FAQ */
.faq-item { border-bottom: 1px solid var(--border-color); padding: 20px 0;}
.faq-item h4 { font-size: 18px; color: var(--text-dark); margin-bottom: 10px; font-weight: 700;}
.faq-item p { color: var(--text-muted); font-size: 15px; margin: 0;}

/* SIDEBAR */
.sidebar { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 25px;}

.side-widget { background: #fff; border: 1px solid var(--border-color); border-top: 4px solid var(--accent); border-radius: var(--radius); padding: 30px; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);}
.side-widget h3 { font-size: 18px; margin-bottom: 20px; color: var(--text-dark); font-weight: 800;}

/* PROS CONS */
.pc-list { list-style: none; margin-bottom: 0;}
.pc-list li { position: relative; padding-left: 28px; margin-bottom: 15px; font-size: 14px; color: var(--text-muted); font-weight: 500;}
.pc-list.pros li::before { content: '✔'; position: absolute; left: 0; color: #10b981; font-weight: bold; font-size: 14px;}
.pc-list.cons li::before { content: '✖'; position: absolute; left: 0; color: #ef4444; font-weight: bold; font-size: 14px;}

/* FOOTER */
.footer { background: var(--bg-dark); border-top: 2px solid var(--accent); padding: 60px 20px 30px; color: #fff;}
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; max-width: 1280px; margin: 0 auto; border-bottom: 1px solid #1e293b; padding-bottom: 40px; margin-bottom: 20px;}
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 20px; text-transform: uppercase; font-weight: 700;}
.footer ul { list-style: none;}
.footer ul li { margin-bottom: 10px;}
.footer ul a { color: #94a3b8; font-size: 14px;}
.footer ul a:hover { color: var(--accent);}
.f-bottom { text-align: center; color: #64748b; font-size: 13px;}

@media (max-width: 1200px) {
    .table-header { display: none; }
    .list-item { 
        grid-template-columns: 1fr; gap: 12px; padding: 25px; 
        border: 1px solid var(--border-color); border-radius: var(--radius); margin-bottom: 15px;
    }
    .broker-list { background: transparent; }
    .rank-wrapper { position: absolute; top: 20px; right: 25px;}
    .data-cell { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px dashed var(--border-color); padding: 8px 0;}
    .data-cell span { display: block; color: var(--text-muted); font-size: 12px;}
    .data-cell strong { text-align: right;}
    .li-actions { flex-direction: row; margin-top: 10px;}
    .ig-grid { grid-template-columns: 1fr;}
    .image-text-block { grid-template-columns: 1fr;}
}

@media (max-width: 992px) {
    .detail-layout { grid-template-columns: 1fr; }
    .sidebar { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 20px;}
    .dh-inner { flex-direction: column; text-align: center; }
    .dh-action { margin-left: 0; margin-top: 20px; width: 100%;}
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .features-grid { grid-template-columns: 1fr; }
    .reviews-grid-broker { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero h1 { font-size: 36px; }
    .sidebar { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; }
}
