/*
Theme Name: عُمان 22 - النسخة الراقية v22
Theme URI: https://oman22.com
Author: Oman 22 Digital
Description: واجهة تعليمية فخمة، توزيع آلي، تحكم يدوي بالتصنيفات، وتصميم Grid/List مذهل.
Version: 22.0.0
Text Domain: oman22
*/
:root {
  --gold: #C5A059;
  --black: #111111;
  --white: #FFFFFF;
  --gray: #F4F4F9;
  --text-dim: #666666;
}

* { box-sizing: border-box; }
body { font-family: 'Cairo', sans-serif; background: #F8F9FB; color: var(--black); direction: rtl; margin: 0; padding: 0; line-height: 1.6; }
.container { max-width: 1440px; margin: 0 auto; padding: 0 40px; }

/* Header */
.site-header { background: rgba(255,255,255,0.95); backdrop-filter: blur(15px); padding: 15px 0; border-bottom: 1px solid #EEEEEE; position: sticky; top: 0; z-index: 1000; box-shadow: 0 10px 30px rgba(0,0,0,0.02); }
.header-flex { display: flex; justify-content: space-between; align-items: center; }
.logo-box { text-decoration: none; display: flex; align-items: center; gap: 15px; }
.logo-badge { background: var(--black); color: var(--gold); padding: 10px 20px; border-radius: 18px; font-weight: 900; font-size: 24px; font-style: italic; box-shadow: 0 5px 15px rgba(0,0,0,0.2); }
.logo-text h1 { font-size: 26px; font-weight: 900; color: var(--black); margin: 0; }

/* Grade Sections (Grid) */
.grade-section { margin-top: 100px; }
.grade-header { background: var(--white); padding: 30px 45px; border-radius: 40px; border-right: 15px solid var(--gold); margin-bottom: 50px; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 15px 35px rgba(0,0,0,0.03); }
.grade-header h2 { font-size: 34px; font-weight: 900; margin: 0; color: var(--black); }
.grid-container { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 35px; }
.card-grid { background: var(--white); border-radius: 50px; padding: 15px; border: 1px solid #F1F1F4; transition: 0.6s cubic-bezier(0.16, 1, 0.3, 1); box-shadow: 0 10px 40px rgba(0,0,0,0.02); }
.card-grid:hover { transform: translateY(-12px); box-shadow: 0 45px 80px rgba(0,0,0,0.1); border-color: var(--gold); }
.thumb-grid { height: 230px; border-radius: 38px; background-size: cover; background-position: center; margin-bottom: 25px; }
.card-grid h3 { font-size: 20px; font-weight: 800; line-height: 1.5; margin: 0 15px 20px; text-align: center; }

/* List View (Latest) */
.latest-list-section { background: var(--white); padding: 100px 60px; border-radius: 70px; margin-top: 150px; border: 1px solid #EEEEEE; box-shadow: 0 30px 100px rgba(0,0,0,0.03); }
.section-title { font-size: 42px; font-weight: 900; margin-bottom: 60px; text-align: center; color: var(--black); position: relative; }
.section-title::after { content: ''; display: block; width: 80px; height: 6px; background: var(--gold); margin: 20px auto; border-radius: 10px; }
.list-item { display: flex; gap: 50px; margin-bottom: 50px; align-items: center; border-bottom: 1px solid #F8F9FB; padding-bottom: 50px; transition: 0.4s; }
.list-item:hover { transform: translateX(-10px); }
.list-thumb { width: 340px; height: 220px; border-radius: 40px; object-fit: cover; box-shadow: 0 20px 40px rgba(0,0,0,0.05); }
.list-content { flex: 1; text-align: right; }
.list-content h3 { font-size: 28px; font-weight: 900; margin: 0 0 20px 0; color: var(--black); text-decoration: none; transition: 0.3s; }
.list-content h3:hover { color: var(--gold); }
.list-content p { color: var(--text-dim); font-size: 17px; line-height: 2; margin: 0; }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 12px; margin-top: 80px; }
.page-numbers { min-width: 60px; height: 60px; border-radius: 20px; background: var(--white); border: 1px solid #EEEEEE; display: flex; align-items: center; justify-content: center; font-weight: 900; text-decoration: none; color: var(--black); font-size: 18px; transition: 0.4s; }
.page-numbers.current { background: var(--gold); color: var(--white); border-color: var(--gold); box-shadow: 0 15px 30px rgba(197,160,89,0.3); }

/* Sidebar Left */
.layout-with-sidebar { display: flex; gap: 50px; margin-top: 100px; flex-direction: row-reverse; }
.main-column { flex: 1; }
.sidebar-column { width: 400px; flex-shrink: 0; }
.widget-box { background: var(--white); border-radius: 50px; padding: 45px; border: 1px solid #EEEEEE; margin-bottom: 50px; box-shadow: 0 15px 40px rgba(0,0,0,0.02); }
.widget-title { font-size: 22px; font-weight: 900; border-right: 8px solid var(--gold); padding-right: 20px; margin-bottom: 40px; }
.sidebar-post { display: flex; align-items: center; gap: 20px; margin-bottom: 30px; text-decoration: none; transition: 0.3s; }
.sidebar-post:hover { transform: scale(1.05); }
.sidebar-post img { width: 100px; height: 100px; border-radius: 25px; object-fit: cover; }
.sidebar-post h4 { font-size: 16px; font-weight: 800; color: var(--black); margin: 0; line-height: 1.5; flex: 1; }

.site-footer { background: var(--black); color: var(--white); padding: 120px 0; text-align: center; margin-top: 150px; }
