<?php
/**
 * The header with enhanced Islamic geometric patterns
 */
?>
<!DOCTYPE html>
<html <?php language_attributes(); ?> dir="rtl" lang="ur">
<head>
  <meta charset="<?php bloginfo('charset'); ?>">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title><?php bloginfo('name'); ?></title>
  <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>">
  <?php wp_head(); ?>

  <style>
    :root {
      --islamic-green: #1a5e2c;
      --gold: #d4af37;
      --cream: #f8f4e9;
      --dark-brown: #3e2e1e;
      --light-gold: rgba(212, 175, 55, 0.3);
      --text-color: #3e2e1e;
      --light-brown: #7b6146;
    }

    /* بنیادی باڈی اسٹائلز */
    body {
      margin: 0;
      padding: 0;
      font-family: 'Jameel Noori Nastaleeq', 'Noto Nastaliq Urdu', serif;
      background-color: var(--cream);
      direction: rtl;
      text-align: right;
      text-rendering: optimizeLegibility;
      -webkit-font-smoothing: antialiased;
      line-height: 1.6;
      word-spacing: normal;
      letter-spacing: normal;
      unicode-bidi: embed;
      background-image: url('<?php echo get_template_directory_uri(); ?>/image/islamic_background.jpg');
      background-repeat: repeat;
      background-size: cover;
      background-attachment: fixed;
      background-position: center center;
      color: var(--text-color);
    }

    /* عمومی اردو متن کے لیے اسٹائلز */
    .urdu-text, 
    .urdu-section, 
    .urdu-content,
    .book-card,
    .book-card h2,
    .book-card p,
    .book-card div {
      direction: rtl;
      text-align: right;
      font-family: 'Jameel Noori Nastaleeq', serif;
      line-height: 2;
      font-size: 20px;
      margin-bottom: 20px;
    }

    /* اقتباسات کے لیے اسٹائلز */
    blockquote {
      direction: rtl;
      text-align: right;
      font-family: 'Jameel Noori Nastaleeq', serif;
      font-size: 22px;
      line-height: 2;
      margin: 20px 0;
      padding: 10px 20px;
      background: #f9f9f9;
      border-right: 4px solid var(--islamic-green);
    }

    /* ہیڈنگز کے لیے اسٹائلز */
    h1, h2, h3, h4, h5, h6 {
      direction: rtl;
      text-align: right;
      font-family: 'Jameel Noori Nastaleeq', serif;
      color: var(--dark-brown);
    }

    /* موبائل مینو کے لیے اسٹائلز */
    .mobile-menu-toggle {
      position: fixed;
      top: 15px;
      left: 15px;
      background: var(--dark-brown);
      color: white;
      border: none;
      font-size: 30px;
      padding: 8px 12px;
      border-radius: 8px;
      cursor: pointer;
      z-index: 1002;
      display: block;
    }

    .mobile-menu {
      height: 100%;
      width: 0;
      position: fixed;
      top: 0;
      right: 0;
      background: var(--light-brown);
      overflow-x: hidden;
      transition: 0.5s;
      padding-top: 60px;
      z-index: 1001;
    }

    body.menu-open::before {
      content: "";
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0,0,0,0.5);
      z-index: 1000;
    }

    .mobile-menu.open {
      width: 260px;
    }

    /* ڈیسک ٹاپ سائیڈبار */
    .sidebar-desktop {
      width: 240px;
      background: var(--light-brown);
      height: 100vh;
      position: fixed;
      right: 0;
      top: 0;
      padding-top: 20px;
      display: none;
    }

    /* مین مواد کے لیے اسٹائلز */
    .main-content-urdu {
      margin-right: 0;
      padding: 20px;
      background: rgba(255, 255, 255, 0.85);
      border-radius: 10px;
    }

    /* مینو لسٹ اسٹائلز */
    .menu-list {
      list-style: none;
      padding: 0;
      margin: 0;
    }

    .menu-list li {
      border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .menu-list li a {
      color: white;
      display: block;
      padding: 12px 20px;
      font-size: 20px;
      text-decoration: none;
      transition: all 0.3s ease;
    }

    .menu-list li a:hover {
      background: rgba(0,0,0,0.1);
      padding-right: 25px;
    }

    .has-submenu > .submenu {
      display: none;
      padding-right: 20px;
      background: rgba(0,0,0,0.05);
    }

    .has-submenu.open > .submenu {
      display: block;
    }

    /* سرچ باکس اسٹائلز */
    .search-box {
      margin: 20px;
    }

    .search-box input {
      width: 100%;
      padding: 10px 15px;
      font-size: 16px;
      border: none;
      border-radius: 25px;
      background: rgba(255,255,255,0.9);
    }

    /* سیکشن ہیڈنگز */
    .section-heading {
      text-align: center;
      color: var(--dark-brown);
      margin-bottom: 30px;
      font-size: 28px;
      position: relative;
      padding-bottom: 10px;
    }

    .section-heading:after {
      content: "";
      position: absolute;
      bottom: 0;
      right: 50%;
      transform: translateX(50%);
      width: 100px;
      height: 3px;
      background: var(--gold);
    }

    /* کارڈز رپر */
    .cards-wrapper {
      display: flex;
      flex-wrap: wrap;
      gap: 20px;
      justify-content: center;
    }

    /* پوسٹ کارڈز اسٹائلز */
    .post-card,
    .summary-card {
      background: rgba(255, 255, 255, 0.9);
      border-radius: 15px;
      box-shadow: 0 4px 12px rgba(0,0,0,0.1);
      transition: transform 0.3s ease, box-shadow 0.3s ease;
      overflow: hidden;
      margin-bottom: 20px;
    }

    .post-card:hover,
    .summary-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    }

    .post-thumb img {
      width: 100%;
      height: auto;
      border-bottom: 1px solid #eee;
    }

    .post-card h3,
    .summary-body h2 {
      margin: 15px 20px 10px;
      font-size: 22px;
      color: var(--dark-brown);
    }

    .post-card p,
    .summary-body p {
      color: #555;
      font-size: 18px;
      margin: 10px 20px 20px;
      line-height: 1.8;
    }

    .read-more,
    .read-more-btn {
      display: inline-block;
      margin: 10px 20px 20px;
      background: var(--dark-brown);
      color: white;
      padding: 8px 20px;
      border-radius: 25px;
      text-decoration: none;
      transition: all 0.3s ease;
    }

    .read-more:hover,
    .read-more-btn:hover {
      background: var(--islamic-green);
      transform: translateY(-2px);
    }

    /* سمیری کارڈ ہیڈر */
    .summary-header {
      background: var(--dark-brown) url('https://www.transparenttextures.com/patterns/dark-mosaic.png');
      background-blend-mode: multiply;
      color: white;
      padding: 15px 20px;
      font-size: 22px;
      font-weight: bold;
    }

    /* مکمل پوسٹ اسٹائلز */
    .full-post {
      background: #ffffff;
      padding: 30px;
      border-radius: 10px;
      box-shadow: 0 2px 8px rgba(0,0,0,0.08);
      margin-top: 20px;
    }

    /* موبائل ریسپانسیو اسٹائلز */
    @media (min-width: 992px) {
      .sidebar-desktop {
        display: block;
      }
      .mobile-menu-toggle {
        display: none;
      }
      .main-content-urdu {
        margin-right: 260px;
        padding: 40px;
      }
    }

    @media (max-width: 768px) {
      .post-card,
      .summary-card {
        width: 100%;
      }
      
      .summary-body h2 {
        font-size: 20px;
      }
      
      .read-more-btn {
        padding: 8px 16px;
        font-size: 14px;
      }
      
      .full-post {
        padding: 20px;
      }
      
      .section-heading {
        font-size: 24px;
      }
    }

    /* فونٹ ڈیفینیشن */
    @font-face {
      font-family: 'Jameel Noori Nastaleeq';
      src: url('<?php echo get_template_directory_uri(); ?>/fonts/Jameel-Noori-Nastaleeq.ttf') format('truetype');
      font-weight: normal;
      font-style: normal;
      font-display: swap;
    }
  </style>
</head>

<body <?php body_class(); ?>>
<!-- باقی HTML کوڈ یہاں شامل کریں -->
