
    @import url('https://fonts.googleapis.com/css2?family=Cairo&display=swap');


    body {
      font-family: 'Cairo', sans-serif;
      margin: 0;
      background: #f8f9fa;
      color: #222;
    }

    /* شريط التحذير */
    .alert-bar {
      background-color: #ff0000;
      color: #222;
      padding: 10px 20px;
      text-align: center;
      font-weight: 600;
      font-size: 1rem;
      position: relative;
    }
    .alert-bar .close-btn {
      position: absolute;
      right: 15px;
      top: 10px;
      cursor: pointer;
      font-weight: bold;
      font-size: 1.2rem;
    }

    /* الهيدر */
    header {
      text-align: center;
      padding: 25px 20px 10px 20px;
      background: #fff;
      border-bottom: 2px solid #f2a900;
    }
    header img {
      max-height: 80px;
    }
    header h1 {
      font-size: 2.7rem;
      margin: 0;
      color: #f2a900;
      display: inline-block;
      background: #f2a900;
      color: white;
      padding: 0 15px;
      font-weight: 900;
      border-radius: 0 0 12px 12px;
      box-shadow: 2px 2px 7px rgba(242,169,0,0.4);
    }

    /* القائمة */
    nav {
      background-color: #2c2c2c;
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 0;
      padding: 0;
      margin: 0;
      user-select: none;
    }
    nav ul {
      list-style: none;
      margin: 0;
      padding: 0;
      display: flex;
      flex-wrap: wrap;
    }
    nav > ul > li {
      position: relative;
    }
    nav ul li a {
      color: #eee;
      text-decoration: none;
      display: block;
      padding: 14px 20px;
      font-weight: 600;
      white-space: nowrap;
      transition: background-color 0.3s ease;
      font-size: 1rem;
    }
    nav ul li a:hover,
    nav ul li:hover > a {
      background-color: #f2a900;
      color: #222;
    }

    /* القوائم المنسدلة */
    nav ul li ul {
      position: absolute;
      background-color: #333;
      min-width: 180px;
      top: 100%;
      right: 0;
      display: none;
      flex-direction: column;
      border-radius: 0 0 8px 8px;
      box-shadow: 0 4px 8px rgba(0,0,0,0.3);
      z-index: 1000;
    }
    nav ul li:hover > ul {
      display: flex;
    }
    nav ul li ul li a {
      padding: 12px 18px;
      font-weight: normal;
      color: #eee;
      border-bottom: 1px solid #444;
    }
    nav ul li ul li a:hover {
      background-color: #f2a900;
      color: #222;
    }

    /* البحث */
    .search-container {
      margin: 10px 20px;
      text-align: center;
    }
    .search-container input[type="search"] {
      padding: 10px 15px;
      width: 250px;
      font-size: 1rem;
      border: 2px solid #f2a900;
      border-radius: 25px;
      outline: none;
      transition: box-shadow 0.3s ease;
    }
    .search-container input[type="search"]:focus {
      box-shadow: 0 0 8px #f2a900;
      border-color: #f2a900;
    }

    /* محتوى الصفحة */
    .content-wrapper {
      max-width: 1200px;
      margin: 30px auto 50px auto;
      display: flex;
      gap: 30px;
      flex-wrap: wrap;
      padding: 0 20px;
    }

    .sidebar {
      flex: 1 1 300px;
      background: white;
      padding: 15px 20px;
      border-radius: 10px;
      box-shadow: 0 3px 12px rgba(0,0,0,0.1);
    }
    .sidebar h2 {
      margin-top: 0;
      border-bottom: 2px solid #f2a900;
      padding-bottom: 8px;
      color: #f2a900;
      font-weight: 700;
    }
    .sidebar .post {
      display: flex;
      margin-top: 15px;
      gap: 15px;
      cursor: pointer;
    }
    .sidebar .post img {
      width: 80px;
      height: 60px;
      border-radius: 8px;
      object-fit: cover;
      flex-shrink: 0;
      box-shadow: 0 2px 7px rgba(0,0,0,0.1);
    }
    .sidebar .post div {
      flex: 1;
      font-size: 0.95rem;
      color: #444;
    }
    .sidebar .post div .title {
      font-weight: 600;
      color: #222;
      margin-bottom: 4px;
      line-height: 1.3;
    }
    .sidebar .post div .date {
      font-size: 0.85rem;
      color: #999;
    }

    .main-content {
      flex: 3 1 700px;
      background: white;
      border-radius: 10px;
      box-shadow: 0 3px 12px rgba(0,0,0,0.1);
      padding: 15px 25px;
    }

    .tabs {
      display: flex;
      gap: 20px;
      border-bottom: 2px solid #f2a900;
      margin-bottom: 15px;
      flex-wrap: wrap;
    }
    .tab {
      padding: 10px 18px;
      cursor: pointer;
      font-weight: 600;
      color: #999;
      border-bottom: 3px solid transparent;
      transition: all 0.3s ease;
      white-space: nowrap;
    }
    .tab.active {
      color: #f2a900;
      border-bottom: 3px solid #f2a900;
    }

    .posts-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill,minmax(280px,1fr));
      gap: 18px;
    }

    .post-card {
      border-radius: 12px;
      overflow: hidden;
      box-shadow: 0 4px 16px rgb(0 0 0 / 0.07);
      background: white;
      cursor: pointer;
      transition: transform 0.3s ease;
    }
    .post-card:hover {
      transform: translateY(-6px);
      box-shadow: 0 8px 26px rgb(0 0 0 / 0.15);
    }
    .post-card img {
      width: 100%;
      display: block;
      object-fit: cover;
      aspect-ratio: 16 / 9;
    }
    .post-card .post-title {
      padding: 10px 12px;
      font-weight: 700;
      color: #222;
      font-size: 1.1rem;
      line-height: 1.3;
    }

    /* مظلم / ضوء */
    .dark-toggle {
      cursor: pointer;
      font-size: 1.4rem;
      user-select: none;
      margin-left: 15px;
      color: #f2a900;
      transition: color 0.3s ease;
    }
    .dark-toggle:hover {
      color: #d18e00;
    }

    /* Responsive */
    @media (max-width: 900px) {
      .content-wrapper {
        flex-direction: column;
      }
      .main-content, .sidebar {
        flex: 1 1 100%;
      }
    }