/* Affiliates page specific overrides */

/* Add more spacing around headline elements */
.headline01, .headline02, .headline03 {
  margin-top: 30px;
  margin-bottom: 30px;
}

/* Extra spacing for main headlines */
.headline01 {
  margin-top: 40px;
  margin-bottom: 40px;
}

/* Make "Earn $647 Per Sale" wider to fit on one line */
.headline01.grd01.clipped {
  font-size: 65px;
  letter-spacing: 2px;
  font-weight: 900;
  white-space: nowrap;
  line-height: 1.2;
  overflow: visible !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  display: inline-block;
  width: auto;
  max-width: none;
}

/* Ensure container doesn't clip the headline */
.spacingbottom-30:has(.headline01.grd01.clipped) {
  overflow: visible !important;
}

.container-1160 {
  overflow: visible !important;
}

/* Increase existing spacing classes */
.spacingbottom-30 {
  padding-bottom: 50px !important;
}

.spacingbottom-45 {
  padding-bottom: 65px !important;
}

.spacingbottom-65 {
  padding-bottom: 85px !important;
}

/* Add breathing room between sections */
.section01 {
  padding-top: 80px;
  padding-bottom: 80px;
}

/* Add spacing after headline groups */
.headline03 + .headline02,
.headline02 + .headline03,
.headline03 + .headline01 {
  margin-top: 20px;
}

/* Modern card design for subscription plans */
.grid4col.v1.center {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  padding: 20px;
}

.grid4col.v1.center .col {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.grid4col.v1.center .col:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.grid4col.v1.center .col img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
}

