/* Features and FAQ Section Styles - No JavaScript Required */

/* Background gradients */
.features-bg-gradient {
    background: linear-gradient(135deg, #f8f9fc 0%, #eaecf4 100%);
}

.faq-bg {
    background: #f8f9fc;
}

/* Service Cards */
.service-card {
    background: white;
    border: none;
    border-radius: 1rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4e73df, #1cc88a, #f6c23e, #e74a3b);
    border-radius: 1rem 1rem 0 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.15);
}

.service-card:hover::before {
    opacity: 1;
}

/* Service Icons */
.service-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-icon-practice {
    background: linear-gradient(135deg, #4e73df, #6cb2eb);
}

.service-icon-structured-learning {
    background: linear-gradient(135deg, #1cc88a, #38c172);
}

.service-icon-exams {
    background: linear-gradient(135deg, #f6c23e, #ffed4a);
}

.service-icon-badges {
    background: linear-gradient(135deg, #e74a3b, #e3342f);
}

/* Service Titles */
.service-title {
    color: #3a3b45;
    font-weight: 600;
}

/* Additional spacing for service cards */
.service-cards-grid .col-lg-6 {
    margin-bottom: 2rem;
}

@media (min-width: 992px) {
    .service-cards-grid .col-lg-6 {
        margin-bottom: 3rem;
    }
}

/* Extra spacing between rows */
.service-cards-grid {
    row-gap: 2rem;
}

/* Features Section */
.features-title {
    font-weight: 300;
    color: #3a3b45;
    background: linear-gradient(135deg, #4e73df, #1cc88a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.features-subtitle {
    color: #6c757d;
}

.features-highlight-section {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

.features-highlight-title {
    color: #3a3b45;
    font-weight: 300;
}

/* Small Feature Icons */
.feature-icon-small {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: transform 0.3s ease;
}

.feature-item:hover .feature-icon-small {
    transform: scale(1.1);
}

.feature-icon-sandboxes {
    background: linear-gradient(135deg, #007bff, #0056b3);
}

.feature-icon-questions {
    background: linear-gradient(135deg, #28a745, #157347);
}

.feature-icon-levels {
    background: linear-gradient(135deg, #ffc107, #d39e00);
}

.feature-icon-visualize {
    background: linear-gradient(135deg, #17a2b8, #0f6674);
}

.feature-icon-domain {
    background: linear-gradient(135deg, #6f42c1, #523390);
}

.feature-icon-autograded {
    background: linear-gradient(135deg, #fd7e14, #c95c00);
}

.feature-small-title {
    color: #3a3b45;
    font-weight: 600;
}

/* Modern Clean FAQ Design */
.faq-section {
    background: linear-gradient(135deg, #f8f9fc 0%, #ffffff 100%);
}

.faq-header {
    margin-bottom: 4rem;
}

.faq-main-title {
    color: #2c3e50;
    font-weight: 300;
    font-size: 2.75rem;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.faq-main-subtitle {
    color: #6c757d;
    font-size: 1.2rem;
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
}

.faq-grid {
    display: grid;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.faq-item-modern {
    background: white;
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.faq-item-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    border-color: #e3e6f0;
}

/* FAQ Accordion Styles */
.faq-header {
    padding: 0;
    margin: 0;
    border: none;
    background: none;
}

.faq-question-btn {
    width: 100%;
    padding: 2rem;
    background: none;
    border: none;
    text-align: left;
    color: #2c3e50;
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.4;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.faq-question-btn:hover {
    color: #4e73df;
    background: rgba(78, 115, 223, 0.05);
}

.faq-question-btn:focus {
    outline: none;
    box-shadow: none;
}

.faq-question-btn i {
    transition: transform 0.3s ease;
    color: #4e73df;
    font-size: 1rem;
}

.faq-question-btn:not(.collapsed) i {
    transform: rotate(180deg);
}

.faq-question-btn span {
    flex: 1;
    margin-right: 1rem;
}

.faq-content {
    padding: 0.5rem 2rem 2rem 2rem;
}

.faq-q {
    color: #2c3e50;
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f8f9fc;
}

.faq-a {
    color: #555;
    line-height: 1.7;
    font-size: 1rem;
}

.faq-a p {
    margin-bottom: 1rem;
}

.faq-a p:last-child {
    margin-bottom: 0;
}

.faq-a strong {
    color: #4e73df;
    font-weight: 600;
}

.faq-feature-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.faq-feature-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f5f5f5;
    position: relative;
    padding-left: 2rem;
}

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

.faq-feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0.75rem;
    width: 1.25rem;
    height: 1.25rem;
    background: linear-gradient(135deg, #4e73df, #224abe);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
}

/* Contact CTA Section */
.faq-contact-section {
    margin-top: 4rem;
}

.faq-contact-card {
    background: linear-gradient(135deg, #4e73df 0%, #1cc88a 100%);
    color: white;
    padding: 3rem 2rem;
    border-radius: 16px;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.faq-contact-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E")
        repeat;
    pointer-events: none;
}

.faq-contact-title {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.faq-contact-text {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.faq-contact-cta {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    backdrop-filter: blur(10px);
}

.faq-contact-cta:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
}

/* Contact Section */
.contact-section {
    background: linear-gradient(135deg, #f8f9fc 0%, #ffffff 100%);
}

.contact-wrapper {
    background: white;
    padding: 3rem 2rem;
    border-radius: 1rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

.contact-title {
    color: #3a3b45;
    font-weight: 300;
    font-size: 2.5rem;
}

.contact-subtitle {
    color: #6c757d;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Form Styles */
.form-label {
    color: #3a3b45;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.contact-input {
    border: 2px solid #e3e6f0;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    background: #f8f9fc;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.contact-input:focus {
    border-color: #4e73df;
    background: white;
    box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.15);
}

.contact-submit-btn {
    background: linear-gradient(135deg, #4e73df, #224abe);
    border: none;
    border-radius: 0.5rem;
    padding: 0.875rem 2rem;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    transition: background 0.2s ease, transform 0.1s ease;
}

.contact-submit-btn:hover {
    background: linear-gradient(135deg, #224abe, #1e3a8a);
    transform: translateY(-1px);
}

.contact-link {
    color: #4e73df;
    text-decoration: none;
    font-weight: 500;
}

.contact-link:hover {
    color: #224abe;
    text-decoration: underline;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #4e73df, #1cc88a);
    color: white;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E")
        repeat;
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-title {
    font-weight: 300;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.cta-btn-primary {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 0.75rem;
    padding: 0.875rem 2rem;
    color: white;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.cta-btn-primary:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
    transform: translateY(-2px);
    text-decoration: none;
}

.cta-btn-secondary {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 0.75rem;
    padding: 0.875rem 2rem;
    color: white;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transform: translateY(-2px);
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .features-section .container,
    .faq-section .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .service-card {
        margin-bottom: 1.5rem;
    }

    .features-title {
        font-size: 1.75rem;
    }

    .service-icon {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1rem;
    }

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

    .cta-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }

    /* FAQ Responsive */
    .faq-main-title {
        font-size: 2.25rem;
    }

    .faq-main-subtitle {
        font-size: 1.1rem;
    }

    .faq-grid {
        gap: 1.5rem;
    }

    .faq-q {
        font-size: 1.25rem;
    }

    .faq-a {
        font-size: 0.95rem;
    }

    .faq-contact-card {
        padding: 2.5rem 1.5rem;
        margin: 0 1rem;
    }

    .faq-contact-title {
        font-size: 1.5rem;
    }

    .faq-contact-text {
        font-size: 1rem;
    }

    /* Contact Responsive */
    .contact-wrapper {
        padding: 2rem 1.5rem;
    }

    .contact-title {
        font-size: 2rem;
    }

    .contact-subtitle {
        font-size: 1rem;
    }

    .contact-input {
        padding: 0.75rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .faq-header {
        margin-bottom: 0rem;
    }

    .faq-content {
        padding-right: 0.5rem;
        padding-bottom: 0.5rem;
    }

    .faq-feature-list li {
        padding-left: 1.5rem;
        font-size: 0.9rem;
    }
}
