/* Affiliate Page Styles */

/* Commission Plans Section */
.affiliate-sec {
  /* padding: 30px 0; */
}

.aff-products-wrapper {
  max-width: 1200px;
  margin: 0 auto;
}

.commission-plan {
  position: relative;
  background: #022251b3;
  border-radius: 15px;
  padding: 0;
  margin-bottom: 30px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  color: #fff;
  min-height: 335px;
}



.commission-plan img {
  position: absolute;
  z-index: 1;
  max-width: 100%;
  display: block;
  /* margin: 0 auto; */
  right: 0;
  top: -50px;
}

/* Commission Plan Content */
.commission-plan-content {
  position: relative;
  z-index: 2;
  padding: 20px;
}

.commission-plan h2 {
  font-size: 28px;
  font-weight: 700;
  color: #ffcc00;
  margin-bottom: 15px;
}

.commission-plan p {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 20px;
}

/* Terms & Conditions Section */
.commission-tnc {
  position: relative;
  background: #2c4f79;
  border-radius: 15px;
  padding: 0 0 20px 0;
  margin-bottom: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  color: #fff;
  overflow: hidden;
}

.tnc-header {
  background: #0c1c2e;
  padding: 20px 30px;
  position: relative;
  overflow: hidden;
}

.tnc-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../images/affiliate/wave-bg.png') no-repeat;
  background-size: cover;
  opacity: 0.1;
  z-index: 0;
}

.tnc-header h3 {
  font-size: 24px;
  font-weight: 700;
  color: #ffaa17;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.tnc-header p {
  font-size: 14px;
  color: #fff;
  margin-bottom: 0;
  position: relative;
  z-index: 1;
}

.commission-tnc h4 {
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  margin: 20px 30px 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.commission-tnc ul {
  list-style: none;
  padding: 0 30px;
  margin-bottom: 0;
}

.commission-tnc li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.5;
}

.commission-tnc li:before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: #ffcc00;
  font-weight: bold;
}

/* Commission Table Section */
.commission-table {
  position: relative;
  background: linear-gradient(to bottom, rgba(44, 80, 123, 0.8), rgba(32, 42, 57, 0.8));
  border-radius: 15px;
  padding: 20px 30px 30px;
  margin-bottom: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  color: #fff;
}

.commission-table h3 {
  font-size: 22px;
  font-weight: 600;
  color: #ffaa17;
  margin-bottom: 20px;
}

/* Table Content and Image Layout */
.commission-table-content {
  width: 70%;
  float: left;
}

.commission-table-img {
  width: 30%;
  text-align: end;
  place-self: self-end;
}

.commission-table-img img {
  max-width: 100%;
  height: auto;
}

/* Clear float after the table section */
.accordion-sections {
  clear: both;
  margin-top: 20px;
}

/* Table Styles */
.table-responsive {
  overflow-x: auto;
  margin-bottom: 20px;
}

.commission-rate-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 10px;
  overflow: hidden;
}

.commission-rate-table th {
  background-color: #ffaa17;
  color: #000;
  font-weight: 600;
  text-align: center;
  padding: 12px 15px;
  font-size: 15px;
  border: 2px solid #284265;
}

.commission-rate-table td {
  background-color: #fff;
  color: #000;
  text-align: center;
  padding: 12px 15px;
  font-size: 14px;
  border: 2px solid #284265;
  font-weight: 700;
}

/* Commission Notes */
.commission-notes {
  margin-bottom: 25px;
}

.commission-notes ul {
  list-style: none;
  padding-left: 0;
}

.commission-notes li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.5;
}

.commission-notes li:before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: #ffcc00;
  font-weight: bold;
}

/* Accordion Sections */
.accordion-sections {
  margin-top: 20px;
}

.accordion-item {
  margin-bottom: 15px;
  border-radius: 10px;
  overflow: hidden;
}

.accordion-header {
  background: #001754;
  padding: 40px 20px;
  /* display: flex; */
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  position: relative;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;

}

.accordion-header.collapsed {
  border-radius: 10px;
}

.accordion-header h4 {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  margin: 0;
  text-align: center;
}

.accordion-icon {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #2283f6;
  border-radius: 50%;
  position: absolute;
  right: 15px;
  color: #001754;
  bottom: 15px;
}

.accordion-icon img {
  width: 15px;
  height: 15px;
}

.accordion-content {
  background: #001754;
  padding: 20px;
}

.accordion-content ul {
  list-style: none;
  padding-left: 0;
}

.accordion-content li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.5;
}

