/* ==========================================================================
   1. RESET, BASE, AND LANGUAGES (ARABIC/ENGLISH)
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #000000;
    font-family: 'Almarai', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 2.2;
    text-align: center;
}

.article-full ul, .content-area ul {
    list-style-position: inside;
    text-align: center;
}

#wpadminbar {
    z-index: 99999 !important;
    position: fixed !important;
    top: 0;
    width: 100%;
}

html {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.small-break {
    display: block;
    height: 15px;
}

/* ==========================================================================
   2. TYPOGRAPHY & FONTS
   ========================================================================== */
@font-face { 
    font-family: 'Almarai'; 
    src: url('../fonts/Almarai-Light.woff2') format('woff2'); 
    font-weight: 300; 
    font-style: normal; 
    font-display: swap; 
}
@font-face { 
    font-family: 'Almarai'; 
    src: url('../fonts/Almarai-Regular.woff2') format('woff2'); 
    font-weight: 400; 
    font-style: normal; 
    font-display: swap; 
}
@font-face { 
    font-family: 'Almarai'; 
    src: url('../fonts/Almarai-Bold.woff2') format('woff2'); 
    font-weight: 700; 
    font-style: normal; 
    font-display: swap; 
}
@font-face { 
    font-family: 'Almarai'; 
    src: url('../fonts/Almarai-ExtraBold.woff2') format('woff2'); 
    font-weight: 800; 
    font-style: normal; 
    font-display: swap; 
}

@font-face { 
    font-family: 'Cairo'; 
    src: url('../fonts/Cairo-ExtraLight.woff2') format('woff2'); 
    font-weight: 200; 
    font-style: normal; 
    font-display: swap; 
}
@font-face { 
    font-family: 'Cairo'; 
    src: url('../fonts/Cairo-Light.woff2') format('woff2'); 
    font-weight: 300; 
    font-style: normal; 
    font-display: swap; 
}
@font-face { 
    font-family: 'Cairo'; 
    src: url('../fonts/Cairo-Regular.woff2') format('woff2'); 
    font-weight: 400; 
    font-style: normal; 
    font-display: swap; 
}
@font-face { 
    font-family: 'Cairo'; 
    src: url('../fonts/Cairo-Medium.woff2') format('woff2'); 
    font-weight: 500; 
    font-style: normal; 
    font-display: swap; 
}
@font-face { 
    font-family: 'Cairo'; 
    src: url('../fonts/Cairo-SemiBold.woff2') format('woff2'); 
    font-weight: 600; 
    font-style: normal; 
    font-display: swap; 
}
@font-face { 
    font-family: 'Cairo'; 
    src: url('../fonts/Cairo-Bold.woff2') format('woff2'); 
    font-weight: 700; 
    font-style: normal; 
    font-display: swap; 
}
@font-face { 
    font-family: 'Cairo'; 
    src: url('../fonts/Cairo-ExtraBold.woff2') format('woff2'); 
    font-weight: 800; 
    font-style: normal; 
    font-display: swap; 
}
@font-face { 
    font-family: 'Cairo'; 
    src: url('../fonts/Cairo-Black.woff2') format('woff2'); 
    font-weight: 900; 
    font-style: normal; 
    font-display: swap; 
}

p {
    display: block;
    margin-block-start: 2em;
    margin-block-end: 2em;
    margin-inline-start: 2px;
    margin-inline-end: 2px;
    unicode-bidi: isolate;
}

h1 .the-subtitle, 
h1, h2, h3, h4, h5, h6, 
.the-subtitle {
    line-height: 1.5;
    font-weight: 600;
    margin-top: 24px;
    margin-bottom: 16px;
}

h1 { font-size: 41px; font-weight: 700; }
h2 { font-size: 27px; }
h3 { font-size: 23px; }
h4, .the-subtitle { font-size: 17px; }
h5 { font-size: 13px; }
h6 { font-size: 12px; }

/* ==========================================================================
   3. HEADER & NAVIGATION (ARABIC & ENGLISH)
   ========================================================================== */
#theme-header, 
#eng-theme-header {
    background: #000000 !important;
    padding: 20px 0;
    width: 100%;
    position: relative;
    z-index: 1000;
}

#theme-header3 {
    background: linear-gradient(to right, #FFD700, #FFA500) !important;
    padding: 20px 0;
    width: 100%;
    position: relative;
    z-index: 1000;
}

body.lang-ar #theme-header, 
body.lang-ar #eng-theme-header {
    direction: rtl;
}

body.lang-en #theme-header, 
body.lang-en #eng-theme-header {
    direction: ltr;
}

#header-menu, 
#eng-header-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    background-color: black;
    padding: 10px 0;
    list-style: none;
    margin: 0;
}

