/* Investor Page Styles */

/* Prevent horizontal scroll on mobile */
body {
  overflow-x: hidden;
  max-width: 100%;
  position: relative;
}

/* Hero Section - Modern Minimal Design */
#investor-hero {
  padding: 160px 0 100px;
  background: #ffffff;
  min-height: 70vh;
  display: flex;
  align-items: center;
}

#investor-hero .wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  width: 100%;
}

#investor-hero .hero-content {
  max-width: 900px;
}

#investor-hero .hero-label {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #76885b;
  margin-bottom: 32px;
}

#investor-hero .hero-heading {
  font-size: 72px;
  font-weight: 700;
  line-height: 1.1;
  color: #141414;
  margin-bottom: 32px;
  letter-spacing: -1px;
}

#investor-hero .hero-heading .highlight {
  color: #76885b;
}

#investor-hero .hero-description {
  font-size: 24px;
  line-height: 1.5;
  color: #666;
  margin-bottom: 60px;
  font-weight: 300;
}

/* Stats Section */
#investor-hero .hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
  padding-top: 40px;
  border-top: 1px solid #e5e5e5;
}

.stat-item {
  text-align: left;
}

.stat-number {
  font-size: 48px;
  font-weight: 700;
  color: #76885b;
  line-height: 1;
  margin-bottom: 12px;
}

.stat-label {
  font-size: 14px;
  font-weight: 500;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Investor Content Section */
#investor-content {
  padding: 60px 0 80px;
  background: white;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.content-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 80px;
  align-items: start;
}

/* Sidebar Navigation */
.sidebar {
  position: sticky;
  top: 100px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  color: #666;
  text-decoration: none;
  font-size: 16px;
  font-weight: 400;
  background: #f5f5f5;
  border-radius: 0;
  transition: all 0.3s ease;
  position: relative;
  border-left: 4px solid transparent;
}

.sidebar-item:first-child {
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.sidebar-item:last-child {
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}

.sidebar-item:hover {
  background: #ebebeb;
  color: #141414;
}

.sidebar-item.active {
  background: white;
  color: #141414;
  font-weight: 500;
  border-left-color: #76885b;
}

.sidebar-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: transparent;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.sidebar-item.active .sidebar-indicator {
  background: #76885b;
}

/* Main Content Area */
.main-content {
  min-height: 500px;
  width: 100%;
  max-width: 100%;
}

.content-section {
  display: none;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.content-section.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Document List */
.document-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.document-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 32px;
  background: white;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  text-decoration: none;
  color: #141414;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.document-item:hover {
  background: #f9f9f9;
  border-color: #76885b;
  transform: translateX(4px);
}

.document-item:hover .download-icon {
  color: #76885b;
  transform: translateX(4px);
}

.document-name {
  flex: 1;
}

.download-icon {
  width: 24px;
  height: 24px;
  color: #666;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

/* Empty Message */
.empty-message {
  padding: 40px;
  text-align: center;
  color: #999;
  font-size: 16px;
  font-style: italic;
}

/* Sub-Tabs for Analyst Meets Section */
.sub-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
  border-bottom: 2px solid #f0f0f0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.sub-tab-btn {
  padding: 12px 24px;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  color: #666;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s ease;
  position: relative;
  bottom: -2px;
}

.sub-tab-btn:hover {
  color: #141414;
  background: #f9f9f9;
}

.sub-tab-btn.active {
  color: #76885b;
  border-bottom-color: #76885b;
  font-weight: 600;
}

.sub-tab-content {
  margin-top: 24px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.sub-tab-panel {
  display: none;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.sub-tab-panel.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

/* Subsection for Group Companies */
.subsection {
  margin-bottom: 40px;
}

.subsection:last-child {
  margin-bottom: 0;
}

.subsection-title {
  font-size: 20px;
  font-weight: 600;
  color: #141414;
  margin-bottom: 20px;
  padding-left: 8px;
}

/* Responsive Design */
@media screen and (max-width: 1200px) {
  .content-wrapper {
    gap: 60px;
  }
}

@media screen and (max-width: 991px) {
  html, body {
    overflow: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch;
    height: auto !important;
    position: relative !important;
  }

  #investor-hero {
    padding: 120px 0 80px;
    min-height: 60vh;
  }

  #investor-hero .wrapper {
    padding: 0 30px;
  }

  #investor-hero .hero-heading {
    font-size: 56px;
  }

  #investor-hero .hero-description {
    font-size: 20px;
    margin-bottom: 50px;
  }

  #investor-hero .hero-stats {
    gap: 40px;
  }

  .stat-number {
    font-size: 40px;
  }

  .stat-label {
    font-size: 13px;
  }

  #investor-content {
    min-height: auto;
    height: auto;
    overflow: visible !important;
  }

  .content-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 0;
    max-width: 100vw;
  }

  .main-content {
    padding: 0 20px;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    min-height: auto;
  }

  .sidebar {
    position: static;
    order: -1;
    width: 100%;
    overflow: visible;
    margin: 0;
    padding: 0;
  }

  .sidebar-nav {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 12px;
    padding: 0 20px 12px 20px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    flex-wrap: nowrap;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    scroll-snap-type: x proximity;
    touch-action: pan-x;
  }

  .sidebar-nav::-webkit-scrollbar {
    height: 4px;
  }

  .sidebar-nav::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 4px;
  }

  .sidebar-nav::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
  }

  .sidebar-nav::-webkit-scrollbar-thumb:hover {
    background: #999;
  }

  .sidebar-item {
    white-space: nowrap;
    padding: 12px 20px;
    border-radius: 24px !important;
    border-left: none;
    background: #f5f5f5;
    font-size: 14px;
    flex-shrink: 0;
  }

  .sidebar-item.active {
    background: #76885b;
    color: white;
  }

  .sidebar-indicator {
    display: none;
  }

  .document-item {
    padding: 20px 24px;
    font-size: 15px;
  }

  .sub-tabs {
    gap: 8px;
  }

  .sub-tab-btn {
    padding: 10px 20px;
    font-size: 14px;
  }
}

