:root {
  --bg-light: #f4f7f9;
  --bg-white: #ffffff;
  --border-color: #e0e0e0;
  --section-padding: 40px;
  --section-padding-mobile: 30px;
}
.hero-container {
  padding: 2px 2px 30px 2px;
  margin-bottom: 30px;
  border-bottom: 4px solid var(--primary-color);
}

.hero-top-bar {
  display: flex;
  justify-content: space-between;
  margin-bottom: 30px;
}

.hero-top-bar .back-link {
  text-decoration: none;
  color: var(--text-light) !important;
  font-size: 12px;
  font-weight: 600 !important;
}

.fund-type-tag {
  font-weight: 700;
  color: var(--primary-color);
  text-transform: capitalize;
  font-size: 14px;
  letter-spacing: 1px;
}

.hero-main {
  display: flex;
  gap: 60px;
  align-items: center;
  margin-bottom: 30px;
}

.cio-profile {
  display: flex;
  align-items: center;
  gap: 20px;
  border-right: 1px solid var(--border-color);
  padding-right: 40px;
}

.image-wrapper img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 3px solid var(--primary-color);
  object-fit: cover;
}

.cio-info h3 {
  font-size: 1.1rem;
  color: var(--primary-dark);
  margin-bottom: 5px;
  font-weight: 700;
}

.cio-info .label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
}
p.aum{ font-size: 14px;margin-bottom: 5px;}
p.label{margin-bottom: 5px;line-height: 12px;font-weight: 600;}
.cio-links{ line-height: 16px;}
.cio-links a {
  margin-right: 10px;
  color: var(--primary-light);
  text-decoration: none;
}

.fund-branding .fund-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary-color);
  line-height: 18px;
}

.fund-subtitle {
  color: var(--primary-light);
  font-weight: 600;
  margin-bottom: 20px;
  font-size: 14px;
}

.action-buttons {
  display: flex;
  gap: 10px;
}

.action-buttons .btn-primary {
  background: var(--secondary-color);
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
}

.action-buttons .btn-secondary {
  background: var(--primary-dark);
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
}

.action-buttons .btn-primary:hover, .action-buttons .btn-secondary:hover{
 opacity: 90%;
}
.action-buttons a{ font-size: 13px;line-height: 16px;}
.hero-footer-stats {
  display: flex;
  gap: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  color: var(--text-light);
  font-size: 13px;font-weight: 600;
}

/* === PAGE LAYOUT === */
.page-layout-grid {
  display: grid;
  margin-top: 40px;
  grid-template-columns: 2.2fr 1fr;
  gap: 40px;
  align-items: start;
}

/* === MAIN CONTENT === */
.info-card-section {
  display: flex;
  flex-direction: row;
  gap: 20px;
}

.info-card {
  background: #f7f8fa;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.info-card h2 {
  color: var(--primary-color);
  margin-bottom: 12px;
  font-size: 1.3rem;
}

.info-card h4 {
  color: var(--primary-color);
  margin-bottom: 12px;
  font-size: 1rem;
  font-weight: 700;
}

.info-card p {
  color: var(--text-light);
  font-size: 14px;
  margin-bottom: 10px;font-weight: 600;
}
table td, table th{ border: none !important;}
.info-card ul {
  list-style-position: inside;
  color: var(--text-light);
  font-size: 14px;font-weight: 600;list-style: disc !important;
}

.info-card ul li {
  margin-bottom: 8px;
  line-height: 1.5;
  margin-left: 10px;
}

/* === PERFORMANCE === */
.performance-section {
  margin-top: 20px;
}

.performance-header {
  display: flex;
  margin-bottom: 8px;
}

.performance-header h3 {
  font-size: 11px;
  color: var(--text-dark);
  font-weight: 400;
}

.table-container {
  border: 1px solid var(--border-color);
  margin-bottom: 15px;
  background: #fff;
  overflow: hidden;
  border-radius: 5px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;margin-block-end: 0 !important; 
}

