/**
 * Course Details Page Styles (Plugin copy)
 * Matches the modern course template markup (md-*)
 */

/* Base Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #1F2937;
}

.md-service-detail-page {
    margin: 0;
    padding: 0;
    background: #F9FAFB;
}

.md-service-single {
    background: #fff;
    overflow: hidden;
}

/* Hero Section - Course & Service */
.md-course-hero,
.md-service-hero {
    background: linear-gradient(135deg, #2B5BA6 0%, #4A90A4 100%);
    color: #fff;
    padding: 5rem 2rem 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.md-course-hero-content,
.md-service-hero .hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.md-course-badge,
.md-service-hero .course-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.2);
    color: #fff;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.md-live-badge,
.md-service-hero .live-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #10B981;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
}

.md-course-hero h1,
.md-service-hero h1 {
    font-size: 52px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 1.5rem 0;
    line-height: 1.2;
}

.md-course-hero p,
.md-service-hero p {
    font-size: 22px;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    line-height: 1.6;
    color: #fff;
}

.md-cta-buttons,
.md-service-hero .cta-buttons {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    flex-wrap: wrap;
}

.md-btn,
.md-service-hero .btn {
    padding: 1rem 2.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    display: inline-block;
}

/* Primary Button - Default (for content areas) */
.md-btn-primary {
    background: #2B5BA6;
    color: #fff;
}

.md-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    background: #1e4a87;
}

/* Primary Button - Hero variant (white on colored background) */
.md-course-hero .md-btn-primary,
.md-service-hero .btn-primary {
    background: #fff;
    color: #2B5BA6;
}

.md-course-hero .md-btn-primary:hover,
.md-service-hero .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    background: #f0f0f0;
}

/* Secondary Button - Default (for content areas) */
.md-btn-secondary {
    background: transparent;
    color: #2B5BA6;
    border: 2px solid #2B5BA6;
}

.md-btn-secondary:hover {
    background: #2B5BA6;
    color: #fff;
}

/* Secondary Button - Hero variant (outlined white) */
.md-course-hero .md-btn-secondary,
.md-service-hero .btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.md-course-hero .md-btn-secondary:hover,
.md-service-hero .btn-secondary:hover {
    background: #fff;
    color: #2B5BA6;
}

/* Stats Section */
.md-stats {
    background: #fff;
    padding: 2.5rem 1.25rem;
    border-bottom: 1px solid #E5E7EB;
}

