/* Search and Filter Section */
.search-section {
    padding: 60px 40px 40px;
    background: linear-gradient(135deg, #f8f4ff 0%, #fff8e1 100%);
    border-radius: 20px 20px 0 0;
}

.search-container {
    max-width: 800px;
    margin: 0 auto;
}

.search-title {
    font-size: 1.5rem;
    color: #3D1D4F;
    text-align: center;
    margin-bottom: 20px;
    font-weight: 700;
}

.search-box {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    align-items: center;
    background: white;
    padding: 8px;
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
}

.search-input {
    flex: 1;
    min-width: 250px;
    padding: 12px 20px;
    border: none;
    border-radius: 20px;
    font-size: 0.9rem;
    background: transparent;
    color: #333;
}

.search-input:focus {
    outline: none;
}

.search-input::placeholder {
    color: #94a3b8;
}

.filter-btn {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 15px;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 500;
}

.filter-btn:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.filter-btn.active {
    background: linear-gradient(45deg, #3D1D4F, #FFD700);
    color: white;
    border-color: #3D1D4F;
}

/* Filter Modal */
.filter-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9998;
    padding: 20px;
}

.filter-modal.active {
    display: flex;
}

.filter-content {
    background: white;
    border-radius: 20px;
    padding: 30px;
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e2e8f0;
}

.filter-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #3D1D4F;
}

.filter-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #64748b;
    padding: 5px;
}

.filter-close:hover {
    color: #3D1D4F;
}

.filter-group {
    margin-bottom: 25px;
}

.filter-group-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 12px;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
}

.filter-option input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #3D1D4F;
}

.filter-option label {
    font-size: 0.9rem;
    color: #475569;
    cursor: pointer;
    flex: 1;
}

.filter-actions {
    display: flex;
    gap: 12px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.filter-reset {
    background: #f1f5f9;
    color: #64748b;
    padding: 12px 24px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
}

.filter-reset:hover {
    background: #e2e8f0;
}

.filter-apply {
    background: linear-gradient(45deg, #3D1D4F, #FFD700);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
}

.filter-apply:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(61, 29, 79, 0.3);
}

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

.no-results-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.no-results-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #3D1D4F;
}

.no-results-text {
    font-size: 1rem;
    line-height: 1.5;
}

.filter-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-tag {
    background: rgba(115, 51, 115, 0.1);
    color: #733373;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.filter-tag:hover, .filter-tag.active {
    background: #733373;
    color: white;
    transform: translateY(-2px);
}

/* Advisors Section */
.advisors-section {
    padding: 60px 40px;
}

