/* Broker Comparison & Review Shared Styles */

/* Base Styles */
body {
    background-color: #f0f2f5;
    margin: 0;
    padding: 0;
}

main {
    font-family: "Open Sans", Arial, sans-serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Breadcrumb Navigation */
.crumb-nav {
    padding: 1rem 0;
}

.entry-crumbs {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: #6b7280;
}

.entry-crumb a {
    color: #4a5568;
    text-decoration: none;
    transition: color 0.2s;
}

.entry-crumb a:hover {
    color: #2563eb;
}

.td-bread-sep {
    color: #9ca3af;
}

/* Checkmark Icon */
.checkmark::before {
    content: '✓';
    color: #15c283;
    font-weight: bold;
    margin-right: 0.5em;
}

/* Section Card */
.section-card {
    background-color: #ffffff;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

/* Section Titles with Blue Underline */
.section-card h2,
.section-title {
    font-size: 20px;
    font-weight: 700;
    font-family: 'Heebo', sans-serif;
    color: #111827;
    margin: 0 0 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid #2563eb;
    display: inline-block;
    line-height: 1.3;
}

/* h3 and h4 headings - match article styles */
.section-card h3,
.section-card h4 {
    font-size: 20px;
    font-weight: 700;
    font-family: 'Heebo', sans-serif;
    line-height: 1.3;
    margin-bottom: 10px;
}

/* Paragraph Text */
.paragraph-text {
    margin-bottom: 1.5rem;
    color: #4a4a4a;
    font-size: 16px;
    line-height: 1.6;
    font-family: "Open Sans", Arial, sans-serif;
}

.paragraph-text:last-child {
    margin-bottom: 0;
}

/* Definition Highlight Box */
.definition-highlight {
    background-color: #e0f2fe;
    padding: 1rem 1.5rem;
    border-left: 5px solid #2563eb;
    border-radius: 0.5rem;
    color: #1e3a8a;
    margin: 1rem 0;
    line-height: 1.4;
}

/* Accordion Styles */
.accordion-item {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.accordion-header-button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
    background-color: #f9fafb;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background-color 0.2s ease-in-out;
}

.accordion-header-button:hover {
    background-color: #f3f4f6;
}

.accordion-header-button .icon {
    width: 1.25rem;
    height: 1.25rem;
    color: #4b5563;
    transition: transform 0.3s ease-in-out;
    font-size: 1.25rem;
}

.accordion-header-button[aria-expanded="true"] .icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    padding: 0 1.5rem;
}

.accordion-content.active {
    max-height: 500px;
    padding: 1.5rem;
}

.accordion-body-text {
    font-size: 16px;
    color: #4a4a4a;
    line-height: 1.6;
    font-family: "Open Sans", Arial, sans-serif;
    padding-bottom: 0.5rem;
}

/* Lists - match article styles */
.section-card ul,
.section-card ol {
    font-family: "Open Sans", Arial, sans-serif;
    color: #4a4a4a;
    line-height: 1.6;
    font-size: 16px;
    margin-bottom: 26px;
}

.section-card li {
    font-size: 16px;
    font-family: "Open Sans", Arial, sans-serif;
    margin-bottom: 15px;
}

/* General paragraphs without class - match article styles */
.section-card p {
    font-family: "Open Sans", Arial, sans-serif;
    color: #4a4a4a;
    line-height: 1.6;
    font-size: 16px;
}

/* Account opening grid styles */
.account-opening-grid {
    display: grid;
    gap: 1.5rem;
}

.account-item h3 {
    font-size: 20px;
    font-weight: 700;
    font-family: 'Heebo', sans-serif;
    line-height: 1.3;
    margin-bottom: 10px;
}

.account-item ul,
.account-item ol {
    font-family: "Open Sans", Arial, sans-serif;
    color: #4a4a4a;
    line-height: 1.6;
    font-size: 16px;
    margin-bottom: 1rem;
}

.account-item li {
    font-size: 16px;
    font-family: "Open Sans", Arial, sans-serif;
    margin-bottom: 15px;
}

.account-item p {
    font-family: "Open Sans", Arial, sans-serif;
    color: #4a4a4a;
    line-height: 1.6;
    font-size: 16px;
}

/* Trading platforms grid styles */
.trading-platforms-grid {
    display: grid;
    gap: 1.5rem;
}

.platform-item h3 {
    font-size: 20px;
    font-weight: 700;
    font-family: 'Heebo', sans-serif;
    line-height: 1.3;
    margin-bottom: 10px;
}

.platform-item ul,
.platform-item ol {
    font-family: "Open Sans", Arial, sans-serif;
    color: #4a4a4a;
    line-height: 1.6;
    font-size: 16px;
    margin-bottom: 1rem;
}

.platform-item li {
    font-size: 16px;
    font-family: "Open Sans", Arial, sans-serif;
    margin-bottom: 15px;
}

.platform-item p {
    font-family: "Open Sans", Arial, sans-serif;
    color: #4a4a4a;
    line-height: 1.6;
    font-size: 16px;
}

/* Generic styles for all grid items - consistent typography */
.trust-safety-grid,
.research-education-grid,
.customer-support-grid,
.unique-features-grid,
.safety-features-grid {
    display: grid;
    gap: 1.5rem;
}

.trust-safety-item h3,
.trust-safety-item h4,
.education-item h3,
.education-item h4,
.support-item h3,
.support-item h4,
.feature-item h3,
.feature-item h4,
.safety-feature-item h3,
.safety-feature-item h4 {
    font-size: 20px;
    font-weight: 700;
    font-family: 'Heebo', sans-serif;
    line-height: 1.3;
    margin-bottom: 10px;
}

.trust-safety-item ul,
.trust-safety-item ol,
.education-item ul,
.education-item ol,
.support-item ul,
.support-item ol,
.feature-item ul,
.feature-item ol,
.safety-feature-item ul,
.safety-feature-item ol {
    font-family: "Open Sans", Arial, sans-serif;
    color: #4a4a4a;
    line-height: 1.6;
    font-size: 16px;
    margin-bottom: 1rem;
}

.trust-safety-item li,
.education-item li,
.support-item li,
.feature-item li,
.safety-feature-item li {
    font-size: 16px;
    font-family: "Open Sans", Arial, sans-serif;
    margin-bottom: 15px;
}

.trust-safety-item p,
.education-item p,
.support-item p,
.feature-item p,
.safety-feature-item p {
    font-family: "Open Sans", Arial, sans-serif;
    color: #4a4a4a;
    line-height: 1.6;
    font-size: 16px;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .container {
        padding: 16px;
        background-color: #fff;
        margin: 0 8px 1rem 8px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    }

    .crumb-nav {
        padding: 0 0 0.5rem 0;
    }

    .section-card h2,
    .section-title {
        font-size: 20px;
        margin-bottom: 1rem;
        margin-top: 1rem;
    }
}