/* How It Works Page Styles */

.how-it-works-page {
    padding: 40px 0;
    overflow-x: hidden;
}

.page-header {
    margin-bottom: 40px;
    position: relative;
}

.page-header h1 {
    color: #333;
    font-size: 3rem;
    font-weight: 700;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-underline {
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #007bff, #00c6ff);
    margin: 0 auto;
    border-radius: 4px;
    position: relative;
}

.header-underline::before, .header-underline::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #007bff;
    top: -2px;
}

.header-underline::before {
    left: -5px;
}

.header-underline::after {
    right: -5px;
}

.intro-section {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 40px;
    border-radius: 15px;
    margin-bottom: 60px;
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    position: relative;
    border-left: 5px solid #007bff;
    border-right: 5px solid #00c6ff;
}

.intro-icon {
    font-size: 3rem;
    color: #007bff;
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.intro-section p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 0;
}

.features-title {
    margin-bottom: 50px;
    color: #333;
    font-size: 2.2rem;
    font-weight: 600;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.feature-title-icon {
    color: #007bff;
    margin-right: 10px;
    animation: spin 10s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.features-section {
    margin-bottom: 60px;
}

.feature-row {
    display: flex;
    align-items: center;
    margin-bottom: 80px;
    position: relative;
    padding: 40px;
    border-radius: 15px;
    transition: all 0.4s ease;
    overflow: hidden;
}

.feature-row:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Alternating background colors with gradients */
.feature-right {
    background: linear-gradient(135deg, #e8f4ff, #d1e9ff); /* Light blue gradient */
    flex-direction: row;
}

.feature-left {
    background: linear-gradient(135deg, #f0f0f0, #e6e6e6); /* Light gray gradient */
    flex-direction: row-reverse;
}

.feature-icon {
    flex: 0 0 30%;
    text-align: center;
    padding: 20px;
    position: relative;
}

.icon-wrapper {
    background: #fff;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.icon-wrapper::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.2), rgba(0, 198, 255, 0.2));
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-row:hover .icon-wrapper::before {
    opacity: 1;
}

.feature-icon img {
    max-width: 120px;
    height: auto;
    transition: transform 0.5s ease;
}

.feature-row:hover .feature-icon img {
    transform: scale(1.15) rotate(5deg);
}

.feature-content {
    flex: 0 0 70%;
    padding: 20px 30px;
}

.feature-badge {
    display: inline-block;
    background: linear-gradient(90deg, #007bff, #00c6ff);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3);
}

.feature-content h3 {
    color: #333;
    font-size: 2rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.feature-content h4 {
    color: #007bff;
    font-size: 1.4rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.feature-content p {
    color: #555;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 10px;
}

.feature-check {
    color: #28a745;
    margin-right: 10px;
}

.feature-cta {
    margin-top: 20px;
}

.feature-btn {
    display: inline-block;
    padding: 10px 20px;
    background: transparent;
    color: #007bff;
    border: 2px solid #007bff;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.feature-btn:hover {
    background: #007bff;
    color: white;
    transform: translateX(5px);
}

.feature-btn i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.feature-btn:hover i {
    transform: translateX(5px);
}

/* Stats Section */
.stats-section {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin: 60px 0;
    padding: 40px;
    background: linear-gradient(135deg, #007bff, #00c6ff);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 123, 255, 0.2);
}

.stat-item {
    flex: 1;
    text-align: center;
    padding: 20px;
    color: white;
    position: relative;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 70%;
    width: 1px;
    background: rgba(255, 255, 255, 0.3);
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    opacity: 0.9;
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* Testimonials Section */
.testimonials-section {
    margin: 60px 0;
}

.testimonials-title {
    color: #333;
    font-size: 2.2rem;
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.testimonials-title::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #007bff, #00c6ff);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.testimonials-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
}

.testimonial-card {
    flex: 1 1 calc(50% - 15px);
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    display: flex;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 5rem;
    color: rgba(0, 123, 255, 0.1);
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.testimonial-avatar {
    flex: 0 0 60px;
    margin-right: 20px;
}

.testimonial-avatar img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #007bff;
}

.testimonial-content {
    flex: 1;
}

.testimonial-rating {
    color: #ffc107;
    margin-bottom: 10px;
    font-size: 1rem;
}

.testimonial-text {
    color: #555;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 10px;
    font-style: italic;
}

.testimonial-author {
    color: #007bff;
    font-weight: 600;
    text-align: right;
}

/* FAQ Section */
.faq-section {
    margin: 60px 0;
}

.faq-title {
    color: #333;
    font-size: 2.2rem;
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.faq-title::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #007bff, #00c6ff);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.faq-question {
    padding: 20px;
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
}

.faq-question i.fa-question-circle {
    color: #007bff;
    font-size: 1.5rem;
    margin-right: 15px;
}

.faq-question h3 {
    flex: 1;
    font-size: 1.2rem;
    margin: 0;
    color: #333;
}

.faq-toggle {
    color: #007bff;
    transition: transform 0.3s ease;
}

.faq-answer {
    padding: 0 20px 20px 60px;
    display: none;
}

.faq-answer p {
    color: #555;
    line-height: 1.6;
    margin: 0;
}

.faq-item.active .faq-answer {
    display: block;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 60px 40px;
    border-radius: 15px;
    margin-top: 60px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    border-top: 5px solid #007bff;
}

.cta-section::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(0, 123, 255, 0.1) 0%, rgba(0, 123, 255, 0) 70%);
    top: -100px;
    left: -100px;
    border-radius: 50%;
}

.cta-section::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(0, 198, 255, 0.1) 0%, rgba(0, 198, 255, 0) 70%);
    bottom: -100px;
    right: -100px;
    border-radius: 50%;
}

.cta-section h3 {
    color: #333;
    font-size: 2.2rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.cta-description {
    color: #555;
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
}

.btn {
    display: inline-block;
    padding: 15px 30px;
    margin: 10px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.btn i {
    margin-right: 8px;
}

.btn-primary {
    background: linear-gradient(90deg, #007bff, #00c6ff);
    color: #fff;
    border: none;
    box-shadow: 0 8px 15px rgba(0, 123, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(0, 123, 255, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #007bff;
    border: 2px solid #007bff;
}

.btn-secondary:hover {
    background: rgba(0, 123, 255, 0.1);
    transform: translateY(-5px);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .feature-row {
        flex-direction: column;
        padding: 30px;
    }
    
    .feature-left {
        flex-direction: column;
    }
    
    .feature-icon, .feature-content {
        flex: 0 0 100%;
        text-align: center;
    }
    
    .feature-content {
        padding: 30px 0 0;
    }
    
    .stats-section {
        flex-wrap: wrap;
    }
    
    .stat-item {
        flex: 0 0 50%;
        margin-bottom: 30px;
    }
    
    .stat-item:nth-child(2n)::after {
        display: none;
    }
    
    .testimonial-card {
        flex: 0 0 100%;
    }
}

@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2.5rem;
    }
    
    .intro-section {
        padding: 30px 20px;
    }
    
    .feature-row {
        margin-bottom: 40px;
        padding: 25px;
    }
    
    .icon-wrapper {
        width: 150px;
        height: 150px;
    }
    
    .feature-icon img {
        max-width: 100px;
    }
    
    .feature-content h3 {
        font-size: 1.8rem;
    }
    
    .feature-content h4 {
        font-size: 1.2rem;
    }
    
    .stat-item {
        flex: 0 0 100%;
    }
    
    .stat-item::after {
        display: none;
    }
    
    .cta-section h3 {
        font-size: 1.8rem;
    }
    
    .btn {
        display: block;
        margin: 15px auto;
        max-width: 80%;
    }
}

@media (max-width: 576px) {
    .page-header h1 {
        font-size: 2rem;
    }
    
    .intro-section p {
        font-size: 1rem;
    }
    
    .feature-content h3 {
        font-size: 1.5rem;
    }
    
    .feature-content p {
        font-size: 1rem;
    }
    
    .icon-wrapper {
        width: 120px;
        height: 120px;
    }
    
    .feature-icon img {
        max-width: 80px;
    }
    
    .testimonial-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .testimonial-avatar {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .testimonial-author {
        text-align: center;
    }
}