@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css');
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

body {
  font-family: 'Roboto', sans-serif;
  background-color: #efefef; 
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
  box-sizing: border-box;
}


.tabs-container {
  width: 100%;
  height: 100vh; 
  top: 3%;
  background-color: white;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  overflow: auto;
  position: relative;
}

.tabs {
  padding: 10px 20px 15px 20px; /* Increased padding */
}

.tab-links {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #f0f0f0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  z-index: 5;
}

.tab-link {
  background: none;
  border: none;
  font-size: 16px;
  font-weight: 500;
  padding: 15px 30px; 
  cursor: pointer;
  width: auto;
  font-weight: 800;
  height: 50px;
  flex-shrink: 0;
  position: relative;
  transition: color 0.3s ease;
  z-index: 5;
}

a:visited {
  color: #000 !important;
  text-decoration: none !important;
  font-weight: 700;
}
.tab-link.active,
.tab-link:hover {
  color: #ff460b; 
}

.tab-link i {
  margin-right: 10px;
}

.tab-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 3px;
  bottom: -1px;
  left: 50%;
  background: linear-gradient(45deg, #ff460b, #ff460b); /* Purple gradient */
  transition: all 0.4s ease;
}

.tab-link.active::after {
  width: 100%;
  left: 0;
}

.tab-content {
  display: none;
  animation: fadeInUp 0.5s ease;
  padding: 5px 10px 15px 10px;
}

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

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

/* Buttons */
.cta-btn {
  display: inline-block;
  padding: 12px 25px; /* More padding */
  background: linear-gradient(45deg, #ff460b, #ff460b); /* Purple gradient */
  color: white;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: background 0.4s ease;
  font-weight: 500;
  margin-top: 20px;
}

.cta-btn:hover {
  background: linear-gradient(45deg, #ff460b, #ff460b); /* Darker gradient on hover */
}

/* Form Styles */
.contact-form {
  display: flex;
  flex-direction: column;
}

.contact-form label {
  margin-bottom: 5px;
  font-weight: 500;
}

.contact-form input,
.contact-form textarea {
  padding: 12px 15px; /* Increased padding for inputs */
  margin-bottom: 15px;
  border: 1px solid #ddd;
  border-radius: 10px;
  transition: border 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #ff460b;
  outline: none;
}

/* FAQ List */
.faq-list {
  padding: 0;
  list-style: none;
}

.faq-list li {
  margin-bottom: 10px;
}

.faq-list li strong {
  font-weight: 600;
}

/* Responsive Design */
@media screen and (max-width: 500px) {
  .tab-links {
    flex-direction: row;
    align-items: center;
    overflow-x: auto; 
  }

  .tab-link {
    text-align: center;
    width: auto;
    padding: 15px 0;
    flex-shrink: 0; 
    margin-left: 1.5rem; 
  }

  .tab-link.active::after {
    width: 100%;
  }
}

.scroll-indicator {
  position: absolute;
  left: 0;
  right: 0;
  top: 5%;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
}
.scroll-indicator .indicator {
  background-color: #ff460b;
  color: white;
  width: 20px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 18px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.scroll-indicator .indicator:hover {
  background-color: #ff460b;
}

@media screen and (min-width: 901px) and (max-width: 1200px) {
  .scroll-indicator {
    display: none;
  }

  .tab-links {
    overflow: visible;
  }
  .absamarg{
    margin-left: 30px;
  }
  .AFbank{
    margin-left: 9px;
  }
  .bidV{
    margin-left: 7px;
  }
  .nedbankmarg{
    margin-right: 12px;
  }
  .FNBmarg{
    margin-left: 21px;
  }
  .capitecmRG{
    margin-right: 6px;
  }
  .Investecmarg{
    margin-right: 8px;
  }
}

.fixedbutton {
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  height: 66px;
  width: 100% !important;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.fixedbutton:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

.button-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  background-color: #fff;
  border-radius: 20px;
  max-width: 1200px;
  perspective: 1000px;
}

.button-wrapper {
  transform-style: preserve-3d;
  transition: transform 0.5s;
}

.button-wrapper:hover {
  transform: rotateY(10deg);
}

.img {
  max-height: 80%;
  max-width: 100%;
  object-fit: contain;
}

.imgS {
  max-width: 80%;
}

.imgD {
  max-height: 60%;
  max-width: 100%;
  object-fit: contain;
}

@media (max-width: 600px) {
  .button-container {
      grid-template-columns: repeat(2, 1fr);
  }
  .absaHeight{
    height:60%;
  }
}

/* Tab Container Styling */
.tab-content {
  background-color: white;
  border-radius: 8px;
  padding: 20px;
}

.page-headings {
  position: fixed;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 10px 15px;
  background: #383737;
  color: #ffffff;
  text-transform: capitalize;
  font-size: 13px;
  font-family: Roboto, sans-serif;
}

.page-headings a {
  color: white;
  font-size: 16px;
}

.page-headings2 {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  padding: 10px 15px;
  background: #383737;
  color: #ffffff;
  text-transform: capitalize;
  font-size: 13px;
}

.page-headings2 a {
  color: white;
  font-size: 16px;
}

.page-headings-text {
  margin-left: 10px;
}

.tabs-container h4 {
  color: #000;
  font-weight: 600;
}

.H{
  width: 100%;
  font-weight: 700;
}
.banksHeights{
  max-height: 106% !important;
}
