* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body .pregnancy-container {
    background-color: #f9f5f7;
    color: #333;
    line-height: 1.6;
    padding: 0;
    margin: 0;
}

.pregnancy-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.pregnancy-header {
    background: linear-gradient(135deg, #f05365, #f17684, #d83253);
    color: white;
    padding: 25px;
    text-align: center;
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.pregnancy-header h1 {
    font-size: 28px;
    margin-bottom: 10px;
}

.pregnancy-header p {
    font-size: 18px;
    opacity: 0.9;
}

.week-selector {
    background-color: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.week-selector h2 {
    color: #8e44ad;
    margin-bottom: 15px;
}

.week-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.week-btn {
    background: linear-gradient(135deg, #f05365, #f17684, #d83253);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    width: 60px;
    text-align: center;
}

.week-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.week-btn.active {
    background: linear-gradient(to right, #8e44ad, #e84e7a);
    transform: scale(1.1);
}

.trimester-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.trimester-btn {
    background-color: #f1e8f6;
    color: #8e44ad;
    border: 2px solid #d7bde2;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.trimester-btn:hover {
    background-color: #e8d0ef;
}

.trimester-btn.active {
    background-color: #8e44ad;
    color: white;
    border-color: #8e44ad;
}

.week-info {
    background-color: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    display: none;
}

.week-info.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.week-title {
    color: #8e44ad;
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f1e8f6;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.info-card {
    background-color: #f9f5f7;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
}

.info-card h3 {
    color: #e84e7a;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-card h3 i {
    font-size: 20px;
}

.baby-development {
    background-color: #e8f6f3;
    border-left: 5px solid #1abc9c;
}

.mother-changes {
    background-color: #fef9e7;
    border-left: 5px solid #f1c40f;
}

.symptoms {
    background-color: #fae5e5;
    border-left: 5px solid #e74c3c;
}

.tips {
    background-color: #e8f4fd;
    border-left: 5px solid #3498db;
}

.baby-size {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 25px 0;
    padding: 20px;
    background: linear-gradient(to right, #f3e5f5, #e8d0ef);
    border-radius: 12px;
    text-align: center;
}

.size-icon {
    font-size: 50px;
    color: #8e44ad;
}

.size-info h4 {
    color: #8e44ad;
    margin-bottom: 5px;
}

.size-comparison {
    font-style: italic;
    color: #7d3c98;
}

.week-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.nav-btn {
    background: linear-gradient(to right, #e84e7a, #8e44ad);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.nav-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.nav-btn:disabled {
    background: #cccccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* وسائط متجاوبة */
@media (max-width: 768px) {
    .pregnancy-header h1 {
        font-size: 24px;
    }

    .pregnancy-header p {
        font-size: 16px;
    }

    .week-buttons {
        gap: 8px;
    }

    .week-btn {
        width: 50px;
        padding: 8px 12px;
        font-size: 14px;
    }

    .trimester-buttons {
        flex-wrap: wrap;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .baby-size {
        flex-direction: column;
        text-align: center;
    }

    .week-navigation {
        flex-direction: column;
        gap: 15px;
    }

    .nav-btn {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .pregnancy-container {
        padding: 15px;
    }

    .pregnancy-header {
        padding: 20px 15px;
    }

    .week-info {
        padding: 20px 15px;
    }

    .week-btn {
        width: 45px;
        padding: 7px 10px;
        font-size: 13px;
    }
}