/* Services Pages Styles */

/* Service Hero Section */
.service-hero {
    background: linear-gradient(135deg, var(--dark-color) 0%, #3a3a4e 100%);
    color: white;
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.service-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?ixlib=rb-1.2.1&auto=format&fit=crop&w=2000&q=80');
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    z-index: 0;
}

.service-hero .container {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.service-hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
}

.service-hero p {
    font-size: 20px;
    max-width: 700px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

.service-hero .btn-primary {
    padding: 15px 30px;
    font-size: 18px;
    margin-top: 20px;
}

/* Service Overview Section */
.service-overview {
    padding: 80px 0;
    background-color: white;
}

.service-overview .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.overview-content h2 {
    font-size: 36px;
    margin-bottom: 30px;
    color: var(--dark-color);
    position: relative;
    padding-bottom: 15px;
}

.overview-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

.overview-content p {
    margin-bottom: 20px;
    color: var(--gray-color);
    font-size: 16px;
    line-height: 1.8;
}

.overview-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

/* Service Features Section */
.service-features {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.service-features h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: var(--dark-color);
    position: relative;
    padding-bottom: 15px;
}

.service-features h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-item {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.feature-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.feature-icon {
    width: 70px;
    height: 70px;
    line-height: 70px;
    border-radius: 50%;
    background-color: rgba(106, 79, 255, 0.1);
    margin: 0 auto 20px;
}

.feature-icon i {
    font-size: 28px;
    color: var(--primary-color);
}

.feature-item h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.feature-item p {
    color: var(--gray-color);
    font-size: 15px;
    line-height: 1.6;
}

/* Service Plans Section */
.service-plans {
    padding: 80px 0;
    background-color: white;
}

.service-plans h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.service-plans p.subtitle {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
    color: var(--gray-color);
    font-size: 18px;
}

/* Use the same pricing cards from main CSS */

/* Service Benefits Section */
.service-benefits {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.service-benefits h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: var(--dark-color);
    position: relative;
    padding-bottom: 15px;
}

.service-benefits h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

.benefits-list {
    max-width: 800px;
    margin: 0 auto;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    background-color: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.benefit-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.benefit-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    line-height: 50px;
    text-align: center;
    border-radius: 50%;
    background-color: rgba(106, 79, 255, 0.1);
    margin-right: 20px;
}

.benefit-icon i {
    font-size: 20px;
    color: var(--primary-color);
}

.benefit-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.benefit-content p {
    color: var(--gray-color);
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

/* Service FAQ Section */
.service-faq {
    padding: 80px 0;
    background-color: white;
}

.service-faq h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: var(--dark-color);
    position: relative;
    padding-bottom: 15px;
}

.service-faq h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

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

.faq-item {
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.faq-question {
    background-color: #f8f9fa;
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question h3 {
    font-size: 18px;
    margin: 0;
    color: var(--dark-color);
}

.faq-question i {
    font-size: 16px;
    color: var(--primary-color);
    transition: var(--transition);
}

.faq-question.active {
    background-color: var(--primary-color);
}

.faq-question.active h3 {
    color: white;
}

.faq-question.active i {
    color: white;
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: white;
}

.faq-answer p {
    padding: 20px 0;
    margin: 0;
    color: var(--gray-color);
    font-size: 15px;
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

/* Service CTA Section */
.service-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, #8a70ff 100%);
    color: white;
    text-align: center;
}

.service-cta h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.service-cta p {
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto 30px;
}

.service-cta .btn-primary {
    background-color: white;
    color: var(--primary-color);
    font-size: 18px;
    padding: 15px 30px;
}

.service-cta .btn-primary:hover {
    background-color: var(--light-color);
    transform: translateY(-2px);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .service-overview .container {
        grid-template-columns: 1fr;
    }
    
    .overview-image {
        order: -1;
        margin-bottom: 30px;
    }
    
    .overview-image img {
        max-height: 400px;
        object-fit: cover;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .service-hero {
        padding: 60px 0;
    }
    
    .service-hero h1 {
        font-size: 36px;
    }
    
    .service-hero p {
        font-size: 18px;
    }
    
    .service-overview,
    .service-features,
    .service-plans,
    .service-benefits,
    .service-faq,
    .service-cta {
        padding: 60px 0;
    }
    
    .overview-content h2,
    .service-features h2,
    .service-plans h2,
    .service-benefits h2,
    .service-faq h2,
    .service-cta h2 {
        font-size: 30px;
    }
    
    .feature-item,
    .benefit-item {
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .service-hero h1 {
        font-size: 28px;
    }
    
    .service-hero p {
        font-size: 16px;
    }
    
    .service-hero .btn-primary {
        padding: 12px 25px;
        font-size: 16px;
    }
    
    .overview-content h2,
    .service-features h2,
    .service-plans h2,
    .service-benefits h2,
    .service-faq h2,
    .service-cta h2 {
        font-size: 24px;
    }
    
    .service-plans p.subtitle {
        font-size: 16px;
    }
    
    .benefit-icon {
        width: 40px;
        height: 40px;
        line-height: 40px;
    }
    
    .benefit-icon i {
        font-size: 16px;
    }
    
    .benefit-content h3 {
        font-size: 18px;
    }
    
    .faq-question h3 {
        font-size: 16px;
    }
}

/* Pricing Section Styles */
.pricing-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.pricing-section h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.pricing-section .section-subtitle {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 30px;
    color: var(--gray-color);
    font-size: 18px;
}

/* Pricing Cards Layout - This is the key part to fix the side-by-side issue */
.pricing-cards {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.pricing-card {
    flex: 1;
    min-width: 280px;
    max-width: 360px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    transition: transform 0.3s ease;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-5px);
}

.pricing-card.popular {
    border: 2px solid var(--primary-color);
}

.popular-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.card-header {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.card-header h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.price {
    font-size: 40px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.price .currency {
    font-size: 24px;
    vertical-align: super;
}

.price .period {
    font-size: 16px;
    color: var(--gray-color);
    font-weight: normal;
}

.billing-note {
    font-size: 14px;
    color: var(--gray-color);
}

.card-body {
    padding: 20px 0;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.features-list li {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    color: var(--gray-color);
}

.features-list li:last-child {
    border-bottom: none;
}

.features-list li i {
    color: var(--primary-color);
    margin-right: 10px;
}

.features-list li strong {
    color: var(--dark-color);
}

.card-footer {
    text-align: center;
    padding-top: 20px;
}

.card-footer .btn-primary {
    width: 100%;
    padding: 12px;
}

/* Pricing Toggle */
.pricing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 30px 0;
    gap: 15px;
}

.toggle-label {
    font-weight: 600;
    color: var(--gray-color);
}

.toggle-label.active {
    color: var(--primary-color);
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--primary-color);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.discount-badge {
    background: var(--primary-color);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    margin-left: 5px;
}

/* Billing toggle functionality */
.pricing-card .annual {
    display: none;
}

/* Custom plan section */
.custom-plan {
    text-align: center;
    margin-top: 50px;
    padding: 30px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.custom-plan h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.custom-plan p {
    margin-bottom: 20px;
    color: var(--gray-color);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .pricing-cards {
        flex-wrap: wrap;
    }
    
    .pricing-card {
        flex: 0 0 calc(50% - 20px);
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .pricing-cards {
        flex-direction: column;
        align-items: center;
    }
    
    .pricing-card {
        flex: 0 0 100%;
        max-width: 400px;
        margin-bottom: 20px;
    }
}
