/* ==============================================================================
   INDUSTRY OVERVIEW & INTELLIGENCE PAGES
   ============================================================================== */

/* Industry Header Card */
.industry-header-card {
    background: #ffffff;
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.industry-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-color, #0f172a);
    margin: 0 0 8px 0;
}

.industry-meta-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 500;
    color: var(--muted-text, #64748b);
    flex-wrap: wrap;
}

.meta-separator {
    color: #cbd5e1;
}

/* Industry Metrics Grid (6 Columns across wide screen) */
.industry-metrics-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    margin-top: 16px;
}

.industry-metrics-grid .metric-card {
    background: #f8fafc;
    border: 1px solid var(--border-color, #e2e8f0);
    border-top: 3px solid var(--primary-color, #2563eb);
    border-radius: 8px;
    padding: 16px;
    text-align: center;
}

.industry-metrics-grid .metric-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--muted-text, #64748b);
    margin-bottom: 6px;
}

.industry-metrics-grid .metric-value {
    font-size: 18px;
    font-weight: 700;
    color: #2563eb;
}

/* Narrative Paragraphs */
.industry-narrative p {
    font-size: 15px;
    line-height: 1.7;
    color: #334155;
    margin: 0;
}

/* Two-Column Layout (Structure & Economics) */
.industry-two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.industry-content-box {
    background: #f8fafc;
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 8px;
    padding: 20px;
}

.industry-content-box h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-color, #0f172a);
    margin-top: 0;
    margin-bottom: 12px;
}

.industry-content-box p {
    font-size: 14px;
    line-height: 1.6;
    color: #334155;
    margin: 0;
}

/* Leading Companies / Constituents Cards Grid */
.leading-companies-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.leading-company-card {
    background: #ffffff;
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 8px;
    padding: 16px;
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.leading-company-card:hover {
    transform: translateY(-2px);
    border-color: #2563eb;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.company-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.company-name a {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-color, #2563eb);
    text-decoration: none;
}

.company-name a:hover {
    text-decoration: underline;
}

.company-metric-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--muted-text, #64748b);
}

.company-metric-value {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-color, #0f172a);
    margin-top: 2px;
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .industry-metrics-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .industry-metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .industry-two-column {
        grid-template-columns: 1fr;
    }
}

/* Recommendation Badges in Industry Constituent Cards */
.leading-company-card .recommendation-badge {
    font-size: 13px !important;      /* Adjust font size to fit neatly in the card header */
    font-weight: 700;
    line-height: 1.2;
    text-transform: capitalize;
}

/* Optional: Add badge text color status styling if needed */
.leading-company-card .recommendation-badge.strong-buy,
.leading-company-card .recommendation-badge.buy {
    color: #16a34a; /* Green */
}

.leading-company-card .recommendation-badge.hold {
    color: #d97706; /* Amber */
}

.leading-company-card .recommendation-badge.sell,
.leading-company-card .recommendation-badge.strong-sell {
    color: #dc2626; /* Red */
}

/* ========================================================= */
/* TAILWINDS & HEADWINDS */
/* ========================================================= */

.tailwind-box {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
}

.tailwind-box h3 {
    color: #166534;
}

.headwind-box {
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.headwind-box h3 {
    color: #991b1b;
}

.industry-content-box ul {
    margin: 0;
    padding-left: 22px;
}

.industry-content-box li {
    margin-bottom: 12px;
    line-height: 1.6;
}