@media screen and (max-width: 767px) {
  #investor-hero {
    padding: 100px 0 60px;
    min-height: 50vh;
  }

  #investor-hero .wrapper {
    padding: 0 20px;
  }

  #investor-hero .hero-label {
    font-size: 12px;
    letter-spacing: 1.5px;
    margin-bottom: 24px;
  }

  #investor-hero .hero-heading {
    font-size: 40px;
    margin-bottom: 24px;
  }

  #investor-hero .hero-description {
    font-size: 18px;
    margin-bottom: 40px;
  }

  #investor-hero .hero-stats {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 32px;
  }

  .stat-number {
    font-size: 36px;
  }

  .stat-label {
    font-size: 12px;
  }

  #investor-content {
    padding: 40px 0 60px;
  }

  .content-wrapper {
    gap: 30px;
  }

  .sidebar-nav {
    gap: 8px;
    flex-wrap: wrap;
    overflow-x: visible;
    padding: 0 16px;
    scroll-snap-type: none;
    touch-action: auto;
  }

  .sidebar-item {
    padding: 10px 16px;
    font-size: 13px;
    flex: 1 1 calc(50% - 8px);
    justify-content: center;
    text-align: center;
    border-radius: 16px !important;
  }

  .document-item {
    padding: 16px 20px;
    font-size: 14px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .download-icon {
    align-self: flex-end;
  }

  .subsection-title {
    font-size: 18px;
  }

  .sub-tab-btn {
    padding: 8px 16px;
    font-size: 13px;
  }
}

@media screen and (max-width: 480px) {
  #investor-hero {
    padding: 80px 0 50px;
  }

  .sidebar-item {
    flex-basis: 100%;
  }

  #investor-hero .hero-heading {
    font-size: 32px;
    letter-spacing: -0.5px;
  }

  #investor-hero .hero-description {
    font-size: 16px;
  }

  .stat-number {
    font-size: 32px;
  }

  .document-item {
    padding: 14px 16px;
    font-size: 13px;
  }

  .document-item:hover {
    transform: none;
  }
}

/* Filter Section */
.filter-section {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
  padding: 20px 28px;
  background: #f9f9f9;
  border-radius: 12px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.filter-label {
  font-size: 15px;
  font-weight: 500;
  color: #141414;
  margin: 0;
}

.year-filter {
  padding: 10px 16px;
  font-size: 15px;
  font-weight: 500;
  color: #141414;
  background: white;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 160px;
}

.year-filter:hover {
  border-color: #76885b;
}

.year-filter:focus {
  outline: none;
  border-color: #76885b;
  box-shadow: 0 0 0 3px rgba(118, 136, 91, 0.1);
}

/* Accordion Section */
.accordion-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.accordion-item {
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  overflow: hidden;
  background: white;
  transition: all 0.3s ease;
}

.accordion-item:hover {
  border-color: #d0d0d0;
}

.accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  background: white;
  border: none;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  color: #141414;
  transition: all 0.3s ease;
  text-align: left;
}

.accordion-header:hover {
  background: #f9f9f9;
}

.accordion-header.active {
  background: #f9f9f9;
  color: #76885b;
}

.accordion-icon {
  width: 20px;
  height: 20px;
  color: #666;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.accordion-header.active .accordion-icon {
  transform: rotate(180deg);
  color: #76885b;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.accordion-content.active {
  max-height: 1000px;
  border-top: 1px solid #f0f0f0;
}

.accordion-content .empty-message {
  padding: 32px 28px;
}

.accordion-content .document-list {
  padding: 20px 28px;
}

/* Responsive for Filter and Accordion */
@media screen and (max-width: 767px) {
  .filter-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
  }

  .filter-label {
    font-size: 14px;
  }

  .year-filter {
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
  }

  .accordion-header {
    padding: 16px 20px;
    font-size: 15px;
  }

  .accordion-icon {
    width: 18px;
    height: 18px;
  }

  .accordion-content .empty-message {
    padding: 24px 20px;
    font-size: 14px;
  }

  .accordion-content .document-list {
    padding: 16px 20px;
    gap: 12px;
  }

  .accordion-content .document-item {
    padding: 14px 16px;
    font-size: 14px;
  }

  .sub-tabs {
    margin-bottom: 24px;
    gap: 6px;
  }

  .sub-tab-btn {
    padding: 10px 16px;
    font-size: 13px;
  }
}

@media screen and (max-width: 480px) {
  .filter-section {
    padding: 12px 16px;
    gap: 10px;
  }

  .filter-label {
    font-size: 13px;
  }

  .year-filter {
    font-size: 13px;
    padding: 8px 12px;
  }

  .accordion-header {
    padding: 12px 16px;
    font-size: 14px;
  }

  .accordion-icon {
    width: 16px;
    height: 16px;
  }

  .accordion-content .empty-message {
    padding: 20px 16px;
    font-size: 13px;
  }

  .accordion-content .document-list {
    padding: 12px 16px;
    gap: 10px;
  }

  .accordion-content .document-item {
    padding: 12px 14px;
    font-size: 13px;
  }

  .sub-tab-btn {
    padding: 8px 12px;
    font-size: 12px;
  }
}
