/* Affiliates page styles */

.page-hero { 
    background: linear-gradient(135deg, #f0f7ff, #f7fbff); 
    padding: 3.5rem 0; 
    text-align: center; 
    border-bottom: 1px solid #e5e9f0;
}
.page-hero .page-title { 
    font-size: 36px; 
    margin-bottom: 12px; 
    color: #1a2a3a;
    font-weight: 700;
}
.page-hero .page-subtitle { 
    color: #6b7b89; 
    max-width: 800px; 
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.6;
}

.affiliates-content { 
    padding: 2.5rem 0; 
}

/* Search Bar */
.archive-filters { 
    margin-bottom: 32px; 
}
.archive-filters .search-wrap { 
    position: relative;
    max-width: 100%;
}
.archive-filters .search-wrap .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    pointer-events: none;
}
.archive-filters .search-wrap input[type="search"] { 
    width: 100%; 
    padding: 12px 14px 12px 42px; 
    border-radius: 8px; 
    border: 1px solid #e0e5eb; 
    background: #fff; 
    font-size: 15px;
    transition: all 0.2s ease;
}
.archive-filters .search-wrap input[type="search"]:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
.archive-filters .search-wrap input[type="search"]::placeholder {
    color: #9ca3af;
}

/* Affiliate Grid */
.posts-grid.affiliate-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

/* Affiliate Card */
.affiliate-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e5e9f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    padding: 0;
    position: relative;
    transition: all 0.2s ease;
    overflow: hidden;
}

.affiliate-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.affiliate-card-inner {
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    text-align: center;
}

.affiliate-logo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.affiliate-logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.affiliate-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.affiliate-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    line-height: 1.3;
}

.affiliate-description {
    color: #6b7b89;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.affiliate-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    background: #f3f4f6;
    color: #374151;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.affiliate-link:hover {
    background: #154D8C;
    color: white;
}

.link-icon {
    font-size: 14px;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #6b7b89;
}

.no-results p {
    font-size: 16px;
    margin: 0;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.pagination .page-numbers {
    padding: 10px 16px;
    border: 1px solid #e0e5eb;
    border-radius: 6px;
    text-decoration: none;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    background: #fff;
}

.pagination .page-numbers:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.pagination .page-numbers.current {
    background: #154D8C;
    color: white;
    border-color: #154D8C;
}

.pagination .page-numbers.dots {
    border: none;
    background: transparent;
    cursor: default;
}

.pagination .page-numbers.dots:hover {
    background: transparent;
}

/* Responsive Design */
@media (max-width: 767px) {
    .page-hero {
        padding: 2.5rem 0;
    }
    
    .page-hero .page-title {
        font-size: 28px;
    }
    
    .page-hero .page-subtitle {
        font-size: 15px;
    }
    
    .posts-grid.affiliate-grid {
        grid-template-columns: 1fr;
    }
    
    .affiliate-card-inner {
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .page-hero .page-title {
        font-size: 24px;
    }
}
