﻿.page-contents {
    max-width: 800px;
    margin: 40px auto;
    padding: 30px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    font-family: "Vazirmatn", sans-serif;
    line-height: 1.8;
    color: #333;
    word-break: break-word;
}

    /* ✅ تصاویر درون محتوا */
    .page-contents img {
        display: block;
        max-width: 100%;
        max-height: 90vh;
        height: auto;
        width: auto;
        margin: 20px auto;
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        object-fit: contain;
    }

    /* ✅ پاراگراف‌ها */
    .page-contents p {
        font-size: 1.05rem;
        margin: 1em 0;
        text-align: justify;
    }

    /* ✅ تیترها */
    .page-contents h1,
    .page-contents h2,
    .page-contents h3 {
        color: #222;
        margin-top: 1.5em;
        margin-bottom: 0.8em;
        text-align: center;
    }

    /* ✅ لینک‌ها */
    .page-contents a {
        color: #0077cc;
        text-decoration: none;
    }
.page-contents .video-wrapper,
.page-contents figure.media,
.page-contents div.media {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* نسبت 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
}

.page-contents figure.media iframe,
.page-contents div.media iframe,
.page-contents .video-wrapper iframe {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    border: 0;
}
.page-contents video {
    display: block;
    max-width: 100%;
    width: 100%;
    height: auto;
    margin: 20px auto;
    border-radius: 12px;
    object-fit: contain;
}

        .page-contents a:hover {
            text-decoration: underline;
        }

    /* ✅ جداول ریسپانسیو */
    .page-contents table {
    width: 100%;
    display: block;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap; /* مانع از شکستن سلول‌ها */
    box-sizing: border-box;
}

    /* ✅ سلول‌ها */
    .page-contents th,
    .page-contents td {
        border: 1px solid #ddd;
        padding: 12px 16px;
        text-align: left;
        vertical-align: middle;
    }


    /* ✅ سرستون */
    .page-contents th {
        background-color: #f8f9fa;
        font-weight: 600;
    }

    /* ✅ ردیف‌های زیگزاگی برای خوانایی */
    .page-contents tr:nth-child(even) {
        background-color: #fafafa;
    }

/* ✅ واکنش‌گرا در موبایل */
@media (max-width: 600px) {
    .page-contents table {
        font-size: 0.9rem;
    }

    .page-contents th,
    .page-contents td {
        padding: 8px 10px;
    }
}

.pretty-box {
    border-radius: 18px; /* گوشه‌های گردتر */
    box-shadow: 0 10px 25px rgba(0,0,0,0.08), 0 4px 10px rgba(0,0,0,0.05); /* شادوی نرم و ملایم */
    transition: 0.25s ease;
}
