/* financial-performance.css */

.financial-performance {
  background-color: #f8f8f8;
  /* A light grey background as seen in the image */
  padding: 180px 0 100px;
  position: relative;
  overflow: hidden;
}

.financial-performance .financial-shapes {
  position: absolute;
  top: 5%;
  left: 50%;
  transform: translateX(-50%);
}

.financial-performance .financial-heading {
  text-align: center;
  margin: 0 auto 50px;
  font-family: "Urbanist", sans-serif;
}

.financial-performance .financial-heading h1 {
  color: #131313;
  text-align: center;
  font-family: Urbanist;
  font-size: 96px;
  font-style: normal;
  font-weight: 400;
  line-height: 109%;
  text-transform: capitalize;
  margin-bottom: 48px !important;
  max-width: 961px;
  margin: 0 auto;
}

.financial-performance .financial-heading .text-green {
  color: #006337;
}

.financial-performance .financial-heading p {
  color: #5D5D5D;
  text-align: center;
  font-family: Urbanist;
  font-size: 24px;
  font-style: normal;
  font-weight: 400;
  line-height: 109%;
  text-transform: lowercase;
  max-width: 1366px;
  width: 100%;
  margin: 0 auto;
}

.chart-container-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  background-image: url("../images/financial-circle.svg");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: contain;
  /* or cover, depending on desired effect */
  padding: 100px 20px 100px;
  position: relative;
  z-index: 10;
}

.chart-container {
  padding: 40px;
  width: 100%;
  max-width: 1600px;
  border-radius: 24px;
  border: 1px solid #027E47;
  background-color: white;
  box-shadow: 0 -7px 16px 0 rgba(0, 99, 55, 0.49), 0 4px 16px 0 rgba(0, 0, 0, 0.16);
}

.chart-container h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 40px;
  text-align: left;
}

.chart {
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
  height: 500px;
  /* Container height to accommodate bars + values */
}

.chart-bar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.bar-value {
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.bar {
  border-radius: 24px;
  background: linear-gradient(180deg,
      #008e4e 25.58%,
      rgba(255, 255, 255, 0.57) 100%);
  box-shadow: 0 0 34.776px 0 #61b991, 0 0 19.872px 0 #61b991,
    0 0 11.592px 0 #61b991, 0 0 5.796px 0 #61b991, 0 0 1.656px 0 #61b991,
    0 0 0.828px 0 #61b991;
  width: 100px;
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 1.5s ease-in-out;
}

.chart-bar-item.aos-animate .bar {
  transform: scaleY(1);
}

.bar-year {
  font-size: 16px;
  font-weight: 600;
  color: #555;
  background-color: #f0f0f0;
  padding: 5px 15px;
  border-radius: 12px;
}

/* Income Statement Table */
.income-statement-section {
  padding: 50px 20px;
}

.income-statement-container {
  background-color: white;
  border-radius: 30px;
  padding: 40px;
  box-shadow: 0px 10px 50px rgba(0, 0, 0, 0.08);
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.income-statement-container h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #008e4e;
}

.income-statement-container p {
  font-size: 16px;
  color: #555;
  line-height: 1.6;
  margin-bottom: 30px;
}

.financial-table {
  width: 100%;
  border-collapse: collapse;
}

.financial-table th,
.financial-table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #f0f0f0;
  font-size: 14px;
}

.financial-table thead th {
  background-color: #006337;
  color: white;
  font-weight: bold;
  font-size: 16px;
  text-align: center;
}

.financial-table thead th:first-child {
  border-top-left-radius: 15px;
  text-align: left;
}

.financial-table thead th:last-child {
  border-top-right-radius: 15px;
}

.financial-table tbody td:not(:first-child) {
  text-align: center;
}

.financial-table .highlight {
  background-color: #f0f0f0;
  font-weight: bold;
}

.financial-table .indented {
  padding-left: 30px;
}

.financial-table .sub-item {
  font-weight: normal;
}

/* Revenue Analysis Section */
.revenue-analysis-section {
  padding: 50px 20px;
  background-color: #f8f8f8;
}

.revenue-analysis-container {
  max-width: 1200px;
  margin: 0 auto;
}

.revenue-analysis-container h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 5px;
  color: #008e4e;
}

.revenue-analysis-container p {
  font-size: 16px;
  color: #555;
  line-height: 1.6;
  margin-bottom: 30px;
}

.revenue-table-wrapper {
  background-color: white;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0px 10px 50px rgba(0, 0, 0, 0.08);
  margin-bottom: 40px;
  display: flex;
}

.revenue-table-vertical-header {
  display: flex;
  align-items: center;
  justify-content: center;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  background-color: #f0f0f0;
  padding: 10px;
  border-radius: 10px;
  margin-right: 20px;
  font-weight: 600;
  color: #333;
}

.revenue-table {
  width: 100%;
  border-collapse: collapse;
}

.revenue-table th,
.revenue-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid #f0f0f0;
  font-size: 14px;
}

.revenue-table thead th {
  background-color: #006337;
  color: white;
  font-weight: bold;
  font-size: 16px;
  text-align: center;
}

.revenue-table thead th:first-child {
  border-top-left-radius: 15px;
  text-align: left;
}

.revenue-table thead th:last-child {
  border-top-right-radius: 15px;
}

.revenue-table tbody td {
  text-align: center !important;
}

.revenue-table tbody td:first-child,
.revenue-table tbody td:nth-child(2) {
  text-align: left;
  font-weight: 600;
}

.revenue-table tbody tr:last-child {
  background-color: #f0f0f0;
  font-weight: bold;
}

.revenue-table tbody tr:last-child td:first-child {
  color: #008e4e;
  border-bottom-left-radius: 15px;
}

.revenue-table tbody tr:last-child td:last-child {
  border-bottom-right-radius: 15px;
}

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

.revenue-table tbody tr,
.financial-table tbody tr {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.aos-animate .revenue-table tbody tr,
.aos-animate .financial-table tbody tr {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .financial-performance h1{
    font-size: 48px !important;
  } 
}
.financial-cta{
  background: url(../images/financial-cta.jpg);
  background-position: center;
}