﻿/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8fafc;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== HEADER & NAV ===== */
.main-header {
    background: white;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

    .main-header .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 20px;
    }

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #1a365d;
}

.logo-icon {
    background: #4299e1;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    margin-right: 10px;
}

.logo-text {
    font-size: 22px;
    font-weight: 700;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: #4a5568;
    font-weight: 500;
    padding: 8px 0;
    position: relative;
    transition: color 0.3s;
}

    .nav-link:hover,
    .nav-link.active {
        color: #2d3748;
    }

        .nav-link.active:after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 3px;
            background: #4299e1;
            border-radius: 2px;
        }

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: #4a5568;
    cursor: pointer;
    padding: 5px;
}

/* ===== HERO SECTION ===== */
.hero-section {
    background: linear-gradient(135deg, #1a365d 0%, #2d3748 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero-title {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 20px;
    color: #cbd5e0;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.search-container {
    max-width: 600px;
    margin: 0 auto 40px;
    display: flex;
    gap: 10px;
}

.search-input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
}

.search-btn {
    background: #4299e1;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0 30px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

    .search-btn:hover {
        background: #3182ce;
    }

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
}

    .trust-item i {
        color: #48bb78;
        font-size: 20px;
    }

/* ===== BROKER CARDS ===== */
.top-brokers-section {
    padding: 80px 0;
}

    .top-brokers-section h2 {
        text-align: center;
        font-size: 36px;
        margin-bottom: 50px;
        color: #2d3748;
    }

.brokers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.broker-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
}

    .broker-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    }

.broker-rank {
    position: absolute;
    top: -15px;
    left: 20px;
    background: #4299e1;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
}

.broker-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.broker-logo img {
    max-height: 50px;
    max-width: 120px;
}

.broker-info h3 {
    font-size: 24px;
    margin-bottom: 5px;
    color: #2d3748;
}

.broker-rating {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stars {
    color: #f6ad55;
    font-size: 18px;
}

.review-count {
    color: #718096;
    font-size: 14px;
}

.broker-summary {
    color: #4a5568;
    margin-bottom: 25px;
    line-height: 1.7;
}

.broker-specs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 25px;
    padding: 15px;
    background: #f7fafc;
    border-radius: 8px;
}

.spec {
    text-align: center;
}

