/* 1. إخفاء شريط أدوات ترجمة جوجل المزعج */
.goog-te-banner-frame.skiptranslate, #goog-gt-tt, .goog-te-balloon-frame {
    display: none !important;
}

body {
    top: 0px !important;
}

/* 2. ضبط المحاذاة الذكية: عربي لليمين، وإنجليزي/دنماركي لليسار */
article, .page, .site-content, .entry-content {
    line-height: 1.8;
}

html[lang="ar"] article, 
html[lang="ar"] .entry-content, 
html[lang="ar"] .page {
    text-align: right !important;
    direction: rtl !important;
}

html:not([lang="ar"]) article, 
html:not([lang="ar"]) .entry-content, 
html:not([lang="ar"]) .page {
    text-align: left !important;
    direction: ltr !important;
}

/* 3. تنسيق رابط المصدر */
article .entry-content p a[href*="dr.dk"], 
article .entry-content p a[href*="tv2.dk"], 
article .entry-content p a[href*="bt.dk"] {
    display: inline-block !important;
    background-color: #f1f1f1 !important;
    color: #cc0000 !important;
    padding: 10px 20px !important;
    border-radius: 4px !important;
    text-decoration: none !important;
    font-weight: bold !important;
    border: 1px solid #ddd !important;
    margin-top: 15px !important;
}

/* 4. إزالة أي تظليل من جوجل */
.goog-text-highlight {
    background-color: transparent !important;
    border: none !important; 
    box-shadow: none !important;
}

/* --- 5. HIDE AD ON ENGLISH VERSION ONLY --- */
body:lang(en) .parallax-section,
body.en-US .parallax-section,
body.lang-en .parallax-section {
    display: none !important;
}

/* --- 6. MOBILE CODE (LOCKED - UNTOUCHED) --- */
@media (max-width: 768px) {
    .parallax-section {
        position: relative;
        height: 550px; 
        margin: 30px 0;
        overflow: hidden;
        clip-path: inset(0 0 0 0); 
        -webkit-clip-path: inset(0 0 0 0);
        background-color: #0082c3;
    }

    .parallax-ad-image {
        position: fixed; 
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: inherit;
        background-repeat: no-repeat;
        z-index: -1;
        pointer-events: none;
    }
    
    .parallax-section {
        height: 300px !important;
        -webkit-overflow-scrolling: touch;
    }
    
    .parallax-ad-image {
        position: fixed !important;
        height: 100vh !important;
        background-size: contain !important;
        background-position: center center !important;
    }
}

/* --- 7. DESKTOP CODE (WITH NEW IMAGE LINK) --- */
@media (min-width: 769px) {
    .single .parallax-section {
        position: relative !important;
        height: 600px !important;
        margin: 40px 0 !important;
        overflow: hidden !important;
        background-color: #0082c3 !important;
    }

    .single .parallax-ad-image {
        /* NEW PHOTO LINK APPLIED CORRECTLY HERE */
        background-image: url('https://danmark-24.com/wp-content/uploads/2026/03/1080-E.png') !important;
        background-attachment: fixed !important; 
        background-repeat: no-repeat !important;
        background-size: contain !important; 
        background-position: center 120px !important; 
        
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        z-index: 1 !important;
    }
}