/* ============================================
   Education Hero Section - Zencia.AI
   ============================================ */

/* ===== EDUCATION HERO SECTION ===== */
.affiliate-hero {
    position: relative;
    min-height: 100vh;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f1419 0%, #082928 100%);
    overflow: hidden;
    padding-top: 80px; /* Account for fixed header */
}

/* ===== ANIMATED BACKGROUND ===== */
.affiliate-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw; /* Full viewport width */
    height: 100%;
    z-index: 1;
    overflow: hidden;
    background-image: url('../../images/zenciahero-background.svg');
    background-size: cover; /* Change from 110% 110% to cover */
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0.4;
    filter: brightness(0.8);
}

/* Animated gradient overlay */
.affiliate-hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, rgba(0, 217, 213, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 70% 50%, rgba(0, 139, 139, 0.15) 0%, transparent 50%);
    animation: gradientShift 15s ease-in-out infinite;
    z-index: 2;
}

@keyframes gradientShift {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    50% {
        transform: translate(50px, 30px) scale(1.1);
        opacity: 0.8;
    }
}

.affiliate-svg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.5) 100%);
    z-index: 3;
}

/* Floating particles effect */
.affiliate-hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.affiliate-hero-particles .particle {
    position: absolute;
    background: #00D9D5;
    border-radius: 50%;
    opacity: 0.3;
    animation: float 20s infinite ease-in-out;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-100px) translateX(50px);
        opacity: 0.6;
    }
}

.affiliate-hero-particles .particle:nth-child(1) {
    width: 4px;
    height: 4px;
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.affiliate-hero-particles .particle:nth-child(2) {
    width: 6px;
    height: 6px;
    top: 60%;
    left: 80%;
    animation-delay: 2s;
}

.affiliate-hero-particles .particle:nth-child(3) {
    width: 3px;
    height: 3px;
    top: 80%;
    left: 30%;
    animation-delay: 4s;
}

.affiliate-hero-particles .particle:nth-child(4) {
    width: 5px;
    height: 5px;
    top: 40%;
    left: 70%;
    animation-delay: 6s;
}

/* ===== HERO CONTENT (TWO-COLUMN LAYOUT) ===== */
.affiliate-hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
    padding: 2rem 0;
}

/* Two-column grid layout */
.affiliate-hero-grid {
    display: grid;
    grid-template-columns: 60% 40%;
    gap: 4rem;
    align-items: center;
    min-height: 80vh;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===== LEFT CONTENT (60%) ===== */
.affiliate-hero-text {
    max-width: 100%;
    padding: 0;
    text-align: left; /* Left align for two-column layout */
}

.affiliate-hero-title {
    font-size: clamp(2.3rem, 3vw, 4.5rem); /* UPDATED: Matching solution-hero.css */
    font-weight: 900;
    color: #FFFFFF;
    line-height: 1.2;
    margin-bottom: 2rem;
    letter-spacing: -2px;
    animation: fadeInUp 1s ease-out;
    text-align: left;
}

/* ===== RIGHT VISUAL (40%) ===== */
.affiliate-hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    animation: fadeInUp 1s ease-out 0.6s backwards;
}

.hero-image-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 217, 213, 0.2);
    border: 1px solid rgba(0, 217, 213, 0.1);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.hero-image-container:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 80px rgba(0, 217, 213, 0.3);
    border-color: rgba(0, 217, 213, 0.3);
}

.hero-gif {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
}

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

.affiliate-hero-title .title-line {
    display: block;
    margin-bottom: 0.5rem;
}

.affiliate-hero-title .highlight {
    display: block;
    background: linear-gradient(135deg, #00D9D5 0%, #40E0D0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 80px rgba(0, 217, 213, 0.5);
    animation: glow 3s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% {
        filter: brightness(1);
    }
    50% {
        filter: brightness(1.2);
    }
}

.affiliate-hero-description {
    font-size: clamp(.8rem, 1vw, 1.3rem); /* UPDATED: Matching solution-hero.css */
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 3rem;
    line-height: 1.8;
    font-weight: 400;
    animation: fadeInUp 1s ease-out 0.2s backwards;
    text-align: left;
    max-width: 100%;
}

/* ===== HERO BUTTONS (LEFT ALIGNED) ===== */
.affiliate-hero-buttons {
    margin-bottom: 0;
    animation: fadeInUp 1s ease-out 0.4s backwards;
    text-align: left;
}

.affiliate-cta {
    display: inline-block;
    padding: 1.4rem 3.5rem;
    background: linear-gradient(135deg, #00D9D5 0%, #008B8B 100%);
    color: #FFFFFF;
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 217, 213, 0.3);
    font-family: 'Inter', sans-serif;
    position: relative;
    overflow: hidden;
    min-width: 220px;
}

.affiliate-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 217, 213, 0.5);
}

/* Text change on hover */
.affiliate-cta .btn-text-default,
.affiliate-cta .btn-text-hover {
    display: inline-block;
    transition: all 0.3s ease;
}

.affiliate-cta .btn-text-hover {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, 100%);
    opacity: 0;
}

.affiliate-cta:hover .btn-text-default {
    transform: translateY(-100%);
    opacity: 0;
}

.affiliate-cta:hover .btn-text-hover {
    transform: translate(-50%, -50%);
    opacity: 1;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .affiliate-hero-grid {
        max-width: 1000px;
        padding: 0 1.5rem;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .affiliate-hero {
        min-height: auto;
        height: auto;
        padding: 100px 0 50px;
    }
    
    .affiliate-hero-grid {
        grid-template-columns: 1fr; /* Stack columns vertically on mobile */
        gap: 3rem;
        padding: 0 1rem;
        min-height: 60vh;
        text-align: center; /* Center align on mobile */
    }
    
    .affiliate-hero-text {
        max-width: 100%;
        text-align: center; /* Center text on mobile */
        order: 1; /* Content first on mobile */
    }
    
    .affiliate-hero-visual {
        order: 2; /* Image second on mobile */
        max-width: 400px;
        margin: 0 auto;
    }
    
    .affiliate-hero-title {
        text-align: center;
    }
    
    .affiliate-hero-description {
        text-align: center;
    }
    
    .affiliate-hero-buttons {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .affiliate-hero-grid {
        padding: 0 0.5rem;
        gap: 2rem;
    }
    
    .affiliate-hero-visual {
        max-width: 300px;
    }
    
    .affiliate-cta {
        padding: 1.2rem 2.5rem;
        font-size: 1.1rem;
        min-width: 180px;
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus states for accessibility */
.affiliate-cta:focus {
    outline: 2px solid #00D9D5;
    outline-offset: 4px;
}