@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;900&display=swap');

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* === BASE === */
body { direction: rtl; font-family: 'Cairo', sans-serif; background: #F8F9F5; color: #1E2014; min-width: 320px; }
a { text-decoration: none; color: inherit; }

/* === TOPBAR === */
.topbar { background: #1E2014; padding: 7px 28px; display: flex; justify-content: space-between; align-items: center; }
.tb-links { display: flex; gap: 22px; }
.tb-links a { color: #C8D4BC; font-size: 12px; transition: color .15s; }
.tb-links a:hover { color: #F8F9F5; }
.tb-date { color: #A9BA9D; font-size: 12px; }

/* === HEADER === */
.hdr { background: #fff; border-bottom: 1px solid #E9E9E2; padding: 0 28px; display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; flex-direction: column; align-items: flex-end; }
.logo-ar { font-size: 28px; font-weight: 900; color: #3B3C24; letter-spacing: -1px; line-height: 1; }
.logo-en { font-size: 11px; color: #A9BA9D; letter-spacing: 2px; font-weight: 400; text-transform: uppercase; margin-top: 2px; }
.logo-olive { color: #8A9678; }
.hdr-search { display: flex; align-items: center; gap: 8px; background: #F1F4ED; border: 1px solid #DDE4D5; padding: 8px 16px; border-radius: 4px; }
.hdr-search-icon { color: #8A9678; font-size: 14px; line-height: 1; flex-shrink: 0; }
.hdr-search input { border: none; background: transparent; font-family: 'Cairo', sans-serif; font-size: 14px; color: #1E2014; outline: none; width: 200px; }
.hdr-search input::placeholder { color: #A9BA9D; }

/* === MAIN NAV === */
.nav { background: #fff; border-bottom: 3px solid #3B3C24; position: relative; z-index: 100; }
.nav-inner { display: flex; padding: 0 28px; }
.nav-item { position: relative; }
.nav-a { font-size: 14px; font-weight: 500; color: #6B705C; padding: 14px 17px; cursor: pointer; white-space: nowrap; border-bottom: 3px solid transparent; margin-bottom: -3px; transition: all .15s; display: flex; align-items: center; gap: 5px; user-select: none; }
.nav-a:hover { color: #3B3C24; }
.nav-a.act { color: #3B3C24; border-bottom-color: #9A2A2A; font-weight: 700; }
.nav-caret { font-size: 9px; color: #A9BA9D; transition: transform .2s; }
.nav-item:hover .nav-caret { transform: rotate(180deg); }
.nav-sep { color: #DDE4D5; padding: 14px 0; font-size: 12px; align-self: center; }

/* === DROPDOWN === */
.dropdown { position: absolute; top: 100%; right: 0; background: #fff; border: 1px solid #E9E9E2; border-top: 2px solid #9A2A2A; min-width: 160px; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: all .18s; z-index: 200; box-shadow: 0 4px 16px rgba(30,32,20,.08); }
.nav-item:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-item.open .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: block; padding: 10px 18px; font-size: 13px; color: #3B3C24; transition: background .12s; white-space: nowrap; border-bottom: 1px solid #F1F4ED; }
.dropdown a:last-child { border-bottom: none; }
.dropdown a:hover { background: #F8F9F5; color: #9A2A2A; }

/* === SUB NAV === */
.subnav { background: #F1F4ED; border-bottom: 1px solid #DDE4D5; padding: 0 28px; display: flex; align-items: center; overflow-x: auto; }
.subnav::-webkit-scrollbar { display: none; }
.subnav-now { display: flex; align-items: center; gap: 7px; padding: 9px 18px 9px 0; border-left: 1px solid #DDE4D5; margin-left: 4px; flex-shrink: 0; }
.subnav-now-dot { width: 7px; height: 7px; border-radius: 50%; background: #9A2A2A; animation: pulse 1.5s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .5; transform: scale(.8); } }
.subnav-now-text { font-size: 13px; font-weight: 700; color: #9A2A2A; }
.subnav-a { font-size: 13px; color: #6B705C; padding: 9px 14px; white-space: nowrap; transition: color .15s; border-bottom: 2px solid transparent; }
.subnav-a:hover { color: #3B3C24; }
.subnav-a.hot { color: #3B3C24; font-weight: 600; border-bottom-color: #3B3C24; }

/* === BREAKING BOX === */
.brk-wrap { padding: 14px 28px; background: #F8F9F5; }
.brk-box { background: #9A2A2A; border-radius: 4px; overflow: hidden; display: flex; align-items: stretch; }
.brk-label { background: #7a1f1f; color: #fff; font-size: 12px; font-weight: 700; padding: 12px 16px; white-space: nowrap; display: flex; align-items: center; letter-spacing: .5px; flex-shrink: 0; }
.brk-content { padding: 12px 18px; flex: 1; }
.brk-title { color: #fff; font-size: 16px; font-weight: 700; line-height: 1.5; margin-bottom: 4px; }
.brk-meta { color: rgba(255,255,255,.6); font-size: 11px; display: flex; gap: 12px; }

/* === HERO === */
.hero { display: grid; grid-template-columns: 1fr 300px; gap: 2px; background: #E9E9E2; margin-bottom: 2px; }
.hero-main { background: #fff; position: relative; cursor: pointer; overflow: hidden; }
.hero-ph { width: 100%; height: 340px; }
.hero-ph-tex { width: 100%; height: 100%; background: repeating-linear-gradient(45deg, #1e2014, #1e2014 10px, #252819 10px, #252819 20px); }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(30,32,20,.85) 0%, rgba(30,32,20,.25) 55%, transparent 100%); }
.hero-body { position: absolute; bottom: 0; right: 0; left: 0; padding: 22px 24px; }
.hero-tag { display: inline-block; background: #9A2A2A; color: #fff; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 2px; margin-bottom: 10px; letter-spacing: .3px; }
.hero-h1 { color: #fff; font-size: 22px; font-weight: 700; line-height: 1.55; margin-bottom: 10px; }
.hero-meta { color: rgba(255,255,255,.55); font-size: 12px; display: flex; gap: 14px; align-items: center; }
.hero-dot { width: 3px; height: 3px; border-radius: 50%; background: rgba(255,255,255,.3); display: inline-block; }
.hero-side { display: flex; flex-direction: column; gap: 2px; }
.side-card { background: #fff; padding: 15px 16px; cursor: pointer; flex: 1; border-right: 3px solid transparent; transition: border-color .15s; }
.side-card:hover { border-right-color: #9A2A2A; }
.side-tag { font-size: 11px; font-weight: 700; color: #9A2A2A; margin-bottom: 6px; letter-spacing: .3px; }
.side-title { font-size: 14px; font-weight: 500; color: #1E2014; line-height: 1.55; }
.side-time { font-size: 11px; color: #A9BA9D; margin-top: 6px; }

/* === SECTION HEADER === */
.sec-hdr { display: flex; align-items: center; justify-content: space-between; padding: 22px 28px 12px; }
.sec-hdr-title { font-size: 16px; font-weight: 700; color: #3B3C24; display: flex; align-items: center; }
.sec-hdr-title::before { content: ''; display: inline-block; width: 3px; height: 18px; background: #9A2A2A; border-radius: 1px; margin-left: 10px; }
.sec-hdr-more { font-size: 12px; color: #8A9678; border: 1px solid #DDE4D5; padding: 5px 12px; border-radius: 3px; transition: all .15s; }
.sec-hdr-more:hover { border-color: #3B3C24; color: #3B3C24; }

/* === CARDS === */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: #E9E9E2; margin-bottom: 2px; }
.card { background: #fff; padding: 18px 20px; cursor: pointer; transition: background .1s; }
.card:hover { background: #F8F9F5; }
.card-ph { width: 100%; height: 150px; border-radius: 3px; margin-bottom: 13px; background: #F1F4ED; }
.card-tag { font-size: 11px; font-weight: 700; color: #9A2A2A; margin-bottom: 6px; letter-spacing: .3px; }
.card-title { font-size: 15px; font-weight: 500; color: #1E2014; line-height: 1.6; margin-bottom: 10px; }
.card-foot { display: flex; justify-content: space-between; align-items: center; }
.card-time { font-size: 11px; color: #A9BA9D; }
.card-src { font-size: 11px; color: #8A9678; border: 1px solid #E9E9E2; padding: 2px 8px; border-radius: 2px; }

/* === MOST READ BAND === */
.band { background: #3B3C24; padding: 14px 28px; display: flex; gap: 20px; align-items: center; overflow-x: auto; margin-bottom: 2px; }
.band::-webkit-scrollbar { display: none; }
.band-label { color: #C8D4BC; font-size: 12px; font-weight: 700; white-space: nowrap; letter-spacing: .5px; }
.band-sep { color: #4a4c34; flex-shrink: 0; }
.band-item { color: #A9BA9D; font-size: 13px; white-space: nowrap; cursor: pointer; transition: color .15s; flex-shrink: 0; }
.band-item:hover { color: #F8F9F5; }

/* === TWO COLUMN (homepage Palestine in the World section) === */
.twocol { display: grid; grid-template-columns: 1fr 280px; gap: 2px; background: #E9E9E2; margin-bottom: 2px; }
.list-cards { background: #fff; display: flex; flex-direction: column; }
.list-card { padding: 16px 22px; cursor: pointer; border-bottom: 1px solid #F1F4ED; display: flex; gap: 14px; align-items: flex-start; transition: background .1s; }
.list-card:hover { background: #F8F9F5; }
.list-num { font-size: 26px; font-weight: 900; color: #E9E9E2; min-width: 30px; line-height: 1.1; margin-top: 2px; }
.list-body { flex: 1; }
.list-tag { font-size: 11px; font-weight: 700; color: #9A2A2A; margin-bottom: 4px; letter-spacing: .3px; }
.list-title { font-size: 14px; font-weight: 500; color: #1E2014; line-height: 1.55; }
.list-time { font-size: 11px; color: #A9BA9D; margin-top: 5px; }

/* === SIDEBAR (shared across pages) === */
.sidebar-col { background: #fff; }
.sidebar-hdr { padding: 16px 18px 10px; border-bottom: 2px solid #3B3C24; font-size: 13px; font-weight: 700; color: #3B3C24; letter-spacing: .3px; }
.sidebar-item { display: block; padding: 13px 18px; border-bottom: 1px solid #F1F4ED; cursor: pointer; transition: background .1s; }
.sidebar-item:hover { background: #F8F9F5; }
.sidebar-item-cat { font-size: 11px; font-weight: 700; color: #8A9678; margin-bottom: 3px; }
.sidebar-item-title { font-size: 13px; color: #3B3C24; line-height: 1.55; }
.sidebar-item-time { font-size: 11px; color: #A9BA9D; margin-top: 3px; }

/* === FOOTER === */
.footer { background: #3B3C24; padding: 26px 28px; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; margin-top: 2px; }
.footer-logo { color: #F8F9F5; font-size: 20px; font-weight: 900; }
.footer-logo span { color: #8A9678; }
.footer-sub { color: #A9BA9D; font-size: 12px; margin-top: 4px; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { color: #C8D4BC; font-size: 12px; transition: color .15s; }
.footer-links a:hover { color: #F8F9F5; }
.footer-copy { color: #6B705C; font-size: 11px; text-align: left; align-self: end; }

/* === CATEGORY PAGE === */
.cat-title-bar { background: #3B3C24; padding: 22px 28px; }
.cat-title-bar h1 { color: #fff; font-size: 26px; font-weight: 700; }
.cat-layout { display: grid; grid-template-columns: 1fr 280px; gap: 2px; background: #E9E9E2; }
.cat-main { display: flex; flex-direction: column; gap: 2px; background: #E9E9E2; }

/* === ARTICLE PAGE === */
.article-layout { display: grid; grid-template-columns: 1fr 310px; gap: 2px; background: #E9E9E2; }
.article-col { display: flex; flex-direction: column; gap: 2px; }
.article-main { background: #fff; padding: 28px 30px 24px; }
.article-tag { display: inline-block; background: #9A2A2A; color: #fff; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 2px; margin-bottom: 12px; letter-spacing: .3px; }
.article-title { font-size: 26px; font-weight: 700; color: #1E2014; line-height: 1.5; margin-bottom: 12px; }
.article-meta { font-size: 12px; color: #A9BA9D; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 20px; }
.article-img { width: 100%; height: 380px; background: #F1F4ED; border-radius: 3px; margin-bottom: 22px; }
.article-body { font-size: 16px; color: #1E2014; line-height: 1.9; }
.article-body p { margin-bottom: 18px; }
.article-hero { width: 100%; height: auto; border-radius: 4px; margin-bottom: 20px; display: block; }
.article-source { font-size: 12px; color: #8A9678; margin-top: 4px; padding-top: 14px; border-top: 1px solid #F1F4ED; }
.article-sidebar { display: flex; flex-direction: column; gap: 2px; }

/* === INFO PAGES (about, editorial, contact) === */
.info-wrap { padding: 36px 28px 60px; }
.info-content { max-width: 760px; margin: 0 auto; }
.info-title { font-size: 22px; font-weight: 700; color: #3B3C24; padding-right: 14px; border-right: 3px solid #9A2A2A; margin-bottom: 28px; line-height: 1.4; }
.info-body { font-size: 16px; color: #1E2014; line-height: 1.95; }
.info-body p { margin-bottom: 18px; }
.info-contact-block { background: #F1F4ED; border: 1px solid #DDE4D5; border-radius: 4px; padding: 22px 26px; margin-top: 28px; }
.info-contact-label { font-size: 13px; color: #6B705C; margin-bottom: 8px; font-weight: 600; }
.info-contact-email { font-size: 16px; font-weight: 700; color: #3B3C24; direction: ltr; text-align: right; }