.section-title {
    font-size: 2.5rem;
    color: #333;
    text-align: center;
    margin-bottom: 20px;
    font-weight: 700;
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(45deg, #3D1D4F, #FFD700);
    border-radius: 2px;
}

.advisors-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.advisor-card {
    background: linear-gradient(135deg, #f8f4ff 0%, #fff8e1 100%);
    border-radius: 20px;
    padding: 30px 30px;
    padding-bottom: 13px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.advisor-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(45deg, #3D1D4F, #FFD700);
}

.advisor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.advisor-header {
    display: flex;
    align-items: flex-start;
    gap: 16px; 
}

.advisor-avatar {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    background: linear-gradient(135deg, #3D1D4F, #733373);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    font-weight: 600;
    flex-shrink: 0;
}

.advisor-avatar img {
		width: 100%;
    height: 100%;
    border-radius: 10px;
}
.advisor-info h3 {
    font-size: 1.25rem;
    color: #333;
    margin-bottom: 4px;
    font-weight: 600;
    line-height: 1.3;
}

.advisor-title {
    color: #666;
    font-size: 0.875rem;
    margin-bottom: 8px;
    font-weight: 500;
}

.advisor-rating {
    display: flex;
    align-items: center;
    gap: 6px;
}

.stars {
    color: #FFD700;
    font-size: 0.875rem;
    letter-spacing: 1px;
}

.rating-text {
    color: #666;
    font-size: 0.75rem;
    font-weight: 500;
}

.advisor-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 10px 0;
    padding: 0 16px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.advisor-stats .stat-item {
    padding: 10px; 
}

.stat-number {
    font-size: 1.25rem;
    font-weight: 700;
    color: #3D1D4F;
    display: block;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.75rem;
    color: #666;
    font-weight: 500;
    margin-top: 2px;
}

.advisor-specialties {
    margin: 0;
}

.specialties-title {
    font-size: 0.875rem;
    color: #555;
    margin-bottom: 8px;
    font-weight: 600;
}

.specialty-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.specialty-tag {
    background: rgba(115, 51, 115, 0.1);
    color: #733373;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid rgba(115, 51, 115, 0.2);
}

.advisor-description {
    color: #555;
    line-height: 1.6;
    margin: 16px 0;
    font-size: 0.875rem;
    flex-grow: 1;
    text-align: justify;
}

.advisor-actions {
    display: flex;
    gap: 8px;
    margin-top: 0;
    flex-direction: row;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #f8f4ff 0%, #fff8e1 100%);
    padding: 60px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(115, 51, 115, 0.1);
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
    background: white;
    padding: 50px 40px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #3D1D4F;
}

.cta-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(45deg, #3D1D4F, #FFD700);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    animation: pulse 2s infinite;
}

.cta-title {
    font-size: 2.2rem;
    margin-bottom: 16px;
    font-weight: 700;
    color: #3D1D4F;
    line-height: 1.2;
}

.cta-subtitle {
    font-size: 1.1rem;
    margin-bottom: 32px;
    color: #666;
    line-height: 1.6;
    font-weight: 400;
}

.cta-button {
    background: linear-gradient(45deg, #3D1D4F, #FFD700);
    color: white;
    padding: 15px 35px;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.5s ease;
}

.cta-button:hover::before {
    width: 300px;
    height: 300px;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(61, 29, 79, 0.3);
}

.cta-button::after {
    content: '🔍';
    font-size: 1rem;
}


/* Article Items */
.article-item {
    background: linear-gradient(135deg, #f8f4ff 0%, #fff8e1 100%);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 16px;
    border-left: 4px solid #3D1D4F;
    word-wrap: break-word; 
    transition: all 0.3s ease;
}

.article-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.article-title a {
    font-size: 1.125rem;
    font-weight: 600;
    color: #3D1D4F;
    margin-bottom: 8px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.4;
    display: block;
}

.article-meta {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.article-date {
    color: #666;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.article-views {
    color: #666;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.article-category {
    background: rgba(115, 51, 115, 0.1);
    color: #733373;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.article-category a {
    text-decoration: none;
}

.article-excerpt {
    color: #555;
    line-height: 1.6;
    word-wrap: break-word;
    overflow-wrap: break-word;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .search-section, .advisors-section, .cta-section {
        padding: 40px 20px;
    }

    .advisors-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .search-box {
        flex-direction: column;
    }

    .advisor-actions {
        flex-direction: column;
    }

    .cta-content {
        margin: 10px;
        padding: 40px 30px;
    }

    .cta-title {
        font-size: 1.8rem;
    }

    .modal-content {
        margin: 10px;
        padding: 0;
        max-height: 95vh;
        max-width: calc(100vw - 20px);
    }

    .modal-header,
    .modal-body,
    .modal-actions {
        padding: 20px;
    }

    .modal-advisor-header {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .modal-avatar {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }

    .modal-advisor-info h2 {
        font-size: 1.5rem;
    }

    .modal-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .modal-stat-item {
        padding: 12px 8px;
    }

    .modal-stat-number {
        font-size: 1.2rem;
    }

    .modal-stat-label {
        font-size: 0.75rem;
    }

    .modal-actions {
        flex-direction: column;
        gap: 8px;
    }

    .modal-contact-methods {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .modal-contact-item {
        padding: 12px;
    }
}