/* Custom styles for this layout */
.banner-container {
  position: relative;
  width: 100%;
  height: 300px;
  /* Adjust height as needed */
  overflow: hidden;
}

.banner-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  justify-content: center;

  flex-direction: column;
  color: white;
}

.company-overlay {
  font-size: 2.5rem;
  font-weight: bold;
  text-align: start;
  margin-left: 10px;
}

.tab-buttons-container {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #6fad9c;
  /* padding-top: 15px; */
}

.investment-tab {
  background: transparent;
  border: none;
  color: white;
  padding: 10px 20px;
  font-weight: 600;
  position: relative;
  transition: all 0.3s ease;
}

.investment-tab.active {
  color: #ffffff;
}

.investment-tab.active::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: #ffffff;
}

.tab-content-container {
  padding: 30px 0;
}

.investment-card {
  border: none;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  height: 100%;
}

.investment-card:hover {
  transform: translateY(-5px);
}

.investment-card .card-img-top {
  height: 180px;
  object-fit: cover;
}

/* Tab content animations */
.tab-pane {
  animation: fadeIn 0.5s ease;
}
.tab-pane.fade {
  opacity: 0;
  transition: opacity 0.3s ease-in;
}
.tab-pane.fade.show {
  opacity: 1;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}
.top-img-overlay {
  position: absolute;
}
.overlay_0 {
  left: 1vw; /* Adjusted to use viewport width for responsiveness */
  bottom: 12vh; /* Adjusted to use viewport height for responsiveness */
  padding-left: 2rem;
  border-radius: 15px;
  background: rgba(234, 240, 244, 0.7);
  height: 10vh; /* Use viewport height for responsive height */
  width: 40vw; /* Use viewport width for responsive width */
}
/* give media query for smaller screens */
@media (max-width: 768px) {
  .overlay_0 {
    left: 2vw; /* Adjusted for smaller screens */
    bottom: 10vh; /* Adjusted for smaller screens */
    width: 80vw; /* Adjusted for smaller screens */
    height: 12vh; /* Adjusted for smaller screens */
  }
}
.nav-pills-custom {
  background-color: #038443;
}
.nav-link-custom:hover {
  background-color: #038443;
  color: rgb(255, 132, 0) !important;
}

.nav-link-custom {
  color: white;
  height: 10%;
  width: 100%;
  text-align: center;
  transition: all 0.2s ease;
  text-decoration: none;
  position: relative; /* Necessary to position the border */
  transition: all 0.5s ease;
}
.nav-link-custom::after {
  content: "";
  position: absolute;
  bottom: 0; /* Keep the border at the bottom */
  right: 0; /* Start the border from the left */
  width: 80%; /* Make the border 80% of the width */
  height: 2px; /* Border thickness */
  background-color: white; /* Border color */
}

.nav-link-custom:hover {
  color: rgb(255, 132, 0);
}

.nav-link-custom.active {
  color: rgb(255, 132, 0);
}

.nav-link-custom.active > .tab-link-caption {
  width: 80%;
  height: 65%;
  background-color: white;
  color: rgb(255, 132, 0);
  border-right: 6px solid rgb(255, 132, 0);
  margin-left: 20%;
  border-bottom-left-radius: 5px;
  border-top-left-radius: 5px;
  transition: 0.2s ease all;
}

.tab-tag {
  text-decoration: none !important;
  color: white;
}
.tabs-container {
  height: 100vh;
  width: 15vw;
}
/* Benefits list styling */
.benefits-list {
  list-style: none;
  padding-left: 0;
  margin: 2rem 0;
}

.benefit-item {
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  border-left: 3px solid #28a745;
  background-color: #f8f9fa;
}
.stock-benefits-container {
  padding: 2rem;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
}
.benefits-heading {
  color: #008641;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.invest-now-btn {
  padding: 0.75rem 2.5rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 10px rgba(40, 167, 69, 0.3);
  transition: all 0.3s ease;
}

.invest-now-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
}
/* IPO Specific Styles */
.ipo-container {
  padding: 2rem;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
}

/* Section Titles */
.section-title {
  color: #008641;
  font-weight: 600;
  border-bottom: 2px solid #e9ecef;
  padding-bottom: 0.5rem;
}

.sub-section-title {
  color: #495057;
  font-weight: 600;
}

/* IPO Details List */
.ipo-details-list li {
  padding: 0.5rem 0;
  border-bottom: 1px dashed #dee2e6;
}

/* Button Styles */
.btn-outline-primary {
  border-color: #0d6efd;
  color: #0d6efd;
}

.btn-outline-primary:hover {
  background-color: #0d6efd;
  color: white;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .ipo-container {
    padding: 1rem;
  }

  .download-links a {
    display: block;
    margin-bottom: 0.5rem;
  }
}
.ipo-heading {
  color: #008641;
  margin-bottom: 1.5rem;
  font-weight: 600;
  border-bottom: 2px solid #e9ecef;
  padding-bottom: 0.75rem;
}

.ipo-benefits-list {
  list-style: none;
  padding-left: 0;
  margin: 1.5rem 0;
}

.ipo-benefit-item {
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  border-left: 3px solid #28a745;
  background-color: #f8f9fa;
}

