/* Investor Hero Section */
.investor-hero {
  position: relative;
  padding: 6rem 0;
  color: #fff;
  overflow: hidden;
}

.investor-hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("../assets/images/investors-preview.jpg") no-repeat center
    center/cover;
  z-index: -1;
  background-attachment: fixed;
}

.investor-hero .container {
  position: relative;
  z-index: 2;
}

.investor-hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.investor-hero .highlight {
  color: #ffc107;
}

.investor-hero .hero-subtitle {
  font-size: 1.5rem;
  max-width: 700px;
  margin-bottom: 3rem;
  opacity: 0.9;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 3rem;
}

.stat-item {
  background: white;
  backdrop-filter: blur(10px);
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  min-width: 180px;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Quick Links */
.quick-links {
  padding: 3rem 0;
  background-color: #f8f9fa;
}

.quick-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
}

.quick-link-card {
  background: #fff;
  border-radius: 8px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid #e9ecef;
  color: #212529;
  text-decoration: none;
}

.quick-link-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  border-color: #0056b3;
}

.quick-link-card i {
  font-size: 2rem;
  color: #0056b3;
  margin-bottom: 1rem;
  display: block;
}

.quick-link-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
}

/* Stock Information */
.stock-info {
  padding: 5rem 0;
  background-color: #fff;
}

.stock-data {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.stock-price-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid #e9ecef;
}

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

.ticker {
  font-size: 1.5rem;
  font-weight: 700;
  color: #212529;
}

.exchange {
  background: #e9ecef;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
}

.price-main {
  margin-bottom: 1.5rem;
}

.current-price {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.price-change {
  font-size: 1.1rem;
  font-weight: 600;
}

.price-change.positive {
  color: #28a745;
}

.price-change.negative {
  color: #dc3545;
}

.detail-item {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid #f1f1f1;
}

.detail-label {
  color: #6c757d;
}

.detail-value {
  font-weight: 500;
}

/* Update the stock chart container styles */
.stock-chart-container {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid #e9ecef;
  position: relative; /* Add this */
  height: 400px; /* Set a fixed height */
  min-height: 400px; /* Ensure it doesn't shrink below this */
  max-height: 400px; /* Ensure it doesn't grow beyond this */
}

/* Update the chart canvas styles */
#stockChart {
  width: 100% !important; /* Important to override Chart.js defaults */
  height: 100% !important; /* Important to override Chart.js defaults */
  min-height: 300px; /* Minimum height */
}

.chart-period-selector {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.period-btn {
  padding: 0.25rem 0.75rem;
  background: none;
  border: 1px solid #e9ecef;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.3s ease;
}

.period-btn.active {
  background: #0056b3;
  color: white;
  border-color: #0056b3;
}

.period-btn:hover:not(.active) {
  background: #f8f9fa;
}

#stockChart {
  width: 100%;
  height: 300px;
}

.dividend-info {
  margin-top: 3rem;
}

.dividend-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.dividend-card {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
}

.dividend-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0056b3;
  margin-bottom: 0.5rem;
}

.dividend-label {
  font-size: 0.9rem;
  color: #6c757d;
}

/* Financial Highlights */
.financial-highlights {
  padding: 5rem 0;
  background-color: #f8f9fa;
}

.financial-tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  overflow-x: auto;
  padding-bottom: 1rem;
}

.fin-tab-btn {
  padding: 0.75rem 1.5rem;
  background: none;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.fin-tab-btn.active {
  background-color: #0056b3;
  color: white;
}

.fin-tab-content {
  display: none;
}

.fin-tab-content.active {
  display: block;
}

.financial-table-container {
  overflow-x: auto;
  margin-bottom: 3rem;
}

.financial-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.financial-table th {
  background-color: #0056b3;
  color: white;
  padding: 1rem;
  text-align: left;
  font-weight: 600;
}

.financial-table td {
  padding: 1rem;
  border-bottom: 1px solid #e9ecef;
}

.financial-table tr:last-child td {
  border-bottom: none;
}

.financial-table tr.highlight-row {
  background-color: #f8f9fa;
}

.financial-table tr.highlight-row td {
  font-weight: 700;
}

.financial-table .positive {
  color: #28a745;
  font-weight: 600;
}

.financial-table .negative {
  color: #dc3545;
  font-weight: 600;
}

.download-section {
  margin-top: 3rem;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.download-card {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 8px;
  padding: 1rem 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid #e9ecef;
  color: #212529;
  text-decoration: none;
  transition: all 0.3s ease;
}

.download-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  border-color: #0056b3;
}

.download-card i.fa-file-pdf {
  color: #d32f2f;
  font-size: 1.5rem;
  margin-right: 1.5rem;
}

.download-card i.fa-download {
  color: #6c757d;
  margin-left: auto;
}

.download-info h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.download-info p {
  font-size: 0.85rem;
  color: #6c757d;
}

/* Earnings & Presentations */
.earnings-presentations {
  padding: 5rem 0;
  background-color: #fff;
}

.earnings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.earnings-card {
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid #e9ecef;
  transition: all 0.3s ease;
}

.earnings-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  border-color: #0056b3;
}

