/* css/pricing.css */

/* --- Hero Section --- */
.hero-section {
    background: linear-gradient(135deg, #ad5207 0%, #e88e07 100%);
    color: white;
    padding: 20px 0.75rem 3rem; /* Adjusted top padding to 20px */
    text-align: center;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/assets/images/pattern.svg') repeat;
    opacity: 0.1;
    z-index: 1;
}

.hero-section .content-container {
    position: relative;
    z-index: 2;
    padding-left: 0px;
}

.hero-section h1 {
    color: white;
    margin-bottom: 1rem;
}

.hero-section .hero-description {
    font-size: 1.1rem;
    max-width: 50rem;
    margin: 0 auto;
    opacity: 0.9;
    line-height: 1.6;
}


/* --- General Section Styles --- */
.pricing-section,
.faq-section,
.how-it-works-section,
.comparison-section,
.trusted-by-section {
    text-align: center;
    padding: 4rem 0;
}

.pricing-section {
    padding-top: 3rem;
}

.pricing-section h2,
.faq-section h2,
.how-it-works-section h2,
.comparison-section h2,
.trusted-by-section h2 {
    /* Font size now inherited from global.css */
    margin-bottom: 1rem;
}

.pricing-section .subtitle {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.faq-section,
.how-it-works-section {
    background-color: #fffaf2;
}


/* --- Currency Switcher --- */
.currency-switcher-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.currency-switcher-container label {
    font-weight: 500;
    color: #4B5563;
}

#currency-switcher {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid #D1D5DB;
    background-color: #ffffff;
    font-weight: 500;
    cursor: pointer;
}


/* --- Pricing Tabs (Mobile/Tablet) --- */
.pricing-tabs-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.pricing-tab {
    background: none;
    border: none;
    padding: 0.75rem 1rem;
    font-size: 1.1rem;
    font-weight: 500;
    color: #4B5563;
    cursor: pointer;
    transition: color 0.3s, border-bottom-color 0.3s;
    border-bottom: 3px solid transparent;
}

.pricing-tab.active {
    color: #ad5207;
    font-weight: 700;
    border-bottom-color: #ad5207;
}


/* --- Pricing Carousel (Mobile/Tablet View) --- */
.grid-container-pricing {
    position: relative;
    overflow: hidden;
    margin-left: -0.75rem;
    margin-right: -0.75rem;
    display: flex;
    align-items: center;
}

.pricing-cards-slider {
    display: flex;
    align-items: center;
    padding: 2rem 1rem;
    transition: transform 0.6s ease-in-out;
    flex-grow: 1;
}

.pricing-card {
    background-color: white;
    border-radius: 1.5rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    text-align: center;
    position: relative;
    flex: 0 0 70%;
    max-width: 25rem;
    margin: 0 0.75rem;
    transform: scale(0.9);
    opacity: 0.7;
    transition: transform 0.5s ease, opacity 0.5s ease, box-shadow 0.3s ease;
}

.pricing-card.active {
    transform: scale(1);
    opacity: 1;
    z-index: 20;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
}

.pricing-card h3 {
    margin-bottom: 0.5rem;
}

.pricing-card .price {
    font-size: 3rem;
    font-weight: 800;
    font-family: 'Manrope', sans-serif;
    color: #ad5207;
    margin: 0.5rem 0;
}

.pricing-card .plan-details {
    font-size: 1rem;
    margin-bottom: 2rem;
}

.pricing-card .features-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 2rem;
    flex-grow: 1;
    display: inline-block;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.pricing-card .features-list li {
    margin-bottom: 1rem;
    position: relative;
    padding-left: 1.5rem;
}

.pricing-card .features-list li::before {
    content: '✔';
    position: absolute;
    left: 0;
    color: #e88e07;
    font-weight: bold;
}

.pricing-card .btn-primary {
    width: 100%;
}

.pricing-card .trial-text {
    margin-top: 1rem;
    font-size: 0.875rem;
}

.pricing-card.recommended {
    background-color: #ad5207;
    color: white;
    border-color: #ad5207;
    z-index: 10;
}
.pricing-card.recommended.active { z-index: 30; }

.recommended-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #e88e07;
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
}
.pricing-card.recommended h3,
.pricing-card.recommended .price,
.pricing-card.recommended .plan-details,
.pricing-card.recommended .trial-text { color: white; }

.pricing-card.recommended .features-list li::before { color: white; }

.pricing-card.recommended .btn-primary {
    background-color: white;
    color: #ad5207;
}
.pricing-card.recommended .btn-primary:hover { background-color: #f3f4f6; }


/* --- Features Showcase Section --- */
.features-showcase-section {
    color: white;
    background-color: #ad5207;
}
.features-showcase-section h3 {
    color: white;
    margin-bottom: 0.75rem;
}
.features-showcase-section p { opacity: 0.9; }

.grid-container-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
}
.feature-sprite-icon {
    background-image: url('../../assets/images/pricing/css_sprites-pricing.webp');
    background-repeat: no-repeat;
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background-size: 240px 240px; 
}
.icon-teachers { background-position: -120px 0; }
.icon-studies { background-position: 0 0; }
.icon-scheduling { background-position: 0 -120px; }