.table-container table td, .table-container table th {
    border: none;
}

.data-table thead th {
  background: var(--primary-color);
  color: #fff;
  padding: 10px;
  font-size: 10px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.data-table tbody td {
  padding: 12px;
  text-align: center;
  font-weight: 700;
  color: var(--primary-dark);
  border-right: 1px solid var(--border-color);
  font-size: 14px;
}

.data-table tbody td:last-child,
.data-table thead th:last-child {
  border-right: none;
}

/* === SIDEBAR === */
.sidebar-block {
  margin-bottom: 40px;
}

.sidebar-title {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-muted);
  border-bottom: 2px solid var(--secondary-color);
  padding-bottom: 5px;
  margin-bottom: 15px;
  letter-spacing: 0.5px;
}

.details-list {
  list-style: none;
}

.details-list li {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #f3f3f3;
  font-size: 13px;
  line-height: 1.3em;
  padding: 12px 0;
}

.details-list li span {
  color: var(--text-muted);
  font-weight: 600;
}

.details-list li strong {
  color: var(--text-dark);
  font-weight: 600;
}

/* ========================================
   SENTIMENT SECTION - TABS & CONTENT
======================================== */

.sentiment-section {
  background: var(--bg-white);
  padding: 0;
  border-radius: 8px;
}

/* === STICKY TAB NAVIGATION === */
.sticky-tabs {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-light);
  padding: 0;
  /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); */
}

.sentiment-tabs {
  display: flex;
  justify-content: center;
  gap: 0;
  max-width: 1200px;
  margin: 0 auto;
  background: transparent;
  padding: 0;
}

.sentiment-section .tab-btn {
  background-color: transparent !important;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 18px 22px;
  font-size: 14px;
  color: #6b7280 !important;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
      font-weight: 700;letter-spacing: 0.3px;
}

.tab-btn i {
  font-size: 16px;
  opacity: 0.7;
  transition: all 0.3s ease;
}

.tab-btn:hover {
  color: var(--primary-color) !important;
  background: #f9fafb;
  border-bottom-color: #d1d5db;font-weight: 700;letter-spacing: 0.3px;
}

.tab-btn:hover i {
  opacity: 1;
}

.tab-btn.active {
  background: transparent;
  color: var(--primary-color) !important;
  border-bottom-color: var(--primary-color);
}

.tab-btn.active i {
  opacity: 1;
}

/* === CONSISTENT SECTION HEADERS (ALL TABS) === */
.section-header {
  background: #ffffff;
  padding: 40px 0;
  margin: 0;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-weight: 700;
}

.section-title-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-icon {
  font-size: 24px;
  color: var(--primary-color);
}

.section-title {
  font-size: 24px !important;
  font-weight: 600;
  color: var(--primary-color) !important;
  margin: 0;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 14px;
  margin: 8px 0 0 36px;
  font-weight: 400;
}

.section-meta {
  display: flex;
  gap: 10px;
  align-items: center;
}

.download-button{
    background: var(--success-color);
  color: var(--bg-white);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
}

.year-badge,
.count-badge,
.positioning-badge {
  background: #f3f4f6;
  color: var(--text-dark);
  border: 1px solid #e5e7eb;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
}

.positioning-badge {
  display: flex;
  align-items: center;
  gap: 6px;
}

.positioning-badge i {
  font-size: 12px;
  color: var(--text-muted);
}

/* === TAB CONTENT BASE === */
.tab-content {
  display: none;
  background: #fafbfc;
  min-height: 500px;
}

.tab-content.active {
  display: block;
}

/* ========================================
   SUMMARY TAB 
======================================== */

#summary .summary-image-wrapper {
  margin: var(--section-padding);
  padding: 0px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;border:none;
}

#summary .summary-img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* ========================================
   LETTERS & PITCHES TAB - CONSISTENT SPACING
======================================== */

#letters .table-responsive,
#pitches .table-responsive {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
}

.letters-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  background: var(--bg-white);
}

