/* ─── Medical Cards Single Package Detail Styles ────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@300;400;500;600;700&display=swap');

.mc-single-package-wrapper {
    font-family: 'Inter', sans-serif;
    color: #334155;
    background-color: #f8fafc;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

.mc-single-package-wrapper *,
.mc-single-package-wrapper *::before,
.mc-single-package-wrapper *::after {
    box-sizing: border-box;
}

.mc-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ─── Hero Section ──────────────────────────────────────────────────────── */
.mc-package-hero {
    background: linear-gradient(135deg, var(--mc-color-primary, #0d2137) 0%, rgba(var(--mc-color-primary-rgb, 13, 33, 55), 0.9) 100%);
    color: #ffffff;
    padding: 60px 0;
    border-bottom: 4px solid var(--mc-color-gold, #c8a84b);
}

.mc-hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}

.mc-hero-breadcrumbs {
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 20px;
}

.mc-hero-breadcrumbs a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s ease;
}

.mc-hero-breadcrumbs a:hover {
    color: #ffffff;
}

.mc-curr-breadcrumb {
    color: #ffffff;
}

.mc-package-title {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    font-weight: 700;
    margin: 0 0 12px 0;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.mc-package-subtitle {
    font-size: 18px;
    color: #e2e8f0;
    margin: 0 0 24px 0;
    font-weight: 400;
    max-width: 650px;
}

.mc-package-meta-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.mc-meta-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: #f1f5f9;
}

.mc-meta-badge .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    line-height: 1;
}

.mc-badge-time {
    border-color: rgba(var(--mc-color-gold-rgb, 200, 168, 75), 0.4);
    background: rgba(var(--mc-color-gold-rgb, 200, 168, 75), 0.15);
    color: #fef08a;
}

.mc-price-cta-block {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.mc-hero-price {
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.mc-price-val {
    font-size: 38px;
    font-weight: 800;
    color: #ffffff;
}

.mc-price-sub {
    font-size: 14px;
    color: #cbd5e1;
}

.mc-hero-image-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
    border: 3px solid rgba(255, 255, 255, 0.1);
}

.mc-hero-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 350px;
}

/* ─── Layout Grid ───────────────────────────────────────────────────────── */
.mc-main-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 40px;
    padding-bottom: 60px;
}

/* Centered single column details layout */
.mc-single-column-layout {
    max-width: 900px !important;
    margin: 0 auto;
}

/* ─── Document Card Layout ──────────────────────────────────────────────── */
.mc-document-card {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.02);
    border: 1px solid #e2e8f0;
    padding: 40px;
}

/* Stacked Display */
.mc-document-card[data-current-mode="stacked"] .mc-doc-section {
    display: block;
    border-bottom: 2px dashed #f1f5f9;
    padding-bottom: 40px;
    margin-bottom: 40px;
}

.mc-document-card[data-current-mode="stacked"] .mc-doc-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.mc-doc-header {
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 20px;
    margin-bottom: 25px;
}

.mc-doc-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    color: var(--mc-color-primary, #0d2137);
    margin: 0 0 8px 0;
}

.mc-doc-section-desc {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}

.mc-doc-meta-bar {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #94a3b8;
    background: #f8fafc;
    padding: 8px 12px;
    border-radius: 6px;
    margin-top: 10px;
}

