/* Affiliates Page Styles */

/* Hero Section */
.affiliates-hero {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 80px 0 80px;
    margin-top: 80px;
    position: relative;
    z-index: 1;
    min-height: 500px;
    display: block !important;
}

.hero-content {
    padding: 0 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #E62A38;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.hero-description {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.hero-buttons .btn {
    padding: 0.875rem 2rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.hero-buttons .btn-primary {
    background: linear-gradient(135deg, #E62A38, #dc3545);
    border: none;
    color: white;
}

.hero-buttons .btn-primary:hover {
    background: linear-gradient(135deg, #dc3545, #c82333);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(230, 42, 56, 0.3);
}

.hero-buttons .btn-outline-primary {
    border: 2px solid #E62A38;
    color: #E62A38;
    background: transparent;
}

.hero-buttons .btn-outline-primary:hover {
    background: #E62A38;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(230, 42, 56, 0.3);
}

.hero-badge {
    background: rgba(230, 42, 56, 0.1);
    border: 1px solid rgba(230, 42, 56, 0.2);
    border-radius: 20px;
    padding: 0.75rem 1.5rem;
    display: inline-block;
}

.badge-text {
    color: #E62A38;
    font-weight: 500;
    font-size: 0.9rem;
}

.hero-image {
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Section Headers */
.section-header {
    margin-bottom: 4rem;
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Benefit Cards */
.benefit-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border-color: #E62A38;
}

.benefit-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #E62A38, #dc3545);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
}

.benefit-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
}

.benefit-card p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Audience Cards */
.audience-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.audience-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border-color: #E62A38;
}

.audience-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #E62A38, #dc3545);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 1.8rem;
}

.audience-card h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.audience-card p {
    color: #666;
    margin: 0;
    font-size: 0.9rem;
}

/* Step Cards */
.step-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid #f0f0f0;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.step-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border-color: #E62A38;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #E62A38, #dc3545);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
}

.step-card h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
}

.step-card p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Benefit Detail Cards */
.benefit-detail-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid #f0f0f0;
}

.benefit-detail-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border-color: #E62A38;
}

.benefit-detail-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #E62A38, #dc3545);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 1.8rem;
}

.benefit-detail-card h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
}

.benefit-detail-card p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Payout Cards */
.payout-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid #f0f0f0;
    position: relative;
}

.payout-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.payout-card.featured {
    border: 2px solid #E62A38;
    transform: scale(1.05);
}

.payout-card.featured:hover {
    transform: scale(1.05) translateY(-8px);
}

.payout-header {
    margin-bottom: 1rem;
}

.payout-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.payout-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: #E62A38;
    margin-bottom: 0.5rem;
}