.accordion-content li:before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: #ffcc00;
  font-weight: bold;
}

.calculation-formula {
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 0;
  line-height: 1.6;
}

.accordion-content h5 {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin: 20px 0 10px;
  display: inline-block;
}

.sub-example {
  display: inline-block;
  vertical-align: middle;
  margin-left: 15px;
}
.sub-wrap{
  display: flex;
}
/* Orange bullet points styling */
.affiliate-bullet-points {
  list-style: none;
  padding-left: 0;
  margin-bottom: 20px;
}

.affiliate-bullet-points li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 0;
  font-size: 16px;
  line-height: 1.5;
  color: #fff;
}

.affiliate-bullet-points li:before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: #ffcc00;
  font-weight: bold;
  font-size: 20px;
}

/* Sub-affiliates section styling */
.sub-affiliates-section {
  margin: 30px 0;
  border-radius: 15px;
  color: #fff;
  position: relative;
}

.section-header {
  margin-bottom: 20px;
}

.section-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.content-text {
  width: 65%;
}

.content-image {
  width: 35%;
  text-align: right;
  max-height: 250px;
}

.content-image img {
  max-width: 100%;
  height: auto;
}

.underlined-title {
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 10px;
  /* padding-bottom: 10px; */
  border-bottom: 2px solid #95a5b9;
  display: inline-block;
}

.commission-table-wrap {
  display: flex;
}
.plan-content{
  margin-top: 15px;
}
/* Responsive styles for sub-affiliates section */
@media (max-width: 768px) {
  .commission-table-wrap {
    display: block;
  }

  .sub-affiliates-section {
    margin: 0;
  }

  .section-content {
    flex-direction: column;
  }

  .content-text,
  .content-image {
    width: 100%;
  }

  .content-image {
    text-align: center;
    margin-top: 20px;
  }

  .content-image img {
    max-width: 200px;
  }
}

/* Responsive Styles */
@media (max-width: 768px) {
  .commission-plan-content{
    padding: 0;
  }
  .commission-plan {
    padding: 20px 15px;
  }

  .commission-plan h2 {
    font-size: 24px;
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .accordion-icon {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .commission-plan {
    padding: 20px 15px;
    min-height: auto;
  }

  .commission-plan h2 {
    font-size: 24px;
  }

  .tnc-header {
    padding: 15px 20px;
  }

  .tnc-header h3 {
    font-size: 20px;
  }

  .tnc-header p {
    font-size: 13px;
  }

  .commission-tnc h4 {
    font-size: 18px;
    margin: 15px 20px 10px;
  }

  .commission-tnc ul {
    padding: 0 20px;
  }

  .commission-tnc li {
    font-size: 13px;
  }

  .commission-table {
    padding: 15px;
  }

  .commission-table h3 {
    font-size: 20px;
  }

  .commission-table-content {
    width: 100%;
    float: none;
  }

  .commission-table-img {
    width: 100%;
    float: none;
    position: relative;
    padding: 0 0 20px 0;
    display: block;
    text-align: center;
  }

  .commission-table-img img {
    max-width: 200px;
    display: none;
  }

  .commission-rate-table th,
  .commission-rate-table td {
    padding: 10px;
    font-size: 13px;
  }

  .accordion-header {
    padding: 15px 15px;
    padding-bottom: 50px;
  }

  .accordion-header h4 {
    font-size: 16px;
  }

  .accordion-content {
    padding: 15px;
  }

  .sub-wrap img {
    display: none;
  }
}

/* Affiliate Join Section Styles */
.affiliate-join {
  background: linear-gradient(to bottom, #2c4f79, #001754);
  border-radius: 15px;
  padding: 30px 10px;
  margin: 30px 0;
}

.stats-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
  padding: 0;
  flex: 1;
  min-width: 150px;
}

.stat-number {
  font-size: 41px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.stat-label {
  font-size: 20px;
  font-weight: 600;
  color: #ffaa17;
  margin-bottom: 0;
}

.stat-sublabel {
  font-size: 12px;
  color: #fff;
  line-height: 1;
}

.join-now-container {
  text-align: center;
  padding: 0 15px;
}

.join-now-btn {
  display: inline-block;
  background: #ed1d49;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.join-now-btn:hover {
  background: #d81557;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
  .commission-plan img{
    display: none;
  }
  .affiliate-join{
    padding: auto;
  }
  
  .stat-item {
    margin-bottom: 20px;
    min-width: 50%;
  }
  
  .join-now-container {
    margin-top: 10px;
    width: 100%;
  }
}