/* Add labels for each plan */
.grid4col.v1.center .col:nth-child(1)::before {
  content: "FRONTEND";
  position: absolute;
  top: 10px;
  right: 10px;
  background: linear-gradient(90deg, #887cfa, #a549f8);
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.grid4col.v1.center .col:nth-child(2)::before {
  content: "OTO 1A";
  position: absolute;
  top: 10px;
  right: 10px;
  background: linear-gradient(90deg, #a549f8, #e66b28);
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.grid4col.v1.center .col:nth-child(3)::before {
  content: "OTO 1B";
  position: absolute;
  top: 10px;
  right: 10px;
  background: linear-gradient(90deg, #e66b28, #ff9500);
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.grid4col.v1.center .col:nth-child(4)::before {
  content: "OTO 2";
  position: absolute;
  top: 10px;
  right: 10px;
  background: linear-gradient(90deg, #ff9500, #ffb700);
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* Modern Brandon Contact Card Design */
.brandon-contact-section {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.brandon-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(136, 124, 250, 0.1);
  position: relative;
  overflow: hidden;
}

.brandon-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #887cfa, #a549f8, #e66b28);
}

.brandon-header {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-bottom: 30px;
  padding-bottom: 30px;
  border-bottom: 2px solid #f0f0f0;
}

.brandon-avatar {
  width: 120px;
  height: 120px;
  border-radius: 20px;
  object-fit: cover;
}

.brandon-info {
  flex: 1;
  text-align: left;
}

.brandon-name {
  font-size: 32px;
  font-weight: 800;
  color: #333;
  margin: 0 0 5px 0;
  background: linear-gradient(90deg, #887cfa, #a549f8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.brandon-title {
  font-size: 18px;
  color: #666;
  margin: 0 0 10px 0;
  font-weight: 600;
}

.brandon-tagline {
  font-size: 16px;
  color: #888;
  margin: 0;
  font-style: italic;
}

.brandon-contacts {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.brandon-contact-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
  flex: 1;
  min-width: 180px;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.brandon-contact-btn.skype {
  background: linear-gradient(135deg, #00aff0 0%, #0078d4 100%);
  color: white;
}

.brandon-contact-btn.facebook {
  background: linear-gradient(135deg, #1877f2 0%, #0c54b3 100%);
  color: white;
}

.brandon-contact-btn.email {
  background: linear-gradient(135deg, #887cfa 0%, #a549f8 100%);
  color: white;
}

.brandon-contact-btn:hover {
  opacity: 0.9;
}

.btn-icon {
  font-size: 20px;
}

/* Modern contact information design */
.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 30px;
  background: #f8f9fa;
  border-radius: 16px;
  border-left: 4px solid;
  border-image: linear-gradient(180deg, #887cfa, #a549f8, #e66b28) 1;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 20px;
  background: white;
  border-radius: 12px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.contact-item:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.contact-icon {
  font-size: 24px;
  min-width: 30px;
  text-align: center;
}

.contact-label {
  font-weight: 600;
  color: #333;
  min-width: 80px;
  font-size: 16px;
}

.contact-link {
  color: #667eea;
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  transition: color 0.3s ease;
  flex: 1;
}

.contact-link:hover {
  color: #764ba2;
  text-decoration: underline;
}

/* Add icon animation on hover */
.contact-item:hover .contact-icon {
  animation: bounce 0.5s ease;
}

@keyframes bounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

/* Responsive adjustments for mobile */
@media screen and (max-width: 767px) {
  .headline01, .headline02, .headline03 {
    margin-top: 20px;
    margin-bottom: 20px;
  }
  
  .spacingbottom-30 {
    padding-bottom: 40px !important;
  }
  
  .spacingbottom-45 {
    padding-bottom: 50px !important;
  }
  
  .spacingbottom-65 {
    padding-bottom: 70px !important;
  }
  
  .section01 {
    padding-top: 60px;
    padding-bottom: 60px;
  }
  
  /* Adjust plan cards for mobile */
  .grid4col.v1.center {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 10px;
  }
  
  .grid4col.v1.center .col {
    padding: 15px;
  }
  
  /* Adjust Brandon's avatar for mobile */
  .grid2col.v1 .col.center img[alt="Brandon Hays"] {
    width: 150px;
    height: 150px;
  }
  
  .grid2col.v1 .col.center {
    padding: 30px 20px;
  }
  
  .grid2col.v1 .col.center .text02 {
    font-size: 18px;
  }
  
  .grid2col.v1 .col.center .text02.semibold::after {
    font-size: 13px;
  }
  
  /* Responsive Brandon card for mobile */
  .brandon-header {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
  
  .brandon-info {
    text-align: center;
  }
  
  .brandon-avatar {
    width: 100px;
    height: 100px;
  }
  
  .brandon-name {
    font-size: 24px;
  }
  
  .brandon-title {
    font-size: 16px;
  }
  
  .brandon-tagline {
    font-size: 14px;
  }
  
  .brandon-card {
    padding: 25px;
  }
  
  .brandon-contacts {
    flex-direction: column;
  }
  
  .brandon-contact-btn {
    min-width: 100%;
  }
  
  /* Responsive contact info for mobile */
  .contact-info-list {
    padding: 20px;
    gap: 15px;
  }
  
  .contact-item {
    padding: 12px 15px;
    gap: 10px;
    flex-wrap: wrap;
  }
  
  .contact-icon {
    font-size: 20px;
  }
  
  .contact-label {
    font-size: 14px;
    min-width: 60px;
  }
  
  .contact-link {
    font-size: 14px;
    width: 100%;
  }
  
  /* Responsive headline for mobile - allow wrapping on smaller screens */
  .headline01.grd01.clipped {
    font-size: 48px;
    letter-spacing: 1px;
    white-space: normal;
    max-width: 100%;
  }
}

@media screen and (max-width: 479px) {
  .headline01.grd01.clipped {
    font-size: 36px;
    letter-spacing: 0.5px;
    white-space: normal;
    max-width: 100%;
  }
}

/* Ensure buttons stay on one line and are centered */
.line-button02.center {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  background-image: none;
  padding: 0;
}

.line-button02.center .button01,
.line-button02.center .button02 {
  white-space: nowrap;
  display: inline-block;
  width: auto;
  min-width: 200px;
}

/* Make button02 match button01 styling for consistency */
.line-button02.center .button02 {
  background-image: linear-gradient(90deg, #887cfa, #a549f8 54%, #e66b28);
  color: #fff;
  text-shadow: 5px 5px 5px #0000001a;
  width: auto;
  padding: 20px 50px;
  font-size: 26px;
  font-weight: 700;
}

/* Responsive adjustments */
@media screen and (max-width: 767px) {
  .line-button02.center .button01,
  .line-button02.center .button02 {
    padding: 15px 30px;
    font-size: 22px;
    min-width: 180px;
  }
}

@media screen and (max-width: 479px) {
  .line-button02.center .button01,
  .line-button02.center .button02 {
    padding: 12px 25px;
    font-size: 18px;
    min-width: 160px;
  }
}