/* --- How It Works Section --- */
.how-it-works-section h2 { margin-bottom: 3rem; }
.steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    max-width: 1000px;
    margin: 0 auto;
}
.step-item {
    position: relative;
}
.step-number {
    width: 50px;
    height: 50px;
    background-color: #ad5207;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}
.step-item h3 { margin-bottom: 0.5rem; }


/* --- Comparison Table Section --- */
.comparison-section h2 { margin-bottom: 3rem; }
.comparison-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}
.comparison-table th, .comparison-table td {
    padding: 1rem 1.25rem;
    text-align: center;
    border-bottom: 1px solid #e5e7eb;
}
.comparison-table thead th {
    background-color: #fffaf2;
    font-weight: 700;
}
.comparison-table tbody th {
    text-align: left;
    font-weight: 600;
}
.comparison-table tbody tr:last-child td,
.comparison-table tbody tr:last-child th {
    border-bottom: none;
}
.comparison-table tbody tr:nth-child(even) {
    background-color: #f9fafb;
}
.check-mark {
    color: #16a34a; /* Green */
    font-size: 1.5rem;
    font-weight: bold;
}
.comparison-table .btn-primary {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}
.comparison-table thead th:nth-child(3) {
    color: #ad5207;
}

/* --- Trusted by Section (from Homepage) --- */
.trusted-by-section {
    background-color: #fff;
}
.trusted-by-section .header-text h2 {
    margin: 0;
}
.trusted-header-grid {
    display: flex;
    flex-direction: column; 
    align-items: center;
    text-align: center;
    gap: 2rem;
    margin-bottom: 3rem;
    padding-right: 0;
}
.rating-summary {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.rating-summary .rating-value {
    font-size: 2.75rem;
    font-weight: 700;
    color: #ad5207;
    line-height: 1;
}
.rating-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}
.rating-summary .rating-count-text {
    color: #4B5563;
    font-size: 1rem;
    line-height: 1.4;
}
.rating-summary .stars-wrapper {
    font-size: 1.125rem;
    display: flex;
    gap: 0.125rem;
    color: #f59e0b;
}
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 2rem;
}
.testimonial-item {
    background-color: #fffaf2;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.testimonial-item .stars-rating {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    display: flex;
    gap: 0.25rem;
    color: #f59e0b;
}
.testimonial-item p.quote {
    color: #374151;
    font-size: 1rem;
    margin-bottom: 1rem;
    flex-grow: 1;
    text-align: left;
}
.testimonial-item .author-info {
    display: flex;
    align-items: center;
    margin-top: auto;
}
.testimonial-item .author-info .name {
    font-weight: 500;
    color: #1F2937;
    margin: 0;
    text-align: left;
}
.testimonial-item .author-info .details {
    font-size: 0.8rem;
    color: #4B5563;
    margin-top: 0.2rem;
    text-align: left;
}
.sprite-icon {
    background-image: url('../../assets/images/homepage/css_sprites.webp');
    background-repeat: no-repeat;
}
.profile-icon {
    width: 40px;
    height: 40px;
    border-radius: 9999px;
    margin-right: 0.75rem;
    background-size: 120px 120px;
}
.icon-hijab { background-position: -40px -40px; }
.icon-muslim-man { background-position: -80px 0; }


/* --- FAQ Section --- */
.grid-container-faq { 
    display: grid; 
    grid-template-columns: 1fr;
    gap: 1rem; 
    text-align: left;
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    background-color: white;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
    transition: box-shadow 0.3s ease;
}
.faq-item:hover {
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}
.faq-question {
    width: 100%;
    padding: 1.25rem 1.5rem;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    color: #374151;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-family: 'Manrope', sans-serif;
}
.faq-item.active .faq-question { color: #ad5207; }
.faq-icon {
    flex-shrink: 0;
    width: 1rem;
    height: 1rem;
    transition: transform 0.3s ease;
}
.faq-icon::before {
    content: '+';
    display: block;
    font-size: 1.5rem;
    line-height: 1rem;
    font-weight: 300;
    color: #9ca3af;
}
.faq-item.active .faq-icon { transform: rotate(45deg); }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
}
.faq-answer p {
    padding: 0 1.5rem 1.5rem;
    margin: 0;
    line-height: 1.6;
}


/* ====== RESPONSIVE STYLES ====== */
@media (min-width: 768px) {
    .grid-container-features {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
    .steps-grid {
        grid-template-columns: repeat(2, 1fr); /* MODIFIED: 2x2 grid for tablets */
    }
    .testimonials-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .trusted-header-grid {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
        padding-right: 2rem;
    }
}

@media (min-width: 1024px) {
    .pricing-tabs-container {
        display: none;
    }
    .grid-container-pricing {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        overflow: visible;
        padding: 3rem 0;
        gap: 2rem;
        margin-left: 0;
        margin-right: 0;
        margin-top: 2rem;
    }
    .pricing-cards-slider {
        display: contents;
        transform: none !important;
    }
    .pricing-card {
        flex: 1 1 auto;
        max-width: none;
        margin: 0;
        transform: scale(1);
        opacity: 1;
    }
    .pricing-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    }
    .pricing-card.recommended {
        transform: scale(1.05);
    }
    .pricing-card.recommended:hover {
        transform: scale(1.05) translateY(-10px);
    }
    .steps-grid {
        grid-template-columns: repeat(4, 1fr); /* MODIFIED: 4 columns for large desktops */
    }
}