.earnings-date {
  font-size: 0.9rem;
  color: #6c757d;
  margin-bottom: 0.5rem;
}

.earnings-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: #212529;
}

.earnings-description {
  font-size: 0.95rem;
  color: #495057;
  margin-bottom: 1.5rem;
}

.earnings-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.earnings-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #0056b3;
  text-decoration: none;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  background-color: #e6f0ff;
  transition: all 0.3s ease;
}

.earnings-link:hover {
  background-color: #cce0ff;
}

.earnings-archive {
  margin-top: 3rem;
  text-align: center;
}

/* Upcoming Events */
.upcoming-events {
  padding: 5rem 0;
  background-color: #f8f9fa;
}

.events-timeline {
  margin-top: 2rem;
  position: relative;
}

.events-timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 60px;
  width: 2px;
  background-color: #e9ecef;
  z-index: 1;
}

.event-item {
  display: flex;
  margin-bottom: 2rem;
  position: relative;
  z-index: 2;
}

.event-date {
  width: 120px;
  flex-shrink: 0;
  text-align: center;
  padding: 0.5rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid #e9ecef;
  margin-right: 1.5rem;
}

.event-day {
  font-size: 2rem;
  font-weight: 700;
  color: #0056b3;
  line-height: 1;
}

.event-month {
  font-size: 0.9rem;
  text-transform: uppercase;
  color: #6c757d;
  margin: 0.25rem 0;
}

.event-year {
  font-size: 0.9rem;
  color: #6c757d;
}

.event-content {
  flex-grow: 1;
  background: #fff;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid #e9ecef;
}

.event-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: #212529;
}

.event-details {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: #6c757d;
}

.event-details i {
  margin-right: 0.5rem;
}

.event-description {
  font-size: 0.95rem;
  color: #495057;
  margin-bottom: 1.5rem;
}

.event-link {
  color: #0056b3;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.3s ease;
}

.event-link:hover {
  color: #003d82;
  text-decoration: underline;
}

/* Corporate Governance */
.corporate-governance {
  padding: 5rem 0;
  background-color: #fff;
}

.governance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.governance-card {
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid #e9ecef;
  transition: all 0.3s ease;
  text-align: center;
}

.governance-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  border-color: #0056b3;
}

.governance-card i {
  font-size: 2.5rem;
  color: #0056b3;
  margin-bottom: 1.5rem;
  display: block;
}

.governance-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: #212529;
}

.governance-card p {
  font-size: 0.95rem;
  color: #495057;
  margin-bottom: 1.5rem;
}

.governance-link {
  color: #0056b3;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.governance-link:hover {
  color: #003d82;
  text-decoration: underline;
}

.governance-link i {
  display: inline-block;
  margin-left: 0.5rem;
  font-size: 0.9rem;
}

.esg-section {
  margin-top: 4rem;
  padding: 2rem;
  background: #f8f9fa;
  border-radius: 12px;
}

.esg-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-top: 1.5rem;
}

.esg-text p {
  font-size: 1rem;
  color: #495057;
  margin-bottom: 1.5rem;
}

.esg-list {
  margin-bottom: 1.5rem;
}

.esg-list li {
  margin-bottom: 0.75rem;
  padding-left: 1.5rem;
  position: relative;
}

.esg-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #0056b3;
  font-weight: bold;
}

.esg-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Investor Contact */
.investor-contact {
  padding: 5rem 0;
  background-color: #f8f9fa;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.contact-card {
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid #e9ecef;
  transition: all 0.3s ease;
  text-align: center;
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  border-color: #0056b3;
}

.contact-icon {
  width: 60px;
  height: 60px;
  background-color: #e6f0ff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: #0056b3;
  font-size: 1.5rem;
}

.contact-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  color: #212529;
}

.contact-info {
  text-align: left;
}

.contact-info p {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.contact-info i {
  width: 20px;
  text-align: center;
  margin-right: 0.5rem;
  color: #6c757d;
}

.email-alerts-form {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.email-alerts-form input {
  flex-grow: 1;
  padding: 0.5rem 1rem;
  border: 1px solid #e9ecef;
  border-radius: 4px;
  font-size: 0.95rem;
}

.email-alerts-form button {
  white-space: nowrap;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .stock-data {
    grid-template-columns: 1fr;
  }

  .esg-content {
    grid-template-columns: 1fr;
  }

  .esg-image {
    order: -1;
  }
}

@media (max-width: 768px) {
  .investor-hero h1 {
    font-size: 2.5rem;
  }

  .hero-stats {
    flex-wrap: wrap;
  }

  .event-item {
    flex-direction: column;
  }

  .event-date {
    margin-right: 0;
    margin-bottom: 1rem;
    width: 100px;
  }

  .events-timeline::before {
    left: 50px;
  }
}

@media (max-width: 576px) {
  .investor-hero h1 {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .financial-table {
    font-size: 0.85rem;
  }

  .financial-table th,
  .financial-table td {
    padding: 0.75rem 0.5rem;
  }
}
