:root {
    --realtor-red: #D0191D;
    --pure-white: #FFFFFF;
}

body, html {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--pure-white);
    color: var(--realtor-red);
}

/* Header */
.main-header {
    background-color: var(--realtor-red);
    color: var(--pure-white);
    padding: 1rem 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.main-header h1 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

/* Buttons */
.btn {
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid;
    font-size: 1rem;
}

.btn-header {
    background-color: var(--pure-white);
    color: var(--realtor-red);
    border-color: var(--pure-white);
}

.btn-header:hover {
    background-color: var(--realtor-red);
    color: var(--pure-white);
}

.btn-body {
    background-color: var(--realtor-red);
    color: var(--pure-white);
    border-color: var(--realtor-red);
}

.btn-body:hover {
    background-color: var(--pure-white);
    color: var(--realtor-red);
}

/* Body Content */
.content-body {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

/* Tabs */
.tabs {
    display: flex;
    border-bottom: 2px solid var(--realtor-red);
    margin-bottom: 2rem;
}

.tab-btn {
    background-color: var(--pure-white);
    color: var(--realtor-red);
    border: 2px solid var(--realtor-red);
    border-bottom: none;
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    border-radius: 8px 8px 0 0;
    margin-right: 0.5rem;
    transition: all 0.2s ease;
}

.tab-btn.active {
    background-color: var(--realtor-red);
    color: var(--pure-white);
}

.tab-btn:hover:not(.active) {
    background-color: rgba(208, 25, 29, 0.05);
}

/* Financial Card */
.financial-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    flex: 1;
}

.financial-card {
    border: 2px solid var(--realtor-red);
    border-radius: 12px;
    padding: 1.5rem;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.2s ease;
    background-color: var(--pure-white);
    box-shadow: 0 4px 6px rgba(208, 25, 29, 0.05);
    height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.financial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(208, 25, 29, 0.15);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    border-bottom: 2px solid rgba(208, 25, 29, 0.1);
    padding-bottom: 1rem;
}

.card-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.stock-price {
    font-size: 2rem;
    font-weight: 800;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.metric {
    display: flex;
    flex-direction: column;
    padding: 0.75rem;
    background-color: rgba(208, 25, 29, 0.03);
    border-radius: 8px;
    border: 1px solid rgba(208, 25, 29, 0.1);
}

.metric .label {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

.metric .value {
    font-size: 1.2rem;
    font-weight: 700;
    margin-top: 0.25rem;
}

.chart-container {
    position: relative;
    height: 150px;
    width: 100%;
    margin-top: auto;
    border-top: 2px solid rgba(208, 25, 29, 0.1);
    padding-top: 1rem;
}

.action-bar {
    margin-top: 2rem;
    display: flex;
    justify-content: flex-end;
}

/* Layout */
.main-layout {
    display: flex;
    gap: 2rem;
    align-items: stretch;
}

.financial-section {
    flex: 0 0 60%;
    max-width: 60%;
    display: flex;
    flex-direction: column;
}

.leadership-section {
    flex: 0 0 calc(40% - 2rem);
    max-width: calc(40% - 2rem);
    position: relative;
}

.leadership-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
}

/* Inner Tabs */
.inner-tabs {
    display: flex;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid rgba(208, 25, 29, 0.2);
}

.inner-tab-btn {
    background: none;
    border: none;
    padding: 0.5rem 1rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--realtor-red);
    opacity: 0.6;
    cursor: pointer;
    position: relative;
    transition: opacity 0.2s ease;
}

.inner-tab-btn:hover {
    opacity: 0.8;
}

.inner-tab-btn.active {
    opacity: 1;
}

.inner-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--realtor-red);
}

.inner-tab-content {
    flex: 1;
    min-height: 0;
    display: none;
    flex-direction: column;
}

.inner-tab-content.active {
    display: flex;
}

/* People Grid */
.people-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    height: 100%;
    overflow-y: auto;
    padding-right: 0.5rem;
    align-content: start;
}

.people-grid::-webkit-scrollbar {
    width: 6px;
}
.people-grid::-webkit-scrollbar-track {
    background: rgba(208, 25, 29, 0.05);
    border-radius: 3px;
}
.people-grid::-webkit-scrollbar-thumb {
    background: rgba(208, 25, 29, 0.3);
    border-radius: 3px;
}

/* Person Card */
.person-card {
    border: 1px solid rgba(208, 25, 29, 0.2);
    border-radius: 12px;
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: var(--pure-white);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 4px rgba(208, 25, 29, 0.05);
}

.person-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(208, 25, 29, 0.1);
}

.person-photo {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 3px solid var(--realtor-red);
}

.person-info h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    font-weight: 700;
}

.person-info p {
    margin: 0;
    font-size: 0.85rem;
    opacity: 0.8;
    line-height: 1.3;
}

/* Social Icons */
.social-icons {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background-color: rgba(208, 25, 29, 0.1);
    color: var(--realtor-red);
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}

.social-link:hover {
    background-color: var(--realtor-red);
    color: var(--pure-white);
}

/* Bottom Layout */
.bottom-layout {
    display: flex;
    gap: 2rem;
    margin-top: 3rem;
    border-top: 2px solid rgba(208, 25, 29, 0.2);
    padding-top: 2rem;
}

.bottom-layout .column-left {
    flex: 0 0 calc(50% - 1rem);
    max-width: calc(50% - 1rem);
}

.bottom-layout .column-right {
    flex: 0 0 calc(50% - 1rem);
    max-width: calc(50% - 1rem);
}

/* News Section */
.news-section {
    width: 100%;
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.news-header h2 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
}

.news-list {
    display: flex;
    flex-direction: column;
}

.news-item {
    padding: 1.25rem 0;
    border-bottom: 1px solid rgba(208, 25, 29, 0.1);
    background-color: transparent;
    transition: background-color 0.2s ease, padding-left 0.2s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.news-item:last-child {
    border-bottom: none;
}

.news-item:hover {
    background-color: rgba(208, 25, 29, 0.02);
    padding-left: 0.5rem;
}

.news-item h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
}

.news-item .read-more {
    color: var(--realtor-red);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
    gap: 1rem;
}

.page-info {
    font-weight: 600;
}

/* Mentions Section */
.mentions-section {
    width: 100%;
}

.mention-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.mention-type {
    background-color: var(--realtor-red);
    color: var(--pure-white);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mention-source {
    font-size: 0.85rem;
    font-weight: 600;
    opacity: 0.7;
}