.payout-card p {
    color: #666;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.payout-features {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.feature-tag {
    background: rgba(230, 42, 56, 0.1);
    color: #E62A38;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* FAQ Section */
.accordion-item {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.accordion-button {
    background: white;
    border: none;
    padding: 1.5rem;
    font-weight: 600;
    color: #333;
    text-align: left;
    width: 100%;
    transition: all 0.3s ease;
}

.accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #E62A38;
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: #E62A38;
}

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23E62A38'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-body {
    padding: 1.5rem;
    background: white;
    color: #666;
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #E62A38, #dc3545);
    color: white;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    padding: 1rem 2rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.cta-buttons .btn-primary {
    background: white;
    color: #E62A38;
    border: none;
}

.cta-buttons .btn-primary:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.cta-buttons .btn-outline-primary {
    border: 2px solid white;
    color: white;
    background: transparent;
}

.cta-buttons .btn-outline-primary:hover {
    background: white;
    color: #E62A38;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .affiliates-hero {
        padding: 80px 0 60px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .hero-content {
        padding: 0 1rem;
        margin-bottom: 0;
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
}

@media (max-width: 767.98px) {
    .affiliates-hero {
        padding: 80px 0 40px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .section-header h2 {
        font-size: 1.75rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .benefit-card,
    .audience-card,
    .step-card,
    .benefit-detail-card,
    .payout-card {
        padding: 1.5rem;
    }
    
    .cta-content h2 {
        font-size: 1.75rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 575.98px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .payout-amount {
        font-size: 2rem;
    }
    
    .benefit-icon,
    .audience-icon,
    .benefit-detail-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hover Effects */
.benefit-card:hover .benefit-icon,
.audience-card:hover .audience-icon,
.step-card:hover .step-number,
.benefit-detail-card:hover .benefit-detail-icon {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #E62A38;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #dc3545;
}

/* Loading Animation */
body:not(.loaded) {
    opacity: 0;
    transition: opacity 0.5s ease;
}

body.loaded {
    opacity: 1;
}

/* Smooth Transitions */
* {
    transition: all 0.3s ease;
}

/* Enhanced Card Animations */
.benefit-card,
.audience-card,
.step-card,
.benefit-detail-card,
.payout-card {
    animation: slideInUp 0.6s ease forwards;
    opacity: 1 !important;
    transform: translateY(0) !important;
    display: block !important;
}

/* Improved Card Spacing */
.benefit-card,
.audience-card,
.step-card {
    margin-bottom: 1.5rem;
}

/* Better Icon Alignment */
.benefit-icon,
.audience-icon,
.step-number {
    margin-bottom: 1.5rem;
}

/* Consistent Text Alignment */
.benefit-title,
.audience-title,
.step-title {
    margin-bottom: 1rem;
    font-weight: 600;
    color: #333;
}

.benefit-description,
.audience-description,
.step-description {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

@keyframes slideInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Staggered Animation for Cards */
.benefit-card:nth-child(1) { animation-delay: 0.1s; }
.benefit-card:nth-child(2) { animation-delay: 0.2s; }
.benefit-card:nth-child(3) { animation-delay: 0.3s; }
.benefit-card:nth-child(4) { animation-delay: 0.4s; }
.benefit-card:nth-child(5) { animation-delay: 0.5s; }
.benefit-card:nth-child(6) { animation-delay: 0.6s; }

.audience-card:nth-child(1) { animation-delay: 0.1s; }
.audience-card:nth-child(2) { animation-delay: 0.2s; }
.audience-card:nth-child(3) { animation-delay: 0.3s; }
.audience-card:nth-child(4) { animation-delay: 0.4s; }

.step-card:nth-child(1) { animation-delay: 0.1s; }
.step-card:nth-child(2) { animation-delay: 0.2s; }
.step-card:nth-child(3) { animation-delay: 0.3s; }
.step-card:nth-child(4) { animation-delay: 0.4s; }

/* Enhanced Button Hover Effects */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

/* Enhanced Card Shadows */
.benefit-card:hover,
.audience-card:hover,
.step-card:hover,
.benefit-detail-card:hover,
.payout-card:hover {
    box-shadow: 0 25px 50px rgba(230, 42, 56, 0.15);
}

/* Gradient Text Effect */
.hero-title {
    background: linear-gradient(135deg, #E62A38, #dc3545);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Enhanced Icon Animations */
.benefit-icon,
.audience-icon,
.step-number,
.benefit-detail-icon {
    transition: all 0.3s ease;
}

.benefit-card:hover .benefit-icon,
.audience-card:hover .audience-icon,
.step-card:hover .step-number,
.benefit-detail-card:hover .benefit-detail-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Smooth Section Transitions */
section {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: all 0.8s ease;
    display: block !important;
}

section.visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Enhanced Mobile Experience */
@media (max-width: 767.98px) {
    .hero-buttons .btn {
        margin-bottom: 0.5rem;
    }
    
    .payout-card.featured {
        transform: none;
    }
    
    .payout-card.featured:hover {
        transform: translateY(-8px);
    }
}

/* Print Styles */
@media print {
    .affiliates-hero {
        background: white !important;
        color: black !important;
    }
    
    .btn {
        display: none !important;
    }
    
    .benefit-card,
    .audience-card,
    .step-card,
    .benefit-detail-card,
    .payout-card {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }
}

/* Loading Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ensure content is visible by default */
.affiliates-hero,
.why-affiliate,
.who-can-join,
.how-it-works,
.affiliate-benefits,
.sample-payouts,
.faq-section,
.cta-section {
    opacity: 1 !important;
    transform: translateY(0) !important;
    animation: fadeInUp 0.8s ease forwards;
}

/* Debug styles to ensure visibility */
.affiliates-hero {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    min-height: 400px !important;
}

.hero-title {
    color: #E62A38 !important;
    display: block !important;
}

.hero-subtitle {
    color: #333 !important;
    display: block !important;
}

/* Enhanced Mobile Responsiveness */
@media (max-width: 575.98px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .payout-card {
        margin-bottom: 1rem;
    }
}

/* Tablet Responsiveness */
@media (min-width: 576px) and (max-width: 991.98px) {
    .hero-content {
        padding: 0 1rem;
        margin-bottom: 0;
    }
    
    .benefit-card,
    .audience-card,
    .step-card {
        margin-bottom: 1.5rem;
    }
}