.md-stats-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.md-stat-item h3 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.md-stat-primary { color: #2B5BA6; }
.md-stat-secondary { color: #4A90A4; }
.md-stat-tertiary { color: #8B6BA8; }
.md-stat-accent { color: #D97642; }

.md-stat-item p {
    color: #666;
    font-size: 16px;
}

/* Container */
.md-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 1.25rem;
}

/* Course Overview */
.md-course-overview {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.md-course-content h2 {
    font-size: 36px;
    margin-bottom: 1.5rem;
    color: #1F2937;
    font-weight: 700;
}

.md-course-content p {
    font-size: 1.1rem;
    color: #4B5563;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

/* Course Card */
.md-course-card {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    position: sticky;
    top: 100px;
    border: 1px solid #E5E7EB;
}

.md-price {
    font-size: 40px;
    font-weight: 700;
    color: #2B5BA6;
    margin-bottom: 0.5rem;
}

.md-price-note {
    color: #666;
    margin-bottom: 2rem;
    font-size: 15px;
}

.md-course-card .md-btn {
    width: 100%;
    text-align: center;
    display: block;
    margin-bottom: 1rem;
}

/* Ensure proper button colors in course card */
.md-course-card .md-btn-primary {
    background: #2B5BA6;
    color: #fff;
}

.md-course-card .md-btn-primary:hover {
    background: #1e4a87;
}

.md-course-card .md-btn-secondary {
    background: #fff;
    color: #2B5BA6;
    border: 2px solid #2B5BA6;
}

.md-course-card .md-btn-secondary:hover {
    background: #2B5BA6;
    color: #fff;
}

.md-course-includes {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #E5E7EB;
}

.md-course-includes h4 {
    margin-bottom: 1rem;
    color: #1F2937;
    font-weight: 600;
}

.md-course-includes ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.md-course-includes li {
    padding: 0.75rem 0;
    color: #4B5563;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 15px;
}

.md-course-includes li::before {
    content: '✓';
    color: #10B981;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Features Grid */
.md-features {
    background: #fff;
    padding: 5rem 1.25rem;
}

.md-features h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 3rem;
    color: #1F2937;
    font-weight: 700;
}

.md-features-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.md-feature-card {
    background: #F9FAFB;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #E5E7EB;
    transition: transform 0.3s, box-shadow 0.3s;
}

.md-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.md-feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #2B5BA6 0%, #4A90A4 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.md-feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #1F2937;
    font-weight: 600;
}

.md-feature-card p {
    color: #4B5563;
    line-height: 1.7;
}

/* Curriculum */
.md-curriculum {
    padding: 5rem 1.25rem;
    background: #F9FAFB;
}

.md-curriculum h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 3rem;
    color: #1F2937;
    font-weight: 700;
}

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

.md-module {
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.md-module:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.md-module-header {
    padding: 1.5rem 2rem;
    background: #F9FAFB;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.md-module-header h3 {
    font-size: 1.125rem;
    color: #1F2937;
    font-weight: 600;
    margin: 0;
}

.md-module-meta {
    color: #666;
    font-size: 0.875rem;
}

/* Testimonials */
.md-testimonials {
    padding: 5rem 1.25rem;
    background: #fff;
}

.md-testimonials h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 3rem;
    color: #1F2937;
    font-weight: 700;
}

.md-testimonials-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.md-testimonial-card {
    background: #F9FAFB;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #E5E7EB;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.md-testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.md-testimonial-text {
    font-size: 1.05rem;
    color: #1F2937;
    line-height: 1.7;
    font-style: italic;
    margin: 0;
}

.md-testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.md-author-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #2B5BA6 0%, #4A90A4 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.md-author-info h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #1F2937;
    margin: 0 0 0.25rem 0;
}

.md-author-info p {
    font-size: 0.875rem;
    color: #6B7280;
    margin: 0;
}

/* FAQ Section - Redesigned to match Academy */
.md-faq {
    padding: 5rem 1.25rem;
    background: #F9FAFB;
}

.md-faq h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 1rem;
    color: #1F2937;
    font-weight: 700;
}

.md-faq-subtitle {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.md-faq-list {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.md-faq-item {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.md-faq-item:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.md-faq-question {
    width: 100%;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 24px;
    border: none;
    background: transparent;
    cursor: pointer;
    text-align: left;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.md-faq-question:hover {
    background: #F9FAFB;
}

.md-faq-question[aria-expanded="true"] {
    background: #F9FAFB;
}

.md-faq-icon-wrapper {
    flex-shrink: 0;
}

.md-faq-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2B5BA6 0%, #4A90A4 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: bold;
    color: #fff;
    transition: transform 0.3s ease;
}

.md-faq-question:hover .md-faq-icon {
    transform: scale(1.05);
}

.md-faq-content-wrapper {
    flex: 1;
    min-width: 0;
    margin: 0;
    padding: 0;
}

.md-faq-question-text {
    color: #1F2937;
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    font-weight: 700;
    margin: 0 0 12px 0;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.md-faq-question:hover .md-faq-question-text {
    color: #2B5BA6;
}

.md-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease, margin-top 0.3s ease;
    opacity: 0;
}

.md-faq-answer.active {
    max-height: 500px;
    opacity: 1;
    margin-top: 8px;
}

.md-faq-answer p {
    color: #4B5563;
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
}

.md-faq-toggle-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(43, 91, 166, 0.08);
    transition: all 0.3s ease;
    margin: 2px 0 0 0;
}

.md-faq-question[aria-expanded="true"] .md-faq-toggle-icon {
    background: linear-gradient(135deg, #2B5BA6 0%, #4A90A4 100%);
}

.md-chevron-icon {
    transition: transform 0.3s ease, color 0.3s ease;
    color: #2B5BA6;
}

.md-faq-question[aria-expanded="true"] .md-chevron-icon {
    transform: rotate(180deg);
    color: #fff;
}

.md-faq-question:hover .md-chevron-icon {
    color: #4A90A4;
}

.md-faq-question[aria-expanded="true"]:hover .md-chevron-icon {
    color: #fff;
}

/* Footer CTA */
.md-footer-cta {
    background: #2B5BA6;
    color: #fff;
    padding: 5rem 1.25rem;
    text-align: center;
}

.md-footer-cta h2 {
    font-size: 42px;
    margin-bottom: 1.25rem;
    font-weight: 700;
    color: #fff;
}

.md-footer-cta p {
    font-size: 20px;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    line-height: 1.6;
    color: #fff;
}

/* Footer CTA Button - White on colored background */
.md-footer-cta .md-btn-primary {
    background: var(--color-accent-start) !important;
    color: #FFFFFF;
}

.md-footer-cta .md-btn-primary:hover {
    background: #f0f0f0;
    color: #2B5BA6;
}

.md-cta-features {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.25rem;
    font-size: 16px;
    opacity: 0.95;
}

/* Package Options */
.md-service-content {
    padding: 5rem 1.25rem;
    background: #fff;
}

.md-service-content h3 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 3rem;
    color: #1F2937;
    font-weight: 700;
}

.md-packages-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.md-package-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.md-package-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.md-package-card h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    color: #fff;
}

.md-package-card__price {
    font-size: 2rem;
    font-weight: 700;
    margin: 1rem 0;
}

.md-package-card__sessions {
    opacity: 0.9;
    font-size: 0.95rem;
}

/* Calendar Section */
.md-booking-section {
    background: linear-gradient(to bottom, #f7fafc, #fff);
    padding: 50px 40px;
    margin-top: 40px;
}

.md-booking-section h3 {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin: 0 0 15px 0;
}

.booking-intro {
    text-align: center;
    font-size: 1.1rem;
    color: #718096;
    margin: 0 0 40px 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

#md-booking-calendar-widget {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .md-course-hero h1,
    .md-service-hero h1 {
        font-size: 36px;
    }

    .md-course-hero p,
    .md-service-hero p {
        font-size: 18px;
    }

    .md-course-overview {
        grid-template-columns: 1fr;
    }

    .md-course-card {
        position: static;
    }

    .md-features h2,
    .md-curriculum h2,
    .md-testimonials h2,
    .md-faq h2,
    .md-course-content h2 {
        font-size: 28px;
    }

    .md-footer-cta h2 {
        font-size: 32px;
    }

    .md-footer-cta p {
        font-size: 18px;
    }

    .md-cta-features {
        flex-direction: column;
        gap: 0.625rem;
    }

    .md-stats-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .md-features-grid {
        grid-template-columns: 1fr;
    }

    .md-testimonials-grid {
        grid-template-columns: 1fr;
    }

    .md-booking-section {
        padding: 30px 20px;
    }

    .booking-intro {
        font-size: 1rem;
    }

    #md-booking-calendar-widget {
        padding: 20px 15px;
    }

    .md-packages-grid {
        grid-template-columns: 1fr;
    }

    .md-service-content {
        padding: 3rem 1.25rem;
    }

    .md-faq-list {
        gap: 16px;
    }

    .md-faq-question {
        padding: 20px 16px;
        gap: 16px;
    }

    .md-faq-icon {
        width: 48px;
        height: 48px;
        font-size: 24px;
    }

    .md-faq-question-text {
        font-size: 1.05rem;
    }

    .md-faq-toggle-icon {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 480px) {
    .md-course-hero h1,
    .md-service-hero h1 {
        font-size: 28px;
    }

    .md-stat-item h3 {
        font-size: 32px;
    }

    .md-service-content h3 {
        font-size: 24px;
    }

    .md-faq-question {
        padding: 18px 14px;
        gap: 12px;
    }

    .md-faq-icon {
        width: 44px;
        height: 44px;
        font-size: 22px;
    }

    .md-faq-answer p {
        font-size: 0.95rem;
    }
}