.criteria-heading {
  color: #495057;
  font-weight: 600;
  margin-bottom: 1rem;
}

.criteria-list {
  list-style: none;
  padding-left: 0;
}

.criteria-item {
  padding: 0.5rem 1rem;
  margin-bottom: 0.5rem;
  background-color: #f1f3f5;
  border-radius: 4px;
}

.forthcoming-heading {
  color: #343a40;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.invest-now-btn {
  padding: 0.75rem 2.5rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 10px rgba(40, 167, 69, 0.3);
  transition: all 0.3s ease;
}

.invest-now-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
}
.color-green {
  background-color: #008641;
}
#upcomingBtn.active {
  color: #ffffff;
  border-color: #008641;
  background-color: #008641;
  border-color: #008641;
}
#upcomingBtn.active:focus {
  box-shadow: 0 0 0 0.25rem rgba(3, 94, 3, 0.5);
}
#downloadBtn.active {
  color: #ffffff;
  border-color: #008641;
  background-color: #008641;
  border-color: #008641;
}
#downloadBtn.active:focus {
  box-shadow: 0 0 0 0.25rem rgba(3, 94, 3, 0.5);
}
#downloadBtn {
  border-color: #008641;
  color: #008641;
}
#upcomingBtn {
  border-color: #008641;
  color: #008641;
}
#upcomingBtn:hover {
  background-color: #008641;
  color: white;
}
#downloadBtn:hover {
  background-color: #008641;
  color: white;
}
/* Custom Orange Button Styles */
.btn-outline-orange {
  color: #f7941d;
  border-color: #f7941d;
  background-color: transparent;
}

.btn-outline-orange:hover,
.btn-outline-orange:active,
.btn-outline-orange:focus {
  color: white;
  background-color: #f7941d;
  border-color: #f7941d;
}

.btn-outline-orange:focus {
  box-shadow: 0 0 0 0.25rem rgba(247, 148, 29, 0.25);
}

.btn-outline-orange.active {
  color: white;
  background-color: #f7941d;
  border-color: #f7941d;
}
.alert-info {
  color: white !important;
  background-color: #6fad9c;
  border-color: #6fad9c;
}
.running-ipo-section {
  border: 1px solid rgba(0, 0, 0, 0.125);
}
/* Mobile Tab Button Styles */
.btn-mobile-tab {
  flex: 1 !important;
  padding: 12px 0 !important;
  border: 1px solid #ddd !important;
  background-color: #f8f9fa !important;
  transition: all 0.3s ease !important;
  position: relative !important;
  overflow: hidden !important;
}

/* Secondary Stocks Button */
.btn-mobile-tab:first-child {
  color: #008641 !important;
  border-color: #008641 !important;
  border-right: none !important;
}

.btn-mobile-tab:first-child:hover:not(.active) {
  background-color: rgba(0, 134, 65, 0.1) !important;
}

.btn-mobile-tab:first-child.active {
  background-color: #008641 !important;
  color: white !important;
  box-shadow: 0 2px 4px rgba(0, 134, 65, 0.3) !important;
}

/* IPO Button */
.btn-mobile-tab:last-child {
  color: #f7941d !important;
  border-color: #f7941d !important;
  border-left: none !important;
}

.btn-mobile-tab:last-child:hover:not(.active) {
  background-color: rgba(247, 148, 29, 0.1) !important;
}

.btn-mobile-tab:last-child.active {
  background-color: #f7941d !important;
  color: white !important;
  box-shadow: 0 2px 4px rgba(247, 148, 29, 0.3) !important;
}

/* Active state animation */
.btn-mobile-tab.active::after {
  content: "" !important;
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 3px !important;
  background-color: white !important;
  animation: tabActive 0.3s ease-out !important;
}

@keyframes tabActive {
  from {
    width: 0 !important;
  }
  to {
    width: 100% !important;
  }
}
.tabs-container {
  position: relative;
}

/* Base tab styles */
.investment-tab {
  position: relative;

  text-align: center;
  padding: 1vw 12vw;
  cursor: pointer;
  background: #6fad9c;
  border: none;
  /* border-top-left-radius: 8px;
  border-top-right-radius: 8px; */
  /* margin: 0 10px; */
  font-weight: 600;
  color: #000000;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  border: 1px solid #dee2e6;
}

/* Hover effects */
.investment-tab:hover {
  background: #038443;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  color: #f0a402;
}

/* Active tab styles */
.investment-tab.active {
  background: #ffffff;
  color: rgb(0, 0, 0);
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
  border-color: #ffffff;
}

/* Click/press effect */
.investment-tab:active {
  transform: translateY(1px);
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
}

/* Pulse animation for active tab */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(0, 123, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 123, 255, 0);
  }
}

.investment-tab.active:hover {
  animation: pulse 1.5s infinite;
}

/* Ripple effect for clicks */
.investment-tab {
  overflow: hidden;
  position: relative;
}

.ripple {
  position: absolute;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.7);
  transform: scale(0);
  animation: ripple 0.6s linear;
  pointer-events: none;
}

@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}
/*  give media query for phone screen */
@media (max-width: 768px) {
  .company-overlay {
    font-size: 1.5rem;
    margin-left: 0px;
  }
}
