*{
    margin:0;
    padding:0;
    }
    /*تصميم جسم body*/
    #bo22{
    background-color: #000000;
    }
    #main1{
    text-align: center;
    }
    /*قسم العنوان*/
    #hader_0{
    border-bottom: solid 2px #ffffff34;
    }
    /*قسم الهويات */
    #main2{
    text-align: center;
    }
    #main3{
    text-align: center;
    margin-top: 30px;
    }
    #img_01{
    width:300px;
    height:300px;
    margin-top:20px;
    border: solid 5px #005834;
    border-radius: 5px;
    margin-right: 10px;
    animation-name: bored;
    animation-duration: 2s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
    animation-delay: 1s;
    animation-direction: alternate;
    }
    #img_02{
    width:300px;
    height:300px;
    margin-top:20px;
    border: solid 5px #005834;
    border-radius: 5px;
    margin-right: 10px;
    animation-name: bored;
    animation-duration: 2s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
    animation-delay: 1s;
    animation-direction: alternate;
    }
    #img_03{
    width:300px;
    height:300px;
    margin-top:20px;
    border: solid 5px #005834;
    border-radius: 5px;
    margin-right: 10px;
    animation-name: bored;
    animation-duration: 2s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
    animation-delay: 1s;
    animation-direction: alternate;
    }
    #img_05{
    width:300px;
    height:300px;
    margin-top:20px;
    border: solid 5px #005834;
    border-radius: 5px;
    margin-right: 10px;
    animation-name: bored;
    animation-duration: 2s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
    animation-delay: 1s;
    animation-direction: alternate;
    }
    #img_06{
    width:300px;
    height:300px;
    margin-top:20px;
    border: solid 5px #005834;
    border-radius: 5px;
    margin-right: 10px;
    animation-name: bored;
    animation-duration: 2s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
    animation-delay: 1s;
    animation-direction: alternate;
    }#img_07{
    width:300px;
    height:300px;
    margin-top:20px;
    border: solid 5px #005834;
    border-radius: 5px;
    margin-right: 10px;
    animation-name: bored;
    animation-duration: 2s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
    animation-delay: 1s;
    animation-direction: alternate;
    }
    @keyframes bored{
    from{border: solid 5px #005834;}
    to{border: solid 5px #00ce78;}
    }
    #lab_1:hover{
    background-color: #212529;
    transition:0.8s;
    border: none;
    }
    #but_01:hover{
        background-color: #212529;
    transition:0.8s;
    border: none;
    }
    #btnGroupDrop1:hover{
        background-color: #212529;
    transition:0.8s;
    }
    #a_01:hover{
    background-color: #212529;
     transition:0.5s;
     border-radius: 10px;
    }
    #i_01:hover{
    color: #212529;
    transition:0.5s;
    }
    #a_02{
    color: white;
    text-decoration: none;
    }
    #a_02:hover{
    color: #212529;
    transition:0.5s;
    }
    #p_01{
    margin-left: 30%;
    width: 40%;
    margin-top: 10px;
    }
    #a_03:hover{
    background-color:  #212529;
    transition:0.5s;
    }
    footer {
        background-color: #000; /* لون أسود */
        color: #fff; /* لون نص أبيض */
        position: relative;
        top: 200px;
        padding: 30px;
        border-top: solid 2px rgba(255, 255, 255, 0.205);
    }
    
    .container {
        max-width: 1200px;
        margin: 0 auto;
    }
    
    .row {
        display: flex;
        justify-content: space-between;
    }
    
    .col {
        flex: 1;
    }
    
    .col h3 {
        color: #fff;
        margin-bottom: 20px;
    }
    
    .social-icons li {
        display: inline-block;
        margin-right: 10px;
    }
    
    .social-icons a {
        color: #fff;
        font-size: 24px;
    }
    
    .copyright {
        text-align: center;
        margin-top: 20px;
    }
@media print {
    /* --- إعدادات هوامش الصفحة بالكامل --- */
    @page {
        margin: 0; /* تعيين جميع هوامش الصفحة إلى صفر لإزالة الهوامش البيضاء */
    }

    /* --- إخفاء العناصر غير المرغوب فيها عند الطباعة --- */
    #main3,
    #bored,
    #hader_0,
    #formFile1,
    #but_01,
    #lab_1,
    #footer,
    #p_01 {
        display: none;
    }

    /* --- إعدادات العناصر الحاوية الرئيسية (الصفحات) --- */
    #main1 {
        width: 100%;
        height: auto;
        min-height: 277mm;
        /* إذا كانت #main1 تحتوي على الكثير من المحتوى،
           قد تضطر لضبط page-break-after: always; عليها
           إذا أردت أن تبدأ #main2 دائمًا في صفحة جديدة تمامًا بعدها. */
    }

    #main2 {
        width: 100%;
        height: auto;
        min-height: 277mm; /* نحافظ على ارتفاع أدنى */
        page-break-before: always; /* **مهم:** تبدأ #main2 في صفحة جديدة (أي الصفحة الثانية) */
        position: relative; /* **مهم:** لتكون نقطة مرجعية لـ #img_07 عند استخدام position: absolute; */
    }

    /* --- إعدادات الصور --- */

    /* #img_01: تطفو لليمين (ضمن الصفحة الأولى) */
    #img_01 {
        width: 330px;
        height: 425px;
        float: right;
        border: none;
        animation: none;
        margin-top: 10px;
        margin-right: 10px;
        display: block;
    }

    /* #img_02: تطفو لليسار (ضمن الصفحة الأولى) */
    #img_02 {
        width: 230px;
        height: 1105px;
        border: none;
        animation: none;
        margin-top: 10px;
        margin-right: 0;
        margin-left: 10px;
        float: left;
        display: block;
    }

    /* #img_03: تطفو لليمين (ضمن الصفحة الأولى) */
    #img_03 {
        width: 375px;
        height: 230px;
        float: right;
        border: none;
        animation: none;
        margin-top: 10px;
        margin-right: 10px;
        display: block;
    }

    /* #img_05: تطفو لليسار (ضمن الصفحة الأولى) */
    #img_05 {
        width: 330px;
        height: 425px;
        float: left;
        border: none;
        animation: none;
        margin-top: 10px;
        margin-left: 10px;
        display: block;
    }

    /* #img_06: تطفو لليمين (ضمن الصفحة الأولى) */
    #img_06 {
        width: 375px;
        height: 230px;
        float: right;
        border: none;
        animation: none;
        margin-top: 10px;
        margin-left: 10px;
        display: block;
    }

    /* #img_07: الصورة الأخيرة في أسفل الورقة الثانية */
    #img_07 {
        /*
         * بما أننا نريدها في أسفل الصفحة التي تبدأ بـ #main2،
         * و #main2 الآن لديها position: relative;، فإن #img_07
         * ستتموضع بالنسبة لـ #main2.
         * يجب أن تكون #img_07 داخل #main2 في HTML لتطبيق هذا.
         */
        position: absolute; /* تحديد الموضع المطلق بالنسبة لـ #main2 */
        bottom: -70px; /* وضعها 10 بكسل من أسفل العنصر الأب (#main2) */
        left: 50%; /* لتمركزها أفقيًا */
        transform: translateX(-50%); /* إزاحة لمنتصف العنصر نفسه */
        margin: 0; /* إلغاء أي هوامش سابقة */

        width: 98%;
        height: 550px;
        border: none;
        animation: none;
    }
}