#header-menu li, 
#eng-header-menu li {
    position: relative;
    margin: 0;
}

/* حل مشكلة لون المنيو المخفي */
#header-menu a, 
#eng-header-menu a {
    text-decoration: none;
    color: white; /* تم التعديل إلى أبيض */
    font-family: 'Cairo', sans-serif;
    font-weight: 700 !important;
    font-size: 16px;
    padding: 10px 20px;
    display: inline-block;
    transition: color 0.3s ease, background-color 0.3s ease;
    text-align: center;
}

/* فونت المنيو الإنجليزي */
#eng-header-menu a {
    font-family: 'Roboto', 'Cairo', sans-serif !important;
}

#header-menu a:hover, 
#eng-header-menu a:hover {
    background-color: #FFA500;
    color: black;
}

#header-menu ul, 
#eng-header-menu ul {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #FFA500;
    padding: 10px 0;
    display: none;
    list-style: none;
    margin: 0;
    z-index: 1000;
    width: 200px;
    text-align: center;
}

#header-menu ul a, 
#eng-header-menu ul a {
    padding: 10px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease;
}

#header-menu ul a:hover, 
#eng-header-menu ul a:hover {
    background-color: black;
    color: white;
}

#header-menu .menu-item-has-children > a::after, 
#eng-header-menu .menu-item-has-children > a::after {
    content: " ▼";
    font-size: 18px;
    margin-left: 5px;
    cursor: pointer;
}

.social-icons-container {
    position: relative;
    z-index: 100000;
}

.social-icons-container.mobile-icons {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 25px;
}

/* ==========================================================================
   4. LIVE PULSING DOT (MENU ITEM 205298)
   ========================================================================== */
#menu-item-205298 > a {
    position: relative;
    padding-right: 18px;
}

#menu-item-205298 > a::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: red;
    transform: translateY(-50%);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    animation-name: c961-menu-pulse;
    animation-duration: 1.7s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-out;
}

