* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #f3f4f6;
}

.writers-list-component-section {
    padding: 80px 24px;
    background: #f3f4f6;
}

.writers-list-component-container {
    max-width: 1200px;
    margin: 0 auto;
}

.writers-list-component-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 48px;
}

.writers-list-component-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    color: #1a1a1a;
}

.writers-list-component-subtitle {
    font-size: 16px;
    line-height: 1.7;
    color: #666;
}

.writers-list-component-filters-search-row {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 40px;
}

.writers-list-component-filter-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    flex: 1;
}

.writers-list-component-filter-btn {
    padding: 12px 24px;
    background: var(--r-bg-blue-light);
    border: none;
    color: var(--r-blue-dark);
    border-radius: 24px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
}

.writers-list-component-filter-btn:hover {
    color: white;
    background: var(--r-blue-dark);
}

.writers-list-component-filter-btn.active {
    color: white;
    background: var(--r-blue-dark);
}

.writers-list-component-search-dropdown-container {
    position: relative;
    min-width: 300px;
}

.writers-list-component-search-dropdown-input {
    width: 100%;
    padding: 12px 40px 12px 16px;
    font-size: 14px;
    border: 2px solid #e0e0e0;
    border-radius: 24px;
    outline: none;
    transition: border-color 0.3s;
    cursor: pointer;
}

.writers-list-component-search-dropdown-input:focus {
    border-color: #764ba2;
}

.writers-list-component-search-dropdown-input.active {
    border-color: #764ba2;
    border-radius: 24px 24px 0 0;
}

.writers-list-component-search-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 16px;
}

.writers-list-component-dropdown-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #764ba2;
    border-top: none;
    border-radius: 0 0 24px 24px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 100;
    display: none;
}

.writers-list-component-dropdown-list.show {
    display: block;
}

.writers-list-component-dropdown-item {
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 14px;
}

.writers-list-component-dropdown-item:hover {
    background: #f5f5f5;
}

.writers-list-component-dropdown-item.selected {
    background: #e3f2fd;
    color: white;
}

/* Writer Grid - Match order-form.html */
.writers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.writer-card {
    background: white;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    padding: 28px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
    transition: all 0.3s;
}

.writer-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.15);
    border-color: #3b82f6;
}

.writer-avatar-section {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.writer-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
    margin-right: 16px;
}

.writer-info {
    flex: 1;
}

.writer-info h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
}

.writer-info .degree {
    font-size: 13px;
    color: #3b82f6;
    font-weight: 600;
    text-transform: uppercase;
}

.writer-description {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 16px;
}

.writer-stats {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.stat-item {
    flex: 1;
    min-width: 100px;
}

.stat-label {
    font-size: 11px;
    color: #6b7280;
    margin-bottom: 4px;
    font-weight: 600;
    text-transform: uppercase;
}

.stat-value {
    font-size: 18px;
    font-weight: 700;
}

.stat-value.orders {
    color: #1e40af;
}

.stat-value.success {
    color: #10b981;
}

.stat-value.rating {
    color: #f59e0b;
}

.btn-primary {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
    border: none;
    border-radius: 8px;
    display: block;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.writers-list-component-show-more-container {
    text-align: center;
    margin-top: 48px;
}

.writers-list-component-show-more-btn {
    padding: 16px 48px;
    color: white;
    background: var(--r-blue-dark);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.writers-list-component-show-more-btn:hover {
    background: var(--r-blue-light);
}

.writers-list-component-show-more-btn.hidden {
    display: none;
}

.writers-list-component-no-results {
    text-align: center;
    padding: 60px 20px;
    font-size: 18px;
    color: #999;
}

.hidden {
    display: none !important;
}

@media (max-width: 768px) {
    .writers-list-component-header {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .writers-list-component-title {
        font-size: 32px;
    }

    .writers-list-component-filters-search-row {
        flex-direction: column;
    }

    .writers-list-component-filter-buttons {
        width: 100%;
    }

    .writers-list-component-search-dropdown-container {
        width: 100%;
        min-width: unset;
    }

    .writers-grid {
        grid-template-columns: 1fr;
    }
}


/* ============================================
   CTA SECTION
   ============================================ */

.cta-section {
    padding: 100px 24px;
    background-color: var(--r-blue-light);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 30% 50%, rgba(138, 43, 226, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 70% 50%, rgba(0, 119, 182, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.2;
}

.cta-content p {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.9;
    line-height: 1.6;
}

/* .cta-section .hero-cta {
    padding: 16px 40px;
    font-size: 16px;
} */

/* CTA Section - Responsive Design */

/* Tablets */
@media (max-width: 768px) {
    .cta-section {
        padding: 60px 20px;
    }

    .cta-content h2 {
        font-size: 32px;
        margin-bottom: 16px;
    }

    .cta-content p {
        font-size: 16px;
        margin-bottom: 32px;
    }
}

/* Mobile phones */
@media (max-width: 480px) {
    .cta-section {
        padding: 40px 16px;
    }

    .cta-content h2 {
        font-size: 22px;
        margin-bottom: 12px;
    }

    .cta-content p {
        font-size: 14px;
        margin-bottom: 24px;
    }

    /* .cta-section .hero-cta {
        padding: 12px 24px;
        font-size: 13px;
    } */
}

/* Small mobile phones */
@media (max-width: 380px) {
    .cta-content h2 {
        font-size: 20px;
    }
}

.hero-cta,
.page-button {
    background: var(--accent-orange) !important;
    color: var(--white) !important;
    border: none;
    padding: 18px 36px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(255, 133, 51, 0.3);
    font-family: 'Inter', sans-serif;
}

.hero-cta:hover,
.page-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(255, 133, 51, 0.4);
    background: #FF9447;
}
