/* ========================================
   Blair Affiliates - Complete Stylesheet
   ======================================== */

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   Typography
   ======================================== */
h1, h2, h3, h4 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

h2 .year {
    color: #3498db;
    font-weight: 700;
}

h3 {
    font-size: 1.3rem;
}

.section-subtitle {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.highlight {
    color: #3498db;
}

/* ========================================
   Navigation & Header
   ======================================== */
header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 10px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo sizing - CUSTOM SIZE */
.logo {
    flex: 1200px 1200px auto;
}

.logo-img {
    width: auto;
    height: 100px;  /* Adjust this value as needed */
    max-width: 250px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .logo-img {
        height: 70px;
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    .logo-img {
        height: 60px;
        max-width: 180px;
    }
}

/* Navigation Links */
.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

.nav-links li a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: #3498db;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #3498db;
    transition: width 0.3s ease;
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: #333;
    margin: 5px 0;
    transition: 0.3s;
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: #3498db;
    color: white;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.btn-primary:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #3498db;
    border: 2px solid #3498db;
}

.btn-secondary:hover {
    background: #3498db;
    color: white;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: #3498db;
    border: 2px solid #3498db;
    padding: 10px 25px;
}

.btn-outline:hover {
    background: #3498db;
    color: white;
}

.btn-large {
    padding: 15px 40px;
    font-size: 1.1rem;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 5rem 20px;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.hero .highlight {
    color: #f1c40f;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    opacity: 0.95;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================================
   Trust Badges
   ======================================== */
.trust-badges {
    background: #f8f9fa;
    padding: 2rem 0;
    border-bottom: 1px solid #eee;
}

.badges-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #555;
    font-weight: 500;
}

.badge-icon {
    background: #2ecc71;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

/* ========================================
   Offers Section
   ======================================== */
.offers-section {
    padding: 5rem 20px;
    background: #f8f9fa;
}

.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 3rem auto;
}

.offer-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.offer-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.offer-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.offer-content {
    padding: 1.5rem;
}

.offer-content h3 {
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.offer-desc {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.commission {
    background: #f1c40f;
    color: #2c3e50;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    display: inline-block;
    font-weight: 600;
    margin-bottom: 1rem;
}

.commission-rate {
    font-size: 1.2rem;
}

.offer-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #666;
}

.cookie-duration {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 4px 10px;
    border-radius: 50px;
}

.epc {
    background: #e3f2fd;
    color: #1565c0;
    padding: 4px 10px;
    border-radius: 50px;
}

.offer-btn {
    display: inline-block;
    background: #3498db;
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    width: 100%;
    text-align: center;
    transition: background 0.3s ease;
}

.offer-btn:hover {
    background: #2980b9;
}

.view-all-container {
    text-align: center;
    margin-top: 2rem;
}

/* ========================================
   Benefits Section
   ======================================== */
.benefits {
    padding: 5rem 20px;
    background: white;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 3rem auto;
}

.benefit-card {
    text-align: center;
    padding: 2rem;
    border-radius: 15px;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.benefit-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: #3498db;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.benefit-icon img {
    width: 40px;
    height: 40px;
    filter: brightness(0) invert(1);
}

.benefit-card h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.benefit-card p {
    color: #666;
    line-height: 1.6;
}

/* ========================================
   How It Works
   ======================================== */
.how-it-works {
    padding: 5rem 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.how-it-works h2 {
    color: white;
}

.steps-container {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 3rem 0;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 3rem auto;
}

.step {
    text-align: center;
    flex: 1;
    min-width: 250px;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: #f1c40f;
    color: #2c3e50;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.step h3 {
    margin-bottom: 1rem;
    color: white;
}

.step p {
    color: rgba(255,255,255,0.9);
}

.cta-center {
    text-align: center;
    margin-top: 3rem;
}

.small-text {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 1rem;
}

/* ========================================
   Testimonials
   ======================================== */
.testimonials {
    padding: 5rem 20px;
    background: #f8f9fa;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 3rem auto;
}

.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.rating {
    color: #f1c40f;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1.5rem;
    color: #555;
    line-height: 1.6;
}

.testimonial-author {
    border-top: 1px solid #eee;
    padding-top: 1rem;
}

.testimonial-author strong {
    display: block;
    color: #2c3e50;
    margin-bottom: 0.25rem;
}

.testimonial-author span {
    color: #666;
    font-size: 0.9rem;
}

/* ========================================
   Featured In
   ======================================== */
.featured-in {
    padding: 3rem 20px;
    background: white;
    text-align: center;
}

.featured-label {
    color: #666;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.featured-logos {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.featured-logos span {
    font-size: 1.3rem;
    font-weight: 600;
    color: #999;
    transition: color 0.3s ease;
}

.featured-logos span:hover {
    color: #3498db;
}

/* ========================================
   Latest Posts
   ======================================== */
.latest-posts {
    padding: 5rem 20px;
    background: #f8f9fa;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 3rem auto;
}

.post-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
}

.post-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-content {
    padding: 1.5rem;
}

.post-category {
    display: inline-block;
    background: #3498db;
    color: white;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.post-content h3 {
    margin-bottom: 0.5rem;
}

.post-content h3 a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-content h3 a:hover {
    color: #3498db;
}

.post-content p {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.read-more {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.3s ease;
}

.read-more:hover {
    gap: 10px;
}

/* ========================================
   Newsletter Section
   ======================================== */
.newsletter {
    padding: 5rem 20px;
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: white;
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.newsletter h2 {
    color: white;
}

.newsletter p {
    opacity: 0.9;
    margin-bottom: 2rem;
}

.newsletter-form {
    margin: 2rem 0;
}

.form-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.form-group input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    outline: none;
    min-width: 250px;
}

.form-group input:focus {
    box-shadow: 0 0 0 3px rgba(241, 196, 15, 0.3);
}

.form-group button {
    padding: 15px 30px;
    white-space: nowrap;
}

.checkbox-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.9);
    flex-wrap: wrap;
}

.checkbox-label a {
    color: white;
    text-decoration: underline;
}

.checkbox-label a:hover {
    color: #f1c40f;
}

/* ========================================
   Footer
   ======================================== */
footer {
    background: #1a2526;
    color: white;
    padding: 4rem 20px 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.footer-section {
    margin-bottom: 2rem;
}

.footer-logo {
    margin-bottom: 1rem;
}

.footer-logo img {
    width: auto;
    height: 120px;
    object-fit: contain;
}

.footer-section p {
    color: #aaa;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.footer-section h4 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section ul li a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #3498db;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #3498db;
    transform: translateY(-3px);
}

/* Footer Bottom */
.footer-bottom {
    max-width: 1200px;
    margin: 3rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid #34495e;
    text-align: center;
}

.footer-bottom p {
    color: #aaa;
    font-size: 0.9rem;
}

.footer-bottom a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: #3498db;
}

.footer-bottom .small-text {
    margin-top: 1rem;
    font-size: 0.8rem;
    opacity: 0.7;
}

/* ========================================
   Legal Pages Styling
   ======================================== */
.legal-page {
    max-width: 800px;
    margin: 4rem auto;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.legal-page h1 {
    color: #2c3e50;
    margin-bottom: 2rem;
}

.legal-page h2 {
    font-size: 1.5rem;
    text-align: left;
    margin: 2rem 0 1rem;
}

.legal-page p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.legal-page section {
    margin-bottom: 2rem;
}

/* ========================================
   Mobile Responsive
   ======================================== */
@media (max-width: 1024px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    /* Header & Navigation */
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1rem 0;
        gap: 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links li {
        width: 100%;
    }
    
    .nav-links li a {
        display: block;
        padding: 1rem 20px;
    }
    
    .nav-links li a::after {
        display: none;
    }
    
    /* Logo sizing - mobile */
    .logo-img {
        height: 50px;
    }
    
    .footer-logo img {
        height: 90px;
    }
    
    /* Hero */
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    /* Trust badges */
    .badges-grid {
        justify-content: center;
    }
    
    /* Steps */
    .steps-container {
        flex-direction: column;
        gap: 2rem;
    }
    
    .step {
        max-width: 300px;
        margin: 0 auto;
    }
    
    /* Newsletter form */
    .form-group {
        flex-direction: column;
    }
    
    .form-group button {
        width: 100%;
    }
    
    /* Footer */
    .footer-content {
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    /* Logo - very small devices */
    .logo-img {
        height: 40px;
    }
    
    .footer-logo img {
        height: 70px;
    }
    
    /* Hero */
    .hero {
        padding: 3rem 1rem;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .hero-cta .btn {
        width: 100%;
    }
    
    /* Buttons */
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    /* Cards */
    .offers-grid,
    .benefits-grid,
    .testimonials-grid,
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    /* Featured logos */
    .featured-logos {
        gap: 1.5rem;
    }
    
    .featured-logos span {
        font-size: 1rem;
    }
    
    /* Checkbox */
    .checkbox-label {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ========================================
   Animations
   ======================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content,
.offer-card,
.benefit-card,
.testimonial-card,
.post-card {
    animation: fadeIn 0.8s ease-out;
}

/* ========================================
   Utility Classes
   ======================================== */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.hidden {
    display: none;
}

.visible {
    display: block;
}