@keyframes c961-menu-pulse {
    0% {
        transform: translateY(-50%) scale(1);
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }
    70% {
        transform: translateY(-50%) scale(2);
        opacity: 0;
        box-shadow: 0 0 0 14px rgba(255, 255, 255, 0);
    }
    100% {
        transform: translateY(-50%) scale(1);
        opacity: 0;
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

/* ==========================================================================
   5. FOOTER & MOVE TO TOP
   ========================================================================== */
footer {
    padding: 20px 0;
    line-height: 20px;
    text-align: center;
    font-size: 13px;
    color: white;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    flex-direction: column;
    text-align: center;
}

.footer-bottom {
    font-size: 14px;
    margin-bottom: 10px;
    text-align: center;
}

.footer-nav, 
.eng-footer-nav {
    text-align: center;
    margin: 20px 0;
}

.footer-nav-list, 
.eng-footer-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav-list li, 
.eng-footer-nav-list li {
    display: inline-block;
    margin: 0 10px;
}

.footer-nav-list li a, 
.eng-footer-nav-list li a {
    color: white !important;
    text-decoration: none !important;
    font-weight: 500;
}

.footer-nav-list li a:hover, 
.eng-footer-nav-list li a:hover {
    opacity: 0.8;
}

/* حل تعارض Move to top باختيار النسخة الأحدث من page.css */
.move-to-top {
    position: fixed;
    bottom: 50px;
    left: 10px;
    background: linear-gradient(to right, rgb(255, 215, 0), rgb(255, 165, 0)) !important;
    display: block !important;
    color: white;
    border: none;
    padding: 12px;
    width: 50px;
    height: 50px;
    font-size: 20px;
    cursor: pointer;
    border-radius: 50%;
    text-align: center;
    z-index: 1000;
    transition: opacity 0.3s ease, transform 0.2s ease, background-color 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    direction: rtl !important;
    text-decoration: none;
}

.move-to-top:hover {
    background-color: #000000;
    transform: translateY(-3px);
}

.move-to-top::before {
    content: '>';
    font-size: 45px;
    display: inline-block;
    color: white;
    transform: rotate(90deg);
    line-height: 0;
    text-align: center;
    width: 100%;
    direction: rtl !important;
}

.move-to-top-finance { background: linear-gradient(to right, #0284c7, #1e3a8a) !important; }
.move-to-top-crypto { background: linear-gradient(to right, #10b981, #047857) !important; }
.move-to-top-commodities { background: linear-gradient(to right, #d97706, #78350f) !important; }

/* ==========================================================================
   6. LAYOUT CONTAINERS & GRIDS
   ========================================================================== */
.wrap {
    overflow: hidden;
    background: black;
}

.container {
    max-width: 1200px;
    width: 100% !important;
    margin: 0 auto;
    flex-wrap: nowrap;
    justify-content: center;
    box-sizing: border-box;
    overflow: hidden;
}

.content-area {
    width: 90%;
    padding: 25px;
    background-color: #fff;
    border-radius: 0px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    min-height: 300px;
    flex: 1;
    min-width: 0;
}

.content-full-width, 
.w-100 {
    width: 100%;
}

.ad-wrapper {
    width: 100%;
    display: block;
    margin: 0 auto;
    text-align: center;
}

.top-content-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    width: 100%;
}

.fw-hr-wrapper {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.hr-spacer {
    border: none;
    background-color: transparent;
    height: 30px;
}

.custom-divider {
    border: none;
    height: 1px;
    background: linear-gradient(to right, rgba(192,192,192,0), rgba(192,192,192,0.4), rgba(192,192,192,0));
    margin: 35px 0;
}

.prices-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    align-items: center;
    margin: 0 auto 25px auto;
    max-width: 680px;
}

.price-col {
    flex: 1;
    min-width: 280px;
    text-align: center;
}

.price-title {
    margin-bottom: 10px;
    text-align: center;
}

.chart-container {
    width: 100%;
    direction: ltr;
}

.tools-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    align-items: flex-start;
    margin: 30px auto;
    max-width: 900px;
    direction: rtl;
}

.tools-grid-ltr {
    direction: ltr !important;
}

.tool-col {
    flex: 1;
    max-width: 420px;
    min-width: 280px;
    display: flex;
    flex-direction: column;
}

.tool-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #ffffff;
    border-radius: 16px;
}

.lira-grid {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    margin: 0 auto 25px auto;
    max-width: 680px;
    gap: 8px;
}

.lira-col {
    flex: 1;
    text-align: center;
}

.lira-figure {
    margin: 0;
}

.currencies-table-wrapper, 
.commodities-table-wrapper, 
.crypto-table-wrapper {
    margin: 20px auto 30px auto;
    width: 100%;
}

/* ==========================================================================
   7. POSTS, ARCHIVES & WIDGETS
   ========================================================================== */
.home-container {
    display: flex;
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 100%;
    min-height: 400px;
}

#home-related-posts-widget {
    background-color: #fff;
    padding: 30px;
    margin-top: 0;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 30px;
}

.home-related-posts-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 10px;
    margin-top: 15px;
    margin-bottom: 15px;
}

.home-related-item {
    background-color: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    margin-top: 15px;
    margin-bottom: 15px;
}

.home-related-item:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.home-related-item .home-post-thumb img {
    height: 150px;
    width: 100%;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 10px;
}

.home-related-item .home-post-title a {
    text-decoration: none;
    color: #000;
    transition: color 0.2s ease;
    font-size: 15px;
    font-weight: 800;
    margin: 0 5px;
    line-height: 2;
    display: inline-block;
}

.home-related-item .home-post-title a:hover {
    color: #d32f2f;
}

.home-related-item .post-meta {
    display: none;
}

.mag-box-title {
    background: linear-gradient(to left, #FFA500, #FFD700);
    color: #fff;
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 5px;
}

.mag-box-title h2 {
    margin: 0;
    font-size: 22px;
    font-weight: bold;
}

.mag-box-title h3 {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #0f172a;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 10px;
    text-align: center;
    position: relative;
}

.mag-box-title h3 a {
    color: white;
    text-decoration: none !important;
}

.mag-box-title h3 span {
    border-bottom: 3px solid #f59e0b;
    padding-bottom: 10px;
}

.block-more-button {
    color: white;
    font-size: 14px;
    background-color: black;
    padding: 5px 12px;
    border-radius: 3px;
    text-decoration: none;
}

.block-more-button:hover {
    background-color: white;
    color: red;
}

#latest-posts-widget {
    max-width: 80%;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    background: white;
    padding: 10px;
    bottom: 15px;
}

#main-post {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
}

#main-thumbnail {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
    border-radius: 12px;
}

#main-title {
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 100%;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 10px;
    font-size: 16px;
    text-align: center;
    border-radius: 0 0 12px 12px;
}

.read-more {
    color: red;
    font-weight: bold;
    margin-left: 10px;
}

#thumbnails1 {
    height: 100px;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 5px;
    padding: 10px 0;
    justify-items: center;
}

.thumbnail-link {
    display: block;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}

.thumbnail {
    width: 100%;
    height: 100px;
    object-fit: cover;
    transition: transform 0.2s ease;
    border-radius: 8px;
}

.thumbnail:hover {
    transform: scale(1.1);
}

.archive-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px,1fr));
    gap: 25px;
}

.archive-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.archive-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

.archive-thumb img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.archive-post-title {
    font-size: 18px;
    font-weight: bold;
    color: #000;
    line-height: 1.4;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    transition: color 0.3s;
}

