@media (max-width:767px) {
    nav.menu-h-container {
        display:none;
        position:absolute;
        line-height:1.9;
        top:100%;
        right:0;
        width:100%;
        background:var(--primary);
        z-index:99;
        flex:unset
    }
    nav.menu-h-container ul {
        display:flex;
        flex-direction:column;
        align-items:center;
        padding-left:0
    }
    nav.menu-h-container.open {
        display:block
    }
}
@media (min-width:768px) {
    .menu-toggle {
        display:none!important
    }
    .nav-wrapper .header-nav {
        display:flex!important;
        gap:1rem
    }
}
@media (min-width:767px) {
    .posts.grid6 .posts-inner {
        display:grid;
        grid-template-columns:2fr 1fr;
        gap:10px
    }
    .posts.grid6 .post:first-child {
        grid-column:1;
        grid-row:1/span 2;
        min-height:100%;
        position:relative
    }
    .posts.grid6 .post:first-child .post-thumb {
        position:absolute;
        inset:0;
        background-size:cover;
        background-position:center
    }
}
@media (max-width:768px) {
    .posts.grid6 .posts-inner {
        display:none!important
    }
}

/* Mobile صغير */
@media (max-width:480px) {
  .adsense-unit {
    width: 300px;
    max-width: 100%;
    min-height: 250px;
    height: auto !important;
    overflow: visible !important;
  }
}

/* Mobile / Tablet */
@media (min-width:481px) and (max-width:768px) {
  .adsense-unit {
    width: 336px;
    max-width: 100%;
    min-height: 280px;
    height: auto !important;
    overflow: visible !important;
  }
}

/* Desktop */
@media (min-width:769px) {
  .adsense-unit {
    width: 100%;
    min-height: 280px;
    height: auto !important;
    overflow: visible !important;
  }
}
@media (min-width:992px) {
    .d-lg-block {
        display:block!important
    }
    .d-lg-none {
        display:none!important
    }
}
@media(max-width:768px) {
    .site-logo img {
        width:130px
    }
}
@media (max-width:575px) {
    body.simple-mode .posts .post.style2 .post-link,body.simple-mode .posts .post.style3 .post-link {
        flex-direction:row;
        gap:15px
    }
    body.simple-mode .posts .post.style2 .title,body.simple-mode .posts .post.style3 .title {
        margin:10px;
        height:var(--style1-height);
        overflow:hidden
    }
    body.simple-mode .posts .post.style2 .post-thumb,body.simple-mode .posts .post.style3 .post-thumb {
        flex-shrink:0;
        width:40%;
        order:1
    }
    .scroll-posts .widget-content {
        display:flex!important;
        margin:-5px;
        white-space:nowrap;
        overflow-x:auto;
        overflow-y:hidden
    }
    .scroll-posts .widget-content .post {
        white-space:initial
    }
    .scroll-posts .widget-content .posts-inner {
        display:flex!important;
        padding:5px
    }
}
@media (min-width:769px) {
    .show-desktop {
        display:block!important
    }
    .hide-desktop {
        display:none!important
    }
}
@media (max-width:768px) {
    .show-mobile {
        display:block!important
    }
    .hide-mobile {
        display:none!important
    }
    p.related_links {
        font-size:15px;
        padding:8px 12px
    }
}

@media (min-width:1200px) {
    .sw-posts-grid {
        grid-template-columns:repeat(3,1fr)
    }
}
@media (max-width:991px) {
    .sw-posts-grid {
        grid-template-columns:repeat(2,1fr)
    }
}
@media (max-width:600px) {
    .tags-label {
        font-size:13px
    }
    .post-tags-inner a {
        font-size:12px;
        padding:5px 10px
    }
    .author-inner {
        flex-direction:column;
        align-items:center;
        text-align:center
    }
    .author-avatar-inner img {
        margin-bottom:10px
    }
    .sw-posts-grid {
        grid-template-columns:1fr
    }
}
@media (max-width:600px) {
    .footer-nav {
        flex-direction:column;
        align-items:center
    }
}
@media (max-width:768px) {
    .search-popup-btn {
        display:flex!important;
        position:relative;
        z-index:9999
    }
}
@media (min-width:900px) {
    .post-content .table-wrap {
        overflow-x:auto
    }
    .post-content table thead th {
        position:sticky;
        top:0;
        z-index:3
    }
}
@media (max-width: 680px) {

  .post-content table {
    width: 100%;
    border-collapse: collapse;
    display: block;
    overflow-x: auto;
  }

  .post-content thead {
    display: none;
  }

  .post-content tr {
    display: block;
    margin-bottom: 1rem;
    padding: 12px;
    border-radius: 10px;
    background: var(--table-bg, #ffffff);
    box-shadow: 0 6px 18px rgba(0,0,0,.05);
  }

  body.dark .post-content tr {
    background: #0f172a;
  }

  .post-content td {
    display: block;
    padding: 8px 0;
    border: none;
    border-bottom: 1px dashed rgba(0,0,0,.08);
    text-align: right;
    word-break: break-word;
  }

  .post-content td:last-child {
    border-bottom: none;
  }

  /* label آمن */
  .post-content td::before {
    content: attr(data-label);
    display: block;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--muted, #666);
  }

  body.dark .post-content td::before {
    color: #9ca3af;
  }

  /* حماية الإعلانات */
  .post-content td iframe,
  .post-content td ins,
  .post-content td .adsbygoogle {
    max-width: 100% !important;
    overflow: hidden !important;
  }
}

@media(max-width:768px) {
    figure[style],.post-image-inner,.wp-caption {
        width:100%!important;
        max-width:100%!important;
        padding-inline:.5rem
    }
}


