/* 
 * SBOBET88 - Affiliate Page Styles
 * Specific styles for the Affiliate Program page
 */

/* Hero Section */
.affiliate-hero {
    background: linear-gradient(rgba(9, 30, 91, 0.85), rgba(9, 30, 91, 0.85)), url('/img/affiliate-hero.jpg') no-repeat center center;
    background-size: cover;
    padding: 6rem 0;
    color: white;
    text-align: center;
    position: relative;
}

.affiliate-hero h1 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.affiliate-hero p {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.affiliate-hero .btn {
    font-size: 1.1rem;
    padding: 0.8rem 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* Breadcrumbs */
.breadcrumbs {
    background: #f0f7ff;
    padding: 1rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.breadcrumbs-list {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

.breadcrumbs-list li {
    display: flex;
    align-items: center;
}

.breadcrumbs-list li:not(:first-child)::before {
    content: '/';
    margin: 0 0.8rem;
    color: #aaa;
}

.breadcrumbs-list a {
    color: #0056b3;
    text-decoration: none;
}

.breadcrumbs-list a:hover {
    text-decoration: underline;
}

.breadcrumbs-list span {
    color: #666;
}

/* Intro Section */
.affiliate-intro {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title h2 {
    color: #091e5b;
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.section-title p {
    color: #666;
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #0056b3;
}

.intro-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-top: 2rem;
}

.intro-text p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: #444;
}

.intro-cta {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-transparent {
    background: transparent;
    color: #0056b3;
    border: 2px solid #0056b3;
    padding: 0.7rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-transparent:hover {
    background: #0056b3;
    color: white;
    transform: translateY(-2px);
}

.intro-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.stat-item {
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.stat-value {
    font-size: 3rem;
    font-weight: 700;
    color: #0056b3;
    margin-bottom: 1rem;
    line-height: 1;
}

.stat-value span {
    font-size: 1.5rem;
}

.stat-label {
    font-size: 1rem;
    color: #666;
}

/* Benefits Section */
.affiliate-benefits {
    padding: 5rem 0;
    background: #f8f9fa;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
}

.benefit-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.benefit-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f7ff;
    border-radius: 50%;
}

.benefit-card h3 {
    color: #091e5b;
    margin-bottom: 1rem;
}

.benefit-card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* How It Works Section */
.affiliate-how-it-works {
    padding: 5rem 0;
}

.steps-container {
    max-width: 800px;
    margin: 3rem auto 0;
}

.step-item {
    display: flex;
    margin-bottom: 3rem;
    position: relative;
}

.step-item:last-child {
    margin-bottom: 0;
}

.step-item::after {
    content: '';
    position: absolute;
    top: 80px;
    left: 30px;
    width: 2px;
    height: calc(100% - 40px);
    background: #e0e0e0;
    z-index: 0;
}

.step-item:last-child::after {
    display: none;
}

.step-number {
    flex: 0 0 60px;
    width: 60px;
    height: 60px;
    background: #0056b3;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    z-index: 1;
}

.step-content {
    flex: 1;
    padding-left: 1.5rem;
}

.step-content h3 {
    color: #091e5b;
    margin-bottom: 0.8rem;
}

.step-content p {
    color: #666;
    line-height: 1.6;
}

/* Calculator Section */
.affiliate-calculator {
    padding: 5rem 0;
    background: #f0f7ff;
}

.calculator-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
    align-items: center;
}

.calculator-form {
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    color: #333;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #0056b3;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.1);
}

.radio-group {
    display: flex;
    gap: 1.5rem;
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.radio-label input {
    width: auto;
    margin-right: 0.5rem;
}

.calculator-result {
    background: linear-gradient(135deg, #091e5b 0%, #1139af 100%);
    color: white;
    border-radius: 8px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(9, 30, 91, 0.2);
}

.result-label {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.result-value {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.result-period {
    font-size: 1.2rem;
    opacity: 0.8;
    margin-bottom: 1.5rem;
}

.result-note {
    font-size: 0.8rem;
    opacity: 0.7;
    line-height: 1.5;
}

.btn-primary {
    background: linear-gradient(to bottom, #0056b3 0%, #003580 100%);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    width: 100%;
}

.btn-primary:hover {
    background: linear-gradient(to bottom, #004494 0%, #002a66 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 53, 128, 0.3);
}

/* Testimonials Section */
.affiliate-testimonials {
    padding: 5rem 0;
}

.testimonials-slider {
    position: relative;
    margin: 3rem 0 2rem;
    overflow: hidden;
}

.testimonial-slide {
    display: none;
    animation: fade 0.5s ease;
}

.testimonial-slide.active {
    display: block;
}

@keyframes fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

.testimonial-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-content {
    font-style: italic;
    color: #444;
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    position: relative;
}

.testimonial-content::before {
    content: '"';
    position: absolute;
    top: -30px;
    left: -10px;
    font-size: 5rem;
    color: rgba(0, 86, 179, 0.1);
    font-family: Georgia, serif;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.author-name {
    font-weight: 700;
    color: #091e5b;
    margin-bottom: 0.2rem;
}

.author-info {
    font-size: 0.9rem;
    color: #666;
}

.testimonial-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.testimonial-prev,
.testimonial-next {
    background: transparent;
    border: 2px solid #0056b3;
    color: #0056b3;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.testimonial-prev:hover,
.testimonial-next:hover {
    background: #0056b3;
    color: white;
}

.testimonial-prev:disabled,
.testimonial-next:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.testimonial-dots {
    display: flex;
    gap: 0.5rem;
}

.testimonial-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.testimonial-dot.active {
    background: #0056b3;
    transform: scale(1.2);
}

/* Tools Section */
.affiliate-tools {
    padding: 5rem 0;
    background: #f8f9fa;
}

.tools-tabs {
    margin-top: 3rem;
}

.tabs-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.tab-btn {
    background: white;
    border: 1px solid #ddd;
    color: #333;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.tab-btn.active {
    background: #0056b3;
    color: white;
    border-color: #0056b3;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
    animation: fade 0.5s ease;
}

.banners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.banner-item {
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.banner-preview {
    overflow: hidden;
    text-align: center;
    padding: 1rem;
    background: #f0f7ff;
}

.banner-preview img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.banner-info {
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eee;
}

.banner-size {
    font-size: 0.9rem;
    color: #666;
}

.btn-copy-code {
    background: #f0f7ff;
    color: #0056b3;
    border: 1px solid #0056b3;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-copy-code:hover {
    background: #0056b3;
    color: white;
}

.landing-pages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.landing-page-item {
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.landing-preview {
    overflow: hidden;
}

.landing-preview img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.landing-page-item:hover .landing-preview img {
    transform: scale(1.05);
}

.landing-info {
    padding: 1.5rem;
}

.landing-info h4 {
    color: #091e5b;
    margin-bottom: 0.8rem;
}

.landing-info p {
    color: #666;
    margin-bottom: 1.2rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.btn-copy-link {
    background: #f0f7ff;
    color: #0056b3;
    border: 1px solid #0056b3;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-copy-link:hover {
    background: #0056b3;
    color: white;
}

.text-links-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 2rem;
}

.text-link-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

.text-link-item:last-child {
    border-bottom: none;
}

.text-link-preview {
    font-size: 1rem;
    color: #333;
    font-weight: 500;
}

.btn-copy-text {
    background: #f0f7ff;
    color: #0056b3;
    border: 1px solid #0056b3;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-left: 1rem;
}

.btn-copy-text:hover {
    background: #0056b3;
    color: white;
}

.social-media-content {
    text-align: center;
}

.social-media-content p {
    max-width: 800px;
    margin: 0 auto 2rem;
    color: #666;
    font-size: 1.1rem;
    line-height: 1.7;
}

.social-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.social-media-item {
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.social-media-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.social-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f7ff;
    border-radius: 50%;
}

.social-media-item h4 {
    color: #091e5b;
    margin-bottom: 0.8rem;
}

.social-media-item p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
    line-height: 1.6;
}

.btn-download {
    background: #f0f7ff;
    color: #0056b3;
    border: 1px solid #0056b3;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-download:hover {
    background: #0056b3;
    color: white;
}

.view-more-container {
    text-align: center;
    margin-top: 2rem;
}

.btn-view-more {
    background: transparent;
    color: #0056b3;
    border: 2px solid #0056b3;
    padding: 0.7rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
}

.btn-view-more:hover {
    background: #0056b3;
    color: white;
    transform: translateY(-2px);
}

/* Register Section */
.affiliate-register {
    padding: 5rem 0;
    background: #f0f7ff;
}

.register-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.register-form {
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 2rem;
}

.checkbox-group {
    display: flex;
    align-items: center;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.checkbox-label input {
    width: auto;
    margin-right: 0.8rem;
}

.checkbox-label span {
    font-size: 0.95rem;
    color: #444;
}

.checkbox-label a {
    color: #0056b3;
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

.form-submit {
    margin-top: 2rem;
}

.register-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-box,
.support-box {
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 2rem;
}

.info-box h3,
.support-box h3 {
    color: #091e5b;
    margin-bottom: 1rem;
}

.info-box p,
.support-box p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.info-list {
    padding-left: 1.2rem;
    margin-bottom: 0;
}

.info-list li {
    margin-bottom: 0.8rem;
    color: #444;
    line-height: 1.5;
}

.info-list li:last-child {
    margin-bottom: 0;
}

.support-contact {
    margin-top: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-item img {
    width: 24px;
    height: 24px;
}

.contact-item a {
    color: #0056b3;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #003d82;
    text-decoration: underline;
}

/* FAQ Section */
.affiliate-faq {
    padding: 5rem 0;
}

.faq-container {
    max-width: 900px;
    margin: 3rem auto 0;
}

.faq-item {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

.faq-question {
    padding: 1.5rem;
    background: white;
    border-radius: 8px 8px 0 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    font-weight: 600;
    color: #091e5b;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: #0056b3;
    transition: all 0.3s ease;
}

.faq-question.active {
    background: #f0f7ff;
}

.faq-question.active::after {
    content: '−';
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-answer.show {
    padding: 1.5rem;
    max-height: 1000px;
    background: white;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.faq-answer p {
    margin: 0;
    color: #666;
    line-height: 1.7;
}

/* CTA Section */
.affiliate-cta {
    padding: 5rem 0;
    background: linear-gradient(135deg, #091e5b 0%, #1139af 100%);
    color: white;
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.cta-content .btn {
    font-size: 1.1rem;
    padding: 1rem 2.5rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

/* Back to Top Button */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    background: #0056b3;
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 100;
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

#back-to-top:hover {
    background: #003d82;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Scroll-to Animation */
html {
    scroll-behavior: smooth;
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .intro-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .calculator-container {
        grid-template-columns: 1fr;
    }
    
    .register-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .affiliate-hero h1 {
        font-size: 2.2rem;
    }
    
    .affiliate-hero p {
        font-size: 1.1rem;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .intro-stats {
        grid-template-columns: 1fr;
    }
    
    .tabs-nav {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .tab-btn {
        width: 100%;
    }
    
    .banners-grid,
    .landing-pages-grid,
    .social-media-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonial-author {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .affiliate-hero h1 {
        font-size: 1.8rem;
    }
    
    .affiliate-hero p {
        font-size: 1rem;
    }
    
    .intro-cta {
        flex-direction: column;
    }
    
    .intro-cta .btn {
        width: 100%;
    }
    
    .stat-value {
        font-size: 2.5rem;
    }
    
    .step-item {
        flex-direction: column;
        text-align: center;
    }
    
    .step-number {
        margin: 0 auto 1rem;
    }
    
    .step-content {
        padding-left: 0;
    }
    
    .step-item::after {
        left: 50%;
        top: 60px;
        width: 2px;
        height: 40px;
        transform: translateX(-50%);
    }
}