/* ================================
   Healthcare Page Styles
   Base styles inherited from magnesium.css
   Adapted with a fresh green/cyan palette
 ================================ */

/* Main */
.mg-main {
    padding-top: var(--header-height);
}

/* ================================
   Hero Section
 ================================ */
.mg-hero {
    background: linear-gradient(135deg, #f0fff4 0%, #e6fffa 100%);
    padding: var(--space-3xl) 0;
    text-align: center;
    border-bottom: 1px solid #c6f6d5;
}

.mg-hero-content {
    max-width: 700px;
    margin: 0 auto;
}

.mg-hero-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #2f855a;
    background: rgba(72, 187, 120, 0.15);
    padding: 0.3rem 1rem;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-md);
}

.mg-hero-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: #22543d;
    margin-bottom: var(--space-md);
    line-height: 1.3;
}

.mg-hero-subtitle {
    color: #2d3748;
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    line-height: 1.8;
    margin-bottom: var(--space-xl);
}

.mg-hero-badges {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.mg-badge {
    padding: var(--space-xs) var(--space-md);
    background: white;
    border: 1px solid #c6f6d5;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 500;
    color: #2f855a;
    box-shadow: 0 2px 8px rgba(39, 103, 73, 0.08);
}

/* ================================
   Recipes Section
 ================================ */
.mg-recipes {
    padding: var(--space-2xl) 0 var(--space-3xl);
    background: #f7fafc;
}

.mg-section-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: var(--space-md);
}

.mg-section-title.centered {
    text-align: center;
}

.mg-section-subtitle {
    text-align: center;
    color: #4a5568;
    margin-bottom: var(--space-2xl);
    font-size: 0.95rem;
}

/* Servings Panel */
.mg-servings-panel {
    display: flex;
    justify-content: center;
    margin-bottom: var(--space-2xl);
    position: sticky;
    top: calc(var(--header-height) + 10px);
    z-index: 100;
}

.mg-servings-inner {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    background: white;
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-full);
    box-shadow: 0 4px 15px rgba(34, 84, 61, 0.1);
    border: 1px solid #e2e8f0;
}

.mg-servings-label {
    font-weight: 700;
    font-size: 0.9rem;
    color: #22543d;
}

.mg-servings-inner .number-btn {
    background: #f0fff4;
    color: #2f855a;
}

.mg-recipe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
}

/* Recipe Card */
.mg-recipe-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    border-top: 3px solid #68d391;
    display: flex;
    flex-direction: column;
    transition: var(--transition-normal);
}

.mg-recipe-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(34, 84, 61, 0.12);
}

.mg-recipe-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-md);
}

.mg-recipe-emoji {
    font-size: 2.5rem;
}

.mg-recipe-tag {
    font-size: 0.7rem;
    padding: 2px 10px;
    background: #f0fff4;
    border-radius: var(--radius-full);
    color: #2f855a;
    font-weight: 600;
    border: 1px solid #c6f6d5;
}

.mg-recipe-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: var(--space-sm);
}

.mg-recipe-desc {
    color: #4a5568;
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: var(--space-md);
    flex-grow: 1;
}

/* Recipe Detail */
.mg-recipe-detail {
    display: none;
    margin-bottom: var(--space-md);
    border-top: 1px solid #edf2f7;
    padding-top: var(--space-md);
}

.mg-recipe-detail.open {
    display: block;
}

.mg-detail-heading {
    font-size: 0.9rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: var(--space-sm);
}

.mg-ingredient-list li {
    display: flex;
    justify-content: space-between;
    padding: var(--space-xs) 0;
    border-bottom: 1px solid #f7fafc;
    color: #4a5568;
    font-size: 0.9rem;
}

.mg-steps-list li {
    color: #4a5568;
    font-size: 0.9rem;
    padding: var(--space-xs) 0;
    line-height: 1.6;
}

/* Toggle Button */
.mg-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    width: 100%;
    padding: var(--space-sm);
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
    color: #4a5568;
    cursor: pointer;
    transition: var(--transition-normal);
    margin-top: auto;
}

.mg-toggle-btn:hover {
    background: #f0fff4;
    color: #2f855a;
    border-color: #68d391;
}

/* ================================
   Schedule Section
 ================================ */
.mg-schedule {
    padding: var(--space-3xl) 0;
}

.mg-schedule-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.06);
    max-width: 800px;
    margin: 0 auto;
    border-top: 5px solid #38b2ac;
}

.mg-schedule-table-wrapper {
    overflow-x: auto;
    margin-top: var(--space-xl);
    border-radius: var(--radius-lg);
    border: 1px solid #e2e8f0;
}

.mg-schedule-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.mg-schedule-table th,
.mg-schedule-table td {
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid #edf2f7;
}

.mg-schedule-table th {
    background: #e6fffa;
    color: #234e52;
    font-weight: 700;
    font-size: 0.9rem;
}

.mg-schedule-table tr:last-child td {
    border-bottom: none;
}

.mg-schedule-table tr:hover {
    background: #f0fff4;
}

.mg-schedule-table td:first-child {
    color: #319795;
    font-weight: 600;
    width: 30%;
}

.mg-schedule-table td:last-child {
    color: #4a5568;
}

/* ================================
   Safety Guide Section
 ================================ */
.mg-guide {
    padding: var(--space-2xl) 0 var(--space-3xl);
}

.mg-guide-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    max-width: 800px;
    margin: 0 auto;
}

.mg-guide-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
}

.mg-guide-ok {
    background: #f0fff4;
    border: 1px solid #c6f6d5;
}

.mg-guide-caution {
    background: #fff5f5;
    border: 1px solid #feb2b2;
}

.mg-guide-heading {
    font-size: 1rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: var(--space-md);
}

.mg-guide-list li {
    font-size: 0.9rem;
    color: #4a5568;
    padding: var(--space-xs) 0 var(--space-xs) var(--space-sm);
    border-left: 2px solid #cbd5e1;
    margin-bottom: var(--space-xs);
    line-height: 1.6;
}

.mg-tips-box {
    margin-top: var(--space-xl);
    padding: var(--space-lg);
    background: #ebf8ff;
    border-radius: var(--radius-md);
    border: 1px solid #bee3f8;
}

/* ================================
   CTA Section
 ================================ */
.mg-cta-section {
    padding-bottom: var(--space-3xl);
}

.mg-card-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    max-width: 800px;
    margin: 0 auto;
}

.mg-cta-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.mg-cta-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.mg-cta-text {
    font-size: 0.85rem;
    color: #4a5568;
    margin-bottom: var(--space-md);
}

.mg-cta-btn {
    display: block;
    width: 100%;
    padding: var(--space-sm);
    background: #38b2ac;
    color: white;
    text-decoration: none;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition-normal);
}

.mg-cta-btn:hover {
    background: #2c7a7b;
    transform: translateY(-2px);
}

.mg-cta-btn.secondary {
    background: #64748b;
}

.mg-cta-btn.secondary:hover {
    background: #475569;
}

/* ================================
   Responsive
 ================================ */
@media (max-width: 768px) {

    .mg-guide-grid,
    .mg-card-group {
        grid-template-columns: 1fr;
    }
}