@font-face {
    font-family: 'itfQomra';
    src: url('../fonts/itfQomraArabic-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'itfQomra', sans-serif;
}

body {
    height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    overflow: hidden; /* يمنع التمرير الغريب في الصور */
}

/* --- الهيدر (حل مشكلة التداخل) --- */
.navbar {
    background-color: #012523;
    padding: 15px 5%;
    width: 100%;
    z-index: 2000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.main-logo { height: 60px; object-fit: contain; }
.nav-text { color: #ffffff; font-weight: bold; font-size: 1.3rem; }

/* --- المحتوى (ملء الفراغ الكامل) --- */
.content-wrapper {
    flex: 1;
    display: flex;
    position: relative;
    width: 100%;
    overflow: hidden;
}

.image-side {
    width: 65%;
    height: 100%;
    position: relative;
    background-color: #000;
}

.text-side {
    width: 35%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    font-size: clamp(1.2rem, 2.2vw, 2.2rem);
    color: #012523;
    font-weight: bold;
    text-align: center;
    background: #fff;
    z-index: 10;
}

/* --- الفوتر --- */
.main-footer {
    padding: 10px;
    background: #fff;
    border-top: 1px solid #eee;
    z-index: 2000;
}

.footer-content {
    text-align: center;
    color: #012523;
    font-size: 0.85rem;
}

/* --- حل الموبايل النهائي (لا تداخل بعد اليوم) --- */
@media (max-width: 992px) {
    .navbar {
        height: auto;
        padding: 20px 10px;
    }

    .nav-container {
        flex-direction: column; /* اللوجو فوق النص */
        gap: 10px;
    }

    .nav-text {
        text-align: center;
        font-size: 0.95rem; /* تصغير طفيف للنص لمنع خروجه من الإطار */
        width: 100%;
    }

    .content-wrapper {
        flex-direction: column;
    }

    .image-side {
        width: 100%;
        height: 60vh; /* الصورة تأخذ 60% من ارتفاع الشاشة */
    }

    .text-side {
        width: 100%;
        height: auto;
        flex: 1; /* النص يأخذ باقي المساحة المتاحة */
        padding: 20px;
        font-size: 1.4rem;
    }
}

/* البازل */
.puzzle-piece {
    position: absolute;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.5s ease;
    background-size: cover;
}
.puzzle-piece.show { opacity: 1; }
.dud { color: #757575; opacity: 0.5; }