.letters-table thead th {
  background-color: var(--primary-color);
  color: white;
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.5px;
  border-right: 1px solid rgba(255,255,255,0.1);
}

.letters-table thead th:last-child {
  border-right: none;
}

.letters-table tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-color);
  border-right: 1px solid #f3f4f6;
  vertical-align: top;
  color: var(--text-dark);
  line-height: 1.5;
}

.letters-table tbody tr:last-child td {
  border-bottom: none;
}

.letters-table tbody td:last-child {
  border-right: none;
}

.letters-table tbody tr:hover {
  background-color: #f9fafb;
}

.col-date {
  white-space: nowrap;
  width: 80px;
  font-weight: 500;
  text-align: center;
}

.col-letter, .col-tickers, .col-pitches {
  width: 100px;
  text-align: center;
}

.col-letter a, .col-tickers a {
  font-weight: 500;
  color: var(--primary-color);
  text-decoration: none;
}

.col-letter a:hover, .col-tickers a:hover {
  text-decoration: underline;
}

.col-keywords {
  width: 280px;
}

.keyword-link, .pitch-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  font-size: 13px;
}

.keyword-link:hover, .pitch-link:hover {
  text-decoration: underline;
}

.col-pitches i {
  color: var(--primary-color);
  margin-right: 6px;
}

.col-commentary {
  color: var(--text-light);
  font-size: 13px;
  line-height: 1.6;
}

/* ========================================
   PORTFOLIO TAB - CONSISTENT SPACING
======================================== */

/* Risk Cards Grid */
#portfolio .cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: var(--section-padding);
  padding: 0;
}

/* Portfolio Table Section */
#portfolio .portfolio-table-section {
  margin: var(--section-padding);
  padding: 0;
}

.portfolio-table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.portfolio-table-header h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-color);
  margin: 0;
}

.btn-success {
  background: #28a745;
  color: white;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-success:hover {
  background: #218838;
}

.btn-success i {
  margin-right: 6px;
}

#portfolio .table-responsive {
  border: 1px solid var(--border-color);
  overflow-x: auto;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.portfolio-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  background: var(--bg-white);
  min-width: 1200px;
}

.portfolio-table thead th {
  background-color: var(--primary-color);
  color: white;
  padding: 12px 10px;
  text-align: center;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.portfolio-table tbody td {
  padding: 12px 10px;
  border-bottom: 1px solid #f3f4f6;
  color: var(--text-dark);
  vertical-align: middle;
  text-align: center;
  font-size: 13px;
}

.portfolio-table tbody tr:last-child td {
  border-bottom: none;
}

.portfolio-table tbody tr:hover {
  background-color: #f9fafb;
}

.ticker-cell {
  font-weight: 700;
  color: var(--primary-color);
}

.company-cell {
  font-weight: 500;
  color: var(--text-dark);
  text-align: left;
}

.weight-cell.positive {
  color: #28a745;
  font-weight: 600;
}

.change-percent-cell.new-buy,
.change-percent-cell.increase {
  color: #28a745;
  font-weight: 600;
}

.change-percent-cell.neutral {
  color: var(--text-muted);
}

/* Small Tables Grid */
#portfolio .small-tables-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: var(--section-padding);
  padding: 0;
}

.small-table-container {
  background: var(--bg-white);
  border-radius: 8px;
  overflow-x: auto;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.small-table-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-color);
  padding: 20px;
  margin: 0;
  border-bottom: 1px solid #f3f4f6;
  background: #fafbfc;
}

.small-portfolio-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  background: var(--bg-white);
}

.small-portfolio-table thead th {
  background-color: #f8f9fa;
  color: var(--text-dark);
  padding: 10px 8px;
  text-align: center;
  font-weight: 600;
  font-size: 11px;
  border-bottom: 1px solid #e5e7eb;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.small-portfolio-table tbody td {
  padding: 10px 8px;
  border-bottom: 1px solid #f3f4f6;
  color: var(--text-dark);
  text-align: center;
  font-size: 12px;
}