/* ─── Word Document / Rich Text Styles ──────────────────────────────────── */
.word-doc-style h2,
.word-doc-style h3,
.word-doc-style h4 {
    font-family: 'Playfair Display', serif;
    color: var(--mc-color-primary, #0d2137);
    margin-top: 30px;
    margin-bottom: 15px;
}

.word-doc-style h2 { font-size: 22px; border-bottom: 1px solid #e2e8f0; padding-bottom: 6px; }
.word-doc-style h3 { font-size: 18px; }

.word-doc-style p {
    font-size: 15px;
    color: #475569;
    line-height: 1.7;
    margin-bottom: 18px;
}

.word-doc-style ul,
.word-doc-style ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.word-doc-style li {
    font-size: 15px;
    color: #475569;
    margin-bottom: 8px;
    line-height: 1.6;
}

.word-doc-style strong {
    color: #0f172a;
}

/* ─── Styled Included Tests Table ───────────────────────────────────────── */
.mc-tests-styled-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    margin-top: 10px;
}

.mc-tests-styled-table th {
    background: #f8fafc;
    color: var(--mc-color-primary, #0d2137);
    font-weight: 700;
    padding: 14px 18px;
    text-align: left;
    border-bottom: 2px solid #e2e8f0;
    font-size: 14px;
}

.mc-tests-styled-table td {
    padding: 16px 18px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: top;
    line-height: 1.5;
}

.mc-tests-styled-table tr:last-child td {
    border-bottom: none;
}

.mc-test-name {
    width: 35%;
    color: var(--mc-color-primary, #0d2137);
}

.mc-test-desc {
    width: 65%;
    color: #475569;
}

.mc-tests-styled-table tr:hover td {
    background-color: #fafbfd;
}

/* ─── Preparation Instructions Elements ─────────────────────────────────── */
.mc-prep-alert-box {
    display: flex;
    gap: 12px;
    background: #fffbeb;
    border-left: 4px solid #f59e0b;
    padding: 16px;
    border-radius: 4px;
    margin-bottom: 25px;
    align-items: flex-start;
}

.mc-prep-alert-box .dashicons {
    color: #d97706;
    font-size: 20px;
    width: 20px;
    height: 20px;
    margin-top: 2px;
}

.mc-prep-alert-box p {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    color: #b45309;
}

/* ─── FAQ Accordion Styles (Used via [medical_faqs] Shortcode) ────────── */
.mc-faqs-accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 15px;
    margin-bottom: 15px;
}

.mc-faq-item {
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
    background: #ffffff;
    transition: border-color 0.2s ease;
}

.mc-faq-item:hover {
    border-color: #cbd5e1;
}

.mc-faq-question {
    width: 100%;
    padding: 16px 20px;
    text-align: left;
    font-size: 15px;
    font-weight: 600;
    color: var(--mc-color-primary, #0d2137);
    background: #ffffff;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.mc-faq-icon {
    position: relative;
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

.mc-faq-icon::before,
.mc-faq-icon::after {
    content: '';
    position: absolute;
    background-color: #64748b;
    transition: transform 0.3s ease;
}

/* Horizontal line */
.mc-faq-icon::before {
    top: 5px;
    left: 0;
    width: 12px;
    height: 2px;
}

/* Vertical line */
.mc-faq-icon::after {
    top: 0;
    left: 5px;
    width: 2px;
    height: 12px;
}

.mc-faq-question.active .mc-faq-icon::after {
    transform: rotate(90deg);
    opacity: 0;
}

.mc-faq-question.active .mc-faq-icon::before {
    transform: rotate(180deg);
}

.mc-faq-answer {
    padding: 0 20px;
    display: none;
    border-top: 1px solid #f1f5f9;
    background: #f8fafc;
}

.mc-faq-answer p {
    font-size: 14.5px;
    color: #475569;
    line-height: 1.6;
    margin: 15px 0;
}

.mc-no-faqs-msg {
    font-size: 14px;
    color: #94a3b8;
    text-align: center;
    padding: 20px 0;
}

/* ─── Responsive Details ────────────────────────────────────────────────── */
@media (max-width: 991px) {
    .mc-hero-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .mc-hero-image-wrapper {
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .mc-package-hero {
        padding: 40px 0;
    }
    .mc-package-title {
        font-size: 32px;
    }
    .mc-document-card {
        padding: 20px;
    }
    .mc-tests-styled-table {
        display: block;
        overflow-x: auto;
    }
}

/* ─── WhatsApp Button – Single Package Hero ─────────────────────────────── */
.mc-price-cta-block {
    flex-direction: column;
    align-items: flex-start;
}

.mc-btn-whatsapp-hero {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #25D366;
    color: #ffffff !important;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    text-decoration: none !important;
    padding: 14px 26px;
    border-radius: 6px;
    margin-top: 20px;
    position: relative;
    transition: background-color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
    overflow: hidden;
}

.mc-btn-whatsapp-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.12);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.mc-btn-whatsapp-hero:hover {
    background: #1ebe5d;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
}

.mc-btn-whatsapp-hero:hover::before {
    opacity: 1;
}

.mc-btn-whatsapp-hero:active {
    transform: translateY(0);
    box-shadow: none;
}

.mc-btn-whatsapp-hero .mc-whatsapp-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

@media (max-width: 600px) {
    .mc-btn-whatsapp-hero {
        width: 100%;
        justify-content: center;
        font-size: 12px;
        padding: 13px 18px;
        white-space: normal;
        text-align: center;
    }
}

/* ─── RTL Support (Arabic / Right-to-Left) ───────────────────────────── */
html[dir="rtl"] .mc-single-package-wrapper, body.rtl .mc-single-package-wrapper { direction: rtl !important; text-align: right !important; }
html[dir="rtl"] .word-doc-style ul, body.rtl .word-doc-style ul,
html[dir="rtl"] .word-doc-style ol, body.rtl .word-doc-style ol {
    padding-left: 0;
    padding-right: 20px;
}
html[dir="rtl"] .mc-prep-alert-box, body.rtl .mc-prep-alert-box {
    border-left: none;
    border-right: 4px solid #f59e0b;
}
html[dir="rtl"] .mc-faq-question, body.rtl .mc-faq-question {
    text-align: right;
}
html[dir="rtl"] .mc-tests-styled-table th, body.rtl .mc-tests-styled-table th {
    text-align: right;
}
html[dir="rtl"] .mc-document-card, body.rtl .mc-document-card {
    text-align: right;
}