.spec-label {
    display: block;
    font-size: 12px;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.spec-value {
    display: block;
    font-weight: 600;
    color: #2d3748;
    font-size: 16px;
}

.broker-actions {
    display: flex;
    gap: 10px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn-primary {
    background: #4299e1;
    color: white;
    flex: 1;
}

    .btn-primary:hover {
        background: #3182ce;
    }

.btn-secondary {
    background: #e2e8f0;
    color: #2d3748;
    flex: 1;
}

    .btn-secondary:hover {
        background: #cbd5e0;
    }

.btn-large {
    padding: 16px 40px;
    font-size: 18px;
    background: #2d3748;
    color: white;
}

    .btn-large:hover {
        background: #1a202c;
    }

.btn-xlarge {
    padding: 18px 50px;
    font-size: 20px;
    background: #4299e1;
    color: white;
    border-radius: 8px;
}

    .btn-xlarge:hover {
        background: #3182ce;
        transform: translateY(-2px);
        box-shadow: 0 10px 20px rgba(66, 153, 225, 0.3);
    }

.text-center {
    text-align: center;
}

/* ===== FEATURES ===== */
.features-section {
    padding: 80px 0;
    background: #f7fafc;
}

    .features-section h2 {
        text-align: center;
        font-size: 36px;
        margin-bottom: 50px;
        color: #2d3748;
    }

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.feature-card {
    text-align: center;
    padding: 40px 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: #4299e1;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 25px;
}

.feature-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #2d3748;
}

.feature-card p {
    color: #718096;
    line-height: 1.7;
}

/* ===== FOOTER ===== */
.main-footer {
    background: #1a202c;
    color: #cbd5e0;
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    color: white;
    font-size: 24px;
    margin-bottom: 20px;
}

.footer-col h4 {
    color: white;
    font-size: 18px;
    margin-bottom: 20px;
}

.footer-col p {
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
}

    .footer-col ul li {
        margin-bottom: 12px;
    }

.footer-col a {
    color: #cbd5e0;
    text-decoration: none;
    transition: color 0.3s;
}

    .footer-col a:hover {
        color: white;
    }

.trust-badges {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.badge {
    background: #48bb78;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

    .social-links a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: #2d3748;
        border-radius: 50%;
        color: #cbd5e0;
        font-size: 18px;
        transition: all 0.3s;
    }

        .social-links a:hover {
            background: #4299e1;
            color: white;
            transform: translateY(-3px);
        }

.footer-bottom {
    border-top: 1px solid #2d3748;
    padding-top: 30px;
    text-align: center;
}

.risk-warning {
    margin-top: 15px;
    font-size: 14px;
    color: #fc8181;
}

    .risk-warning i {
        margin-right: 8px;
    }

/* ===== BROKER REVIEW PAGE STYLES ===== */

/* Breadcrumbs */
.breadcrumbs {
    background: #f7fafc;
    padding: 15px 0;
    border-bottom: 1px solid #e2e8f0;
    font-size: 14px;
}

    .breadcrumbs a {
        color: #4299e1;
        text-decoration: none;
    }

        .breadcrumbs a:hover {
            text-decoration: underline;
        }

    .breadcrumbs span {
        color: #718096;
    }

/* Review Hero */
.review-hero {
    background: linear-gradient(135deg, #1a365d 0%, #2d3748 100%);
    color: white;
    padding: 40px 0;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.broker-logo-large img {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.review-title-section {
    flex: 1;
    min-width: 300px;
}

    .review-title-section h1 {
        font-size: 36px;
        margin-bottom: 10px;
    }

.review-subtitle {
    font-size: 18px;
    color: #cbd5e0;
    margin-bottom: 30px;
}

.review-rating-overview {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.overall-rating {
    text-align: center;
    padding: 20px;
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    min-width: 150px;
}

.rating-number {
    font-size: 48px;
    font-weight: bold;
    color: #f6ad55;
    line-height: 1;
}

.rating-stars {
    font-size: 24px;
    color: #f6ad55;
    margin: 10px 0;
}

.rating-label {
    font-size: 14px;
    color: #cbd5e0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.quick-facts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    flex: 1;
}

.fact {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
}

    .fact i {
        font-size: 24px;
        color: #4299e1;
        width: 40px;
    }

.fact-label {
    font-size: 12px;
    color: #cbd5e0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fact-value {
    font-size: 18px;
    font-weight: 600;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Quick Summary */
.quick-summary {
    padding: 40px 0;
    background: #f7fafc;
}

.summary-box {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

    .summary-box h2 {
        color: #2d3748;
        margin-bottom: 30px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

        .summary-box h2 i {
            color: #4299e1;
        }

.summary-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

@media (max-width: 992px) {
    .summary-content {
        grid-template-columns: 1fr;
    }
}

.pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

@media (max-width: 768px) {
    .pros-cons {
        grid-template-columns: 1fr;
    }
}

.pros h3, .cons h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 20px;
}

.pros h3 {
    color: #38a169;
}

.cons h3 {
    color: #e53e3e;
}

.pros ul, .cons ul {
    list-style: none;
    padding-left: 0;
}

.pros li, .cons li {
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
    line-height: 1.6;
}

    .pros li:before {
        content: '✓';
        position: absolute;
        left: 0;
        color: #38a169;
        font-weight: bold;
    }

    .cons li:before {
        content: '✗';
        position: absolute;
        left: 0;
        color: #e53e3e;
        font-weight: bold;
    }

.verdict {
    background: #ebf8ff;
    padding: 25px;
    border-radius: 8px;
    border-left: 5px solid #4299e1;
}

    .verdict h3 {
        color: #2d3748;
        margin-bottom: 15px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .verdict p {
        margin-bottom: 20px;
        line-height: 1.7;
    }

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.tag {
    background: #4299e1;
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

/* Detailed Review */
.detailed-review {
    padding: 60px 0;
}

    .detailed-review h2 {
        text-align: center;
        font-size: 36px;
        margin-bottom: 40px;
        color: #2d3748;
    }

.table-of-contents {
    background: #f7fafc;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 40px;
    border-left: 4px solid #4299e1;
}

    .table-of-contents h3 {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 20px;
        color: #2d3748;
    }

    .table-of-contents ol {
        list-style: none;
        padding-left: 20px;
        columns: 2;
    }

@media (max-width: 768px) {
    .table-of-contents ol {
        columns: 1;
    }
}

.table-of-contents li {
    margin-bottom: 10px;
    break-inside: avoid;
}

.table-of-contents a {
    color: #4299e1;
    text-decoration: none;
    transition: color 0.3s;
}

    .table-of-contents a:hover {
        color: #3182ce;
        text-decoration: underline;
    }

/* Review Sections */
.review-section {
    margin-bottom: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid #e2e8f0;
}

    .review-section:last-child {
        border-bottom: none;
    }

    .review-section h3 {
        font-size: 28px;
        color: #2d3748;
        margin-bottom: 25px;
        padding-top: 20px;
    }

    .review-section p {
        line-height: 1.8;
        margin-bottom: 20px;
        color: #4a5568;
    }

/* Tables */
.fees-table table, .comparison-table table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-radius: 8px;
    overflow: hidden;
}

.fees-table th, .comparison-table th {
    background: #2d3748;
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.fees-table td, .comparison-table td {
    padding: 15px;
    border-bottom: 1px solid #e2e8f0;
}

.fees-table tr:last-child td, .comparison-table tr:last-child td {
    border-bottom: none;
}

.fees-table tr:nth-child(even), .comparison-table tr:nth-child(even) {
    background: #f7fafc;
}

.green {
    color: #38a169;
    font-weight: bold;
}

.red {
    color: #e53e3e;
    font-weight: bold;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.feature {
    text-align: center;
    padding: 25px 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

    .feature:hover {
        transform: translateY(-5px);
    }

    .feature i {
        font-size: 36px;
        color: #4299e1;
        margin-bottom: 20px;
    }

    .feature h4 {
        font-size: 18px;
        margin-bottom: 15px;
        color: #2d3748;
    }

    .feature p {
        color: #718096;
        font-size: 14px;
        line-height: 1.6;
    }

/* FAQ Section */
.faq-section {
    margin: 60px 0;
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

    .faq-section h3 {
        color: #2d3748;
        margin-bottom: 30px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

.faq-item {
    margin-bottom: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    text-align: left;
    background: #f7fafc;
    border: none;
    padding: 20px;
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s;
}

    .faq-question:hover {
        background: #edf2f7;
    }

    .faq-question i {
        transition: transform 0.3s;
    }

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease-out;
}

    .faq-answer.show {
        max-height: 500px;
        padding: 0 20px 20px;
    }

    .faq-answer p {
        padding: 20px 0;
        margin: 0;
        color: #4a5568;
        line-height: 1.7;
    }

/* Conclusion */
.conclusion-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 30px;
}

@media (max-width: 992px) {
    .conclusion-box {
        grid-template-columns: 1fr;
    }
}

.rating-breakdown {
    background: #f7fafc;
    padding: 25px;
    border-radius: 8px;
}

    .rating-breakdown h4 {
        margin-bottom: 25px;
        color: #2d3748;
    }

.breakdown-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

    .breakdown-item span:first-child {
        flex: 1;
        min-width: 150px;
        color: #4a5568;
    }

.rating-bar {
    flex: 2;
    height: 10px;
    background: #e2e8f0;
    border-radius: 5px;
    overflow: hidden;
    min-width: 200px;
}

.rating-fill {
    height: 100%;
    background: linear-gradient(90deg, #f6ad55, #ed8936);
    border-radius: 5px;
}

.breakdown-item span:last-child {
    font-weight: 600;
    color: #2d3748;
    min-width: 50px;
}

.final-verdict {
    background: #ebf8ff;
    padding: 25px;
    border-radius: 8px;
    border-left: 5px solid #4299e1;
}

.recommendation-box {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-top: 25px;
    border: 1px solid #cbd5e0;
}

    .recommendation-box h5 {
        display: flex;
        align-items: center;
        gap: 10px;
        color: #2d3748;
        margin-bottom: 15px;
    }

        .recommendation-box h5 i {
            color: #38a169;
        }

/* Review CTA */
.review-cta {
    text-align: center;
    padding: 50px;
    background: linear-gradient(135deg, #1a365d 0%, #2d3748 100%);
    color: white;
    border-radius: 12px;
    margin: 40px 0;
}

    .review-cta h3 {
        font-size: 32px;
        margin-bottom: 15px;
    }

    .review-cta p {
        font-size: 18px;
        color: #cbd5e0;
        margin-bottom: 30px;
    }

.cta-note {
    margin-top: 20px;
    font-size: 12px;
    color: #a0aec0;
}

/* ===== MOBILE MENU FIXES ===== */

/* Hide menu on mobile by default */
@media (max-width: 768px) {
    .main-nav ul {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
        z-index: 1000;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        margin: 0;
    }

    .main-nav.active ul {
        display: flex;
        animation: slideDown 0.3s ease-out;
    }

    .main-nav ul li {
        width: 100%;
        text-align: center;
    }

    .nav-link {
        display: block;
        padding: 15px;
        border-bottom: 1px solid #e2e8f0;
        font-size: 18px;
    }

        .nav-link:last-child {
            border-bottom: none;
        }

        .nav-link.active:after {
            display: none;
        }

        .nav-link.active {
            background: #4299e1;
            color: white;
            border-radius: 6px;
        }

    .mobile-menu-btn {
        display: block;
        z-index: 1001;
        transition: transform 0.3s;
    }

        .mobile-menu-btn.active {
            transform: rotate(90deg);
        }

    /* Review page mobile fixes */
    .review-header {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .review-title-section h1 {
        font-size: 28px;
    }

    .quick-facts {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .fees-table table, .comparison-table table {
        display: block;
        overflow-x: auto;
    }

    .review-rating-overview {
        flex-direction: column;
        gap: 20px;
    }

    .overall-rating {
        min-width: auto;
        width: 100%;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .btn-xlarge {
        padding: 15px 30px;
        font-size: 18px;
        width: 100%;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Additional responsive adjustments */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-section {
        padding: 50px 0;
    }

    .hero-title {
        font-size: 28px;
    }

    .top-brokers-section,
    .features-section {
        padding: 50px 0;
    }

    .broker-card {
        padding: 20px;
    }

    .broker-actions {
        flex-direction: column;
    }

    .review-hero {
        padding: 30px 0;
    }

    .review-title-section h1 {
        font-size: 24px;
    }

    .review-subtitle {
        font-size: 16px;
    }

    .rating-number {
        font-size: 36px;
    }

    .rating-stars {
        font-size: 20px;
    }
}