.small-portfolio-table tbody tr:last-child td {
  border-bottom: none;
}

.small-portfolio-table tbody tr:hover {
  background-color: #f9fafb;
}

.positive {
  color: #28a745;
  font-weight: 600;
}

.negative {
  color: #dc3545;
  font-weight: 600;
}

.status-decreased {
  color: #dc3545;
  font-weight: 500;
}

.industry-cell {
  text-align: left !important;width: 35%;
}
.view-more {
  padding: 15px 20px;
  text-align: center;
  background: #fafbfc;
  border-top: 1px solid #e5e7eb;
}

.view-more-link {
  color: var(--primary-color);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
}

.view-more-link:hover {
  text-decoration: underline;
}

/* Charts Section */
#portfolio .charts-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: var(--section-padding);
  padding: 0;
}

.chart-container {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.chart-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-color);
  margin: 0 0 20px 0;
  padding-bottom: 12px;
  border-bottom: 1px solid #e5e7eb;
}

/* ========================================
   FILINGS TAB - CONSISTENT SPACING
======================================== */

#filings .filings-table-section {
  margin: var(--section-padding);
  padding: 0;
}

#filings .table-responsive {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.filings-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  background: var(--bg-white);
  min-width: 900px;
}

.filings-table thead th {
  background-color: var(--primary-color);
  color: #ffffff;
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filings-table tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid #f3f4f6;
  color: var(--text-dark);
  vertical-align: middle;
  font-size: 13px;
}

.filings-table tbody tr:last-child td {
  border-bottom: none;
}

.filings-table tbody tr:hover {
  background-color: #f9fafb;
}

.symbol-cell {
  font-weight: 700;
  color: var(--primary-color);
}

.company-cell {
  font-weight: 500;
  color: var(--text-dark);
}

.filed-by-cell {
  color: var(--text-light);
}

.date-cell {
  color: var(--text-muted);
  font-size: 12px;
}

.filing-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  padding: 4px 12px;
  background: #f3f4f6;
  border-radius: 4px;
  display: inline-block;
  font-size: 12px;
}

.filing-link:hover {
  background: #e5e7eb;
  text-decoration: none;
}

/* ========================================
   RESPONSIVE DESIGN
======================================== */

@media (max-width: 1200px) {
  :root {
    --section-padding: var(--section-padding-mobile);
  }

  body {
    padding: 30px 20px;
  }
  
  .page-layout-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  
  .hero-main {
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
  }
  
  .cio-profile {
    border-right: none;
    padding-right: 0;
  }
  
  .sentiment-section {
    margin: 0 auto;
  }

  .sticky-tabs {
    padding: 0;
  }

  .sentiment-tabs {
    flex-wrap: wrap;
  }

  .tab-btn {
    padding: 14px 20px;
    font-size: 13px;
  }

  .section-header {
    padding: 40px 0;
    flex-direction: column;
    align-items: flex-start;
  }

  .section-title {
    font-size: 20px;
  }

  .section-icon {
    font-size: 20px;
  }

  .section-subtitle {
    margin-left: 32px;
  }

  #portfolio .cards-grid,
  #portfolio .small-tables-grid {
    grid-template-columns: 1fr;
  }

  #portfolio .charts-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .tab-btn {
    padding: 12px 16px;
    font-size: 12px;
    gap: 6px;
  }

  .tab-btn i {
    font-size: 14px;
  }

  .section-title {
    font-size: 18px;
  }

  .section-icon {
    font-size: 18px;
  }

  .section-meta {
    width: 100%;
    flex-wrap: wrap;
  }

  .year-badge,
  .count-badge,
  .positioning-badge {
    font-size: 12px;
    padding: 5px 12px;
  }

  .portfolio-table-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

@media (max-width: 640px) {
  .tab-btn span {
    display: none;
  }

  .tab-btn {
    padding: 12px;
  }

  .section-header {
    padding: 24px 20px 20px 20px;
  }
}