.archive-post-title:hover {
    color: #b60000;
}

.archive-date {
    font-size: 14px;
    color: #666;
}

.archive-title {
    font-size: 40px;
    font-weight: bold;
    color: #b60000;
    text-align: right;
    margin-bottom: 30px;
}

.archive-content {
    padding: 15px;
    text-align: right;
}

.eng-archive-title {
    font-size: 40px;
    font-weight: bold;
    color: #000000;
    text-align: left;
    margin-bottom: 30px;
}

.eng-archive-content {
    padding: 15px;
    text-align: left;
}

.pagination {
    text-align: center;
    margin-top: 40px;
}

.pagination a {
    display: inline-block;
    margin: 0 5px;
    padding: 8px 14px;
    background: #b60000;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
}

.pagination a:hover {
    background: #8a0000;
}

.load-more-container {
    text-align: center;
    margin: 40px 0;
}

.load-more-btn {
    background: none;
    border: 2px solid #000;
    border-radius: 10px;
    font-size: 22px;
    font-weight: bold;
    color: #ffa500;
    padding: 10px 40px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.load-more-btn span {
    color: #ffa500;
    font-size: 26px;
    margin-right: 8px;
}

.load-more-btn:hover {
    background: linear-gradient(to right, #ffd700, #ffa500);
    color: #fff;
}

.load-more-btn:hover span {
    color: #fff;
}

.post-thumbnail {
    width: 100%;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.post-details {
    padding: 10px;
}

.post-date {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 10px;
}

.post-title a {
    font-size: 1.2rem;
    font-weight: bold;
    color: black;
    text-decoration: none;
    line-height: 1.4;
}

.post-title a:hover {
    color: #e8230d;
}

.article-full {
    background: #ffffff;
    padding: 15px 0;
}

.article-full p {
    color: #333;
    text-align: center;
}

.article-full a {
    color: #007bff;
    transition: color 0.3s ease;
    word-wrap: break-word;
}

.article-full a:hover {
    color: #0056b3;
}

.article-header {
    line-height: 1.5;
    text-align: center;
}

.post-content {
    line-height: 1.85;
    font-size: 16.5px;
    color: #2d3748;
    margin: 20px 0;
    text-align: center;
}

.post-content p {
    margin-bottom: 18px;
    text-align: center;
}

.article-footer {
    margin-top: 30px;
    font-size: 16px;
    background-color: #ffa500;
    line-height: 2;
}

.article-footer p {
    margin-right: 15px;
    text-align: center;
}

body.layout-ar .article-footer {
    direction: rtl;
}

.white-text {
    color: white;
}

.white-text .label {
    color: black;
}

.white-text .prev-title {
    color: white;
    margin-right: 10px;
}

.article-footer a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-footer a:hover {
    color: black;
}

.social-share {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    margin-right: 0;
    justify-content: center
}

.social-share.has-text-align-center {
    justify-content: center !important;
}

.social-share-bottom {
    margin-top: 25px;
    margin-bottom: 25px;
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
}

.social-share-title {
    font-weight: bold;
    margin: 0 8px;
}

.social-share a {
    margin: 0 5px;
    text-decoration: none;
    font-size: 18px;
    transition: transform 0.3s ease;
}

.social-share span {
    font-size: 20px;
    margin-right: 5px;
    color: #333;
}

.social-share a:hover {
    transform: scale(1.1);
}

.social-share .fab {
    font-size: 30px;
    color: #333;
}

.social-share .fab.fa-whatsapp { color: #25d366; }
.social-share .fab.fa-telegram { color: #0088cc; }
.social-share .fab.fa-facebook { color: #1877f2; }
.social-share .fab.fa-twitter { color: #1da1f2; }

.read-also-block {
    background: #f8fafc;
    border-left: 4px solid #f59e0b;
    padding: 12px 18px;
    margin: 25px 0;
    font-size: 15.5px;
    border-radius: 0 8px 8px 0;
}

.read-also-block .label {
    font-weight: bold;
    color: #0f172a;
    margin-right: 6px;
}

.read-also-block .prev-title {
    color: #d97706;
    text-decoration: none;
    font-weight: 600;
}

.read-also-block .prev-title:hover {
    text-decoration: underline;
}

#related-posts {
    background-color: #fff;
    padding: 30px;
    margin-top: 40px;
    border-top: 2px solid #f1f5f9;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 15px;
}

.related-posts-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 20px;
    margin-top: 20px;
    align-items: center;
}

.related-item {
    background-color: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.related-item:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.related-item .post-thumb {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 10px;
    aspect-ratio: 16 / 10;
    background: #e2e8f0;
}

.related-item .post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: 5px;
}

.related-item .post-thumb:hover img {
    transform: scale(1.05);
}

.related-item .post-title {
    margin-top: 5px;
    font-size: 15px;
    line-height: 1.4;
    font-weight: 600;
    text-align: center;
}

.related-item .post-title a {
    text-decoration: none;
    color: #1e293b;
    transition: color 0.2s ease;
    margin: 0 5px;
    display: inline-block;
}

.related-item .post-title a:hover {
    color: #f59e0b;
}

/* Embeds */
.wp-block-embed-twitter, 
.wp-block-embed-facebook {
    max-width: 100% !important;
    overflow: hidden;
    display: flex;
    justify-content: center;
}

.wp-block-embed-twitter .wp-block-embed__wrapper, 
.wp-block-embed-facebook .wp-block-embed__wrapper {
    max-width: 100%;
}

.wp-block-embed-twitter iframe, 
.wp-block-embed-facebook iframe {
    max-width: 100% !important;
    height: auto !important;
    min-height: 600px !important;
    display: block;
    flex-grow: 1;
}

.wp-block-embed-youtube {
    max-width: 100% !important;
    overflow: hidden;
    justify-content: center;
}

.wp-block-embed-youtube .wp-block-embed__wrapper {
    max-width: 100%;
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}

.wp-block-embed-youtube iframe {
    max-width: 100% !important;
    height: 100% !important;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

/* ==========================================================================
   8. COLOR THEMES (GRADIENTS, SEPARATORS, QUOTES, BUTTONS)
   ========================================================================== */
.main-title {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.3;
    text-align: center;
}

.gold-gradient, 
.silver-gradient, 
.finance-gradient, 
.crypto-gradient, 
.commodities-gradient {
    text-align: center;
    display: block;
    width: fit-content;
    margin: 20px auto 15px auto;
    padding: 5px 16px;
    border-radius: 6px;
    font-size: 19px;
    font-weight: bold;
}

.gold-gradient {
    color: #ffb800;
    background: #434343;
}

.silver-gradient {
    color: #e2e8f0 !important;
    background: #334155;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

.finance-gradient {
    color: #ffffff !important;
    background: linear-gradient(135deg, #0f172a, #1e3a8a);
}

.crypto-gradient {
    color: #ffffff !important;
    background: linear-gradient(135deg, #065f46, #10b981);
}

.commodities-gradient {
    color: #ffffff !important;
    background: linear-gradient(135deg, #1c1917, #78350f);
}

.hr-gradient {
    background: linear-gradient(to right, #FFD700, #FFA500) !important;
    height: 20px;
    border: none;
    width: 100%;
    margin: 0;
}

.hr-silver-gradient {
    background: linear-gradient(to right, #c0c0c0, #e0e0e0) !important;
    height: 20px;
    border: none;
    width: 100%;
    margin: 0;
}

.hr-finance-gradient {
    background: linear-gradient(to right, #0284c7, #1e3a8a) !important;
    height: 16px;
    border: none;
    width: 100%;
    margin: 30px 0;
}

.hr-crypto-gradient {
    background: linear-gradient(to right, #10b981, #047857) !important;
    height: 16px;
    border: none;
    width: 100%;
    margin: 30px 0;
}

.hr-commodities-gradient {
    background: linear-gradient(to right, #d97706, #78350f) !important;
    height: 16px;
    border: none;
    width: 100%;
    margin: 30px 0;
}

.custom-gold-quote {
    border-left: 4px solid #FFD700;
    padding: 15px;
    margin: 20px auto;
    background: #f9f9f9;
    max-width: 800px;
    text-align: center;
}

.custom-silver-quote {
    border-left: 4px solid #94a3b8;
    padding: 15px;
    margin: 20px auto;
    background: #f1f5f9;
    max-width: 800px;
    text-align: center;
}

.custom-finance-quote {
    border-left: 4px solid #0284c7;
    padding: 12px 16px;
    margin: 20px auto;
    background: #f8fafc;
    border-radius: 4px;
    max-width: 800px;
    text-align: center;
}

.custom-finance-quote p {
    color: #475569;
    text-align: center;
}

.custom-crypto-quote {
    border-left: 4px solid #10b981;
    padding: 12px 16px;
    margin: 20px auto;
    background: #ecfdf5;
    border-radius: 4px;
    max-width: 800px;
    text-align: center;
}

.custom-crypto-quote p {
    color: #065f46;
    text-align: center;
}

.custom-commodities-quote {
    border-left: 4px solid #b45309;
    padding: 12px 16px;
    margin: 20px auto;
    background: #fffbeb;
    border-radius: 4px;
    max-width: 800px;
    text-align: center;
}

.custom-commodities-quote p {
    color: #78350f;
    text-align: center;
}

/* Arabic Quotes borders */
body.lang-ar .custom-finance-quote-ar,
.custom-finance-quote-ar {
    border-right: 4px solid #0284c7 !important;
    border-left: none !important;
}

body.lang-ar .custom-crypto-quote-ar,
.custom-crypto-quote-ar {
    border-right: 4px solid #10b981 !important;
    border-left: none !important;
}

body.lang-ar .custom-commodities-quote-ar,
.custom-commodities-quote-ar {
    border-right: 4px solid #b45309 !important;
    border-left: none !important;
}

.prediction-btn-wrap, 
.app-dl-wrap {
    text-align: center;
    margin: 25px auto;
    max-width: 420px;
}

.prediction-btn {
    display: block;
    width: 100%;
    background-color: #f59e0b;
    color: #ffffff !important;
    padding: 14px 20px;
    border-radius: 12px;
    font-weight: bold;
    font-size: 16px;
    text-decoration: none;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: background 0.2s;
}

.prediction-btn:hover {
    background-color: #d97706;
}

.app-dl-card {
    display: block;
    width: 100%;
    background-color: #0f172a;
    border-radius: 16px;
    padding: 22px;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s;
}

.app-dl-card:hover {
    transform: translateY(-3px);
}

.app-dl-title {
    color: #ffffff;
    font-size: 18px;
    font-weight: bold;
    margin: 0 0 15px 0;
}

.preferred-source-slot {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
    margin-top: 10px !important;
    margin-bottom: 15px !important;
    direction: rtl !important;
}

.preferred-source-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    padding: 8px 16px !important;
    min-height: 45px !important;
    border-radius: 10px !important;
    border: 1px solid #cce4f7 !important;
    background-color: #e8f4fd !important;
    color: #111111 !important;
    font-family: inherit, sans-serif !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    text-align: center !important;
    text-decoration: none !important;
    cursor: pointer !important;
    -webkit-tap-highlight-color: transparent;
    transition: all 0.25s ease !important;
}

.preferred-source-btn:hover,
.preferred-source-btn:focus,
.preferred-source-btn:active,
.preferred-source-btn:visited {
    background-color: #d8ecfa !important;
    color: #000000 !important;
    text-decoration: none !important;
}

.preferred-source-btn-icon {
    flex: 0 0 auto !important;
    width: 22px !important;
    height: 22px !important;
}

/* ==========================================================================
   9. LINKS LISTS (ARABIC & ENGLISH)
   ========================================================================== */
.c961-ar-links, 
.c961-en-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    justify-content: center;
    align-items: center;
    line-height: 1.5;
}

.c961-ar-links a, 
.c961-en-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 11px;
    transition: color 0.15s ease;
    white-space: nowrap;
}

.c961-ar-links a:hover, 
.c961-en-links a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.c961-ar-links a::after {
    content: "•";
    color: #334155;
    margin-right: 14px;
}

.c961-ar-links a:last-child::after {
    content: "";
    margin-right: 0;
}

.c961-en-links a::after {
    content: "•";
    color: #334155;
    margin-left: 14px;
}

.c961-en-links a:last-child::after {
    content: "";
    margin-left: 0;
}

/* ==========================================================================
   10. IMAGE SIZING & FIXES
   ========================================================================== */
.gold-page-wrapper figure.wp-block-image, 
.content-area figure.wp-block-image {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 15px auto;
    width: 100%;
}

article .wp-image, 
.page .wp-image, 
article img, 
.page img {
    max-width: 100%;
    display: block;
    margin: 0 auto;
}

.content-area img {
    width: 70%;
    height: auto;
    margin-bottom: 20px;
}

.silver-img {
    height: auto;
    border-radius: 6px;
}

.img-header-gold, 
img.gold-img[src*="enu-50-g"], 
.img-silver, 
img[src*="silver.png"], 
.img-finance-stock {
    max-width: 40% !important;
    width: 40% !important;
    height: auto !important;
    display: block !important;
    margin: 0 auto !important;
}

.img-swiss-gold, 
img[src*="swissounce"] {
    max-width: 25% !important;
    width: 25% !important;
    height: auto !important;
    display: block !important;
    margin: 0 auto !important;
}

.img-local-gold, 
img[src*="localounce"] {
    max-width: 15% !important;
    width: 15% !important;
    height: auto !important;
    display: block !important;
    margin: 0 auto !important;
}

.img-crypto-banner {
    max-width: 50% !important;
    width: 50% !important;
    height: auto !important;
    display: block !important;
    margin: 0 auto !important;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.crypto-figure-box {
    margin: 25px auto !important;
}

.img-lira-en, 
img[src*="main/images.jpeg"] {
    max-width: 55% !important;
    height: auto !important;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.img-lira-ot, 
img[src*="354164_5_1667040878"] {
    max-width: 50% !important;
    height: auto !important;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.img-app-preview {
    width: 100% !important;
    max-width: 320px !important;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
}

/* ==========================================================================
   11. SEO CONTENT (STRICTLY CENTERED FOR ARABIC & ENGLISH)
   ========================================================================== */
.seo-lead-text, 
.seo-inter-text, 
.lead-finance-text, 
.seo-text-block {
    text-align: center !important;
    line-height: 2;
    color: #475569;
    margin: 15px auto 25px auto;
    max-width: 850px;
    font-size: 16px;
    padding: 0 15px;
}

.seo-inter-text h3, 
.seo-text-block h3 {
    text-align: center !important;
    margin-top: 25px;
    margin-bottom: 12px;
    color: #222;
    font-size: 19px;
    font-weight: bold;
}

.seo-text-block p {
    margin-bottom: 12px;
    text-align: center !important;
}

.note-subtext {
    margin-top: 10px;
    color: #64748b;
    font-size: 14px;
    text-align: center !important;
}

.seocontent, 
.seocontent-ltr {
    text-align: center !important;
    line-height: 2.1;
    color: #333333;
    margin: 30px auto 0 auto;
    max-width: 900px;
    padding: 0 15px;
}

.seocontent-ltr {
    direction: ltr !important;
}

.seocontent h2 {
    font-size: 22px;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #0f172a;
    font-weight: bold;
    text-align: center !important;
}

.seocontent h3 {
    font-size: 18px;
    margin-top: 25px;
    margin-bottom: 10px;
    color: #1e293b;
    font-weight: bold;
    text-align: center !important;
}

.seocontent p {
    text-align: center !important;
    margin-bottom: 18px;
}

.seocontent ul, 
.seocontent ol, 
.seo-list-disc, 
.seo-ordered-list, 
.seo-ordered-list-ar, 
.nested-finance-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 15px auto 25px auto !important;
    max-width: 800px;
    text-align: center !important;
}

.seocontent ul li, 
.seo-list-disc li {
    text-align: center !important;
    margin-bottom: 10px;
    line-height: 1.8;
}

.seocontent ul li::before, 
.seo-list-disc li::before {
    content: "• ";
    color: #f59e0b;
    font-weight: bold;
    display: inline-block;
    margin: 0 5px;
}

.seocontent ol, 
.seo-ordered-list, 
.seo-ordered-list-ar {
    list-style-position: inside !important;
}

.seocontent ol li, 
.seo-ordered-list li, 
.seo-ordered-list-ar li {
    text-align: center !important;
    margin-bottom: 10px;
    line-height: 1.9;
}

.nested-finance-list ul {
    margin-top: 8px;
    margin-bottom: 8px;
}

.seo-tags-block {
    font-size: 14px;
    opacity: 0.8;
    margin-top: 25px;
    text-align: center !important;
}

/* ==========================================================================
   12. MEDIA QUERIES (DESKTOP, TABLET, MOBILE)
   ========================================================================== */
@media (min-width: 576px) {
    .preferred-source-btn {
        font-size: 18px !important;
    }
}

@media screen and (min-width: 783px) {
    body.admin-bar #theme-header,
    body.admin-bar #eng-theme-header {
        margin-top: 32px !important;
    }
    .header-container-mobile, 
    .eng-header-container-mobile {
        display: none !important;
        padding-bottom: 20px;
    }
    .header-container-desktop, 
    .eng-header-container-desktop {
        align-items: center;
        justify-content: space-between;
        padding: 10px 250px;
    }
    .social-icons {
        display: flex;
        justify-content: center;
        gap: 25px;
    }
    .left-icons {
        order: 1;
    }
    .logo-wrapper {
        order: 2;
        flex-shrink: 0;
        text-align: center;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .right-icons {
        order: 3;
    }
    .logo-wrapper img {
        max-height: 180px;
        width: auto;
    }
    .social-icons a {
        color: white;
        font-size: 20px;
        text-decoration: none;
        transition: color 0.3s ease;
    }
    .social-icons a:hover {
        color: #ffcc00;
    }
    #header-menu, 
    #eng-header-menu {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    .mobile-menu-toggle {
        display: none;
    }
    #header-menu li:hover > ul, 
    #eng-header-menu li:hover > ul {
        display: block;
    }
    #header-menu ul, 
    #eng-header-menu ul {
        transition: all 0.3s ease;
    }
}

@media (max-width: 782px) {
    html {
        margin-top: 0 !important;
    }
    body.admin-bar #theme-header,
    body.admin-bar #eng-theme-header {
        margin-top: 46px !important;
    }
    #menu-item-205298 > a::after {
        right: 80px;  
    }
}

@media screen and (max-width: 768px) {
    .header-container-desktop, 
    .eng-header-container-desktop {
        display: none !important;
    }
    .header-container-mobile, 
    .eng-header-container-mobile {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        padding-top: 10; 
        padding-bottom: 30px;
    }
    .logo-wrapper {
        height: auto !important;
    }
    .logo-wrapper img, 
    .logo-wrapper a img {
        height: 75px !important;
        width: auto !important;
        max-width: none !important;
    }
    .social-icons {
        display: flex;
        justify-content: center;
        gap: 20px;
        flex-wrap: wrap;
    }
    .social-icons a {
        color: white;
        font-size: 20px;
        text-decoration: none;
        transition: color 0.3s ease;
    }
    .social-icons a:hover {
        color: #ffcc00;
    }
    .social-icons-container {
        display: flex !important;
    }
    .mobile-menu-toggle {
        background-color: transparent;
        display: block;
        color: white;
        border: none;
        font-size: 38px;
        cursor: pointer;
        position: absolute;
        top: 30px;
        right: 20px;
        z-index: 1001;
        padding: 50px 10px;
    }
    .mobile-menu-toggle:focus {
        outline: none;
    }
    #header-menu, 
    #eng-header-menu {
        display: none;
        flex-direction: column;
        background-color: #f9b233;
        width: 100%;
        gap: 2px;
    }
    #header-menu.active, 
    #eng-header-menu.active {
        display: flex;
    }
    #header-menu li, 
    #eng-header-menu li {
        width: 100%;
    }
    #header-menu ul, 
    #eng-header-menu ul {
        position: static;
        width: 100%;
        background-color: black;
        display: none;
    }
    #header-menu li.menu-item-has-children.open > ul, 
    #eng-header-menu li.menu-item-has-children.open > ul {
        display: block;
    }
    #header-menu a, 
    #eng-header-menu a {
        padding: 5px;
        width: 100%;
        font-size: 17px;
    }
    #header-menu ul a, 
    #eng-header-menu ul a {
        font-size: 15px;
    }
    .container {
        flex-direction: column;
        gap: 20px;
        align-items: center;
        width: 100% !important;
    }
    .content-area, 
    .primary-sidebar {
        width: 100%;
        margin: 10px 0;
        padding: 15px;
    }
    .primary-sidebar {
        overflow: hidden;
    }
    .wrap {
        overflow: hidden;
    }
    article img, 
    .page img, 
    .content-area img {
        width: 70%;
        margin-bottom: 15px;
    }
    .post-thumbnail img {
        width: 100%;
        border-radius: 10px;
        margin: 0 auto;
    }
    .post-details {
        padding: 10px 0;
    }
    .post-title a {
        font-size: 1rem;
        line-height: 1.5;
    }
    .read-more-btn a {
        font-size: 0.8rem;
    }
    .home-container {
        display: block;
        gap: 0;
        justify-content: unset;
        flex-wrap: unset;
    }
    .home-related-posts-list {
        grid-template-columns: repeat(2, 1fr);
        grid-gap: 10px;
        margin-top: 15px;
        margin-bottom: 15px;
    }
    #home-related-posts-widget {
        padding: 20px;
    }
    .widget-title {
        font-size: 20px;
    }
    #latest-posts-widget {
        max-width: 100%;
    }
    #thumbnails1 a:nth-child(n+7) {
        display: none;
    }
    #thumbnails1 {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(2, auto);
        height: 200px;
        width: 100%;
        object-fit: cover;
    }
    .related-posts-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    #related-posts {
        padding: 0;
    }
    .lira-grid {
        flex-wrap: wrap;
    }
    .gold-img, 
    .img-header-gold, 
    img.gold-img[src*="enu-50-g"], 
    .img-silver, 
    img[src*="silver.png"], 
    .img-finance-stock {
        max-width: 70% !important;
        width: 70% !important;
    }
    .responsive-swiss-img, 
    .img-swiss-gold, 
    img[src*="swissounce"] {
        max-width: 50% !important;
        width: 50% !important;
    }
    .responsive-local-img, 
    .img-local-gold, 
    img[src*="localounce"] {
        max-width: 35% !important;
        width: 35% !important;
    }
    .img-crypto-banner {
        max-width: 80% !important;
        width: 80% !important;
    }
    .move-to-top {
        bottom: 10px;
    }
    .footer-bottom {
        margin-bottom: 50px;
    }
    .c961-international-table {
        display: block;
        width: 100%;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }
}

@media screen and (max-width: 480px) {
    .home-related-posts-list {
        grid-template-columns: 1fr;
    }
    #home-related-posts-widget {
        padding: 15px;
    }
    .widget-title {
        font-size: 18px;
    }
    .see-more-btn {
        font-size: 14px;
        padding: 8px 16px;
    }
    .related-posts-list {
        grid-template-columns: 1fr;
    }
}